Documentation
¶
Index ¶
- Constants
- func HeightForItems(items []list.Item) int
- func PanelToListItems(items []panel.Item) []bubbleslist.Item
- func PreviewFileCmd(h BridgeHost, path string) tea.Cmd
- func SelectMCPByName(h BridgeHost, name string) bool
- func SelectSkillByName(h BridgeHost, name string) bool
- func SetMainItemsFromPanel(h BridgeHost, items []panel.Item)
- func SyncSelectionPreview(h BridgeHost) tea.Cmd
- type BridgeHost
- type Delegate
- type FileTree
- type Pane
- func (p *Pane) ApplyTheme(styles theme.Styles)
- func (p *Pane) ConfigureKeys()
- func (p *Pane) PreviewWidth(fallback int) int
- func (p *Pane) Resize(lw, lh, rw, rh int)
- func (p *Pane) SelectedItem() (panel.Item, bool)
- func (p *Pane) SetMainItems(items []list.Item)
- func (p *Pane) SetOverlayItems(items []list.Item)
- type TreeNode
Constants ¶
const WelcomePreview = `` /* 389-byte string literal not displayed */
WelcomePreview is the default preview content before any selection.
Variables ¶
This section is empty.
Functions ¶
func HeightForItems ¶
HeightForItems picks a delegate row height for the given list items.
func PanelToListItems ¶
func PanelToListItems(items []panel.Item) []bubbleslist.Item
PanelToListItems converts panel rows for bubbles/list.
func PreviewFileCmd ¶
func PreviewFileCmd(h BridgeHost, path string) tea.Cmd
PreviewFileCmd loads markdown preview for a file path in the inspect tree.
func SelectMCPByName ¶
func SelectMCPByName(h BridgeHost, name string) bool
SelectMCPByName selects the named MCP row on the active list.
func SelectSkillByName ¶
func SelectSkillByName(h BridgeHost, name string) bool
SelectSkillByName switches to listing and selects the named skill row.
func SetMainItemsFromPanel ¶
func SetMainItemsFromPanel(h BridgeHost, items []panel.Item)
SetMainItemsFromPanel converts panel rows and applies them to the main list.
func SyncSelectionPreview ¶
func SyncSelectionPreview(h BridgeHost) tea.Cmd
SyncSelectionPreview refreshes the preview pane for the current main-list selection.
Types ¶
type BridgeHost ¶
type BridgeHost interface {
ListPane() *Pane
ActiveTab() panel.Tab
ActivePanel() panel.Panel
AppWidth() int
Styles() theme.Styles
TransitionTo(session.State) bool
RefreshActiveList()
FindSkillByName(string) (*skilldomain.Skill, bool)
}
BridgeHost exposes list/preview selection helpers on the app Model.
type Delegate ¶
type Delegate struct {
// contains filtered or unexported fields
}
Delegate renders panel list rows.
func NewDelegate ¶
NewDelegate returns a list item delegate with default row height.
type FileTree ¶
type FileTree struct {
// contains filtered or unexported fields
}
FileTree is the inspect-mode file browser.
func NewFileTree ¶
NewFileTree returns an empty file tree list.
func (*FileTree) SelectedNode ¶
SelectedNode returns the currently selected tree row.
type Pane ¶
type Pane struct {
Main list.Model
MainDel *Delegate
Agent list.Model
AgentDel *Delegate
Preview viewport.Model
PreviewBody string
PreviewGen int
Tree FileTree
}
Pane owns the main list, overlay list (bind / agent filter), preview, and inspect tree.
func (*Pane) ApplyTheme ¶
func (*Pane) ConfigureKeys ¶
func (p *Pane) ConfigureKeys()
ConfigureKeys wires bubbletea keymaps from uikeys.
func (*Pane) PreviewWidth ¶
PreviewWidth returns preview width or fallback when unset.