agents

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func ByAdapter(adapter string) (Known, bool)

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 ByName

func ByName(name string) (Known, bool)

ByName returns the agent with the given registry key, or ok=false.

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

func (k Known) PrimaryBinary() string

PrimaryBinary returns the canonical CLI binary to probe, or "" if none.

Jump to

Keyboard shortcuts

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