commands

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMCPPrompt

func GetMCPPrompt(cfg *config.ConfigStore, clientID, promptID string, args map[string]string) (string, error)

Types

type Argument

type Argument struct {
	ID          string
	Title       string
	Description string
	Required    bool
}

Argument represents a command argument with its metadata.

type CustomCommand

type CustomCommand struct {
	ID        string
	Name      string
	Content   string
	Arguments []Argument
	// Skill is set when this command represents a user-invocable skill
	Skill *skills.Skill
}

CustomCommand represents a user-defined custom command loaded from markdown files.

func FromSkillCatalog

func FromSkillCatalog(entries []skills.CatalogEntry) []CustomCommand

FromSkillCatalog converts user-invocable catalog entries into custom command entries for the command palette.

func LoadCustomCommands

func LoadCustomCommands(cfg *config.Config) ([]CustomCommand, error)

LoadCustomCommands loads custom commands from multiple sources including XDG config directory, home directory, and project directory.

type MCPPrompt

type MCPPrompt struct {
	ID          string
	Title       string
	Description string
	PromptID    string
	ClientID    string
	Arguments   []Argument
}

MCPPrompt represents a custom command loaded from an MCP server.

func LoadMCPPrompts

func LoadMCPPrompts() ([]MCPPrompt, error)

LoadMCPPrompts loads custom commands from available MCP servers.

Jump to

Keyboard shortcuts

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