Documentation
¶
Index ¶
- type CLI
- type CfgCmd
- type CfgContextCmd
- type CfgExpandCmd
- type CfgExpandMaxDepthCmd
- type CfgExpandRecursiveCmd
- type CfgFilterCmd
- type CfgFilterCommentsCmd
- type CfgFilterEnableCmd
- type CfgFilterHeadersCmd
- type CfgMaxTokensCmd
- type CfgModelCmd
- type CfgModelsCmd
- type CfgShowCmd
- type CfgTemperatureCmd
- type CfgThinkingBudgetCmd
- type CfgThinkingCmd
- type CfgTimeoutCmd
- type ChatCmd
- type Context
- type InitCmd
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
Init InitCmd `cmd:"" help:"Initialize a new session"`
Chat ChatCmd `cmd:"" default:"1" help:"Process the session (default)"`
Cfg CfgCmd `cmd:"" help:"Manage configuration"`
Version VersionCmd `cmd:"" help:"Show version information"`
}
CLI represents the command-line interface
type CfgCmd ¶
type CfgCmd struct {
Show CfgShowCmd `cmd:"" help:"Show current configuration"`
Models CfgModelsCmd `cmd:"" help:"List available models"`
Model CfgModelCmd `cmd:"" help:"Set model"`
Temperature CfgTemperatureCmd `cmd:"" help:"Set temperature (0.0-1.0)"`
MaxTokens CfgMaxTokensCmd `cmd:"" help:"Set max tokens"`
Timeout CfgTimeoutCmd `cmd:"" help:"Set timeout duration"`
Thinking CfgThinkingCmd `cmd:"" help:"Enable/disable thinking mode"`
ThinkingBudget CfgThinkingBudgetCmd `cmd:"" help:"Set thinking budget (0.0-1.0)"`
Context CfgContextCmd `cmd:"" help:"Set context window size"`
Expand CfgExpandCmd `cmd:"" help:"Configure directory expansion"`
Filter CfgFilterCmd `cmd:"" help:"Configure content filtering"`
}
CfgCmd manages configuration
type CfgContextCmd ¶
type CfgContextCmd struct {
Size string `arg:"" optional:"" help:"Context size: standard or 1m"`
}
func (*CfgContextCmd) Run ¶
func (c *CfgContextCmd) Run(cmdCtx *Context) error
type CfgExpandCmd ¶ added in v0.4.0
type CfgExpandCmd struct {
Recursive CfgExpandRecursiveCmd `cmd:"" help:"Set recursive expansion default"`
MaxDepth CfgExpandMaxDepthCmd `cmd:"" help:"Set maximum recursion depth"`
}
CfgExpandCmd manages expansion settings
func (*CfgExpandCmd) Run ¶ added in v0.4.0
func (c *CfgExpandCmd) Run(cmdCtx *Context) error
Run shows current expansion settings
type CfgExpandMaxDepthCmd ¶ added in v0.4.0
type CfgExpandMaxDepthCmd struct {
Depth int `arg:"" help:"Maximum depth (1-10)"`
}
CfgExpandMaxDepthCmd sets max recursion depth
func (*CfgExpandMaxDepthCmd) Run ¶ added in v0.4.0
func (c *CfgExpandMaxDepthCmd) Run(cmdCtx *Context) error
type CfgExpandRecursiveCmd ¶ added in v0.4.0
type CfgExpandRecursiveCmd struct {
Enable string `arg:"" help:"Enable recursive: on/off"`
}
CfgExpandRecursiveCmd sets recursive expansion default
func (*CfgExpandRecursiveCmd) Run ¶ added in v0.4.0
func (c *CfgExpandRecursiveCmd) Run(cmdCtx *Context) error
type CfgFilterCmd ¶ added in v0.4.0
type CfgFilterCmd struct {
Enable CfgFilterEnableCmd `cmd:"" help:"Enable/disable filtering"`
Headers CfgFilterHeadersCmd `cmd:"" help:"Enable/disable header stripping"`
StripComments CfgFilterCommentsCmd `cmd:"" help:"Enable/disable comment stripping"`
}
CfgFilterCmd manages filter settings
func (*CfgFilterCmd) Run ¶ added in v0.4.0
func (c *CfgFilterCmd) Run(cmdCtx *Context) error
Run shows current filter settings
type CfgFilterCommentsCmd ¶ added in v0.4.0
type CfgFilterCommentsCmd struct {
Enable string `arg:"" help:"Strip all comments: on/off"`
}
CfgFilterCommentsCmd enables/disables comment stripping
func (*CfgFilterCommentsCmd) Run ¶ added in v0.4.0
func (c *CfgFilterCommentsCmd) Run(cmdCtx *Context) error
type CfgFilterEnableCmd ¶ added in v0.4.0
type CfgFilterEnableCmd struct {
Enable string `arg:"" help:"Enable filtering: on/off"`
}
CfgFilterEnableCmd enables/disables filtering
func (*CfgFilterEnableCmd) Run ¶ added in v0.4.0
func (c *CfgFilterEnableCmd) Run(cmdCtx *Context) error
type CfgFilterHeadersCmd ¶ added in v0.4.0
type CfgFilterHeadersCmd struct {
Enable string `arg:"" help:"Strip headers: on/off"`
}
CfgFilterHeadersCmd enables/disables header stripping
func (*CfgFilterHeadersCmd) Run ¶ added in v0.4.0
func (c *CfgFilterHeadersCmd) Run(cmdCtx *Context) error
type CfgMaxTokensCmd ¶
type CfgMaxTokensCmd struct {
MaxTokens int `arg:"" help:"Maximum tokens"`
}
CfgMaxTokensCmd sets the max tokens
func (*CfgMaxTokensCmd) Run ¶
func (c *CfgMaxTokensCmd) Run(cmdCtx *Context) error
type CfgModelCmd ¶
type CfgModelCmd struct {
Model string `arg:"" help:"Model type (opus/sonnet/haiku) or full model ID"`
}
CfgModelCmd sets the model
func (*CfgModelCmd) Run ¶
func (c *CfgModelCmd) Run(cmdCtx *Context) error
type CfgModelsCmd ¶
type CfgModelsCmd struct{}
CfgModelsCmd lists available models
func (*CfgModelsCmd) Run ¶
func (c *CfgModelsCmd) Run(cmdCtx *Context) error
type CfgShowCmd ¶ added in v0.4.0
type CfgShowCmd struct{}
CfgShowCmd explicitly shows configuration
func (*CfgShowCmd) Run ¶ added in v0.4.0
func (c *CfgShowCmd) Run(cmdCtx *Context) error
type CfgTemperatureCmd ¶
type CfgTemperatureCmd struct {
Temperature float64 `arg:"" help:"Temperature value (0.0-1.0)"`
}
CfgTemperatureCmd sets the temperature
func (*CfgTemperatureCmd) Run ¶
func (c *CfgTemperatureCmd) Run(cmdCtx *Context) error
type CfgThinkingBudgetCmd ¶
type CfgThinkingBudgetCmd struct {
Budget string `arg:"" help:"Budget as decimal (0.8) or percentage (80%)"`
}
CfgThinkingBudgetCmd sets the thinking budget
func (*CfgThinkingBudgetCmd) Run ¶
func (c *CfgThinkingBudgetCmd) Run(cmdCtx *Context) error
type CfgThinkingCmd ¶
type CfgThinkingCmd struct {
Enable string `arg:"" help:"Enable thinking: on/off/true/false"`
}
CfgThinkingCmd enables/disables thinking mode
func (*CfgThinkingCmd) Run ¶
func (c *CfgThinkingCmd) Run(cmdCtx *Context) error
type CfgTimeoutCmd ¶
type CfgTimeoutCmd struct {
Timeout string `arg:"" help:"Timeout duration (e.g., 5m, 30s)"`
}
CfgTimeoutCmd sets the timeout
func (*CfgTimeoutCmd) Run ¶
func (c *CfgTimeoutCmd) Run(cmdCtx *Context) error
type VersionCmd ¶
type VersionCmd struct{}
VersionCmd shows version information
func (*VersionCmd) Run ¶
func (c *VersionCmd) Run(cmdCtx *Context) error
Run executes the version command