Documentation
¶
Overview ¶
Package cmd has all commands for ca
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToGetCurrentDir = errors.New("failed to get current directory") ErrMissingPrompt = errors.New("failed as prompt not specified") ErrAIProcessingFailed = errors.New("AI modification failed") ErrFailedToWriteChanges = errors.New("failed to write changes") ErrFailedToLoadSession = errors.New("failed to load session") ErrFailedToSaveSession = errors.New("failed to save session") ErrFileOutsideCurrentDir = errors.New("file is outside the current directory") ErrFailedToResolveAbsPath = errors.New("failed to resolve absolute path") ErrFailedToReadFile = errors.New("failed to read file") ErrFilesMustBeSpecified = errors.New("failed as files not specified") )
Predefined Errors.
Functions ¶
func EndSessionCommand ¶
EndSessionCommand archives the session.
func NewSessionCommand ¶
NewSessionCommand initializes a new coding session.
func ReviewCommand ¶
ReviewCommand shows the session progress and diffs.
func RollbackCommand ¶
RollbackCommand undoes a specific AI-modified step.
Types ¶
type LLMConfig ¶ added in v1.2.0
type LLMConfig struct { Provider string // E.g. "openai", "ollama", "azureopenai", etc. Model string // E.g. "gpt-4", "deepseek", ... APIKey string // For openai/anthropic, not needed by ollama Endpoint string // E.g. for azureopenai or a remote Ollama MaxTokens int // Common MaxRetries int // Common RetryDelay time.Duration // Common LogLevel gollm.LogLevel // Common // contains filtered or unexported fields }
LLMConfig is a catch-all config. Some fields only matter for certain providers.
func NewLLMConfigFromContext ¶ added in v1.2.0
NewLLMConfigFromContext extracts the LLM configuration from the CLI context.
Click to show internal directories.
Click to hide internal directories.