pages

package
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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 NewChat

func NewChat(c *client.Client, sessionID string, t theme.Theme, dark bool) ChatModel

func (*ChatModel) AddSystemMessage added in v0.16.0

func (m *ChatModel) AddSystemMessage(content string)

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) Init

func (m ChatModel) Init() tea.Cmd

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

func (m ChatModel) SessionID() string

SessionID returns the daemon session this chat model sends messages to.

func (*ChatModel) SetProviderModel

func (m *ChatModel) SetProviderModel(provider, model string)

SetProviderModel sets the provider and model shown in the status bar.

func (*ChatModel) SetSize

func (m *ChatModel) SetSize(width, height int)

SetSize sets the chat model's dimensions and recalculates layout.

func (*ChatModel) SetWorkingDir

func (m *ChatModel) SetWorkingDir(dir string)

SetWorkingDir sets the working directory shown in the status bar.

func (ChatModel) Update

func (m ChatModel) Update(msg tea.Msg) (ChatModel, tea.Cmd)

func (ChatModel) View

func (m ChatModel) View(t theme.Theme) string

type KillAgentMsg

type KillAgentMsg struct {
	TeamID  string
	AgentID string
}

KillAgentMsg signals that the selected agent should be killed.

type NavigateToOnboardingMsg struct{}

NavigateToOnboardingMsg signals the app to switch to the onboarding page.

type NavigateToSessionTreeMsg struct{}

NavigateToSessionTreeMsg asks the root app to show the session tree browser.

type OnboardingDoneMsg

type OnboardingDoneMsg struct {
	Provider *pb.Provider
}

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)

func (OnboardingModel) View

func (m OnboardingModel) View(t theme.Theme, width, height int) string

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

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)

func (SplashModel) View

func (m SplashModel) View(t theme.Theme, width, height int) string

type TeamModel

type TeamModel struct {
	// contains filtered or unexported fields
}

TeamModel shows the multi-agent team view.

func NewTeam

func NewTeam() TeamModel

func (TeamModel) ApplyEvent

func (m TeamModel) ApplyEvent(ev *pb.TeamEvent) TeamModel

ApplyEvent updates the team model from a streaming team event.

func (TeamModel) SetBlackboardInfo

func (m TeamModel) SetBlackboardInfo(agentName string, sections map[string]int) TeamModel

SetBlackboardInfo sets the blackboard section data for a given agent.

func (TeamModel) SetSize

func (m TeamModel) SetSize(w, h int) TeamModel

func (TeamModel) Update

func (m TeamModel) Update(msg tea.Msg) (TeamModel, tea.Cmd)

func (TeamModel) View

func (m TeamModel) View(t theme.Theme) string

type TeamStatusMsg

type TeamStatusMsg struct {
	Status *pb.TeamStatus
	Err    error
}

TeamStatusMsg carries a refreshed TeamStatus from the daemon.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL