Documentation
¶
Index ¶
- Variables
- func AgentFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func AtAgentCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func Execute()
- func ExtractAgentFromArgs(args []string) (agentName string, filteredArgs []string)
- func ImageProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func MCPFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func MCPServerArgCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- func ToolsFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
- type ModelLister
- type ProviderInfo
- type ToolDefinition
Constants ¶
This section is empty.
Variables ¶
var Commit = "unknown"
var Date = "unknown"
var Version = "dev"
These will be set by the linker during build
Functions ¶
func AgentFlagCompletion ¶ added in v0.0.33
func AgentFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
AgentFlagCompletion provides shell completion for the --agent flag.
func AtAgentCompletion ¶ added in v0.0.33
func AtAgentCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
AtAgentCompletion provides completions for @agent syntax in positional args. When typing "@<TAB>", completes to "@agent-builder", "@commit", etc.
func ExtractAgentFromArgs ¶ added in v0.0.33
ExtractAgentFromArgs checks args for @agent-name syntax and returns the agent name and filtered args. Returns empty string if no @agent found.
func ImageProviderFlagCompletion ¶ added in v0.0.6
func ImageProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ImageProviderFlagCompletion handles --provider flag completion for image commands
func MCPFlagCompletion ¶ added in v0.0.15
func MCPFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
MCPFlagCompletion provides completions for --mcp flag with comma-separated support. When typing "playwright,file<TAB>", completes to "playwright,filesystem".
func MCPServerArgCompletion ¶ added in v0.0.23
func MCPServerArgCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
MCPServerArgCompletion provides completions for MCP server names as positional arguments. Used by commands like "mcp test <server>" and "mcp remove <server>".
func ProviderFlagCompletion ¶ added in v0.0.6
func ProviderFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ProviderFlagCompletion handles --provider flag completion for LLM commands
func ToolsFlagCompletion ¶ added in v0.0.25
func ToolsFlagCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
ToolsFlagCompletion provides completions for --tools flag with comma-separated support. When typing "read,wr<TAB>", completes to "read,write".
Types ¶
type ModelLister ¶ added in v0.0.8
ModelLister is an interface for providers that can list available models
type ProviderInfo ¶ added in v0.0.32
type ProviderInfo struct {
Name string `json:"name"`
Type string `json:"type"`
Credential string `json:"credential"` // "api_key", "oauth", "none"
EnvVar string `json:"env_var,omitempty"` // Environment variable for API key
RequiresKey bool `json:"requires_key"` // Whether API key is required
SupportsListModels bool `json:"supports_list_models"`
Models []string `json:"models,omitempty"` // Curated model list
Configured bool `json:"configured"` // Whether provider is in user config
IsBuiltin bool `json:"is_builtin"` // Whether this is a built-in provider
}
ProviderInfo describes a provider for external consumption
type ToolDefinition ¶ added in v0.0.25
type ToolDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
Schema json.RawMessage `json:"schema"`
}
ToolDefinition represents a tool definition passed to the MCP server