Commit Graph

942 Commits

Author SHA1 Message Date
Daniel
cea4d163b2 Merge branch 'main' into improve_diff_prompt 2025-01-18 17:01:21 -05:00
Daniel Riccio
5f348d531e refactor: improve the apply_diff tool to be concise and include step by step guide on how to generate a good diff 2025-01-18 16:56:20 -05:00
Matt Rubens
431ff57435 Merge pull request #405 from vincentsong/feature/vscode-debug
feat: Added VS Code debugging support with webview build and changed output channel from 'Cline' to 'Roo-Cline'
2025-01-18 10:27:42 -05:00
Lunchb0ne
4c16f7a1a3 Remove extra mock from test 2025-01-18 13:31:53 +00:00
Lunchb0ne
7a61e6ab74 Support AWS profile to configure Bedrock Authentication
Added support for configurations under ~/.aws/credentials or ~/.aws/config.
2025-01-18 12:41:46 +00:00
vincentsong
95b6326ca0 feat: Added VS Code debugging support with webview build 2025-01-18 09:41:54 +11:00
Matt Rubens
60a0a824b9 Prettier backfill 2025-01-17 14:11:28 -05:00
Matt Rubens
055998472a Add test and review modes 2025-01-17 13:40:27 -05:00
Matt Rubens
72fe12d096 Refactor modes 2025-01-17 10:03:23 -05:00
Matt Rubens
b35206bc9d Merge pull request #364 from daniel-lxs/new_unified
New unified edit strategy
2025-01-17 02:12:32 -05:00
Daniel Riccio
82a0ffe67a feat: add tests for the git fallback strategy 2025-01-17 02:04:34 -05:00
Daniel Riccio
5a35d7fb2a test: add comprehensive tests for applyContextMatching and applyDMP functions 2025-01-17 02:00:22 -05:00
Daniel Riccio
b089e7ff7c style: format code 2025-01-17 01:41:41 -05:00
Daniel Riccio
fa9e055ea9 refactor: streamline edit result validation and format code 2025-01-17 01:40:42 -05:00
Daniel Riccio
fa49bd804b refactor: standardize code formatting 2025-01-17 01:39:31 -05:00
Daniel Riccio
71fdf88672 refactor: simplify indentation inference and enhance edit strategies
- Refactored the `inferIndentation` function to streamline indentation handling for context and added lines.
- Improved the `applyContextMatching` and `applyDMP` functions for better clarity and efficiency in processing changes.
- Code was formatted
2025-01-17 01:38:44 -05:00
Saoud Rizwan
077fa84374 Add Mistral API provider 2025-01-17 01:11:16 -05:00
Daniel Riccio
9857e31e9c fix: use actual confidence threshold 2025-01-17 00:57:56 -05:00
Daniel Riccio
c710f558f6 test: add comprehensive tests for search strategies 2025-01-17 00:42:03 -05:00
Daniel Riccio
df654f0284 refactor: enhance anchor-based search strategy in Levenshtein match
- Improved the `identifyAnchors` function to return the first and last non-empty lines of the search string.
- Updated the `findAnchorMatch` function to validate anchor uniqueness and context more effectively.
- Removed unused complexity calculations and streamlined the anchor validation process.
2025-01-17 00:40:33 -05:00
Daniel Riccio
815c266fec refactor: remove experimental diff from history since we are using the state 2025-01-16 23:49:11 -05:00
Matt Rubens
808fa5f8e0 Merge remote-tracking branch 'origin/main' into new_unified 2025-01-16 21:53:36 -05:00
Daniel Riccio
ab1a7a511f fix: remove unnecessary console log in new unified diff strategy 2025-01-16 17:15:44 -05:00
Daniel Riccio
3ce2e0c6bf feat: update diff strategy dynamically
- Added `updateDiffStrategy` method to dynamically adjust the diff strategy based on the current state and experimental settings.
- Updated ClineProvider to call `updateDiffStrategy` when the experimental diff strategy is modified, ensuring real-time updates in the Cline instance.
2025-01-16 17:13:25 -05:00
Daniel Riccio
c0d0548479 test: add hunk splitting tests for handling large diffs with non-contiguous changes 2025-01-16 12:49:32 -05:00
Daniel Riccio
04f6e4f03f feat: implement hunk splitting strategy in diff application to better handle large diffs that might fail if the search fails 2025-01-16 12:49:02 -05:00
Matt Rubens
6254e74216 More fixes to checkbox state 2025-01-16 10:42:40 -05:00
Matt Rubens
ee344facda Fixes to the auto approve menu 2025-01-16 03:42:38 -05:00
Matt Rubens
1b60d1e293 Fix VSCode LM 2025-01-16 01:00:07 -05:00
Matt Rubens
b65c8d0ec6 Customize for Roo 2025-01-15 23:48:53 -05:00
Matt Rubens
760c4c30a2 Merge remote-tracking branch 'origin/main' into fix/roo-cline-select-api-config 2025-01-15 20:11:17 -05:00
Matt Rubens
50cae9b174 Merge pull request #367 from RooVetGit/vscode-lm-provider
Add VSCode-LM as a provider
2025-01-15 16:53:04 -05:00
Matt Rubens
6e90bcf4a3 Update openai package and use developer role message for o1 2025-01-15 15:59:37 -05:00
Daniel Riccio
36b7da07d2 fix: enhance error messaging in diff strategy to address potential issues with context lines and version targeting 2025-01-15 12:55:44 -05:00
Daniel Riccio
6c8d7f4951 fix: update tests to handle new experimental diff option and increase the default confidence to 1 2025-01-15 12:23:51 -05:00
Daniel Riccio
22069e8056 fix: remove misplaced async 2025-01-15 12:22:20 -05:00
Daniel Riccio
12f4cc739e fix: correct syntax in GlobalStateKey type definition by removing trailing comma 2025-01-15 11:59:48 -05:00
Daniel
df01edf781 Merge branch 'main' into new_unified 2025-01-15 11:53:27 -05:00
Daniel Riccio
f9a453a44f refactor: update edit and search strategies to use configurable confidence thresholds
- Modified applyContextMatching and applyDMP functions to accept a confidenceThreshold parameter, enhancing flexibility in edit strategies.
- Updated validateEditResult and related functions to utilize the new confidenceThreshold, improving consistency across validation processes.
- Adjusted findExactMatch, findSimilarityMatch, findLevenshteinMatch, and findAnchorMatch functions to incorporate confidenceThreshold, ensuring adaptive behavior based on user settings.
2025-01-15 10:54:25 -05:00
sam hoang
26119644b3 remove console log 2025-01-15 21:24:20 +07:00
sam hoang
40fd397407 fix api config profile 2025-01-15 21:24:18 +07:00
Matt Rubens
c673edd526 Merge remote-tracking branch 'origin/main' into vscode-lm-provider 2025-01-15 01:37:37 -05:00
Daniel Riccio
f696f8e0f1 refactor: remove debug functionality 2025-01-14 18:03:03 -05:00
Daniel Riccio
e6d3db6075 refactor: use confidenceThreshold from the settings in new diff strategy 2025-01-14 17:59:46 -05:00
Daniel Riccio
e00ec0cc3f test: add unit tests for NewUnifiedDiffStrategy constructor and confidence threshold behavior
- Introduced tests for the NewUnifiedDiffStrategy constructor to verify default and custom confidence thresholds.
- Ensured that the minimum confidence threshold is enforced, preventing values below 0.8.
- Enhanced test coverage for the strategy's initialization logic, improving overall reliability and maintainability.
2025-01-14 17:57:55 -05:00
Daniel Riccio
f6e85fa133 feat: introduce experimental diff strategy toggle and enhance diff handling
- Added support for an experimental diff strategy in the Cline class, allowing users to opt for a new unified diff approach.
- Updated the getDiffStrategy function to accommodate the experimental strategy, adjusting the fuzzy match threshold accordingly.
- Integrated experimentalDiffStrategy into the global state management, enabling persistence across sessions.
- Enhanced the ClineProvider and related components to handle the new experimental strategy, including UI updates for user settings.
- Improved task history management to include the experimentalDiffStrategy setting, ensuring consistency in task execution.
- Updated relevant interfaces and types to reflect the new experimentalDiffStrategy property.
2025-01-14 17:57:09 -05:00
Daniel Riccio
a211927097 refactor: enhance error handling and debugging in NewUnifiedDiffStrategy
- Improved error messages for cases where no hunks are found in the diff, providing clearer guidance on format requirements.
- Added detailed debug information for search and edit failures, including context line ratios and potential issues to assist users in troubleshooting.
- Streamlined the logic for determining the cause of edit failures, distinguishing between search and content mismatch errors.
- Enhanced overall readability and maintainability of the code with consistent formatting and structured comments.
2025-01-14 17:09:20 -05:00
Daniel Riccio
5c420bb7e1 refactor: cleanup 2025-01-14 17:02:39 -05:00
Daniel Riccio
b30cb29358 refactor: cleanup 2025-01-14 17:01:46 -05:00
Daniel Riccio
a323a1008e refactor: enhance Git fallback strategy in edit processing
- Improved logging within the applyGitFallback function to provide clearer insights during the commit and cherry-pick processes.
- Streamlined error handling to ensure more informative console outputs when operations fail.
- Maintained consistent formatting and indentation for better readability and maintainability of the code.
- Ensured temporary directory cleanup is handled correctly in all scenarios, preventing potential resource leaks.
2025-01-14 17:00:51 -05:00