Skip to main content

Module repo_map

Module repo_map 

Source
Expand description

PageRank-weighted structural overview of a codebase.

Builds a dependency graph from tree-sitter definition and import extraction, ranks files by importance using PageRank (standard or topic-sensitive), and renders a budget-constrained overview with tiered detail levels.

Structs§

ArchivedCallRef
An archived CallRef
ArchivedDefinition
An archived Definition
ArchivedFileNode
An archived FileNode
ArchivedImportRef
An archived ImportRef
ArchivedRepoGraph
An archived RepoGraph
CallRef
A call site extracted from a definition body.
CallRefResolver
The resolver for an archived CallRef
Definition
A definition extracted from a source file.
DefinitionResolver
The resolver for an archived Definition
FileNode
A file in the repository with its definitions and imports.
FileNodeResolver
The resolver for an archived FileNode
GetRepoMapResponse
JSON-mode response envelope for get_repo_map (4.0.1 shape).
ImportRef
An import reference extracted from a source file.
ImportRefResolver
The resolver for an archived ImportRef
RepoGraph
Persisted dependency graph with PageRank scores.
RepoGraphResolver
The resolver for an archived RepoGraph
RepoMapCall
An outgoing call-edge from a file to another file.
RepoMapFile
One file entry in the JSON repo map.
RepoMapLspLocation
LSP-shaped location pointing at a file or symbol within a file.
RepoMapSymbol
A top-level symbol extracted from a file in the repository map.

Enums§

FocusResolution
Result of resolving a user-supplied focus_file string against a RepoGraph.

Functions§

build_def_index_pub
Build an index from definition name to list of DefIds.
build_graph
Build a dependency graph from a repository root.
build_graph_from_files_pub
Build a RepoGraph directly from a pre-constructed Vec<FileNode>.
build_neighbor_lists
Build top-N caller and callee lists for each file.
build_trait_impl_edges_pub
Build bidirectional trait↔impl method edges for PageRank propagation (G3).
enrich_go_method_def_scopes_pub
Public wrapper for enrich_go_method_def_scopes — enables integration tests to call it directly without going through the full build_graph pipeline.
enrich_sql_file_def_pub
Public wrapper for [enrich_sql_file_def] — enables integration tests to call it directly without going through the full build_graph pipeline.
extract_calls_pub
Public wrapper for extract_calls — enables integration tests to call it directly without going through the full build_graph pipeline.
extract_python_class_hierarchy
Extract the Python class → [parents] map from a single source file by parsing it with tree-sitter-python.
render
Render a budget-constrained overview of the repository.
render_json
Render a PageRank-sorted JSON map of the repository (4.0.0 compatibility shim).
render_json_budgeted
Render a PageRank-weighted JSON map with token-budget allocation (4.0.1).
resolve_calls_pub
Resolve call references to target definitions.
resolve_calls_with_python_mro_pub
Resolve call references with MRO-aware Python receiver dispatch enabled.

Type Aliases§

DefId
Unique identifier for a definition: (file index, definition index within file).