Commit Graph

1473 Commits

Author SHA1 Message Date
Daniel Riccio
6d68edef3e refactor: implement Git fallback strategy in edit processing
- Introduced a new Git fallback strategy for handling edits when confidence levels are low.
- Replaced the previous Git edit strategy with a more robust approach that utilizes temporary directories and commits for original, search, and replace states.
- Enhanced error handling and logging for better debugging during the edit process.
- Updated the main edit function to incorporate the Git fallback strategy, ensuring it is attempted when other strategies fail.
- Improved overall structure and readability of the applyGitFallback function, streamlining the process of applying changes using Git.
2025-01-10 17:34:44 -05:00
Daniel Riccio
058431eaf1 chore: update dependencies
- Added @types/tmp and simple-git dependencies.
- Updated tmp dependency version to 0.2.3.
- Removed isomorphic-git and memfs dependencies.
2025-01-10 17:32:54 -05:00
Daniel Riccio
ab31aea551 refactor: enhance context handling and confidence validation in edit strategies
- Improved the applyContextMatching function to better track context lines and handle changes more accurately.
- Updated the applyEdit function to enforce a stricter confidence check, now requiring a confidence level of 1 for successful edits.
- Refined the processing logic for addition and removal changes, ensuring more reliable diff application.
- Enhanced debugging capabilities with clearer logging and validation checks for edit results.
2025-01-09 16:38:32 -05:00
Daniel Riccio
5351b3d981 refactor: improve the prompt to prevent absurd amounts of context being generated 2025-01-09 12:05:36 -05:00
Daniel Riccio
44dc489e49 revert: lower the confidence levels 2025-01-08 17:18:09 -05:00
Daniel Riccio
9591ae062a Refactor edit strategies and confidence validation in unified diff processing
- Enhanced the applyContextMatching and applyDMP functions to improve handling of context and edit changes.
- Updated confidence validation logic to ensure stricter checks, now requiring a minimum confidence of 1 for successful edits.
- Refined the way changes are processed, including better tracking of removal and addition changes.
- Improved the validation of edit results by incorporating strategy-specific checks and logging for better debugging.
- Adjusted the applyEdit function to ensure strategies are applied in a more robust manner, with clearer handling of debug mode.
2025-01-08 17:13:46 -05:00
Daniel Riccio
995692c48e Improve strategies and confidence system 2025-01-08 12:28:31 -05:00
Daniel Riccio
594481643b Add New Unified Diff Strategy Implementation
- Introduced a new unified diff strategy with support for context matching, DMP, and Git-based edits.
- Implemented helper functions for parsing unified diffs and evaluating similarity.
- Added types for changes, hunks, and diffs to enhance type safety.
- Created a main edit function that applies strategies sequentially based on confidence levels.
- Included detailed descriptions and usage examples for the new strategy.
2025-01-07 19:01:12 -05:00
Daniel Riccio
2857dd4996 Refactor test cases in search-replace and unified strategies to use async/await for applyDiff method, ensuring consistent handling of asynchronous operations across all tests. 2025-01-07 19:00:29 -05:00
Daniel Riccio
70cf27071b Refactor applyDiff methods in search-replace and unified strategies to return Promises for asynchronous handling 2025-01-07 18:59:55 -05:00
Daniel Riccio
420c6c72dd Replace SearchReplaceDiffStrategy with NewUnifiedDiffStrategy in getDiffStrategy function 2025-01-07 18:59:16 -05:00
Daniel Riccio
612d7020f3 Add unit tests for NewUnifiedDiffStrategy 2025-01-07 18:58:23 -05:00
Daniel Riccio
4356cffb0d Refactor applyDiff method to return a Promise and add logging for diff results 2025-01-07 18:57:40 -05:00
Daniel Riccio
6bcde01778 Update package dependencies: add new type definitions and libraries 2025-01-07 18:56:03 -05:00
Matt Rubens
bd888d8f5c Merge pull request #189 from RooVetGit/o1_model
Add the o1 model
2025-01-07 15:12:36 -05:00
Matt Rubens
50b1752e4e Merge pull request #293 from RooVetGit/better_api_error_messages
Better API error messages
2025-01-07 14:01:25 -05:00
Matt Rubens
00ac5b48bf Better API error messages 2025-01-07 13:58:53 -05:00
Matt Rubens
0aa5f1fb85 Add the o1 model 2025-01-07 13:33:47 -05:00
Matt Rubens
537514de44 Merge pull request #292 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-07 10:53:39 -05:00
R00-B0T
305efaa7d0 Updating CHANGELOG.md format 2025-01-07 15:51:47 +00:00
github-actions[bot]
69a85b2093 changeset version bump 2025-01-07 15:51:07 +00:00
Matt Rubens
53fd3d17b5 Merge pull request #291 from RooVetGit/retry-request-control
Retry request control
2025-01-07 10:50:12 -05:00
Matt Rubens
f7a98c7f51 Release 2025-01-07 10:38:51 -05:00
Matt Rubens
0ff8fe45d4 UI tweaks 2025-01-07 10:38:51 -05:00
Matt Rubens
c9de9cda66 Revert some whitespace changes 2025-01-07 10:31:42 -05:00
RaySinner
fe22d1ff2d feat: add retry request control with delay settings
- Add requestDelaySeconds setting for configuring delay between retry attempts
- Add alwaysApproveResubmit option for automatic retry approval
- Add api_req_retry_delayed message type for delayed retries
- Update UI components to support new retry control settings
2025-01-07 10:21:51 -05:00
Matt Rubens
631d9b9e87 Merge pull request #289 from RooVetGit/remove_api_proposals
Remove API proposals
2025-01-07 00:08:17 -05:00
Matt Rubens
80387a4d27 Remove API proposals 2025-01-07 00:05:23 -05:00
Matt Rubens
ec69d3fdc7 Merge pull request #288 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-06 23:42:44 -05:00
R00-B0T
c533fe08a5 Updating CHANGELOG.md format 2025-01-07 04:38:27 +00:00
github-actions[bot]
7a88aaf96f changeset version bump 2025-01-07 04:37:51 +00:00
Matt Rubens
02ed1b1e6d Merge pull request #287 from RooVetGit/single_delete
Allow deleting single messages
2025-01-06 23:36:54 -05:00
Matt Rubens
87ba95b288 Allow deleting single messages 2025-01-06 23:27:32 -05:00
Mike C
ae2e429fc3 Merge pull request #270 from RooVetGit/feat/full_Integration_Tests
Set up vscode integration test
2025-01-06 22:00:08 -06:00
Matt Rubens
6beb90ef98 Merge pull request #285 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-06 13:11:17 -05:00
R00-B0T
9c65eeefbf Updating CHANGELOG.md format 2025-01-06 18:08:56 +00:00
github-actions[bot]
ede7e8c8d7 changeset version bump 2025-01-06 18:08:19 +00:00
Matt Rubens
bf81cee0fa Merge pull request #284 from RooVetGit/git_mentions
Add a Git section to the context mentions
2025-01-06 13:07:25 -05:00
Matt Rubens
7e9ea7ac28 Add a Git section to the context mentions 2025-01-06 12:17:26 -05:00
Matt Rubens
6e834d2fc3 Add missing deepseek check 2025-01-06 11:54:58 -05:00
Matt Rubens
b32029bf2b Merge pull request #283 from RooVetGit/changeset-release/main
Changeset version bump
2025-01-05 22:50:06 -05:00
R00-B0T
c38da92d72 Updating CHANGELOG.md format 2025-01-06 03:48:20 +00:00
github-actions[bot]
6d0b386595 changeset version bump 2025-01-06 03:47:42 +00:00
Matt Rubens
7383a0514a Merge pull request #282 from RooVetGit/open_ai_streaming_toggle
Streaming checkbox for OpenAI-compatible providers
2025-01-05 22:46:50 -05:00
Matt Rubens
38df02c43c Add changeset 2025-01-05 22:41:31 -05:00
Matt Rubens
26f55d9708 Update README 2025-01-05 21:04:20 -05:00
Matt Rubens
5e8d804d2b Add test 2025-01-05 20:52:06 -05:00
Matt Rubens
124dc46fae Merge pull request #281 from RooVetGit/glama_fixes
Glama fixes
2025-01-05 20:42:06 -05:00
Matt Rubens
2cdfff02c0 Streaming checkbox for OpenAI-compatible providers 2025-01-05 20:34:54 -05:00
Frank
ac776cc8bf fix: adjust log wording 2025-01-05 19:25:52 -05:00