plugin

package
v0.0.0-...-f56615f Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package plugin loads trusted local extension bundles. A plugin may contribute MCP servers, hooks, instructions, and skills without changing SuperCode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveManifest

func SaveManifest(path string, value Manifest) error

Types

type Bundle

type Bundle struct {
	Names      []string
	Overlay    config.File
	SkillRoots []string
}

func Discover

func Discover(roots ...string) (Bundle, error)

type Manifest

type Manifest struct {
	Name         string                      `yaml:"name"`
	Version      string                      `yaml:"version,omitempty"`
	Enabled      *bool                       `yaml:"enabled,omitempty"`
	Instructions string                      `yaml:"instructions,omitempty"`
	Skills       string                      `yaml:"skills,omitempty"`
	MCPServers   map[string]config.MCPServer `yaml:"mcp_servers,omitempty"`
	Hooks        map[string][]config.Hook    `yaml:"hooks,omitempty"`
}

func LoadManifest

func LoadManifest(path string) (Manifest, error)

Jump to

Keyboard shortcuts

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