app

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: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core added in v0.1.1

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

Core holds session shell state: terminal size, paths, status/footer, agent filter, and scan batch tracking.

type Model

type Model struct {
	Core

	list.Pane
	// contains filtered or unexported fields
}

func New

func New(cwd, home string) *Model

func (*Model) ActiveAgents added in v0.1.1

func (m *Model) ActiveAgents() []agent.Agent

func (*Model) ActivePanel added in v0.1.1

func (m *Model) ActivePanel() panel.Panel

func (*Model) ActivePanelCanBind added in v0.1.1

func (m *Model) ActivePanelCanBind() bool

func (*Model) ActivePanelSearchInstall added in v0.1.1

func (m *Model) ActivePanelSearchInstall() bool

func (*Model) ActiveTab added in v0.1.1

func (m *Model) ActiveTab() panel.Tab

func (*Model) AgentDisplay added in v0.1.1

func (m *Model) AgentDisplay() string

func (*Model) AgentFilterListUpdate added in v0.1.1

func (m *Model) AgentFilterListUpdate(msg tea.Msg) tea.Cmd

func (*Model) AgentIDs added in v0.1.1

func (m *Model) AgentIDs() []string

func (*Model) AgentListIndex added in v0.1.1

func (m *Model) AgentListIndex() int

func (*Model) AgentListSelect added in v0.1.1

func (m *Model) AgentListSelect(i int)

func (*Model) AgentListSetSize added in v0.1.1

func (m *Model) AgentListSetSize(w, h int)

func (*Model) AgentListUpdate added in v0.1.1

func (m *Model) AgentListUpdate(msg tea.Msg) (list.Model, tea.Cmd)

func (*Model) AgentListView added in v0.1.1

func (m *Model) AgentListView() string

func (*Model) AgentSelectedItem added in v0.1.1

func (m *Model) AgentSelectedItem() (panel.Item, bool)

func (*Model) AllAgents added in v0.1.1

func (m *Model) AllAgents() []agent.Agent

func (*Model) AppWidth added in v0.1.1

func (m *Model) AppWidth() int

func (*Model) ApplyAgentFilter added in v0.1.1

func (m *Model) ApplyAgentFilter(id string)

func (*Model) ApplyMutationResult added in v0.1.1

func (m *Model) ApplyMutationResult(msg uimsg.MutationCompleted) (tea.Model, tea.Cmd)

func (*Model) BeginScanAllCmd added in v0.1.1

func (m *Model) BeginScanAllCmd() tea.Cmd

func (*Model) Binder added in v0.1.1

func (m *Model) Binder() coordinator.Binder

func (*Model) CWD added in v0.1.1

func (m *Model) CWD() string

func (*Model) CancelInstallFlow added in v0.1.1

func (m *Model) CancelInstallFlow(hint string)

func (*Model) ChromeHeights added in v0.1.1

func (m *Model) ChromeHeights() (int, int)

func (*Model) ClearError added in v0.1.1

func (m *Model) ClearError()

func (*Model) ClearStaleLoadingIfIdle added in v0.1.1

func (m *Model) ClearStaleLoadingIfIdle()

func (*Model) CommandSpecs added in v0.1.1

func (m *Model) CommandSpecs() []commands.Spec

func (*Model) ContentWidth added in v0.1.1

func (m *Model) ContentWidth() int

func (*Model) ErrMsg added in v0.1.1

func (m *Model) ErrMsg() string

func (*Model) FindSkillByName added in v0.1.1

func (m *Model) FindSkillByName(name string) (*skilldomain.Skill, bool)

func (*Model) FlashFooter added in v0.1.1

func (m *Model) FlashFooter(s string) tea.Cmd

func (*Model) FullHelp

func (m *Model) FullHelp() [][]key.Binding

func (*Model) HandleInspectSelected added in v0.1.1

func (m *Model) HandleInspectSelected() (tea.Model, tea.Cmd)

func (*Model) HandleMouse added in v0.1.1

func (m *Model) HandleMouse(msg tea.MouseMsg) (tea.Model, tea.Cmd)

func (*Model) HandlePaletteAction added in v0.1.1

func (m *Model) HandlePaletteAction(msg uimsg.MsgCommandPalette) (tea.Model, tea.Cmd)

