Skip to content

Phase 1b: add deterministic code KG indexer#204

Merged
edheltzel merged 2 commits into
mainfrom
feat/kg-indexer-200
Jun 27, 2026
Merged

Phase 1b: add deterministic code KG indexer#204
edheltzel merged 2 commits into
mainfrom
feat/kg-indexer-200

Conversation

@edheltzel

Copy link
Copy Markdown
Owner

Summary

  • Adds recall index [path] backed by a deterministic web-tree-sitter indexer.
  • Captures function/class/method declarations plus exported arrow/function-expression consts.
  • Persists repo-relative code nodes/edges with stable kind:relpath:qualified_name:start_line:start_col IDs, real caller attribution, deterministic resolution, and a re-link pass.
  • Pins web-tree-sitter@0.26.9 and tree-sitter-typescript@0.23.2.

Notes

Verification

  • bun test tests/lib/code-indexer.test.ts — 5 pass.
  • bun run lint — pass.
  • bun test — 1197 pass, 0 fail.
  • bun run build — pass.
  • Actual Recall src/ indexing against an in-memory DB using the design DDL: 67 files, 756 nodes, 4905 edges, 3590 non-module caller call edges, 177 extracted module import edges.

Closes #200

@edheltzel edheltzel merged commit 1bf29a6 into main Jun 27, 2026
2 checks passed
@edheltzel edheltzel deleted the feat/kg-indexer-200 branch June 27, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Phase 1b: web-tree-sitter indexer core (extraction + FQN resolution)

1 participant