listing

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleKeys

func HandleKeys(h Host, msg tea.KeyMsg) (tea.Model, tea.Cmd)

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
	SetFooterContext(string)
}

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)
	FlashFooter(string) tea.Cmd
	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.

Jump to

Keyboard shortcuts

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