views

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvailablePlugins []AvailablePlugin

Available plugins from registry (fetched on startup)

View Source
var AvailableSkills []AvailableSkill

AvailableSkills is the list of skills from the registry

Functions

func InitAvailablePlugins

func InitAvailablePlugins()

InitAvailablePlugins fetches plugins from the registry

func InitAvailableSkills added in v0.0.2

func InitAvailableSkills()

InitAvailableSkills fetches skills from the registry

Types

type AgentMCPStatus

type AgentMCPStatus struct {
	Agent     agent.Agent
	Exists    bool
	Installed map[string]bool
	Errors    map[string]error
}

AgentMCPStatus represents an agent's MCP installation status

type AgentPluginStatus

type AgentPluginStatus struct {
	Agent          agent.Agent
	Exists         bool
	SupportsPlugin bool
	PluginStatus   map[string]bool // pluginName -> installed
	PluginError    map[string]error
}

AgentPluginStatus represents an agent's plugin installation status

type AgentSkillStatus

type AgentSkillStatus struct {
	Agent         agent.Agent
	Exists        bool
	SupportsSkill bool
	SkillStatus   map[string]bool // skillName -> installed
	SkillError    map[string]error
}

AgentSkillStatus represents an agent's skill installation status

type AgentsView

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

AgentsView displays code agent status

func NewAgentsView

func NewAgentsView() *AgentsView

NewAgentsView creates a new agents view

func (*AgentsView) GetOnlineCount

func (v *AgentsView) GetOnlineCount() int

GetOnlineCount returns number of configured agents

func (*AgentsView) GetSidebarSections

func (v *AgentsView) GetSidebarSections() []components.SidebarSection

func (*AgentsView) GetTotalCount

func (v *AgentsView) GetTotalCount() int

GetTotalCount returns total number of agents

func (*AgentsView) Init

func (v *AgentsView) Init() tea.Cmd

func (*AgentsView) Message

func (v *AgentsView) Message() string

func (*AgentsView) SetDimensions

func (v *AgentsView) SetDimensions(width, height int)

func (*AgentsView) ShortHelp

func (v *AgentsView) ShortHelp() []components.FooterAction

func (*AgentsView) Title

func (v *AgentsView) Title() string

func (*AgentsView) Update

func (v *AgentsView) Update(msg tea.Msg) (View, tea.Cmd)

func (*AgentsView) View

func (v *AgentsView) View() string

type AvailablePlugin

type AvailablePlugin struct {
	Name        string
	Description string
	Source      string
	Components  string // Summary like "2 cmd, 1 skill"
}

AvailablePlugin represents a plugin that can be installed

type AvailableSkill

type AvailableSkill struct {
	Name        string
	Description string
	Source      string // GitHub tree URL or repo#fragment
}

AvailableSkill represents a skill that can be installed

type CodeAgentInfo

type CodeAgentInfo struct {
	Agent      agent.Agent
	Exists     bool
	ConfigPath string
}

CodeAgentInfo represents information about a code agent

type MCPServer

type MCPServer struct {
	Name        string
	Description string
}

MCPServer represents an MCP server type

type MCPView

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

MCPView displays MCP server installation status across code agents

func NewMCPView

func NewMCPView() *MCPView

NewMCPView creates a new MCP view

func (*MCPView) GetInstalledCount

func (v *MCPView) GetInstalledCount() int

GetInstalledCount returns total MCP installations across all agents

func (*MCPView) GetSidebarSections

func (v *MCPView) GetSidebarSections() []components.SidebarSection

func (*MCPView) GetTotalCount

func (v *MCPView) GetTotalCount() int

GetTotalCount returns total possible installations (agents × MCP servers)

func (*MCPView) Init

func (v *MCPView) Init() tea.Cmd

func (*MCPView) Message

func (v *MCPView) Message() string

func (*MCPView) SetDimensions

func (v *MCPView) SetDimensions(width, height int)

func (*MCPView) ShortHelp

func (v *MCPView) ShortHelp() []components.FooterAction

func (*MCPView) Title

func (v *MCPView) Title() string

func (*MCPView) Update

func (v *MCPView) Update(msg tea.Msg) (View, tea.Cmd)

func (*MCPView) View

func (v *MCPView) View() string

type PluginsView

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

PluginsView displays plugins installation status across code agents

func NewPluginsView

func NewPluginsView() *PluginsView

NewPluginsView creates a new plugins view

func (*PluginsView) GetInstalledCount

func (v *PluginsView) GetInstalledCount() int

GetInstalledCount returns total plugin installations across all agents

func (*PluginsView) GetPluginsCount

func (v *PluginsView) GetPluginsCount() int

GetPluginsCount returns the total number of available plugins

func (*PluginsView) GetSidebarSections

func (v *PluginsView) GetSidebarSections() []components.SidebarSection

func (*PluginsView) GetTotalCount

func (v *PluginsView) GetTotalCount() int

GetTotalCount returns total possible installations (agents that support plugins x plugins)

func (*PluginsView) Init

func (v *PluginsView) Init() tea.Cmd

func (*PluginsView) Message

func (v *PluginsView) Message() string

func (*PluginsView) SetDimensions

func (v *PluginsView) SetDimensions(width, height int)

func (*PluginsView) ShortHelp

func (v *PluginsView) ShortHelp() []components.FooterAction

func (*PluginsView) Title

func (v *PluginsView) Title() string

func (*PluginsView) Update

func (v *PluginsView) Update(msg tea.Msg) (View, tea.Cmd)

func (*PluginsView) View

func (v *PluginsView) View() string

type SkillsView

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

SkillsView displays skills installation status across code agents

func NewSkillsView

func NewSkillsView() *SkillsView

NewSkillsView creates a new skills view

func (*SkillsView) GetInstalledCount

func (v *SkillsView) GetInstalledCount() int

GetInstalledCount returns total skill installations across all agents

func (*SkillsView) GetSidebarSections

func (v *SkillsView) GetSidebarSections() []components.SidebarSection

func (*SkillsView) GetSkillsCount

func (v *SkillsView) GetSkillsCount() int

GetSkillsCount returns the total number of available skills

func (*SkillsView) GetTotalCount

func (v *SkillsView) GetTotalCount() int

GetTotalCount returns total possible installations (agents that support skills × skills)

func (*SkillsView) Init

func (v *SkillsView) Init() tea.Cmd

func (*SkillsView) Message

func (v *SkillsView) Message() string

func (*SkillsView) SetDimensions

func (v *SkillsView) SetDimensions(width, height int)

func (*SkillsView) ShortHelp

func (v *SkillsView) ShortHelp() []components.FooterAction

func (*SkillsView) Title

func (v *SkillsView) Title() string

func (*SkillsView) Update

func (v *SkillsView) Update(msg tea.Msg) (View, tea.Cmd)

func (*SkillsView) View

func (v *SkillsView) View() string

type View

type View interface {
	// Init initializes the view
	Init() tea.Cmd

	// Update handles messages and returns updated view
	Update(msg tea.Msg) (View, tea.Cmd)

	// View renders the view content
	View() string

	// SetDimensions sets the view dimensions
	SetDimensions(width, height int)

	// Title returns the view title
	Title() string

	// ShortHelp returns keyboard shortcuts for footer
	ShortHelp() []components.FooterAction

	// GetSidebarSections returns sidebar content
	GetSidebarSections() []components.SidebarSection

	// Message returns any status message to display
	Message() string
}

View represents a tab view interface

Jump to

Keyboard shortcuts

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