ai 4.1.51 → 4.1.52

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
+ ## 4.1.52
4
+
5
+ ### Patch Changes
6
+
7
+ - 5329a69: fix (ai/core): fix duplicated reasoning in streamText onFinish and messages
8
+
3
9
  ## 4.1.51
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -4991,7 +4991,7 @@ var DefaultStreamTextResult = class {
4991
4991
  let recordedStepText = "";
4992
4992
  let recordedContinuationText = "";
4993
4993
  let recordedFullText = "";
4994
- const stepReasoning = [];
4994
+ let stepReasoning = [];
4995
4995
  let activeReasoningText = void 0;
4996
4996
  let recordedStepSources = [];
4997
4997
  const recordedSources = [];
@@ -5105,6 +5105,8 @@ var DefaultStreamTextResult = class {
5105
5105
  recordedToolResults = [];
5106
5106
  recordedStepText = "";
5107
5107
  recordedStepSources = [];
5108
+ stepReasoning = [];
5109
+ activeReasoningText = void 0;
5108
5110
  if (nextStepType !== "done") {
5109
5111
  stepType = nextStepType;
5110
5112
  }