extensions

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 MPRuntime

type MPRuntime interface {
	SetServers(servers []config.MCPServer)
	BuildTools(ctx context.Context) ([]tool.Tool, error)
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(opts Options) (*Manager, error)

func (*Manager) ChatTools

func (m *Manager) ChatTools() []tool.Tool

func (*Manager) Close

func (m *Manager) Close()

func (*Manager) FindSkill

func (m *Manager) FindSkill(name string) (skill.Definition, bool)

func (*Manager) Reload

func (m *Manager) Reload(ctx context.Context) error

func (*Manager) Snapshot

func (m *Manager) Snapshot() Snapshot

func (*Manager) Start

func (m *Manager) Start(ctx context.Context) error

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
}

type PluginSourceDir

type PluginSourceDir struct {
	Source Source
	Dir    string
}

type Snapshot

type Snapshot struct {
	Version     int64
	Skills      []skill.Definition
	Plugins     []plugin.Definition
	SkillPrompt string
	MCPServers  []config.MCPServer
	Diagnostics []string
}

type Source

type Source = plugin.Source

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL