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
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

Functions§

build_graph
Build a dependency graph from a repository root.
render
Render a budget-constrained overview of the repository.

Type Aliases§

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