1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! Token-budget-respecting repository map generator.
//!
//! Produces a compact textual summary of a source code repository by:
//! - Extracting symbol tags (definitions and references) with tree-sitter
//! - Building a weighted directed file-dependency graph
//! - Running Personalized PageRank to rank files by structural relevance
//! - Rendering ranked definitions within a token budget
//!
//! # Quick start
//!
//! ```no_run
//! use repo_mapper::RepoMapConfig;
//!
//! let mut repo_map = RepoMapConfig::builder()
//! .root("/path/to/repo")
//! .map_tokens(1024)
//! .build();
//!
//! let files = vec![std::path::PathBuf::from("/path/to/repo/src/main.rs")];
//! let map = repo_map.get_repo_map(&[], &files, &Default::default(), &Default::default());
//! if let Some(text) = map {
//! print!("{text}");
//! }
//! ```
pub use ;
pub use RepoMap;
pub use ;