Documentation
¶
Index ¶
- Constants
- type App
- func (app *App) ActiveAgent() agent.Service
- func (app *App) ActiveAgentName() config.AgentName
- func (app *App) ForceShutdown()
- func (app *App) RunNonInteractive(ctx context.Context, prompt string, outputFormat format.OutputFormat, ...) error
- func (app *App) SetActiveAgent(agentID config.AgentName) error
- func (app *App) Shutdown()
- func (app *App) SwitchAgent() config.AgentName
Constants ¶
View Source
const ServerNameContextKey serverNameContextKey = "server_name"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Sessions session.Service
Messages message.Service
History history.Service
Permissions permission.Service
Registry agentregistry.Registry
MCPRegistry agent.MCPRegistry
PrimaryAgents map[config.AgentName]agent.Service
PrimaryAgentKeys []config.AgentName
ActiveAgentIdx int
InitialSession *session.Session
InitialSessionID string
LSPClients map[string]*lsp.Client
LSPClientsCh chan *lsp.Client
// contains filtered or unexported fields
}
func (*App) ActiveAgent ¶
func (*App) ActiveAgentName ¶
func (*App) ForceShutdown ¶
func (app *App) ForceShutdown()
ForceShutdown performs an aggressive shutdown for non-interactive mode
func (*App) RunNonInteractive ¶
func (app *App) RunNonInteractive(ctx context.Context, prompt string, outputFormat format.OutputFormat, quiet bool) error
RunNonInteractive handles the execution flow when a prompt is provided via CLI flag.
func (*App) SetActiveAgent ¶ added in v1.3.0
func (*App) Shutdown ¶
func (app *App) Shutdown()
Shutdown performs a clean shutdown of the application
func (*App) SwitchAgent ¶
Click to show internal directories.
Click to hide internal directories.