ai 7.0.25 → 7.0.26

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.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 27d294d: feat(ai): group orphaned tool calls after tool approvals under parent span
8
+
3
9
  ## 7.0.25
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.25" : "0.0.0-test";
1092
+ var VERSION = true ? "7.0.26" : "0.0.0-test";
1093
1093
 
1094
1094
  // src/util/download/download.ts
1095
1095
  var download = async ({
@@ -9057,6 +9057,9 @@ var DefaultStreamTextResult = class {
9057
9057
  var _a23;
9058
9058
  return (_a23 = streamTextTracingChannelContext == null ? void 0 : streamTextTracingChannelContext.run(execute)) != null ? _a23 : execute();
9059
9059
  };
9060
+ const runInTracingChannelSpanInStreamText = telemetryDispatcher.runInTracingChannelSpan == null ? void 0 : (options) => runInStreamTextTracingChannelContext(
9061
+ () => telemetryDispatcher.runInTracingChannelSpan(options)
9062
+ );
9060
9063
  await notify({
9061
9064
  event: startEvent,
9062
9065
  callbacks: [onStart, telemetryDispatcher.onStart]
@@ -9127,7 +9130,7 @@ var DefaultStreamTextResult = class {
9127
9130
  telemetryDispatcher.onToolExecutionEnd
9128
9131
  ),
9129
9132
  executeToolInTelemetryContext: telemetryDispatcher.executeTool,
9130
- runInTracingChannelSpan: telemetryDispatcher.runInTracingChannelSpan,
9133
+ runInTracingChannelSpan: runInTracingChannelSpanInStreamText,
9131
9134
  onPreliminaryToolResult: (result2) => {
9132
9135
  toolExecutionStepStreamController == null ? void 0 : toolExecutionStepStreamController.enqueue(result2);
9133
9136
  }