Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleKeys ¶
HandleKeys routes keys in listing/home/searching states.
func SetAgentFilter ¶
func SetAgentFilter(h PromptHost, id string)
SetAgentFilter applies a single agent filter id ("all" or agent id).
func ShowAddPrompt ¶
func ShowAddPrompt(h PromptHost) (tea.Model, tea.Cmd)
ShowAddPrompt opens the add-skill source prompt.
func ShowFindPrompt ¶
func ShowFindPrompt(h PromptHost) (tea.Model, tea.Cmd)
ShowFindPrompt opens the search prompt for the active panel.
func ShowInitPrompt ¶
func ShowInitPrompt(h PromptHost) (tea.Model, tea.Cmd)
ShowInitPrompt opens the new-skill template prompt.
Types ¶
type Host ¶
type Host interface {
TeaModel() tea.Model
MainFilterState() list.FilterState
MainUpdate(tea.KeyMsg) tea.Cmd
ClearError()
TransitionTo(session.State) bool
ActivePanel() panel.Panel
StaticPreview() string
SetPreviewContent(string)
SyncSelectionPreview() tea.Cmd
ToggleHelpAll()
OpenHelpOverlay() (tea.Model, tea.Cmd)
OpenCommandPalette() (tea.Model, tea.Cmd)
SetFocusedList()
SetFocusedPreview()
PreviewUpdate(tea.KeyMsg) tea.Cmd
SwitchExtensionTab(reverse bool) tea.Cmd
StartListFilter() (tea.Model, tea.Cmd)
OpenAgentFilter() (tea.Model, tea.Cmd)
BeginScanAllCmd() tea.Cmd
ActiveTab() panel.Tab
}
Host exposes listing/home key handling needs from the app Model.
type PromptHost ¶
type PromptHost interface {
Host
ShowPrompt(label, placeholder string, action func(text string) tea.Cmd) tea.Cmd
HidePrompt()
SetStatus(string)
AgentIDs() []string
SetAgentIDs([]string)
RefreshActiveList()
SetMainListItems([]panel.Item)
ActiveAgents() []agent.Agent
Mutator() coordinator.Mutator
}
PromptHost extends Host with prompt and filter helpers used by listing flows.
Click to show internal directories.
Click to hide internal directories.