Commit graph

223 commits

Author SHA1 Message Date
Paul Gauthier
fc055a17c1 fix: Remove unused map_multiplier_no_files attribute from Coder class 2024-08-20 12:59:54 -07:00
Paul Gauthier (aider)
78a4ed69d8 style: Format code using linter 2024-08-19 15:49:47 -07:00
Paul Gauthier (aider)
884ee535af feat: Add file modification time to cache key for render_tree 2024-08-19 15:49:43 -07:00
Paul Gauthier (aider)
79d97240f1 style: Apply linter edits to repomap.py 2024-08-17 06:30:52 -07:00
Paul Gauthier (aider)
551804c289 feat: add force_refresh arg to get_repo_map and pass to get_ranked_tags_map 2024-08-17 06:30:48 -07:00
Paul Gauthier
bcd6257c90 feat: Add last_map attribute and implement caching logic based on refresh mode 2024-08-17 06:30:46 -07:00
Paul Gauthier (aider)
88dc1c63fd fix: init map_processing_time to 0 in __init__; move time import to top of file 2024-08-17 06:24:23 -07:00
Paul Gauthier (aider)
6ca1a2eb57 style: Apply linter formatting changes 2024-08-17 06:23:27 -07:00
Paul Gauthier (aider)
27c79d662b feat: Record processing time of get_ranked_tags_map_uncached on cache miss 2024-08-17 06:23:23 -07:00
Paul Gauthier (aider)
78fb4ae238 fix: protect against null chat_fnames in cache key 2024-08-17 06:22:16 -07:00
Paul Gauthier (aider)
4eb0aa1bbd style: Fix formatting in repomap.py 2024-08-17 06:21:37 -07:00
Paul Gauthier (aider)
485cb37bb2 feat: Add caching to get_ranked_tags_map 2024-08-17 06:21:33 -07:00
Paul Gauthier
b3327c38b8 fix: Add refresh parameter to RepoMap constructor 2024-08-17 06:20:00 -07:00
Paul Gauthier
30af7f68bd fix: Clear lines of interest instead of clearing the entire context 2024-08-08 09:58:46 -03:00
Paul Gauthier (aider)
bb4ee1a221 perf: cache TreeContext for each filename and re-use it 2024-08-08 09:56:03 -03:00
Paul Gauthier
75bd6f114c Better progress indicator in large repos 2024-08-06 14:33:09 -03:00
Paul Gauthier (aider)
8525563cfd style: fix linter issues in repomap.py 2024-08-06 14:18:45 -03:00
Paul Gauthier (aider)
eee37f8913 feat: add "Scanning files" label for tqdm progress bar 2024-08-06 14:18:40 -03:00
Paul Gauthier
4ccd7d9d4f fix: update cache threshold condition in RepoMap class 2024-08-06 14:18:39 -03:00
Paul Gauthier
4d6bb2b1f1 fix: Update cache threshold logic in RepoMap class 2024-08-06 14:13:54 -03:00
Paul Gauthier
4e5e9b4a1a fix: move dict init into __init__ 2024-08-06 09:34:25 -03:00
Paul Gauthier
abd23f8be5 small perf tweak 2024-08-05 20:56:06 -03:00
Paul Gauthier
d89eeff13d fix: Implement efficient token counting for large text inputs 2024-08-05 20:42:36 -03:00
Paul Gauthier
d0ffbf173b fix: Reorder imports in repomap.py 2024-08-05 19:33:06 -03:00
Paul Gauthier (aider)
eff71998a3 fix: Move imports to top of file 2024-08-05 19:32:47 -03:00
Paul Gauthier
c21195252d feat: Add Spinner utility to repomap module 2024-08-05 19:32:25 -03:00
Paul Gauthier
c67d10749c fix: Remove unused spinner method from InputOutput class 2024-08-05 19:31:54 -03:00
Paul Gauthier
95e603350c cleanup ranked_tags_map cache and token estimator 2024-08-05 18:00:51 -03:00
Paul Gauthier (aider)
16defb3c8c feat: sort tuples in get_ranked_tags_map 2024-08-05 17:49:57 -03:00
Paul Gauthier (aider)
bcbaac03d4 feat: Add cache for get_ranked_tags_map 2024-08-05 17:48:48 -03:00
Paul Gauthier
dfe4f4827c feat: Increase the number of samples used to estimate token count in RepoMap 2024-08-05 17:48:47 -03:00
Paul Gauthier
c160a5fa65 show progress of the repo map 2024-08-05 17:39:21 -03:00
Paul Gauthier (aider)
ef442fdd7e style: Apply linter formatting to repomap.py 2024-08-05 17:15:30 -03:00
Paul Gauthier (aider)
72ceb87acb fix: Remove all print_elapsed calls 2024-08-05 17:15:26 -03:00
Paul Gauthier
b6760e26c7 fix: Ensure token count calculation handles small text samples 2024-08-05 17:14:42 -03:00
Paul Gauthier
75c3c40354 Estimate tokenization to speed up repo map 2024-08-05 17:09:27 -03:00
Paul Gauthier (aider)
de26f8e5e0 style: format code with linter 2024-08-05 16:54:46 -03:00
Paul Gauthier (aider)
276b30506c fix: Add elapsed time logging to print statements 2024-08-05 16:54:42 -03:00
Paul Gauthier
042a4f14d2 fix: Update repomap.py to improve caching and logging 2024-08-05 16:52:22 -03:00
Paul Gauthier
3ba6e95d22 fix: Ensure token count is calculated only when verbose mode is enabled 2024-08-05 16:37:34 -03:00
Paul Gauthier
b654a16b48 Accept repo maps within 10% of token budget 2024-08-05 16:26:53 -03:00
Paul Gauthier (aider)
65247353bd fix: Remove unused linter variable in get_supported_languages_md function 2024-08-05 16:17:29 -03:00
Paul Gauthier (aider)
b86dde5f0d style: Apply linter edits to repomap.py 2024-08-05 16:17:07 -03:00
Paul Gauthier (aider)
ba1c8d1701 feat: Estimate initial middle value for binary search in get_ranked_tags_map 2024-08-05 16:17:03 -03:00
Paul Gauthier
b19795228f fix: Adjust the starting number for the binary search in the RepoMap class 2024-08-05 16:11:08 -03:00
Paul Gauthier
e2fb2466a9 Improve linter support and repo map coverage for various programming languages. 2024-07-30 12:30:29 -03:00
Paul Gauthier (aider)
74201dd733 Add two new columns to the get_supported_languages_md function: Repo map and Linter, and check the existence of the SCM file and linter support for each language. 2024-07-30 12:26:01 -03:00
Paul Gauthier
859a13eb70 Updated languages doc to correctly list repo map supported langs 2024-07-24 11:28:37 +02:00
Paul Gauthier
397c5d5921 added a test for /tokens #863 2024-07-18 16:54:26 +01:00
Paul Gauthier
4fba17c18b switched langs table from html -> md 2024-07-06 18:56:33 -03:00