Versions in this module Expand all Collapse all v0 v0.12.0 Mar 9, 2026 v0.11.0 Mar 2, 2026 Changes in this version + const DefaultDirMode + const DefaultFileMode + var DefaultRegistry = NewRegistry() + func AdapterNames() []string + func Convert(data []byte, from, to string) ([]byte, error) + func Register(adapter Adapter) + func WriteCanonicalFile(plugin *Plugin, path string) error + type Adapter interface + DefaultPaths func() []string + Marshal func(plugin *Plugin) ([]byte, error) + Name func() string + Parse func(data []byte) (*Plugin, error) + ReadFile func(path string) (*Plugin, error) + WriteFile func(plugin *Plugin, path string) error + WritePlugin func(plugin *Plugin, dir string) error + func GetAdapter(name string) (Adapter, bool) + type Dependency struct + Command string + Name string + Optional bool + type MCPServer struct + Args []string + Command string + Cwd string + Env map[string]string + type MarshalError struct + Err error + Format string + func (e *MarshalError) Error() string + func (e *MarshalError) Unwrap() error + type ParseError struct + Err error + Format string + Path string + func (e *ParseError) Error() string + func (e *ParseError) Unwrap() error + type Plugin struct + Agents string + Author string + Commands string + Context string + Dependencies []Dependency + Description string + Homepage string + Hooks string + License string + MCPServers map[string]MCPServer + Name string + Repository string + Skills string + Version string + func NewPlugin(name, version, description string) *Plugin + func ReadCanonicalFile(path string) (*Plugin, error) + func (p *Plugin) AddDependency(name, command string) + func (p *Plugin) AddMCPServer(name string, server MCPServer) + func (p *Plugin) AddOptionalDependency(name, command string) + type ReadError struct + Err error + Path string + func (e *ReadError) Error() string + func (e *ReadError) Unwrap() error + type Registry struct + func NewRegistry() *Registry + func (r *Registry) AdapterNames() []string + func (r *Registry) Convert(data []byte, from, to string) ([]byte, error) + func (r *Registry) GetAdapter(name string) (Adapter, bool) + func (r *Registry) Register(adapter Adapter) + type ValidationError struct + Field string + Message string + func (e *ValidationError) Error() string + type WriteError struct + Err error + Path string + func (e *WriteError) Error() string + func (e *WriteError) Unwrap() error