@ai-sdk/anthropic 3.0.32 → 3.0.33

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.
@@ -646,22 +646,6 @@ var anthropicMessagesChunkSchema = lazySchema2(
646
646
  version: z2.string()
647
647
  })
648
648
  ).nullish()
649
- }).nullish(),
650
- context_management: z2.object({
651
- applied_edits: z2.array(
652
- z2.union([
653
- z2.object({
654
- type: z2.literal("clear_tool_uses_20250919"),
655
- cleared_tool_uses: z2.number(),
656
- cleared_input_tokens: z2.number()
657
- }),
658
- z2.object({
659
- type: z2.literal("clear_thinking_20251015"),
660
- cleared_thinking_turns: z2.number(),
661
- cleared_input_tokens: z2.number()
662
- })
663
- ])
664
- )
665
649
  }).nullish()
666
650
  }),
667
651
  usage: z2.looseObject({
@@ -669,7 +653,23 @@ var anthropicMessagesChunkSchema = lazySchema2(
669
653
  output_tokens: z2.number(),
670
654
  cache_creation_input_tokens: z2.number().nullish(),
671
655
  cache_read_input_tokens: z2.number().nullish()
672
- })
656
+ }),
657
+ context_management: z2.object({
658
+ applied_edits: z2.array(
659
+ z2.union([
660
+ z2.object({
661
+ type: z2.literal("clear_tool_uses_20250919"),
662
+ cleared_tool_uses: z2.number(),
663
+ cleared_input_tokens: z2.number()
664
+ }),
665
+ z2.object({
666
+ type: z2.literal("clear_thinking_20251015"),
667
+ cleared_thinking_turns: z2.number(),
668
+ cleared_input_tokens: z2.number()
669
+ })
670
+ ])
671
+ )
672
+ }).nullish()
673
673
  }),
674
674
  z2.object({
675
675
  type: z2.literal("message_stop")
@@ -3837,9 +3837,9 @@ var AnthropicMessagesLanguageModel = class {
3837
3837
  version: skill.version
3838
3838
  }))) != null ? _m : null
3839
3839
  } : null;
3840
- if (value.delta.context_management) {
3840
+ if (value.context_management) {
3841
3841
  contextManagement = mapAnthropicResponseContextManagement(
3842
- value.delta.context_management
3842
+ value.context_management
3843
3843
  );
3844
3844
  }
3845
3845
  rawUsage = {