Documentation
¶
Index ¶
- type ServiceContainer
- func (c *ServiceContainer) BackgroundShellService() *services.BackgroundShellService
- func (c *ServiceContainer) GetA2ATaskCoordinator() domain.A2ATaskCoordinator
- func (c *ServiceContainer) GetAgentManager() domain.AgentManager
- func (c *ServiceContainer) GetAgentService() domain.AgentService
- func (c *ServiceContainer) GetApprovalCoordinator() domain.ApprovalCoordinator
- func (c *ServiceContainer) GetBackgroundJobManager() *services.BackgroundJobManager
- func (c *ServiceContainer) GetBackgroundTaskRegistry() domain.BackgroundTaskRegistry
- func (c *ServiceContainer) GetBackgroundTaskService() domain.BackgroundTaskService
- func (c *ServiceContainer) GetChatCompletionRunner() domain.ChatCompletionRunner
- func (c *ServiceContainer) GetConversationOptimizer() domain.ConversationOptimizer
- func (c *ServiceContainer) GetConversationRepository() domain.ConversationRepository
- func (c *ServiceContainer) GetDirectExecutionService() domain.DirectExecutionService
- func (c *ServiceContainer) GetFileService() domain.FileService
- func (c *ServiceContainer) GetGatewayManager() domain.GatewayManager
- func (c *ServiceContainer) GetGitHubIssueService() domain.GitHubIssueService
- func (c *ServiceContainer) GetImageService() domain.ImageService
- func (c *ServiceContainer) GetJobSupervisor() *jobs.Supervisor
- func (c *ServiceContainer) GetMCPManager() domain.MCPManager
- func (c *ServiceContainer) GetMemoryBackend() domain.MemoryBackend
- func (c *ServiceContainer) GetMessageQueue() domain.MessageQueue
- func (c *ServiceContainer) GetModelService() domain.ModelService
- func (c *ServiceContainer) GetPricingService() domain.PricingService
- func (c *ServiceContainer) GetSessionRolloverManager() *services.SessionRolloverManager
- func (c *ServiceContainer) GetShortcutRegistry() *shortcuts.Registry
- func (c *ServiceContainer) GetSkillsService() domain.SkillsService
- func (c *ServiceContainer) GetStateManager() domain.StateManager
- func (c *ServiceContainer) GetStorage() storage.ConversationStorage
- func (c *ServiceContainer) GetTaskRetentionService() domain.TaskRetentionService
- func (c *ServiceContainer) GetThemeService() domain.ThemeService
- func (c *ServiceContainer) GetToolExecutionCoordinator() domain.ToolExecutionCoordinator
- func (c *ServiceContainer) GetToolRegistry() *tools.Registry
- func (c *ServiceContainer) GetToolService() domain.ToolService
- func (c *ServiceContainer) Logger() *zap.Logger
- func (c *ServiceContainer) PricingService() domain.PricingService
- func (c *ServiceContainer) SetUINotifier(n domain.UINotifier)
- func (c *ServiceContainer) Shutdown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceContainer ¶
type ServiceContainer struct {
// contains filtered or unexported fields
}
ServiceContainer manages all application dependencies
func NewServiceContainer ¶
func NewServiceContainer(cfg *config.Config) *ServiceContainer
NewServiceContainer creates a new service container with all dependencies
func (*ServiceContainer) BackgroundShellService ¶ added in v0.81.0
func (c *ServiceContainer) BackgroundShellService() *services.BackgroundShellService
BackgroundShellService returns the background shell service
func (*ServiceContainer) GetA2ATaskCoordinator ¶ added in v0.112.3
func (c *ServiceContainer) GetA2ATaskCoordinator() domain.A2ATaskCoordinator
GetA2ATaskCoordinator returns the A2A task lifecycle event coordinator.
func (*ServiceContainer) GetAgentManager ¶ added in v0.67.0
func (c *ServiceContainer) GetAgentManager() domain.AgentManager
func (*ServiceContainer) GetAgentService ¶ added in v0.36.0
func (c *ServiceContainer) GetAgentService() domain.AgentService
func (*ServiceContainer) GetApprovalCoordinator ¶ added in v0.112.3
func (c *ServiceContainer) GetApprovalCoordinator() domain.ApprovalCoordinator
GetApprovalCoordinator returns the plan-approval / computer-use pause-resume coordinator.
func (*ServiceContainer) GetBackgroundJobManager ¶ added in v0.46.0
func (c *ServiceContainer) GetBackgroundJobManager() *services.BackgroundJobManager
GetBackgroundJobManager returns the background job manager
func (*ServiceContainer) GetBackgroundTaskRegistry ¶ added in v0.101.0
func (c *ServiceContainer) GetBackgroundTaskRegistry() domain.BackgroundTaskRegistry
GetBackgroundTaskRegistry returns the unified background task registry (the single tracker that owns both A2A tasks and background bash shells). Callers that need only the narrower A2A or shell view can use the returned value as a domain.A2ATaskTracker or domain.ShellTracker.
func (*ServiceContainer) GetBackgroundTaskService ¶ added in v0.53.3
func (c *ServiceContainer) GetBackgroundTaskService() domain.BackgroundTaskService
GetBackgroundTaskService returns the background task service (may be nil if A2A is not enabled)
func (*ServiceContainer) GetChatCompletionRunner ¶ added in v0.112.3
func (c *ServiceContainer) GetChatCompletionRunner() domain.ChatCompletionRunner
GetChatCompletionRunner returns the LLM streaming lifecycle runner.
func (*ServiceContainer) GetConversationOptimizer ¶ added in v0.68.1
func (c *ServiceContainer) GetConversationOptimizer() domain.ConversationOptimizer
func (*ServiceContainer) GetConversationRepository ¶
func (c *ServiceContainer) GetConversationRepository() domain.ConversationRepository
func (*ServiceContainer) GetDirectExecutionService ¶ added in v0.112.3
func (c *ServiceContainer) GetDirectExecutionService() domain.DirectExecutionService
GetDirectExecutionService returns the user-typed !command / !!Tool(...) execution service. Also satisfies BashDetachChannelHolder.
func (*ServiceContainer) GetFileService ¶
func (c *ServiceContainer) GetFileService() domain.FileService
func (*ServiceContainer) GetGatewayManager ¶ added in v0.56.0
func (c *ServiceContainer) GetGatewayManager() domain.GatewayManager
GetGatewayManager returns the gateway manager
func (*ServiceContainer) GetGitHubIssueService ¶ added in v0.117.0
func (c *ServiceContainer) GetGitHubIssueService() domain.GitHubIssueService
func (*ServiceContainer) GetImageService ¶ added in v0.57.0
func (c *ServiceContainer) GetImageService() domain.ImageService
func (*ServiceContainer) GetJobSupervisor ¶ added in v0.126.0
func (c *ServiceContainer) GetJobSupervisor() *jobs.Supervisor
GetJobSupervisor returns the background job supervisor, constructing the registry (and therefore the supervisor) on first use.
func (*ServiceContainer) GetMCPManager ¶ added in v0.79.0
func (c *ServiceContainer) GetMCPManager() domain.MCPManager
GetMCPManager returns the MCP manager (may be nil if MCP is not enabled)
func (*ServiceContainer) GetMemoryBackend ¶ added in v0.127.0
func (c *ServiceContainer) GetMemoryBackend() domain.MemoryBackend
GetMemoryBackend returns the shared memory sync backend (local no-op or git), used by the headless AgentSession to sync memory at run start/finish.
func (*ServiceContainer) GetMessageQueue ¶ added in v0.53.0
func (c *ServiceContainer) GetMessageQueue() domain.MessageQueue
func (*ServiceContainer) GetModelService ¶
func (c *ServiceContainer) GetModelService() domain.ModelService
func (*ServiceContainer) GetPricingService ¶ added in v0.86.0
func (c *ServiceContainer) GetPricingService() domain.PricingService
func (*ServiceContainer) GetSessionRolloverManager ¶ added in v0.101.0
func (c *ServiceContainer) GetSessionRolloverManager() *services.SessionRolloverManager
func (*ServiceContainer) GetShortcutRegistry ¶ added in v0.42.0
func (c *ServiceContainer) GetShortcutRegistry() *shortcuts.Registry
func (*ServiceContainer) GetSkillsService ¶ added in v0.117.0
func (c *ServiceContainer) GetSkillsService() domain.SkillsService
func (*ServiceContainer) GetStateManager ¶ added in v0.27.0
func (c *ServiceContainer) GetStateManager() domain.StateManager
func (*ServiceContainer) GetStorage ¶ added in v0.46.0
func (c *ServiceContainer) GetStorage() storage.ConversationStorage
GetStorage returns the conversation storage
func (*ServiceContainer) GetTaskRetentionService ¶ added in v0.53.3
func (c *ServiceContainer) GetTaskRetentionService() domain.TaskRetentionService
GetTaskRetentionService returns the task retention service (may be nil if A2A is not enabled)
func (*ServiceContainer) GetThemeService ¶ added in v0.47.0
func (c *ServiceContainer) GetThemeService() domain.ThemeService
func (*ServiceContainer) GetToolExecutionCoordinator ¶ added in v0.112.3
func (c *ServiceContainer) GetToolExecutionCoordinator() domain.ToolExecutionCoordinator
GetToolExecutionCoordinator returns the tool round-trip coordinator (tool approval, streaming-status, execution progress, active-tool tracking).
func (*ServiceContainer) GetToolRegistry ¶ added in v0.14.1
func (c *ServiceContainer) GetToolRegistry() *tools.Registry
func (*ServiceContainer) GetToolService ¶
func (c *ServiceContainer) GetToolService() domain.ToolService
func (*ServiceContainer) Logger ¶ added in v0.100.4
func (c *ServiceContainer) Logger() *zap.Logger
Logger returns the logger instance for this container
func (*ServiceContainer) PricingService ¶ added in v0.86.0
func (c *ServiceContainer) PricingService() domain.PricingService
func (*ServiceContainer) SetUINotifier ¶ added in v0.126.0
func (c *ServiceContainer) SetUINotifier(n domain.UINotifier)
SetUINotifier swaps in the real (program-backed) UI notifier. cmd/chat.go calls it once, after tea.NewProgram and before program.Run, so every background producer that captured the holder at construction begins pushing into the live Bubble Tea loop. Safe to call from any goroutine; before it runs, producers push to the no-op default.