{"version":3,"file":"obsolete-files.mjs","names":[],"sources":["../../../../src/services/scaffold/upgrade-audit/obsolete-files.ts"],"sourcesContent":["/**\n * Files retired by the v1 → v2 upgrade (ADR 0023). Single source of truth\n * for both the audit manifest's `deleteFiles` inventory (manifest.ts) and\n * the apply train's deletion pass (apply-manifest.ts).\n *\n * Deletion semantics differ by class:\n * - OBSOLETE_FILES: deleted unconditionally when present — nothing in the\n *   v2 surface reads them.\n * - RETIRED_STUB_FILES: deleted only when their generated replacement\n *   exists and no build config still references them — these are live\n *   build entries on v1.\n */\n\nexport const OBSOLETE_FILES = [\n  \"api/src/lib/plugins.ts\",\n  \"ui/src/auth.ts\",\n  \"ui/src/auth-types.gen.ts\",\n  \"ui/src/lib/api-client.ts\",\n  \"ui/src/lib/use-api-client.ts\",\n  \"ui/src/lib/auth-utils.ts\",\n  \"ui/src/api-contract.ts\",\n  \"ui/src/api-contract.gen.ts\",\n  \"ui/src/lib/auth-client.ts\",\n  \"ui/src/lib/session.ts\",\n  \"ui/scripts/generate-metadata.ts\",\n  \"api/src/db/migrator.ts\",\n  \"api/src/db/load-migrations.ts\",\n  \"packages/everything-dev/cli.js\",\n  \".templatekeep\",\n  \".templatesync-exclude\",\n  // v1 hand-written UI shells superseded by the generated stubs (ADR 0023).\n  // These are unreferenced by the v1 rsbuild config (its entries are\n  // hydrate.tsx / router.server.tsx) and by no script — dead on the v1 tree.\n  \"ui/src/index.tsx\",\n  \"ui/src/dev-entry.tsx\",\n  \"ui/src/global.d.ts\",\n  \"ui/src/globals.d.ts\",\n  \"ui/src/vite-env.d.ts\",\n] as const;\n\n/**\n * v1 hand-written entry shells that are LIVE build entries until\n * retire-v1-shell rewires the rsbuild config onto the generated stubs.\n * Map: retired file → generated replacement that must exist first.\n */\nexport const RETIRED_STUB_FILES: Readonly<Record<string, string>> = {\n  \"ui/src/hydrate.tsx\": \"ui/src/hydrate.gen.tsx\",\n  \"ui/src/router.server.tsx\": \"ui/src/router.server.gen.tsx\",\n};\n"],"mappings":";;;;;;;;;;;;;AAaA,MAAa,iBAAiB;CAC5B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAIA;CACA;CACA;CACA;CACA;AACF;;;;;;AAOA,MAAa,qBAAuD;CAClE,sBAAsB;CACtB,4BAA4B;AAC9B"}