Skip to main content

Module code_graph

Module code_graph 

Source
Expand description

code-graph adapter (#1098): Graphify-style node/edge output → property-graph cross-source edges, so ctx_callgraph and ctx_read hints benefit from an externally-computed code graph.

Defensive JSON parsing: accepts the common shapes

  • { "edges": [ {from|source, to|target, type|kind|relation}, … ] }
  • a top-level array of edge objects

and skips anything it does not recognize (best-effort, never panics). Runs as a side-channel (background thread), so it cannot affect output determinism.

Functions§

ingest
Parse text for graph edges and merge them into the project’s property graph as cross-source edges. No-op on unparseable input or an empty edge set.