Matt Rubens
4b27264a21
Revert "Merge pull request #125 from RooVetGit/search_replace_prompt_hotfix"
...
This reverts commit 7d7a8563b7 , reversing
changes made to 868f4cddc9 .
2024-12-15 22:38:21 -05:00
Matt Rubens
0c08c0fe96
Search/replace prompt hotfix for Gemini
2024-12-15 21:00:15 -05:00
Matt Rubens
24474683f4
Fix test
2024-12-15 19:56:11 -05:00
Matt Rubens
c1dfdeda22
Better error messages for diffs
2024-12-15 19:48:55 -05:00
Matt Rubens
25da0b1907
Negative indentation
2024-12-15 16:53:48 -05:00
Matt Rubens
8159c51b03
Update omission format and keywords
2024-12-15 15:42:37 -05:00
Matt Rubens
468d317f2f
More indentation tests
2024-12-15 15:28:24 -05:00
Matt Rubens
e4c23fb61d
Prioritize exact line matches in search/replace
2024-12-15 15:19:58 -05:00
Premshay
acf472aae0
Update api.ts
2024-12-15 11:28:54 +02:00
Premshay
8460a796e9
Merge branch 'main' into main
2024-12-15 11:15:43 +02:00
Matt Rubens
2292372e42
Improvements to search/replace diff
2024-12-14 20:45:06 -05:00
Matt Rubens
f3b77c9c62
Support fuzzy matching for apply_diff
2024-12-14 13:52:47 -05:00
Matt Rubens
3d7ff32406
Allow enabling/disabling of MCP servers
2024-12-14 01:39:25 -05:00
Matt Rubens
b2c8805e5b
Update the prompt to encourage diff edits when the box is checked
2024-12-13 23:31:01 -05:00
Matt Rubens
23efdeaf35
More safety around always allowing MCP
2024-12-13 17:32:26 -05:00
Matt Rubens
1346f1280c
MCP checkbox for always allow
2024-12-13 16:14:13 -05:00
Matt Rubens
6ee118e0a2
Merge pull request #86 from RooVetGit/fix-openai-compatible-streaming
...
Add 'Include stream options' checkbox for OpenAI-compatible providers
2024-12-13 01:41:15 -05:00
Matt Rubens
77d7fc0a44
Fix indentation bug with diff replacing a single search line
2024-12-13 00:05:23 -05:00
Matt Rubens
be3d8a6166
Incorporate MCP changes ( #93 )
...
Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com >
2024-12-12 23:16:39 -05:00
Matt Rubens
2cfd76c305
Add 'Include stream options' checkbox for OpenAI-compatible providers
2024-12-12 09:20:58 -05:00
Matt Rubens
156cab8cbc
Fix: Add checkbox for stream_options in OpenAI-compatible providers
2024-12-12 08:58:38 -05:00
Cline
1069fda643
Add comprehensive test cases for AwsBedrockHandler
2024-12-11 22:49:02 +02:00
Cline
ca41c54cb5
test(bedrock): add comprehensive test coverage for Bedrock integration
...
- Add tests for AWS Bedrock handler (stream handling, config, errors)
- Add tests for message format conversion (text, images, tools)
- Add tests for stream event parsing and transformation
- Add tests for cross-region inference and prompt cache
- Add tests for metadata and message lifecycle events
2024-12-11 22:48:49 +02:00
Cline
51a57d5bbf
fix(bedrock): improve stream handling and type safety
...
- Fix TypeScript error in ConverseStreamCommand payload
- Add proper JSON parsing for test stream events
- Improve error handling with proper Error objects
- Add test-specific model info with required fields
- Fix cross-region inference and prompt cache config
2024-12-11 22:47:59 +02:00
Cline
140318cecd
feat(api): unify Bedrock provider using Runtime API
...
Problem:
The current Bedrock implementation uses the Bedrock SDK, which requires separate handling for different model types and doesn't provide a unified streaming interface.
Solution:
Integrate the Bedrock Runtime API to provide a single, unified interface for all Bedrock models (Claude and Nova) using the ConverseStream API. This eliminates the need for separate handlers while maintaining all existing functionality.
Key Changes:
- Refactored AwsBedrockHandler to use @aws-sdk/client-bedrock-runtime
- Enhanced bedrock-converse-format.ts to handle all content types and properly transform between Anthropic and Bedrock formats
- Maintained cross-region inference support with proper region prefixing
- Added support for prompt caching configuration
- Improved AWS credentials handling to better support default providers
- Added proper error handling and token tracking for all response types
Dependencies:
- Added @aws-sdk/client-bedrock-runtime for unified API access
- Removed @anthropic-ai/bedrock-sdk dependency
Testing:
- Verified message format conversion for all content types
- Tested cross-region inference functionality
- Validated streaming responses for both Claude and Nova models
This change simplifies the codebase by providing a single, consistent interface for all Bedrock models while maintaining full compatibility with existing features.
2024-12-11 22:47:56 +02:00
Cline
dffc040e7c
feat(bedrock): Add Meta Llama 3, 3.1, and 3.2 models with detailed pricing and context windows
2024-12-11 22:31:32 +02:00
Matt Rubens
0e0c848a96
Fix Gemini 2.0 context window
2024-12-11 14:02:54 -05:00
Matt Rubens
38fe812995
Merge pull request #74 from RooVetGit/gemini_2
...
Add Gemini 2.0
2024-12-11 13:52:52 -05:00
Matt Rubens
65bbefed55
Add Gemini 2.0
2024-12-11 13:36:46 -05:00
Matt Rubens
20c7c575e2
Merge pull request #66 from RooVetGit/alert-autofix-1
...
Fix code scanning alert no. 1: Incomplete URL substring sanitization
2024-12-11 13:03:55 -05:00
Matt Rubens
6092a718fc
Merge pull request #73 from RooVetGit/stop_appending_newline_with_diff
...
Stop appending newlines to files when applying diffs
2024-12-11 13:03:44 -05:00
Matt Rubens
413f10650f
Stop appending newlines to files when applying diffs
2024-12-11 12:42:14 -05:00
Matt Rubens
355dc822dd
Better error handling when unable to apply diffs ( #71 )
2024-12-11 11:20:01 -05:00
lloydchang
9abe3f6916
fix(openai.ts): default to an empty string if undefined
...
Change:
const urlHost = new URL(this.options.openAiBaseUrl).host;
To:
const urlHost = new URL(this.options.openAiBaseUrl ?? "").host;
because the nullish coalescing operator (??) to default to an empty string if this.options.openAiBaseUrl is undefined.
It ensures that the URL constructor always receives a valid string.
2024-12-11 02:37:26 -08:00
lloydchang
7c870733a1
Fix code scanning alert no. 1: Incomplete URL substring sanitization
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-12-11 02:18:04 -08:00
Matt Rubens
ba8bed90d8
Handle Windows line endings ( #62 )
2024-12-10 20:24:51 -05:00
Matt Rubens
6e1f6833b8
Add a search-and-replace diff strategy ( #57 )
2024-12-10 12:44:38 -05:00
Matt Rubens
da31a23499
Create a structure for different diff strategies, starting with unified ( #55 )
2024-12-09 11:04:40 -05:00
Domenico Bochicchio | Asclepyus Srl
39b51fa78f
Added support for gemini-exp-1206 ( #54 )
2024-12-09 09:37:38 -05:00
Matt Rubens
c0b070e6f0
Improvements to apply_diff ( #52 )
2024-12-08 10:51:40 -05:00
Matt Rubens
c78216af30
Fix issue where sound effects setting wasn't working ( #51 )
2024-12-07 22:54:38 -05:00
Matt Rubens
5d9d36c128
Checkbox to experiment with letting Cline edit through diffs ( #48 )
...
Co-authored-by: Jozi <jozigila@gmail.com >
2024-12-07 16:35:55 -05:00
John Stearns
423e2af520
Continuing work on support for OpenRouter compression ( #43 )
2024-12-07 09:38:13 -08:00
Matt Rubens
4b74f290d4
Play sound effects for notifications and events ( #38 )
...
Co-authored-by: HeavenOSK <heavenosk@gmail.com >
2024-12-01 22:25:10 -05:00
lloydchang
b9c274add2
feat(extension.ts): use rocket icon ( #34 )
2024-12-01 17:31:58 -05:00
Matt Rubens
6b8f9f7a45
Expose a list of allowed auto-execute commands ( #31 )
2024-12-01 15:34:36 -05:00
Matt Rubens
cafc2852ca
Allow Roo-Cline to coexist with Cline ( #23 )
...
Co-authored-by: ColemanRoo <michael.coleman@roo.vet >
2024-11-28 14:25:41 -05:00
Matt Rubens
d632e621be
Simplify auto-approving code and make it work better with browser actions ( #21 )
2024-11-28 13:44:02 -05:00
John Stearns
bf0a5c82de
Updating Roo-Cline with the latest cline/cline (11/22)
2024-11-22 15:28:46 -08:00
Matt Rubens
0346fdeecb
Add a setAlwaysAllowBrowser checkbox to settings
2024-11-22 13:37:04 -05:00