refactor(state): split migration modules (#106356)

* refactor(state): split migration modules

* fix(state): relocate migration guard baselines
This commit is contained in:
Peter Steinberger
2026-07-13 05:13:42 -07:00
committed by GitHub
parent 3e21c2f256
commit 8aab4ff94d
14 changed files with 6649 additions and 6444 deletions

View File

@@ -60,7 +60,7 @@ const rawSqliteAllowPathGroups = {
"src/commands/doctor-session-sqlite-readers.ts",
"src/commands/doctor-session-sqlite-recover-report.ts",
"src/commands/doctor-state-sqlite-compact.ts",
"src/infra/state-migrations.ts",
"src/infra/state-migrations.storage.ts",
"src/infra/state-migrations.debug-proxy.ts",
],
"shared database stores with direct DatabaseSync access": ["src/proxy-capture/store.sqlite.ts"],

View File

@@ -2650,6 +2650,7 @@ export const KNIP_UNUSED_EXPORT_BASELINE = [
"src/infra/stale-lock-file.ts: LockFileOwnerPayload",
"src/infra/state-migrations.debug-proxy.ts: LegacyDebugProxyCaptureDetection",
"src/infra/state-migrations.fs.ts: isLegacyWhatsAppAuthFile",
"src/infra/state-migrations.session-store.ts: sessionStoreTextMayNeedCanonicalization",
"src/infra/state-migrations.ts: sessionStoreTextMayNeedCanonicalization",
"src/infra/supervisor-markers.ts: DetectRespawnSupervisorOptions",
"src/infra/system-run-approval-binding.ts: matchSystemRunApprovalEnvHash",

View File

@@ -24,7 +24,7 @@
"src/commands/doctor-state-integrity.ts": 2,
"src/commands/doctor/shared/codex-route-warnings.ts": 2,
"src/gateway/test-helpers.mocks.ts": 1,
"src/infra/state-migrations.ts": 2,
"src/infra/state-migrations.session-store.ts": 2,
"src/plugins/registry-runtime.ts": 1
},
"sessionCompactManualTrim": {},