| | |
| | | using Moli.Desktop.Interop; |
| | | using Moli.Desktop.Layout; |
| | | using Moli.Desktop.Api; |
| | | using Moli.Desktop.Llm; |
| | | using Moli.Desktop.Management; |
| | | using Moli.Desktop.Plugins; |
| | | using Moli.Desktop.Runtime; |
| | |
| | | services.AddSingleton<IRuntimeSurfaceController, RuntimeSurfaceController>(); |
| | | services.AddSingleton<IDesktopRuntime, DesktopRuntimeCoordinator>(); |
| | | services.AddSingleton<IConfigurationService, JsonConfigurationService>(); |
| | | services.AddSingleton<ILlmModelRegistry, LlmModelRegistry>(); |
| | | services.AddSingleton<ICredentialStore, EnvironmentCredentialStore>(); |
| | | services.AddHttpClient<OpenAICompatibleAdapter>(); |
| | | services.AddSingleton<ILlmProviderAdapter>(sp => sp.GetRequiredService<OpenAICompatibleAdapter>()); |
| | | services.AddSingleton<ILlmProviderAdapterFactory, LlmProviderAdapterFactory>(); |
| | | services.AddSingleton<ILlmGatewayService, LlmGatewayService>(); |
| | | services.AddSingleton<IPluginManifestValidator, PluginManifestValidator>(); |
| | | services.AddSingleton<PluginStateMachine>(); |
| | | services.AddSingleton<IPluginManager, PluginManager>(); |