Commit graph

5592 commits

Author SHA1 Message Date
Paul Gauthier (aider)
30b2460a7a feat: Move Spinner class to utils.py 2024-08-05 19:31:03 -03:00
Paul Gauthier
c2254001b5 fix: Remove unused Spinner class
diff --git a/aider/io.py b/aider/io.py
index ea4d25d0..d4d4d4d0 100644
--- a/aider/io.py
+++ b/aider/io.py
@@ -420,4 +420,4 @@ class InputOutput:
                 f.write(text)

     def spinner(self, text):
-        return Spinner(text)
+        return Spinner(self, text)
2024-08-05 19:31:01 -03:00
Paul Gauthier
49874cb8a1 fix: Improve spinner behavior 2024-08-05 19:30:40 -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 (aider)
168a1d070d feat: add delay before showing spinner and text 2024-08-05 17:44:30 -03:00
Paul Gauthier
c160a5fa65 show progress of the repo map 2024-08-05 17:39:21 -03:00
Paul Gauthier (aider)
249c85e20f fix: Replace dump('end') with traceback.print_stack() in Spinner.end() 2024-08-05 17:37:38 -03:00
Paul Gauthier
44e05e82b0 fix: Add logging to Spinner.end method 2024-08-05 17:37:37 -03:00
Paul Gauthier (aider)
54a481813a fix: update spinner every 0.1 sec at most 2024-08-05 17:32:07 -03:00
Paul Gauthier
b76434f5e0 fix: Add space before spinner text 2024-08-05 17:32:06 -03:00
Paul Gauthier (aider)
44f3ed6433 fix: Move Spinner class to top level and remove elapsed time display 2024-08-05 17:25:55 -03:00
Paul Gauthier (aider)
17f1f2862d style: Apply linter formatting changes 2024-08-05 17:25:23 -03:00
Paul Gauthier (aider)
5cac0b764f feat: move Spinner to top level, don't show elapsed 2024-08-05 17:25:20 -03:00
Paul Gauthier (aider)
8f8b0ed06e fix: limit spinner update rate to at most 1/10 second 2024-08-05 17:24:54 -03:00
Paul Gauthier (aider)
11bf7defea style: Apply linter formatting to io.py 2024-08-05 17:24:20 -03:00
Paul Gauthier (aider)
49b33ec85e feat: Add spinner functionality to IO class 2024-08-05 17:24:16 -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 (aider)
a864ab9888 feat: Add a dictionary to cache abs_root_path results 2024-08-05 16:28:44 -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
a85ccc26bc Revert "fix: Add debug logging to get_ident_filename_matches method"
This reverts commit 55fcbc958d.
2024-08-05 16:07:26 -03:00
Paul Gauthier
793035b2e0 improve perf of repomap and other file intensive actions 2024-08-05 16:05:19 -03:00
Paul Gauthier
55fcbc958d fix: Add debug logging to get_ident_filename_matches method 2024-08-05 15:35:02 -03:00
Paul Gauthier
617b1bdee2 Can force repo-map on with: --map-tokens 1024 2024-08-05 14:59:12 -03:00
Paul Gauthier
f8e76bcb88 Try py3.13 2024-08-05 11:11:19 -03:00
deansher
931a87affd extended CONTRIBUTING.md
Documented dev environment and coding standards.
2024-08-05 02:59:09 -04:00
Paul Gauthier
8612ac0e60 Updated HISTORY 2024-08-04 08:05:07 -03:00
Paul Gauthier
c45688c8b8 Carry total costs back to main coder from /help and /ask 2024-08-03 10:18:35 -03:00
Paul Gauthier (aider)
d3fb831e89 feat: Initialize self.total_cost in __init__ method 2024-08-03 10:14:58 -03:00
Paul Gauthier (aider)
b357c90590 feat: Add total_cost as an init parameter and pass it when creating a from_coder 2024-08-03 10:14:24 -03:00
Paul Gauthier
7a7febfb2b better approach to cloning Commands in from_coders 2024-08-03 10:13:21 -03:00
Paul Gauthier
5562bc96c7 Updated HISTORY 2024-08-03 10:09:59 -03:00
Paul Gauthier
24f2741369 fix: Simplify mocking in test_commands.py 2024-08-03 10:05:52 -03:00
Paul Gauthier (aider)
91219eee30 style: Apply linter formatting to test_commands.py 2024-08-03 10:03:32 -03:00
Paul Gauthier (aider)
c454d9435e feat: add test for cmd_ask with mocked chat_coder 2024-08-03 10:03:28 -03:00
Paul Gauthier
ba8d32da42 Use a clone of Commands for sub-Coders, so main Command.coder does not get stomped 2024-08-03 10:01:57 -03:00
Paul Gauthier
47b6c6a8ef Updated HISTORY 2024-08-03 09:45:29 -03:00