Skip to content

Commit 1907219

Browse files
committed
fix: wire max_discovered_files through centralized config
1 parent f30a7d5 commit 1907219

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/treemapper/diffctx/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
_MAX_EXPANSION_FILES = LIMITS.max_expansion_files
3939
_OVERHEAD_PER_FRAGMENT = LIMITS.overhead_per_fragment
4040
_FALLBACK_MAX_FILES = 10_000
41-
_MAX_DISCOVERED_FILES = 200
41+
_MAX_DISCOVERED_FILES = LIMITS.max_discovered_files
4242

4343
_SEMANTIC_KINDS = frozenset(
4444
{

src/treemapper/diffctx/config/limits.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class AlgorithmLimits:
99
max_fragments: int = 200
1010
max_generated_fragments: int = 5
1111
max_candidate_files: int = 5000
12+
max_discovered_files: int = 200
1213
skip_expensive_threshold: int = 2000
1314
rare_identifier_threshold: int = 3
1415
max_expansion_files: int = 20

0 commit comments

Comments
 (0)