Documentation
¶
Overview ¶
Package app wires together services, coordinates agents, and manages application lifecycle.
Index ¶
- func GetLSPStates() map[string]LSPClientInfo
- func SubscribeLSPEvents(ctx context.Context) <-chan pubsub.Event[LSPEvent]
- type App
- func (app *App) Config() *config.Config
- func (app *App) InitReviewerAgent(ctx context.Context) error
- func (app *App) RunNonInteractive(ctx context.Context, output io.Writer, prompt string, quiet bool) error
- func (app *App) Shutdown()
- func (app *App) Subscribe(program *tea.Program)
- func (app *App) UpdateAgentModel(ctx context.Context) error
- type LSPClientInfo
- type LSPEvent
- type LSPEventType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLSPStates ¶
func GetLSPStates() map[string]LSPClientInfo
GetLSPStates returns the current state of all LSP clients
Types ¶
type App ¶
type App struct {
Sessions session.Service
Messages message.Service
History history.Service
Permissions permission.Service
AgentCoordinator agent.Coordinator
LSPClients *csync.Map[string, *lsp.Client]
// contains filtered or unexported fields
}
func (*App) InitReviewerAgent ¶ added in v0.6.0
func (*App) RunNonInteractive ¶
func (app *App) RunNonInteractive(ctx context.Context, output io.Writer, prompt string, quiet bool) error
RunNonInteractive runs the application in non-interactive mode with the given prompt, printing to stdout.
func (*App) Shutdown ¶
func (app *App) Shutdown()
Shutdown performs a graceful shutdown of the application.
type LSPClientInfo ¶
type LSPClientInfo struct {
Name string
State lsp.ServerState
Error error
Client *lsp.Client
DiagnosticCount int
ConnectedAt time.Time
}
LSPClientInfo holds information about an LSP client's state
func GetLSPState ¶
func GetLSPState(name string) (LSPClientInfo, bool)
GetLSPState returns the state of a specific LSP client
type LSPEvent ¶
type LSPEvent struct {
Type LSPEventType
Name string
State lsp.ServerState
Error error
DiagnosticCount int
}
LSPEvent represents an event in the LSP system
type LSPEventType ¶
type LSPEventType string
LSPEventType represents the type of LSP event
const ( LSPEventStateChanged LSPEventType = "state_changed" LSPEventDiagnosticsChanged LSPEventType = "diagnostics_changed" )
Click to show internal directories.
Click to hide internal directories.