tui

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChat

func RunChat(agentRef string, sessionID string, sendFn SendMessageFn, verbose bool) error

RunChat starts the chat UI and blocks until the user exits.

Types

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 McpServerWizard

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

McpServerWizard provides a paginated wizard for creating MCP server entries.

func NewMcpServerWizard

func NewMcpServerWizard() *McpServerWizard

TODO(infocus7): Add registry type selection using actual registry server list for selection

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 SendMessageFn

type SendMessageFn func(ctx context.Context, params protocol.SendMessageParams) (<-chan protocol.StreamingMessageEvent, error)

SendMessageFn mirrors the A2A client's StreamMessage signature.

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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