@ai-sdk/amazon-bedrock 4.0.41 → 4.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @ai-sdk/amazon-bedrock
2
2
 
3
+ ## 4.0.42
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c33343b]
8
+ - @ai-sdk/anthropic@3.0.32
9
+
3
10
  ## 4.0.41
4
11
 
5
12
  ### Patch Changes
@@ -35,7 +35,7 @@ var import_provider_utils = require("@ai-sdk/provider-utils");
35
35
  var import_aws4fetch = require("aws4fetch");
36
36
 
37
37
  // src/version.ts
38
- var VERSION = true ? "4.0.41" : "0.0.0-test";
38
+ var VERSION = true ? "4.0.42" : "0.0.0-test";
39
39
 
40
40
  // src/bedrock-sigv4-fetch.ts
41
41
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
@@ -24,7 +24,7 @@ import {
24
24
  import { AwsV4Signer } from "aws4fetch";
25
25
 
26
26
  // src/version.ts
27
- var VERSION = true ? "4.0.41" : "0.0.0-test";
27
+ var VERSION = true ? "4.0.42" : "0.0.0-test";
28
28
 
29
29
  // src/bedrock-sigv4-fetch.ts
30
30
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
package/dist/index.js CHANGED
@@ -1874,7 +1874,7 @@ var import_provider_utils7 = require("@ai-sdk/provider-utils");
1874
1874
  var import_aws4fetch = require("aws4fetch");
1875
1875
 
1876
1876
  // src/version.ts
1877
- var VERSION = true ? "4.0.41" : "0.0.0-test";
1877
+ var VERSION = true ? "4.0.42" : "0.0.0-test";
1878
1878
 
1879
1879
  // src/bedrock-sigv4-fetch.ts
1880
1880
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
package/dist/index.mjs CHANGED
@@ -1891,7 +1891,7 @@ import {
1891
1891
  import { AwsV4Signer } from "aws4fetch";
1892
1892
 
1893
1893
  // src/version.ts
1894
- var VERSION = true ? "4.0.41" : "0.0.0-test";
1894
+ var VERSION = true ? "4.0.42" : "0.0.0-test";
1895
1895
 
1896
1896
  // src/bedrock-sigv4-fetch.ts
1897
1897
  function createSigV4FetchFunction(getCredentials, fetch = globalThis.fetch) {
@@ -539,6 +539,7 @@ const textEditorTool = bedrock.tools.textEditor_20250429({
539
539
  file_text,
540
540
  insert_line,
541
541
  new_str,
542
+ insert_text,
542
543
  old_str,
543
544
  view_range,
544
545
  }) => {
@@ -558,6 +559,7 @@ const textEditorTool = bedrock.tools.textEditor_20241022({
558
559
  file_text,
559
560
  insert_line,
560
561
  new_str,
562
+ insert_text,
561
563
  old_str,
562
564
  view_range,
563
565
  }) => {
@@ -573,7 +575,8 @@ Parameters:
573
575
  - `path` (string): Absolute path to file or directory, e.g. `/repo/file.py` or `/repo`.
574
576
  - `file_text` (string, optional): Required for `create` command, with the content of the file to be created.
575
577
  - `insert_line` (number, optional): Required for `insert` command. The line number after which to insert the new string.
576
- - `new_str` (string, optional): New string for `str_replace` or `insert` commands.
578
+ - `new_str` (string, optional): New string for `str_replace` command.
579
+ - `insert_text` (string, optional): Required for `insert` command, containing the text to insert.
577
580
  - `old_str` (string, optional): Required for `str_replace` command, containing the string to replace.
578
581
  - `view_range` (number[], optional): Optional for `view` command to specify line range to show.
579
582
 
@@ -1414,7 +1417,7 @@ const result = await generateText({
1414
1417
  model: bedrockAnthropic('us.anthropic.claude-3-7-sonnet-20250219-v1:0'),
1415
1418
  tools: {
1416
1419
  str_replace_editor: bedrockAnthropic.tools.textEditor_20241022({
1417
- execute: async ({ command, path, old_str, new_str }) => {
1420
+ execute: async ({ command, path, old_str, new_str, insert_text }) => {
1418
1421
  // Implement your text editing logic here
1419
1422
  return 'File updated successfully';
1420
1423
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/amazon-bedrock",
3
- "version": "4.0.41",
3
+ "version": "4.0.42",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -38,9 +38,9 @@
38
38
  "@smithy/eventstream-codec": "^4.0.1",
39
39
  "@smithy/util-utf8": "^4.0.0",
40
40
  "aws4fetch": "^1.0.20",
41
- "@ai-sdk/anthropic": "3.0.31",
42
- "@ai-sdk/provider-utils": "4.0.11",
43
- "@ai-sdk/provider": "3.0.6"
41
+ "@ai-sdk/anthropic": "3.0.32",
42
+ "@ai-sdk/provider": "3.0.6",
43
+ "@ai-sdk/provider-utils": "4.0.11"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/node": "20.17.24",