Versions in this module Expand all Collapse all v1 v1.0.0 Oct 7, 2026 Changes in this version + func AgreeToPlugin(src plugin.Source, commit string, surface Surface) error + func EditConsents(edit func(*Consents)) error + func LatestCommit(ctx context.Context, src plugin.Source) (string, error) + func PluginBase(scope Scope, root string) string + func ReadPlugin(ctx context.Context, src plugin.Source, commit string) (p *plugin.Plugin, got string, problems []error, err error) + func SweepCache() error + type Consent struct + Declined Surface + Denied bool + Surface Surface + func (c Consent) Decided(surface, shown, agreed Surface) Consent + func (c Consent) Standing(surface Surface) Standing + type Consents struct + Plugins map[string]PluginConsent + Projects map[string]Consent + func ReadConsents() (Consents, error) + type Hook struct + Event string + Plugin string + Scope Scope + func (h Hook) Detail() string + type Item struct + Detail string + Key string + Kind string + func NewItem(kind, s string) Item + type MCPServer struct + Name string + Plugin string + Scope Scope + func (srv MCPServer) Detail() string + type Options struct + Consents Consents + Cwd string + Layers config.Layers + PluginDirs []string + TrustAll bool + type Plugin struct + Commit string + Err error + New Surface + Scope Scope + Source string + Src plugin.Source + State PluginState + Surface Surface + func (pl Plugin) Is(ref string) bool + func (pl Plugin) Title() string + type PluginConsent struct + Commit string + Surface Surface + type PluginState string + const PluginBroken + const PluginNotCached + const PluginNotInstalled + const PluginOn + const PluginShadowed + const PluginUntrusted + const PluginWaiting + type Scope string + const Builtin + const Project + const Session + const User + type Set struct + Agents []subagent.AgentDefinition + Granted config.Settings + Hooks []Hook + MCP []MCPServer + Plugins []Plugin + Problems []error + Shadowed []Shadow + Skills []skill.Spec + Trust Trust + func Load(o Options) *Set + func (s *Set) HooksConfig() config.HooksConfig + func (s *Set) MCPConfig() map[string]config.MCPServer + type Shadow struct + Kind string + Lost string + Name string + Won string + type Standing struct + Agreed Surface + Declined Surface + Surface Surface + func (s Standing) Ask() Surface + func (s Standing) Held() Surface + type Surface []Item + func PluginSurface(p *plugin.Plugin) Surface + func (s Surface) Has(it Item) bool + func (s Surface) HasAll(items []Item) bool + func (s Surface) Intersect(other Surface) Surface + func (s Surface) Missing(agreed Surface) Surface + func (s Surface) With(items ...Item) Surface + type Trust struct + Denied bool + ForRun bool + Root string + func (t Trust) Ask() Surface