Documentation
¶
Overview ¶
Package customcommands loads project and user-defined slash commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("custom command not found")
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Name string `json:"name"`
Path string `json:"path"`
Source string `json:"source"`
PluginRoot string `json:"plugin_root,omitempty"`
PluginData string `json:"plugin_data,omitempty"`
Description string `json:"description,omitempty"`
AllowedTools []string `json:"allowed_tools,omitempty"`
ArgumentHint string `json:"argument_hint,omitempty"`
Arguments []string `json:"arguments,omitempty"`
FrontmatterError string `json:"frontmatter_error,omitempty"`
Preview string `json:"preview"`
Body string `json:"body,omitempty"`
Active bool `json:"active"`
ShadowedBy string `json:"shadowed_by,omitempty"`
ShadowedByPath string `json:"shadowed_by_path,omitempty"`
}
type DiscoveryRoot ¶
type DiscoveryRoot struct {
Source string `json:"source"`
Label string `json:"label"`
Path string `json:"path"`
Exists bool `json:"exists"`
PluginID string `json:"plugin_id,omitempty"`
PluginRoot string `json:"plugin_root,omitempty"`
}
func Sources ¶
func Sources(configHome, workspace string) []DiscoveryRoot
func SourcesWithManifests ¶
func SourcesWithManifests(configHome, workspace string, manifests []plugins.Manifest) []DiscoveryRoot
SourcesWithManifests reports command roots for a resolved runtime plugin set.
type InstallReport ¶
type Rendered ¶
type Rendered struct {
Name string `json:"name"`
Path string `json:"path"`
Source string `json:"source"`
PluginRoot string `json:"plugin_root,omitempty"`
PluginData string `json:"plugin_data,omitempty"`
Description string `json:"description,omitempty"`
AllowedTools []string `json:"allowed_tools,omitempty"`
ArgumentHint string `json:"argument_hint,omitempty"`
Arguments []string `json:"arguments,omitempty"`
Args string `json:"args,omitempty"`
Rendered string `json:"rendered"`
}
type SourceNotFoundError ¶
func (SourceNotFoundError) Error ¶
func (e SourceNotFoundError) Error() string
func (SourceNotFoundError) Unwrap ¶
func (e SourceNotFoundError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.