ai 7.0.15 → 7.0.16

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
2
2
 
3
+ ## 7.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - a8f9b6d: Preserve signed tool approval metadata when recording approval responses.
8
+
3
9
  ## 7.0.15
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1089,7 +1089,7 @@ import {
1089
1089
  } from "@ai-sdk/provider-utils";
1090
1090
 
1091
1091
  // src/version.ts
1092
- var VERSION = true ? "7.0.15" : "0.0.0-test";
1092
+ var VERSION = true ? "7.0.16" : "0.0.0-test";
1093
1093
 
1094
1094
  // src/util/download/download.ts
1095
1095
  var download = async ({
@@ -16463,7 +16463,7 @@ var AbstractChat = class {
16463
16463
  const updatePart = (part) => isToolUIPart(part) && part.state === "approval-requested" && part.approval.id === id ? {
16464
16464
  ...part,
16465
16465
  state: "approval-responded",
16466
- approval: { id, approved, reason }
16466
+ approval: { ...part.approval, id, approved, reason }
16467
16467
  } : part;
16468
16468
  this.state.replaceMessage(messages.length - 1, {
16469
16469
  ...lastMessage,