Documentation
¶
Overview ¶
Package commands provides a shared registry of slash commands used across ACP, TUI, and WebUI interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SlashCommand ¶
type SlashCommand struct {
Name string `json:"name"`
Description string `json:"description"`
AcceptsArgs bool `json:"acceptsArgs"`
}
SlashCommand represents a slash command available to users.
func AllCommands ¶
func AllCommands(dataDir string) []SlashCommand
AllCommands returns built-in commands plus custom commands discovered from the filesystem (user and project command directories).
func BuiltinCommands ¶
func BuiltinCommands() []SlashCommand
BuiltinCommands returns the built-in slash commands shared across all interfaces.
func Match ¶
func Match(query string, cmds []SlashCommand) []SlashCommand
Match filters commands by prefix match on name (case-insensitive).
Click to show internal directories.
Click to hide internal directories.