Commit graph

1147 commits

Author SHA1 Message Date
Paul Gauthier
989c557314 shell cmds, not code 2024-08-20 18:02:44 -07:00
Paul Gauthier
919ea05482 ignore shell edits in base coder 2024-08-20 17:50:31 -07:00
Paul Gauthier
fa7be35ec9 fix: Handle errors in EditBlockCoder more gracefully 2024-08-20 17:33:23 -07:00
Paul Gauthier (aider)
b229661d0a style: Format code with linter 2024-08-20 17:31:40 -07:00
Paul Gauthier (aider)
359e4129c6 fix: Combine stdout and stderr, output directly without additional messages 2024-08-20 17:31:36 -07:00
Paul Gauthier
8d0c2b1667 fix: Remove unnecessary debug statements and improve shell command confirmation prompt 2024-08-20 17:31:34 -07:00
Paul Gauthier (aider)
7bcd6d4ebb style: format code with linter 2024-08-20 17:28:08 -07:00
Paul Gauthier (aider)
6f0d9a09df feat: Implement shell command execution in EditBlockCoder 2024-08-20 17:28:04 -07:00
Paul Gauthier
682294118d fix: Dump edits in EditBlockCoder 2024-08-20 17:28:03 -07:00
Paul Gauthier (aider)
9f3cdf1a94 fix: Remove unused variable shell_type 2024-08-20 17:04:34 -07:00
Paul Gauthier
347f3fe140 fix: Handle case where edit path is None 2024-08-20 17:04:27 -07:00
Paul Gauthier (aider)
72bc851ac0 fix: Implement line-by-line processing for SEARCH/REPLACE and shell code blocks 2024-08-20 16:23:07 -07:00
Paul Gauthier
f198c4a691 fix: Add debug logging to EditBlockCoder 2024-08-20 16:23:06 -07:00
Paul Gauthier (aider)
574efcd35d fix: Handle shell commands in apply_edits method 2024-08-20 13:40:28 -07:00
Paul Gauthier (aider)
5f4d6bc4a5 feat: Add support for executing shell commands in apply_edits 2024-08-20 13:31:14 -07:00
Paul Gauthier
c4855c84da fix: Remove unnecessary metadata from EditBlockCoder 2024-08-20 13:31:13 -07:00
Paul Gauthier (aider)
a0f9989f1c style: format shell code block starts 2024-08-20 13:28:48 -07:00
Paul Gauthier (aider)
64b92c8d89 feat: Expand support for commonly used shells 2024-08-20 13:28:44 -07:00
Paul Gauthier (aider)
7ebbb3d4f4 fix: Expand code block detection to support various Windows shells 2024-08-20 13:28:10 -07:00
Paul Gauthier (aider)
3984716608 style: Apply linter formatting changes 2024-08-20 13:26:31 -07:00
Paul Gauthier (aider)
9dea3f48cb feat: Add support for scanning and yielding ```bash blocks in find_original_update_blocks 2024-08-20 13:26:27 -07:00
Paul Gauthier
ace983730a shell commands prompt 2024-08-20 12:50:04 -07:00
Paul Gauthier
c13b277070 ModelSettings.reminder_as_sys_msg:true/false -> reminder:sys/user/None 2024-08-20 10:51:37 -07:00
Paul Gauthier (aider)
455487e5a9 fix: Round token counts properly for large numbers 2024-08-20 09:38:04 -07:00
Paul Gauthier (aider)
08fe37a684 fix: Add whitespace around arithmetic operators in format_tokens function 2024-08-20 09:36:23 -07:00
Paul Gauthier (aider)
93fe9007f0 feat: Update calculate_and_show_tokens_and_cost to format token counts 2024-08-20 09:36:04 -07:00
Paul Gauthier
2dd7d2e0b6 sssh 2024-08-19 14:54:44 -07:00
Paul Gauthier
4c2c0ac871 Handle all the token/cost corner cases 2024-08-19 14:19:35 -07:00
Paul Gauthier
b200bde319 fix: Add cache headers for prompts when using a model with cache control 2024-08-19 13:34:57 -07:00
Paul Gauthier
53db8cfa82 fix: Update model output formatting in base_coder.py 2024-08-18 13:17:26 -07:00
Paul Gauthier (aider)
4d36518de0 feat: Add symbol to announcement if prompt caching is enabled and supported 2024-08-18 13:14:38 -07:00
Paul Gauthier
ded270ee8b feat: Add force_refresh option to get_repo_map method 2024-08-18 13:07:38 -07:00
Paul Gauthier
36663cf04e fix: Update content handling in ChatChunks class
feat: Add date-based caching for prompts
refactor: Simplify current date/time formatting in Coder class
2024-08-17 08:47:43 -07:00
Paul Gauthier (aider)
a0fd982546 style: Wrap long lines in base_coder.py 2024-08-17 07:11:14 -07:00
Paul Gauthier (aider)
0f2211c321 feat: Add cached token reporting in calculate_and_show_tokens_and_cost 2024-08-17 07:11:09 -07:00
Paul Gauthier
77be2b37d3 feat: Add repo-map refresh information to output 2024-08-17 07:06:31 -07:00
Paul Gauthier
022d103a99 fix: Add cache control headers to chat messages 2024-08-17 07:02:56 -07:00
Paul Gauthier
0bd4dc4622 fix: Remove duplicate parameter cache_prompts in Coder constructor 2024-08-17 06:49:03 -07:00
Paul Gauthier
7850236ba2 feat: Add cache_prompts parameter to Coder constructor 2024-08-17 06:48:12 -07:00
Paul Gauthier (aider)
f9ed868076 feat: Add map_refresh parameter to Coder and pass it to RepoMap 2024-08-17 06:36:21 -07:00
Paul Gauthier (aider)
ce10b89896 style: format code using linter 2024-08-16 16:42:39 -07:00
Paul Gauthier (aider)
1daee69f15 fix: Break apart get_files_messages into separate methods
feat: Refactor ChatChunks class to include new attributes
2024-08-16 16:42:34 -07:00
Paul Gauthier
52b6e76434 lint 2024-08-16 16:37:57 -07:00
Paul Gauthier (aider)
5095b7ccd0 feat: Move all_messages method to ChatChunks class 2024-08-16 16:37:40 -07:00
Paul Gauthier
bab6a0df25 feat: Add all_messages method to ChatChunks class 2024-08-16 16:37:39 -07:00
Paul Gauthier
a4f7ac7463 fix: Update token count calculation for image messages 2024-08-16 16:36:57 -07:00
Paul Gauthier (aider)
21eb02483b feat: add all_messages() method to return all messages concatenated as a list 2024-08-16 16:36:03 -07:00
Paul Gauthier (aider)
860c471d31 style: Fix linter issues in base_coder.py 2024-08-16 16:35:08 -07:00
Paul Gauthier (aider)
e513c5415c fix: Update ChatChunks dataclass fields to use List type annotations 2024-08-16 16:35:04 -07:00
Paul Gauthier (aider)
9bdf41e753 style: apply linter edits 2024-08-16 16:34:47 -07:00