Found while fixing #1831 (stale CONTRIBUTING.md). Out of scope for that doc-only fix.
Stale Usage: node scripts/X.js header comments
These scripts were renamed to .ts (run via node scripts/node-ts.js scripts/X.ts) but their own doc-comment headers still say .js:
scripts/benchmark.ts — Usage: node scripts/benchmark.js
scripts/build-wasm.ts — same pattern
scripts/embedding-benchmark.ts — Usage: node scripts/embedding-benchmark.js > result.json
scripts/query-benchmark.ts — Usage: node scripts/query-benchmark.js > result.json
scripts/incremental-benchmark.ts — Usage: node scripts/incremental-benchmark.js > result.json
Husky hooks reference removed src/cli.js
.husky/pre-commit and .husky/commit-msg both fall back to node src/cli.js build . / node src/cli.js diff-impact ... if the global codegraph binary isn't on PATH. src/cli.js doesn't exist anymore (source is src/cli.ts, compiled output is dist/cli.js) — the fallback silently no-ops (|| true / || true swallows the failure), so on any machine without a global codegraph install, the pre-commit graph rebuild and commit-msg impact summary silently never run.
Suggested fix: point the fallback at dist/cli.js (with a npm run build prerequisite note) or drop the fallback and require the global binary.
Found while fixing #1831 (stale CONTRIBUTING.md). Out of scope for that doc-only fix.
Stale
Usage: node scripts/X.jsheader commentsThese scripts were renamed to
.ts(run vianode scripts/node-ts.js scripts/X.ts) but their own doc-comment headers still say.js:scripts/benchmark.ts—Usage: node scripts/benchmark.jsscripts/build-wasm.ts— same patternscripts/embedding-benchmark.ts—Usage: node scripts/embedding-benchmark.js > result.jsonscripts/query-benchmark.ts—Usage: node scripts/query-benchmark.js > result.jsonscripts/incremental-benchmark.ts—Usage: node scripts/incremental-benchmark.js > result.jsonHusky hooks reference removed
src/cli.js.husky/pre-commitand.husky/commit-msgboth fall back tonode src/cli.js build ./node src/cli.js diff-impact ...if the globalcodegraphbinary isn't on PATH.src/cli.jsdoesn't exist anymore (source issrc/cli.ts, compiled output isdist/cli.js) — the fallback silently no-ops (|| true/|| trueswallows the failure), so on any machine without a globalcodegraphinstall, the pre-commit graph rebuild and commit-msg impact summary silently never run.Suggested fix: point the fallback at
dist/cli.js(with anpm run buildprerequisite note) or drop the fallback and require the global binary.