Config is the on-disk schema at .codehamr/config.yaml. Strict decoding: unknown top-level keys fail Bootstrap so typos and stale schemas surface immediately rather than being silently ignored.
| 81 | // Config is the on-disk schema at .codehamr/config.yaml. Strict decoding: |
| 82 | // unknown top-level keys fail Bootstrap so typos and stale schemas surface |
| 83 | // immediately rather than being silently ignored. |
| 84 | type Config struct { |
| 85 | Active string `yaml:"active"` |
| 86 | Models map[string]*Profile `yaml:"models"` |
| 87 | // Logging writes a fresh log.txt each start and appends every exchange. |
| 88 | // Debug instrumentation; removable with this field, debuglog.go, and the |
| 89 | // dbgWrite call sites. |
| 90 | Logging bool `yaml:"logging,omitempty"` |
| 91 | // runtime-only (not serialized) |
| 92 | Dir string `yaml:"-"` |
| 93 | // URLOverride, if set, wins over ActiveProfile().URL everywhere we dial |
| 94 | // out. Kept off the Profile map so the runtime CODEHAMR_URL override never |
| 95 | // round-trips into Save(). |
| 96 | URLOverride string `yaml:"-"` |
| 97 | } |
| 98 | |
| 99 | func Default() *Config { |
nothing calls this directly
no outgoing calls
no test coverage detected