Skip to main content

Module code_graph

Module code_graph 

Source
Expand description

Code Graph Extraction — extract code dependencies from source files

Multi-language support with tree-sitter AST parsing for Python, Rust, and TypeScript. Builds a code structure graph:

  • Nodes: files, classes/structs/traits, functions/methods
  • Edges: imports, calls, inherits, defined_in

Rust extraction handles: structs, enums, traits, impl blocks (with method-type association), functions, modules, type aliases, const/static items, and macros.

TypeScript/JavaScript extraction handles: classes, interfaces, functions, arrow functions, enums, type aliases, namespaces, and export statements.

Structs§

CausalChain
A causal chain from symptom to potential root cause
ChainNode
CodeEdge
An edge in the code graph.
CodeGraph
A code dependency graph extracted from source files.
CodeNode
A node in the code graph (file, class, function).
ImpactReport
Result of impact analysis — what’s affected by a change
UnifiedEdge
An edge in the unified graph
UnifiedGraphResult
Result of build_unified_graph — a simplified graph structure for task planning
UnifiedNode
A node in the unified graph

Enums§

EdgeRelation
Edge relationship type.
Language
NodeKind
Kind of code node.