Turbocharge Claude Code, Cursor, Codex, Gemini & every coding agent: faster, cheaper, with contextual understanding specific to your codebase.
TypeScript ai-agentsanthropicclaude-codeclicode-graphcodexcontext-engineeringcursordeveloper-toolsgeminiknowledge-graphllmmcpmcp-serveropen-sourceopenaitree-sitter
fix(cli): zero-edge traverse --json carries the fallback note
Shrish Dwivedia0fc43a1db20
diff --git a/.claude-flow/data/pending-insights.jsonl b/.claude-flow/data/pending-insights.jsonlnew file mode 100644index 00000000..ffacbe4a--- /dev/null+++ b/.claude-flow/data/pending-insights.jsonl@@ -0,0 +1,301 @@+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/graft-capability-map.html","success":true,"timestamp":1784538166049,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/graft-capability-map.html","success":true,"timestamp":1784539211190,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/specs/2026-07-20-graft-claude-code-integration-design.md","success":true,"timestamp":1784539537337,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-20-graft-claude-code-integration.md","success":true,"timestamp":1784541627192,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-20-graft-claude-code-integration.md","success":true,"timestamp":1784541680988,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-20-graft-claude-code-integration.md","success":true,"timestamp":1784541691099,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-state.test.ts","success":true,"timestamp":1784542321224,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/state.ts","success":true,"timestamp":1784542339812,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784542370316,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/state.ts","success":true,"timestamp":1784542564244,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/state.ts","success":true,"timestamp":1784542568194,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/state.ts","success":true,"timestamp":1784542573249,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-state.test.ts","success":true,"timestamp":1784542579051,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-state.test.ts","success":true,"timestamp":1784542585207,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784542619303,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-stats.test.ts","success":true,"timestamp":1784542679439,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/stats.ts","success":true,"timestamp":1784542693580,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784542725101,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-20-graft-claude-code-integration.md","success":true,"timestamp":1784542885291,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-20-graft-claude-code-integration.md","success":true,"timestamp":1784542899095,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784542964542,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/format.ts","success":true,"timestamp":1784542978800,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/statusline.ts","success":true,"timestamp":1784542990551,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/helpers/graft-statusline.cjs","success":true,"timestamp":1784543004594,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/settings.json","success":true,"timestamp":1784543014432,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-3-report.md","success":true,"timestamp":1784543096843,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784543314103,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784543324024,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/format.ts","success":true,"timestamp":1784543337914,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/format.ts","success":true,"timestamp":1784543346396,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784543362003,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784543378102,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/helpers/graft-hooks.cjs","success":true,"timestamp":1784543397111,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/settings.json","success":true,"timestamp":1784543404836,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-4-report.md","success":true,"timestamp":1784543475512,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784543753317,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784543763410,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/sync-run.ts","success":true,"timestamp":1784543775912,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/settings.json","success":true,"timestamp":1784543792736,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-5-report.md","success":true,"timestamp":1784543917169,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/sync-run.ts","success":true,"timestamp":1784544286226,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784544292679,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-5-report.md","success":true,"timestamp":1784544336737,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784544415638,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784544424559,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/format.ts","success":true,"timestamp":1784544437134,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784544447626,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784544466229,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/settings.json","success":true,"timestamp":1784544482294,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-6-report.md","success":true,"timestamp":1784544568067,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784544775224,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784544784122,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-6-report.md","success":true,"timestamp":1784544821494,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784544892304,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784544896389,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/format.ts","success":true,"timestamp":1784544909400,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784544922376,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784544926493,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/settings.json","success":true,"timestamp":1784544935134,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-7-report.md","success":true,"timestamp":1784544996201,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784545167488,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-format.test.ts","success":true,"timestamp":1784545174924,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/format.ts","success":true,"timestamp":1784545187357,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/statusline.ts","success":true,"timestamp":1784545199830,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.claude/settings.json","success":true,"timestamp":1784545213164,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-8-report.md","success":true,"timestamp":1784545285344,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784545935010,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/format.ts","success":true,"timestamp":1784545936524,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/state.ts","success":true,"timestamp":1784545937886,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/final-review-fixes.md","success":true,"timestamp":1784546059627,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/pr-body.md","success":true,"timestamp":1784547146912,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/statusline.ts","success":true,"timestamp":1784548038119,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/specs/2026-07-20-graft-claude-code-integration-design.md","success":true,"timestamp":1784548640191,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/specs/2026-07-20-graft-claude-code-integration-design.md","success":true,"timestamp":1784548642800,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/specs/2026-07-20-graft-claude-code-integration-design.md","success":true,"timestamp":1784548649367,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/specs/2026-07-20-graft-claude-code-integration-design.md","success":true,"timestamp":1784548650471,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/pr-body.md","success":true,"timestamp":1784548706467,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/.claude/projects/-Users-shrishdwivedi-Documents-Context-graphs/memory/graft-no-third-party-tool-refs.md","success":true,"timestamp":1784548736544,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/.claude/projects/-Users-shrishdwivedi-Documents-Context-graphs/memory/MEMORY.md","success":true,"timestamp":1784548748105,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/specs/2026-07-20-graft-init-onboarding-design.md","success":true,"timestamp":1784551813492,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-20-graft-init-onboarding.md","success":true,"timestamp":1784551996391,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-shim-template.test.ts","success":true,"timestamp":1784552065541,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/shim-template.ts","success":true,"timestamp":1784552078369,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/package.json","success":true,"timestamp":1784552124282,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784552229312,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-settings-merge.test.ts","success":true,"timestamp":1784552444734,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/settings-merge.ts","success":true,"timestamp":1784552461173,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784552534301,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-init.test.ts","success":true,"timestamp":1784552793469,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/init.ts","success":true,"timestamp":1784552811084,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-init.test.ts","success":true,"timestamp":1784552834581,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-init.test.ts","success":true,"timestamp":1784552840380,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784552855178,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784552863358,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-3-report.md","success":true,"timestamp":1784553012098,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-init.test.ts","success":true,"timestamp":1784553197375,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-init.test.ts","success":true,"timestamp":1784553202250,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-init.test.ts","success":true,"timestamp":1784553208508,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/scripts/postinstall.mjs","success":true,"timestamp":1784553222209,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/package.json","success":true,"timestamp":1784553229209,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/package.json","success":true,"timestamp":1784553239383,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-4-report.md","success":true,"timestamp":1784553330748,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784553745952,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/pr-body-init.md","success":true,"timestamp":1784553861381,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-paths.test.ts","success":true,"timestamp":1784554822644,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/paths.ts","success":true,"timestamp":1784554843234,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784554854724,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784554859706,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784554860582,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/sync-run.ts","success":true,"timestamp":1784554870592,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784555107187,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784555113351,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/pr-body-fix.md","success":true,"timestamp":1784555152692,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784555767827,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784555783511,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/graphrank.ts","success":true,"timestamp":1784618636061,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784618646554,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784618673896,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784618683555,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784618690820,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784618905770,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784618947748,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask.test.ts","success":true,"timestamp":1784620301276,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784620426699,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784620434116,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784620451045,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graphrank.test.ts","success":true,"timestamp":1784620522638,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/.claude/projects/-Users-shrishdwivedi-Documents-Context-graphs/memory/graft-retrieval-ceiling.md","success":true,"timestamp":1784620584132,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/bench-retrieval.mjs","success":true,"timestamp":1784621286415,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784621799235,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask.test.ts","success":true,"timestamp":1784622807702,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/extract.ts","success":true,"timestamp":1784623179348,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask.test.ts","success":true,"timestamp":1784623209893,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/.claude/projects/-Users-shrishdwivedi-Documents-Context-graphs/memory/graft-retrieval-ceiling.md","success":true,"timestamp":1784623302792,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/graphrank.ts","success":true,"timestamp":1784627534196,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/graphrank.ts","success":true,"timestamp":1784627540069,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/graphrank.ts","success":true,"timestamp":1784627546396,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/extract.ts","success":true,"timestamp":1784627557263,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/swebp-bench.mjs","success":true,"timestamp":1784629590707,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/swebp-bench.mjs","success":true,"timestamp":1784630557833,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/swebp-bench.mjs","success":true,"timestamp":1784630565732,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/swebp-bench.mjs","success":true,"timestamp":1784630576723,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/a82f2c86-3398-401b-9f04-ecbf0e8be519/scratchpad/swebp-bench.mjs","success":true,"timestamp":1784630590838,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-21-multi-host-init.md","success":true,"timestamp":1784634332784,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-sections.test.ts","success":true,"timestamp":1784634764404,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/sections.ts","success":true,"timestamp":1784634774715,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784634820116,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/crlf_test.mjs","success":true,"timestamp":1784634938245,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-sections.test.ts","success":true,"timestamp":1784635100054,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/sections.ts","success":true,"timestamp":1784635116226,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784635163517,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/sections.ts","success":true,"timestamp":1784635446614,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-sections.test.ts","success":true,"timestamp":1784635468656,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784635511384,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context\\ graphs/context-graph-engine/test/hosts-instructions.test.ts","success":true,"timestamp":1784635634465,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-registry.test.ts","success":true,"timestamp":1784635845612,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/registry.ts","success":true,"timestamp":1784635859093,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-3-report.md","success":true,"timestamp":1784635916331,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-init.test.ts","success":true,"timestamp":1784636102641,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784636113639,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-4-report.md","success":true,"timestamp":1784636154058,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-init.test.ts","success":true,"timestamp":1784636396343,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-init.test.ts","success":true,"timestamp":1784636402670,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784636411617,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784636427857,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-5-report.md","success":true,"timestamp":1784636506705,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-init.test.ts","success":true,"timestamp":1784636758286,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784636766118,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784636772487,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784636781141,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-5-report.md","success":true,"timestamp":1784636838017,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784637000730,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784637006206,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-6-report.md","success":true,"timestamp":1784637086872,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-21-graft-mcp.md","success":true,"timestamp":1784637449879,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/mcp-tools.test.ts","success":true,"timestamp":1784637520776,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/tools.ts","success":true,"timestamp":1784637537281,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/tools.ts","success":true,"timestamp":1784637562027,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/tools.ts","success":true,"timestamp":1784637567113,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/tools.ts","success":true,"timestamp":1784637723265,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/tools.ts","success":true,"timestamp":1784637725203,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784637741858,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/mcp-server.test.ts","success":true,"timestamp":1784637816764,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/server.ts","success":true,"timestamp":1784638002608,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784638007344,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784638013769,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784638053931,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-mcp-config.test.ts","success":true,"timestamp":1784638345777,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/mcp-config.ts","success":true,"timestamp":1784638360910,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-3-report.md","success":true,"timestamp":1784638400466,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-mcp-config.test.ts","success":true,"timestamp":1784638656190,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/mcp-config.ts","success":true,"timestamp":1784638667051,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-3-report.md","success":true,"timestamp":1784638691431,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-init.test.ts","success":true,"timestamp":1784638782720,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784638792959,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784638798155,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784638802718,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784638807984,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784638814285,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784638821126,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-4-report.md","success":true,"timestamp":1784638870427,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-21-host-hooks.md","success":true,"timestamp":1784639153195,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784639278334,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784639292126,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784639312801,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784639351084,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/claude/hooks.ts","success":true,"timestamp":1784639580289,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784639594017,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784639603419,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/claude-hooks.test.ts","success":true,"timestamp":1784639617429,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-codex-hooks.test.ts","success":true,"timestamp":1784640061009,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-codex-hooks.test.ts","success":true,"timestamp":1784640070795,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/codex-hooks.ts","success":true,"timestamp":1784640079983,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/codex-hooks.ts","success":true,"timestamp":1784640085754,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784640124154,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-init.test.ts","success":true,"timestamp":1784640210912,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784640226247,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784640230378,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/init.ts","success":true,"timestamp":1784640235127,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784640240198,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784640247462,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784640252448,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-3-report.md","success":true,"timestamp":1784640293606,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784640644368,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/README.md","success":true,"timestamp":1784640645810,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/hosts-registry.test.ts","success":true,"timestamp":1784640647210,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/codex-hooks.ts","success":true,"timestamp":1784641128039,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/hosts/codex-hooks.ts","success":true,"timestamp":1784641129765,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/.claude/settings.json","success":true,"timestamp":1784644745634,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-21-ask-performance.md","success":true,"timestamp":1784653623708,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graphrank.test.ts","success":true,"timestamp":1784653679562,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graphrank.test.ts","success":true,"timestamp":1784653722818,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/graphrank.ts","success":true,"timestamp":1784653761487,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784653855171,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/verify_pagerank.mjs","success":true,"timestamp":1784653947849,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/index-file.ts","success":true,"timestamp":1784654215722,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654223918,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654232962,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654242448,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654249995,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654267731,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654313243,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/build.ts","success":true,"timestamp":1784654327302,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/build.ts","success":true,"timestamp":1784654332432,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784654388572,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784654398136,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784654549760,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/manual_ab.mjs","success":true,"timestamp":1784654704372,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/manual_ab.mjs","success":true,"timestamp":1784654722313,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/manual_ab.mjs","success":true,"timestamp":1784654733796,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/index-file.ts","success":true,"timestamp":1784654909759,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/index-file.ts","success":true,"timestamp":1784654911608,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/index-file.ts","success":true,"timestamp":1784654914597,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/index-file.ts","success":true,"timestamp":1784654917091,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/index-file.ts","success":true,"timestamp":1784654922044,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/build.ts","success":true,"timestamp":1784654930246,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784654940749,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784654961689,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654973850,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784654974945,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784654976041,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784655112835,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/load.ts","success":true,"timestamp":1784668771731,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graph-load.test.ts","success":true,"timestamp":1784668792457,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/tools.ts","success":true,"timestamp":1784668805015,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/mcp/tools.ts","success":true,"timestamp":1784668806121,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784668812320,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784668817182,"sessionId":null}+{"type":"edit","file":"/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/mcp-warm-accept.mjs","success":true,"timestamp":1784668903314,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784668999350,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/load.ts","success":true,"timestamp":1784669273473,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/load.ts","success":true,"timestamp":1784669277797,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/load.ts","success":true,"timestamp":1784669281428,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784669303910,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/write.ts","success":true,"timestamp":1784669395770,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/write.ts","success":true,"timestamp":1784669405364,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/build.ts","success":true,"timestamp":1784669415910,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/ask/ask.ts","success":true,"timestamp":1784669427186,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graph-write.test.ts","success":true,"timestamp":1784669516075,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669525632,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669546203,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669647008,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669657301,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669673101,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669688102,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669693680,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669699226,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/ask-index.test.ts","success":true,"timestamp":1784669704720,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784669929117,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/docs/superpowers/plans/2026-07-22-graph-commands.md","success":true,"timestamp":1784672509138,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graph-traverse.test.ts","success":true,"timestamp":1784672669407,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/traverse.ts","success":true,"timestamp":1784672697244,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-1-report.md","success":true,"timestamp":1784672735285,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graph-traverse-cli.test.ts","success":true,"timestamp":1784673035546,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/traverse-cli.ts","success":true,"timestamp":1784673061754,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784673070479,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts","success":true,"timestamp":1784673075766,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/test/graph-traverse-cli.test.ts","success":true,"timestamp":1784673405333,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/traverse-cli.ts","success":true,"timestamp":1784673409187,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/graph/traverse-cli.ts","success":true,"timestamp":1784673413146,"sessionId":null}+{"type":"edit","file":"/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/.superpowers/sdd/task-2-report.md","success":true,"timestamp":1784673435244,"sessionId":null}diff --git a/.context/graph.json b/.context/graph.jsonnew file mode 100644index 00000000..20096a48--- /dev/null+++ b/.context/graph.json@@ -0,0 +1,7812 @@+{+ "meta": {+ "version": 1,+ "nodeCount": 284,+ "edgeCount": 637,+ "languages": [+ "typescript"+ ]+ },+ "nodes": [+ {+ "id": "bench/agent.ts",+ "name": "agent.ts",+ "kind": "file",+ "path": "bench/agent.ts",+ "span": "L1-L323",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "e10d64f913c9517cef84cce58ea042d71bed3e94182c791245170eca54060e31",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#AgentResult",+ "name": "AgentResult",+ "kind": "interface",+ "path": "bench/agent.ts",+ "span": "L19-L27",+ "signature": "interface AgentResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "f4e0672910fa23856c22d12c1cdd474a4d144a773e9147f6e70b67fcbc2f9cdc",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#globToRegExp",+ "name": "globToRegExp",+ "kind": "function",+ "path": "bench/agent.ts",+ "span": "L92-L106",+ "signature": "function globToRegExp(glob: string): RegExp",+ "exported": false,+ "origin": "ast",+ "body_hash": "bf9f513a64c4a25612509c1bc9ca3e5ab141d47051aee3cb4d487fc6d87fd484",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#listFiles",+ "name": "listFiles",+ "kind": "function",+ "path": "bench/agent.ts",+ "span": "L62-L89",+ "signature": "function listFiles(root: string): string[]",+ "exported": false,+ "origin": "ast",+ "body_hash": "c99c73e1c6a44093a6f779cd0b4c54db649c4f0fb0c03a6af9c38673bc24f711",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#listFiles.walk",+ "name": "walk",+ "kind": "function",+ "path": "bench/agent.ts",+ "span": "L64-L86",+ "signature": "walk = (dir: string)",+ "exported": false,+ "origin": "ast",+ "body_hash": "5a2365b8f09853c622d73cf63ed6804cf9fe3667bfc30f981759e2aff5483b43",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#runAgent",+ "name": "runAgent",+ "kind": "function",+ "path": "bench/agent.ts",+ "span": "L230-L322",+ "signature": "async function runAgent(opts: RunAgentOptions): Promise<AgentResult>",+ "exported": true,+ "origin": "ast",+ "body_hash": "32cb0dc584762b0c9da95c2c69d73afb0d7a9b59628e53e306cd341a0d92cb44",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#runAgent.slideCacheBreakpoint",+ "name": "slideCacheBreakpoint",+ "kind": "function",+ "path": "bench/agent.ts",+ "span": "L254-L260",+ "signature": "slideCacheBreakpoint = ()",+ "exported": true,+ "origin": "ast",+ "body_hash": "c5c9e42b4e085cfd27d6614a97f5208d50aed8551304862e6eb81c56edab795a",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#RunAgentOptions",+ "name": "RunAgentOptions",+ "kind": "interface",+ "path": "bench/agent.ts",+ "span": "L29-L37",+ "signature": "interface RunAgentOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "b786c099fceddc6e582d26ab2a302637b256ba7144fae8629b8611325b0018e0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#runTool",+ "name": "runTool",+ "kind": "function",+ "path": "bench/agent.ts",+ "span": "L168-L228",+ "signature": "function runTool(root: string, name: string, input: any): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "e4b0b544cf7ac1c6c08fa61827000496bb74311f04305b9868e5d70695cea9e1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/agent.ts#safePath",+ "name": "safePath",+ "kind": "function",+ "path": "bench/agent.ts",+ "span": "L46-L60",+ "signature": "function safePath(root: string, p: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "8a6349aeb94f54f93a15bde379809135e40fcb4844de10eab68d4c95f0301a16",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/judge.ts",+ "name": "judge.ts",+ "kind": "file",+ "path": "bench/judge.ts",+ "span": "L1-L88",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "94c222341b066e4f3134b3d9d3f30f31b9ffe7b92967086b07c58f297d349936",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/judge.ts#extractJson",+ "name": "extractJson",+ "kind": "function",+ "path": "bench/judge.ts",+ "span": "L35-L49",+ "signature": "function extractJson(text: string): any",+ "exported": false,+ "origin": "ast",+ "body_hash": "8598a77c27df0c2d51964f8e5bd27752fca0c0af9b038302069d9440535fe911",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/judge.ts#judge",+ "name": "judge",+ "kind": "function",+ "path": "bench/judge.ts",+ "span": "L51-L87",+ "signature": "async function judge(input: JudgeInput): Promise<Verdict>",+ "exported": true,+ "origin": "ast",+ "body_hash": "98496fb2f15740ca1a47bcfd39f9a44f0b320a2c53d3c21086fdcb8304f88f43",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/judge.ts#JudgeInput",+ "name": "JudgeInput",+ "kind": "interface",+ "path": "bench/judge.ts",+ "span": "L26-L32",+ "signature": "interface JudgeInput",+ "exported": true,+ "origin": "ast",+ "body_hash": "d22eb2a46b81a9e2f6f55c9f1409b5afc682ab8028ef88f8522a0397dcb1a2bc",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/judge.ts#Verdict",+ "name": "Verdict",+ "kind": "interface",+ "path": "bench/judge.ts",+ "span": "L18-L24",+ "signature": "interface Verdict",+ "exported": true,+ "origin": "ast",+ "body_hash": "650e88981503f18e5a30dc0050ad111724eb40d2d32ebb0bec9106bb3d934e50",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/llm.ts",+ "name": "llm.ts",+ "kind": "file",+ "path": "bench/llm.ts",+ "span": "L1-L19",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "6c0d2a02ac6aa86de94f779355020700a4d9016e2f4b431bf75560e1d3c51229",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/llm.ts#makeClient",+ "name": "makeClient",+ "kind": "function",+ "path": "bench/llm.ts",+ "span": "L14-L18",+ "signature": "function makeClient(): OpenAI",+ "exported": true,+ "origin": "ast",+ "body_hash": "1de90a5deaf00c7680162630fe437cfc2cc72204aaabf5150922b9b40da021bf",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts",+ "name": "report.ts",+ "kind": "file",+ "path": "bench/report.ts",+ "span": "L1-L126",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "775be8c40a8e4172521bba8f6a1f026fa23c4d24b9b5225da3ed5b745077a5b0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#aggregate",+ "name": "aggregate",+ "kind": "function",+ "path": "bench/report.ts",+ "span": "L56-L68",+ "signature": "function aggregate(rows: Row[]): ArmAgg",+ "exported": false,+ "origin": "ast",+ "body_hash": "2dc5a442b3d9d4a3a674a2bee1a8ceddd9410a4d92bacf30bea4503e7588f3fb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#ArmAgg",+ "name": "ArmAgg",+ "kind": "interface",+ "path": "bench/report.ts",+ "span": "L44-L54",+ "signature": "interface ArmAgg",+ "exported": false,+ "origin": "ast",+ "body_hash": "a7a78cc5f14ddd30155d952a75e96f4508ffbf4d3bf432e53945cbf055cc67dd",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#buildMarkdown",+ "name": "buildMarkdown",+ "kind": "function",+ "path": "bench/report.ts",+ "span": "L80-L125",+ "signature": "function buildMarkdown(rows: Row[]): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "9534d62231f50105f1ef247af6dd99e180786c443307f1eb82b47e5c9d631152",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#costOf",+ "name": "costOf",+ "kind": "function",+ "path": "bench/report.ts",+ "span": "L33-L38",+ "signature": "function costOf(r: { tokensInput: number; tokensOutput: number; cacheRead: number; cacheCreate: number }): number",+ "exported": true,+ "origin": "ast",+ "body_hash": "413c8810eda0e5edbb94cf5a7491732fdc1e4cb3df89eda614e7ce145f2b7c11",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#fmt",+ "name": "fmt",+ "kind": "function",+ "path": "bench/report.ts",+ "span": "L76-L78",+ "signature": "function fmt(n: number): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "e5554c617b5485df92a2ba8792f4bb715431c2aa0a21f7e900465d0a2690e5b1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#mean",+ "name": "mean",+ "kind": "function",+ "path": "bench/report.ts",+ "span": "L40-L42",+ "signature": "function mean(xs: number[]): number",+ "exported": false,+ "origin": "ast",+ "body_hash": "bc3ca4cedc8d6833e415c55049ed08517980bbc60e432640f883cbed2e5aafae",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#pctDelta",+ "name": "pctDelta",+ "kind": "function",+ "path": "bench/report.ts",+ "span": "L70-L74",+ "signature": "function pctDelta(cold: number, graph: number): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "e8adea58e85eb9a811c2fbdd6e999781ca014f54162f777f2dbd29cbc541e972",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/report.ts#Row",+ "name": "Row",+ "kind": "interface",+ "path": "bench/report.ts",+ "span": "L6-L26",+ "signature": "interface Row",+ "exported": true,+ "origin": "ast",+ "body_hash": "5715f0dee9c689834b1869bbb14379fbc55d730fbf32dbee62bb7d4ec87f3915",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/run.ts",+ "name": "run.ts",+ "kind": "file",+ "path": "bench/run.ts",+ "span": "L1-L207",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "a0d2859628588f45ae31862f5f801d6219802449c23bbbdba9aa51b7b9febf47",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/run.ts#Args",+ "name": "Args",+ "kind": "interface",+ "path": "bench/run.ts",+ "span": "L29-L35",+ "signature": "interface Args",+ "exported": false,+ "origin": "ast",+ "body_hash": "07bb0961cc69a2894c3baf9941dd072b901a4d94d3527b04a94397d5c88a749f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/run.ts#main",+ "name": "main",+ "kind": "function",+ "path": "bench/run.ts",+ "span": "L84-L201",+ "signature": "async function main()",+ "exported": false,+ "origin": "ast",+ "body_hash": "dbf48031433ab51d95363a6e6c55ea949fab2c2a53e903da497fe05f1d58edf5",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/run.ts#makeDocsWorkdir",+ "name": "makeDocsWorkdir",+ "kind": "function",+ "path": "bench/run.ts",+ "span": "L69-L82",+ "signature": "async function makeDocsWorkdir(corpus: Corpus): Promise<string>",+ "exported": false,+ "origin": "ast",+ "body_hash": "9688c56522bfdc0e8c20e07526ee021ddd45ab6d77a116b06df1fb770021e017",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/run.ts#parseArgs",+ "name": "parseArgs",+ "kind": "function",+ "path": "bench/run.ts",+ "span": "L37-L52",+ "signature": "function parseArgs(argv: string[]): Args",+ "exported": false,+ "origin": "ast",+ "body_hash": "dd2d7d4756b068252199a77e1af829fea67d99e8924610198ca79f48a994635b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/run.ts#pool",+ "name": "pool",+ "kind": "function",+ "path": "bench/run.ts",+ "span": "L55-L66",+ "signature": "async function pool<T, R>(items: T[], n: number, fn: (item: T) => Promise<R>): Promise<R[]>",+ "exported": false,+ "origin": "ast",+ "body_hash": "a7195db3e63798d9ce8138057327e135cc12f0187a870a4856f5b0c5b1c21e84",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/run.ts#pool.worker",+ "name": "worker",+ "kind": "function",+ "path": "bench/run.ts",+ "span": "L58-L63",+ "signature": "async function worker()",+ "exported": false,+ "origin": "ast",+ "body_hash": "b9705c00faf21752c1d6cd68735d93e6f2a95a30b4ca5b5df894f01966715f79",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/selfcheck.ts",+ "name": "selfcheck.ts",+ "kind": "file",+ "path": "bench/selfcheck.ts",+ "span": "L1-L120",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "0eaf577938e20fa27d9cd0157bc8843fdc37165d85696789334b8605138f4bb4",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/selfcheck.ts#main",+ "name": "main",+ "kind": "function",+ "path": "bench/selfcheck.ts",+ "span": "L50-L114",+ "signature": "async function main()",+ "exported": false,+ "origin": "ast",+ "body_hash": "5f20853f3387db063509fe8426e6f34758fdac602fbef13cba81514ec752483b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/selfcheck.ts#makeStubClient",+ "name": "makeStubClient",+ "kind": "function",+ "path": "bench/selfcheck.ts",+ "span": "L19-L48",+ "signature": "function makeStubClient()",+ "exported": false,+ "origin": "ast",+ "body_hash": "3ac524103f28630ba8f080c62707872e56d513b46b57b6753cb07c8c6c44f249",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/tasks.ts",+ "name": "tasks.ts",+ "kind": "file",+ "path": "bench/tasks.ts",+ "span": "L1-L281",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "d21168797f40d193a914aca0c438409d29d300441bc0a6a518c93869240b3b69",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/tasks.ts#Corpus",+ "name": "Corpus",+ "kind": "interface",+ "path": "bench/tasks.ts",+ "span": "L39-L45",+ "signature": "interface Corpus",+ "exported": true,+ "origin": "ast",+ "body_hash": "4b3ae3ef3d07322b65aaa6b2821f5c8e6871251bdc7ab6d8248ce584a28a5603",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/tasks.ts#repoPath",+ "name": "repoPath",+ "kind": "function",+ "path": "bench/tasks.ts",+ "span": "L26-L29",+ "signature": "function repoPath(id: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "96ac12ff90253b3d673f747af65246aa6707ba09fda29f12266b75fbc9ae50f7",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "bench/tasks.ts#Task",+ "name": "Task",+ "kind": "interface",+ "path": "bench/tasks.ts",+ "span": "L31-L37",+ "signature": "interface Task",+ "exported": true,+ "origin": "ast",+ "body_hash": "ec755cc45cea139405762338ce104dfa8b2307f7bfa4f7733f731e6d80c21cb8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "scripts/build-viewer.mjs",+ "name": "build-viewer.mjs",+ "kind": "file",+ "path": "scripts/build-viewer.mjs",+ "span": "L1-L29",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "fb4ba16d7815dbdbaf2fd818362f914671903132be5573fbdd9a7734549b833d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts",+ "name": "crux.ts",+ "kind": "file",+ "path": "src/ai/crux.ts",+ "span": "L1-L128",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "e81750029e4c8641cdaf2b4894f595297839e07a73076e4cdac1522515f923a8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#CruxSummarizer",+ "name": "CruxSummarizer",+ "kind": "interface",+ "path": "src/ai/crux.ts",+ "span": "L42-L44",+ "signature": "interface CruxSummarizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "03333336a2e057667a15b39364d3ba6f09ea739b8c1a35c4b3dfdd71c6f5d4d9",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#FileCruxInput",+ "name": "FileCruxInput",+ "kind": "interface",+ "path": "src/ai/crux.ts",+ "span": "L29-L33",+ "signature": "interface FileCruxInput",+ "exported": true,+ "origin": "ast",+ "body_hash": "5216f1ff3c8ce99cfac0130265f5b9597634df473889050b2af1e193c545ebab",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#NodeCrux",+ "name": "NodeCrux",+ "kind": "interface",+ "path": "src/ai/crux.ts",+ "span": "L35-L40",+ "signature": "interface NodeCrux",+ "exported": true,+ "origin": "ast",+ "body_hash": "df4fb16fefdd35c322e1af2e13c09a9afff91dbd0e96584daaec163aa147c1cd",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#NodeRef",+ "name": "NodeRef",+ "kind": "interface",+ "path": "src/ai/crux.ts",+ "span": "L21-L27",+ "signature": "interface NodeRef",+ "exported": true,+ "origin": "ast",+ "body_hash": "5c9fb969ad7415cf5ba23dfaa412ca015165fe5f8ef98d626b780facc4f6492f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#numberLines",+ "name": "numberLines",+ "kind": "function",+ "path": "src/ai/crux.ts",+ "span": "L63-L70",+ "signature": "function numberLines(source: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "a80ad2a4410262e8c7ff4a8827e3c2f29bf357defa21d228d71b8d278b09acce",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#OpenRouterCruxSummarizer",+ "name": "OpenRouterCruxSummarizer",+ "kind": "class",+ "path": "src/ai/crux.ts",+ "span": "L101-L127",+ "signature": "class OpenRouterCruxSummarizer implements CruxSummarizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "20704346ba50c09895e6a19c3574156db46df9e20baa6286bf1bf6a479c2650b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#OpenRouterCruxSummarizer.constructor",+ "name": "constructor",+ "kind": "method",+ "path": "src/ai/crux.ts",+ "span": "L105-L112",+ "signature": "constructor(apiKey: string, model: string, baseUrl = \"https://openrouter.ai/api/v1\")",+ "exported": true,+ "origin": "ast",+ "body_hash": "11789569c2566d5187db773c70ebb755e57415aafb4b2d35fd3473dfdfda4958",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#OpenRouterCruxSummarizer.describeFile",+ "name": "describeFile",+ "kind": "method",+ "path": "src/ai/crux.ts",+ "span": "L114-L126",+ "signature": "async describeFile(input: FileCruxInput): Promise<NodeCrux[]>",+ "exported": true,+ "origin": "ast",+ "body_hash": "f9db855cb28cb76a21cabb928924cf83d145fc206bce5c340d4615c260653e18",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#parseResults",+ "name": "parseResults",+ "kind": "function",+ "path": "src/ai/crux.ts",+ "span": "L84-L98",+ "signature": "function parseResults(raw: string): NodeCrux[]",+ "exported": false,+ "origin": "ast",+ "body_hash": "91399ce86a0308307952e61ac203bef3df08f912fe4bfdab3ef7260ae6830da1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#parseResults.num",+ "name": "num",+ "kind": "function",+ "path": "src/ai/crux.ts",+ "span": "L88-L88",+ "signature": "num = (v: unknown)",+ "exported": false,+ "origin": "ast",+ "body_hash": "63e8d8e280862f40666698b44f9fb1b4ca58c1712ed8c1f3266c59b683c83471",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/crux.ts#userContent",+ "name": "userContent",+ "kind": "function",+ "path": "src/ai/crux.ts",+ "span": "L72-L81",+ "signature": "function userContent(input: FileCruxInput): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "c69c7e7741d7da1191a463b960489184527e8d4e0deae84306011fae6469159e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/providers.ts",+ "name": "providers.ts",+ "kind": "file",+ "path": "src/ai/providers.ts",+ "span": "L1-L56",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "c0d1294d6fa49f6d06ff9bb137b34ea897f94a67810a839cd5705a1fa5995483",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/providers.ts#EngineConfig",+ "name": "EngineConfig",+ "kind": "interface",+ "path": "src/ai/providers.ts",+ "span": "L9-L25",+ "signature": "interface EngineConfig",+ "exported": true,+ "origin": "ast",+ "body_hash": "a7457b873338ce2ea7e53be6eca715bcbfce5cc85dd0d8b770145702027e6836",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/providers.ts#resolveConfig",+ "name": "resolveConfig",+ "kind": "function",+ "path": "src/ai/providers.ts",+ "span": "L43-L55",+ "signature": "function resolveConfig(config: EngineConfig = {}): ResolvedConfig",+ "exported": true,+ "origin": "ast",+ "body_hash": "9bc6a9e9d026366226705cba49e3d45fc68ee309ec3106c750983cba9d292bad",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/providers.ts#ResolvedConfig",+ "name": "ResolvedConfig",+ "kind": "interface",+ "path": "src/ai/providers.ts",+ "span": "L28-L35",+ "signature": "interface ResolvedConfig",+ "exported": true,+ "origin": "ast",+ "body_hash": "7f4ebf13b13a0cf260534237a8b8ee71fb2dfa23c113c63aa860169af6d6ad70",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/summarize.ts",+ "name": "summarize.ts",+ "kind": "file",+ "path": "src/ai/summarize.ts",+ "span": "L1-L62",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "6e67f3866c75d88a8b1d265e510578f3e3014d9cfd8b2469e6e4afbd67977f93",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/summarize.ts#OpenRouterSummarizer",+ "name": "OpenRouterSummarizer",+ "kind": "class",+ "path": "src/ai/summarize.ts",+ "span": "L37-L61",+ "signature": "class OpenRouterSummarizer implements Summarizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "d5ccc8425da5d5e01cb9d0371aa4b7f6ddc27ca2f5b33d06315b2141b1ba5f44",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/summarize.ts#OpenRouterSummarizer.constructor",+ "name": "constructor",+ "kind": "method",+ "path": "src/ai/summarize.ts",+ "span": "L41-L48",+ "signature": "constructor(apiKey: string, model: string, baseUrl = \"https://openrouter.ai/api/v1\")",+ "exported": true,+ "origin": "ast",+ "body_hash": "11789569c2566d5187db773c70ebb755e57415aafb4b2d35fd3473dfdfda4958",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/summarize.ts#OpenRouterSummarizer.summarize",+ "name": "summarize",+ "kind": "method",+ "path": "src/ai/summarize.ts",+ "span": "L50-L60",+ "signature": "async summarize(code: string, opts: { path: string }): Promise<string>",+ "exported": true,+ "origin": "ast",+ "body_hash": "b87a1b9c3fa411f6d60e20f3668c506deaf6675277847809f4da00b7bde5d2b7",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/summarize.ts#Summarizer",+ "name": "Summarizer",+ "kind": "interface",+ "path": "src/ai/summarize.ts",+ "span": "L13-L15",+ "signature": "interface Summarizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "53141087f1297119f32328d09c2f9289dcb09ab0ca3d9ac4b066be98e868166e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/summarize.ts#userContent",+ "name": "userContent",+ "kind": "function",+ "path": "src/ai/summarize.ts",+ "span": "L28-L34",+ "signature": "function userContent(code: string, path: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "96aac9962d6811777880bc7062fa497e9cc46e103b7c4620c2d84eaf7d8e4ba2",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts",+ "name": "synthesize.ts",+ "kind": "file",+ "path": "src/ai/synthesize.ts",+ "span": "L1-L161",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "1531389b3e438bac4800227d5db0eb71027dd80ad6bfe0c288cc678464136696",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#clean",+ "name": "clean",+ "kind": "function",+ "path": "src/ai/synthesize.ts",+ "span": "L96-L118",+ "signature": "function clean(nodes: unknown): SynthNode[]",+ "exported": false,+ "origin": "ast",+ "body_hash": "2344d8c4c88dd2126c437bedfed4688859387f3303ae33aae9a056f42ff7bad8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#FileSummary",+ "name": "FileSummary",+ "kind": "interface",+ "path": "src/ai/synthesize.ts",+ "span": "L30-L33",+ "signature": "interface FileSummary",+ "exported": true,+ "origin": "ast",+ "body_hash": "4c10af76458e184f8d32e13ead75fdbba2b173af7e915f3b6378f895b64bacff",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#OpenRouterSynthesizer",+ "name": "OpenRouterSynthesizer",+ "kind": "class",+ "path": "src/ai/synthesize.ts",+ "span": "L130-L159",+ "signature": "class OpenRouterSynthesizer implements Synthesizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "8281c93146b94be4f6d884607e02a9fe4d3a48537eb10044253dcdbe5394c8ac",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#OpenRouterSynthesizer.constructor",+ "name": "constructor",+ "kind": "method",+ "path": "src/ai/synthesize.ts",+ "span": "L134-L137",+ "signature": "constructor(apiKey: string, model: string, baseUrl = \"https://openrouter.ai/api/v1\")",+ "exported": true,+ "origin": "ast",+ "body_hash": "20d1ed2a31c60772d22eb649c1eb6d3cb646b80d751cce76eb8e71c6cc3018a6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#OpenRouterSynthesizer.synthesize",+ "name": "synthesize",+ "kind": "method",+ "path": "src/ai/synthesize.ts",+ "span": "L139-L158",+ "signature": "async synthesize(files: FileSummary[]): Promise<SynthNode[]>",+ "exported": true,+ "origin": "ast",+ "body_hash": "f1b94e63417194a18be9062aa3f46838f9c92d65231ceea54d554ecc2aadc767",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#Synthesizer",+ "name": "Synthesizer",+ "kind": "interface",+ "path": "src/ai/synthesize.ts",+ "span": "L35-L37",+ "signature": "interface Synthesizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "55ed4f6b07f808a7591164fad62527f00d6c042c12f5ff1445f29edaf2674d74",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#SynthLink",+ "name": "SynthLink",+ "kind": "interface",+ "path": "src/ai/synthesize.ts",+ "span": "L12-L16",+ "signature": "interface SynthLink",+ "exported": true,+ "origin": "ast",+ "body_hash": "0881e19e19cb63095252ce3b817cad3adb83241167ae37dfc274d245e3e9caac",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#SynthNode",+ "name": "SynthNode",+ "kind": "interface",+ "path": "src/ai/synthesize.ts",+ "span": "L19-L27",+ "signature": "interface SynthNode",+ "exported": true,+ "origin": "ast",+ "body_hash": "b53b2a25e45cfe4a931d93e2a908bafb4ea7d5fe1a02282a18af3f2010b14277",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ai/synthesize.ts#userContent",+ "name": "userContent",+ "kind": "function",+ "path": "src/ai/synthesize.ts",+ "span": "L88-L93",+ "signature": "function userContent(files: FileSummary[]): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "6873b0a9e5dedbebac883fdce991492dd5d2260990d1dd440dcaa60b1bb1c4e9",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/cli.ts",+ "name": "cli.ts",+ "kind": "file",+ "path": "src/cli.ts",+ "span": "L1-L147",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "869fb851e61c4f0e3ab6eb8b104a7d9d6954f240987363b8a44edf6aadb69ee8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/cli.ts#engineFrom",+ "name": "engineFrom",+ "kind": "function",+ "path": "src/cli.ts",+ "span": "L26-L29",+ "signature": "function engineFrom(): Graft",+ "exported": false,+ "origin": "ast",+ "body_hash": "ddbb4f4e57bee5d05b95dc81f034e26183495162d84c6a290e12c6fda6c92ee8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/cli.ts#fmt",+ "name": "fmt",+ "kind": "function",+ "path": "src/cli.ts",+ "span": "L71-L75",+ "signature": "fmt = (o: Record<string, number>)",+ "exported": false,+ "origin": "ast",+ "body_hash": "31c01b913d716a1932fff4c3a0e4a82dfa745d73f488f05b3d71910145bf98ad",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts",+ "name": "build.ts",+ "kind": "file",+ "path": "src/context/build.ts",+ "span": "L1-L350",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "8c614e5dc6b1ef2d6949016ce7480099f95f021ea6b0882f2919397f97a68ce7",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#batchBySize",+ "name": "batchBySize",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L269-L285",+ "signature": "function batchBySize(files: FileSummary[], budget: number): FileSummary[][]",+ "exported": false,+ "origin": "ast",+ "body_hash": "5875cfc2eae35e10fbe5105c48209f37d2b121b15dff5a0ebf1bb9dbf96f8eb7",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#batchKey",+ "name": "batchKey",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L288-L295",+ "signature": "function batchKey(batch: FileSummary[], hashByPath: Map<string, string>): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "8fece338d989b714e96a275a7d4febdf2292a4a25590ce4b3ec73d6be5b45827",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#BuildCache",+ "name": "BuildCache",+ "kind": "interface",+ "path": "src/context/build.ts",+ "span": "L78-L81",+ "signature": "interface BuildCache",+ "exported": false,+ "origin": "ast",+ "body_hash": "c359f1a92e6d72b2734f0ff2f8f38879f95eca1af6ddb47c4c6cab0f62a32133",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#buildContext",+ "name": "buildContext",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L99-L266",+ "signature": "async function buildContext(dir: string, opts: BuildOptions): Promise<BuildResult>",+ "exported": true,+ "origin": "ast",+ "body_hash": "e2afee780fd3be28d7cf55c8aa3fdfebc10ddb1ec63ffbe50f5e712a4625c0f2",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#BuildOptions",+ "name": "BuildOptions",+ "kind": "interface",+ "path": "src/context/build.ts",+ "span": "L54-L64",+ "signature": "interface BuildOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "a8c3781581f56372337a3c3ddd980b7be084f78b359820f8540ec384807c57a8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#BuildProgress",+ "name": "BuildProgress",+ "kind": "interface",+ "path": "src/context/build.ts",+ "span": "L47-L52",+ "signature": "interface BuildProgress",+ "exported": true,+ "origin": "ast",+ "body_hash": "144303735947dfd0c43c5a58e2f8d53ad35ad62b438f65c29c51a56e1dfa56b2",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#BuildResult",+ "name": "BuildResult",+ "kind": "interface",+ "path": "src/context/build.ts",+ "span": "L66-L75",+ "signature": "interface BuildResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "5d4316f8de68fbeba849eaa7a8b12892855205f006361e2a32049e135cf9407e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#cachePath",+ "name": "cachePath",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L310-L312",+ "signature": "function cachePath(outDir: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "ff252b490e39f50d7aa97d0a9fc2ad6330248f194cf27cc31981329e833fb8aa",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#errMsg",+ "name": "errMsg",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L306-L308",+ "signature": "function errMsg(err: unknown): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "79993b725e730fcec35e4a32479a51dfba694b5c9bf900db729b6fc821caee71",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#FileWork",+ "name": "FileWork",+ "kind": "interface",+ "path": "src/context/build.ts",+ "span": "L83-L87",+ "signature": "interface FileWork",+ "exported": false,+ "origin": "ast",+ "body_hash": "06db66a9c25581eac975d533a049ce38bfed463080492389915feb84d9634171",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#loadCache",+ "name": "loadCache",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L314-L325",+ "signature": "function loadCache(outDir: string): BuildCache",+ "exported": false,+ "origin": "ast",+ "body_hash": "8f0f4b949cd4d774433b4043ef9d154fa5722e45d19f69fb4fb1843c4071a3af",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#mapWithConcurrency",+ "name": "mapWithConcurrency",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L334-L349",+ "signature": "async function mapWithConcurrency<T, R>( items: T[], limit: number, fn: (item: T, index: number) => Promise<R>, ): Promise<R[]>",+ "exported": false,+ "origin": "ast",+ "body_hash": "a4c9438ba7cb397b91c5ab695f081e20db5678db9eea0be35a086fda1d9714e5",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#NodeDraft",+ "name": "NodeDraft",+ "kind": "interface",+ "path": "src/context/build.ts",+ "span": "L90-L97",+ "signature": "interface NodeDraft",+ "exported": false,+ "origin": "ast",+ "body_hash": "8ced91ed9a81f2acf4c6047b5091d9d972531cda6c94dfeacd8f52032a37e479",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#registerName",+ "name": "registerName",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L297-L300",+ "signature": "function registerName(table: Map<string, string>, name: string, slug: string): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "19baf28fe22be9ee095b9158cc475114b372193f75407ad731aff306f455d432",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#resolveSlug",+ "name": "resolveSlug",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L302-L304",+ "signature": "function resolveSlug(table: Map<string, string>, name: string): string | undefined",+ "exported": false,+ "origin": "ast",+ "body_hash": "e3b335543a5eb9e316abcb762fcc43a8e66ef10b9217c3b5682958d58eccb40b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/build.ts#saveCache",+ "name": "saveCache",+ "kind": "function",+ "path": "src/context/build.ts",+ "span": "L327-L331",+ "signature": "function saveCache(outDir: string, cache: BuildCache): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "858a9e1dd3769382de94bbf1c7dc76b4c137a777872fca251d2d214eb185a6e3",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/check.ts",+ "name": "check.ts",+ "kind": "file",+ "path": "src/context/check.ts",+ "span": "L1-L140",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "5595857a76ef937d5f8c67be47d85332998b3bd858ca5fd468f2b0e276f8155d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/check.ts#checkContext",+ "name": "checkContext",+ "kind": "function",+ "path": "src/context/check.ts",+ "span": "L37-L107",+ "signature": "function checkContext(dir: string, opts: CheckOptions = {}): CheckResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "06ef9cdf299314884c2c167ef2b07261c310fa4973c392ec8f951354e4657195",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/check.ts#CheckOptions",+ "name": "CheckOptions",+ "kind": "interface",+ "path": "src/context/check.ts",+ "span": "L32-L35",+ "signature": "interface CheckOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "9ea98ccd24c4398fa3c15b57991778a2c5f300000220e01c3e36e0b52093f097",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/check.ts#CheckResult",+ "name": "CheckResult",+ "kind": "interface",+ "path": "src/context/check.ts",+ "span": "L22-L30",+ "signature": "interface CheckResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "91144295d6967be1d7e9675698c39f552001f149346f052f92582dcb23353a6c",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/check.ts#formatCheckReport",+ "name": "formatCheckReport",+ "kind": "function",+ "path": "src/context/check.ts",+ "span": "L110-L135",+ "signature": "function formatCheckReport(r: CheckResult): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "5a0b108ea9b3b3f7853a483105ed6aeafefbc410cb5626e22b01b5681341cc47",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/check.ts#short",+ "name": "short",+ "kind": "function",+ "path": "src/context/check.ts",+ "span": "L137-L139",+ "signature": "function short(hash: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "174b5d08d0283571566816317520c72d2d9a1416f660ce45a854c34aa4cb45e6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts",+ "name": "node-file.ts",+ "kind": "file",+ "path": "src/context/node-file.ts",+ "span": "L1-L228",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "524f415c0b260d78762d5cbdb2ae53223e8868ed114120a0799f7b45f61e3cc3",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#contextDirFor",+ "name": "contextDirFor",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L98-L101",+ "signature": "function contextDirFor(root: string, override?: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "9c59cea86144d45410aab7aef516f7b846ca6d584d4149f9bae47590c7cebf2a",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#ContextNode",+ "name": "ContextNode",+ "kind": "interface",+ "path": "src/context/node-file.ts",+ "span": "L43-L58",+ "signature": "interface ContextNode",+ "exported": true,+ "origin": "ast",+ "body_hash": "6cb97dab12942b8742efa5c785547222aa0350e75d994ccc99f0e1867f1e09d3",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#defaultHuman",+ "name": "defaultHuman",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L119-L121",+ "signature": "function defaultHuman(): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "ea0f628a1792282addf319eaa6469945e4229bacdbba7ad9b44854bd5bfb5373",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#deleteNode",+ "name": "deleteNode",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L209-L212",+ "signature": "function deleteNode(dir: string, slug: string): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "49e161325092c3caf6c1b6d39d78b2d948445dd7609a72f9490e4898e9a973d3",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#digestSources",+ "name": "digestSources",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L89-L95",+ "signature": "function digestSources(sources: SourceRef[]): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "4c53e7543bc40ada4b0b0d853a6af071965175bef7b90980fa911149b2d691db",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#existingNodeSlugs",+ "name": "existingNodeSlugs",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L199-L206",+ "signature": "function existingNodeSlugs(dir: string): Set<string>",+ "exported": true,+ "origin": "ast",+ "body_hash": "016292a970458db3c1be037122b698285f60f46310d0b873f352c0ba393ce39b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#Manifest",+ "name": "Manifest",+ "kind": "interface",+ "path": "src/context/node-file.ts",+ "span": "L61-L71",+ "signature": "interface Manifest",+ "exported": true,+ "origin": "ast",+ "body_hash": "5caafb5633830210bfe7a9d72a8d202f01560f80e2195995013a437e5ab59202",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#NodeLink",+ "name": "NodeLink",+ "kind": "interface",+ "path": "src/context/node-file.ts",+ "span": "L36-L40",+ "signature": "interface NodeLink",+ "exported": true,+ "origin": "ast",+ "body_hash": "126d9b834cb0560714092dabc06b13ac71402695d797a7b770040112c180d9a5",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#ParsedNode",+ "name": "ParsedNode",+ "kind": "interface",+ "path": "src/context/node-file.ts",+ "span": "L170-L177",+ "signature": "interface ParsedNode",+ "exported": true,+ "origin": "ast",+ "body_hash": "1ffb557b4f3f224db4f31fd909bd40d4c25dfe521a4ce551e984167aa6365954",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#preserveHuman",+ "name": "preserveHuman",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L146-L150",+ "signature": "function preserveHuman(existingContent: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "c36a99d53cd67a0c767859701d8efcf4e50c975709f8295b4a5579d9bda574aa",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#readManifest",+ "name": "readManifest",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L219-L227",+ "signature": "function readManifest(dir: string): Manifest | undefined",+ "exported": true,+ "origin": "ast",+ "body_hash": "0e0c22b3cdad566ef833ddc0a4cc2e7be2c262ce50ecc63fbc2c7431c83d2549",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#readNodes",+ "name": "readNodes",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L180-L196",+ "signature": "function readNodes(dir: string): ParsedNode[]",+ "exported": true,+ "origin": "ast",+ "body_hash": "5c13b5768c1840b1ff8972d599356cf704329e6b7d89564809117c745d9edec2",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#renderGenerated",+ "name": "renderGenerated",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L104-L116",+ "signature": "function renderGenerated(node: ContextNode): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "2e1f760d1c196c9bcbef16789bdb3d3860fc7c406e1b5f5745e7cf4bbe1f40f0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#renderNodeFile",+ "name": "renderNodeFile",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L124-L139",+ "signature": "function renderNodeFile(node: ContextNode): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "f064173ff3e72f9f7f703694379edf165ba55d72949f4e6f097118e8e9d79a96",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#slugify",+ "name": "slugify",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L81-L86",+ "signature": "function slugify(name: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "70fca5f67f42bcb40f42175a26795d6a6ac72953f62ada7775a91d8300581fb0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#SourceRef",+ "name": "SourceRef",+ "kind": "interface",+ "path": "src/context/node-file.ts",+ "span": "L30-L33",+ "signature": "interface SourceRef",+ "exported": true,+ "origin": "ast",+ "body_hash": "2603554df891243f1f9c13ab6639a48627c787e5869c2bf692fdd481ae5050dd",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#writeManifest",+ "name": "writeManifest",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L214-L217",+ "signature": "function writeManifest(dir: string, manifest: Manifest): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "049e90311a97eda62d11bd8b35ed1debded19d6f06daa975c938287943e22d88",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/context/node-file.ts#writeNode",+ "name": "writeNode",+ "kind": "function",+ "path": "src/context/node-file.ts",+ "span": "L156-L167",+ "signature": "function writeNode(dir: string, node: ContextNode): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "78ec07695ac8cf3949025497d7f56b47e5b8f0c16d6eb1dbe237c1ecc3e2fffe",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts",+ "name": "engine.ts",+ "kind": "file",+ "path": "src/engine.ts",+ "span": "L1-L116",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "01cac3e03491ecf32bb166c23028c5678f259b42b13b8b777cbdf1fd461c266e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#CheckRunOptions",+ "name": "CheckRunOptions",+ "kind": "interface",+ "path": "src/engine.ts",+ "span": "L32-L34",+ "signature": "interface CheckRunOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "705bea732f08c471e6566f8b6621038988554944b4bf9eca74674cdf518bf9b1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft",+ "name": "Graft",+ "kind": "class",+ "path": "src/engine.ts",+ "span": "L42-L115",+ "signature": "class Graft",+ "exported": true,+ "origin": "ast",+ "body_hash": "7d0133058249f4f9a7962d99a11ae6d87d1f96d20aa55444a68c8077c888eb80",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.check",+ "name": "check",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L62-L64",+ "signature": "check(dir: string, opts: CheckRunOptions = {}): CheckResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "c0ef54370f24e88b0dfc83f2dd21d3db0a44c44538b3ec8bd54d38fac8be2c49",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.checkGraph",+ "name": "checkGraph",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L67-L69",+ "signature": "checkGraph(dir: string): GraphCheckResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "eda4bef32536dd54b29cba56c59d4ea971625167a482e8fe15c5d799be81f870",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.constructor",+ "name": "constructor",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L45-L47",+ "signature": "constructor(config: EngineConfig = {})",+ "exported": true,+ "origin": "ast",+ "body_hash": "374d5de4021aadc3150f3cb521b536653584976599a4956fea4b26c40131c19f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.cruxSummarizer",+ "name": "cruxSummarizer",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L101-L103",+ "signature": "private cruxSummarizer(): CruxSummarizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "3b07279c83115a1232de5b510ce2f501f8699e7b8c70a052c4c455e136f01ca6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.graph",+ "name": "graph",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L76-L82",+ "signature": "graph(dir: string, opts: GraphRunOptions = {}): Promise<GraphBuildResult>",+ "exported": true,+ "origin": "ast",+ "body_hash": "227e5765f18483fe86dcc7c78c3955f141d0630c869b5111f2283366c8162a06",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.init",+ "name": "init",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L50-L59",+ "signature": "async init(dir: string, opts: InitOptions = {}): Promise<BuildResult>",+ "exported": true,+ "origin": "ast",+ "body_hash": "7ee2e73a5a5412667db890e91f0f2abfb15b94ea1331db17aef0f841c348fbf1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.modelLabel",+ "name": "modelLabel",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L111-L114",+ "signature": "private modelLabel(): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "7034c4cd5e06b1b37f2ef068736f35fddaca136a3cae2ae5e595fda7efa2bd89",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.requireKey",+ "name": "requireKey",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L85-L93",+ "signature": "private requireKey(): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "9aed1d64896a6e8f8d3cd6c00e53f8e8baf2b424e0522d28408861b2f7c22912",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.summarizer",+ "name": "summarizer",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L105-L108",+ "signature": "private summarizer(): Summarizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "160e884c1dd10b916c36a737886880d98430fb84c5dd7828e69536b8198e3b2f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#Graft.synthesizer",+ "name": "synthesizer",+ "kind": "method",+ "path": "src/engine.ts",+ "span": "L95-L98",+ "signature": "private synthesizer(): Synthesizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "2a65f2a449bd40274d81542edfb36e20ceb8cf0160b030e8bd42b9698a386d20",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#GraphRunOptions",+ "name": "GraphRunOptions",+ "kind": "interface",+ "path": "src/engine.ts",+ "span": "L36-L40",+ "signature": "interface GraphRunOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "39ff67f6cc34aa0019b25dcee492776cfbb3872146ec3920492b97331fca894b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/engine.ts#InitOptions",+ "name": "InitOptions",+ "kind": "interface",+ "path": "src/engine.ts",+ "span": "L25-L30",+ "signature": "interface InitOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "4a606cc2ac6df47d7b50de2a7ce33b2bd85e5dad93bea127871b9b952ddb0f8a",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/build.ts",+ "name": "build.ts",+ "kind": "file",+ "path": "src/graph/build.ts",+ "span": "L1-L134",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "383d481fa00ab204c70b66c7ce88de1ffd3c5bba298116c1c4d8c6910834e944",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/build.ts#buildGraph",+ "name": "buildGraph",+ "kind": "function",+ "path": "src/graph/build.ts",+ "span": "L52-L131",+ "signature": "async function buildGraph( dir: string, opts: GraphBuildOptions = {}, ): Promise<GraphBuildResult>",+ "exported": true,+ "origin": "ast",+ "body_hash": "4fca5c6d97f526c471c9a7f9b1c2208cc69d3fa7ce975fcf1292d5d1e7445358",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/build.ts#GraphBuildOptions",+ "name": "GraphBuildOptions",+ "kind": "interface",+ "path": "src/graph/build.ts",+ "span": "L21-L32",+ "signature": "interface GraphBuildOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "71abfa189c81e3297978ab399e0918f9504d8fffe5730d8f604a6df9640bdd4f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/build.ts#GraphBuildResult",+ "name": "GraphBuildResult",+ "kind": "interface",+ "path": "src/graph/build.ts",+ "span": "L34-L45",+ "signature": "interface GraphBuildResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "df3ac66c481683aaf62d11854e5ce85ac2ab887fce2498fdf032045a22f111aa",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/build.ts#listSourceFiles",+ "name": "listSourceFiles",+ "kind": "function",+ "path": "src/graph/build.ts",+ "span": "L48-L50",+ "signature": "function listSourceFiles(root: string, outDir: string): string[]",+ "exported": true,+ "origin": "ast",+ "body_hash": "09c58d7bb3b7c55ef5688af18f41e0d4eda5c4cb444a9ffb3290697794834ba0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/check.ts",+ "name": "check.ts",+ "kind": "file",+ "path": "src/graph/check.ts",+ "span": "L1-L136",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "f285574bc5853c04ad0fb1eb7103f558f890d9e0f143ff1e882cf1e42b38037f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/check.ts#checkGraph",+ "name": "checkGraph",+ "kind": "function",+ "path": "src/graph/check.ts",+ "span": "L43-L101",+ "signature": "function checkGraph(dir: string, opts: GraphCheckOptions = {}): GraphCheckResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "fbebbde003d3214caf412f74ed042636b2c0997e619bc7eb85b30badfcfdec65",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/check.ts#formatGraphCheckReport",+ "name": "formatGraphCheckReport",+ "kind": "function",+ "path": "src/graph/check.ts",+ "span": "L104-L135",+ "signature": "function formatGraphCheckReport(r: GraphCheckResult): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "c05fd7f5f3f5ed13a5816f2176d30910bb5d351b347d6dbe0fb3a4d3642ba7d6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/check.ts#GraphCheckOptions",+ "name": "GraphCheckOptions",+ "kind": "interface",+ "path": "src/graph/check.ts",+ "span": "L39-L41",+ "signature": "interface GraphCheckOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "deb14aad6be2a49d6d6d059a64a4eb55a7041a039cbabf92c55222647c2b0679",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/check.ts#GraphCheckResult",+ "name": "GraphCheckResult",+ "kind": "interface",+ "path": "src/graph/check.ts",+ "span": "L27-L37",+ "signature": "interface GraphCheckResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "8b12129196b2a1b6d3c7a45a086708e123527cbc0417ce5db07a710a853719c0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/enrich.ts",+ "name": "enrich.ts",+ "kind": "file",+ "path": "src/graph/enrich.ts",+ "span": "L1-L187",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "7b8238702835246bfc446ae017157e627c7609fde83b090619de71d013edf8e6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/enrich.ts#buildCrux",+ "name": "buildCrux",+ "kind": "function",+ "path": "src/graph/enrich.ts",+ "span": "L162-L177",+ "signature": "function buildCrux(r: NodeCrux, node: NodeV1, source: string, lineCount: number): Crux | null",+ "exported": false,+ "origin": "ast",+ "body_hash": "b8e82b1a1f721cdba2a3ff1a6d46db8b30a0048178d7c7e7df0731e60c059a81",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/enrich.ts#collectFileCrux",+ "name": "collectFileCrux",+ "kind": "function",+ "path": "src/graph/enrich.ts",+ "span": "L135-L155",+ "signature": "async function collectFileCrux( summarizer: CruxSummarizer, path: string, source: string, refs: NodeRef[], ): Promise<{ results: Map<string, NodeCrux>; error?: string }>",+ "exported": false,+ "origin": "ast",+ "body_hash": "e549b76d14ae5d596c084dd5f655bded2092a36e3505ff6135c054ccf043efda",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/enrich.ts#enrichGraph",+ "name": "enrichGraph",+ "kind": "function",+ "path": "src/graph/enrich.ts",+ "span": "L43-L128",+ "signature": "async function enrichGraph( nodes: NodeV1[], prior: Map<string, NodeV1>, sources: Map<string, string>, opts: EnrichOptions = {}, ): Promise<EnrichStats>",+ "exported": true,+ "origin": "ast",+ "body_hash": "67bf09b50cd3f75e72e7c8ce7b7f20847e380dcc731531d00d17e8866945336b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/enrich.ts#EnrichOptions",+ "name": "EnrichOptions",+ "kind": "interface",+ "path": "src/graph/enrich.ts",+ "span": "L28-L33",+ "signature": "interface EnrichOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "5b1a8379d9c8f934883d81912390338ba9917af35f05b8eb378f405e114adddb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/enrich.ts#EnrichStats",+ "name": "EnrichStats",+ "kind": "interface",+ "path": "src/graph/enrich.ts",+ "span": "L35-L41",+ "signature": "interface EnrichStats",+ "exported": true,+ "origin": "ast",+ "body_hash": "63a93dfdf61c8da0d3a05c601b74619ad84942d37425b4391b8da2b01d2d694c",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/enrich.ts#spanLines",+ "name": "spanLines",+ "kind": "function",+ "path": "src/graph/enrich.ts",+ "span": "L180-L186",+ "signature": "function spanLines(span: string, fileLines: number): [number, number]",+ "exported": false,+ "origin": "ast",+ "body_hash": "d7f074949c35eaa3f883194e41cda61c34a624a66ec368ef352dc7f0b2e7e256",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts",+ "name": "extract.ts",+ "kind": "file",+ "path": "src/graph/extract.ts",+ "span": "L1-L298",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "58cd002d5ee7dfb750cb85293a795148ffbec31e68e2a9b693e0794543a7f727",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#calleeName",+ "name": "calleeName",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L244-L260",+ "signature": "function calleeName( node: Parser.SyntaxNode, lang: Language, ): { name: string; viaMember: boolean } | null",+ "exported": false,+ "origin": "ast",+ "body_hash": "06353b6cf0a05cf60bad712082837f52c169e6db9209488f1ee04ea22bef8082",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#clean",+ "name": "clean",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L280-L287",+ "signature": "function clean(raw: string): string | null",+ "exported": false,+ "origin": "ast",+ "body_hash": "38343faa35f42e41e98c93d6816454cfe294123505d2bae14f045624cf6d80e1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#DefDescriptor",+ "name": "DefDescriptor",+ "kind": "interface",+ "path": "src/graph/extract.ts",+ "span": "L87-L92",+ "signature": "interface DefDescriptor",+ "exported": false,+ "origin": "ast",+ "body_hash": "414875473c4cf1728483558f5354b6f37c279d2bc49393b3b93322a9573a7f00",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#describe",+ "name": "describe",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L184-L213",+ "signature": "function describe(node: Parser.SyntaxNode, ctx: WalkCtx): DefDescriptor | null",+ "exported": false,+ "origin": "ast",+ "body_hash": "9a6919ff2bed807cf790adcea3b0d423db94baa10fc2069514e0c20c1b5f7117",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#extractFile",+ "name": "extractFile",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L94-L127",+ "signature": "function extractFile(rel: string, source: string, lang: Language): ExtractResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "464dc6d27977ade3cd0a52213f5cc1b963e4dfafc328cc1e059925bac9c9436d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#ExtractResult",+ "name": "ExtractResult",+ "kind": "interface",+ "path": "src/graph/extract.ts",+ "span": "L41-L44",+ "signature": "interface ExtractResult",+ "exported": true,+ "origin": "ast",+ "body_hash": "7bef2217a3edd0ae64ae3585affe29e5bc0e0f471ca1d7901910fa737e4d01af",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#heritageEdges",+ "name": "heritageEdges",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L215-L242",+ "signature": "function heritageEdges(node: Parser.SyntaxNode, classId: string, ctx: WalkCtx): RawEdge[]",+ "exported": false,+ "origin": "ast",+ "body_hash": "a73044fd4c3636db388dcd17dc5cebfa2090322501f2674989e892f89f2e1b03",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#importSpecifier",+ "name": "importSpecifier",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L266-L277",+ "signature": "function importSpecifier(node: Parser.SyntaxNode, lang: Language): string | null",+ "exported": false,+ "origin": "ast",+ "body_hash": "edf2e115d4815ca2b2c480f6ab6ec254114fdb5fa329439fb1092449c6222ff5",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#isImport",+ "name": "isImport",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L262-L264",+ "signature": "function isImport(node: Parser.SyntaxNode): boolean",+ "exported": false,+ "origin": "ast",+ "body_hash": "70722311d982f2fa892674266eddfe75b20ad22c62a323448a86a29044a6b7f6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#Language",+ "name": "Language",+ "kind": "type",+ "path": "src/graph/extract.ts",+ "span": "L16-L16",+ "signature": "type Language = \"typescript\" | \"tsx\" | \"python\";",+ "exported": true,+ "origin": "ast",+ "body_hash": "5a7c4ffe69a0058e67f6150fd6d7a941265322ef73669c6fae36bdd9a92af5c6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#languageOf",+ "name": "languageOf",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L19-L25",+ "signature": "function languageOf(path: string): Language | null",+ "exported": true,+ "origin": "ast",+ "body_hash": "d68b32ad7c9702e80d148c718d03ef4d64d44805d4294c2503426ea9143e9e1d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#RawEdge",+ "name": "RawEdge",+ "kind": "interface",+ "path": "src/graph/extract.ts",+ "span": "L31-L39",+ "signature": "interface RawEdge",+ "exported": true,+ "origin": "ast",+ "body_hash": "707c4b43d565711035439d2541197427ac0d4da52241d33cf63dd3fb3ac98754",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#tsExported",+ "name": "tsExported",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L290-L297",+ "signature": "function tsExported(node: Parser.SyntaxNode): boolean",+ "exported": false,+ "origin": "ast",+ "body_hash": "dd6c141ae925e333baeebc3f3d19c3043670c76a4f32b711e8166ac6eb86f2f4",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#walk",+ "name": "walk",+ "kind": "function",+ "path": "src/graph/extract.ts",+ "span": "L129-L181",+ "signature": "function walk(node: Parser.SyntaxNode, ctx: WalkCtx, out: NodeV1[], edges: RawEdge[]): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "7cd315e50d1665cc130f049e5b655ac09f3e87f406fd7eba2b3fd6a4aca1c749",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/extract.ts#WalkCtx",+ "name": "WalkCtx",+ "kind": "interface",+ "path": "src/graph/extract.ts",+ "span": "L76-L84",+ "signature": "interface WalkCtx",+ "exported": false,+ "origin": "ast",+ "body_hash": "b2e93ec2af59e0078d500a068b620a426b6a588804ba62faba20d7f47f90bb3e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/resolve.ts",+ "name": "resolve.ts",+ "kind": "file",+ "path": "src/graph/resolve.ts",+ "span": "L1-L101",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "dad41f73d773c45f5237b85e10a36ae45331cd5959df578816ee8ab47622cffe",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/resolve.ts#push",+ "name": "push",+ "kind": "function",+ "path": "src/graph/resolve.ts",+ "span": "L60-L64",+ "signature": "function push<T>(map: Map<string, T[]>, key: string, val: T): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "0f349e9ed1ee9ef1c7695b65c3f3948140eb20a60f36ba9d915a79e92eed7391",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/resolve.ts#resolveEdges",+ "name": "resolveEdges",+ "kind": "function",+ "path": "src/graph/resolve.ts",+ "span": "L20-L58",+ "signature": "function resolveEdges(nodes: NodeV1[], rawEdges: RawEdge[]): EdgeV1[]",+ "exported": true,+ "origin": "ast",+ "body_hash": "ace9e1eb0f3e9bc400f1341e0c23209b13d3c4f2b004e55a2397ebf4902cb41e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/resolve.ts#resolveEdges.add",+ "name": "add",+ "kind": "function",+ "path": "src/graph/resolve.ts",+ "span": "L34-L39",+ "signature": "add = (source: string, target: string, relation: Relation, confidence: EdgeV1[\"confidence\"])",+ "exported": true,+ "origin": "ast",+ "body_hash": "7f8c2ba06670d38fd33b508c463d4c8e08ae614f7559b3571c8b7db1d51fd380",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/resolve.ts#resolveImport",+ "name": "resolveImport",+ "kind": "function",+ "path": "src/graph/resolve.ts",+ "span": "L88-L100",+ "signature": "function resolveImport(spec: string, file: string, byId: Map<string, NodeV1>): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "5dcee73ae49d61baf6cba0f1430bcc799975d19b6d72ac0a6da911e14fafa955",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/resolve.ts#resolveName",+ "name": "resolveName",+ "kind": "function",+ "path": "src/graph/resolve.ts",+ "span": "L70-L82",+ "signature": "function resolveName( name: string, file: string, kinds: Kind[], perFileName: Map<string, Map<string, NodeV1[]>>, globalName: Map<string, NodeV1[]>, ): { id: string; confidence: EdgeV1[\"confidence\"] } | null",+ "exported": false,+ "origin": "ast",+ "body_hash": "612a086f93eb383b759795d9e5b93d6f429bd4a17c22c9b3e65fcf7d79e0e6f0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts",+ "name": "types.ts",+ "kind": "file",+ "path": "src/graph/types.ts",+ "span": "L1-L82",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "757b84c059d13cda49e0f29518b31a5473f0d6e243b2ab1f374a7f7ff02492e4",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#Confidence",+ "name": "Confidence",+ "kind": "type",+ "path": "src/graph/types.ts",+ "span": "L25-L25",+ "signature": "type Confidence = \"extracted\" | \"inferred\";",+ "exported": true,+ "origin": "ast",+ "body_hash": "305d107dc8cea0d8fcf2e42c13eef23345a53cd6a24672d8a017d5c8d393d46c",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#Crux",+ "name": "Crux",+ "kind": "interface",+ "path": "src/graph/types.ts",+ "span": "L32-L35",+ "signature": "interface Crux",+ "exported": true,+ "origin": "ast",+ "body_hash": "157f97611f592b25b78af3bd626d10c866b4aa23344a96823de466eb1ecbe28d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#EdgeV1",+ "name": "EdgeV1",+ "kind": "interface",+ "path": "src/graph/types.ts",+ "span": "L65-L70",+ "signature": "interface EdgeV1",+ "exported": true,+ "origin": "ast",+ "body_hash": "ab2ffb1ba27a286985e517d71d7866d2d389e585d1584647a90fb520b4d92628",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#GraphV1",+ "name": "GraphV1",+ "kind": "interface",+ "path": "src/graph/types.ts",+ "span": "L72-L81",+ "signature": "interface GraphV1",+ "exported": true,+ "origin": "ast",+ "body_hash": "fa588451b38bfa2c1ea17eeabb5cd4d18769ecbf75ba79fb160d59d2d2666e8e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#Kind",+ "name": "Kind",+ "kind": "type",+ "path": "src/graph/types.ts",+ "span": "L15-L22",+ "signature": "type Kind = | \"file\" | \"class\" | \"function\" | \"method\" | \"interface\" // TS only | \"type\" // TS only (type alias) | \"enum\";",+ "exported": true,+ "origin": "ast",+ "body_hash": "b233aa721b3c652dd7f3b4de6e3410e0f44a1da079cbb90df6d8e05eb4cc49f0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#NodeV1",+ "name": "NodeV1",+ "kind": "interface",+ "path": "src/graph/types.ts",+ "span": "L37-L55",+ "signature": "interface NodeV1",+ "exported": true,+ "origin": "ast",+ "body_hash": "beaac037e2ce6292f6f5883e10c6a1df41963629d9090bbde0d88ef5b6fd8309",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#Relation",+ "name": "Relation",+ "kind": "type",+ "path": "src/graph/types.ts",+ "span": "L57-L63",+ "signature": "type Relation = | \"contains\" // file → symbol, class → method (structural) | \"calls\" // function → function it invokes | \"imports\" // file → module | \"references\" // symbol → symbol it names but doesn't call | \"implements\" // TS: class → interface | \"extends\";",+ "exported": true,+ "origin": "ast",+ "body_hash": "226fd93c673f4bfa583e44e3be8c2ca8e0957bf1b95771f067e4999b1e89d145",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/types.ts#SummaryState",+ "name": "SummaryState",+ "kind": "type",+ "path": "src/graph/types.ts",+ "span": "L28-L28",+ "signature": "type SummaryState = \"pending\" | \"ready\" | \"stale\";",+ "exported": true,+ "origin": "ast",+ "body_hash": "0689b3a76aa3ee3553bec1bccff2817cac613e747d317688f296748e8c929e0e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/write.ts",+ "name": "write.ts",+ "kind": "file",+ "path": "src/graph/write.ts",+ "span": "L1-L45",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "2f2e06e41f959064181f32cf9ebdd72af31a9d45c6cf5cd771e00990c53073fb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/write.ts#edgeOrder",+ "name": "edgeOrder",+ "kind": "function",+ "path": "src/graph/write.ts",+ "span": "L38-L44",+ "signature": "function edgeOrder(a: EdgeV1, b: EdgeV1): number",+ "exported": false,+ "origin": "ast",+ "body_hash": "1c2665c44f094c37f510a0ca5befc63bf67ae59c52d77dfdcbe15611d2e5abbe",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/write.ts#readGraph",+ "name": "readGraph",+ "kind": "function",+ "path": "src/graph/write.ts",+ "span": "L18-L24",+ "signature": "function readGraph(path: string): GraphV1 | null",+ "exported": true,+ "origin": "ast",+ "body_hash": "a68ca7cd48652a99a350b76c387a19462cc984c42bbc9b00a30e629af5fda52e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/graph/write.ts#writeGraph",+ "name": "writeGraph",+ "kind": "function",+ "path": "src/graph/write.ts",+ "span": "L26-L36",+ "signature": "function writeGraph(graph: GraphV1, outDir: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "6eeda3c5d193b1d0559e8d16367d54cc9f8a4bb9cf9b78489bc9a3df3f2b02a3",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/index.ts",+ "name": "index.ts",+ "kind": "file",+ "path": "src/index.ts",+ "span": "L1-L37",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "e56e74612514fd45665b27e3c47b4a685b503a533b38e1674d256344511107fc",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ingest/fs.ts",+ "name": "fs.ts",+ "kind": "file",+ "path": "src/ingest/fs.ts",+ "span": "L1-L46",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "a8339532da34b44d35eb9ad16e7106adb1262d73d9895b1bd94574337fb2019f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/ingest/fs.ts#walkDir",+ "name": "walkDir",+ "kind": "function",+ "path": "src/ingest/fs.ts",+ "span": "L27-L45",+ "signature": "function walkDir(dir: string): string[]",+ "exported": true,+ "origin": "ast",+ "body_hash": "001f6c9f648af0620ed90c55a132464ab87da3ad74b6711df716e9f9493333c4",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/util/id.ts",+ "name": "id.ts",+ "kind": "file",+ "path": "src/util/id.ts",+ "span": "L1-L17",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "5fabc8ddcc3abc907ce69f04ad2ebe51933262cf44aa2dfd40589f71f1926e8a",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/util/id.ts#contentHash",+ "name": "contentHash",+ "kind": "function",+ "path": "src/util/id.ts",+ "span": "L9-L11",+ "signature": "function contentHash(input: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "d83ce720108cb9ea3b0c7b1e7034657603640647ca00283905fcd099ac3fe2ed",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/util/id.ts#newId",+ "name": "newId",+ "kind": "function",+ "path": "src/util/id.ts",+ "span": "L4-L6",+ "signature": "function newId(prefix: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "55062dee898e1edb76d65f7daf785b67e998a57a7dfd6f78c7eb17f39e3e1dc0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/util/id.ts#normalizeName",+ "name": "normalizeName",+ "kind": "function",+ "path": "src/util/id.ts",+ "span": "L14-L16",+ "signature": "function normalizeName(name: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "bac0e298462067a441b2b76566ed29c3787280585b956f84b81d7a766cd7211a",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/assemble.ts",+ "name": "assemble.ts",+ "kind": "file",+ "path": "src/viz/assemble.ts",+ "span": "L1-L131",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "58ad5caed087bd7b929f5b625501a607e79e0476f998636bec241e0296706ece",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/assemble.ts#assembleContextGraph",+ "name": "assembleContextGraph",+ "kind": "function",+ "path": "src/viz/assemble.ts",+ "span": "L79-L130",+ "signature": "function assembleContextGraph(contextDir: string): VizGraph",+ "exported": true,+ "origin": "ast",+ "body_hash": "8529626bef8abf2e1a326d601cf5a6a4972e0a1b801d6b653ba8227a27b9dbbd",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/assemble.ts#extractSummary",+ "name": "extractSummary",+ "kind": "function",+ "path": "src/viz/assemble.ts",+ "span": "L65-L76",+ "signature": "function extractSummary(body: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "1857e477bdb012672fa843cfca8d43eb543e7cfba2cc496692a65ebe8c0fa6c5",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/assemble.ts#normalizeRelation",+ "name": "normalizeRelation",+ "kind": "function",+ "path": "src/viz/assemble.ts",+ "span": "L56-L58",+ "signature": "function normalizeRelation(rel: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "adfaae55d1d21718adbedaa294194517aa7abdddeb95433642fd358137e48909",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/assemble.ts#VizEdge",+ "name": "VizEdge",+ "kind": "interface",+ "path": "src/viz/assemble.ts",+ "span": "L26-L31",+ "signature": "interface VizEdge",+ "exported": true,+ "origin": "ast",+ "body_hash": "bef3aefe267d463b0d4cf617f379adadd4fffb539e9a0a5e240520be60a191cb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/assemble.ts#VizGraph",+ "name": "VizGraph",+ "kind": "interface",+ "path": "src/viz/assemble.ts",+ "span": "L33-L42",+ "signature": "interface VizGraph",+ "exported": true,+ "origin": "ast",+ "body_hash": "7edd9c49c11acc8e90963256a92ee2f27415c50446334924e2e260b715b56427",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/assemble.ts#VizNode",+ "name": "VizNode",+ "kind": "interface",+ "path": "src/viz/assemble.ts",+ "span": "L18-L24",+ "signature": "interface VizNode",+ "exported": true,+ "origin": "ast",+ "body_hash": "ec19a79898c594e5afc405cab037fcc0c43144c5766af8a955dccda7df733ba6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts",+ "name": "serve.ts",+ "kind": "file",+ "path": "src/viz/serve.ts",+ "span": "L1-L149",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "d53b1bd24bff545ea46ed1efbae635a77e4eae43ee4635862c8a7f5564fa94b4",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts#listen",+ "name": "listen",+ "kind": "function",+ "path": "src/viz/serve.ts",+ "span": "L43-L55",+ "signature": "function listen(server: Server, port: number): Promise<boolean>",+ "exported": false,+ "origin": "ast",+ "body_hash": "b43a357dceb98a6eb6676409503021e6e38f13d7d442d44ba819dda0c0ea6246",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts#listen.onError",+ "name": "onError",+ "kind": "function",+ "path": "src/viz/serve.ts",+ "span": "L45-L48",+ "signature": "onError = (err: NodeJS.ErrnoException)",+ "exported": false,+ "origin": "ast",+ "body_hash": "6643919e3ea413fc58afe100fe65dc3beccadb7aa66bf5d3247e072c83d9d000",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts#sendJson",+ "name": "sendJson",+ "kind": "function",+ "path": "src/viz/serve.ts",+ "span": "L38-L41",+ "signature": "function sendJson(res: ServerResponse, status: number, body: unknown): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "a2b33c898c929db2715116f964722f5e438e61a58fdfa4607d21c4365df5da6a",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts#startVizServer",+ "name": "startVizServer",+ "kind": "function",+ "path": "src/viz/serve.ts",+ "span": "L57-L148",+ "signature": "async function startVizServer(opts: VizServerOptions): Promise<VizServer>",+ "exported": true,+ "origin": "ast",+ "body_hash": "b370cb84eccafaf296dec3f910462dc4e3e171b013cc0c7733ada64684730279",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts#startVizServer.close",+ "name": "close",+ "kind": "method",+ "path": "src/viz/serve.ts",+ "span": "L140-L146",+ "signature": "close(): Promise<void>",+ "exported": true,+ "origin": "ast",+ "body_hash": "69dc0089d8f1d6e843c8add8fabf2e120fd1045505f9c15632ba93bdc58c01d4",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts#VizServer",+ "name": "VizServer",+ "kind": "interface",+ "path": "src/viz/serve.ts",+ "span": "L23-L26",+ "signature": "interface VizServer",+ "exported": true,+ "origin": "ast",+ "body_hash": "9c56587daccba8982a5f5da3a0ea5f185becea8c4f4927331b15117f5d456214",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "src/viz/serve.ts#VizServerOptions",+ "name": "VizServerOptions",+ "kind": "interface",+ "path": "src/viz/serve.ts",+ "span": "L16-L21",+ "signature": "interface VizServerOptions",+ "exported": true,+ "origin": "ast",+ "body_hash": "0b439484269a73c19df0d658113fbdc889c2214d1081e08d92bc86ae99e0c795",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/context.test.ts",+ "name": "context.test.ts",+ "kind": "file",+ "path": "test/context.test.ts",+ "span": "L1-L137",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "977ca7f64b4b9e3f5661be18ea3710399b976cb989aa5d17af3c6ee4692aed33",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/context.test.ts#buildOpts",+ "name": "buildOpts",+ "kind": "function",+ "path": "test/context.test.ts",+ "span": "L27-L29",+ "signature": "function buildOpts()",+ "exported": false,+ "origin": "ast",+ "body_hash": "20ec093d8fa9dadc46af8980d9440b6824597f4cdeb74529d4d62ee38d27e52d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/context.test.ts#makeFixture",+ "name": "makeFixture",+ "kind": "function",+ "path": "test/context.test.ts",+ "span": "L14-L25",+ "signature": "function makeFixture(): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "515198ac732683d4da4b920e53a0eb439ea8e0107afb22af65cc29c0e702192c",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/helpers.ts",+ "name": "helpers.ts",+ "kind": "file",+ "path": "test/helpers.ts",+ "span": "L1-L55",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "e45af1d38d7c6d4abc804fc74e9ae4c3373cf78769c17b16b185c3ee0e2c3228",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/helpers.ts#BracketSynthesizer",+ "name": "BracketSynthesizer",+ "kind": "class",+ "path": "test/helpers.ts",+ "span": "L21-L50",+ "signature": "class BracketSynthesizer implements Synthesizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "6a30b1293990bb2dce95f1f1f77219dbcdc54eef7e6a01d0db03403f4d344bcc",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/helpers.ts#BracketSynthesizer.synthesize",+ "name": "synthesize",+ "kind": "method",+ "path": "test/helpers.ts",+ "span": "L22-L49",+ "signature": "async synthesize(files: FileSummary[]): Promise<SynthNode[]>",+ "exported": true,+ "origin": "ast",+ "body_hash": "b42a19064389576a02ba334fcab8bfb5d8d985a46f995be864095e770d47e26d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/helpers.ts#BracketSynthesizer.synthesize.ensure",+ "name": "ensure",+ "kind": "function",+ "path": "test/helpers.ts",+ "span": "L24-L31",+ "signature": "ensure = (name: string)",+ "exported": true,+ "origin": "ast",+ "body_hash": "3b8cc65a6170766e70a5b038f9f27176e60114ce70e0e2dc1463f720ed384c4c",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/helpers.ts#fakeProviders",+ "name": "fakeProviders",+ "kind": "function",+ "path": "test/helpers.ts",+ "span": "L52-L54",+ "signature": "function fakeProviders()",+ "exported": true,+ "origin": "ast",+ "body_hash": "0395bc21ba030a5d0e1fc9e5fdd0d8780c4309c87d899bedbc940f1bdcd2864f",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/helpers.ts#PassthroughSummarizer",+ "name": "PassthroughSummarizer",+ "kind": "class",+ "path": "test/helpers.ts",+ "span": "L9-L13",+ "signature": "class PassthroughSummarizer implements Summarizer",+ "exported": true,+ "origin": "ast",+ "body_hash": "43c71f9e449859d657d6cef17b80d2bb650734751530e8401c356fc963f7b012",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/helpers.ts#PassthroughSummarizer.summarize",+ "name": "summarize",+ "kind": "method",+ "path": "test/helpers.ts",+ "span": "L10-L12",+ "signature": "async summarize(code: string): Promise<string>",+ "exported": true,+ "origin": "ast",+ "body_hash": "8836e78c4875dee01aeae5cb976c217cd347554542e387996b7c190b1a73af18",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/viz-assemble.test.ts",+ "name": "viz-assemble.test.ts",+ "kind": "file",+ "path": "test/viz-assemble.test.ts",+ "span": "L1-L106",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "89a2a9f11f459a8110f9d89b2de780dfd164504f3b4c7dc61953a6c83c5911cb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/viz-assemble.test.ts#makeContextDir",+ "name": "makeContextDir",+ "kind": "function",+ "path": "test/viz-assemble.test.ts",+ "span": "L12-L60",+ "signature": "function makeContextDir(): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "4fab7dd2dc5bc7c0b9d575f8396bdca67e8d2d5a9f337aa14ef7740dd87b2119",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/viz-serve.test.ts",+ "name": "viz-serve.test.ts",+ "kind": "file",+ "path": "test/viz-serve.test.ts",+ "span": "L1-L100",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "ca8c82a0e53b4d08706744fb2693669682f64552bcfa910e32b5f9b547699cbb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "test/viz-serve.test.ts#makeDirs",+ "name": "makeDirs",+ "kind": "function",+ "path": "test/viz-serve.test.ts",+ "span": "L13-L27",+ "signature": "function makeDirs(): { contextDir: string; viewerDir: string; root: string }",+ "exported": false,+ "origin": "ast",+ "body_hash": "cff2ec95e868528eec2623a2907ab4c4e3e4a55224d0551b1fb8a63e8bbc124d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts",+ "name": "data.ts",+ "kind": "file",+ "path": "viewer/data.ts",+ "span": "L1-L122",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "e9c5c89ad933e06004cbeddc1b1d7b60a6057726a463c66f9673ba20a3c61afd",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#chipKey",+ "name": "chipKey",+ "kind": "function",+ "path": "viewer/data.ts",+ "span": "L47-L51",+ "signature": "function chipKey(rel: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "85dd128b9f3bf028efaeac2428474b0d70ac47e8e94bcba80c111d59a6006df9",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#CodeGraphV1",+ "name": "CodeGraphV1",+ "kind": "interface",+ "path": "viewer/data.ts",+ "span": "L86-L93",+ "signature": "interface CodeGraphV1",+ "exported": false,+ "origin": "ast",+ "body_hash": "e494a9a322973f3bc8af2017764ac546a8e9cb7b03cae5aeb730f48ad2521d90",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#colorToken",+ "name": "colorToken",+ "kind": "function",+ "path": "viewer/data.ts",+ "span": "L72-L75",+ "signature": "function colorToken(tab: \"context\" | \"code\", type: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "dc48f14294140f474d97fdedf0bdbbbe487d5f0bcdeda6ae84f87251ab24b007",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#cvar",+ "name": "cvar",+ "kind": "function",+ "path": "viewer/data.ts",+ "span": "L77-L79",+ "signature": "function cvar(name: string): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "89e6f3b44e0dd358542573894691c925266e88da9160b79be00d043ae17245e8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#Family",+ "name": "Family",+ "kind": "type",+ "path": "viewer/data.ts",+ "span": "L29-L29",+ "signature": "type Family = \"structure\" | \"dependency\" | \"contract\" | \"association\";",+ "exported": true,+ "origin": "ast",+ "body_hash": "324db0cd1c7f2eebbda194734b2a8db880eb835949f0325780ea5ae75308ef05",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#famOf",+ "name": "famOf",+ "kind": "function",+ "path": "viewer/data.ts",+ "span": "L39-L41",+ "signature": "function famOf(rel: string): Family",+ "exported": true,+ "origin": "ast",+ "body_hash": "faed31084ad49496d754f589593081a76a4cd98e714ff10a10c07d5cd476738d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#loadCodeGraph",+ "name": "loadCodeGraph",+ "kind": "function",+ "path": "viewer/data.ts",+ "span": "L96-L113",+ "signature": "async function loadCodeGraph(): Promise<VizGraph | null>",+ "exported": true,+ "origin": "ast",+ "body_hash": "343a1a01362fa33345082eb6cd5a04cfc1b7a1411de7bc23422c5ac5ebb1fae1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#loadContextGraph",+ "name": "loadContextGraph",+ "kind": "function",+ "path": "viewer/data.ts",+ "span": "L81-L84",+ "signature": "async function loadContextGraph(): Promise<VizGraph>",+ "exported": true,+ "origin": "ast",+ "body_hash": "c65d9227bea8ceceffd49b4eb8475677aef8ca8820b966d9228a31875a6589e1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#onServerChange",+ "name": "onServerChange",+ "kind": "function",+ "path": "viewer/data.ts",+ "span": "L116-L121",+ "signature": "function onServerChange(handler: () => void): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "d864a1d7995232ad54351830e5963a2c6fc8c64cc5a941cf9cfea74d688514c9",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#VizEdge",+ "name": "VizEdge",+ "kind": "interface",+ "path": "viewer/data.ts",+ "span": "L14-L20",+ "signature": "interface VizEdge",+ "exported": true,+ "origin": "ast",+ "body_hash": "13baa6c9acc4c78eec36835e02fd49df79e869f836880341a959be134ceaabb1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#VizGraph",+ "name": "VizGraph",+ "kind": "interface",+ "path": "viewer/data.ts",+ "span": "L22-L26",+ "signature": "interface VizGraph",+ "exported": true,+ "origin": "ast",+ "body_hash": "6448a4bb9c71c7932dce92d9d8a452f99a0a100041bd30c5b6759c5784b0f098",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/data.ts#VizNode",+ "name": "VizNode",+ "kind": "interface",+ "path": "viewer/data.ts",+ "span": "L6-L12",+ "signature": "interface VizNode",+ "exported": true,+ "origin": "ast",+ "body_hash": "ec19a79898c594e5afc405cab037fcc0c43144c5766af8a955dccda7df733ba6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/detail.ts",+ "name": "detail.ts",+ "kind": "file",+ "path": "viewer/detail.ts",+ "span": "L1-L59",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "fe8df7c5561f2a8588cf4e1ecb367d19cb6b480fe4855f05e4f96137d8078884",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/detail.ts#esc",+ "name": "esc",+ "kind": "function",+ "path": "viewer/detail.ts",+ "span": "L8-L10",+ "signature": "function esc(s: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "9fb927f7f1c881ee1fe325c0dc8a25b8c5cdb2c101b08ae935a35bb428f5bbdb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/detail.ts#renderDetail",+ "name": "renderDetail",+ "kind": "function",+ "path": "viewer/detail.ts",+ "span": "L12-L58",+ "signature": "function renderDetail( host: HTMLElement, graph: VizGraph | null, tab: \"context\" | \"code\", id: string | null, onNavigate: (id: string) => void, ): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "bbd0db0a7f39cbfbd9b0ca31f88118c9a2cd037d394ad47bff7203a6f399f5ca",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/detail.ts#renderDetail.linkList",+ "name": "linkList",+ "kind": "function",+ "path": "viewer/detail.ts",+ "span": "L40-L50",+ "signature": "linkList = (edges: typeof out, dotColor: string, title: string, other: (e: (typeof out)[number]) => string)",+ "exported": true,+ "origin": "ast",+ "body_hash": "f103fe554602f3315706280d7eba1016c647c77fa6af27e9a4ec0442d6cf1d89",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/detail.ts#renderDetail.name",+ "name": "name",+ "kind": "function",+ "path": "viewer/detail.ts",+ "span": "L29-L29",+ "signature": "name = (nid: string)",+ "exported": true,+ "origin": "ast",+ "body_hash": "617c48812e0f0520b45da770cf91aeea5330b7e690c6d93defd4da77edf11b8a",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts",+ "name": "graph.ts",+ "kind": "file",+ "path": "viewer/graph.ts",+ "span": "L1-L335",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "62d2cf91f93364d125d211b05e7bd3aadd738e016c1b13cfc7908068f41cc288",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#el",+ "name": "el",+ "kind": "function",+ "path": "viewer/graph.ts",+ "span": "L42-L46",+ "signature": "function el<K extends keyof SVGElementTagNameMap>(tag: K, attrs: Record<string, string | number>): SVGElementTagNameMap[K]",+ "exported": false,+ "origin": "ast",+ "body_hash": "de7f696c06af5d771e8e661f398d9d275ca2cc06d86f4e91458d671480e346b7",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView",+ "name": "GraphView",+ "kind": "class",+ "path": "viewer/graph.ts",+ "span": "L48-L334",+ "signature": "class GraphView",+ "exported": true,+ "origin": "ast",+ "body_hash": "c56e429cf5ca1f4c12130fedc996a0b69e7c1a506d7a306246fbb44c9fdacc1e",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.applyView",+ "name": "applyView",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L268-L270",+ "signature": "private applyView(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "2adb54996d6ef9272cd69144b4b6c4bb92236506a3f5bf2d589faffd5218554b",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.bindDrag",+ "name": "bindDrag",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L290-L309",+ "signature": "private bindDrag(group: SVGGElement, node: SimNode): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "00e851d11e1029516256411b627b60e78d781cdc62ada046a0eb93c55c2dd009",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.bindDrag.move",+ "name": "move",+ "kind": "function",+ "path": "viewer/graph.ts",+ "span": "L294-L299",+ "signature": "move = (mv: PointerEvent)",+ "exported": true,+ "origin": "ast",+ "body_hash": "656f371efff6a0eed7868895a4044e4fdf1dc88840de21376c388ba03149fbd0",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.bindDrag.up",+ "name": "up",+ "kind": "function",+ "path": "viewer/graph.ts",+ "span": "L300-L305",+ "signature": "up = ()",+ "exported": true,+ "origin": "ast",+ "body_hash": "a935b15e42eefdf45da528afe3172b559d3e9ee97fe4be67f682dedccaac64c2",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.bindPanZoom",+ "name": "bindPanZoom",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L311-L333",+ "signature": "private bindPanZoom(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "737e5f69bc32913d3b061a4a878b61245d242e217f451a81d72d21e1d28fae30",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.buildChrome",+ "name": "buildChrome",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L71-L78",+ "signature": "private buildChrome(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "592cef68d76f99ad8da470cc3c8b4eda64701c02b8740a21e659fdd5e5325def",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.buildElements",+ "name": "buildElements",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L138-L164",+ "signature": "private buildElements(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "a608a77fab16447bd9ef9c465a192abc0cb7167807f7c1718d961d730d7f055d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.constructor",+ "name": "constructor",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L65-L69",+ "signature": "constructor(svg: SVGSVGElement)",+ "exported": true,+ "origin": "ast",+ "body_hash": "27abb788d7de0ece37719a0a23d4fed7778c02dda10700bbfb4f110ea8c16984",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.ensureMarkers",+ "name": "ensureMarkers",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L80-L91",+ "signature": "private ensureMarkers(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "9517cfdb2ccb4ce235405356f6ff9b2fb3fcd2f7d687689bde33cf5df9bd6906",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.firstMatch",+ "name": "firstMatch",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L263-L266",+ "signature": "firstMatch(): SimNode | undefined",+ "exported": true,+ "origin": "ast",+ "body_hash": "d43343323ad49732d473f46773ac41a0ee7472f6289d324eb369d739e8cb0352",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.focus",+ "name": "focus",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L252-L261",+ "signature": "focus(id: string): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "a64691876d1786ccdb2027028d00210b8cb56557c65c1afa81a886b506d7b459",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.reheat",+ "name": "reheat",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L286-L288",+ "signature": "reheat(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "ca57d7cb11e71985bcd27b937b4f6d0a62428a0ae84f5a297cb1147861032a59",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.resetView",+ "name": "resetView",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L281-L284",+ "signature": "resetView(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "ae1f1ee82c804ff145b1f4aa9de70cad49a5287735aa9825f6accbe21591794c",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.restyle",+ "name": "restyle",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L185-L243",+ "signature": "restyle(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "0835be5e8636d251dd3a4cd41495603490a7fb09ef71d17d9c3ff9711c9824f9",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.restyle.nodeShown",+ "name": "nodeShown",+ "kind": "function",+ "path": "viewer/graph.ts",+ "span": "L195-L195",+ "signature": "nodeShown = (n: SimNode)",+ "exported": true,+ "origin": "ast",+ "body_hash": "a598aac16da1955aecc62f39590f30d0c7e780d99429b1657c1bbba7d157ddea",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.select",+ "name": "select",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L245-L249",+ "signature": "select(id: string | null): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "7ba52874ad2ddda2bc80c3442e011c9d2b464fb8851a3ba527d3dba8ac6061c2",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.setData",+ "name": "setData",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L94-L136",+ "signature": "setData(graph: VizGraph, tab: \"context\" | \"code\"): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "d8063d2226148959298ca10074e09f00b7530c0b6a87f023502c4bd1c02041a6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.tick",+ "name": "tick",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L166-L182",+ "signature": "private tick(): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "0fbefdd43e29e9d5134e756074fe1fa190fa23cf6afaa72a52d27f098ac8e6bb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#GraphView.zoomBy",+ "name": "zoomBy",+ "kind": "method",+ "path": "viewer/graph.ts",+ "span": "L272-L279",+ "signature": "zoomBy(factor: number): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "2dd28ba55cc461ab1f950d582e10b63c6862804f17d518ef346fe4e3f49af289",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#SimEdge",+ "name": "SimEdge",+ "kind": "interface",+ "path": "viewer/graph.ts",+ "span": "L32-L38",+ "signature": "interface SimEdge",+ "exported": false,+ "origin": "ast",+ "body_hash": "06690141adf5c47ffc6dd6b55a3cf9f041a4750f0b512cf49d3596928485fca8",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/graph.ts#SimNode",+ "name": "SimNode",+ "kind": "interface",+ "path": "viewer/graph.ts",+ "span": "L22-L30",+ "signature": "interface SimNode extends SimulationNodeDatum",+ "exported": false,+ "origin": "ast",+ "body_hash": "b000c5412e66a114ce7349ebddb8f536c040a6c6f158c641a8370ea049b6a69d",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts",+ "name": "main.ts",+ "kind": "file",+ "path": "viewer/main.ts",+ "span": "L1-L233",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "ab45ce4dfe66aafbe779b71d49d6370b3fe64482307b994e857ce34d3f317325",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#$",+ "name": "$",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L12-L12",+ "signature": "$ = <T extends HTMLElement>(id: string): T",+ "exported": false,+ "origin": "ast",+ "body_hash": "e46dd7aa9ed3186876ec11a8520b5af609af327108e045bce175d535aa9ed0e5",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#activeGraph",+ "name": "activeGraph",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L23-L25",+ "signature": "function activeGraph(): VizGraph | null",+ "exported": false,+ "origin": "ast",+ "body_hash": "71591b2a66c0aa4d34f5b96cb2f1293248bdf02f55f6a73c2ee48258f6e2c445",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#glyphFor",+ "name": "glyphFor",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L62-L71",+ "signature": "function glyphFor(key: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "bd36f5f7c09e4d09ac342de7015c4cbda2ec86e36ab0c22716dd37b006444581",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#graphTab",+ "name": "graphTab",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L27-L29",+ "signature": "function graphTab(): \"context\" | \"code\"",+ "exported": false,+ "origin": "ast",+ "body_hash": "8bf89d024fe38470c469c719795eaf902c0e903157cf7ed24fe58a85db40cea4",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#loadAll",+ "name": "loadAll",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L216-L223",+ "signature": "async function loadAll(): Promise<void>",+ "exported": false,+ "origin": "ast",+ "body_hash": "c896b70116fce23a9b9846a95ed257835d18d1368d091a56cec01674e36bc480",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#renderChips",+ "name": "renderChips",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L32-L60",+ "signature": "function renderChips(): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "1ef41cd967e509d6342b72755564e0975cb6b87edfcc2911fe79404f906eddcb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#renderChips.rank",+ "name": "rank",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L43-L43",+ "signature": "rank = (k: string)",+ "exported": false,+ "origin": "ast",+ "body_hash": "2b14b986fe4648076445602ac03c0f7c788760e8910fa9322617251aa60af5ce",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#renderLegend",+ "name": "renderLegend",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L74-L94",+ "signature": "function renderLegend(): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "ec1a1aba1d086d035890c60aadf98d7418c018c5488f106100102deaf0eafc01",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#setTab",+ "name": "setTab",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L129-L167",+ "signature": "function setTab(tab: Tab): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "c269ec25c7011b7343bdcec22729b23b0c65a57255598ac5145a46397809b321",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#showDetail",+ "name": "showDetail",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L115-L124",+ "signature": "function showDetail(id: string | null): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "e2b6f6a27ee1e3bac515ec8140678caa7c6cff3baab943cf43f8fdbdd7ab2e62",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#showEmpty",+ "name": "showEmpty",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L169-L173",+ "signature": "function showEmpty(html: string): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "981ef1b3d68cfcc89b2804a326c87ce023df618bfee612f158fa72291fe7a6d1",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#Tab",+ "name": "Tab",+ "kind": "type",+ "path": "viewer/main.ts",+ "span": "L10-L10",+ "signature": "type Tab = \"context\" | \"code\" | \"outline\";",+ "exported": false,+ "origin": "ast",+ "body_hash": "4cd3b4afb6647f09ba09efccca7c53a333edbebe109fb1e24db04aa24df610de",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#updateCounts",+ "name": "updateCounts",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L103-L112",+ "signature": "function updateCounts(): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "170a2eec2d377c150839d170cd45a244584ecc9fdbd44ad194e8cac97fdfafb6",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/main.ts#updateShownCount",+ "name": "updateShownCount",+ "kind": "function",+ "path": "viewer/main.ts",+ "span": "L96-L101",+ "signature": "function updateShownCount(): void",+ "exported": false,+ "origin": "ast",+ "body_hash": "11ab0ffa5da9e8d010f80cb1f95962900b0649019b7876e2b5213b85605d75ee",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/tree.ts",+ "name": "tree.ts",+ "kind": "file",+ "path": "viewer/tree.ts",+ "span": "L1-L67",+ "signature": null,+ "exported": true,+ "origin": "ast",+ "body_hash": "d66e0157f4c2a1525c16505306eb3aabce82565c3d0e56199ea5b7a860290b01",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/tree.ts#esc",+ "name": "esc",+ "kind": "function",+ "path": "viewer/tree.ts",+ "span": "L7-L9",+ "signature": "function esc(s: string): string",+ "exported": false,+ "origin": "ast",+ "body_hash": "9fb927f7f1c881ee1fe325c0dc8a25b8c5cdb2c101b08ae935a35bb428f5bbdb",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/tree.ts#renderOutline",+ "name": "renderOutline",+ "kind": "function",+ "path": "viewer/tree.ts",+ "span": "L11-L66",+ "signature": "function renderOutline( host: HTMLElement, graph: VizGraph, selected: string | null, openState: Record<string, boolean>, onSelect: (id: string) => void, ): void",+ "exported": true,+ "origin": "ast",+ "body_hash": "1448ed396d7ec6d8adc0e375aba7be5465c4e4db6d4184c6b5b01ac5a0788591",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/tree.ts#renderOutline.countDesc",+ "name": "countDesc",+ "kind": "function",+ "path": "viewer/tree.ts",+ "span": "L23-L26",+ "signature": "countDesc = (pid: string): number",+ "exported": true,+ "origin": "ast",+ "body_hash": "1054af458d2de230dfb45cea7a5a0141f2f4d12521ee04f0919e7defdea719dd",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/tree.ts#renderOutline.kids",+ "name": "kids",+ "kind": "function",+ "path": "viewer/tree.ts",+ "span": "L18-L22",+ "signature": "kids = (pid: string)",+ "exported": true,+ "origin": "ast",+ "body_hash": "67a4d31f225a0006966aa2a39bdf245c514475f777082275626585879ce9b867",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ },+ {+ "id": "viewer/tree.ts#renderOutline.row",+ "name": "row",+ "kind": "function",+ "path": "viewer/tree.ts",+ "span": "L29-L42",+ "signature": "row = (node: (typeof files)[number]): string",+ "exported": true,+ "origin": "ast",+ "body_hash": "a62af44af8ff57bd1307237e130956ce85cb42fc0c2fc4889907fd4e87e75ab2",+ "summary_state": "pending",+ "summary": null,+ "crux": null+ }+ ],+ "edges": [+ {+ "source": "bench/agent.ts",+ "target": "bench/agent.ts#AgentResult",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "bench/agent.ts#globToRegExp",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "bench/agent.ts#listFiles",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "bench/agent.ts#runAgent",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "bench/agent.ts#RunAgentOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "bench/agent.ts#runTool",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "bench/agent.ts#safePath",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "bench/llm.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "openai",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts",+ "target": "src/ingest/fs.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#listFiles",+ "target": "bench/agent.ts#listFiles.walk",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#listFiles",+ "target": "bench/agent.ts#listFiles.walk",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#listFiles.walk",+ "target": "bench/agent.ts#listFiles.walk",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#runAgent",+ "target": "bench/agent.ts#runAgent.slideCacheBreakpoint",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#runAgent",+ "target": "bench/agent.ts#runTool",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#runAgent",+ "target": "bench/llm.ts#makeClient",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/agent.ts#runAgent",+ "target": "bench/agent.ts#runAgent.slideCacheBreakpoint",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#runTool",+ "target": "bench/agent.ts#globToRegExp",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#runTool",+ "target": "bench/agent.ts#listFiles",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/agent.ts#runTool",+ "target": "bench/agent.ts#safePath",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts",+ "target": "bench/judge.ts#extractJson",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts",+ "target": "bench/judge.ts#judge",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts",+ "target": "bench/judge.ts#JudgeInput",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts",+ "target": "bench/judge.ts#Verdict",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts",+ "target": "bench/llm.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts",+ "target": "openai",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts#judge",+ "target": "bench/judge.ts#extractJson",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/judge.ts#judge",+ "target": "bench/llm.ts#makeClient",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/llm.ts",+ "target": "bench/llm.ts#makeClient",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/llm.ts",+ "target": "openai",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#aggregate",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#ArmAgg",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#buildMarkdown",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#costOf",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#fmt",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#mean",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#pctDelta",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts",+ "target": "bench/report.ts#Row",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts#aggregate",+ "target": "bench/report.ts#costOf",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts#aggregate",+ "target": "bench/report.ts#mean",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts#buildMarkdown",+ "target": "bench/report.ts#aggregate",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts#buildMarkdown",+ "target": "bench/report.ts#fmt",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/report.ts#buildMarkdown",+ "target": "bench/report.ts#pctDelta",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/run.ts#main",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/run.ts#Args",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/run.ts#main",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/run.ts#makeDocsWorkdir",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/run.ts#parseArgs",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/run.ts#pool",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "../src/ingest/pdf.js",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/agent.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/judge.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/llm.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/report.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "bench/tasks.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "dotenv/config",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "node:os",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "node:url",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "src/index.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts",+ "target": "src/ingest/fs.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts#main",+ "target": "bench/agent.ts#runAgent",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/run.ts#main",+ "target": "bench/judge.ts#judge",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/run.ts#main",+ "target": "bench/llm.ts#makeClient",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/run.ts#main",+ "target": "bench/report.ts#buildMarkdown",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/run.ts#main",+ "target": "bench/run.ts#makeDocsWorkdir",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts#main",+ "target": "bench/run.ts#parseArgs",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts#main",+ "target": "bench/run.ts#pool",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/run.ts#main",+ "target": "src/viz/serve.ts#startVizServer.close",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/run.ts#pool",+ "target": "bench/run.ts#pool.worker",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "bench/selfcheck.ts#main",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "bench/selfcheck.ts#main",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "bench/selfcheck.ts#makeStubClient",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "bench/agent.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "bench/judge.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "bench/report.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "node:assert/strict",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "node:os",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/selfcheck.ts#main",+ "target": "bench/agent.ts#runAgent",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/selfcheck.ts#main",+ "target": "bench/judge.ts#judge",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/selfcheck.ts#main",+ "target": "bench/report.ts#buildMarkdown",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "bench/selfcheck.ts#main",+ "target": "bench/selfcheck.ts#makeStubClient",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/tasks.ts",+ "target": "bench/tasks.ts#repoPath",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "bench/tasks.ts",+ "target": "bench/tasks.ts#Corpus",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/tasks.ts",+ "target": "bench/tasks.ts#repoPath",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/tasks.ts",+ "target": "bench/tasks.ts#Task",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "bench/tasks.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "bench/tasks.ts",+ "target": "node:url",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "scripts/build-viewer.mjs",+ "target": "esbuild",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "scripts/build-viewer.mjs",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "scripts/build-viewer.mjs",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "scripts/build-viewer.mjs",+ "target": "node:url",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#CruxSummarizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#FileCruxInput",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#NodeCrux",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#NodeRef",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#numberLines",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#OpenRouterCruxSummarizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#parseResults",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/ai/crux.ts#userContent",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "openai",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts",+ "target": "src/graph/types.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#OpenRouterCruxSummarizer",+ "target": "src/ai/crux.ts#OpenRouterCruxSummarizer.constructor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#OpenRouterCruxSummarizer",+ "target": "src/ai/crux.ts#OpenRouterCruxSummarizer.describeFile",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#OpenRouterCruxSummarizer",+ "target": "src/ai/crux.ts#CruxSummarizer",+ "relation": "implements",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#OpenRouterCruxSummarizer.describeFile",+ "target": "src/ai/crux.ts#parseResults",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#OpenRouterCruxSummarizer.describeFile",+ "target": "src/ai/crux.ts#userContent",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#parseResults",+ "target": "src/ai/crux.ts#parseResults.num",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#parseResults",+ "target": "src/ai/crux.ts#parseResults.num",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/crux.ts#userContent",+ "target": "src/ai/crux.ts#numberLines",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/providers.ts",+ "target": "src/ai/providers.ts#EngineConfig",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/providers.ts",+ "target": "src/ai/providers.ts#resolveConfig",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/providers.ts",+ "target": "src/ai/providers.ts#ResolvedConfig",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/providers.ts",+ "target": "src/ai/summarize.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/providers.ts",+ "target": "src/ai/synthesize.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts",+ "target": "src/ai/summarize.ts#OpenRouterSummarizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts",+ "target": "src/ai/summarize.ts#Summarizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts",+ "target": "src/ai/summarize.ts#userContent",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts",+ "target": "openai",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts#OpenRouterSummarizer",+ "target": "src/ai/summarize.ts#OpenRouterSummarizer.constructor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts#OpenRouterSummarizer",+ "target": "src/ai/summarize.ts#OpenRouterSummarizer.summarize",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts#OpenRouterSummarizer",+ "target": "src/ai/summarize.ts#Summarizer",+ "relation": "implements",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/summarize.ts#OpenRouterSummarizer.summarize",+ "target": "src/ai/summarize.ts#userContent",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "src/ai/synthesize.ts#clean",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "src/ai/synthesize.ts#FileSummary",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "src/ai/synthesize.ts#OpenRouterSynthesizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "src/ai/synthesize.ts#Synthesizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "src/ai/synthesize.ts#SynthLink",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "src/ai/synthesize.ts#SynthNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "src/ai/synthesize.ts#userContent",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts",+ "target": "openai",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts#OpenRouterSynthesizer",+ "target": "src/ai/synthesize.ts#OpenRouterSynthesizer.constructor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts#OpenRouterSynthesizer",+ "target": "src/ai/synthesize.ts#OpenRouterSynthesizer.synthesize",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts#OpenRouterSynthesizer",+ "target": "src/ai/synthesize.ts#Synthesizer",+ "relation": "implements",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts#OpenRouterSynthesizer.synthesize",+ "target": "src/ai/synthesize.ts#clean",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/ai/synthesize.ts#OpenRouterSynthesizer.synthesize",+ "target": "src/ai/synthesize.ts#userContent",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "src/cli.ts#engineFrom",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "src/cli.ts#fmt",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "src/context/check.ts#formatCheckReport",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/context/node-file.ts#contextDirFor",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/engine.ts#Graft.check",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/engine.ts#Graft.checkGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/engine.ts#Graft.graph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/engine.ts#Graft.init",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/graph/check.ts#formatGraphCheckReport",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/viz/serve.ts#startVizServer",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/cli.ts",+ "target": "src/cli.ts#engineFrom",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "src/cli.ts#fmt",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "commander",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "dotenv/config",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "src/context/check.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "src/engine.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/cli.ts",+ "target": "src/graph/check.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#batchBySize",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#batchKey",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#BuildCache",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#buildContext",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#BuildOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#BuildProgress",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#BuildResult",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#cachePath",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#errMsg",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#FileWork",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#loadCache",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#mapWithConcurrency",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#NodeDraft",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#registerName",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#resolveSlug",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/build.ts#saveCache",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/ai/summarize.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/ai/synthesize.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/context/node-file.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/ingest/fs.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts",+ "target": "src/util/id.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#batchKey",+ "target": "src/util/id.ts#contentHash",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#batchBySize",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#batchKey",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#errMsg",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#loadCache",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#mapWithConcurrency",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#registerName",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#resolveSlug",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/build.ts#saveCache",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/node-file.ts#contextDirFor",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/node-file.ts#deleteNode",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/node-file.ts#digestSources",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/node-file.ts#existingNodeSlugs",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/node-file.ts#slugify",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/node-file.ts#writeManifest",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/context/node-file.ts#writeNode",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/ingest/fs.ts#walkDir",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#buildContext",+ "target": "src/util/id.ts#contentHash",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/build.ts#loadCache",+ "target": "src/context/build.ts#cachePath",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/build.ts#saveCache",+ "target": "src/context/build.ts#cachePath",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/context/check.ts#checkContext",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/context/check.ts#CheckOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/context/check.ts#CheckResult",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/context/check.ts#formatCheckReport",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/context/check.ts#short",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/context/build.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/context/node-file.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/ingest/fs.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts",+ "target": "src/util/id.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts#checkContext",+ "target": "src/context/check.ts#short",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/check.ts#checkContext",+ "target": "src/context/node-file.ts#contextDirFor",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/check.ts#checkContext",+ "target": "src/context/node-file.ts#readManifest",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/check.ts#checkContext",+ "target": "src/context/node-file.ts#readNodes",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/check.ts#checkContext",+ "target": "src/ingest/fs.ts#walkDir",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/check.ts#checkContext",+ "target": "src/util/id.ts#contentHash",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#contextDirFor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#ContextNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#defaultHuman",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#deleteNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#digestSources",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#existingNodeSlugs",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#Manifest",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#NodeLink",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#ParsedNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#preserveHuman",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#readManifest",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#readNodes",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#renderGenerated",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#renderNodeFile",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#slugify",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#SourceRef",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#writeManifest",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/context/node-file.ts#writeNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "gray-matter",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts",+ "target": "src/util/id.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts#digestSources",+ "target": "src/util/id.ts#contentHash",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/node-file.ts#preserveHuman",+ "target": "src/context/node-file.ts#defaultHuman",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts#renderNodeFile",+ "target": "src/context/node-file.ts#renderGenerated",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts#slugify",+ "target": "src/util/id.ts#normalizeName",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/context/node-file.ts#writeNode",+ "target": "src/context/node-file.ts#defaultHuman",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts#writeNode",+ "target": "src/context/node-file.ts#preserveHuman",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/context/node-file.ts#writeNode",+ "target": "src/context/node-file.ts#renderNodeFile",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/engine.ts#CheckRunOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/engine.ts#Graft",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/engine.ts#GraphRunOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/engine.ts#InitOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/ai/crux.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/ai/providers.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/ai/summarize.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/ai/synthesize.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/context/build.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/context/check.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/graph/build.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts",+ "target": "src/graph/check.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.check",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.checkGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.constructor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.cruxSummarizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.graph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.init",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.modelLabel",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.requireKey",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.summarizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft",+ "target": "src/engine.ts#Graft.synthesizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft.check",+ "target": "src/context/check.ts#checkContext",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/engine.ts#Graft.checkGraph",+ "target": "src/graph/check.ts#checkGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/engine.ts#Graft.constructor",+ "target": "src/ai/providers.ts#resolveConfig",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/engine.ts#Graft.cruxSummarizer",+ "target": "src/engine.ts#Graft.requireKey",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft.graph",+ "target": "src/engine.ts#Graft.cruxSummarizer",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft.graph",+ "target": "src/graph/build.ts#buildGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/engine.ts#Graft.init",+ "target": "src/context/build.ts#buildContext",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/engine.ts#Graft.init",+ "target": "src/engine.ts#Graft.modelLabel",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft.init",+ "target": "src/engine.ts#Graft.summarizer",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft.init",+ "target": "src/engine.ts#Graft.synthesizer",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft.summarizer",+ "target": "src/engine.ts#Graft.requireKey",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/engine.ts#Graft.synthesizer",+ "target": "src/engine.ts#Graft.requireKey",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/build.ts#buildGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/build.ts#GraphBuildOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/build.ts#GraphBuildResult",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/build.ts#listSourceFiles",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/ai/crux.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/context/node-file.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/enrich.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/extract.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/resolve.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/types.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/graph/write.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts",+ "target": "src/ingest/fs.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/context/node-file.ts#contextDirFor",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/graph/build.ts#listSourceFiles",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/graph/enrich.ts#enrichGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/graph/extract.ts#extractFile",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/graph/extract.ts#languageOf",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/graph/resolve.ts#resolveEdges",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/graph/write.ts#readGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#buildGraph",+ "target": "src/graph/write.ts#writeGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#listSourceFiles",+ "target": "src/graph/extract.ts#languageOf",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/build.ts#listSourceFiles",+ "target": "src/ingest/fs.ts#walkDir",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/graph/check.ts#checkGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/graph/check.ts#formatGraphCheckReport",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/graph/check.ts#GraphCheckOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/graph/check.ts#GraphCheckResult",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/context/node-file.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/graph/build.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/graph/extract.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts",+ "target": "src/graph/write.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/check.ts#checkGraph",+ "target": "src/context/node-file.ts#contextDirFor",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/check.ts#checkGraph",+ "target": "src/graph/build.ts#listSourceFiles",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/check.ts#checkGraph",+ "target": "src/graph/extract.ts#extractFile",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/check.ts#checkGraph",+ "target": "src/graph/extract.ts#languageOf",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/check.ts#checkGraph",+ "target": "src/graph/write.ts#readGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/graph/enrich.ts#buildCrux",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/graph/enrich.ts#collectFileCrux",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/graph/enrich.ts#enrichGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/graph/enrich.ts#EnrichOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/graph/enrich.ts#EnrichStats",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/graph/enrich.ts#spanLines",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/ai/crux.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts",+ "target": "src/graph/types.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts#buildCrux",+ "target": "src/graph/enrich.ts#spanLines",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts#collectFileCrux",+ "target": "src/ai/crux.ts#OpenRouterCruxSummarizer.describeFile",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/enrich.ts#enrichGraph",+ "target": "src/graph/enrich.ts#buildCrux",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts#enrichGraph",+ "target": "src/graph/enrich.ts#collectFileCrux",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/enrich.ts#enrichGraph",+ "target": "src/graph/enrich.ts#spanLines",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#calleeName",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#clean",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#DefDescriptor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#describe",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#extractFile",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#ExtractResult",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#heritageEdges",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#importSpecifier",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#isImport",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#Language",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#languageOf",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#RawEdge",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#tsExported",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#walk",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/extract.ts#WalkCtx",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/graph/types.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "src/util/id.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "tree-sitter",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "tree-sitter-python",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts",+ "target": "tree-sitter-typescript",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#extractFile",+ "target": "src/graph/extract.ts#walk",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#extractFile",+ "target": "src/util/id.ts#contentHash",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#calleeName",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#clean",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#describe",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#heritageEdges",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#importSpecifier",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#isImport",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#tsExported",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/graph/extract.ts#walk",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/extract.ts#walk",+ "target": "src/util/id.ts#contentHash",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/graph/resolve.ts",+ "target": "src/graph/resolve.ts#push",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts",+ "target": "src/graph/resolve.ts#resolveEdges",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts",+ "target": "src/graph/resolve.ts#resolveImport",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts",+ "target": "src/graph/resolve.ts#resolveName",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts",+ "target": "src/graph/extract.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts",+ "target": "src/graph/types.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts#resolveEdges",+ "target": "src/graph/resolve.ts#push",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts#resolveEdges",+ "target": "src/graph/resolve.ts#resolveEdges.add",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts#resolveEdges",+ "target": "src/graph/resolve.ts#resolveImport",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts#resolveEdges",+ "target": "src/graph/resolve.ts#resolveName",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/resolve.ts#resolveEdges",+ "target": "src/graph/resolve.ts#resolveEdges.add",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#Confidence",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#Crux",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#EdgeV1",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#GraphV1",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#Kind",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#NodeV1",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#Relation",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/types.ts",+ "target": "src/graph/types.ts#SummaryState",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/write.ts",+ "target": "src/graph/write.ts#edgeOrder",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/write.ts",+ "target": "src/graph/write.ts#readGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/write.ts",+ "target": "src/graph/write.ts#writeGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/write.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/write.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/graph/write.ts",+ "target": "src/graph/types.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ingest/fs.ts",+ "target": "src/ingest/fs.ts#walkDir",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/ingest/fs.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ingest/fs.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/ingest/fs.ts#walkDir",+ "target": "src/ingest/fs.ts#walkDir",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/util/id.ts",+ "target": "src/util/id.ts#contentHash",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/util/id.ts",+ "target": "src/util/id.ts#newId",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/util/id.ts",+ "target": "src/util/id.ts#normalizeName",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/util/id.ts",+ "target": "node:crypto",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "src/viz/assemble.ts#assembleContextGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "src/viz/assemble.ts#extractSummary",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "src/viz/assemble.ts#normalizeRelation",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "src/viz/assemble.ts#VizEdge",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "src/viz/assemble.ts#VizGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "src/viz/assemble.ts#VizNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "gray-matter",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts",+ "target": "src/context/node-file.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts#assembleContextGraph",+ "target": "src/viz/assemble.ts#extractSummary",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/assemble.ts#assembleContextGraph",+ "target": "src/viz/assemble.ts#normalizeRelation",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "src/viz/serve.ts#listen",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "src/viz/serve.ts#sendJson",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "src/viz/serve.ts#startVizServer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "src/viz/serve.ts#VizServer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "src/viz/serve.ts#VizServerOptions",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "node:http",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts",+ "target": "src/viz/assemble.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts#listen",+ "target": "src/viz/serve.ts#listen.onError",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts#startVizServer",+ "target": "src/viz/assemble.ts#assembleContextGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "src/viz/serve.ts#startVizServer",+ "target": "src/viz/serve.ts#listen",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts#startVizServer",+ "target": "src/viz/serve.ts#sendJson",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts#startVizServer",+ "target": "src/viz/serve.ts#startVizServer.close",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "src/viz/serve.ts#startVizServer.close",+ "target": "src/viz/serve.ts#startVizServer.close",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "src/context/build.ts#buildContext",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "test/context.test.ts",+ "target": "src/context/check.ts#checkContext",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "test/context.test.ts",+ "target": "test/context.test.ts#buildOpts",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "test/context.test.ts#makeFixture",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "test/context.test.ts#buildOpts",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "test/context.test.ts#makeFixture",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "node:assert/strict",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "node:os",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "node:test",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "src/context/build.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "src/context/check.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts",+ "target": "test/helpers.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/context.test.ts#buildOpts",+ "target": "test/helpers.ts#fakeProviders",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "test/helpers.ts",+ "target": "test/helpers.ts#BracketSynthesizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts",+ "target": "test/helpers.ts#fakeProviders",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts",+ "target": "test/helpers.ts#PassthroughSummarizer",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts",+ "target": "src/index.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts#BracketSynthesizer",+ "target": "test/helpers.ts#BracketSynthesizer.synthesize",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts#BracketSynthesizer",+ "target": "src/ai/synthesize.ts#Synthesizer",+ "relation": "implements",+ "confidence": "inferred"+ },+ {+ "source": "test/helpers.ts#BracketSynthesizer.synthesize",+ "target": "test/helpers.ts#BracketSynthesizer.synthesize.ensure",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts#BracketSynthesizer.synthesize",+ "target": "test/helpers.ts#BracketSynthesizer.synthesize.ensure",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts#PassthroughSummarizer",+ "target": "test/helpers.ts#PassthroughSummarizer.summarize",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/helpers.ts#PassthroughSummarizer",+ "target": "src/ai/summarize.ts#Summarizer",+ "relation": "implements",+ "confidence": "inferred"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "src/viz/assemble.ts#assembleContextGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "src/viz/assemble.ts#normalizeRelation",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "test/viz-assemble.test.ts#makeContextDir",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "test/viz-assemble.test.ts#makeContextDir",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "node:assert/strict",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "node:os",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "node:test",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-assemble.test.ts",+ "target": "src/viz/assemble.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "src/viz/serve.ts#startVizServer",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "src/viz/serve.ts#startVizServer.close",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "test/viz-serve.test.ts#makeDirs",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "test/viz-serve.test.ts#makeDirs",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "node:assert/strict",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "node:fs",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "node:http",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "node:os",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "node:path",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "node:test",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "test/viz-serve.test.ts",+ "target": "src/viz/serve.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#chipKey",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#CodeGraphV1",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#colorToken",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#cvar",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#Family",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#famOf",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#loadCodeGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#loadContextGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#onServerChange",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#VizEdge",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#VizGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts",+ "target": "viewer/data.ts#VizNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/data.ts#chipKey",+ "target": "viewer/data.ts#famOf",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts",+ "target": "viewer/detail.ts#esc",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts",+ "target": "viewer/detail.ts#renderDetail",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts",+ "target": "viewer/data.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts#renderDetail",+ "target": "viewer/data.ts#colorToken",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/detail.ts#renderDetail",+ "target": "viewer/data.ts#cvar",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/detail.ts#renderDetail",+ "target": "viewer/detail.ts#esc",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts#renderDetail",+ "target": "viewer/detail.ts#renderDetail.linkList",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts#renderDetail",+ "target": "viewer/detail.ts#renderDetail.linkList",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts#renderDetail",+ "target": "viewer/detail.ts#renderDetail.name",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts#renderDetail.linkList",+ "target": "viewer/detail.ts#esc",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/detail.ts#renderDetail.linkList",+ "target": "viewer/detail.ts#renderDetail.name",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts",+ "target": "viewer/graph.ts#el",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts",+ "target": "viewer/graph.ts#GraphView",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts",+ "target": "viewer/graph.ts#SimEdge",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts",+ "target": "viewer/graph.ts#SimNode",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts",+ "target": "d3-force",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts",+ "target": "viewer/data.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.applyView",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.bindDrag",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.bindPanZoom",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.buildChrome",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.buildElements",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.constructor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.ensureMarkers",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.firstMatch",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.focus",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.reheat",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.resetView",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.restyle",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.select",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.setData",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.tick",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView",+ "target": "viewer/graph.ts#GraphView.zoomBy",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.bindDrag",+ "target": "viewer/graph.ts#GraphView.bindDrag.move",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.bindDrag",+ "target": "viewer/graph.ts#GraphView.bindDrag.up",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.bindPanZoom",+ "target": "viewer/graph.ts#GraphView.applyView",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.buildChrome",+ "target": "viewer/graph.ts#el",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.buildChrome",+ "target": "viewer/graph.ts#GraphView.select",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.buildElements",+ "target": "viewer/graph.ts#el",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.buildElements",+ "target": "viewer/graph.ts#GraphView.bindDrag",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.buildElements",+ "target": "viewer/graph.ts#GraphView.ensureMarkers",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.buildElements",+ "target": "viewer/graph.ts#GraphView.select",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.constructor",+ "target": "viewer/graph.ts#GraphView.bindPanZoom",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.constructor",+ "target": "viewer/graph.ts#GraphView.buildChrome",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.ensureMarkers",+ "target": "viewer/data.ts#cvar",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/graph.ts#GraphView.ensureMarkers",+ "target": "viewer/graph.ts#el",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.focus",+ "target": "viewer/graph.ts#GraphView.applyView",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.focus",+ "target": "viewer/graph.ts#GraphView.select",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.resetView",+ "target": "viewer/graph.ts#GraphView.applyView",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.restyle",+ "target": "viewer/data.ts#chipKey",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/graph.ts#GraphView.restyle",+ "target": "viewer/data.ts#colorToken",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/graph.ts#GraphView.restyle",+ "target": "viewer/data.ts#cvar",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/graph.ts#GraphView.restyle",+ "target": "viewer/data.ts#famOf",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/graph.ts#GraphView.restyle",+ "target": "viewer/graph.ts#GraphView.ensureMarkers",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.restyle",+ "target": "viewer/graph.ts#GraphView.restyle.nodeShown",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.restyle",+ "target": "viewer/graph.ts#GraphView.restyle.nodeShown",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.select",+ "target": "viewer/graph.ts#GraphView.restyle",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.setData",+ "target": "viewer/data.ts#famOf",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/graph.ts#GraphView.setData",+ "target": "viewer/graph.ts#GraphView.buildElements",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.setData",+ "target": "viewer/graph.ts#GraphView.restyle",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.setData",+ "target": "viewer/graph.ts#GraphView.tick",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/graph.ts#GraphView.zoomBy",+ "target": "viewer/graph.ts#GraphView.applyView",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/data.ts#onServerChange",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/graph.ts#GraphView.firstMatch",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/graph.ts#GraphView.focus",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/graph.ts#GraphView.resetView",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/graph.ts#GraphView.restyle",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/graph.ts#GraphView.zoomBy",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#loadAll",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#renderChips",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#renderLegend",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#setTab",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#showDetail",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#$",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#activeGraph",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#glyphFor",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#graphTab",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#loadAll",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#renderChips",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#renderLegend",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#setTab",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#showDetail",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#showEmpty",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#Tab",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#updateCounts",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/main.ts#updateShownCount",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/data.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/detail.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/graph.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts",+ "target": "viewer/tree.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#glyphFor",+ "target": "viewer/data.ts#famOf",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#loadAll",+ "target": "viewer/data.ts#loadCodeGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#loadAll",+ "target": "viewer/data.ts#loadContextGraph",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#loadAll",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#loadAll",+ "target": "viewer/main.ts#setTab",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/data.ts#chipKey",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/graph.ts#GraphView.restyle",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/main.ts#activeGraph",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/main.ts#glyphFor",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/main.ts#renderChips",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/main.ts#renderChips.rank",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/main.ts#updateShownCount",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderChips",+ "target": "viewer/main.ts#renderChips.rank",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/data.ts#colorToken",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/data.ts#cvar",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/graph.ts#GraphView.restyle",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/main.ts#activeGraph",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/main.ts#graphTab",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/main.ts#renderLegend",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#renderLegend",+ "target": "viewer/main.ts#updateShownCount",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/graph.ts#GraphView.reheat",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/graph.ts#GraphView.resetView",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/graph.ts#GraphView.setData",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#activeGraph",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#graphTab",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#renderChips",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#renderLegend",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#showDetail",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#showEmpty",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#updateCounts",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/main.ts#updateShownCount",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#setTab",+ "target": "viewer/tree.ts#renderOutline",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#showDetail",+ "target": "viewer/detail.ts#renderDetail",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#showDetail",+ "target": "viewer/graph.ts#GraphView.focus",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#showDetail",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#showDetail",+ "target": "viewer/main.ts#graphTab",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#showDetail",+ "target": "viewer/main.ts#showDetail",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#showDetail",+ "target": "viewer/tree.ts#renderOutline",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/main.ts#showEmpty",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#updateCounts",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#updateCounts",+ "target": "viewer/main.ts#activeGraph",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#updateShownCount",+ "target": "viewer/main.ts#$",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/main.ts#updateShownCount",+ "target": "viewer/main.ts#activeGraph",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts",+ "target": "viewer/tree.ts#esc",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts",+ "target": "viewer/tree.ts#renderOutline",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts",+ "target": "viewer/data.ts",+ "relation": "imports",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline",+ "target": "viewer/tree.ts#renderOutline",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline",+ "target": "viewer/tree.ts#renderOutline.countDesc",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline",+ "target": "viewer/tree.ts#renderOutline.kids",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline",+ "target": "viewer/tree.ts#renderOutline.row",+ "relation": "contains",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline.countDesc",+ "target": "viewer/tree.ts#renderOutline.countDesc",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline.countDesc",+ "target": "viewer/tree.ts#renderOutline.kids",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline.row",+ "target": "viewer/data.ts#colorToken",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/tree.ts#renderOutline.row",+ "target": "viewer/data.ts#cvar",+ "relation": "calls",+ "confidence": "inferred"+ },+ {+ "source": "viewer/tree.ts#renderOutline.row",+ "target": "viewer/tree.ts#esc",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline.row",+ "target": "viewer/tree.ts#renderOutline.countDesc",+ "relation": "calls",+ "confidence": "extracted"+ },+ {+ "source": "viewer/tree.ts#renderOutline.row",+ "target": "viewer/tree.ts#renderOutline.kids",+ "relation": "calls",+ "confidence": "extracted"+ }+ ]+}diff --git a/docs/superpowers/plans/2026-07-21-ask-performance.md b/docs/superpowers/plans/2026-07-21-ask-performance.mdnew file mode 100644index 00000000..c95f7c99--- /dev/null+++ b/docs/superpowers/plans/2026-07-21-ask-performance.md@@ -0,0 +1,178 @@+# Ask Performance at Scale Implementation Plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.++**Goal:** `graft ask` answers long natural-language queries on a 32k-node graph in well under 2s (today: hangs for minutes), by fixing the PageRank dangling-mass loop and moving per-query corpus tokenization/IDF to build time.++**Architecture:** (1) `personalizedPageRank` gets the standard dangling-mass fix: accumulate escaped mass in a scalar and redistribute once per iteration — identical math, O(nodes+edges+seeds) per iteration instead of O(dangling×seeds). (2) `graft build` emits a sidecar `.graph/index.json` (token bags per node/field + document frequencies + avg body length), and `ask` uses it when present instead of re-tokenizing 32k nodes per query; graphs without a sidecar fall back to the current on-the-fly path. Concept (markdown) docs stay tokenized at query time — there are ~dozens, not 32k.++**Tech Stack:** TypeScript ESM, Node ≥20, node:test + tsx. No new dependencies.++## Global Constraints++- No new npm dependencies; ESM `.js` imports; files under 500 lines.+- Ranking RESULTS must not change: same scores, same order (the PPR fix is algebraically identical; the sidecar stores exactly what tokenize/counts produce today). Existing ask tests must pass unmodified.+- Backward compatible: `ask` on a graph without `index.json` works exactly as today (fallback), so old committed graphs keep working.+- The sidecar is versioned (`{"version": 1, ...}`); an unknown version → fallback path, never a crash.+- Wall-clock acceptance (measured on the 56MB / 32,377-node graph at `/private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/bigrepo-graft`, repo `/Users/shrishdwivedi/Documents/Nanonets/assign`): the query "How does authentication middleware validate incoming API requests in the backend?" with `--source -n 8` completes in < 5s after Task 1, and < 3s after Task 2 (rebuilt graph with sidecar). Record actual numbers in the task reports.+- No third-party tool names in code/comments/commit messages.+- Tests: `node --import tsx --test test/<file>.test.ts`.++---++## File Structure++- Modify: `src/ask/graphrank.ts` — dangling-mass scalar accumulation.+- Create: `src/ask/index-file.ts` — sidecar read/write (`writeAskIndex`, `readAskIndex`, types).+- Modify: `src/graph/build.ts` — call `writeAskIndex` after writing wiring (find where wiring.json is written; the sidecar lands next to it).+- Modify: `src/ask/ask.ts` — `lexical()` consumes a prebuilt index when available.+- Tests: `test/graphrank.test.ts` (may exist — extend), `test/ask-index.test.ts`.++---++### Task 1: PageRank dangling-mass fix (`src/ask/graphrank.ts`)++**Files:**+- Modify: `src/ask/graphrank.ts` (lines ~84-101, the power-iteration loop)+- Test: extend the existing graphrank/ask test file if present, else create `test/graphrank.test.ts`++**Interfaces:** `personalizedPageRank(graph, seeds, opts)` signature and semantics unchanged.++- [ ] **Step 1: Write the failing tests** (create or extend `test/graphrank.test.ts`)++```ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { personalizedPageRank } from '../src/ask/graphrank.js';+import type { GraphV1 } from '../src/graph/types.js';++function nodeStub(id: string): any {+ return { id, name: id, kind: 'function', path: 'x.ts', span: 'L1-L1', signature: null,+ exported: true, origin: 'ast', body_hash: 'h', summary_state: 'pending', summary: null, crux: null };+}+function graphOf(nodeIds: string[], edges: Array<[string, string]>): GraphV1 {+ return {+ version: 1,+ nodes: nodeIds.map(nodeStub),+ edges: edges.map(([source, target]) => ({ source, target, relation: 'calls', confidence: 'extracted' })),+ } as any;+}++test('results identical to the reference implementation on a small graph', () => {+ // 5 nodes: a-b-c chain, d dangling with seed mass, e isolated non-seed.+ const g = graphOf(['a', 'b', 'c', 'd', 'e'], [['a', 'b'], ['b', 'c']]);+ const seeds = new Map([['a', 2], ['d', 1]]);+ const out = personalizedPageRank(g, seeds);+ // Reference values computed with the pre-fix implementation (identical math):+ // run the OLD code once (git stash the fix) to capture expected values, then+ // hard-code them here with a tolerance:+ // assert.ok(Math.abs(out.get('a')! - EXPECTED_A) < 1e-9) ... for a,b,c,d+ // The top-ranked node must be 'a' (seed + connected) with score 1.+ assert.equal(out.get('a'), 1);+ assert.ok((out.get('b') ?? 0) > 0);+ assert.ok((out.get('d') ?? 0) > 0, 'dangling seed keeps mass');+ assert.equal(out.get('e'), undefined, 'unreached node absent');+});++test('broad seeds on a large mostly-dangling graph complete fast', () => {+ // 20k dangling nodes (no edges) + 100 connected ones; seed EVERY node —+ // the pathological shape from real 32k-node graphs with common-word queries.+ const ids = Array.from({ length: 20000 }, (_, i) => `n${i}`);+ const edges: Array<[string, string]> = [];+ for (let i = 0; i < 100; i++) edges.push([`n${i}`, `n${i + 1}`]);+ const g = graphOf(ids, edges);+ const seeds = new Map(ids.map((id) => [id, 1]));+ const t0 = Date.now();+ const out = personalizedPageRank(g, seeds);+ const ms = Date.now() - t0;+ assert.ok(out.size > 0);+ assert.ok(ms < 3000, `took ${ms}ms — dangling redistribution must not be O(dangling × seeds)`);+});+```++Implementer note for the first test: before applying the fix, run the CURRENT code to capture exact expected scores for nodes a/b/c/d and bake them into the test as high-precision constants. That is what proves the fix is algebraically identical.++- [ ] **Step 2: Run to verify** — the timing test FAILS (takes minutes) against current code; kill after the assertion timeout proves the point (use the 3s assertion, run with a generous test timeout).++- [ ] **Step 3: Implement the fix** — replace the per-dangling-node redistribution in the iteration loop:++```ts+ // Power iteration from the restart distribution.+ let rank = new Map(restart);+ for (let i = 0; i < iters; i++) {+ const next = new Map<string, number>();+ // Teleport: every step, alpha of the mass returns to the seed set.+ for (const [id, r] of restart) next.set(id, alpha * r);+ // Dangling mass (nodes with no walk edges) is pooled and returned to the+ // seed set ONCE per iteration — same math as redistributing per node, but+ // O(nodes + seeds) instead of O(dangling × seeds).+ let dangling = 0;+ for (const [id, mass] of rank) {+ const nbrs = adj.get(id);+ if (!nbrs || nbrs.length === 0) {+ dangling += mass;+ continue;+ }+ const share = ((1 - alpha) * mass) / nbrs.length;+ for (const nb of nbrs) next.set(nb, (next.get(nb) ?? 0) + share);+ }+ if (dangling > 0) {+ const dm = (1 - alpha) * dangling;+ for (const [sid, r] of restart) next.set(sid, (next.get(sid) ?? 0) + dm * r);+ }+ rank = next;+ }+```++- [ ] **Step 4: Run tests + full suite; then the acceptance measurement** — time the previously-hanging query on the big graph (command in Global Constraints); record the number. Expected: seconds, not minutes.++- [ ] **Step 5: Commit** — `fix(ask): pool dangling PageRank mass — O(dangling×seeds) hang on broad queries`++---++### Task 2: Build-time ask index sidecar++**Files:**+- Create: `src/ask/index-file.ts`+- Modify: `src/graph/build.ts` (write sidecar after wiring), `src/ask/ask.ts` (consume it)+- Test: `test/ask-index.test.ts`++**Interfaces:**+- `interface AskIndexDoc { id: string; name: [string, number][]; path: [string, number][]; body: [string, number][] }` (token→count entries)+- `interface AskIndex { version: 1; avgBodyLen: number; df: [string, number][]; docCount: number; docs: AskIndexDoc[] }`+- `writeAskIndex(outDir: string, graph: GraphV1): string` — tokenizes exactly like `ask.ts` does today (import/share the SAME `tokenize`/`counts` — export them from ask.ts or move both into index-file.ts and import back; one source of truth) and writes `<outDir>/.graph/index.json`. Returns the path.+- `readAskIndex(outDir: string): AskIndex | null` — null on missing/unparseable/unknown-version.+- In `ask.ts` `lexical()`: when `readAskIndex` returns data covering the current graph (same doc count as `graph.nodes.length` — cheap staleness guard; on mismatch, fall back), build `symbolDocs` maps from the sidecar instead of tokenizing; IDF comes from stored `df` + concept doc bags (concepts still tokenized live and merged into df counts the same way `computeIdf` sees them today — keep the resulting idf values identical; if exact parity with stored-df-plus-live-concepts is not achievable, store df WITHOUT concepts and add concept bags at query time before computing idf, which reproduces today's inputs exactly).+- `graft build` prints the sidecar in its output (`→ ...` line already prints the dir; no new output needed beyond the report).++- [ ] **Step 1: Write failing tests** covering: (a) `writeAskIndex`+`readAskIndex` round-trip equals live tokenization (build both ways on a small fixture graph and deep-equal the doc maps); (b) `ask` results IDENTICAL with and without the sidecar on a built fixture repo (run `lexical` twice — sidecar present vs renamed away — same hits, same scores); (c) unknown version → fallback (no crash, same results); (d) stale sidecar (docCount mismatch) → fallback.++- [ ] **Step 2: Verify failure, implement, verify pass, full suite green.**++- [ ] **Step 3: Acceptance measurement** — rebuild the big graph (`node dist/cli.js --dir <scratch> build <assign repo>`), then time the long query again; record build-time delta (sidecar write) and ask-time improvement in the report.++- [ ] **Step 4: Commit** — `feat(ask): build-time token/IDF index sidecar — ask stops re-tokenizing the corpus per query`++---++### Task 3: Verification + docs++**Files:**+- Modify: `README.md` (only if numbers/claims need updating — the "What runs where"/ask sections make no latency claims today; add none without measurements).+- No code.++- [ ] **Step 1:** Full suite + build. Run the three A/B queries from the benchmark session on the big graph, timed, and record: short query, medium query, long query — before/after table in the task report (before-numbers from this plan's context: 1.2-1.5s short/medium, hang on long).+- [ ] **Step 2:** Run `graft ask` on the graft repo itself (small graph) — confirm no regression (<0.5s).+- [ ] **Step 3:** Commit any doc touch-ups: `docs: note ask index sidecar in build output docs` (skip commit if no changes).++## Out of scope++- Removing `body_text` from `wiring.json` (moving it fully into the sidecar) — biggest remaining parse win, but it changes the graph schema consumed by other readers; separate plan after this lands.+- Frontier-capped PageRank — unnecessary once the dangling fix lands (25 iterations over 72k edges is ~ms).++## Self-Review++- The hang's root cause (dangling×seeds) is fixed by Task 1 with an equivalence test against captured reference values. ✓+- The 45% tokenization tax is removed by Task 2 with result-parity tests both ways. ✓+- Fallback keeps old graphs working; version field future-proofs. ✓+- No placeholders: Task 1 has full code; Task 2's types and parity strategy are fully specified with the one open detail (df-with-concepts parity) given an exact resolution path. ✓diff --git a/docs/superpowers/plans/2026-07-21-graft-mcp.md b/docs/superpowers/plans/2026-07-21-graft-mcp.mdnew file mode 100644index 00000000..fa976e68--- /dev/null+++ b/docs/superpowers/plans/2026-07-21-graft-mcp.md@@ -0,0 +1,689 @@+# Graft MCP Server (Phase 2) Implementation Plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.++**Goal:** `graft mcp` — a zero-dependency stdio MCP server exposing `graft_ask`, `graft_check`, `graft_blast_radius` as first-class tools — plus automatic per-host server registration during `graft init`.++**Architecture:** A hand-rolled newline-delimited JSON-RPC 2.0 loop over stdio (`src/mcp/server.ts`) dispatching to three pure tool functions (`src/mcp/tools.ts`) that wrap the existing engine. Host registration lives in `src/hosts/mcp-config.ts`: keyed JSON merges for repo-local configs and an append-if-absent TOML section for the one host that uses TOML globally. `runHostsInit` gains an `mcp` step so `graft init` registers the server for selected hosts; `--no-mcp` opts out.++**Tech Stack:** TypeScript ESM, Node ≥20, `node:test` + tsx. **No new dependencies** — the MCP stdio framing is newline-delimited JSON-RPC, implementable in ~120 lines.++## Global Constraints++- No new npm dependencies. Node ≥20 ESM; imports use `.js` extensions. Files under 500 lines.+- stdout of the MCP server carries ONLY newline-delimited JSON-RPC messages; all logging goes to stderr.+- JSON config writes: parse-tolerant of a missing file (treat as `{}`); an unparseable existing file is NEVER overwritten — skip with action `skipped-unparseable`.+- Idempotent: re-running init converges; a second run reports `unchanged` for every MCP config.+- Registered server command is exactly: `npx -y @nanonets/graft mcp` (works on every machine without global install).+- Global (home-dir) writes are gated on the host's config dir actually existing; repo-local writes follow the explicit/detected selection.+- No third-party tool names in code comments, docs, or commit messages (host ids and file paths are fine).+- Tests: `node --import tsx --test test/<file>.test.ts`, temp dirs, injectable `home`.++---++## File Structure++- Create: `src/mcp/tools.ts` — three tool implementations + their JSON Schemas.+- Create: `src/mcp/server.ts` — JSON-RPC stdio loop.+- Create: `src/hosts/mcp-config.ts` — per-host registration writers.+- Modify: `src/hosts/init.ts` — add `mcp` step to `runHostsInit`.+- Modify: `src/cli.ts` — new `mcp` command; `init` gains `--no-mcp`.+- Modify: `README.md` — MCP subsection under "Agent integration".+- Tests: `test/mcp-tools.test.ts`, `test/mcp-server.test.ts`, `test/hosts-mcp-config.test.ts` (+ extend `test/hosts-init.test.ts`).++---++### Task 1: Tool implementations (`src/mcp/tools.ts`)++**Files:**+- Create: `src/mcp/tools.ts`+- Test: `test/mcp-tools.test.ts`++**Interfaces:**+- Consumes (existing code): `Graft` from `../engine.js`; `formatAsk` from `../ask/ask.js`; `formatCheckReport` from `../context/check.js`; `formatGraphCheckReport` from `../graph/check.js`; `formatBlastRadius` from `../claude/format.js`; `readGraph`, `GRAPH_FILE` from `../graph/write.js`; `contextDirFor` from `../context/node-file.js`.+- Produces:+ - `interface ToolDef { name: string; description: string; inputSchema: object }`+ - `TOOLS: ToolDef[]` — names exactly `graft_ask`, `graft_check`, `graft_blast_radius`.+ - `callTool(root: string, name: string, args: Record<string, unknown>): { text: string; isError: boolean }` — never throws; unknown tool → `isError: true`.++- [ ] **Step 1: Write the failing tests**++```ts+// test/mcp-tools.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { mkdtempSync, mkdirSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { execFileSync } from 'node:child_process';+import { TOOLS, callTool } from '../src/mcp/tools.js';++function builtRepo(): string {+ const d = mkdtempSync(join(tmpdir(), 'graft-mcptools-'));+ mkdirSync(join(d, 'src'), { recursive: true });+ writeFileSync(join(d, 'src', 'math.ts'),+ 'export function add(a: number, b: number): number {\n return a + b;\n}\nexport function sub(a: number, b: number): number {\n return add(a, -b);\n}\n');+ execFileSync(process.execPath, ['--import', 'tsx', 'src/cli.ts', 'build', d], { stdio: 'pipe' });+ return d;+}++test('TOOLS lists the three tools with schemas', () => {+ assert.deepEqual(TOOLS.map((t) => t.name), ['graft_ask', 'graft_check', 'graft_blast_radius']);+ for (const t of TOOLS) {+ assert.ok(t.description.length > 0);+ assert.equal((t.inputSchema as { type: string }).type, 'object');+ }+});++test('graft_ask returns ranked hits for a built repo', () => {+ const d = builtRepo();+ const r = callTool(d, 'graft_ask', { query: 'how do I add numbers' });+ assert.equal(r.isError, false);+ assert.match(r.text, /add/);+ assert.match(r.text, /src\/math\.ts/);+});++test('graft_check reports the wiring state', () => {+ const d = builtRepo();+ const r = callTool(d, 'graft_check', {});+ assert.equal(r.isError, false);+ assert.match(r.text, /graph check: OK/);+});++test('graft_blast_radius names dependents of a file', () => {+ const d = builtRepo();+ const r = callTool(d, 'graft_blast_radius', { file: 'src/math.ts' });+ assert.equal(r.isError, false);+ assert.ok(r.text.length > 0);+});++test('unbuilt repo and unknown tool are soft errors', () => {+ const bare = mkdtempSync(join(tmpdir(), 'graft-mcptools-bare-'));+ const r1 = callTool(bare, 'graft_blast_radius', { file: 'x.ts' });+ assert.equal(r1.isError, true);+ assert.match(r1.text, /graft build/);+ const r2 = callTool(bare, 'nope', {});+ assert.equal(r2.isError, true);+ assert.match(r2.text, /unknown tool/i);+});+```++- [ ] **Step 2: Run to verify failure**++Run: `node --import tsx --test test/mcp-tools.test.ts`+Expected: FAIL — `Cannot find module '../src/mcp/tools.js'`++- [ ] **Step 3: Implement**++```ts+// src/mcp/tools.ts+/**+ * The three MCP tools, as pure functions over the existing engine.+ * `callTool` never throws — hosts get soft errors as isError content.+ */+import { join } from 'node:path';+import { Graft } from '../engine.js';+import { formatAsk } from '../ask/ask.js';+import { formatCheckReport } from '../context/check.js';+import { formatGraphCheckReport } from '../graph/check.js';+import { formatBlastRadius } from '../claude/format.js';+import { readGraph, GRAPH_FILE } from '../graph/write.js';+import { contextDirFor } from '../context/node-file.js';++export interface ToolDef {+ name: string;+ description: string;+ inputSchema: object;+}++export const TOOLS: ToolDef[] = [+ {+ name: 'graft_ask',+ description:+ 'Query the repo context graph in plain words. Returns ranked nodes with exact file:line spans and the relevant source inlined — usually the full answer, no file reads needed.',+ inputSchema: {+ type: 'object',+ properties: {+ query: { type: 'string', description: 'what you want to understand, in plain words' },+ limit: { type: 'number', description: 'max results (default 5)' },+ },+ required: ['query'],+ },+ },+ {+ name: 'graft_check',+ description: 'Report whether the committed graph is in sync with the code (drift check).',+ inputSchema: { type: 'object', properties: {} },+ },+ {+ name: 'graft_blast_radius',+ description: 'List what depends on a file — who breaks if it changes.',+ inputSchema: {+ type: 'object',+ properties: { file: { type: 'string', description: 'repo-relative path, e.g. src/cache.ts' } },+ required: ['file'],+ },+ },+];++export function callTool(+ root: string,+ name: string,+ args: Record<string, unknown>,+): { text: string; isError: boolean } {+ try {+ switch (name) {+ case 'graft_ask': {+ const query = String(args.query ?? '');+ if (!query) return { text: 'graft_ask requires a query', isError: true };+ const limit = typeof args.limit === 'number' ? args.limit : 5;+ const engine = new Graft();+ const r = engine.ask(root, query, { limit, source: true });+ return { text: formatAsk(r), isError: false };+ }+ case 'graft_check': {+ const engine = new Graft();+ const r = engine.check(root);+ const g = engine.checkGraph(root);+ const parts = [formatCheckReport(r)];+ if (!g.missing) parts.push(formatGraphCheckReport(g));+ return { text: parts.join('\n\n'), isError: false };+ }+ case 'graft_blast_radius': {+ const file = String(args.file ?? '');+ if (!file) return { text: 'graft_blast_radius requires a file', isError: true };+ const w = readGraph(join(contextDirFor(root, undefined), GRAPH_FILE));+ if (!w) return { text: 'no graph found — run `graft build` first', isError: true };+ const br = formatBlastRadius(w, file);+ return { text: br ?? `no known dependents of ${file}`, isError: false };+ }+ default:+ return { text: `unknown tool: ${name}`, isError: true };+ }+ } catch (err) {+ return { text: err instanceof Error ? err.message : String(err), isError: true };+ }+}+```++Note for the implementer: check `contextDirFor`'s actual signature in `src/context/node-file.ts` — if the second parameter is optional, call it as `contextDirFor(root)`.++- [ ] **Step 4: Run to verify pass**++Run: `node --import tsx --test test/mcp-tools.test.ts`+Expected: PASS (5 tests)++- [ ] **Step 5: Commit**++```bash+git add src/mcp/tools.ts test/mcp-tools.test.ts+git commit -m "feat(mcp): graft_ask / graft_check / graft_blast_radius tool implementations"+```++---++### Task 2: Stdio server + CLI command (`src/mcp/server.ts`)++**Files:**+- Create: `src/mcp/server.ts`+- Modify: `src/cli.ts` — add the `mcp` command after `viz`.+- Test: `test/mcp-server.test.ts`++**Interfaces:**+- Consumes: `TOOLS`, `callTool` (Task 1).+- Produces: `startMcpServer(root: string): void` — reads newline-delimited JSON-RPC 2.0 from stdin, writes responses to stdout. Methods: `initialize`, `notifications/initialized` (ignored), `ping`, `tools/list`, `tools/call`. Unknown method with an id → error `-32601`; parse failure → error `-32700` (id null). CLI: `graft mcp [dir]`.++- [ ] **Step 1: Write the failing test**++```ts+// test/mcp-server.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { spawn } from 'node:child_process';+import { mkdtempSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { once } from 'node:events';++async function rpc(messages: object[], dir: string, expected: number): Promise<any[]> {+ const child = spawn(process.execPath, ['--import', 'tsx', 'src/cli.ts', 'mcp', dir], { stdio: ['pipe', 'pipe', 'pipe'] });+ const responses: any[] = [];+ let buf = '';+ child.stdout.on('data', (d) => {+ buf += d.toString();+ let i;+ while ((i = buf.indexOf('\n')) !== -1) {+ const line = buf.slice(0, i).trim();+ buf = buf.slice(i + 1);+ if (line) responses.push(JSON.parse(line));+ }+ });+ for (const m of messages) child.stdin.write(`${JSON.stringify(m)}\n`);+ const deadline = Date.now() + 15000;+ while (responses.length < expected && Date.now() < deadline) await new Promise((r) => setTimeout(r, 50));+ child.kill();+ await once(child, 'exit').catch(() => {});+ return responses;+}++test('initialize → tools/list → tools/call round-trip', async () => {+ const dir = mkdtempSync(join(tmpdir(), 'graft-mcpsrv-'));+ const rs = await rpc(+ [+ { jsonrpc: '2.0', id: 1, method: 'initialize', params: { protocolVersion: '2025-03-26', capabilities: {}, clientInfo: { name: 't', version: '0' } } },+ { jsonrpc: '2.0', method: 'notifications/initialized' },+ { jsonrpc: '2.0', id: 2, method: 'tools/list' },+ { jsonrpc: '2.0', id: 3, method: 'tools/call', params: { name: 'graft_blast_radius', arguments: { file: 'x.ts' } } },+ ],+ dir,+ 3,+ );+ assert.equal(rs.length, 3);+ const init = rs.find((r) => r.id === 1);+ assert.equal(init.result.protocolVersion, '2025-03-26');+ assert.ok(init.result.capabilities.tools);+ assert.equal(init.result.serverInfo.name, 'graft');+ const list = rs.find((r) => r.id === 2);+ assert.deepEqual(list.result.tools.map((t: any) => t.name), ['graft_ask', 'graft_check', 'graft_blast_radius']);+ const call = rs.find((r) => r.id === 3);+ assert.equal(call.result.isError, true); // unbuilt repo → soft error content+ assert.match(call.result.content[0].text, /graft build/);+});++test('unknown method returns -32601', async () => {+ const dir = mkdtempSync(join(tmpdir(), 'graft-mcpsrv2-'));+ const rs = await rpc([{ jsonrpc: '2.0', id: 9, method: 'resources/list' }], dir, 1);+ assert.equal(rs[0].error.code, -32601);+});+```++- [ ] **Step 2: Run to verify failure**++Run: `node --import tsx --test test/mcp-server.test.ts`+Expected: FAIL — the CLI has no `mcp` command yet (commander error on stderr, no responses → assertion failure).++- [ ] **Step 3: Implement the server**++```ts+// src/mcp/server.ts+/**+ * Minimal MCP stdio server: newline-delimited JSON-RPC 2.0.+ * stdout carries protocol messages ONLY; diagnostics go to stderr.+ */+import { createInterface } from 'node:readline';+import { TOOLS, callTool } from './tools.js';++function send(msg: object): void {+ process.stdout.write(`${JSON.stringify(msg)}\n`);+}++function reply(id: unknown, result: object): void {+ send({ jsonrpc: '2.0', id, result });+}++function replyError(id: unknown, code: number, message: string): void {+ send({ jsonrpc: '2.0', id, error: { code, message } });+}++export function startMcpServer(root: string): void {+ const rl = createInterface({ input: process.stdin, crlfDelay: Infinity });+ rl.on('line', (line) => {+ const text = line.trim();+ if (!text) return;+ let msg: { id?: unknown; method?: string; params?: Record<string, any> };+ try {+ msg = JSON.parse(text);+ } catch {+ replyError(null, -32700, 'parse error');+ return;+ }+ const { id, method, params } = msg;+ const isNotification = id === undefined;+ switch (method) {+ case 'initialize':+ reply(id, {+ protocolVersion: params?.protocolVersion ?? '2024-11-05',+ capabilities: { tools: {} },+ serverInfo: { name: 'graft', version: '0' },+ });+ return;+ case 'notifications/initialized':+ case 'notifications/cancelled':+ return; // notifications get no response+ case 'ping':+ if (!isNotification) reply(id, {});+ return;+ case 'tools/list':+ if (!isNotification) {+ reply(id, { tools: TOOLS.map((t) => ({ name: t.name, description: t.description, inputSchema: t.inputSchema })) });+ }+ return;+ case 'tools/call': {+ if (isNotification) return;+ const name = String(params?.name ?? '');+ const args = (params?.arguments ?? {}) as Record<string, unknown>;+ const r = callTool(root, name, args);+ reply(id, { content: [{ type: 'text', text: r.text }], isError: r.isError });+ return;+ }+ default:+ if (!isNotification) replyError(id, -32601, `method not found: ${method}`);+ }+ });+ process.stdin.on('end', () => process.exit(0));+}+```++- [ ] **Step 4: Wire the CLI command** (in `src/cli.ts`, after the `viz` command)++```ts+program+ .command("mcp")+ .description("Serve the graph over MCP (stdio) — exposes graft_ask / graft_check / graft_blast_radius as tools")+ .argument("[dir]", "repository root", ".")+ .action(async (dir: string) => {+ const { resolve } = await import("node:path");+ const { startMcpServer } = await import("./mcp/server.js");+ startMcpServer(resolve(dir));+ });+```++- [ ] **Step 5: Run the new test, then the full suite**++Run: `node --import tsx --test test/mcp-server.test.ts` → PASS (2 tests)+Run: `node --import tsx --test test/*.test.ts` → all green.++- [ ] **Step 6: Commit**++```bash+git add src/mcp/server.ts src/cli.ts test/mcp-server.test.ts+git commit -m "feat(mcp): stdio JSON-RPC server + graft mcp CLI command"+```++---++### Task 3: Host registration writers (`src/hosts/mcp-config.ts`)++**Files:**+- Create: `src/hosts/mcp-config.ts`+- Test: `test/hosts-mcp-config.test.ts`++**Interfaces:**+- Produces:+ - `interface McpWrite { id: string; path: string; action: 'created' | 'updated' | 'unchanged' | 'skipped-unparseable' }`+ - `registerMcpConfigs(repo: string, ids: string[], opts?: { home?: string }): McpWrite[]`+ - Mapping (id → write): `cursor` → `<repo>/.cursor/mcp.json` under `mcpServers.graft`; `gemini` → `<repo>/.gemini/settings.json` under `mcpServers.graft`; `kiro` → `<repo>/.kiro/settings/mcp.json` under `mcpServers.graft`; `agents` → two gated writes: `<repo>/opencode.json` under `mcp.graft` as `{ type: 'local', command: ['npx','-y','@nanonets/graft','mcp'], enabled: true }` ONLY if `<home>/.config/opencode` exists, and `<home>/.codex/config.toml` appended `[mcp_servers.graft]` section ONLY if `<home>/.codex` exists. Ids without a mapping (`copilot`, `windsurf`, `claude`) produce no writes.+ - JSON entry value for `mcpServers.graft`: `{ command: 'npx', args: ['-y', '@nanonets/graft', 'mcp'] }`.++- [ ] **Step 1: Write the failing tests**++```ts+// test/hosts-mcp-config.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { mkdtempSync, mkdirSync, readFileSync, writeFileSync, existsSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { registerMcpConfigs } from '../src/hosts/mcp-config.js';++function fresh(): string { return mkdtempSync(join(tmpdir(), 'graft-mcpcfg-')); }++test('cursor/gemini/kiro get repo-local JSON entries', () => {+ const repo = fresh(); const home = fresh();+ const w = registerMcpConfigs(repo, ['cursor', 'gemini', 'kiro'], { home });+ assert.deepEqual(w.map((x) => x.action), ['created', 'created', 'created']);+ const cursor = JSON.parse(readFileSync(join(repo, '.cursor', 'mcp.json'), 'utf8'));+ assert.deepEqual(cursor.mcpServers.graft, { command: 'npx', args: ['-y', '@nanonets/graft', 'mcp'] });+ assert.ok(existsSync(join(repo, '.gemini', 'settings.json')));+ assert.ok(existsSync(join(repo, '.kiro', 'settings', 'mcp.json')));+});++test('existing config keys are preserved; re-run is unchanged', () => {+ const repo = fresh(); const home = fresh();+ mkdirSync(join(repo, '.cursor'), { recursive: true });+ writeFileSync(join(repo, '.cursor', 'mcp.json'), JSON.stringify({ mcpServers: { other: { command: 'x' } } }));+ registerMcpConfigs(repo, ['cursor'], { home });+ const cfg = JSON.parse(readFileSync(join(repo, '.cursor', 'mcp.json'), 'utf8'));+ assert.ok(cfg.mcpServers.other, 'foreign server preserved');+ assert.ok(cfg.mcpServers.graft);+ const again = registerMcpConfigs(repo, ['cursor'], { home });+ assert.deepEqual(again.map((x) => x.action), ['unchanged']);+});++test('unparseable JSON is never clobbered', () => {+ const repo = fresh(); const home = fresh();+ mkdirSync(join(repo, '.cursor'), { recursive: true });+ writeFileSync(join(repo, '.cursor', 'mcp.json'), '{ not json');+ const w = registerMcpConfigs(repo, ['cursor'], { home });+ assert.deepEqual(w.map((x) => x.action), ['skipped-unparseable']);+ assert.equal(readFileSync(join(repo, '.cursor', 'mcp.json'), 'utf8'), '{ not json');+});++test('agents id: codex TOML + opencode JSON, gated on home dirs', () => {+ const repo = fresh(); const home = fresh();+ assert.deepEqual(registerMcpConfigs(repo, ['agents'], { home }), [], 'nothing without home dirs');+ mkdirSync(join(home, '.codex'), { recursive: true });+ mkdirSync(join(home, '.config', 'opencode'), { recursive: true });+ const w = registerMcpConfigs(repo, ['agents'], { home });+ assert.equal(w.length, 2);+ const toml = readFileSync(join(home, '.codex', 'config.toml'), 'utf8');+ assert.match(toml, /^\[mcp_servers\.graft\]$/m);+ assert.match(toml, /"@nanonets\/graft"/);+ const oc = JSON.parse(readFileSync(join(repo, 'opencode.json'), 'utf8'));+ assert.equal(oc.mcp.graft.type, 'local');+ const again = registerMcpConfigs(repo, ['agents'], { home });+ assert.deepEqual(again.map((x) => x.action).sort(), ['unchanged', 'unchanged']);+});++test('codex TOML append preserves existing content', () => {+ const repo = fresh(); const home = fresh();+ mkdirSync(join(home, '.codex'), { recursive: true });+ writeFileSync(join(home, '.codex', 'config.toml'), 'model = "o3"\n\n[mcp_servers.other]\ncommand = "x"\n');+ registerMcpConfigs(repo, ['agents'], { home });+ const toml = readFileSync(join(home, '.codex', 'config.toml'), 'utf8');+ assert.match(toml, /model = "o3"/);+ assert.match(toml, /\[mcp_servers\.other\]/);+ assert.match(toml, /\[mcp_servers\.graft\]/);+});+```++- [ ] **Step 2: Run to verify failure**++Run: `node --import tsx --test test/hosts-mcp-config.test.ts`+Expected: FAIL — module not found.++- [ ] **Step 3: Implement**++```ts+// src/hosts/mcp-config.ts+/**+ * Register the graft MCP server in each host's config.+ * JSON hosts get a keyed merge (other servers preserved; unparseable files+ * are never rewritten). The TOML host gets an append-if-absent section.+ */+import { readFileSync, writeFileSync, mkdirSync, existsSync, statSync } from 'node:fs';+import { dirname, join } from 'node:path';+import { homedir } from 'node:os';++export interface McpWrite {+ id: string;+ path: string;+ action: 'created' | 'updated' | 'unchanged' | 'skipped-unparseable';+}++const SERVER_ENTRY = { command: 'npx', args: ['-y', '@nanonets/graft', 'mcp'] };+const OPENCODE_ENTRY = { type: 'local', command: ['npx', '-y', '@nanonets/graft', 'mcp'], enabled: true };++function dirExists(p: string): boolean {+ try { return statSync(p).isDirectory(); } catch { return false; }+}++function mergeJsonKey(id: string, path: string, topKey: string, entry: object): McpWrite {+ let root: Record<string, any> = {};+ const existed = existsSync(path);+ if (existed) {+ try {+ root = JSON.parse(readFileSync(path, 'utf8'));+ } catch {+ return { id, path, action: 'skipped-unparseable' };+ }+ }+ const bucket = (root[topKey] ??= {});+ if (JSON.stringify(bucket.graft) === JSON.stringify(entry)) return { id, path, action: 'unchanged' };+ const action = bucket.graft === undefined && !existed ? 'created' : existed ? 'updated' : 'created';+ bucket.graft = entry;+ mkdirSync(dirname(path), { recursive: true });+ writeFileSync(path, `${JSON.stringify(root, null, 2)}\n`);+ return { id, path, action };+}++function upsertCodexToml(id: string, path: string): McpWrite {+ const existed = existsSync(path);+ const text = existed ? readFileSync(path, 'utf8') : '';+ if (/^\[mcp_servers\.graft\]$/m.test(text)) return { id, path, action: 'unchanged' };+ const section = `[mcp_servers.graft]\ncommand = "npx"\nargs = ["-y", "@nanonets/graft", "mcp"]\n`;+ const sep = text.length === 0 ? '' : text.endsWith('\n') ? '\n' : '\n\n';+ mkdirSync(dirname(path), { recursive: true });+ writeFileSync(path, `${text}${sep}${section}`);+ return { id, path, action: existed ? 'updated' : 'created' };+}++export function registerMcpConfigs(+ repo: string,+ ids: string[],+ opts: { home?: string } = {},+): McpWrite[] {+ const home = opts.home ?? homedir();+ const out: McpWrite[] = [];+ for (const id of ids) {+ switch (id) {+ case 'cursor':+ out.push(mergeJsonKey(id, join(repo, '.cursor', 'mcp.json'), 'mcpServers', SERVER_ENTRY));+ break;+ case 'gemini':+ out.push(mergeJsonKey(id, join(repo, '.gemini', 'settings.json'), 'mcpServers', SERVER_ENTRY));+ break;+ case 'kiro':+ out.push(mergeJsonKey(id, join(repo, '.kiro', 'settings', 'mcp.json'), 'mcpServers', SERVER_ENTRY));+ break;+ case 'agents':+ if (dirExists(join(home, '.codex'))) {+ out.push(upsertCodexToml('codex', join(home, '.codex', 'config.toml')));+ }+ if (dirExists(join(home, '.config', 'opencode'))) {+ out.push(mergeJsonKey('opencode', join(repo, 'opencode.json'), 'mcp', OPENCODE_ENTRY));+ }+ break;+ default:+ break; // copilot / windsurf / claude: no MCP target in this phase+ }+ }+ return out;+}+```++- [ ] **Step 4: Run to verify pass**++Run: `node --import tsx --test test/hosts-mcp-config.test.ts` → PASS (5 tests)++- [ ] **Step 5: Commit**++```bash+git add src/hosts/mcp-config.ts test/hosts-mcp-config.test.ts+git commit -m "feat(hosts): MCP server registration writers (JSON keyed merge + TOML append)"+```++---++### Task 4: Init integration + README++**Files:**+- Modify: `src/hosts/init.ts` — add `mcp` option (default on) and results.+- Modify: `src/cli.ts` — `init` gains `--no-mcp`; prints MCP writes.+- Modify: `README.md` — MCP subsection.+- Test: extend `test/hosts-init.test.ts`.++**Interfaces:**+- Consumes: `registerMcpConfigs`, `McpWrite` (Task 3).+- Produces: `runHostsInit(repo, { agents?, all?, home?, mcp?: boolean })` → result gains `mcp: McpWrite[]` (empty when `mcp: false`). MCP registration runs for the SAME selected host ids as the instruction files.++- [ ] **Step 1: Write the failing tests** (append to `test/hosts-init.test.ts`)++```ts+test('runHostsInit registers MCP configs for selected hosts', () => {+ const home = fresh(); const repo = fresh();+ const r = runHostsInit(repo, { home, agents: ['cursor'] });+ assert.equal(r.mcp.length, 1);+ assert.match(r.mcp[0].path, /\.cursor\/mcp\.json$/);+ const cfg = JSON.parse(readFileSync(join(repo, '.cursor', 'mcp.json'), 'utf8'));+ assert.equal(cfg.mcpServers.graft.command, 'npx');+});++test('mcp: false skips MCP registration', () => {+ const home = fresh(); const repo = fresh();+ const r = runHostsInit(repo, { home, agents: ['cursor'], mcp: false });+ assert.deepEqual(r.mcp, []);+ assert.ok(!existsSync(join(repo, '.cursor', 'mcp.json')));+});++test('CLI: --no-mcp writes the rule file but no MCP config', () => {+ const repo = fresh();+ execFileSync(process.execPath, ['--import', 'tsx', 'src/cli.ts', 'init', repo, '--no-build', '--agents', 'cursor', '--no-mcp'], { encoding: 'utf8' });+ assert.ok(existsSync(join(repo, '.cursor', 'rules', 'graft.mdc')));+ assert.ok(!existsSync(join(repo, '.cursor', 'mcp.json')));+});+```++- [ ] **Step 2: Run to verify failure**++Run: `node --import tsx --test test/hosts-init.test.ts`+Expected: FAIL — `r.mcp` undefined / unknown option `--no-mcp`.++- [ ] **Step 3: Implement**++In `src/hosts/init.ts`: import `registerMcpConfigs`, `McpWrite` from `./mcp-config.js`; add `mcp: McpWrite[]` to `HostsInitResult`; extend opts with `mcp?: boolean`; after the instruction-file loop:++```ts+const mcp = opts.mcp === false ? [] : registerMcpConfigs(repo, selected.map((h) => h.id), { home });+return { written, skipped, unknown, mcp };+```++In `src/cli.ts` init command: add `.option("--no-mcp", "skip MCP server registration for other agents")`, pass `mcp: opts.mcp` into `runHostsInit`, and after the instruction-file lines print:++```ts+for (const m of r.mcp) console.error(`✓ mcp ${m.id}: ${m.path} (${m.action})`);+```++In `README.md`, add under "## Agent integration" (before the Claude subsection):++```markdown+### MCP server++`graft init` also registers Graft's MCP server with agents that support it, so+`graft_ask`, `graft_check`, and `graft_blast_radius` appear as native tools —+no shell required. Skip with `--no-mcp`. Run it manually with `graft mcp [dir]`,+or register it by hand:++ { "mcpServers": { "graft": { "command": "npx", "args": ["-y", "@nanonets/graft", "mcp"] } } }+```++- [ ] **Step 4: Full suite + manual verification**++Run: `node --import tsx --test test/*.test.ts` → all green.+Manual: `cd $(mktemp -d) && node --import tsx <repo>/src/cli.ts init . --no-build --agents cursor` → both `.cursor/rules/graft.mdc` and `.cursor/mcp.json` exist; re-run prints `(unchanged)` twice.++- [ ] **Step 5: Commit**++```bash+git add src/hosts/init.ts src/cli.ts test/hosts-init.test.ts README.md+git commit -m "feat(init): register the MCP server for selected agents (--no-mcp to skip)"+```++---++## Self-Review++- Coverage: server (T2), tools (T1), registration (T3), init/CLI/docs (T4). ✓+- Placeholders: none; complete code everywhere. ✓+- Type consistency: `callTool → {text, isError}` consumed by server's `tools/call`; `McpWrite` consumed by init/CLI; `runHostsInit` opts extended additively (existing tests keep passing since `mcp` results are additive). ✓+- Risk noted for implementer: `contextDirFor` signature check (T1 note); MCP protocol version echo (T2 handles both 2024-11-05 and 2025-03-26 clients by echoing).diff --git a/docs/superpowers/plans/2026-07-21-host-hooks.md b/docs/superpowers/plans/2026-07-21-host-hooks.mdnew file mode 100644index 00000000..de26470f--- /dev/null+++ b/docs/superpowers/plans/2026-07-21-host-hooks.md@@ -0,0 +1,343 @@+# Host Hooks (Phase 3) Implementation Plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.++**Goal:** Bring Graft's active layer — post-edit blast radius + automatic $0 graph re-sync — to Codex-style CLI agents via their user-level `hooks.json`, reusing the existing hook runtime.++**Architecture:** The existing hook runtime (`src/claude/hooks.ts`) already does everything; it reads the same stdin JSON shape these CLIs emit. We (1) refactor its `post-edit` and `stop` handlers into callable helpers and add a combined `post-edit-sync` event (these hosts have no session-end event, so sync piggybacks on post-edit), (2) add an installer that writes the existing shim to `<home>/.codex/hooks/graft/` and merges one `PostToolUse` entry into `<home>/.codex/hooks.json`, (3) wire it into `runHostsInit` behind the `agents` id, gated on `<home>/.codex` existing, with `--no-hooks` to opt out.++**Tech Stack:** TypeScript ESM, Node ≥20, `node:test` + tsx. No new dependencies.++## Global Constraints++- No new npm dependencies. ESM `.js` imports. Files under 500 lines.+- Existing Claude Code hook behavior must not change (same events, same outputs; refactor is behavior-preserving — the full existing suite must stay green).+- `hooks.json` merge: parse-tolerant of missing file; unparseable file NEVER rewritten (`skipped-unparseable`); foreign hook entries preserved; graft entries filtered-then-appended so re-runs converge (`unchanged` when nothing changes).+- Shim file is wholly graft-owned: overwrite when content differs, report `created`/`updated`/`unchanged`.+- Global writes gated on `<home>/.codex` existing. Injectable `home` everywhere; tests never touch real `$HOME`.+- No third-party tool names in code comments, docs, or commit messages.+- Tests: `node --import tsx --test test/<file>.test.ts`; use the `GRAFT_TEST_STDIN` env seam for hook-runtime tests (see `test/claude-hooks.test.ts` for the established pattern).++---++## File Structure++- Modify: `src/claude/hooks.ts` — extract `handlePostEdit`/`handleStop`, add `post-edit-sync`.+- Create: `src/hosts/codex-hooks.ts` — `installCodexHooks(home)`.+- Modify: `src/hosts/init.ts` — `hooks` option (default on), result gains `hooks: HookWrite[]`.+- Modify: `src/cli.ts` — `--no-hooks` flag + output lines.+- Modify: `README.md` — one paragraph under "## Agent integration".+- Tests: extend `test/claude-hooks.test.ts`; create `test/hosts-codex-hooks.test.ts`; extend `test/hosts-init.test.ts`.++---++### Task 1: `post-edit-sync` event in the hook runtime++**Files:**+- Modify: `src/claude/hooks.ts`+- Test: extend `test/claude-hooks.test.ts`++**Interfaces:**+- Consumes: existing internals of `src/claude/hooks.ts` (`patchStats`, `readStats`, `acquireLock`, `readWiring`, `formatBlastRadius`, `claudeScriptPath`).+- Produces: `main('post-edit-sync')` — runs the post-edit logic (dirty marking + blast radius emit) and then the stop logic (spawn detached sync when dirty + lock acquired) in one invocation. `main('post-edit')` and `main('stop')` behave exactly as before.++- [ ] **Step 1: Read the existing test file** (`test/claude-hooks.test.ts`) to mirror its fixture setup (temp repo, `GRAFT_TEST_STDIN`, stats/wiring fixtures). Then write the failing test, following the file's existing conventions:++```ts+test('post-edit-sync marks dirty and kicks off the background sync', async () => {+ // Arrange exactly like the existing post-edit test fixture (temp dir with+ // graft/.graph/wiring.json + graft/.cache), with stdin naming an edited file.+ // Act: await main('post-edit-sync') with GRAFT_TEST_STDIN set.+ // Assert BOTH effects:+ // 1. stats.dirty === true (or lastFile set) — the post-edit half ran;+ // 2. stats.syncing === true AND the sync lock file exists+ // (graft/.cache/.sync.lock) — the stop half ran.+});+```++Write it as real code against the actual fixture helpers in the file — the intent above is normative, the helper names come from the existing tests. Also add: `post-edit-sync on a file under graft/ does not mark dirty` (mirrors the existing under-graft guard test) — note the sync half may still run if stats were already dirty; assert only that `dirty` was not newly set by this call.++- [ ] **Step 2: Run to verify the new tests fail**++Run: `node --import tsx --test test/claude-hooks.test.ts`+Expected: new tests FAIL (unknown event is a silent no-op → assertions on stats fail); existing tests PASS.++- [ ] **Step 3: Refactor + implement** in `src/claude/hooks.ts` — extract the bodies of the two existing branches verbatim into helpers, then dispatch:++```ts+async function handlePostEdit(input: any, dir: string): Promise<void> {+ const file: string | undefined = input?.tool_input?.file_path;+ if (!file || underGraft(dir, file)) return;+ patchStats(dir, { dirty: true, staleCount: checkStaleCount(dir), lastFile: basename(file) });+ const w = readWiring(dir);+ if (w) { const br = formatBlastRadius(w, file); if (br) emit('PostToolUse', br); }+}++function handleStop(dir: string): void {+ const syncRun = claudeScriptPath('sync-run.js');+ if (!existsSync(syncRun)) return;+ const stats = readStats(dir);+ if (stats?.dirty && acquireLock(dir)) {+ patchStats(dir, { syncing: true });+ const child = spawn(process.execPath, [syncRun, dir], { detached: true, stdio: 'ignore' });+ child.unref();+ }+}+```++And in `main`, replace the two branches and add the combined event:++```ts+ if (event === 'post-edit') { await handlePostEdit(input, dir); return; }+ if (event === 'stop') { handleStop(dir); return; }+ if (event === 'post-edit-sync') { await handlePostEdit(input, dir); handleStop(dir); return; }+```++The extracted helper bodies must be byte-identical to the current branch bodies (pure move). Keep the existing comments with the moved code.++- [ ] **Step 4: Run the hook tests, then the full suite**++Run: `node --import tsx --test test/claude-hooks.test.ts` → all pass (old + new).+Run: `node --import tsx --test test/*.test.ts` → all green.++- [ ] **Step 5: Commit**++```bash+git add src/claude/hooks.ts test/claude-hooks.test.ts+git commit -m "feat(hooks): post-edit-sync event — post-edit + background sync in one call"+```++---++### Task 2: Codex-family hooks installer (`src/hosts/codex-hooks.ts`)++**Files:**+- Create: `src/hosts/codex-hooks.ts`+- Test: `test/hosts-codex-hooks.test.ts`++**Interfaces:**+- Consumes: `hooksShim()` from `../claude/shim-template.js` (verify the export name in that file before importing).+- Produces:+ - `interface HookWrite { id: string; path: string; action: 'created' | 'updated' | 'unchanged' | 'skipped-unparseable' }`+ - `installCodexHooks(home: string): HookWrite[]` — no-op (`[]`) unless `<home>/.codex` exists. Otherwise two writes:+ 1. Shim: `<home>/.codex/hooks/graft/graft-hooks.cjs` (mode 0o755), content `hooksShim()` — owned file, content-compare for `unchanged`.+ 2. Config: `<home>/.codex/hooks.json` — ensure `hooks.PostToolUse` is an array; drop any entries whose JSON contains `graft-hooks.cjs`; append:+ ```json+ { "matcher": "Write|Edit|MultiEdit", "hooks": [{ "type": "command", "command": "node \"<abs shim path>\" post-edit-sync", "timeout": 10000 }] }+ ```+ Action `unchanged` when the resulting JSON equals the existing file's parsed JSON.++- [ ] **Step 1: Write the failing tests**++```ts+// test/hosts-codex-hooks.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { mkdtempSync, mkdirSync, readFileSync, writeFileSync, existsSync, statSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { installCodexHooks } from '../src/hosts/codex-hooks.js';++function fresh(): string { return mkdtempSync(join(tmpdir(), 'graft-cxhooks-')); }++test('no-op when the CLI home dir is absent', () => {+ assert.deepEqual(installCodexHooks(fresh()), []);+});++test('writes shim + hooks.json entry, idempotent on re-run', () => {+ const home = fresh();+ mkdirSync(join(home, '.codex'), { recursive: true });+ const w = installCodexHooks(home);+ assert.equal(w.length, 2);+ const shim = join(home, '.codex', 'hooks', 'graft', 'graft-hooks.cjs');+ assert.ok(existsSync(shim));+ assert.ok(statSync(shim).mode & 0o111, 'shim is executable');+ const cfg = JSON.parse(readFileSync(join(home, '.codex', 'hooks.json'), 'utf8'));+ const entries = cfg.hooks.PostToolUse;+ assert.equal(entries.length, 1);+ assert.equal(entries[0].matcher, 'Write|Edit|MultiEdit');+ assert.match(entries[0].hooks[0].command, /post-edit-sync/);+ const again = installCodexHooks(home);+ assert.deepEqual(again.map((x) => x.action), ['unchanged', 'unchanged']);+ assert.equal(JSON.parse(readFileSync(join(home, '.codex', 'hooks.json'), 'utf8')).hooks.PostToolUse.length, 1);+});++test('foreign hook entries are preserved; stale graft entries replaced', () => {+ const home = fresh();+ mkdirSync(join(home, '.codex'), { recursive: true });+ writeFileSync(join(home, '.codex', 'hooks.json'), JSON.stringify({+ hooks: { PostToolUse: [+ { matcher: 'Bash', hooks: [{ type: 'command', command: 'other-tool' }] },+ { matcher: 'Write', hooks: [{ type: 'command', command: 'node /old/graft-hooks.cjs post-edit' }] },+ ] },+ }));+ installCodexHooks(home);+ const entries = JSON.parse(readFileSync(join(home, '.codex', 'hooks.json'), 'utf8')).hooks.PostToolUse;+ assert.equal(entries.length, 2, 'foreign kept, stale graft replaced by fresh');+ assert.ok(entries.some((e: any) => e.hooks[0].command === 'other-tool'));+ assert.ok(entries.some((e: any) => /post-edit-sync/.test(JSON.stringify(e))));+ assert.ok(!JSON.stringify(entries).includes('/old/'));+});++test('unparseable hooks.json is never rewritten', () => {+ const home = fresh();+ mkdirSync(join(home, '.codex'), { recursive: true });+ writeFileSync(join(home, '.codex', 'hooks.json'), '{ nope');+ const w = installCodexHooks(home);+ assert.ok(w.some((x) => x.action === 'skipped-unparseable'));+ assert.equal(readFileSync(join(home, '.codex', 'hooks.json'), 'utf8'), '{ nope');+});+```++- [ ] **Step 2: Run to verify failure** — module not found.++- [ ] **Step 3: Implement**++```ts+// src/hosts/codex-hooks.ts+/**+ * Active-layer install for CLI agents that read user-level hooks.json with+ * PostToolUse semantics. Writes the shared hook shim and one PostToolUse+ * entry that runs post-edit + background sync after every file edit.+ */+import { readFileSync, writeFileSync, mkdirSync, existsSync, chmodSync, statSync } from 'node:fs';+import { dirname, join } from 'node:path';+import { hooksShim } from '../claude/shim-template.js';++export interface HookWrite {+ id: string;+ path: string;+ action: 'created' | 'updated' | 'unchanged' | 'skipped-unparseable';+}++function dirExists(p: string): boolean {+ try { return statSync(p).isDirectory(); } catch { return false; }+}++function writeOwned(id: string, path: string, content: string, mode?: number): HookWrite {+ const existed = existsSync(path);+ if (existed && readFileSync(path, 'utf8') === content) return { id, path, action: 'unchanged' };+ mkdirSync(dirname(path), { recursive: true });+ writeFileSync(path, content);+ if (mode !== undefined) chmodSync(path, mode);+ return { id, path, action: existed ? 'updated' : 'created' };+}++function isGraftEntry(entry: unknown): boolean {+ return JSON.stringify(entry).includes('graft-hooks.cjs');+}++export function installCodexHooks(home: string): HookWrite[] {+ const base = join(home, '.codex');+ if (!dirExists(base)) return [];++ const shimPath = join(base, 'hooks', 'graft', 'graft-hooks.cjs');+ const shimWrite = writeOwned('codex-hook-shim', shimPath, hooksShim(), 0o755);++ const cfgPath = join(base, 'hooks.json');+ let root: Record<string, any> = {};+ const existed = existsSync(cfgPath);+ if (existed) {+ try { root = JSON.parse(readFileSync(cfgPath, 'utf8')); } catch {+ return [shimWrite, { id: 'codex-hooks', path: cfgPath, action: 'skipped-unparseable' }];+ }+ }+ if (typeof root !== 'object' || root === null || Array.isArray(root)) {+ return [shimWrite, { id: 'codex-hooks', path: cfgPath, action: 'skipped-unparseable' }];+ }+ const before = JSON.stringify(root);+ const hooks = (root.hooks ??= {});+ const prior: unknown[] = Array.isArray(hooks.PostToolUse) ? hooks.PostToolUse : [];+ hooks.PostToolUse = [+ ...prior.filter((e) => !isGraftEntry(e)),+ {+ matcher: 'Write|Edit|MultiEdit',+ hooks: [{ type: 'command', command: `node "${shimPath}" post-edit-sync`, timeout: 10000 }],+ },+ ];+ if (JSON.stringify(root) === before) return [shimWrite, { id: 'codex-hooks', path: cfgPath, action: 'unchanged' }];+ writeFileSync(cfgPath, `${JSON.stringify(root, null, 2)}\n`);+ return [shimWrite, { id: 'codex-hooks', path: cfgPath, action: existed ? 'updated' : 'created' }];+}+```++Note: if `root.hooks` exists but is not an object, treat as `skipped-unparseable` too (add the same shape guard as for `root`).++- [ ] **Step 4: Run to verify pass** — `node --import tsx --test test/hosts-codex-hooks.test.ts` (4 tests).++- [ ] **Step 5: Commit**++```bash+git add src/hosts/codex-hooks.ts test/hosts-codex-hooks.test.ts+git commit -m "feat(hosts): hooks.json installer — post-edit blast radius + auto-sync for CLI agents"+```++---++### Task 3: Init wiring + README++**Files:**+- Modify: `src/hosts/init.ts`, `src/cli.ts`, `README.md`+- Test: extend `test/hosts-init.test.ts`++**Interfaces:**+- Consumes: `installCodexHooks`, `HookWrite` (Task 2).+- Produces: `runHostsInit(repo, { agents?, all?, home?, mcp?, hooks?: boolean })` → result gains `hooks: HookWrite[]`. Hooks install runs only when the selection includes the `agents` id (same gating philosophy as MCP: the installer itself further gates on `<home>/.codex`). CLI: `--no-hooks`.++- [ ] **Step 1: Failing tests** (append to `test/hosts-init.test.ts`)++```ts+test('runHostsInit installs hooks for the agents id when the CLI home exists', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(home, '.codex'), { recursive: true });+ const r = runHostsInit(repo, { home, agents: ['agents'] });+ assert.equal(r.hooks.length, 2);+ assert.ok(existsSync(join(home, '.codex', 'hooks', 'graft', 'graft-hooks.cjs')));+});++test('hooks: false skips hook installation', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(home, '.codex'), { recursive: true });+ const r = runHostsInit(repo, { home, agents: ['agents'], hooks: false });+ assert.deepEqual(r.hooks, []);+ assert.ok(!existsSync(join(home, '.codex', 'hooks.json')));+});+```++- [ ] **Step 2: Verify failure** — `r.hooks` undefined.++- [ ] **Step 3: Implement.** In `src/hosts/init.ts`: import `installCodexHooks`, `HookWrite`; add `hooks: HookWrite[]` to the result; after the mcp step:++```ts+const hooks =+ opts.hooks === false || !selected.some((h) => h.id === 'agents')+ ? []+ : installCodexHooks(home);+return { written, skipped, unknown, mcp, hooks };+```++In `src/cli.ts`: `.option("--no-hooks", "skip hook installation for other agents")`, pass `hooks: opts.hooks`, print `for (const h of r.hooks) console.error(\`✓ hook ${h.id}: ${h.path} (${h.action})\`);`.++In `README.md`, add one sentence to the "## Agent integration" intro paragraph (after the MCP subsection reference): "Where a CLI agent supports user-level `hooks.json`, `init` also installs Graft's post-edit hook — blast-radius warnings and automatic `$0` graph re-sync after edits (skip with `--no-hooks`)."++- [ ] **Step 4: Full suite** — `node --import tsx --test test/*.test.ts` all green.++- [ ] **Step 5: Commit**++```bash+git add src/hosts/init.ts src/cli.ts test/hosts-init.test.ts README.md+git commit -m "feat(init): install post-edit hooks for CLI agents (--no-hooks to skip)"+```++---++## Out of scope++- Hooks for hosts whose event/config schema we could not verify from at least two independent sources. They keep the instruction-file + MCP layers.+- Prompt-time retrieval injection outside Claude Code (no equivalent event exists in the verified hooks.json schema).++## Self-Review++- Coverage: runtime event (T1), installer (T2), wiring/docs (T3). ✓+- Placeholders: T1 Step 1 delegates fixture specifics to the existing test file by design (the plan cannot know private helper names); its assertions are fully specified. Everything else is complete code. ✓+- Type consistency: `HookWrite` defined T2, consumed T3; `runHostsInit` extension additive. ✓diff --git a/docs/superpowers/plans/2026-07-21-multi-host-init.md b/docs/superpowers/plans/2026-07-21-multi-host-init.mdnew file mode 100644index 00000000..347c8376--- /dev/null+++ b/docs/superpowers/plans/2026-07-21-multi-host-init.md@@ -0,0 +1,811 @@+# Multi-Host Init (Phase 1: Instruction Files) Implementation Plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.++**Goal:** `graft init` wires Graft into every AI coding agent present on the machine — not just Claude Code — by writing each host's native instruction file with a marker-fenced Graft section.++**Architecture:** A new `src/hosts/` module holds (1) a marker-fenced section upsert utility, (2) one canonical instruction body rendered into three formats (markdown `##` section, Cursor `.mdc` rule, Kiro steering file), and (3) a host registry mapping host id → detection probe → target file → renderer. `graft init` keeps the existing Claude Code path (`src/claude/init.ts`, untouched) and additionally runs the registry for every detected host. Claude Code remains the premium experience (hooks + statusline + skill); other hosts get the passive instruction layer in this phase. MCP server (Phase 2) and per-host hooks (Phase 3) are separate plans.++**Tech Stack:** TypeScript ESM (Node ≥20), `node:test` + tsx test runner, commander CLI. No new dependencies.++## Global Constraints++- No new npm dependencies.+- Node ≥ 20, `"type": "module"`, imports use `.js` extensions (compiled ESM).+- Files under 500 lines.+- All writes idempotent: re-running `graft init` must converge (replace own section, never duplicate, never clobber user content outside the markers).+- Never overwrite a user file wholesale when it exists — only upsert the fenced section (exception: files wholly owned by graft, i.e. `.cursor/rules/graft.mdc`, `.kiro/steering/graft.md`, `.windsurf/rules/graft.md`).+- Marker fence: `<!-- graft:start -->` / `<!-- graft:end -->`, each alone on its line.+- Do not reference third-party tools by name anywhere in code, comments, docs, or commit messages — describe mechanisms generically.+- Detection probes must accept an injectable home directory so tests never depend on the real `$HOME`.+- Tests: `node --import tsx --test test/<file>.test.ts`, temp dirs via `mkdtempSync(join(tmpdir(), ...))`, style matching `test/claude-init.test.ts`.++---++## File Structure++- Create: `src/hosts/sections.ts` — marker-fenced upsert (pure string + fs helpers).+- Create: `src/hosts/instructions.ts` — canonical body + per-format renderers.+- Create: `src/hosts/registry.ts` — host definitions + detection.+- Create: `src/hosts/init.ts` — orchestrator `runHostsInit(dir, opts)`.+- Modify: `src/cli.ts` (init command, lines ~187-203) — add `--agents`, `--all-agents`, `--no-agents`, `--list-agents`; call orchestrator.+- Create: `test/hosts-sections.test.ts`, `test/hosts-instructions.test.ts`, `test/hosts-registry.test.ts`, `test/hosts-init.test.ts`.+- Modify: `README.md` — "Claude Code integration" section becomes "Agent integration".++---++### Task 1: Marker-fenced section upsert (`src/hosts/sections.ts`)++**Files:**+- Create: `src/hosts/sections.ts`+- Test: `test/hosts-sections.test.ts`++**Interfaces:**+- Produces: `upsertSection(filePath: string, body: string): { action: 'created' | 'appended' | 'replaced' | 'unchanged' }` — ensures `filePath` contains exactly one `<!-- graft:start -->\n<body>\n<!-- graft:end -->` block; creates the file (with trailing newline) if missing, appends the block (separated by one blank line) if the file exists without markers, replaces only the fenced region if markers exist, and reports `unchanged` when the fenced body already matches.+- Produces: `fencedBlock(body: string): string` — the exact block string, exported for tests and renderers.++- [ ] **Step 1: Write the failing tests**++```ts+// test/hosts-sections.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { mkdtempSync, readFileSync, writeFileSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { upsertSection, fencedBlock } from '../src/hosts/sections.js';++function fresh(): string { return mkdtempSync(join(tmpdir(), 'graft-sections-')); }++test('creates the file with a fenced block when missing', () => {+ const f = join(fresh(), 'AGENTS.md');+ const r = upsertSection(f, '## Graft\nuse graft ask');+ assert.equal(r.action, 'created');+ const text = readFileSync(f, 'utf8');+ assert.ok(text.includes('<!-- graft:start -->'));+ assert.ok(text.includes('use graft ask'));+ assert.ok(text.endsWith('\n'));+});++test('appends after existing content, separated by a blank line', () => {+ const f = join(fresh(), 'AGENTS.md');+ writeFileSync(f, '# My rules\n\nBe nice.\n');+ const r = upsertSection(f, 'graft body');+ assert.equal(r.action, 'appended');+ const text = readFileSync(f, 'utf8');+ assert.ok(text.startsWith('# My rules\n\nBe nice.\n'));+ assert.match(text, /Be nice\.\n\n<!-- graft:start -->/);+});++test('replaces only the fenced region on re-run with new body', () => {+ const f = join(fresh(), 'AGENTS.md');+ writeFileSync(f, `above\n\n${fencedBlock('old body')}\nbelow\n`);+ const r = upsertSection(f, 'new body');+ assert.equal(r.action, 'replaced');+ const text = readFileSync(f, 'utf8');+ assert.ok(text.includes('above'));+ assert.ok(text.includes('below'));+ assert.ok(text.includes('new body'));+ assert.ok(!text.includes('old body'));+ assert.equal(text.match(/graft:start/g)!.length, 1, 'exactly one block');+});++test('reports unchanged when the fenced body already matches', () => {+ const f = join(fresh(), 'AGENTS.md');+ upsertSection(f, 'same body');+ const r = upsertSection(f, 'same body');+ assert.equal(r.action, 'unchanged');+});++test('ignores inline marker mentions (marker must be alone on its line)', () => {+ const f = join(fresh(), 'AGENTS.md');+ writeFileSync(f, 'talking about `<!-- graft:start -->` in prose\n');+ const r = upsertSection(f, 'body');+ assert.equal(r.action, 'appended');+ assert.equal(readFileSync(f, 'utf8').match(/^<!-- graft:start -->$/gm)!.length, 1);+});+```++- [ ] **Step 2: Run tests to verify they fail**++Run: `node --import tsx --test test/hosts-sections.test.ts`+Expected: FAIL — `Cannot find module '../src/hosts/sections.js'`++- [ ] **Step 3: Implement**++```ts+// src/hosts/sections.ts+/**+ * Marker-fenced section upsert. Graft owns exactly the region between the+ * markers; everything else in the file belongs to the user and is preserved.+ */+import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'node:fs';+import { dirname } from 'node:path';++export const START = '<!-- graft:start -->';+export const END = '<!-- graft:end -->';++export type UpsertAction = 'created' | 'appended' | 'replaced' | 'unchanged';++export function fencedBlock(body: string): string {+ return `${START}\n${body.replace(/\s+$/, '')}\n${END}`;+}++/** Index of a marker that sits alone on its own line, or -1. */+function markerLineIndex(lines: string[], marker: string, from = 0): number {+ for (let i = from; i < lines.length; i++) {+ if (lines[i].trim() === marker) return i;+ }+ return -1;+}++export function upsertSection(filePath: string, body: string): { action: UpsertAction } {+ const block = fencedBlock(body);+ if (!existsSync(filePath)) {+ mkdirSync(dirname(filePath), { recursive: true });+ writeFileSync(filePath, `${block}\n`);+ return { action: 'created' };+ }+ const text = readFileSync(filePath, 'utf8');+ const lines = text.split('\n');+ const s = markerLineIndex(lines, START);+ const e = s === -1 ? -1 : markerLineIndex(lines, END, s + 1);+ if (s !== -1 && e !== -1) {+ const current = lines.slice(s, e + 1).join('\n');+ if (current === block) return { action: 'unchanged' };+ const next = [...lines.slice(0, s), ...block.split('\n'), ...lines.slice(e + 1)];+ writeFileSync(filePath, next.join('\n'));+ return { action: 'replaced' };+ }+ const sep = text.endsWith('\n\n') ? '' : text.endsWith('\n') ? '\n' : '\n\n';+ writeFileSync(filePath, `${text}${sep}${block}\n`);+ return { action: 'appended' };+}+```++- [ ] **Step 4: Run tests to verify they pass**++Run: `node --import tsx --test test/hosts-sections.test.ts`+Expected: PASS (5 tests)++- [ ] **Step 5: Commit**++```bash+git add src/hosts/sections.ts test/hosts-sections.test.ts+git commit -m "feat(hosts): marker-fenced section upsert for agent instruction files"+```++---++### Task 2: Canonical instruction body + renderers (`src/hosts/instructions.ts`)++**Files:**+- Create: `src/hosts/instructions.ts`+- Test: `test/hosts-instructions.test.ts`++**Interfaces:**+- Consumes: nothing from other tasks (pure strings).+- Produces:+ - `instructionBody(): string` — the canonical markdown body (starts with `## Graft — repo context graph`).+ - `cursorRule(): string` — full `.mdc` file content: YAML frontmatter (`description`, `alwaysApply: true`) + body.+ - `kiroSteering(): string` — full steering file: frontmatter (`inclusion: always`) + body.+ - `windsurfRule(): string` — full rules file (plain markdown, no frontmatter) + body.++- [ ] **Step 1: Write the failing tests**++```ts+// test/hosts-instructions.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { instructionBody, cursorRule, kiroSteering, windsurfRule } from '../src/hosts/instructions.js';++test('canonical body names the three essentials', () => {+ const b = instructionBody();+ assert.match(b, /^## Graft — repo context graph/m);+ assert.match(b, /graft ask "/);+ assert.match(b, /graft\/INDEX\.md/);+ assert.match(b, /graft build/);+ assert.ok(!/\bhook|statusline\b/i.test(b), 'no host-specific machinery in the shared body');+});++test('cursor rule has alwaysApply frontmatter and the body', () => {+ const r = cursorRule();+ assert.match(r, /^---\ndescription: .+\nalwaysApply: true\n---\n/);+ assert.ok(r.includes(instructionBody()));+});++test('kiro steering has inclusion: always frontmatter and the body', () => {+ const r = kiroSteering();+ assert.match(r, /^---\ninclusion: always\n---\n/);+ assert.ok(r.includes(instructionBody()));+});++test('windsurf rule is the plain body', () => {+ assert.ok(windsurfRule().includes(instructionBody()));+});+```++- [ ] **Step 2: Run tests to verify they fail**++Run: `node --import tsx --test test/hosts-instructions.test.ts`+Expected: FAIL — `Cannot find module '../src/hosts/instructions.js'`++- [ ] **Step 3: Implement**++```ts+// src/hosts/instructions.ts+/**+ * The one canonical Graft instruction block, rendered into each host's+ * native format. Content changes happen HERE only; renderers just wrap it.+ */++export function instructionBody(): string {+ return `## Graft — repo context graph++This repo is indexed in \`graft/\`: small linked markdown nodes that explain each+system and carry exact file:line spans, kept in sync with the code through git.++For ANY task here — understanding how something works, finding where code lives,+or scoping a change — get context from the graph before grepping or opening+source files:++- Run \`graft ask "<your question>" --source\` → ranked nodes with the relevant+ code spans inlined. The node usually IS the answer; stop there.+- Or browse: \`graft/INDEX.md\` lists every node; follow the links.++Only open source files when a node genuinely lacks a needed detail, and then at+the exact file:line the node points to — never re-read whole files.++After big code changes, refresh the graph with \`graft build\` (deterministic,+no API key, $0).`;+}++export function cursorRule(): string {+ return `---+description: Use the Graft context graph in graft/ before exploring source+alwaysApply: true+---+${instructionBody()}+`;+}++export function kiroSteering(): string {+ return `---+inclusion: always+---+${instructionBody()}+`;+}++export function windsurfRule(): string {+ return `${instructionBody()}+`;+}+```++- [ ] **Step 4: Run tests to verify they pass**++Run: `node --import tsx --test test/hosts-instructions.test.ts`+Expected: PASS (4 tests)++- [ ] **Step 5: Commit**++```bash+git add src/hosts/instructions.ts test/hosts-instructions.test.ts+git commit -m "feat(hosts): canonical instruction body with per-host renderers"+```++---++### Task 3: Host registry + detection (`src/hosts/registry.ts`)++**Files:**+- Create: `src/hosts/registry.ts`+- Test: `test/hosts-registry.test.ts`++**Interfaces:**+- Consumes: `instructionBody`, `cursorRule`, `kiroSteering`, `windsurfRule` from Task 2; `upsertSection` semantics from Task 1 (via the `kind` field consumed in Task 4).+- Produces:+ - `interface HostTarget { id: string; name: string; kind: 'section' | 'owned'; relPath: string; content(): string; detect(probe: DetectProbe): boolean }` — `kind: 'section'` upserts the fenced block into a shared file; `kind: 'owned'` writes the whole file (graft owns it).+ - `interface DetectProbe { home: string; repo: string; dirExists(p: string): boolean }`+ - `HOSTS: HostTarget[]` — ids: `agents`, `cursor`, `gemini`, `copilot`, `kiro`, `windsurf`.+ - `detectHosts(probe: DetectProbe): HostTarget[]` — hosts whose `detect` returns true.+ - `hostIds(): string[]` — all valid ids (for CLI validation/help).++- [ ] **Step 1: Write the failing tests**++```ts+// test/hosts-registry.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { mkdtempSync, mkdirSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { HOSTS, detectHosts, hostIds, type DetectProbe } from '../src/hosts/registry.js';+import { existsSync, statSync } from 'node:fs';++function probeFor(home: string, repo: string): DetectProbe {+ return {+ home, repo,+ dirExists: (p) => { try { return statSync(p).isDirectory(); } catch { return false; } },+ };+}+function fresh(): string { return mkdtempSync(join(tmpdir(), 'graft-registry-')); }++test('registry exposes the six phase-1 hosts', () => {+ assert.deepEqual(hostIds().sort(), ['agents', 'copilot', 'cursor', 'gemini', 'kiro', 'windsurf']);+ for (const h of HOSTS) {+ assert.ok(h.relPath.length > 0);+ assert.ok(h.content().length > 0);+ }+});++test('nothing detected on a bare machine and bare repo', () => {+ assert.deepEqual(detectHosts(probeFor(fresh(), fresh())), []);+});++test('home config dirs light up their hosts', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(home, '.cursor'));+ mkdirSync(join(home, '.gemini'));+ mkdirSync(join(home, '.codex'));+ const ids = detectHosts(probeFor(home, repo)).map((h) => h.id).sort();+ assert.deepEqual(ids, ['agents', 'cursor', 'gemini']);+});++test('repo-local markers also light up hosts', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(repo, '.github'));+ mkdirSync(join(repo, '.kiro'));+ const ids = detectHosts(probeFor(home, repo)).map((h) => h.id).sort();+ assert.deepEqual(ids, ['copilot', 'kiro']);+});+```++- [ ] **Step 2: Run tests to verify they fail**++Run: `node --import tsx --test test/hosts-registry.test.ts`+Expected: FAIL — `Cannot find module '../src/hosts/registry.js'`++- [ ] **Step 3: Implement**++```ts+// src/hosts/registry.ts+/**+ * Registry of AI coding hosts Graft can write instructions for.+ * Adding a host = adding one entry here (plus a renderer if it needs+ * a new file format).+ *+ * kind: 'section' → upsert the fenced block into a shared file the user owns.+ * kind: 'owned' → graft owns the whole file; overwrite it each run.+ */+import { join } from 'node:path';+import { instructionBody, cursorRule, kiroSteering, windsurfRule } from './instructions.js';++export interface DetectProbe {+ home: string;+ repo: string;+ dirExists(path: string): boolean;+}++export interface HostTarget {+ id: string;+ name: string;+ kind: 'section' | 'owned';+ /** Target file, relative to the repo root. */+ relPath: string;+ content(): string;+ detect(probe: DetectProbe): boolean;+}++export const HOSTS: HostTarget[] = [+ {+ id: 'agents',+ name: 'AGENTS.md hosts (Codex-style CLIs, editors that read AGENTS.md)',+ kind: 'section',+ relPath: 'AGENTS.md',+ content: instructionBody,+ detect: (p) =>+ p.dirExists(join(p.home, '.codex')) ||+ p.dirExists(join(p.home, '.config', 'opencode')) ||+ p.dirExists(join(p.home, '.config', 'agents')),+ },+ {+ id: 'cursor',+ name: 'Cursor',+ kind: 'owned',+ relPath: join('.cursor', 'rules', 'graft.mdc'),+ content: cursorRule,+ detect: (p) => p.dirExists(join(p.home, '.cursor')) || p.dirExists(join(p.repo, '.cursor')),+ },+ {+ id: 'gemini',+ name: 'Gemini CLI',+ kind: 'section',+ relPath: 'GEMINI.md',+ content: instructionBody,+ detect: (p) => p.dirExists(join(p.home, '.gemini')),+ },+ {+ id: 'copilot',+ name: 'GitHub Copilot',+ kind: 'section',+ relPath: join('.github', 'copilot-instructions.md'),+ content: instructionBody,+ detect: (p) => p.dirExists(join(p.repo, '.github')),+ },+ {+ id: 'kiro',+ name: 'Kiro',+ kind: 'owned',+ relPath: join('.kiro', 'steering', 'graft.md'),+ content: kiroSteering,+ detect: (p) => p.dirExists(join(p.home, '.kiro')) || p.dirExists(join(p.repo, '.kiro')),+ },+ {+ id: 'windsurf',+ name: 'Windsurf',+ kind: 'owned',+ relPath: join('.windsurf', 'rules', 'graft.md'),+ content: windsurfRule,+ detect: (p) => p.dirExists(join(p.home, '.codeium', 'windsurf')) || p.dirExists(join(p.repo, '.windsurf')),+ },+];++export function hostIds(): string[] {+ return HOSTS.map((h) => h.id);+}++export function detectHosts(probe: DetectProbe): HostTarget[] {+ return HOSTS.filter((h) => h.detect(probe));+}+```++- [ ] **Step 4: Run tests to verify they pass**++Run: `node --import tsx --test test/hosts-registry.test.ts`+Expected: PASS (4 tests)++- [ ] **Step 5: Commit**++```bash+git add src/hosts/registry.ts test/hosts-registry.test.ts+git commit -m "feat(hosts): host registry with home/repo detection probes"+```++---++### Task 4: Orchestrator (`src/hosts/init.ts`)++**Files:**+- Create: `src/hosts/init.ts`+- Test: `test/hosts-init.test.ts`++**Interfaces:**+- Consumes: `HOSTS`, `detectHosts`, `hostIds`, `HostTarget`, `DetectProbe` (Task 3); `upsertSection` (Task 1).+- Produces: `runHostsInit(repo: string, opts?: { agents?: string[]; all?: boolean; home?: string }): { written: { id: string; path: string; action: string }[]; skipped: string[]; unknown: string[] }`+ - `opts.agents` — explicit host ids (skips detection); `opts.all` — every registry host; default — detected hosts only.+ - `unknown` — requested ids not in the registry (caller reports and exits non-zero).+ - `home` defaults to `os.homedir()`; injectable for tests.++- [ ] **Step 1: Write the failing tests**++```ts+// test/hosts-init.test.ts+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { mkdtempSync, mkdirSync, readFileSync, existsSync } from 'node:fs';+import { tmpdir } from 'node:os';+import { join } from 'node:path';+import { runHostsInit } from '../src/hosts/init.js';++function fresh(): string { return mkdtempSync(join(tmpdir(), 'graft-hostsinit-')); }++test('writes only detected hosts by default', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(home, '.cursor'));+ const r = runHostsInit(repo, { home });+ assert.deepEqual(r.written.map((w) => w.id), ['cursor']);+ const mdc = readFileSync(join(repo, '.cursor', 'rules', 'graft.mdc'), 'utf8');+ assert.match(mdc, /alwaysApply: true/);+ assert.ok(!existsSync(join(repo, 'AGENTS.md')));+});++test('explicit agents list overrides detection and flags unknown ids', () => {+ const home = fresh(); const repo = fresh();+ const r = runHostsInit(repo, { home, agents: ['gemini', 'nope'] });+ assert.deepEqual(r.written.map((w) => w.id), ['gemini']);+ assert.deepEqual(r.unknown, ['nope']);+ assert.ok(readFileSync(join(repo, 'GEMINI.md'), 'utf8').includes('graft ask'));+});++test('all writes every host and re-run converges (idempotent)', () => {+ const home = fresh(); const repo = fresh();+ const first = runHostsInit(repo, { home, all: true });+ assert.equal(first.written.length, 6);+ const second = runHostsInit(repo, { home, all: true });+ assert.ok(second.written.every((w) => w.action === 'unchanged'));+ const agents = readFileSync(join(repo, 'AGENTS.md'), 'utf8');+ assert.equal(agents.match(/graft:start/g)!.length, 1);+});++test('preserves user content around the fenced section', () => {+ const home = fresh(); const repo = fresh();+ mkdirSync(join(repo, '.github'));+ const target = join(repo, '.github', 'copilot-instructions.md');+ mkdirSync(join(repo, '.github'), { recursive: true });+ require('node:fs').writeFileSync(target, '# House rules\n');+ const r = runHostsInit(repo, { home });+ assert.deepEqual(r.written.map((w) => w.id), ['copilot']);+ const text = readFileSync(target, 'utf8');+ assert.ok(text.startsWith('# House rules'));+ assert.ok(text.includes('graft ask'));+});+```++Note: replace the `require('node:fs')` line with a top-level `writeFileSync` import — shown here inline for clarity of what the step does; the committed test imports it at the top.++- [ ] **Step 2: Run tests to verify they fail**++Run: `node --import tsx --test test/hosts-init.test.ts`+Expected: FAIL — `Cannot find module '../src/hosts/init.js'`++- [ ] **Step 3: Implement**++```ts+// src/hosts/init.ts+/**+ * Multi-host init: write each selected host's instruction file.+ * Selection = explicit ids > all > detected. Claude Code is handled+ * separately by src/claude/init.ts (hooks + statusline + skill).+ */+import { statSync, writeFileSync, readFileSync, mkdirSync, existsSync } from 'node:fs';+import { dirname, join } from 'node:path';+import { homedir } from 'node:os';+import { HOSTS, detectHosts, type DetectProbe, type HostTarget } from './registry.js';+import { upsertSection } from './sections.js';++export interface HostsInitResult {+ written: { id: string; path: string; action: string }[];+ skipped: string[];+ unknown: string[];+}++function probeFor(home: string, repo: string): DetectProbe {+ return {+ home, repo,+ dirExists: (p) => { try { return statSync(p).isDirectory(); } catch { return false; } },+ };+}++function writeOwned(path: string, content: string): string {+ if (existsSync(path) && readFileSync(path, 'utf8') === content) return 'unchanged';+ mkdirSync(dirname(path), { recursive: true });+ const existed = existsSync(path);+ writeFileSync(path, content);+ return existed ? 'replaced' : 'created';+}++export function runHostsInit(+ repo: string,+ opts: { agents?: string[]; all?: boolean; home?: string } = {},+): HostsInitResult {+ const home = opts.home ?? homedir();+ const probe = probeFor(home, repo);++ let selected: HostTarget[];+ let unknown: string[] = [];+ if (opts.agents?.length) {+ const byId = new Map(HOSTS.map((h) => [h.id, h]));+ selected = opts.agents.flatMap((id) => byId.get(id) ?? []);+ unknown = opts.agents.filter((id) => !byId.has(id));+ } else if (opts.all) {+ selected = HOSTS;+ } else {+ selected = detectHosts(probe);+ }++ const written: HostsInitResult['written'] = [];+ for (const host of selected) {+ const path = join(repo, host.relPath);+ const action =+ host.kind === 'owned'+ ? writeOwned(path, host.content())+ : upsertSection(path, host.content()).action;+ written.push({ id: host.id, path, action });+ }+ const skipped = HOSTS.filter((h) => !selected.includes(h)).map((h) => h.id);+ return { written, skipped, unknown };+}+```++- [ ] **Step 4: Run tests to verify they pass**++Run: `node --import tsx --test test/hosts-init.test.ts`+Expected: PASS (4 tests)++- [ ] **Step 5: Commit**++```bash+git add src/hosts/init.ts test/hosts-init.test.ts+git commit -m "feat(hosts): multi-host init orchestrator (detect/explicit/all selection)"+```++---++### Task 5: CLI wiring (`src/cli.ts`)++**Files:**+- Modify: `src/cli.ts` — the `init` command block (currently lines ~187-203).+- Test: extend `test/hosts-init.test.ts` with one CLI smoke test.++**Interfaces:**+- Consumes: `runHostsInit`, `HostsInitResult` (Task 4); `hostIds` (Task 3); existing `runInit` from `./claude/init.js` (unchanged).+- Produces: `graft init [dir] [--no-build] [--agents <ids...>] [--all-agents] [--no-agents] [--list-agents]`.++- [ ] **Step 1: Write the failing CLI smoke test** (append to `test/hosts-init.test.ts`)++```ts+import { execFileSync } from 'node:child_process';++test('CLI: graft init --agents gemini writes GEMINI.md and exits 0', () => {+ const repo = fresh();+ execFileSync(process.execPath, ['--import', 'tsx', 'src/cli.ts', 'init', repo, '--no-build', '--agents', 'gemini'], {+ encoding: 'utf8',+ });+ assert.ok(readFileSync(join(repo, 'GEMINI.md'), 'utf8').includes('graft ask'));+});++test('CLI: unknown agent id exits non-zero', () => {+ const repo = fresh();+ assert.throws(() =>+ execFileSync(process.execPath, ['--import', 'tsx', 'src/cli.ts', 'init', repo, '--no-build', '--agents', 'nope'], {+ encoding: 'utf8', stdio: 'pipe',+ }),+ );+});+```++- [ ] **Step 2: Run to verify failure**++Run: `node --import tsx --test test/hosts-init.test.ts`+Expected: FAIL — commander rejects the unknown `--agents` option.++- [ ] **Step 3: Rewrite the init command in `src/cli.ts`**++Replace the existing `program.command("init")…` block with:++```ts+program+ .command("init")+ .description("Wire Graft into the AI coding agents used with this repo (instruction files; full hooks + statusline for Claude Code)")+ .argument("[dir]", "target repo directory", ".")+ .option("--no-build", "skip building the graph (wire files only)")+ .option("--agents <ids...>", `only these agents (${hostIds().join(", ")}, claude)`)+ .option("--all-agents", "write instruction files for every known agent, detected or not")+ .option("--no-agents", "Claude Code wiring only; skip other agents")+ .option("--list-agents", "list known agent ids and exit")+ .action((dir: string, opts: { build?: boolean; agents?: string[]; allAgents?: boolean; listAgents?: boolean }) => {+ if (opts.listAgents) {+ for (const id of [...hostIds(), "claude"]) console.log(id);+ return;+ }+ const repo = resolve(dir);+ const explicit = Array.isArray(opts.agents) ? opts.agents : undefined;+ const wantClaude = !explicit || explicit.includes("claude");++ if (wantClaude) {+ const cliPath = fileURLToPath(import.meta.url);+ const res = runInit(repo, { build: opts.build, cliPath });+ console.error(`✓ wrote ${res.settingsPath}`);+ for (const s of res.shims) console.error(`✓ wrote ${s}`);+ console.error(`✓ wrote ${res.skill}`);+ console.error(res.built ? "✓ built the graph (graft build)" : "· skipped graph build");+ for (const w of res.warnings) console.error(`⚠ ${w}`);+ }++ if (opts.agents !== undefined || explicit || opts.allAgents !== undefined) {+ // fallthrough — selection handled below; commander sets opts.agents=false for --no-agents+ }+ const skipOthers = (opts as { agents?: unknown }).agents === false;+ if (!skipOthers) {+ const r = runHostsInit(repo, {+ agents: explicit?.filter((id) => id !== "claude"),+ all: opts.allAgents,+ });+ for (const w of r.written) console.error(`✓ ${w.id}: ${w.path} (${w.action})`);+ if (!explicit && !opts.allAgents && r.written.length === 0)+ console.error("· no other agents detected (see --list-agents / --all-agents)");+ if (r.unknown.length) {+ console.error(`✗ unknown agent id(s): ${r.unknown.join(", ")} — valid: ${[...hostIds(), "claude"].join(", ")}`);+ process.exit(1);+ }+ }+ console.error("\nDone. Claude Code gets live hooks + statusline; other agents read their instruction files.");+ console.error("For LLM summaries: set OPENROUTER_API_KEY and run `graft build --deep`.");+ });+```++And add the imports at the top of `src/cli.ts` next to the existing `runInit` import:++```ts+import { runHostsInit } from "./hosts/init.js";+import { hostIds } from "./hosts/registry.js";+```++Note on `--no-agents`: commander maps it to `opts.agents === false`; the explicit-list variant sets an array. The `skipOthers` check above handles both without a separate flag name.++- [ ] **Step 4: Run the full suite**++Run: `node --import tsx --test test/*.test.ts`+Expected: all tests PASS (existing claude-init tests unchanged and green).++- [ ] **Step 5: Manual verification**++```bash+cd "$(mktemp -d)" && git init -q . && echo 'export const x = 1;' > a.ts+node --import tsx "/Users/shrishdwivedi/Documents/Context graphs/context-graph-engine/src/cli.ts" init . --no-build --all-agents+cat AGENTS.md GEMINI.md .cursor/rules/graft.mdc | head -30+```+Expected: all files exist, each carries the Graft block exactly once; re-running prints `(unchanged)` for every host.++- [ ] **Step 6: Commit**++```bash+git add src/cli.ts test/hosts-init.test.ts+git commit -m "feat(cli): graft init wires all detected agents, not just Claude Code"+```++---++### Task 6: README update++**Files:**+- Modify: `README.md` — retitle the "Claude Code integration" section to "Agent integration" and document the new flags.++- [ ] **Step 1: Update the section**++Keep the existing Claude Code description (statusline, auto-sync, context on tap) as a subsection, and above it add:++```markdown+## Agent integration++One command wires Graft into the coding agents you use:++```bash+npx @nanonets/graft init+# detects your agents and writes each one's native instruction file;+# Claude Code additionally gets the live statusline + hooks below+```++`init` auto-detects which agents are present (via their config directories) and+writes a marker-fenced Graft section into each one's instruction file —+`AGENTS.md`, `GEMINI.md`, `.cursor/rules/`, `.github/copilot-instructions.md`,+`.kiro/steering/`, `.windsurf/rules/`. Re-running updates only the fenced+section and never touches your own content. Flags: `--agents <ids...>` to pick,+`--all-agents` for everything, `--no-agents` for Claude Code only,+`--list-agents` to see ids.+```++- [ ] **Step 2: Verify the markdown renders** (view the diff; no code to run)++- [ ] **Step 3: Commit**++```bash+git add README.md+git commit -m "docs: graft init now integrates all detected coding agents"+```++---++## Out of scope (follow-up plans)++- **Phase 2 — `graft mcp`:** stdio MCP server exposing `ask` / blast-radius / `check`, plus per-host server registration (JSON/TOML config merges, host CLI registration where available).+- **Phase 3 — active hooks for non-Claude hosts:** pre-tool-use guards and post-edit sync for hosts whose hook systems support it.+- Interactive host picker (needs a prompt dependency — revisit with Phase 2).++## Self-Review++- Spec coverage: registry (T3), instruction files for the six host families (T2/T4), detection (T3), CLI flags incl. escape hatches (T5), idempotency (T1/T4 tests), docs (T6). Claude Code path untouched — verified by running the existing suite in T5 Step 4. ✓+- Placeholders: none — every step has complete code or an exact command. ✓+- Type consistency: `HostTarget`/`DetectProbe` defined in T3 and consumed with identical shapes in T4; `upsertSection` return `{action}` used consistently. ✓diff --git a/docs/superpowers/plans/2026-07-22-ask-warm-load.md b/docs/superpowers/plans/2026-07-22-ask-warm-load.mdnew file mode 100644index 00000000..31bd10e2--- /dev/null+++ b/docs/superpowers/plans/2026-07-22-ask-warm-load.md@@ -0,0 +1,88 @@+# Ask Warm Load & Slim Wiring Implementation Plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.++**Goal:** Cut the redundant per-call load cost that dominates `ask` latency at scale: the MCP server stops re-parsing the graph on every tool call (warm ~0.3s queries), and `wiring.json` sheds its `body_text` payload (56MB → ~20MB on a 32k-node graph), cutting cold load for every consumer and shrinking the committed artifact ~3×.++**Architecture:** (1) A tiny mtime-keyed loader cache (`src/graph/load.ts`) wraps `readGraph` + `readAskIndex`; the MCP tools use it so a long-lived `graft mcp` process parses once per graph version. (2) `writeGraph` stops serializing `body_text` (the ask sidecar already carries those tokens); `ask`'s fallback path (no sidecar) keeps working via name/path/signature/summary and, for OLD graphs that still carry `body_text`, uses it as before. No schema version bump — the field was always optional.++**Tech Stack:** TypeScript ESM, Node ≥20, node:test + tsx. No new dependencies.++## Global Constraints++- No new npm dependencies; ESM `.js` imports; files <500 lines.+- Ranking parity: on a graph WITH a sidecar, ask results must be byte-identical before/after slimming (the sidecar already provides body tokens). On a NEW slim graph WITHOUT a sidecar, ask must degrade gracefully (name/path/signature/summary matching), never crash.+- Old graphs (with body_text, with or without sidecar) keep working unchanged.+- Cache correctness beats speed: the loader must re-parse when the file's (mtime, size) changes; a stale cache serving old graph data is a bug.+- CLI one-shot behavior unchanged (cache is per-process; one-shot processes see no difference).+- No third-party tool names anywhere.+- Acceptance (measure and record in reports, big graph = 32,377 nodes at /private/tmp/claude-501/-Users-shrishdwivedi-Documents-Context-graphs/d3b217f7-4a78-4399-b91a-8bb7db720797/scratchpad/bigrepo-graft, repo /Users/shrishdwivedi/Documents/Nanonets/assign):+ - MCP `tools/call` graft_ask twice in one server session: 2nd call ≥3× faster than 1st.+ - After rebuild with slim wiring: wiring.json ≤ 25MB; cold `ask` ≤ 0.7s; 6-way concurrent asks ≤ 3s each.++---++## File Structure++- Create: `src/graph/load.ts` — `loadGraphCached(outDir)`, `loadAskIndexCached(outDir)` with (path, mtimeMs, size)-keyed memoization.+- Modify: `src/mcp/tools.ts` — use the cached loaders (ask needs the engine… see Task 1 notes: graft_blast_radius uses loadGraphCached; graft_ask flows through engine.ask which reads internally — Task 1 threads a preloaded graph/index through `ask()` opts, or exposes cache at the read layer; decide per the note).+- Modify: `src/graph/write.ts` — `writeGraph` drops `body_text` from serialized nodes.+- Modify: `src/ask/ask.ts` — fallback path tolerates absent body_text.+- Tests: `test/graph-load.test.ts`, extend `test/ask-index.test.ts` / `test/mcp-tools.test.ts`.++---++### Task 1: mtime-keyed loader cache + MCP warm path++**Files:**+- Create: `src/graph/load.ts`+- Modify: `src/mcp/tools.ts`, and the minimal seam in `src/ask/ask.ts` (see note)+- Test: `test/graph-load.test.ts`++**Interfaces:**+- `loadGraphCached(outDir: string): GraphV1 | null` — returns the parsed wiring graph; re-reads only when `(mtimeMs, size)` of the wiring file changed; returns null when missing (same semantics as `readGraph`).+- `loadAskIndexCached(outDir: string): AskIndex | null` — same for the sidecar (wraps `readAskIndex`).+- IMPLEMENTATION NOTE (resolve before coding): `engine.ask()` → `src/ask/ask.ts` currently reads wiring+index internally per call. Give `ask()` (and `Graft.ask`) an optional escape: read through the new cached loaders instead of direct `readGraph`/`readAskIndex` calls — i.e., replace ask.ts's internal read call sites with the cached loaders. That single change warms BOTH the CLI-in-one-process case and the MCP server, with zero API change. `callTool`'s `graft_blast_radius` likewise switches to `loadGraphCached`. The cache module must be dependency-free (fs + the two readers) to avoid cycles: load.ts imports from graph/write.js and ask/index-file.js only.+- Cache invalidation test is mandatory: build fixture graph → load (parse #1) → touch/rewrite wiring with a changed node → load again → new content visible. Track parse counts via an internal counter exported for tests (`__parseCount` or an injectable hook).++- [ ] **Step 1: Failing tests** (`test/graph-load.test.ts`): (a) two loads, same file → same object identity (or parseCount 1); (b) rewrite file (different content → different size/mtime; use `utimesSync` to force distinct mtime if needed) → reload picks up new content, parseCount 2; (c) missing file → null, and a later-created file is picked up; (d) MCP-level: spawn is overkill — instead unit-test that `callTool` twice on the same dir doesn't reparse (parseCount stable after first call), using the counter.+- [ ] **Step 2: Verify failure. Step 3: Implement. Step 4: Full suite green** (`node --import tsx --test test/*.test.ts`) — existing ask/mcp tests must pass unchanged (parity: cached loaders return identical data).+- [ ] **Step 5: Acceptance** — script an MCP session against the big graph: initialize → tools/call graft_ask → tools/call graft_ask again; record both wall times from the client side (expect 2nd ≥3× faster). Include numbers in the report.+- [ ] **Step 6: Commit** — `perf(ask): mtime-keyed graph/index cache — warm queries in long-lived processes`++---++### Task 2: Slim wiring.json (body_text moves out)++**Files:**+- Modify: `src/graph/write.ts` (strip `body_text` in `writeGraph` serialization — keep the in-memory type field optional/intact since build uses it to produce the sidecar BEFORE writing), `src/graph/build.ts` (ensure ordering: sidecar written from the in-memory graph that still has body_text; wiring written slim), `src/ask/ask.ts` (fallback tolerates absent body_text).+- Test: extend `test/ask-index.test.ts` + `test/graph-write` coverage wherever wiring round-trips are asserted.++**Interfaces:** unchanged public API. Behavior contract:+- New builds: wiring.json contains NO `body_text` on any node; sidecar carries the tokens (already true).+- `ask` WITH sidecar: results identical to pre-slim (assert by building a fixture pre-slim vs post-slim… simplest: assert post-slim ask results equal the sidecar-driven results from Task-set 2026-07-21, i.e. run lexical() with sidecar on slim graph vs with sidecar on fat graph — same hits/scores).+- `ask` WITHOUT sidecar on a SLIM graph: no crash; body field contributions are simply absent (signature+summary still tokenized); add an explicit test.+- `ask` on an OLD fat graph without sidecar: unchanged behavior (body_text used) — regression-guard with a fixture that injects body_text manually.+- `check`/`viz`/`cards` unaffected (verify by suite).++- [ ] **Step 1: Failing tests** for the four contract lines above. **Step 2-4: implement, full suite green.**+- [ ] **Step 5: Acceptance** — rebuild the big graph; record: wiring.json size (expect ~≤25MB from 56MB), cold `ask` wall time (expect ≤0.7s), and the 6-way concurrent run (expect ≤3s each; command pattern: six backgrounded `graft --dir <graph> ask "<q i>" <repo>` + wait, timed).+- [ ] **Step 6: Commit** — `perf(graph): slim wiring.json — body_text lives only in the ask index sidecar`++---++### Task 3: Verification & docs touch++- [ ] Full suite + build. Re-run acceptance trio (warm MCP, cold ask, concurrency) and tabulate before/after in the task report.+- [ ] README: if any wiring-size or latency claims exist, update; otherwise no doc change. Ledger updated.+- [ ] Commit only if files changed.++## Out of scope+- A standalone daemon (the MCP server IS the warm process; hooks stay one-shot with the now-halved cold cost).+- Sidecar format compaction (separate, lower-value).+- Convergence signals / ranking hygiene (0.5.0 milestone).++## Self-Review+- Cache staleness covered by mandatory invalidation test; identity of results guaranteed by routing through existing readers. ✓+- Slim-graph compat matrix has all four cells tested (sidecar × body_text presence). ✓+- Build-order hazard (sidecar must be generated from in-memory nodes BEFORE body_text is dropped at serialization — not from a re-read of slim wiring) explicitly called out in Task 2 files list. ✓diff --git a/docs/superpowers/plans/2026-07-22-graph-commands.md b/docs/superpowers/plans/2026-07-22-graph-commands.mdnew file mode 100644index 00000000..6be0d0be--- /dev/null+++ b/docs/superpowers/plans/2026-07-22-graph-commands.md@@ -0,0 +1,66 @@+# Graph Commands (callers / callees / impact) Implementation Plan++> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.++**Goal:** Make graph traversal a first-class precise mode: `graft callers <symbol>`, `graft callees <symbol>`, `graft impact <symbol>` on the CLI and as MCP tools — the coupling-discovery capability benchmarks showed is the product's durable accuracy edge — and fix the silent/broken structural path inside `ask` using the same resolver.++**Architecture:** One new pure module `src/graph/traverse.ts` owns symbol resolution (qualified/dotted names, multi-match disambiguation) and edge walking over the loaded wiring graph (via the warm `loadGraphCached`). The CLI adds three commands with human + `--json` output. The MCP server gains `graft_callers`/`graft_callees` and upgrades `graft_blast_radius`→ depth-aware impact. `ask`'s structural intent path delegates subject resolution to the same resolver and reports empty results loudly ("no indexed callers — fall back to grep"), never as a silent stub.++**Tech Stack:** TypeScript ESM, Node ≥20, node:test + tsx. No new dependencies.++## Global Constraints++- No new npm dependencies; ESM `.js` imports; files <500 lines.+- Symbol resolution contract (all commands share it): match against node `name` (case-insensitive) AND against id suffixes so qualified names work (`Cache.get` matches id `src/cache.ts#Cache.get`; `hashstructure.Hash` resolves by its last segment when the full form misses). Multiple matches are NOT an error: list every match with its `path:span` and traverse ALL of them, grouping output per match. An optional `--in <path-substring>` filter narrows candidates.+- Traversal edges: `calls`, `references`, `imports`, `implements`, `extends` (same set as graphrank's WALK_RELATIONS). `contains` is excluded.+- Empty results must be loud and actionable: state that the graph has no indexed edges for the symbol and suggest the fallback (`grep -rn "<name>"`), on stderr for CLI / in the text content for MCP. Never print a bare empty list.+- Reuse `loadGraphCached` (never readGraph directly) so MCP calls stay warm.+- Existing tests stay green; no behavior change to lexical ask.+- No third-party tool names anywhere.++---++## File Structure++- Create: `src/graph/traverse.ts` — `resolveSymbol`, `callersOf`, `calleesOf`, `impactOf` + types.+- Modify: `src/cli.ts` — three new commands.+- Modify: `src/mcp/tools.ts` — new/updated tools.+- Modify: `src/ask/ask.ts` — `structural()` uses `resolveSymbol`; loud empty handling (`note` field set; formatter prints it).+- Tests: `test/graph-traverse.test.ts`, extend `test/mcp-tools.test.ts`, extend `test/ask.test.ts` (structural cases only).++---++### Task 1: Traversal core (`src/graph/traverse.ts`)++**Interfaces:**+- `interface SymbolMatch { node: NodeV1 }`+- `resolveSymbol(graph: GraphV1, query: string, opts?: { in?: string }): NodeV1[]` — resolution contract from Global Constraints; excludes `kind: 'file'` nodes unless nothing else matches AND the query looks like a filename (contains `.` + no `#`).+- `interface EdgeHit { node: NodeV1 | null; id: string; relation: Relation; depth: number }` (`node` null for unresolved targets, e.g. external import strings — keep them, labeled by raw id)+- `callersOf(graph, symbol: NodeV1): EdgeHit[]` — nodes with an edge (walk relations) whose target is the symbol (depth 1).+- `calleesOf(graph, symbol: NodeV1): EdgeHit[]` — edges out of the symbol (depth 1).+- `impactOf(graph, symbol: NodeV1, maxDepth = 2): EdgeHit[]` — BFS over INCOMING walk edges up to maxDepth (who breaks if this changes), deduped by node id, each hit carrying the depth at first reach.++- [ ] **Step 1: failing tests** (`test/graph-traverse.test.ts`) with a hand-built fixture graph (nodeStub/graphOf helpers like test/graphrank.test.ts): resolution by bare name, case-insensitive; qualified `Class.method` via id suffix; last-segment fallback for `pkg.Fn`; `--in` filter; multi-match returns all; callers/callees correctness incl. unresolved import target (edge target id not in nodes → EdgeHit with node null); impact BFS depth 2 with dedup (diamond shape counted once, min depth), depth cap respected; empty results → [].+- [ ] **Step 2-4:** verify fail → implement → traverse tests + full suite green.+- [ ] **Step 5: Commit** — `feat(graph): traversal core — symbol resolution + callers/callees/impact`++### Task 2: CLI commands++- `graft callers <symbol> [dir] [--in <path>] [--json]`, `graft callees ...` (same shape), `graft impact <symbol> [dir] [-d <depth>] [--in <path>] [--json]`.+- Human output, per resolved match: header `<name> · <kind> · <path>:<span>` then one line per hit: `<relation> ← <name> (<path>:<span>)` for callers/impact (with `[depth N]` for impact), `→` direction for callees. Unresolved targets print the raw id with `(unresolved import)`.+- No matches for the symbol → stderr `✗ no symbol "<q>" in the graph — check spelling or run graft build` exit 1. Matches but zero edges → stdout header plus the loud empty note (`no indexed callers — the graph has no incoming call/reference edges for this symbol; try grep -rn "<name>"`), exit 0.+- `--json`: `{ query, matches: [{ symbol: {id,name,kind,path,span}, hits: [...] }] }`.+- [ ] Steps: failing CLI tests (execFileSync pattern from test/hosts-init.test.ts, on a built fixture repo — reuse the builtRepo helper pattern from test/mcp-tools.test.ts) covering: happy path callers, --json shape, unknown symbol exit 1, zero-edge loud note; implement; full suite; commit `feat(cli): graft callers / callees / impact commands`.++### Task 3: MCP tools + ask structural fix++- MCP: add `graft_callers` and `graft_callees` tools ({symbol, in?}); upgrade `graft_blast_radius` description + impl to `impactOf` with optional `depth` (default 2) while keeping the tool name (hosts already have it registered). All via `loadGraphCached`. Zero-edge results return the loud note text with `isError: false` (a true empty is an answer, but it must say what it means and suggest grep).+- `ask` structural path (`src/ask/ask.ts` `structural()`): replace `findSubject` with `resolveSymbol`; when intent matches (INCOMING/OUTGOING regexes) but subjects resolve to zero nodes OR zero edges, return an AskResult whose `note` says the structural index found nothing for the subject and the lexical results follow (then fall through to lexical instead of returning a bare empty structural result). `formatAsk` must surface the note prominently.+- [ ] Steps: failing tests (MCP: callers tool round-trip on fixture, blast_radius depth param; ask: "who calls <qualified.name>" resolves via suffix — the previously-broken case — and empty-structural falls through to lexical with the note); implement; FULL suite; commit `feat(mcp,ask): graph tools + loud structural fallback`.++## Out of scope+- Path-between-symbols, Go interface-satisfaction edges (future).+- README/skill updates — land with 0.4.4's guidance ship.++## Self-Review+- Resolution contract centralized once, consumed by 3 surfaces. ✓ Fixture-graph tests cover the dotted-name bug class directly. ✓ Loud-empty is specified for all 3 surfaces with distinct wording. ✓ No placeholder steps: interfaces fully typed above; test lists enumerate concrete cases. ✓diff --git a/src/graph/traverse-cli.ts b/src/graph/traverse-cli.tsindex e87c4b76..bbb77a82 100644--- a/src/graph/traverse-cli.ts+++ b/src/graph/traverse-cli.ts@@ -61,6 +61,12 @@ interface SymbolJson {span: string;}+interface MatchJson {+ symbol: SymbolJson;+ hits: HitJson[];+ note?: string;+}+interface HitJson {id: string;name?: string;@@ -122,7 +128,13 @@ export function runTraverseCommand(kind: TraverseKind, query: string, dir: strinif (opts.json) {const payload = {query,- matches: results.map((r) => ({ symbol: symbolJson(r.symbol), hits: r.hits.map(hitJson) })),+ matches: results.map((r): MatchJson => {+ const m: MatchJson = { symbol: symbolJson(r.symbol), hits: r.hits.map(hitJson) };+ if (r.hits.length === 0) {+ m.note = looseNoteFor(kind, r.symbol.name);+ }+ return m;+ }),};console.log(JSON.stringify(payload, null, 2));return;diff --git a/test/graph-traverse-cli.test.ts b/test/graph-traverse-cli.test.tsindex b2b30a9a..aed48a1f 100644--- a/test/graph-traverse-cli.test.ts+++ b/test/graph-traverse-cli.test.ts@@ -85,6 +85,21 @@ test('graft callees: zero-edge symbol prints a loud note and still exits 0', ()assert.match(r.stdout, /grep -rn "add"/);});+test('graft callees --json: zero-edge symbol includes a note field', () => {+ const d = builtRepo();+ // `add` calls nothing, so its callees are empty — JSON must include the note.+ const r = runCli(['callees', 'add', d, '--json']);+ assert.equal(r.status, 0);+ const parsed = JSON.parse(r.stdout);+ assert.equal(parsed.query, 'add');+ assert.equal(parsed.matches.length, 1);+ const m = parsed.matches[0];+ assert.equal(m.symbol.name, 'add');+ assert.equal(m.hits.length, 0);+ assert.ok(m.note, 'zero-edge match must have a note field');+ assert.match(m.note, /try grep -rn/);+});+test('graft impact -d: depth flag limits the BFS, default reaches further', () => {const d = builtRepo();// compute -> sub -> add: impact of `add` at depth 1 is just `sub`;