Documentation
¶
Overview ¶
Package agents is the single source of truth for the agent CLIs PANDA can delegate to. It maps each agent's registry key to its adapter script, the binary names to probe on PATH, and install/update guidance (download link + install command). The CLI (`panda agents`), the capability-card generator (`panda detect`), the web settings API (webui/panel), and the commander's availability probe all read from here instead of each hardcoding their own table, so adding an agent is a single-entry change.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Known ¶
type Known struct {
// Name is the registry key (also the capability-card agent key), e.g.
// "grok_build". It is stable and used for routing.
Name string
// Adapter is the adapter script under adapters/, e.g. "grok_build.py".
Adapter string
// Binaries are the CLI binary names to probe, in preference order. The
// first one is the canonical probe binary (also the availability probe
// fallback when a card declares no install_check).
Binaries []string
// DisplayName is the human-readable label shown in the CLI/Web UI.
DisplayName string
// InstallHint is a one-line shell command to install/update the CLI.
// Empty when the agent has no public installer (self-hosted/custom CLIs).
InstallHint string
// InstallURL is the documentation or download page. Empty when unknown.
InstallURL string
}
Known describes one agent CLI PANDA recognises. It is deliberately static data with no I/O: probes, adapter names and guidance are derived from it by the consumers that need them.
func ByAdapter ¶
ByAdapter returns the agent whose adapter script is adapter, or ok=false. Used by the commander to derive a probe binary when a card declares no install_check.
func Registry ¶
func Registry() []Known
Registry returns every known agent in deterministic (name-sorted) order. The slice is a copy, so callers may reorder or filter freely.
func (Known) PrimaryBinary ¶
PrimaryBinary returns the canonical CLI binary to probe, or "" if none.