MCPcopy Create free account
hub / github.com/codehamr/codehamr / Config

Struct Config

internal/config/config.go:83–96  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
84type 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
99func Default() *Config {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected