dialogs

package
v0.0.0-...-484ddc9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentChooser

type AgentChooser struct {
	// contains filtered or unexported fields
}

func NewAgentChooser

func NewAgentChooser(items []*AgentItem, onOK func(item list.Item) tea.Cmd) *AgentChooser

func (*AgentChooser) Fullscreen

func (a *AgentChooser) Fullscreen() bool

func (*AgentChooser) ID

func (a *AgentChooser) ID() string

func (*AgentChooser) Init

func (a *AgentChooser) Init() tea.Cmd

func (*AgentChooser) Update

func (a *AgentChooser) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*AgentChooser) View

func (a *AgentChooser) View() string

type AgentItem

type AgentItem struct{ api.AgentResponse }

func (AgentItem) Description

func (i AgentItem) Description() string

func (AgentItem) FilterValue

func (i AgentItem) FilterValue() string

func (AgentItem) Namespace

func (i AgentItem) Namespace() string

func (AgentItem) Title

func (i AgentItem) Title() string

type CloseMsg

type CloseMsg struct{}

CloseMsg closes the topmost dialog.

type CommandMethodConfig

type CommandMethodConfig struct {
	ID          string
	DisplayName string
}

CommandMethodConfig defines how to run an MCP command server

type CommandModeConfig

type CommandModeConfig struct {
	ID          string
	DisplayName string
}

CommandModeConfig defines sub-modes for command execution

type Dialog

type Dialog interface {
	tea.Model
	ID() string
	// Fullscreen indicates whether the dialog should take the entire screen.
	Fullscreen() bool
}

Dialog represents a modal-like component.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager maintains a stack of dialogs and forwards messages to the active one.

func NewManager

func NewManager() *Manager

func (*Manager) Active

func (m *Manager) Active() Dialog

func (*Manager) Handle

func (m *Manager) Handle(msg tea.Msg) tea.Cmd

Handle processes messages and routes them to the dialog stack. It returns a Cmd to be run by Bubble Tea.

func (*Manager) HasDialogs

func (m *Manager) HasDialogs() bool

func (*Manager) ViewOverlay

func (m *Manager) ViewOverlay() (string, bool)

ViewOverlay returns the view of the active dialog if present, otherwise empty string.

type McpServerWizard

type McpServerWizard struct {
	// contains filtered or unexported fields
}

McpServerWizard provides a paginated wizard for creating MCP server entries.

func NewMcpServerWizard

func NewMcpServerWizard() *McpServerWizard

func (*McpServerWizard) Fullscreen

func (w *McpServerWizard) Fullscreen() bool

func (*McpServerWizard) ID

func (w *McpServerWizard) ID() string

func (*McpServerWizard) Init

func (w *McpServerWizard) Init() tea.Cmd

func (*McpServerWizard) Ok

func (w *McpServerWizard) Ok() bool

func (*McpServerWizard) Result

func (w *McpServerWizard) Result() common.McpServerType

func (*McpServerWizard) Update

func (w *McpServerWizard) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update handles Bubble Tea messages and routes to the current step's components.

func (*McpServerWizard) View

func (w *McpServerWizard) View() string

View assembles the frame and delegates step-specific content rendering.

type OpenMsg

type OpenMsg struct{ Model Dialog }

OpenMsg opens the provided dialog.

type ServerTypeConfig

type ServerTypeConfig struct {
	ID          string
	DisplayName string
}

ServerTypeConfig defines the configuration for a server type (remote or command)

type WizardFlowConfig

type WizardFlowConfig struct {
	Name          string
	StepPositions map[wizardStep]int
	TotalSteps    int
}

WizardFlowConfig defines the step sequence and display positions for a flow

Jump to

Keyboard shortcuts

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