GitNexus/gitnexus/scripts
BarnsL f5794ff26a fix: add heal script to clear stale LadybugDB WAL files that brick graph loads
Aborting a graph stream mid-flight leaves a small lbug.wal file.
Every subsequent open then fails on a missing lbug.shadow, and
the web UI permanently shows "Graph not loaded" until the WAL is
manually removed.

This script reads ~/.gitnexus/registry.json, finds WAL files at
or below the header-only size threshold (4 KB), backs them up to
~/.gitnexus/wal-backups/, and unlinks them. It refuses to run
while `gitnexus analyze` is in flight to avoid truncating a real
transaction.

Usage:
  node gitnexus/scripts/heal-stale-wal.mjs          # heal all
  node gitnexus/scripts/heal-stale-wal.mjs --check   # dry run
2026-08-15 16:19:53 -07:00
..
bench fix: batch query enrichment, bake FTS extension into CLI image, add FTS memory repro (#2108) 2026-06-09 08:46:46 +01:00
spikes feat(ingestion): M0 — taint/PDG substrate (schema + seams + spikes) (#2080) (#2092) 2026-06-08 18:56:10 +01:00
assert-publish-grammar-coverage.cjs fix(grammars): load vendored tree-sitter grammars from vendor/ by absolute path (#2111) (#2144) 2026-06-10 14:20:42 +01:00
bench-scope-resolution.ts refactor(ingestion): delete legacy call-resolution DAG + heritage processor (RING4-1, #942) (#2023) 2026-06-04 11:07:37 +01:00
build-tree-sitter-grammars.cjs fix(grammars): load vendored tree-sitter grammars from vendor/ by absolute path (#2111) (#2144) 2026-06-10 14:20:42 +01:00
build.js fix(build): skip build.js when running outside the monorepo (#1795) (#1816) 2026-05-25 15:31:11 +01:00
cross-platform-shard.ts fix(analyze): gate FTS-indexed DML before the incremental writeback (#2841) (#2854) 2026-08-07 09:44:44 +01:00
cross-platform-tests.ts fix(skills): publish gitnexus-plan artifacts on macOS without an interpreter (#2905) (#2922) 2026-08-11 12:24:53 +01:00
ensure-fts.ts fix(analyze): load VECTOR before the incremental writeback touches embedding rows (#2623) (#2624) 2026-07-22 12:27:00 +01:00
heal-stale-wal.mjs fix: add heal script to clear stale LadybugDB WAL files that brick graph loads 2026-08-15 16:19:53 -07:00
install-duckdb-extension.mjs fix(fts): diagnose Windows FTS missing-dependency load failures (#2374, Phase 1) (#2383) 2026-07-06 21:27:37 +01:00
run-cross-platform.ts perf(mcp): cut the analyze-only language-provider closure out of MCP server startup (#2802) (#2806) 2026-08-03 21:26:13 +01:00
shard-arg.ts fix(ci): shard platform-sensitive matrix + spawn built CLI to fix Windows cross-platform timeout (#2394) 2026-07-08 09:09:11 +01:00
sync-plugin-manifests.mjs feat(skills): GitNexus Engineering Tool Kits (#2566) 2026-07-19 15:07:24 +01:00