@mastra/ai-sdk 1.3.1 → 1.3.2
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 +18 -0
- package/dist/index.cjs +7 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/transformers.d.ts.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @mastra/ai-sdk
|
|
2
2
|
|
|
3
|
+
## 1.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed an issue where nested agent sub-tool streams dropped the 'uiMessages' and 'messages' properties during chunk propagation. The response payloads are now merged into the buffered pipeline execution correctly. ([#15053](https://github.com/mastra-ai/mastra/pull/15053))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`f32b9e1`](https://github.com/mastra-ai/mastra/commit/f32b9e115a3c754d1c8cfa3f4256fba87b09cfb7), [`7d6f521`](https://github.com/mastra-ai/mastra/commit/7d6f52164d0cca099f0b07cb2bba334360f1c8ab), [`a50d220`](https://github.com/mastra-ai/mastra/commit/a50d220b01ecbc5644d489a3d446c3bd4ab30245), [`665477b`](https://github.com/mastra-ai/mastra/commit/665477bc104fd52cfef8e7610d7664781a70c220), [`4cc2755`](https://github.com/mastra-ai/mastra/commit/4cc2755a7194cb08720ff2ab4dffb4b4a5103dfd), [`ac7baf6`](https://github.com/mastra-ai/mastra/commit/ac7baf66ef1db15e03975ef4ebb02724f015a391), [`ed425d7`](https://github.com/mastra-ai/mastra/commit/ed425d78e7c66cbda8209fee910856f98c6c6b82), [`1371703`](https://github.com/mastra-ai/mastra/commit/1371703835080450ef3f9aea58059a95d0da2e5a), [`0df8321`](https://github.com/mastra-ai/mastra/commit/0df832196eeb2450ab77ce887e8553abdd44c5a6), [`98f8a8b`](https://github.com/mastra-ai/mastra/commit/98f8a8bdf5761b9982f3ad3acbe7f1cc3efa71f3), [`ba6f7e9`](https://github.com/mastra-ai/mastra/commit/ba6f7e9086d8281393f2acae60fda61de3bff1f9), [`7eb2596`](https://github.com/mastra-ai/mastra/commit/7eb25960d607e07468c9a10c5437abd2deaf1e9a), [`1805ddc`](https://github.com/mastra-ai/mastra/commit/1805ddc9c9b3b14b63749735a13c05a45af43a80), [`fff91cf`](https://github.com/mastra-ai/mastra/commit/fff91cf914de0e731578aacebffdeebef82f0440), [`61109b3`](https://github.com/mastra-ai/mastra/commit/61109b34feb0e38d54bee4b8ca83eb7345b1d557), [`33f1ead`](https://github.com/mastra-ai/mastra/commit/33f1eadfa19c86953f593478e5fa371093b33779)]:
|
|
10
|
+
- @mastra/core@1.23.0
|
|
11
|
+
|
|
12
|
+
## 1.3.2-alpha.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Fixed an issue where nested agent sub-tool streams dropped the 'uiMessages' and 'messages' properties during chunk propagation. The response payloads are now merged into the buffered pipeline execution correctly. ([#15053](https://github.com/mastra-ai/mastra/pull/15053))
|
|
17
|
+
|
|
18
|
+
- Updated dependencies:
|
|
19
|
+
- @mastra/core@1.23.0-alpha.2
|
|
20
|
+
|
|
3
21
|
## 1.3.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -12442,7 +12442,11 @@ function transformAgent(payload, bufferedSteps) {
|
|
|
12442
12442
|
usage: payload.payload?.output?.usage,
|
|
12443
12443
|
warnings: payload.payload?.stepResult?.warnings,
|
|
12444
12444
|
steps: bufferedSteps.get(payload.runId).steps,
|
|
12445
|
-
status: "finished"
|
|
12445
|
+
status: "finished",
|
|
12446
|
+
response: {
|
|
12447
|
+
...bufferedSteps.get(payload.runId).response,
|
|
12448
|
+
...payload.payload.response || {}
|
|
12449
|
+
}
|
|
12446
12450
|
});
|
|
12447
12451
|
hasChanged = true;
|
|
12448
12452
|
break;
|
|
@@ -12539,7 +12543,8 @@ function transformAgent(payload, bufferedSteps) {
|
|
|
12539
12543
|
id: payload.payload.id || "",
|
|
12540
12544
|
timestamp: payload.payload.metadata?.timestamp || /* @__PURE__ */ new Date(),
|
|
12541
12545
|
modelId: payload.payload.metadata?.modelId || payload.payload.metadata?.model || "",
|
|
12542
|
-
|
|
12546
|
+
...payload.payload.response || {},
|
|
12547
|
+
messages: payload.payload.response?.messages ?? stepRun.response.messages ?? []
|
|
12543
12548
|
}
|
|
12544
12549
|
};
|
|
12545
12550
|
bufferedSteps.set(payload.runId, {
|