Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoApproveMsg ¶ added in v0.418.12
AutoApproveMsg toggles the "auto mode" indicator in the status bar for a session. When Enabled is true the agent auto-approves tool permission requests for SessionID.
type BreadcrumbsUpdatedMsg ¶ added in v0.2.0
type BreadcrumbsUpdatedMsg struct {
Files []string
}
BreadcrumbsUpdatedMsg is sent when the breadcrumb trail changes.
type MCPGatewayMsg ¶ added in v0.8.0
type MCPGatewayMsg struct {
FavoritesCount int
}
MCPGatewayMsg carries the current number of MCP gateway favorite tools. Send this message whenever the favorites count changes (e.g., after gateway initialization or after a tool invocation updates the stats).
type ProjectActiveMsg ¶ added in v0.240.0
type ProjectActiveMsg struct {
Name string
}
ProjectActiveMsg is sent when the active project changes. Name is the display name (filepath.Base(path) or custom name). An empty Name means no project is active.
type StatusAction ¶ added in v0.2.0
type StatusAction int
StatusAction represents the type of action triggered by clicking a status bar element.
const ( ActionShowHelp StatusAction = iota ActionShowModels ActionShowSession ActionShowDiagnostics ActionOpenFile )
type StatusActionMsg ¶ added in v0.2.0
type StatusActionMsg struct {
Action StatusAction
Data string // e.g., file path for ActionOpenFile
}
StatusActionMsg is emitted when a clickable status bar element is clicked.
type TokenUsageMsg ¶ added in v0.418.12
type TokenUsageMsg struct {
SessionID string
PromptTokens int64
CompletionTokens int64
ContextWindow int64
Estimated bool
}
TokenUsageMsg carries a live context-window token update for the status bar. When Estimated is true the value is provisional (e.g. estimated while tools run) and is rendered with a "~" prefix and a dimmed style until confirmed.