@ai-sdk/anthropic 3.0.54 → 3.0.56

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,18 @@
1
1
  # @ai-sdk/anthropic
2
2
 
3
+ ## 3.0.56
4
+
5
+ ### Patch Changes
6
+
7
+ - e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream providers
8
+ - e49c34d: feat(anthropic): expose anthropic.anthropicBeta to downstream provider
9
+
10
+ ## 3.0.55
11
+
12
+ ### Patch Changes
13
+
14
+ - 7531e72: fix(provider/anthropic): handle encrypted_code_execution_result for multi-turn with web_fetch/web_search 20260209
15
+
3
16
  ## 3.0.54
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -178,6 +178,7 @@ declare const anthropicLanguageModelOptions: z.ZodObject<{
178
178
  fast: "fast";
179
179
  standard: "standard";
180
180
  }>>;
181
+ anthropicBeta: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
182
  contextManagement: z.ZodOptional<z.ZodObject<{
182
183
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
183
184
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
@@ -451,6 +452,15 @@ declare const anthropicTools: {
451
452
  type: "code_execution_output";
452
453
  file_id: string;
453
454
  }>;
455
+ } | {
456
+ type: "encrypted_code_execution_result";
457
+ encrypted_stdout: string;
458
+ stderr: string;
459
+ return_code: number;
460
+ content: Array<{
461
+ type: "code_execution_output";
462
+ file_id: string;
463
+ }>;
454
464
  } | {
455
465
  type: "bash_code_execution_result";
456
466
  content: Array<{
@@ -513,6 +523,15 @@ declare const anthropicTools: {
513
523
  type: "code_execution_output";
514
524
  file_id: string;
515
525
  }>;
526
+ } | {
527
+ type: "encrypted_code_execution_result";
528
+ encrypted_stdout: string;
529
+ stderr: string;
530
+ return_code: number;
531
+ content: Array<{
532
+ type: "code_execution_output";
533
+ file_id: string;
534
+ }>;
516
535
  } | {
517
536
  type: "bash_code_execution_result";
518
537
  content: Array<{
package/dist/index.d.ts CHANGED
@@ -178,6 +178,7 @@ declare const anthropicLanguageModelOptions: z.ZodObject<{
178
178
  fast: "fast";
179
179
  standard: "standard";
180
180
  }>>;
181
+ anthropicBeta: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
182
  contextManagement: z.ZodOptional<z.ZodObject<{
182
183
  edits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
183
184
  type: z.ZodLiteral<"clear_tool_uses_20250919">;
@@ -451,6 +452,15 @@ declare const anthropicTools: {
451
452
  type: "code_execution_output";
452
453
  file_id: string;
453
454
  }>;
455
+ } | {
456
+ type: "encrypted_code_execution_result";
457
+ encrypted_stdout: string;
458
+ stderr: string;
459
+ return_code: number;
460
+ content: Array<{
461
+ type: "code_execution_output";
462
+ file_id: string;
463
+ }>;
454
464
  } | {
455
465
  type: "bash_code_execution_result";
456
466
  content: Array<{
@@ -513,6 +523,15 @@ declare const anthropicTools: {
513
523
  type: "code_execution_output";
514
524
  file_id: string;
515
525
  }>;
526
+ } | {
527
+ type: "encrypted_code_execution_result";
528
+ encrypted_stdout: string;
529
+ stderr: string;
530
+ return_code: number;
531
+ content: Array<{
532
+ type: "code_execution_output";
533
+ file_id: string;
534
+ }>;
516
535
  } | {
517
536
  type: "bash_code_execution_result";
518
537
  content: Array<{