Documentation
¶
Index ¶
- type AgentCard
- type ChatEventMsg
- type ChatModel
- func (m *ChatModel) AddSystemMessage(content string)
- func (m *ChatModel) CancelStream()
- func (m ChatModel) Init() tea.Cmd
- func (m *ChatModel) LoadHistory(messages []*pb.HistoryMessage)
- func (m ChatModel) SessionID() string
- func (m *ChatModel) SetProviderModel(provider, model string)
- func (m *ChatModel) SetSize(width, height int)
- func (m *ChatModel) SetWorkingDir(dir string)
- func (m ChatModel) Update(msg tea.Msg) (ChatModel, tea.Cmd)
- func (m ChatModel) View(t theme.Theme) string
- type KillAgentMsg
- type NavigateToOnboardingMsg
- type NavigateToSessionTreeMsg
- type OnboardingDoneMsg
- type OnboardingModel
- type SessionTreeBrowser
- type SplashDoneMsg
- type SplashModel
- type TeamModel
- func (m TeamModel) ApplyEvent(ev *pb.TeamEvent) TeamModel
- func (m TeamModel) SetBlackboardInfo(agentName string, sections map[string]int) TeamModel
- func (m TeamModel) SetSize(w, h int) TeamModel
- func (m TeamModel) Update(msg tea.Msg) (TeamModel, tea.Cmd)
- func (m TeamModel) View(t theme.Theme) string
- type TeamStatusMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentCard ¶
type AgentCard struct {
ID string
Name string
Role string
Model string
Status string
CurrentTask string
Messages []string
BlackboardSections map[string]int // section name -> entry count
// contains filtered or unexported fields
}
AgentCard represents an agent's current state in the team view.
type ChatEventMsg ¶
type ChatEventMsg struct {
SessionID string
Event *pb.ChatEvent
// contains filtered or unexported fields
}
ChatEventMsg wraps an incoming proto ChatEvent for the TUI. The channel is carried so handleChatEvent can schedule the next read.
type ChatModel ¶
type ChatModel struct {
// contains filtered or unexported fields
}
func (*ChatModel) AddSystemMessage ¶ added in v0.16.0
AddSystemMessage appends a non-streaming status message to the transcript.
func (*ChatModel) CancelStream ¶ added in v0.16.0
func (m *ChatModel) CancelStream()
CancelStream cancels any in-flight chat stream owned by this model.
func (*ChatModel) LoadHistory ¶ added in v0.16.0
func (m *ChatModel) LoadHistory(messages []*pb.HistoryMessage)
LoadHistory replaces the visible chat transcript with daemon history.
func (ChatModel) SessionID ¶ added in v0.16.0
SessionID returns the daemon session this chat model sends messages to.
func (*ChatModel) SetProviderModel ¶
SetProviderModel sets the provider and model shown in the status bar.
func (*ChatModel) SetWorkingDir ¶
SetWorkingDir sets the working directory shown in the status bar.
type KillAgentMsg ¶
KillAgentMsg signals that the selected agent should be killed.
type NavigateToOnboardingMsg ¶
type NavigateToOnboardingMsg struct{}
NavigateToOnboardingMsg signals the app to switch to the onboarding page.
type NavigateToSessionTreeMsg ¶ added in v0.16.0
type NavigateToSessionTreeMsg struct{}
NavigateToSessionTreeMsg asks the root app to show the session tree browser.
type OnboardingDoneMsg ¶
OnboardingDoneMsg signals provider setup is complete.
type OnboardingModel ¶
type OnboardingModel struct {
// contains filtered or unexported fields
}
OnboardingModel is the multi-step provider setup wizard.
func NewOnboarding ¶
func NewOnboarding(c *client.Client, t theme.Theme) OnboardingModel
func (OnboardingModel) Init ¶
func (m OnboardingModel) Init() tea.Cmd
func (OnboardingModel) Update ¶
func (m OnboardingModel) Update(msg tea.Msg) (OnboardingModel, tea.Cmd)
type SessionTreeBrowser ¶ added in v0.16.0
type SessionTreeBrowser struct {
// contains filtered or unexported fields
}
SessionTreeBrowser loads and displays a daemon-backed session tree.
func NewSessionTreeBrowser ¶ added in v0.16.0
func NewSessionTreeBrowser(c sessionTreeClient, rootID string, t theme.Theme) SessionTreeBrowser
NewSessionTreeBrowser creates a browser for the lineage tree containing rootID.
func (SessionTreeBrowser) Init ¶ added in v0.16.0
func (m SessionTreeBrowser) Init() tea.Cmd
Init loads the initial session tree.
func (SessionTreeBrowser) SetSize ¶ added in v0.16.0
func (m SessionTreeBrowser) SetSize(width, height int) SessionTreeBrowser
SetSize updates the embedded tree dimensions.
func (SessionTreeBrowser) Update ¶ added in v0.16.0
func (m SessionTreeBrowser) Update(msg tea.Msg) (SessionTreeBrowser, tea.Cmd)
Update handles load results and navigation.
func (SessionTreeBrowser) View ¶ added in v0.16.0
func (m SessionTreeBrowser) View() string
View renders the browser.
type SplashDoneMsg ¶
type SplashDoneMsg struct{}
SplashDoneMsg signals the splash screen animation is complete.
type SplashModel ¶
type SplashModel struct {
// contains filtered or unexported fields
}
SplashModel renders the branded splash screen.
func NewSplash ¶
func NewSplash() SplashModel
func (SplashModel) Init ¶
func (m SplashModel) Init() tea.Cmd
func (SplashModel) Update ¶
func (m SplashModel) Update(msg tea.Msg) (SplashModel, tea.Cmd)
type TeamModel ¶
type TeamModel struct {
// contains filtered or unexported fields
}
TeamModel shows the multi-agent team view.
func (TeamModel) ApplyEvent ¶
ApplyEvent updates the team model from a streaming team event.
func (TeamModel) SetBlackboardInfo ¶
SetBlackboardInfo sets the blackboard section data for a given agent.
type TeamStatusMsg ¶
type TeamStatusMsg struct {
Status *pb.TeamStatus
Err error
}
TeamStatusMsg carries a refreshed TeamStatus from the daemon.