Files

21 lines
714 B
JavaScript
Raw Permalink Normal View History

#!/usr/bin/env node
/**
* CI/staging smoke for Page Data dev loop (dry-run only, no Aider spawn).
*/
import { spawnSync } from 'node:child_process';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const repoRoot = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');
const script = path.join(repoRoot, 'scripts/page-data-aider-dev-loop.mjs');
const result = spawnSync(
process.execPath,
[script, '--dry-run', '--skip-initial-verify', '--max-attempts', '1', '--escalate-after', '1'],
{ cwd: repoRoot, encoding: 'utf8' },
);
if (result.stdout) process.stdout.write(result.stdout);
if (result.stderr) process.stderr.write(result.stderr);
process.exit(result.status ?? 1);