refactor: auto-migrate legacy config in gateway

This commit is contained in:
Peter Steinberger
2026-01-02 13:07:14 +01:00
parent 55665246bb
commit 16420e5b31
7 changed files with 123 additions and 69 deletions

View File

@@ -204,6 +204,10 @@ vi.mock("../config/config.js", () => {
CONFIG_PATH_CLAWDIS: resolveConfigPath(),
STATE_DIR_CLAWDIS: path.dirname(resolveConfigPath()),
isNixMode: false,
migrateLegacyConfig: (raw: unknown) => ({
config: raw as Record<string, unknown>,
changes: [],
}),
loadConfig: () => ({
agent: {
model: "anthropic/claude-opus-4-5",