Documentation
¶
Index ¶
- Constants
- type DisabledSet
- 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 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 PluginSourceDir ¶
Click to show internal directories.
Click to hide internal directories.