filter

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(h Host) (tea.Model, tea.Cmd)

Open enters agent-filter mode and populates the overlay list.

func RenderDialog

func RenderDialog(h Host) string

RenderDialog builds the modal body (tests and overlay).

func RenderMainOverlay

func RenderMainOverlay(h Host) string

RenderMainOverlay places the dialog in the main pane.

Types

type Feature

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

Feature owns the agent-filter overlay (open, render, key routing).

func New

func New(host Host) *Feature

New returns an agent-filter feature wired to host.

func (*Feature) Active

func (f *Feature) Active() bool

func (*Feature) Init

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

func (*Feature) Name

func (f *Feature) Name() string

func (*Feature) Open

func (f *Feature) Open() (tea.Model, tea.Cmd)

Open enters agent-filter mode.

func (*Feature) RenderMainOverlay

func (f *Feature) RenderMainOverlay() string

RenderMainOverlay renders the filter dialog in the main area.

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
	IsFilteringAgent() bool
	LastState() session.State
	AgentIDs() []string
	ActiveTab() panel.Tab
	AllAgents() []agent.Agent
	CWD() string
	Home() string
	SetAgentListItems(items []list.Item)
	AgentListSelect(i int)
	AgentListSetSize(w, h int)
	AgentListView() string
	PaneSizes() (leftW, mainH, rightW, rightH int)
	AgentSelectedItem() (panel.Item, bool)
	AgentFilterListUpdate(tea.Msg) tea.Cmd
	ApplyAgentFilter(id string)
	RefreshActiveList()
	AgentDisplay() string
	FlashFooter(string) tea.Cmd
	SyncSelectionPreview() tea.Cmd
}

Host exposes agent-filter overlay needs from the app Model.

Jump to

Keyboard shortcuts

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