Repository navigation
feat(graph): index Bash scripts with the bundled grammar - #354
cookerpapa wants to merge 1 commit into
Conversation
🌱 graft blast radius1 area changed → 6 areas can be affected. 15 dependent symbols, depth 2. flowchart TB
A0(("Dependency Graph<br/>8 symbols"))
A1(("Build Analysis<br/>2 symbols"))
A2(("CLI Engine<br/>2 symbols"))
A3(("Context Building<br/>1 symbol"))
A4(("LSP Enrichment<br/>1 symbol"))
AX(("1 smaller area<br/>1 symbol"))
classDef reached fill:#D9EDF3,stroke:#3AA7C9,stroke-width:1.5px,color:#0E313C;
class A0,A1,A2,A3,A4 reached;
classDef tail fill:#EEF2F3,stroke:#9AA4A9,stroke-width:1px,color:#3A4247;
class AX tail;
Who knows this code — 3 people across 7 areas
Ownership is git history over each area's own files, weighted towards recent work (120-day half-life). Merge commits and bots are dropped, and you are dropped from your own PR. A name with no All 15 dependent symbols, grouped by areaDependency Graph — 8 symbols in 8 files
Build Analysis — 2 symbols in 2 files
CLI Engine — 2 symbols in 2 files
Context Building — 1 symbol in 1 file
LSP Enrichment — 1 symbol in 1 file
MCP Tools — 1 symbol in 1 file
Test signal per changed area — 1 –Reached = a node under a test path has a resolved edge into the changed symbol. It undercounts anything called indirectly — through a CLI, a spawned process or a dynamic import — so read a low ratio as “look here”, never as a coverage gate.
39 test suites also reference this code39 symbols, kept out of the diagram and the table so they cannot crowd out the areas a reviewer has to look at.
Open the interactive graph → — click an area to see its dependent symbols at file:line. |
Re-landed from #354 with the conflicts against main resolved; the contributor's fork couldn't take the merge commit. Co-Authored-By: Shrish Dwivedi <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Re-landed from #354 with the conflicts against main resolved; the contributor's fork couldn't take the merge commit. Co-Authored-By: Shrish Dwivedi <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Re-landed from #354 with the conflicts against main resolved; the contributor's fork couldn't take the merge commit. Co-Authored-By: Shrish Dwivedi <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #353.
Bash's WASM grammar already ships with Graft, but the generic language registry does not include it. As a result, shell scripts are skipped during graph builds.
This registers Bash for
.shand.bash, allowing the existing generic extractor to index function symbols without adding a dependency. It also documents the supported scope and adds regression coverage for grammar loading, extension validation, both Bash function declaration forms, graph construction, and the graph sync check.Validation on Node 24.19.0:
graph-bash,generic-extract,graph-languages,graph-cross-language, and the Node 24 WASM regression suite.scripts/build-viewer.mjs.This covers extension-based function indexing. Bash call edges and extensionless shebang detection remain outside this change.