Documentation
¶
Overview ¶
Package definition loads subagent definitions (agents/<name>.md files) and renders them for help output. It is split from runtime/subagent so consumers that only list or inspect definitions do not pull in the execution stack (runtime/agent, session stores, telemetry).
Index ¶
- func DefaultDirs() []string
- func Doc(ctx context.Context, ws workspace.Service, dirs []string, name string) (string, error)
- func Find(defs []subagent.Definition, name string) (subagent.Definition, bool)
- func Format(def capsubagent.Definition) string
- func FormatList(ctx context.Context, ws workspace.Service, dirs []string) (string, error)
- func Load(ctx context.Context, ws workspace.Service, dirs []string) ([]subagent.Definition, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDirs ¶
func DefaultDirs() []string
DefaultDirs returns the dirs scanned when config.dirs is empty.
func Doc ¶
Doc renders one definition's details, falling back to pluginkit kind docs when no agents/<name>.md file defines it.
func Find ¶
func Find(defs []subagent.Definition, name string) (subagent.Definition, bool)
Find looks up a definition by name, case-insensitively.
func Format ¶
func Format(def capsubagent.Definition) string
Format renders one definition as help text.
func FormatList ¶
FormatList renders the registered-definition list for /subagent help output.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.