dialog

package
v1.9.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

type CommandExecuteMsg struct {
	Command commands.Item
}

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 []commands.Category) Dialog

NewCommandPaletteDialog creates a new command palette dialog

func NewMaxIterationsDialog added in v1.3.6

func NewMaxIterationsDialog(maxIterations int, appInstance *app.App) Dialog

NewMaxIterationsDialog creates a new max iterations confirmation dialog

func NewOAuthAuthorizationDialog added in v1.5.6

func NewOAuthAuthorizationDialog(serverURL string, appInstance *app.App) Dialog

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 Manager

type Manager interface {
	layout.Model

	GetLayers() []*lipgloss.Layer
	Open() bool
}

Manager manages the dialog stack and rendering

func New

func New() Manager

New creates a new dialog component manager

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL