ai 6.0.9 → 6.0.11

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
2
2
 
3
+ ## 6.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8ec1984]
8
+ - @ai-sdk/gateway@3.0.8
9
+
10
+ ## 6.0.10
11
+
12
+ ### Patch Changes
13
+
14
+ - ae26f95: Add missing `.catch()` handler to `executeToolCall` promise in `runToolsTransformation` to prevent potential stream hang when the promise rejects.
15
+
3
16
  ## 6.0.9
4
17
 
5
18
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1000,7 +1000,7 @@ var import_provider_utils3 = require("@ai-sdk/provider-utils");
1000
1000
  var import_provider_utils4 = require("@ai-sdk/provider-utils");
1001
1001
 
1002
1002
  // src/version.ts
1003
- var VERSION = true ? "6.0.9" : "0.0.0-test";
1003
+ var VERSION = true ? "6.0.11" : "0.0.0-test";
1004
1004
 
1005
1005
  // src/util/download/download.ts
1006
1006
  var download = async ({ url }) => {
@@ -5581,6 +5581,12 @@ function runToolsTransformation({
5581
5581
  }
5582
5582
  }).then((result) => {
5583
5583
  toolResultsStreamController.enqueue(result);
5584
+ }).catch((error) => {
5585
+ toolResultsStreamController.enqueue({
5586
+ type: "error",
5587
+ error
5588
+ });
5589
+ }).finally(() => {
5584
5590
  outstandingToolResults.delete(toolExecutionId);
5585
5591
  attemptClose();
5586
5592
  });