Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2026 Changes in this version + func ExpandMemoryImports(body string, fragments map[string]string) string + func MemoryHasFragments(home string) bool + func ParseFrontmatter(data []byte) (map[string]any, string, error) + func ParseFrontmatterWithReport(data []byte) (fm map[string]any, body string, lenient bool, err error) + func ValidateComponentID(kind, id string) error + func WriteCommand(home string, cm Command) error + func WriteHooks(home, event string, hooks []Hook) error + func WriteLSP(home string, ls LSPServer) error + func WriteMCP(home, id string, m MCPServer) error + func WriteMarketplace(home, name string, m Marketplace) error + func WriteMemory(home string, m Memory) error + func WritePlugin(home, id string, p Plugin) error + func WriteSkill(home string, sk Skill) error + func WriteSubagent(home string, sa Subagent) error + type Agent struct + Enabled bool + Scope string + type Canonical struct + Commands []Command + Config Config + Hooks []Hook + LSPServers []LSPServer + MCPServers []MCPServer + Marketplaces []Marketplace + Memory Memory + Plugins []Plugin + Project *Canonical + Skills []Skill + Subagents []Subagent + func Load(fs afero.Fs, home string) (Canonical, error) + type Command struct + Body string + Frontmatter map[string]any + Name string + type Config struct + Agents map[string]Agent + Secrets SecretsConfig + Updates UpdateDefaults + type Hook struct + Command string + Event string + Matcher string + Type string + type LSPServer struct + ID string + Spec LSPServerSpec + func ReadLSP(home, id string) (ls LSPServer, ok bool, err error) + type LSPServerSpec struct + Agents []string + Args []string + Command string + Enabled *bool + Env map[string]string + Extra map[string]any + Headers map[string]string + URL string + type MCPServer struct + ID string + Server MCPServerSpec + func ReadMCP(home, id string) (m MCPServer, ok bool, err error) + type MCPServerSpec struct + Agents []string + Args []string + Command string + Enabled *bool + Env map[string]string + Extra map[string]any + Headers map[string]string + Type string + URL string + type Marketplace struct + Marketplace MarketplaceSpec + Name string + type MarketplaceSpec struct + DefaultUpdateMode string + Ref string + URL string + type Memory struct + Body string + Fragments map[string]string + func CollapseMemoryMarkers(dest string) (Memory, bool, error) + type Plugin struct + ID string + Plugin PluginSpec + type PluginSpec struct + Agents []string + Disabled bool + ID string + ManifestSHA string + Update string + Version string + type SecretsConfig struct + Backend string + File string + IdentityFile string + Recipient string + type Skill struct + Body string + Files []SkillFile + Frontmatter map[string]any + Name string + type SkillFile struct + Content []byte + Mode uint32 + Path string + func ReadSkillFiles(fs afero.Fs, skillDir string) ([]SkillFile, error) + type Subagent struct + Body string + Frontmatter map[string]any + Name string + type UpdateDefaults struct + DefaultInterval string + DefaultMode string