Documentation
¶
Index ¶
- func OpenCommandPalette(categories []CommandCategory) tea.Cmd
- type CloseAllDialogsMsg
- type CloseDialogMsg
- type Command
- type CommandCategory
- type CommandExecuteMsg
- type Dialog
- func NewCommandPaletteDialog(categories []CommandCategory) Dialog
- func NewMaxIterationsDialog(maxIterations int, appInstance *app.App) Dialog
- func NewOAuthAuthorizationDialog(serverURL string, appInstance *app.App) Dialog
- func NewToolConfirmationDialog(toolCall tools.ToolCall, appInstance *app.App) Dialog
- type Manager
- type OpenDialogMsg
- type ToolConfirmationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenCommandPalette ¶ added in v1.6.0
func OpenCommandPalette(categories []CommandCategory) tea.Cmd
OpenCommandPalette returns a command to open the command palette
Types ¶
type CloseAllDialogsMsg ¶ added in v1.5.14
type CloseAllDialogsMsg struct{}
CloseAllDialogsMsg is sent to close all dialogs in the stack
type CloseDialogMsg ¶
type CloseDialogMsg struct{}
CloseDialogMsg is sent to close the current (topmost) dialog
type Command ¶ added in v1.6.0
type Command struct {
ID string
Label string
Description string
Category string
Execute func() tea.Cmd
}
Command represents a single command in the palette
type CommandCategory ¶ added in v1.6.0
CommandCategory represents a category of commands
type CommandExecuteMsg ¶ added in v1.6.0
type CommandExecuteMsg struct {
Command Command
}
CommandExecuteMsg is sent when a command is selected
type Dialog ¶
type Dialog interface {
layout.Model
Position() (int, int) // Returns (row, col) for dialog placement
}
Dialog defines the interface that all dialogs must implement
func NewCommandPaletteDialog ¶ added in v1.6.0
func NewCommandPaletteDialog(categories []CommandCategory) Dialog
NewCommandPaletteDialog creates a new command palette dialog
func NewMaxIterationsDialog ¶ added in v1.3.6
NewMaxIterationsDialog creates a new max iterations confirmation dialog
func NewOAuthAuthorizationDialog ¶ added in v1.5.6
NewOAuthAuthorizationDialog creates a new OAuth authorization confirmation dialog
type OpenDialogMsg ¶
type OpenDialogMsg struct {
Model Dialog
}
OpenDialogMsg is sent to open a new dialog
type ToolConfirmationResponse ¶
type ToolConfirmationResponse struct {
Response string // "approve", "reject", or "approve-session"
}
ToolConfirmationResponse represents the user's response to tool confirmation