()
| 50 | const IGNORED = /(^|[\\/])(\.git|node_modules|\.planning|dist|build|\.next|coverage)([\\/]|$)/; |
| 51 | |
| 52 | function runScan() { |
| 53 | const scanArgs = ['--scan']; |
| 54 | if (opts.intake) scanArgs.push('--intake'); |
| 55 | const proc = spawn(process.execPath, [SCAN_SCRIPT, ...scanArgs], { |
| 56 | cwd: ROOT, |
| 57 | stdio: 'inherit', |
| 58 | env: { ...process.env, CLAUDE_PROJECT_DIR: ROOT }, |
| 59 | }); |
| 60 | return new Promise((resolve) => proc.on('close', resolve)); |
| 61 | } |
| 62 | |
| 63 | if (opts.once) { |
| 64 | runScan().then((code) => process.exit(code ?? 0)); |
no outgoing calls
no test coverage detected