func (*Model) Height added in v0.1.1

func (m *Model) Height() int

func (*Model) HidePrompt added in v0.1.1

func (m *Model) HidePrompt()

func (*Model) Home added in v0.1.1

func (m *Model) Home() string

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) InstallHandleBackgroundFrame added in v0.1.1

func (m *Model) InstallHandleBackgroundFrame(msg progress.FrameMsg) (tea.Cmd, bool)

func (*Model) InstallHandleUIMsg added in v0.1.1

func (m *Model) InstallHandleUIMsg(msg tea.Msg) tea.Cmd

func (*Model) InstallWizardHandleKey added in v0.1.1

func (m *Model) InstallWizardHandleKey(msg tea.KeyMsg) (tea.Model, tea.Cmd)

func (*Model) InstallWizardOpen added in v0.1.1

func (m *Model) InstallWizardOpen() bool

func (*Model) InstallWizardSearching added in v0.1.1

func (m *Model) InstallWizardSearching() bool

func (*Model) IsBinding added in v0.1.1

func (m *Model) IsBinding() bool

func (*Model) IsConfirming added in v0.1.1

func (m *Model) IsConfirming() bool

func (*Model) IsFilteringAgent added in v0.1.1

func (m *Model) IsFilteringAgent() bool

func (*Model) IsHelpOverlay added in v0.1.1

func (m *Model) IsHelpOverlay() bool

func (*Model) IsInspecting added in v0.1.1

func (m *Model) IsInspecting() bool

func (*Model) LastState added in v0.1.1

func (m *Model) LastState() session.State

func (*Model) ListFilterStatusLine added in v0.1.1

func (m *Model) ListFilterStatusLine() string

func (*Model) ListPane added in v0.1.1

func (m *Model) ListPane() *applist.Pane

func (*Model) MCPMembersForConfigKey added in v0.1.1

func (m *Model) MCPMembersForConfigKey(key string) []*mcpdomain.Server

func (*Model) MainFallthrough added in v0.1.1

func (m *Model) MainFallthrough(msg tea.Msg) (tea.Cmd, tea.Cmd)

func (*Model) MainFilterState added in v0.1.1

func (m *Model) MainFilterState() list.FilterState

func (*Model) MainUpdate added in v0.1.1

func (m *Model) MainUpdate(msg tea.KeyMsg) tea.Cmd

func (*Model) Mutator added in v0.1.1

func (m *Model) Mutator() coordinator.Mutator

func (*Model) OpenAgentFilter added in v0.1.1

func (m *Model) OpenAgentFilter() (tea.Model, tea.Cmd)

func (*Model) OpenCommandPalette added in v0.1.1

func (m *Model) OpenCommandPalette() (tea.Model, tea.Cmd)

func (*Model) OpenHelpOverlay added in v0.1.1

func (m *Model) OpenHelpOverlay() (tea.Model, tea.Cmd)

func (*Model) PaneSizes added in v0.1.1

func (m *Model) PaneSizes() (int, int, int, int)

func (*Model) PaneSizesFor added in v0.1.1

func (m *Model) PaneSizesFor(mainHeight int) (int, int, int, int)

func (*Model) PreviewFileCmd added in v0.1.1

func (m *Model) PreviewFileCmd(path string) tea.Cmd

func (*Model) PreviewGenPtr added in v0.1.1

func (m *Model) PreviewGenPtr() *int

func (*Model) PreviewGeneration added in v0.1.1

func (m *Model) PreviewGeneration() int

func (*Model) PreviewUpdate added in v0.1.1

func (m *Model) PreviewUpdate(msg tea.KeyMsg) tea.Cmd

func (*Model) PreviewWidth added in v0.1.1

func (m *Model) PreviewWidth() int

func (*Model) PromptActive added in v0.1.1

func (m *Model) PromptActive() bool

func (*Model) RefreshActiveList added in v0.1.1

func (m *Model) RefreshActiveList()

func (*Model) ReportError added in v0.1.1

func (m *Model) ReportError(err error)

func (*Model) ResizeComponents added in v0.1.1

func (m *Model) ResizeComponents()

func (*Model) ResizePaletteInput added in v0.1.1

