Documentation
¶
Index ¶
Constants ¶
const CurrentSchemaVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheConfig ¶
type Config ¶
type Config struct {
Version int `yaml:"version"`
Provider string `yaml:"provider"`
Providers map[string]ProviderConfig `yaml:"providers"`
Output OutputConfig `yaml:"output"`
Cache CacheConfig `yaml:"cache"`
Guard GuardConfig `yaml:"guard"`
Cost CostConfig `yaml:"cost"`
}
type CostConfig ¶ added in v0.8.0
type CostConfig struct {
WarnThresholdUSD float64 `yaml:"warn_threshold_usd"`
}
CostConfig controls the pre-send cost preflight added in v0.8.0. WarnThresholdUSD is the estimated-cost ceiling above which the CLI will prompt (TTY) or abort (non-TTY) before contacting the provider. Zero or negative disables the check entirely; the default of 0.50 is a "occasional dev review" budget — users running scheduled jobs should bump it via config or pass --no-cost-check per-invocation.
type GuardConfig ¶ added in v0.8.0
type GuardConfig struct {
SecretScan bool `yaml:"secret_scan"`
}
GuardConfig toggles pre-send protections that don't quite fit elsewhere. SecretScan controls the credential-pattern scan added in v0.8.0 (ADR-0007 follow-up); leaving it true is the safe default, false disables it entirely for users who pipeline outputs through a secrets manager and don't want the prompt.