@ai-sdk/anthropic 2.0.35 → 2.0.36

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,11 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 2.0.36
4
+
5
+ ### Patch Changes
6
+
7
+ - 5a46f11: add return `file_id` property for anthropic code-execution-20250825 to download output files.
8
+
3
9
  ## 2.0.35
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -147,6 +147,10 @@ declare const anthropicTools: {
147
147
  new_str: string;
148
148
  }, {
149
149
  type: "bash_code_execution_result";
150
+ content: Array<{
151
+ type: "bash_code_execution_output";
152
+ file_id: string;
153
+ }>;
150
154
  stdout: string;
151
155
  stderr: string;
152
156
  return_code: number;
@@ -193,6 +197,10 @@ declare const anthropicTools: {
193
197
  new_str: string;
194
198
  }, {
195
199
  type: "bash_code_execution_result";
200
+ content: Array<{
201
+ type: "bash_code_execution_output";
202
+ file_id: string;
203
+ }>;
196
204
  stdout: string;
197
205
  stderr: string;
198
206
  return_code: number;
package/dist/index.d.ts CHANGED
@@ -147,6 +147,10 @@ declare const anthropicTools: {
147
147
  new_str: string;
148
148
  }, {
149
149
  type: "bash_code_execution_result";
150
+ content: Array<{
151
+ type: "bash_code_execution_output";
152
+ file_id: string;
153
+ }>;
150
154
  stdout: string;
151
155
  stderr: string;
152
156
  return_code: number;
@@ -193,6 +197,10 @@ declare const anthropicTools: {
193
197
  new_str: string;
194
198
  }, {
195
199
  type: "bash_code_execution_result";
200
+ content: Array<{
201
+ type: "bash_code_execution_output";
202
+ file_id: string;
203
+ }>;
196
204
  stdout: string;
197
205
  stderr: string;
198
206
  return_code: number;
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var import_provider4 = require("@ai-sdk/provider");
31
31
  var import_provider_utils20 = require("@ai-sdk/provider-utils");
32
32
 
33
33
  // src/version.ts
34
- var VERSION = true ? "2.0.35" : "0.0.0-test";
34
+ var VERSION = true ? "2.0.36" : "0.0.0-test";
35
35
 
36
36
  // src/anthropic-messages-language-model.ts
37
37
  var import_provider3 = require("@ai-sdk/provider");