agentcatalog

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 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 Known

func Known(id string) bool

Known reports whether an ID names a family Sidecar can start.

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 Families

func Families() []Family

Families returns every selectable family in picker order.

func Find

func Find(id string) (Family, bool)

Find returns the family with an ID, if it is one Sidecar knows.

func Resolve

func Resolve(allowlist []string) []Family

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.

Jump to

Keyboard shortcuts

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