Commit graph

2786 commits

Author SHA1 Message Date
Paul Gauthier (aider)
eeb47903a0 style: Fix formatting in base_coder.py 2024-08-06 09:50:17 -03:00
Paul Gauthier (aider)
fe33cef894 feat: include country in user language detection 2024-08-06 09:50:12 -03:00
Paul Gauthier (aider)
86d37e0c25 fix: Replace bare except with except Exception in get_user_language() method 2024-08-06 09:48:19 -03:00
Paul Gauthier (aider)
541ab83f15 style: Fix formatting and style issues in base_coder.py 2024-08-06 09:46:42 -03:00
Paul Gauthier (aider)
7d56889880 feat: Add user language detection to platform_text
The changes in this commit add a function to detect the user's language and include it in the `platform_text` without assuming English as a fallback. The language detection is done by checking the `locale` module and common environment variables. If a language is detected, it is added to the `platform_text` with a note about how it was obtained. If no language is detected, no language information is added to `platform_text`.
2024-08-06 09:46:37 -03:00
Paul Gauthier
768d7af32e fix normlize_path logic 2024-08-06 09:38:51 -03:00
Paul Gauthier
4e5e9b4a1a fix: move dict init into __init__ 2024-08-06 09:34:25 -03:00
Paul Gauthier
f64cdfa72a Updated HISTORY 2024-08-06 09:22:45 -03:00
Paul Gauthier
764abb56c9 Updated HISTORY 2024-08-06 09:15:12 -03:00
Paul Gauthier
fb0691914c fix: Use repo map only when map_tokens is greater than 0 2024-08-06 09:11:21 -03:00
Paul Gauthier
8c517715b3 Updated HISTORY 2024-08-06 08:42:08 -03:00
Paul Gauthier
13c617ed44 fix: make new dicts and sets for each instance 2024-08-06 08:41:40 -03:00
Paul Gauthier
152188389c fix 2024-08-06 08:32:48 -03:00
Paul Gauthier
db5de020e8 Updated HISTORY 2024-08-06 08:25:54 -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 (aider)
fd43cd401d feat: Use the Spinner instead of the inlined custom spinner 2024-08-05 19:33:57 -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 (aider)
f8d161382e style: Format code with linter 2024-08-05 19:31:21 -03:00
Paul Gauthier (aider)
b1003949c0 fix: Remove unused imports and fix undefined Spinner issue in aider/io.py 2024-08-05 19:31:18 -03:00
Paul Gauthier (aider)
d3a9247b3c style: Apply linter formatting to aider/io.py 2024-08-05 19:31:06 -03:00
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