Skip to content

v0.5.0a12 — cross-file code graph

Choose a tag to compare

@TheYonk TheYonk released this 09 Jun 02:19
· 27 commits to main since this release
6c679b5

Cross-file code graph (#76)

chunk_strategy="chunkshop:symbol_aware" now supports corpus-wide cross-file resolution for the code call graph.

  • Opt in with ingest_records(..., cross_file_code_graph=True) or PGRG_CROSS_FILE_CODE_GRAPH=1. Default stays per-file/streaming (no regression).
  • One CorpusCodeGraph resolver accumulates the whole ingest (O(symbols), not content — bounded-memory streaming preserved), then materializes cross-file CALLS/INHERITS/IMPLEMENTS edges. Each carries resolved_intra_file in relationships.properties.
  • Self-ingest of src/pg_raggraph: 415 → 1,030 CALLS edges, 636 cross-file, symbols-with-callers 246 → 351.

Fixes the consumer symptom where most symbols had 0 callers because cross-file calls weren't traced (EnterpriseDB/bento#779).

Full changelog: see CHANGELOG.md.