Documentation
¶
Index ¶
- type Agent
- type Claude
- func (c *Claude) CommandPath(userScope bool) string
- func (c *Claude) FormatCommand(commands []model.Command) (string, error)
- func (c *Claude) FormatFile(path string) string
- func (c *Claude) FormatMCP(agent, command string, args ...string) string
- func (c *Claude) FormatMemory(content string) (string, error)
- func (c *Claude) FormatMode(modes []model.Mode) (string, error)
- func (c *Claude) ID() string
- func (c *Claude) MemoryPath(userScope bool) string
- func (c *Claude) ModePath(userScope bool) string
- func (c *Claude) Name() string
- type Cline
- func (c *Cline) CommandPath(userScope bool) string
- func (c *Cline) FormatCommand(commands []model.Command) (string, error)
- func (c *Cline) FormatFile(path string) string
- func (c *Cline) FormatMCP(agent, command string, args ...string) string
- func (c *Cline) FormatMemory(content string) (string, error)
- func (c *Cline) FormatMode(modes []model.Mode) (string, error)
- func (c *Cline) ID() string
- func (c *Cline) MemoryPath(userScope bool) string
- func (c *Cline) ModePath(userScope bool) string
- func (c *Cline) Name() string
- type Copilot
- func (c *Copilot) CommandPath(userScope bool) string
- func (c *Copilot) DefaultCommandPath(outputBaseDir string, userScope bool, fileName string) (string, error)
- func (c *Copilot) DefaultMemoryPath(outputBaseDir string, userScope bool, fileName string) (string, error)
- func (c *Copilot) FormatCommand(commands []model.Command) (string, error)
- func (c *Copilot) FormatFile(path string) string
- func (c *Copilot) FormatMCP(agent, command string, args ...string) string
- func (c *Copilot) FormatMemory(content string) (string, error)
- func (c *Copilot) FormatMode(modes []model.Mode) (string, error)
- func (c *Copilot) ID() string
- func (c *Copilot) MemoryPath(userScope bool) string
- func (c *Copilot) ModePath(userScope bool) string
- func (c *Copilot) Name() string
- func (c *Copilot) ShouldConcatenate(taskType string) bool
- type Registry
- type Roo
- func (r *Roo) CommandPath(userScope bool) string
- func (r *Roo) FormatCommand(commands []model.Command) (string, error)
- func (r *Roo) FormatFile(path string) string
- func (r *Roo) FormatMCP(agent, command string, args ...string) string
- func (r *Roo) FormatMemory(content string) (string, error)
- func (r *Roo) FormatMode(modes []model.Mode) (string, error)
- func (r *Roo) ID() string
- func (r *Roo) MemoryPath(userScope bool) string
- func (r *Roo) ModePath(userScope bool) string
- func (r *Roo) Name() string
- type RooSlashMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent interface {
// Name returns the name of the agent
Name() string
// ID returns the unique identifier of the agent
ID() string
// FormatFile converts a file reference for this agent's format
FormatFile(path string) string
// FormatMCP formats an MCP command for this agent
FormatMCP(agent, command string, args ...string) string
// FormatMemory processes a memory context for this agent
FormatMemory(content string) (string, error)
// FormatCommand processes a command definition for this agent
FormatCommand(commands []model.Command) (string, error)
// MemoryPath returns the default path for memory files based on user scope
MemoryPath(userScope bool) string
// CommandPath returns the default path for command files based on user scope
CommandPath(userScope bool) string
// FormatMode processes mode definitions for this agent
FormatMode(modes []model.Mode) (string, error)
// ModePath returns the default path for mode files based on user scope
ModePath(userScope bool) string
}
Agent represents a target AI agent that has specific format requirements
type Claude ¶
type Claude struct{}
Claude implements the Claude-specific conversion logic
func (*Claude) CommandPath ¶
CommandPath returns the default path for Claude agent command files
func (*Claude) FormatCommand ¶
FormatCommand processes command definitions for Claude agent
func (*Claude) FormatFile ¶
FormatFile converts a path to Claude's file reference format
func (*Claude) FormatMemory ¶
FormatMemory processes a memory context for Claude agent
func (*Claude) FormatMode ¶ added in v0.0.4
FormatMode processes mode definitions for Claude agent Claude does not support combining multiple modes.
func (*Claude) MemoryPath ¶
MemoryPath returns the default path for Claude agent memory files
type Cline ¶
type Cline struct{}
Cline implements the Cline-specific conversion logic
func (*Cline) CommandPath ¶
CommandPath returns the default path for Cline agent command files
func (*Cline) FormatCommand ¶
FormatCommand processes command (workflow) definitions for Cline agent
func (*Cline) FormatFile ¶
FormatFile converts a path to Cline's file reference format
func (*Cline) FormatMemory ¶
FormatMemory processes a memory context for Cline agent
func (*Cline) FormatMode ¶ added in v0.0.4
FormatMode processes mode definitions for Cline agent
func (*Cline) MemoryPath ¶
MemoryPath returns the default path for Cline agent memory files
type Copilot ¶
type Copilot struct{}
Copilot implements the Copilot-specific conversion logic
func (*Copilot) CommandPath ¶
CommandPath returns the default path for Copilot agent command files
func (*Copilot) DefaultCommandPath ¶
func (c *Copilot) DefaultCommandPath(outputBaseDir string, userScope bool, fileName string) (string, error)
DefaultCommandPath determines the default output path for command tasks
func (*Copilot) DefaultMemoryPath ¶
func (c *Copilot) DefaultMemoryPath(outputBaseDir string, userScope bool, fileName string) (string, error)
DefaultMemoryPath determines the default output path for memory tasks
func (*Copilot) FormatCommand ¶
FormatCommand processes command definitions for Copilot agent
func (*Copilot) FormatFile ¶
FormatFile converts a path to Copilot's file reference format
func (*Copilot) FormatMemory ¶
FormatMemory processes a memory context for Copilot agent
func (*Copilot) FormatMode ¶ added in v0.0.4
FormatMode processes mode definitions for Copilot agent
func (*Copilot) MemoryPath ¶
MemoryPath returns the default path for Copilot agent memory files
func (*Copilot) ModePath ¶ added in v0.0.4
ModePath returns the default path for Copilot agent mode files
func (*Copilot) ShouldConcatenate ¶
ShouldConcatenate determines whether content should be concatenated
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry maintains a registry of available agents
func (*Registry) RegisterDefaults ¶
func (r *Registry) RegisterDefaults()
RegisterDefaults registers all default agents
type Roo ¶
type Roo struct{}
Roo implements the Roo-specific conversion logic
func (*Roo) CommandPath ¶
CommandPath returns the default path for Roo agent command files (directory, non-concatenated)
func (*Roo) FormatCommand ¶
FormatCommand processes command definitions for Roo agent (slash command markdown)
func (*Roo) FormatFile ¶
FormatFile converts a path to Roo's file reference format
func (*Roo) FormatMemory ¶
FormatMemory processes a memory context for Roo agent
func (*Roo) FormatMode ¶ added in v0.0.4
FormatMode processes mode definitions for Roo agent Roo supports combining multiple modes into a single YAML output, similar to FormatCommand.
func (*Roo) MemoryPath ¶
MemoryPath returns the default path for Roo agent memory files
type RooSlashMeta ¶ added in v0.0.4
type RooSlashMeta struct {
// Description: Optional Roo-specific description that overrides top-level Command.Description when provided
Description string `yaml:"description,omitempty"`
ArgumentHint string `yaml:"argument-hint,omitempty"`
}
RooSlashMeta is a simple struct for Roo-specific metadata.