Documentation
¶
Overview ¶
Package config loads firstrun's optional TOML configuration. The tool runs fine with no config at all; the file only lets you persist preferences such as the default narration model or whether to use the live syscall tracer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AISection ¶
type AISection struct {
Provider string `toml:"provider"` // anthropic | openai | ollama
Model string `toml:"model"` // empty = provider default
Enabled bool `toml:"enabled"` // false = never call a model
MaxSourceBytes int `toml:"max_source_bytes"` // caps text sent to the model
}
AISection configures the plain-English narration model.
type Config ¶
type Config struct {
AI AISection `toml:"ai"`
Preview PreviewSection `toml:"preview"`
}
Config is the on-disk configuration.
type PreviewSection ¶
type PreviewSection struct {
Trace bool `toml:"trace"` // use the live syscall tracer when available
TimeoutSeconds int `toml:"timeout_seconds"` // tracer/run timeout
RequireConfirm bool `toml:"require_confirm"` // always confirm before running for real
}
PreviewSection configures how previews behave.
Click to show internal directories.
Click to hide internal directories.