Documentation
¶
Overview ¶
Package agentcatalog is the single description of the agent families Sidecar can start: their order in a creation picker, what to call them, and the command each one launches by default.
It is a leaf package on purpose. The workspace plugin builds its creation pickers from it, and Configuration lists the same families without importing the plugin (the plugin imports the app, and the app imports Configuration). One table, two readers, no drift.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Label ¶ added in v1.2.1
Label is the picker display name for an agent id.
"" is "None (attach only)". Catalog IDs use Family.Name. "shell" is "Project Shell". Unknown IDs pass through.
func ResolvePicker ¶ added in v1.2.1
ResolvePicker is the creation-picker list: Resolve's allowlist, then None (empty string) placed first for shells and last for worktrees.
Empty and unrecognized allowlists follow Resolve: every catalog family.
Types ¶
type Family ¶
type Family struct {
// ID is the stored identity — the value written to plugins.workspace.agents,
// agentStart, and defaultAgentType.
ID string
// Name is the full display name.
Name string
// Short is the compact label a settings row or a selector uses.
Short string
// Command is the executable Sidecar launches when no override is configured.
Command string
}
Family is one agent family Sidecar offers when work is created.
func Resolve ¶
Resolve is the allowlist rule creation uses, stated once.
An empty allowlist means every family: a user who has never touched the setting is offered everything, and so is a user whose allowlist names nothing Sidecar recognizes. Otherwise the allowlist is honoured in its own order, with unknown and duplicate entries dropped.