dialog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseDialogMsg

type CloseDialogMsg struct{}

CloseDialogMsg is sent to close the current dialog

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 NewToolConfirmationDialog

func NewToolConfirmationDialog(toolCall tools.ToolCall, appInstance *app.App) Dialog

NewToolConfirmationDialog creates a new tool confirmation dialog

type KeyMap

type KeyMap struct {
}

KeyMap defines global dialog key bindings

type Manager

type Manager interface {
	tea.Model

	GetLayer() *lipgloss.Layer
	HasDialog() 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 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