Documentation
¶
Index ¶
- func SendChatMessage(role, content, toolName string) tea.Msg
- func SendCostUpdate(total float64) tea.Msg
- func SendModelSwitch(model, tier string) tea.Msg
- func SendProfileReadiness(ready, total int) tea.Msg
- func SendWorkflowUpdate() tea.Msg
- type ChatMessageMsg
- type ChatView
- type CostUpdateMsg
- type InputBar
- type MissionView
- type Model
- type ModelSwitchMsg
- type ProfileReadinessMsg
- type Program
- func (p *Program) AddSystemMessage(content string)
- func (p *Program) Printf(format string, args ...interface{})
- func (p *Program) Quit()
- func (p *Program) Run() error
- func (p *Program) Send(msg tea.Msg)
- func (p *Program) SetInputHandler(handler func(string))
- func (p *Program) SetProfileReadiness(ready, total int)
- func (p *Program) SetTierRouter(router *routing.TierRouter)
- func (p *Program) SetWorkflowEngine(engine *workflow.Engine)
- type StatusBar
- type WorkflowUpdateMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendChatMessage ¶
func SendCostUpdate ¶
func SendModelSwitch ¶
Helper to send messages to the TUI
func SendProfileReadiness ¶
func SendWorkflowUpdate ¶
Types ¶
type ChatMessageMsg ¶
type ChatMessageMsg struct {
Role string // "user", "assistant", "tool"
Content string
Timestamp time.Time
ToolName string // For tool messages
}
ChatMessageMsg represents a chat message to display
type ChatView ¶
type ChatView struct {
// contains filtered or unexported fields
}
ChatView displays the conversation history
func (*ChatView) AddMessage ¶
func (c *ChatView) AddMessage(msg ChatMessageMsg)
AddMessage adds a message to the chat
type CostUpdateMsg ¶
type CostUpdateMsg struct {
Total float64
}
CostUpdateMsg indicates session cost updated
type InputBar ¶
type InputBar struct {
// contains filtered or unexported fields
}
InputBar handles user input at the bottom
func (*InputBar) SetFocused ¶
SetFocused sets the focus state
func (*InputBar) SetOnSubmit ¶
SetOnSubmit sets the callback for when input is submitted
type MissionView ¶
type MissionView struct {
// contains filtered or unexported fields
}
MissionView displays workflow/mission state
func (*MissionView) Update ¶
func (m *MissionView) Update(engine *workflow.Engine)
Update updates the mission view with new workflow state
func (*MissionView) View ¶
func (m *MissionView) View(width, height int) string
View renders the mission view
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the main TUI application model
func (*Model) SetTierRouter ¶
func (m *Model) SetTierRouter(router *routing.TierRouter)
SetTierRouter sets the tier router for cost tracking
func (*Model) SetWorkflowEngine ¶
SetWorkflowEngine sets the workflow engine for mission tracking
type ModelSwitchMsg ¶
ModelSwitchMsg indicates the LLM model changed
type ProfileReadinessMsg ¶
ProfileReadinessMsg indicates capability readiness counts.
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
Program wraps the tea.Program for easy integration
func NewProgramWithHandler ¶
NewProgramWithHandler creates a TUI program with an input handler
func (*Program) AddSystemMessage ¶
AddSystemMessage adds a system message before the TUI event loop starts.
func (*Program) SetInputHandler ¶
SetInputHandler sets the input handler callback
func (*Program) SetProfileReadiness ¶
SetProfileReadiness sets capability readiness counts in the TUI.
func (*Program) SetTierRouter ¶
func (p *Program) SetTierRouter(router *routing.TierRouter)
SetTierRouter sets the tier router
func (*Program) SetWorkflowEngine ¶
SetWorkflowEngine sets the workflow engine
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
StatusBar displays current model, tier, and cost at the top
func (*StatusBar) SetProfileReadiness ¶
SetProfileReadiness sets capability readiness counts.
type WorkflowUpdateMsg ¶
type WorkflowUpdateMsg struct{}
WorkflowUpdateMsg indicates workflow state changed