Skip to main content

Module tui

Module tui 

Source
Expand description

TUI module re-exports. TUI protocol types and session interface.

When the tui feature is enabled, this module re-exports the full app-layer protocol from vtcode-ui. When the feature is disabled (headless build), it re-exports the shared data types from vtcode-commons and provides lightweight no-op stubs for InlineHandle, InlineSession, and InlineEvent.

Modules§

prelude
Commonly used VT Code TUI API items.

Structs§

AgentPaletteItem
AgentPaletteTransientRequest
ArchivedPromptEntry
A user prompt from a previous session archive, used to populate the history picker.
CompactActivityMetadata
Presentation metadata for a compact command activity row.
DiffHunk
A diff hunk representing a contiguous block of changes
DiffOverlayRequest
DiffPreviewState
State for diff preview modal
FilePaletteTransientRequest
FullscreenInteractionSettings
Standalone fullscreen interaction settings for alternate-screen behavior.
InlineHandle
InlineHeaderBadge
A compact pill badge rendered in the header.
InlineHeaderContext
Session metadata displayed in the inline header.
InlineHeaderHighlight
A title + content highlight block in the header.
InlineHeaderStatusBadge
A labelled status badge for the header bar.
InlineLinkRange
Byte-range inside a line that is a clickable link.
InlineListItem
A selectable item inside a list overlay.
InlineListSearchConfig
Search configuration for a list overlay.
InlineSegment
A styled text segment with shared style.
InlineSession
InlineStatus
A short-lived status message shown inside a list modal (footer strip).
InlineTextStyle
Inline text styling with foreground/background color and text effects.
InlineTheme
Resolved theme colors for inline rendering.
KeyboardProtocolSettings
Standalone keyboard protocol settings for terminal key event enhancements.
ListOverlayRequest
LocalAgentEntry
LocalAgentsTransientRequest
ModalOverlayRequest
PlanContent
Structured plan content for display in the Implementation Blueprint panel.
PlanPhase
A phase in an implementation plan (groups related steps).
PlanStep
A step in an implementation plan.
ProgressGuard
Scoped owner; transferring a turn preserves its monotonic start time.
SecurePromptConfig
Configuration for a secure (masked) prompt input.
SessionAppearanceConfig
UI appearance configuration
SessionOptions
Standalone session launch options for reusable integrations.
SlashCommandItem
A single slash-command entry for the suggestion palette.
SubmittedInput
TaskPanelMetadata
TaskPanelTransientRequest
TransientHotkey
WizardOverlayRequest
WizardStep
A single step in a wizard modal flow.

Enums§

ContentPart
Structured input content used by the TUI input/history systems.
DiffPreviewMode
Behavior mode for diff preview overlays.
ExecSessionAction
Actions that the runloop performs for a raw background exec session.
InlineCommand
InlineEvent
InlineHeaderStatusTone
Status-badge tone used in header status indicators.
InlineItemKind
Role of a list row, used by the renderer to pick emphasis and spacing.
InlineLinkTarget
A clickable link target inside a transcript line.
InlineListSelection
Selection value returned from a list or wizard overlay.
InlineMessageKind
Message kind tag for inline transcript lines.
InlineTone
Semantic tone for list badges, values, and modal status strips.
LayoutModeOverride
Override for responsive layout detection.
LocalAgentKind
OpenAIServiceTierChoice
OverlayEvent
OverlaySelectionChange
ReasoningDisplayMode
Reasoning visibility behavior in the transcript.
RewindAction
Rewind action choices for the rewind overlay.
SessionSurface
Standalone surface preference for selecting inline vs alternate rendering.
ThinkingBlockState
Default collapse state of agent thinking/reasoning blocks in the transcript.
TransientEvent
TransientHotkeyAction
TransientHotkeyKey
TransientRequest
TransientSelectionChange
TransientSubmission
TrustMode
Trust mode for diff preview - how to handle file edit approval
UiMode
UI mode variants for quick presets.
WizardModalMode
Wizard modal behavior variant.

Functions§

convert_style
Convert an anstyle::Style to an InlineTextStyle.
spawn_session_with_host
Spawn a session using defaults from a host adapter.
spawn_session_with_options
Spawn a session using standalone options and local config types.
theme_from_color_fields
Build an InlineTheme from individual theme colour fields.

Type Aliases§

FocusChangeCallback
InlineEventCallback
PreviewCallback
ToolOutputId
Session-local key for a complete tool-output capture.