perron-core 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
perron/__init__.py ADDED
@@ -0,0 +1,78 @@
1
+ """
2
+ Perron: Context-Budgeted AST Subgraph Slicing and Graph Retrieval for Developer Agents.
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ from perron.matrix import (
8
+ build_static_transition_matrix,
9
+ load_mmap_csr,
10
+ save_mmap_csr,
11
+ close_mmap_csr,
12
+ )
13
+ from perron.diffusion import (
14
+ compute_softmax_teleport_prior,
15
+ personalized_pagerank_power_iteration,
16
+ )
17
+ from perron.specificity import (
18
+ compute_global_pagerank,
19
+ calculate_specificity_scores,
20
+ )
21
+ from perron.packer import (
22
+ pack_context_subgraphs,
23
+ ASTContextSymbol,
24
+ )
25
+ from perron.editor import (
26
+ apply_symbol_edit,
27
+ apply_multi_file_patch,
28
+ SymbolEditSpec,
29
+ )
30
+ from perron.patch import (
31
+ compute_git_patch,
32
+ generate_unified_diff,
33
+ )
34
+ from perron.tester import (
35
+ run_targeted_test,
36
+ )
37
+ from perron.graph import (
38
+ ASTSymbolNode,
39
+ extract_repository_graph,
40
+ compile_and_save_repository_graph,
41
+ )
42
+ from perron.agent import (
43
+ PerronAgent,
44
+ TrajectoryResult,
45
+ TurnTelemetry,
46
+ )
47
+ from perron.retriever import (
48
+ CodeGraph,
49
+ PerronRetriever,
50
+ )
51
+
52
+ __all__ = [
53
+ "build_static_transition_matrix",
54
+ "load_mmap_csr",
55
+ "save_mmap_csr",
56
+ "close_mmap_csr",
57
+ "compute_softmax_teleport_prior",
58
+ "personalized_pagerank_power_iteration",
59
+ "compute_global_pagerank",
60
+ "calculate_specificity_scores",
61
+ "pack_context_subgraphs",
62
+ "ASTContextSymbol",
63
+ "apply_symbol_edit",
64
+ "apply_multi_file_patch",
65
+ "SymbolEditSpec",
66
+ "compute_git_patch",
67
+ "generate_unified_diff",
68
+ "run_targeted_test",
69
+ "ASTSymbolNode",
70
+ "extract_repository_graph",
71
+ "compile_and_save_repository_graph",
72
+ "PerronAgent",
73
+ "TrajectoryResult",
74
+ "TurnTelemetry",
75
+ "CodeGraph",
76
+ "PerronRetriever",
77
+ ]
78
+