bind

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentDesc

func AgentDesc(a agent.Agent) string

AgentDesc returns a one-line description for an agent in bind/filter lists.

func ChoicesToListItems

func ChoicesToListItems(choices []extension.Choice, projectRoot, home string) []list.Item

ChoicesToListItems renders bind choices for the agent overlay list.

Types

type Feature

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

Feature owns the agent bind overlay.

func New

func New(host Host) *Feature

New returns a bind feature wired to host.

func (*Feature) Active

func (f *Feature) Active() bool

func (*Feature) Clear

func (f *Feature) Clear()

func (*Feature) Init

func (f *Feature) Init() tea.Cmd

func (*Feature) Name

func (f *Feature) Name() string

func (*Feature) RenderMainOverlay

func (f *Feature) RenderMainOverlay() string

func (*Feature) SessionAgents

func (f *Feature) SessionAgents() []extension.Choice

SessionAgents exposes agents for tests in the app package.

func (*Feature) StartFromItem

func (f *Feature) StartFromItem(item panel.Item) (tea.Model, tea.Cmd)

func (*Feature) SyncHint

func (f *Feature) SyncHint()

func (*Feature) Update

func (f *Feature) Update(msg tea.Msg) (tea.Cmd, bool)

func (*Feature) View

func (f *Feature) View(width, height int) string

type Host

type Host interface {
	feature.BaseHost
	IsBinding() bool
	ActivePanelCanBind() bool
	CWD() string
	Home() string
	Binder() coordinator.Binder
	MCPMembersForConfigKey(key string) []*mcpdomain.Server
	SetAgentListItems([]list.Item)
	AgentListIndex() int
	AgentListSelect(int)
	AgentListUpdate(tea.Msg) (list.Model, tea.Cmd)
	BeginScanAllCmd() tea.Cmd
	FlashFooter(string) tea.Cmd
	ReportError(error)
	ErrMsg() string
	AgentListSetSize(w, h int)
	AgentListView() string
}

Host exposes bind-dialog needs from the app Model.

Jump to

Keyboard shortcuts

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