@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.
@@ -659,22 +659,6 @@ var anthropicMessagesChunkSchema = (0, import_provider_utils2.lazySchema)(
659
659
  version: import_v42.z.string()
660
660
  })
661
661
  ).nullish()
662
- }).nullish(),
663
- context_management: import_v42.z.object({
664
- applied_edits: import_v42.z.array(
665
- import_v42.z.union([
666
- import_v42.z.object({
667
- type: import_v42.z.literal("clear_tool_uses_20250919"),
668
- cleared_tool_uses: import_v42.z.number(),
669
- cleared_input_tokens: import_v42.z.number()
670
- }),
671
- import_v42.z.object({
672
- type: import_v42.z.literal("clear_thinking_20251015"),
673
- cleared_thinking_turns: import_v42.z.number(),
674
- cleared_input_tokens: import_v42.z.number()
675
- })
676
- ])
677
- )
678
662
  }).nullish()
679
663
  }),
680
664
  usage: import_v42.z.looseObject({
@@ -682,7 +666,23 @@ var anthropicMessagesChunkSchema = (0, import_provider_utils2.lazySchema)(
682
666
  output_tokens: import_v42.z.number(),
683
667
  cache_creation_input_tokens: import_v42.z.number().nullish(),
684
668
  cache_read_input_tokens: import_v42.z.number().nullish()
685
- })
669
+ }),
670
+ context_management: import_v42.z.object({
671
+ applied_edits: import_v42.z.array(
672
+ import_v42.z.union([
673
+ import_v42.z.object({
674
+ type: import_v42.z.literal("clear_tool_uses_20250919"),
675
+ cleared_tool_uses: import_v42.z.number(),
676
+ cleared_input_tokens: import_v42.z.number()
677
+ }),
678
+ import_v42.z.object({
679
+ type: import_v42.z.literal("clear_thinking_20251015"),
680
+ cleared_thinking_turns: import_v42.z.number(),
681
+ cleared_input_tokens: import_v42.z.number()
682
+ })
683
+ ])
684
+ )
685
+ }).nullish()
686
686
  }),
687
687
  import_v42.z.object({
688
688
  type: import_v42.z.literal("message_stop")
@@ -3821,9 +3821,9 @@ var AnthropicMessagesLanguageModel = class {
3821
3821
  version: skill.version
3822
3822
  }))) != null ? _m : null
3823
3823
  } : null;
3824
- if (value.delta.context_management) {
3824
+ if (value.context_management) {
3825
3825
  contextManagement = mapAnthropicResponseContextManagement(
3826
- value.delta.context_management
3826
+ value.context_management
3827
3827
  );
3828
3828
  }
3829
3829
  rawUsage = {