pages

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 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 {
	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) Init

func (m ChatModel) Init() tea.Cmd

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