Documentation
¶
Index ¶
- type CloseAllDialogsMsg
- type CloseDialogMsg
- type CommandExecuteMsg
- type Dialog
- func NewAttachmentPreviewDialog(preview editor.AttachmentPreview) Dialog
- func NewCommandPaletteDialog(categories []commands.Category) Dialog
- func NewMCPPromptInputDialog(promptName string, promptInfo mcptools.PromptInfo) Dialog
- func NewMaxIterationsDialog(maxIterations int, appInstance *app.App) Dialog
- func NewOAuthAuthorizationDialog(serverURL string, appInstance *app.App) Dialog
- func NewToolConfirmationDialog(msg *runtime.ToolCallConfirmationEvent, sessionState *service.SessionState) Dialog
- type MCPPromptInputDialog
- type Manager
- type OpenDialogMsg
- type RuntimeResumeMsg
- type ToolConfirmationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 CommandExecuteMsg ¶ added in v1.6.0
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 NewAttachmentPreviewDialog ¶ added in v1.14.0
func NewAttachmentPreviewDialog(preview editor.AttachmentPreview) Dialog
NewAttachmentPreviewDialog returns a dialog that shows attachment content in a scrollable view.
func NewCommandPaletteDialog ¶ added in v1.6.0
NewCommandPaletteDialog creates a new command palette dialog
func NewMCPPromptInputDialog ¶ added in v1.9.25
func NewMCPPromptInputDialog(promptName string, promptInfo mcptools.PromptInfo) Dialog
NewMCPPromptInputDialog creates a new MCP prompt input 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
func NewToolConfirmationDialog ¶
func NewToolConfirmationDialog(msg *runtime.ToolCallConfirmationEvent, sessionState *service.SessionState) Dialog
NewToolConfirmationDialog creates a new tool confirmation dialog
type MCPPromptInputDialog ¶ added in v1.9.25
type MCPPromptInputDialog struct {
// contains filtered or unexported fields
}
MCPPromptInputDialog implements Dialog for collecting MCP prompt parameters
func (*MCPPromptInputDialog) Init ¶ added in v1.9.25
func (d *MCPPromptInputDialog) Init() tea.Cmd
Init initializes the MCP prompt input dialog
func (*MCPPromptInputDialog) Position ¶ added in v1.9.25
func (d *MCPPromptInputDialog) Position() (row, col int)
Position calculates the position to center the dialog
func (*MCPPromptInputDialog) SetSize ¶ added in v1.9.25
func (d *MCPPromptInputDialog) SetSize(width, height int) tea.Cmd
SetSize implements Dialog
func (*MCPPromptInputDialog) Update ¶ added in v1.9.25
Update handles messages for the MCP prompt input dialog
func (*MCPPromptInputDialog) View ¶ added in v1.9.25
func (d *MCPPromptInputDialog) View() string
View renders the MCP prompt input dialog
type OpenDialogMsg ¶
type OpenDialogMsg struct {
Model Dialog
}
OpenDialogMsg is sent to open a new dialog
type RuntimeResumeMsg ¶ added in v1.9.7
type RuntimeResumeMsg struct {
Response runtime.ResumeType
}
type ToolConfirmationResponse ¶
type ToolConfirmationResponse struct {
Response string // "approve", "reject", or "approve-session"
}
ToolConfirmationResponse represents the user's response to tool confirmation