mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-26 16:41:49 +00:00
The initial fix using snapshot.parsed broke configs with $include directives.
This commit adds a new 'resolved' field to ConfigFileSnapshot that contains
the config after $include and ${ENV} substitution but BEFORE runtime defaults
are applied. This is now used by config set/unset to avoid:
1. Breaking configs with $include directives
2. Leaking runtime defaults into the written config file
Also removes applyModelDefaults from writeConfigFile since runtime defaults
should only be applied when loading, not when writing.
19 lines
479 B
TypeScript
19 lines
479 B
TypeScript
export {
|
|
createConfigIO,
|
|
loadConfig,
|
|
parseConfigJson5,
|
|
readConfigFileSnapshot,
|
|
resolveConfigSnapshotHash,
|
|
writeConfigFile,
|
|
} from "./io.js";
|
|
export { migrateLegacyConfig } from "./legacy-migrate.js";
|
|
export * from "./paths.js";
|
|
export * from "./runtime-overrides.js";
|
|
export * from "./types.js";
|
|
export {
|
|
validateConfigObject,
|
|
validateConfigObjectRaw,
|
|
validateConfigObjectWithPlugins,
|
|
} from "./validation.js";
|
|
export { OpenClawSchema } from "./zod-schema.js";
|