ai 6.0.112 → 6.0.113

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
+ ## 6.0.113
4
+
5
+ ### Patch Changes
6
+
7
+ - 70d3980: fix(ai): use errorMode 'text' in approval continuation to preserve tool error messages
8
+
3
9
  ## 6.0.112
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1230,7 +1230,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1230
1230
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1231
1231
 
1232
1232
  // src/version.ts
1233
- var VERSION = true ? "6.0.112" : "0.0.0-test";
1233
+ var VERSION = true ? "6.0.113" : "0.0.0-test";
1234
1234
 
1235
1235
  // src/util/download/download.ts
1236
1236
  var download = async ({
@@ -4238,7 +4238,7 @@ async function generateText({
4238
4238
  input: output2.input,
4239
4239
  tool: tools == null ? void 0 : tools[output2.toolName],
4240
4240
  output: output2.type === "tool-result" ? output2.output : output2.error,
4241
- errorMode: output2.type === "tool-error" ? "json" : "none"
4241
+ errorMode: output2.type === "tool-error" ? "text" : "none"
4242
4242
  });
4243
4243
  toolContent.push({
4244
4244
  type: "tool-result",
@@ -7061,7 +7061,7 @@ var DefaultStreamTextResult = class {
7061
7061
  input: output2.input,
7062
7062
  tool: tools == null ? void 0 : tools[output2.toolName],
7063
7063
  output: output2.type === "tool-result" ? output2.output : output2.error,
7064
- errorMode: output2.type === "tool-error" ? "json" : "none"
7064
+ errorMode: output2.type === "tool-error" ? "text" : "none"
7065
7065
  })
7066
7066
  });
7067
7067
  }