plugins

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentPlugin

type AgentPlugin struct {
	Name        string            `toml:"name"`
	Alias       string            `toml:"alias"`
	Command     string            `toml:"command"`
	Description string            `toml:"description"`
	Env         map[string]string `toml:"env"`
	Defaults    struct {
		Tags []string `toml:"tags"`
	} `toml:"defaults"`
}

AgentPlugin defines a custom agent type loaded from config

func LoadAgentPlugins

func LoadAgentPlugins(dir string) ([]AgentPlugin, error)

LoadAgentPlugins scans the given directory for .toml files and loads them.

type CommandPlugin

type CommandPlugin struct {
	Name        string
	Path        string
	Description string
	Usage       string
}

CommandPlugin represents an executable script plugin

func LoadCommandPlugins

func LoadCommandPlugins(dir string) ([]CommandPlugin, error)

LoadCommandPlugins scans directory for executable files

func (*CommandPlugin) Execute

func (p *CommandPlugin) Execute(args []string, env map[string]string) error

Execute runs the plugin command

Jump to

Keyboard shortcuts

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