Commit graph

837 commits

Author SHA1 Message Date
Paul Gauthier
4129065d6c fix: Add event attribute to Coder class 2024-08-12 16:17:10 -07:00
Paul Gauthier
474ac62391 feat: Add analytics field to Coder class 2024-08-12 16:08:58 -07:00
Paul Gauthier (aider)
73734efe89 feat: Add infinity symbol to edit format if model supports assistant prefill 2024-08-12 15:20:05 -07:00
Paul Gauthier
888211fd48 use litellm's new supports_assistant_prefill 2024-08-12 15:10:02 -07:00
Paul Gauthier
d4ae735d43 be paranoid to avoid self.partial_response_content = None 2024-08-12 14:38:59 -07:00
Paul Gauthier (aider)
3a3d34b8f2 fix: Exclude read-only files from get_addable_relative_files 2024-08-12 14:33:49 -07:00
Paul Gauthier (aider)
64951d3d56 feat: Include read-only files in the list printed above the user input prompt 2024-08-11 10:28:10 -07:00
Paul Gauthier
7e5c5dfa02 fix: Set default edit_format to None if it is "code" 2024-08-11 10:11:14 -07:00
Paul Gauthier
e373c6522f do not preproc the message to helpcoder 2024-08-10 14:21:15 -07:00
Paul Gauthier
6d64e88478 fix: Coder.pretty set by io.pretty 2024-08-10 08:53:26 -07:00
Paul Gauthier
37c40efe37 feat: Add commit_before_message attribute to Coder class 2024-08-10 06:13:02 -07:00
Paul Gauthier (aider)
a75ed2728c feat: Convert commit_before_message to a list and append head before each message 2024-08-10 06:11:23 -07:00
Paul Gauthier (aider)
5f323237ea fix: Remove unnecessary f-string 2024-08-09 19:47:29 -04:00
Paul Gauthier
30d506ab82 fix: Add undo hint after running one command 2024-08-09 19:47:17 -04:00
Paul Gauthier (aider)
d5ff8929fb fix: use get_head() in init_before_message 2024-08-09 19:42:46 -04:00
Paul Gauthier
a120cf37d9 fix: Add check for commit_before_message before showing undo hint 2024-08-09 19:42:42 -04:00
Paul Gauthier (aider)
2526426da7 fix: use get_head() in show_undo_hint 2024-08-09 19:41:46 -04:00
Paul Gauthier (aider)
1a3f4041f7 fix: Show undo hint only if current HEAD is not the same as commit_before_message 2024-08-09 19:40:19 -04:00
Paul Gauthier
82679ee66b fix: Add show_undo_hint method to display undo hint after committing changes 2024-08-09 19:40:16 -04:00
Paul Gauthier (aider)
d9e7d64235 fix: handle case of brand new repository with no commits 2024-08-09 19:35:15 -04:00
Paul Gauthier (aider)
423b6e1ad1 feat: add commit_before_message variable to Coder class and set it in init_before_message 2024-08-09 19:33:59 -04:00
Paul Gauthier
9cf672b428 fix: Add bold formatting to announcement messages
feat: Add bold formatting to commit message output
refactor: Simplify tool_output method in io.py
2024-08-09 19:26:22 -04:00
Paul Gauthier
46dc6a0b90 fix: Add abs_read_only_fnames to get_coder_state 2024-08-09 18:42:23 -04:00
Paul Gauthier
08862c73e7 fix: Remove unnecessary paginate parameter from cmd_diff method 2024-08-09 18:34:54 -04:00
Paul Gauthier (aider)
3eda9297cf feat: Include read-only repo files in get_repo_map 2024-08-09 18:05:00 -04:00
Paul Gauthier
11820ba6c1 Don't paginate cmd_web/diff except as / commands 2024-08-09 17:29:52 -04:00
Paul Gauthier
f1cfbe9c36 cleanup 2024-08-09 16:49:51 -03:00
Paul Gauthier (aider)
a321764b92 fix: Check if read-only files exist in __init__ 2024-08-09 16:39:56 -03:00
Paul Gauthier
2199b1c74e fix: Initialize abs_read_only_fnames after finding common root 2024-08-09 16:39:55 -03:00
Paul Gauthier (aider)
ee6641f2e7 style: Fix formatting and encoding in base_coder.py 2024-08-09 16:32:20 -03:00
Paul Gauthier (aider)
25c36503ff fix: Handle non-existent files in apply_edits 2024-08-09 16:32:15 -03:00
Paul Gauthier (aider)
210d313d52 feat: initialize abs_read_only_fnames using read_only_fnames parameter 2024-08-09 16:31:38 -03:00
Paul Gauthier (aider)
83b142a1bd feat: Add read_only_fnames parameter to __init__ and update create method 2024-08-09 16:30:28 -03:00
Paul Gauthier (aider)
4a39f7c0ca feat: Copy read-only files when creating a new coder from an existing one 2024-08-09 16:28:22 -03:00
Paul Gauthier
d2bd3645ec feat: Add read-only file handling to Coder class 2024-08-09 16:28:19 -03:00
Paul Gauthier (aider)
e7cdd1d7b8 feat: add read-only files messages with read_only_files_prefix before files_content 2024-08-09 16:16:28 -03:00
Paul Gauthier (aider)
9bb2fdf65c feat: add get_read_only_files_content function 2024-08-09 16:14:17 -03:00
Paul Gauthier (aider)
f72e3b3a9b feat: include abs_read_only_fnames when picking the fences 2024-08-09 16:12:21 -03:00
Paul Gauthier
e6f5958278 fix: Add read-only file tracking to base coder 2024-08-09 16:12:19 -03:00
Paul Gauthier (aider)
598ae7b6b9 feat: Add /read command to load files from anywhere 2024-08-09 16:08:46 -03:00
Paul Gauthier
fa58addcfa fix: Reorder files_messages to display images first 2024-08-09 16:08:43 -03:00
Paul Gauthier (aider)
c578d477f1 style: Fix linter issues in base_coder.py 2024-08-09 15:59:21 -03:00
Paul Gauthier (aider)
7e8d6a23fc feat: Include relative filename of image in get_images_message 2024-08-09 15:59:14 -03:00
Paul Gauthier
b0379aa720 feat: Add image file name to image messages 2024-08-09 15:59:12 -03:00
Paul Gauthier
899792ce25 fix ^c handling 2024-08-08 15:54:53 -03:00
Paul Gauthier
7314654ad2 cleanup 2024-08-08 15:53:04 -03:00
Paul Gauthier
4abb2e78b6 Merge branch 'main' into async 2024-08-08 15:23:19 -03:00
Paul Gauthier
2369489321 Clean up countdown 2024-08-08 15:19:24 -03:00
Paul Gauthier (aider)
608c80404e feat: implement countdown for retry in 0.1-second increments 2024-08-08 14:58:43 -03:00
Paul Gauthier
3f6ae4b2d9 Handle retries at a higher level; exceptions come out of the streaming completion object 2024-08-08 14:54:59 -03:00