func (m *Model) ResizePaletteInput()

func (*Model) SelectMCPByName added in v0.1.1

func (m *Model) SelectMCPByName(name string) bool

func (*Model) SelectSkillByName added in v0.1.1

func (m *Model) SelectSkillByName(name string) bool

func (*Model) SelectedListItem added in v0.1.1

func (m *Model) SelectedListItem() (panel.Item, bool)

func (*Model) SetAgentIDs added in v0.1.1

func (m *Model) SetAgentIDs(ids []string)

func (*Model) SetAgentListItems added in v0.1.1

func (m *Model) SetAgentListItems(items []list.Item)

func (*Model) SetFocusedList added in v0.1.1

func (m *Model) SetFocusedList()

func (*Model) SetFocusedPreview added in v0.1.1

func (m *Model) SetFocusedPreview()

func (*Model) SetFooterContext added in v0.1.1

func (m *Model) SetFooterContext(s string)

func (*Model) SetHelpShowAll added in v0.1.1

func (m *Model) SetHelpShowAll(show bool)

func (*Model) SetMainListItems added in v0.1.1

func (m *Model) SetMainListItems(items []panel.Item)

func (*Model) SetPreviewBody added in v0.1.1

func (m *Model) SetPreviewBody(body string)

func (*Model) SetPreviewContent added in v0.1.1

func (m *Model) SetPreviewContent(s string)

func (*Model) SetPreviewError added in v0.1.1

func (m *Model) SetPreviewError(err string)

func (*Model) SetStatus added in v0.1.1

func (m *Model) SetStatus(s string)

func (*Model) SetTreeRoot added in v0.1.1

func (m *Model) SetTreeRoot(path string)

func (*Model) SetWindowSize added in v0.1.1

func (m *Model) SetWindowSize(w, h int)

func (*Model) ShortHelp

func (m *Model) ShortHelp() []key.Binding

func (*Model) ShowPrompt added in v0.1.1

func (m *Model) ShowPrompt(label, placeholder string, action func(text string) tea.Cmd) tea.Cmd

func (*Model) SpinnerTick added in v0.1.1

func (m *Model) SpinnerTick(msg spinner.TickMsg) tea.Cmd

func (*Model) StartListFilter added in v0.1.1

func (m *Model) StartListFilter() (tea.Model, tea.Cmd)

func (*Model) State added in v0.1.1

func (m *Model) State() session.State

func (*Model) StaticPreview added in v0.1.1

func (m *Model) StaticPreview() string

func (*Model) Styles added in v0.1.1

func (m *Model) Styles() theme.Styles

func (*Model) SwitchExtensionTab added in v0.1.1

func (m *Model) SwitchExtensionTab(reverse bool) tea.Cmd

func (*Model) SyncSelectionPreview added in v0.1.1

func (m *Model) SyncSelectionPreview() tea.Cmd

func (*Model) TeaModel added in v0.1.1

func (m *Model) TeaModel() tea.Model

func (*Model) ToggleHelpAll added in v0.1.1

func (m *Model) ToggleHelpAll()

func (*Model) TransitionTo added in v0.1.1

func (m *Model) TransitionTo(s session.State) bool

func (*Model) TreeSelected added in v0.1.1

func (m *Model) TreeSelected() applist.TreeNode

func (*Model) TreeUpdate added in v0.1.1

func (m *Model) TreeUpdate(msg tea.Msg) (applist.FileTree, tea.Cmd)

func (*Model) Update

func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Model) View

func (m *Model) View() string

func (*Model) Width added in v0.1.1

func (m *Model) Width() int

type SessionState

type SessionState = session.State

SessionState is the Bubble Tea session mode (re-exported from session package).

Directories

Path Synopsis
Package session defines TUI session states and valid transitions.
Package session defines TUI session states and valid transitions.
state
Package strutil holds small string helpers for the TUI.
Package strutil holds small string helpers for the TUI.
Package uikeys holds shared Bubble Tea key bindings for the TUI.
Package uikeys holds shared Bubble Tea key bindings for the TUI.
Package uimsg defines Bubble Tea messages shared across app layers.
Package uimsg defines Bubble Tea messages shared across app layers.

Jump to

Keyboard shortcuts

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