app

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const ServerNameContextKey serverNameContextKey = "server_name"

Variables

This section is empty.

Functions

func NewLspService added in v1.7.0

func NewLspService() lsp.LspService

Types

type App

type App struct {
	Sessions     session.Service
	Messages     message.Service
	History      history.Service
	Permissions  permission.Service
	Registry     agentregistry.Registry
	MCPRegistry  agent.MCPRegistry
	Flows        flow.Service
	AgentFactory agent.AgentFactory
	LspService   lsp.LspService

	PrimaryAgents    map[config.AgentName]agent.Service
	PrimaryAgentKeys []config.AgentName
	ActiveAgentIdx   int

	InitialSession   *session.Session
	InitialSessionID string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, conn *sql.DB, cliSchema map[string]any, projectID string) (*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) 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

func (*App) SwitchAgentReverse added in v1.7.0

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

Jump to

Keyboard shortcuts

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