Documentation
¶
Index ¶
- Variables
- func Command() *internal.Command
- func ConfigRunPrep(deferAnnouncements bool) (string, []string, error)
- func InitCmd() error
- func LoadPhotoConfig(confDir string) (photo.Configurations, error)
- func ParseAndAddMcpServer(mcpServersDir, pastedConfig string) ([]string, error)
- func ValidateMcpServerConfig(pastedConfig string) error
- type McpServerExternal
- type McpServerInput
Constants ¶
This section is empty.
Variables ¶
var Input io.Reader
Input is the reader used for interactive prompts and table input. When nil (the default), input is read from /dev/tty. Set to a strings.NewReader in tests to script interactive flows.
Functions ¶
func Command ¶ added in v1.11.0
Command builds the setup command: the interactive configuration wizard.
func ConfigRunPrep ¶ added in v1.11.0
ConfigRunPrep runs the shared pre-command config work for config-touching commands (query/chat/photo/video/audio/setup): config-dir resolution, theme loading, and the united config migration. Commands that render content without touching the mode configs (replay, dir-replay, the read-only chat subcommands) call internal.PrepTheme directly instead; completion, __complete, confdir and version stay fully side-effect-free. internal/cli injects it into the commands that need it; the setup command calls it directly.
func LoadPhotoConfig ¶ added in v1.11.0
func LoadPhotoConfig(confDir string) (photo.Configurations, error)
LoadPhotoConfig loads the photo configuration with the old-config migration applied; injected into the photo command by internal/cli.
func ParseAndAddMcpServer ¶
ParseAndAddMcpServer parses pasted MCP server configuration and adds it to the system
func ValidateMcpServerConfig ¶
ValidateMcpServerConfig validates that the pasted config is valid
Types ¶
type McpServerExternal ¶
type McpServerExternal struct {
Command string `json:"command"`
Args []string `json:"args"`
Env map[string]string `json:"env,omitempty"`
EnvFile string `json:"envfile,omitempty"`
}
McpServerExternal represents various external MCP server formats
type McpServerInput ¶
type McpServerInput struct {
McpServers map[string]McpServerExternal `json:"mcpServers"`
}
McpServerInput represents the external format that users might paste