Commit Graph

1042 Commits

Author SHA1 Message Date
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
Abel Trejo Pineda
7e05dc0139 Merge pull request #77 from RooVetGit/chores/release-fixes
Release fixes
2024-12-11 12:22:22 -08:00
a8trejo
21f83f64d8 Minor script fix 2024-12-11 12:10:55 -08:00
a8trejo
5eafdbcc57 release fixes 2024-12-11 12:04:42 -08:00
Matt Rubens
d03465358c Merge pull request #76 from RooVetGit/gemini_2_fix 2024-12-11 14:05:20 -05: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
Abel Trejo Pineda
2f2c0609ba Merge pull request #61 from RooVetGit/chores/changeset-releases
Changeset AI Releases and code guardrails
2024-12-11 10:38:43 -08:00
Matt Rubens
65bbefed55 Add Gemini 2.0 2024-12-11 13:36:46 -05:00
Matt Rubens
70639ec0df Merge pull request #67 from RooVetGit/alert-autofix-2
Fix code scanning alert no. 2: Prototype-polluting function
2024-12-11 13:04:01 -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
26ff5837de Merge pull request #72 from cline/main
fix: create a merge commit: merge cline:main to RooVetGit:main
2024-12-11 12:39:34 -05:00
Matt Rubens
355dc822dd Better error handling when unable to apply diffs (#71) 2024-12-11 11:20:01 -05:00
lloydchang
f0259aecad merge cline:main to RooVetGit:main (#63)
Co-authored-by: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com>
2024-12-11 11:08:55 -05:00
Matt Rubens
8e36c555cb Delete .github/ISSUE_TEMPLATE/config.yml (#69) 2024-12-11 10:38:25 -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
b2f0aaec8a Fix code scanning alert no. 2: Prototype-polluting function
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2024-12-11 02:18:49 -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
lloydchang
00b14d6dfc feat: add dependabot.yml (#58) 2024-12-10 20:48:36 -08:00
Matt Rubens
ba8bed90d8 Handle Windows line endings (#62) 2024-12-10 20:24:51 -05:00
a8trejo
558ee78804 Updated readme file 2024-12-10 16:53:48 -08:00
a8trejo
c0941d4b99 Minor updates 2024-12-10 16:32:46 -08:00
a8trejo
9c2634b662 Adding doc comments generated by cline 2024-12-10 15:23:02 -08:00
a8trejo
2b8e85ab52 Making base prompt visible 2024-12-10 15:04:56 -08:00
a8trejo
eb1c18cc65 Ordering package.json in alphabetic order 2024-12-10 14:33:12 -08:00
a8trejo
a63a739a90 Adding PR template 2024-12-10 14:30:16 -08:00
a8trejo
3ec7bbc5d3 Updating husky hook and adding lint-staged 2024-12-10 14:27:28 -08:00
a8trejo
51e034c399 Adding openai generated releases working along changesets 2024-12-10 14:22:30 -08:00
a8trejo
e9d83dbded Updating readme and ellipsis yaml 2024-12-10 13:58:15 -08:00
a8trejo
e77e39b4b5 Adding basic npmrc file to avoid code artifact issues 2024-12-10 13:55:42 -08:00
a8trejo
0d00bc18a0 Adding changeset config 2024-12-10 13:53:45 -08:00
a8trejo
84c808a620 Adding husky hooks 2024-12-10 13:33:35 -08:00
Matt Rubens
6e1f6833b8 Add a search-and-replace diff strategy (#57) 2024-12-10 12:44:38 -05:00
lloydchang
7f764f664e feat: add codeql.yml (#59) 2024-12-10 07:25:20 -08:00
ColemanRoo
1d47fa67c9 Add copy prompt to history (#56) 2024-12-09 15:25:50 -06: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
John Stearns
23486f1d3a Removing manual vsix steps in favor of marketplace publishing (#47) 2024-12-08 07:44:29 -08:00
Matt Rubens
c78216af30 Fix issue where sound effects setting wasn't working (#51) 2024-12-07 22:54:38 -05:00
Matt Rubens
e180205327 Add summarized changelog to the top of the README (#49) 2024-12-07 17:41:10 -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
dafe286076 Restoring vsix build target (#46) 2024-12-07 09:53:21 -08:00
John Stearns
423e2af520 Continuing work on support for OpenRouter compression (#43) 2024-12-07 09:38:13 -08:00
John Stearns
0ac3dd5753 Enabling unit tests for CI (#44) 2024-12-06 17:12:41 -08:00
Matt Rubens
733e236725 Remove cli directory (#41) 2024-12-05 17:18:02 -08:00