MCPcopy Create free account
hub / github.com/SethGammon/Citadel / runScan

Function runScan

scripts/local-watch.js:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50const IGNORED = /(^|[\\/])(\.git|node_modules|\.planning|dist|build|\.next|coverage)([\\/]|$)/;
51
52function 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
63if (opts.once) {
64 runScan().then((code) => process.exit(code ?? 0));

Callers 3

local-watch.jsFile · 0.70
scheduleFunction · 0.70
startPollingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected