Commit graph

335 commits

Author SHA1 Message Date
Paul Gauthier (aider)
43eaf91e8d refactor: use pre-initialized PromptSession in prompt_ask function 2024-09-10 10:00:00 -07:00
Paul Gauthier (aider)
bf3a165961 refactor: initialize and reuse PromptSession in InputOutput class 2024-09-10 09:57:09 -07:00
Paul Gauthier
964fe7e2dc fix: handle UnicodeEncodeError in prompt session 2024-09-09 13:56:27 -07:00
Krazer
9d4316b1d5 add default empty message 2024-09-06 17:39:22 -05:00
Krazer
11020c8aee send output through InputOutput 2024-09-06 17:35:55 -05:00
Paul Gauthier (aider)
d92605c447 style: change tool warning color to orange hex code 2024-09-03 12:42:41 -07:00
Paul Gauthier (aider)
b088627fcc refactor: extract common code from tool_warning and tool_error 2024-09-03 12:41:05 -07:00
Paul Gauthier (aider)
b4ba159f27 feat: add tool_warning method and warning color option 2024-09-03 12:39:41 -07:00
Paul Gauthier
b3ce70234e feat: add error handling for file writing in InputOutput class 2024-09-03 08:33:22 -07:00
Paul Gauthier
4063015560 ensure IO obeys pretty flag, catch UnicodeDecodeError on launch and disable pretty 2024-09-02 11:31:39 -07:00
Paul Gauthier
58120cb882 feat: add OSError handling for file reading operations 2024-08-31 07:58:19 -07:00
Paul Gauthier
8678a6455f fixes #1264 2024-08-31 07:05:11 -07:00
Paul Gauthier
31b7a89cf0 sort the autocompletions 2024-08-30 13:31:05 -07:00
Paul Gauthier
dea8c0960b include foo in completions as well as path/to/foo matches 2024-08-30 12:39:51 -07:00
Paul Gauthier
f6b50fa4c6 feat: prevent auto-completion after space in command input 2024-08-30 12:37:52 -07:00
Paul Gauthier
0dfedecff5 fixes #1231 2024-08-30 06:47:45 -07:00
Paul Gauthier (aider)
33dde5e4a4 style: remove unused variable in exception handling 2024-08-29 07:42:48 -07:00
Paul Gauthier
50555643d1 refactor: remove unused error logging in AutoCompleter 2024-08-29 07:42:40 -07:00
Paul Gauthier
ad3f29bdce fix: improve error handling for lexer exceptions in AutoCompleter and RepoMap 2024-08-28 22:49:22 -07:00
Paul Gauthier
ce397b71e8 do not try pexpect on windows; fix time.clock error on windows 2024-08-28 22:26:48 -07:00
Paul Gauthier
ac6c76d530 fix /model completions 2024-08-28 15:57:06 -07:00
Paul Gauthier
a3554ffbbc fix /read completions 2024-08-27 16:40:07 -07:00
Paul Gauthier
530dae2a98 feat: implement ThreadedCompleter for improved autocomplete performance 2024-08-27 16:33:26 -07:00
Paul Gauthier
31f7856f41 feat: enhance autocomplete functionality for code tokens and filenames 2024-08-27 15:24:45 -07:00
Paul Gauthier
9c35556c2a feat: add user input logging and history for /run command responses 2024-08-27 14:18:56 -07:00
Paul Gauthier
92667c7963 feat: log user input from prompt function in chat history 2024-08-27 14:15:23 -07:00
Paul Gauthier (aider)
6fb3416757 fix: Remove unused import of Validator 2024-08-24 09:05:19 -07:00
Paul Gauthier
e5b0fe3dfd fix: Improve confirm_ask function in io.py 2024-08-24 09:05:14 -07:00
Paul Gauthier
0b33892137 fix: Improve input validation and handling in InputOutput.user_confirm 2024-08-24 09:00:16 -07:00
Paul Gauthier (aider)
231e962c7f feat: Expand valid_responses to their whole words 2024-08-24 08:57:28 -07:00
Paul Gauthier
b26550d93f fix: Add ConfirmGroup to confirm URL addition 2024-08-23 16:50:38 -07:00
Paul Gauthier
47294e7609 fix: Add show_group attribute to ConfirmGroup and initialize it based on the number of items 2024-08-23 16:44:58 -07:00
Paul Gauthier
f85db450a1 fix: Improve input validation and handling for yes/no/all/skip options 2024-08-23 16:42:29 -07:00
Paul Gauthier (aider)
3e0c7fd248 build: build the list of valid responses in parallel to building question, but don't change the logic for question 2024-08-23 16:25:05 -07:00
Paul Gauthier
2dc2b45d15 fix: Update input prompt for yes/no questions 2024-08-23 16:24:16 -07:00
Paul Gauthier (aider)
3055f14d70 fix: only show All and Skip options if group is not none 2024-08-23 16:20:58 -07:00
Paul Gauthier (aider)
9ed83dd467 style: Improve readability of conditional expressions 2024-08-23 16:20:08 -07:00
Paul Gauthier (aider)
2643cc8643 fix: Exclude "All" option and don't honor group preference when explicit_yes_required is True 2024-08-23 16:20:04 -07:00
Paul Gauthier (aider)
6aae2bc794 fix: Move imports to the top of the file
feat: Implement ConfirmGroup preference handling in confirm_ask
2024-08-23 16:19:05 -07:00
Paul Gauthier (aider)
c0871449ac style: Format code with consistent indentation 2024-08-23 16:18:55 -07:00
Paul Gauthier (aider)
1be65f9c77 feat: Add group parameter to confirm_ask function 2024-08-23 16:18:52 -07:00
Paul Gauthier (aider)
16c1d21bc0 style: Run linter 2024-08-23 16:17:21 -07:00
Paul Gauthier (aider)
577c38ec29 feat: Add ConfirmGroup dataclass 2024-08-23 16:17:17 -07:00
Paul Gauthier (aider)
6185f8f271 style: Fix formatting in io.py 2024-08-23 16:15:02 -07:00
Paul Gauthier (aider)
7805aafe0a fix: Update confirm_ask function in aider/io.py 2024-08-23 16:14:59 -07:00
Paul Gauthier (aider)
97b47602e1 feat: Add explicit_yes_required param to confirm_ask 2024-08-21 21:30:36 -07:00
Paul Gauthier
99f330f30b fix: Improve formatting of file list and edit format in input prompt 2024-08-21 16:08:52 -07:00
Paul Gauthier (aider)
b79776f78f style: Format code according to linter rules 2024-08-21 16:05:52 -07:00
Paul Gauthier (aider)
a9a1f5e247 fix: Add edit_format to get_input method 2024-08-21 16:05:48 -07:00
Paul Gauthier (aider)
25f9886a40 feat: Always display file(s) on line before prompt 2024-08-21 16:05:24 -07:00