Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App interface {
GetConfig() *config.Config
GetAgent() *agent.Agent
GetCost() float64
GetTokensIn() int
GetTokensOut() int
SetModel(model string)
SetPermissionMode(mode string)
SendPrompt(prompt string) // Send a prompt to the agent
}
App is the interface that the TUI model implements
type CommandDef ¶
CommandDef defines a slash command with metadata
func MatchCommands ¶
func MatchCommands(prefix string) []CommandDef
MatchCommands returns commands that fuzzy-match a prefix (for autocomplete)
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler processes slash commands
func NewHandler ¶
type Result ¶
type Result struct {
Message string
Quit bool
ClearMessages bool
SkillPrompt string // If set, send this as a prompt to the agent
PlanToggle bool // Toggle plan mode
BriefToggle bool // Toggle brief mode
SessionTitle string // Rename current session
VimToggle bool // Toggle vim mode
StartLogin bool // Start interactive login wizard
}
Result is returned by slash command handlers
func SaveProviderConfig ¶ added in v0.6.1
SaveProviderConfig writes provider config to settings.json