plugins

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPluginList

func FormatPluginList(plugins []Plugin) string

FormatPluginList formats plugins for display

Types

type Hook

type Hook struct {
	Event   string // "preToolUse", "postToolUse"
	Matcher string
	Command string
}

Hook is a hook provided by a plugin

type Manifest

type Manifest struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Version     string `json:"version"`
}

Manifest is the plugin.json format

type Plugin

type Plugin struct {
	ID          string   `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Version     string   `json:"version"`
	Enabled     bool     `json:"enabled"`
	Source      string   `json:"source"` // "builtin", "user", "project"
	Dir         string   `json:"-"`
	Skills      []Skill  `json:"-"`
	Hooks       []Hook   `json:"-"`
	Commands    []string `json:"-"`
}

Plugin represents a loaded plugin

func LoadAll

func LoadAll(configDir string) []Plugin

LoadAll discovers and loads plugins from all sources

type Skill

type Skill struct {
	Name        string
	Description string
	Content     string
}

Skill is a skill provided by a plugin

Jump to

Keyboard shortcuts

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