Documentation
¶
Index ¶
- Constants
- type DisabledSet
- type LifecycleToolResolver
- type MPRuntime
- type Manager
- func (m *Manager) ChatTools() []tool.Tool
- func (m *Manager) Close()
- func (m *Manager) DisabledSet() DisabledSet
- func (m *Manager) FindSkill(name string) (skill.Definition, bool)
- func (m *Manager) Reload(ctx context.Context) error
- func (m *Manager) SetDisabled(ctx context.Context, kind, name string, disabled bool) error
- func (m *Manager) Snapshot() Snapshot
- func (m *Manager) Start(ctx context.Context) error
- type Options
- type PluginSourceDir
- type Snapshot
- type Source
Constants ¶
View Source
const ( SourceWorkspace = plugin.SourceWorkspace SourceUser = plugin.SourceUser SourceBundled = plugin.SourceBundled )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisabledSet ¶ added in v0.14.0
type DisabledSet struct {
Skills []string `json:"skills,omitempty"`
Plugins []string `json:"plugins,omitempty"`
MCPServers []string `json:"mcp_servers,omitempty"`
}
DisabledSet tracks which extensions are disabled by the user.
type LifecycleToolResolver ¶ added in v0.28.5
LifecycleToolResolver returns the tool registered under name. The extensions Manager passes in a small Resolver so lifecycle hooks can only see a curated subset of the user-surface registry; no caller has to hand the manager a full *tool.Registry just for hook plumbing.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) DisabledSet ¶ added in v0.14.0
func (m *Manager) DisabledSet() DisabledSet
DisabledSet returns the current disabled extensions.
func (*Manager) SetDisabled ¶ added in v0.14.0
SetDisabled enables or disables an extension and reloads.
type Options ¶
type Options struct {
WorkspaceDir string
SkillsEnabled bool
PluginsEnabled bool
PluginsAllowMCPServers bool
SkillSources []skill.SourceDir
PluginSources []PluginSourceDir
MCPBaseServers []config.MCPServer
MCPRuntime MPRuntime
WatchSkills bool
WatchPlugins bool
WatchDebounce time.Duration
PluginConfig map[string]map[string]any // per-plugin config keyed by plugin ID
// LifecycleToolResolver is consulted by plugin lifecycle hooks to
// look up the builtin tool to invoke. May be nil; nil disables
// lifecycle hook execution and turns each declared hook into a
// single skip diagnostic. Wiring is the caller's responsibility —
// extensions/Manager intentionally does not own the user-surface
// registry.
LifecycleToolResolver LifecycleToolResolver
}
type PluginSourceDir ¶
Click to show internal directories.
Click to hide internal directories.