| /** | |
| * Deprecated compatibility wrapper. The previous implementation audited | |
| * obsolete research inputs and could overwrite current release metadata. | |
| * This wrapper is read-only and delegates to the canonical v0.4 auditor. | |
| */ | |
| import path from "node:path"; | |
| import { spawnSync } from "node:child_process"; | |
| import { fileURLToPath } from "node:url"; | |
| const here = path.dirname(fileURLToPath(import.meta.url)); | |
| process.stderr.write("DEPRECATED: scripts/audit-data.mjs delegates read-only to the v0.4 release auditor. Use npm run audit.\n"); | |
| const result = spawnSync(process.execPath, [path.join(here, "audit-v03.mjs"), ...process.argv.slice(2)], { | |
| stdio: "inherit" | |
| }); | |
| if (result.error) throw result.error; | |
| process.exitCode = result.status ?? 1; | |