Documentation
¶
Index ¶
- func EmptyState(message string) string
- type AgentInfo
- type AgentStatusMsg
- type ApprovalRecord
- type ApprovalRequestMsg
- type BusSender
- type DiffMsg
- type EventMsg
- type HardCancelMsg
- type KeyMap
- type Model
- type PanelState
- type ProviderInfo
- type ProviderInfoMsg
- type RecoveryAction
- type RollbackInfoMsg
- type SoftCancelMsg
- type StreamTokenMsg
- type TaskRollbackInfo
- type TelemetryMsg
- type TelemetryRecord
- type TelemetrySnapshot
- type TestOutputMsg
- type TestResultMsg
- type TimelineEntry
- type ToolCallMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyState ¶ added in v1.1.0
EmptyState renders a friendly empty-state message inside a subtle bordered box. [EXPERIMENTAL]
Types ¶
type AgentStatusMsg ¶
type AgentStatusMsg struct {
Agents []AgentInfo
}
type ApprovalRecord ¶ added in v1.1.0
type ApprovalRecord struct {
ID uuid.UUID
Timestamp time.Time
AgentID string
ReqType string
Prompt string
ToolName string
SafetyDecision string
Approved *bool // nil = pending
Reason string
TimedOut bool
TaskID string
RedactedContext string
}
ApprovalRecord tracks a single approval request and its outcome.
type ApprovalRequestMsg ¶
type ApprovalRequestMsg struct {
Request types.ApprovalRequest
}
type HardCancelMsg ¶
type HardCancelMsg struct{}
type KeyMap ¶
type KeyMap struct {
Quit key.Binding
SoftCancel key.Binding
HardCancel key.Binding
Status key.Binding
Debug key.Binding
Tokens key.Binding
NewTask key.Binding
OpenConfig key.Binding
Help key.Binding
Tab key.Binding
Enter key.Binding
}
func DefaultKeyMap ¶
func DefaultKeyMap() KeyMap
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func NewModel ¶
func NewModel(bus BusSender, stateManager *state.StateManager, streamCh <-chan types.StreamTokenPayload, approvalResponder func(types.ApprovalResponse) error) Model
func (Model) WithExperimental ¶ added in v1.1.0
type PanelState ¶ added in v1.1.0
type PanelState int
const ( PanelStateIdle PanelState = iota PanelStatePending PanelStateRunning PanelStatePassed PanelStateFailed )
type ProviderInfo ¶ added in v1.2.0
type ProviderInfo struct {
ActiveProvider string
PreferredModel string
FallbackChain []string
LastError string
LastErrorClass string
Latency time.Duration
InputTokens int
OutputTokens int
TotalCostUSD float64
BudgetUSD float64
BudgetRemaining float64
}
ProviderInfo holds the current provider/routing state for display.
type ProviderInfoMsg ¶ added in v1.2.0
type RecoveryAction ¶ added in v1.2.0
type RecoveryAction struct {
TaskID string
Description string
ActionType string // inspect_task, inspect_files, rollback_preview, retry, rollback, export_bundle
RequiresApproval bool
}
RecoveryAction represents an actionable recovery item.
type RollbackInfoMsg ¶
type SoftCancelMsg ¶
type SoftCancelMsg struct{}
type StreamTokenMsg ¶
type StreamTokenMsg struct{ Content string }
type TaskRollbackInfo ¶
type TelemetryMsg ¶ added in v1.2.0
type TelemetryMsg struct {
Records []TelemetryRecord
}
type TelemetryRecord ¶ added in v1.2.0
type TelemetryRecord struct {
Provider string
Model string
Latency time.Duration
InputTokens int
OutputTokens int
CostUSD float64
Success bool
FailureClass string
Timestamp time.Time
}
TelemetryRecord is a TUI-local copy of an LLM telemetry record.
type TelemetrySnapshot ¶ added in v1.2.0
type TelemetrySnapshot struct {
Records []TelemetryRecord
LastUpdated time.Time
}
TelemetrySnapshot holds aggregated telemetry for the TUI.
type TestOutputMsg ¶
type TestResultMsg ¶
Click to show internal directories.
Click to hide internal directories.