app

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

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 New

func New(ctx context.Context, conn *sql.DB, cliSchema map[string]any) (*App, error)

func (*App) ActiveAgent

func (app *App) ActiveAgent() agent.Service

func (*App) ActiveAgentName

func (app *App) ActiveAgentName() config.AgentName

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 *App) SetActiveAgent(agentID config.AgentName) error

func (*App) Shutdown

func (app *App) Shutdown()

Shutdown performs a clean shutdown of the application

func (*App) SwitchAgent

func (app *App) SwitchAgent() config.AgentName

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL