Documentation
¶
Overview ¶
Package tui style tokens: single source of truth for visual language. Direction: cool chrome, warm content — colour alone distinguishes UI from output.
Package tui theme: single source of truth for colour. v2 has no AdaptiveColor; palette is resolved once from background.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewModelPicker ¶ added in v0.2.0
Caller frames with modalOverlayStyle, so no border here.
func Run ¶
func Run( ctx context.Context, registry *provider.Registry, session *agent.Session, toolRegistry *tools.Registry, approval *tools.ApprovalGate, version string, workspaceRoot string, guardCfg agent.LoopGuardConfig, maxContextTokens int, ) error
Run starts the Bubble Tea interface; agent behaviour lives in agent.AgentLoop.
Types ¶
type ApprovalBridge ¶
type ApprovalBridge struct {
RequestCh chan ApprovalRequest
}
func NewApprovalBridge ¶
func NewApprovalBridge() *ApprovalBridge
func (*ApprovalBridge) RequestApproval ¶
func (b *ApprovalBridge) RequestApproval(toolName string, args json.RawMessage, preview string) (bool, error)
type ApprovalRequest ¶
type ApprovalRequest struct {
ToolName string
Args json.RawMessage
Preview string
ReplyCh chan bool
}
type ChatMessage ¶
type ModelItem ¶ added in v0.2.0
ModelItem is a selectable model in the fuzzy picker.