Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FS embed.FS
FS contains the embedded default templates for installation and generation.
ReadFunc is the function used by Read. Tests can replace it to simulate errors.
var WalkFunc = func(root string, fn fs.WalkDirFunc) error { return fs.WalkDir(FS, root, fn) }
WalkFunc is the function used by Walk. Tests can replace it to simulate errors.
Functions ¶
func IsSafeCLISkillCatalogID ¶ added in v0.24.0
IsSafeCLISkillCatalogID returns true for single-segment catalog ids that can be used as .agent-layer/skills/<id>/ directory names.
Types ¶
type CLISkillCatalogEntry ¶ added in v0.24.0
type CLISkillCatalogEntry struct {
ID string
Name string
Binary string `toml:"binary"`
OwnershipMarker string `toml:"ownership_marker"`
Members []string `toml:"members"`
}
CLISkillCatalogEntry describes one CLI skill catalog option. A non-empty Members list is a grouped entry: the catalog id is the checkbox identity only, and each member is a destination directory copied from embedded skills/<member>/ rather than skills-catalog/<id>/. Binary names the external CLI the skill requires, if any.
func LoadCLISkillCatalog ¶ added in v0.24.0
func LoadCLISkillCatalog() ([]CLISkillCatalogEntry, error)
LoadCLISkillCatalog parses the embedded cli-skills-catalog.toml file into typed catalog entries. Errors loudly when the catalog is missing, malformed, contains no entries, or contains an entry with an invalid or duplicate id, name, or member.