@mastra/mcp-docs-server 0.13.44 → 0.13.45-alpha.0
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/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +253 -53
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fcloud.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +307 -107
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Flance.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Frag.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Freact.md +182 -1
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +36 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +104 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +49 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +201 -1
- package/.docs/organized/changelogs/create-mastra.md +201 -1
- package/.docs/organized/changelogs/mastra.md +201 -1
- package/.docs/raw/agents/adding-voice.mdx +49 -0
- package/.docs/raw/course/01-first-agent/05-running-playground.md +5 -5
- package/.docs/raw/course/01-first-agent/09-testing-your-agent.md +3 -3
- package/.docs/raw/course/01-first-agent/13-testing-your-tool.md +3 -3
- package/.docs/raw/course/01-first-agent/17-testing-memory.md +2 -2
- package/.docs/raw/course/04-workflows/07-using-playground.md +1 -1
- package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +23 -1
- package/.docs/raw/reference/client-js/memory.mdx +43 -0
- package/.docs/raw/reference/core/mastra-class.mdx +8 -0
- package/.docs/raw/reference/core/mastra-model-gateway.mdx +223 -0
- package/.docs/raw/reference/scorers/answer-relevancy.mdx +28 -98
- package/.docs/raw/reference/scorers/answer-similarity.mdx +12 -258
- package/.docs/raw/reference/scorers/bias.mdx +29 -87
- package/.docs/raw/reference/scorers/completeness.mdx +32 -91
- package/.docs/raw/reference/scorers/content-similarity.mdx +29 -99
- package/.docs/raw/reference/scorers/context-precision.mdx +28 -130
- package/.docs/raw/reference/scorers/faithfulness.mdx +28 -101
- package/.docs/raw/reference/scorers/hallucination.mdx +28 -103
- package/.docs/raw/reference/scorers/keyword-coverage.mdx +28 -107
- package/.docs/raw/reference/scorers/textual-difference.mdx +27 -100
- package/.docs/raw/reference/scorers/tone-consistency.mdx +25 -98
- package/.docs/raw/reference/scorers/toxicity.mdx +29 -92
- package/.docs/raw/reference/storage/cloudflare-d1.mdx +37 -0
- package/.docs/raw/reference/storage/lance.mdx +33 -0
- package/.docs/raw/reference/storage/libsql.mdx +37 -0
- package/.docs/raw/reference/storage/mongodb.mdx +39 -0
- package/.docs/raw/reference/storage/mssql.mdx +37 -0
- package/.docs/raw/reference/storage/postgresql.mdx +37 -0
- package/.docs/raw/reference/streaming/agents/stream.mdx +7 -0
- package/.docs/raw/reference/voice/composite-voice.mdx +71 -28
- package/.docs/raw/reference/voice/voice.listen.mdx +86 -52
- package/.docs/raw/reference/voice/voice.speak.mdx +75 -40
- package/.docs/raw/voice/overview.mdx +67 -0
- package/.docs/raw/workflows/control-flow.mdx +180 -0
- package/CHANGELOG.md +10 -0
- package/dist/{chunk-TUAHUTTB.js → chunk-VE65X75W.js} +24 -4
- package/dist/prepare-docs/package-changes.d.ts.map +1 -1
- package/dist/prepare-docs/prepare.js +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @mastra/cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.13.3-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: ensure score responses match saved payloads for Mastra Stores. ([#10570](https://github.com/mastra-ai/mastra/pull/10570))
|
|
8
|
+
|
|
9
|
+
- Fix message sorting in listMessages when using semantic recall (include parameter). Messages are now always sorted by createdAt instead of storage order, ensuring correct chronological ordering of conversation history. ([#10545](https://github.com/mastra-ai/mastra/pull/10545))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`5657314`](https://github.com/mastra-ai/mastra/commit/5657314a1f9d49019bb53f357fa48f75a69247ca), [`e5aca78`](https://github.com/mastra-ai/mastra/commit/e5aca78bb7f263bb8b470bedae81efe9805d7544), [`33a607a`](https://github.com/mastra-ai/mastra/commit/33a607a1f716c2029d4a1ff1603dd756129a33b3), [`cc10fc1`](https://github.com/mastra-ai/mastra/commit/cc10fc192d9f527c71a23cc9def10d8718935ee1), [`1f7ee84`](https://github.com/mastra-ai/mastra/commit/1f7ee841a643ef12d90392125881f06fdf877293), [`e7d5149`](https://github.com/mastra-ai/mastra/commit/e7d514995260b63b2108308e85c64de37dcd0f71), [`f195082`](https://github.com/mastra-ai/mastra/commit/f1950822a2425d5ccae78c5d010e02ddb027a869), [`d9986dd`](https://github.com/mastra-ai/mastra/commit/d9986dd3513f7ca3244a8e599a440ccf4d8bc28b), [`a45b0f0`](https://github.com/mastra-ai/mastra/commit/a45b0f0cd19eab1fe4deceae3abf029442c22f74), [`f6e8eb3`](https://github.com/mastra-ai/mastra/commit/f6e8eb3dac53b70b06e906b2818b1d2a5b0486d7), [`ce57a2b`](https://github.com/mastra-ai/mastra/commit/ce57a2b62fd0d5f6532e4ecd1ba9ba93ac9b95fc), [`3236f35`](https://github.com/mastra-ai/mastra/commit/3236f352ae13cc8552c2965164e97bd125dae48d), [`ce57a2b`](https://github.com/mastra-ai/mastra/commit/ce57a2b62fd0d5f6532e4ecd1ba9ba93ac9b95fc), [`0230321`](https://github.com/mastra-ai/mastra/commit/02303217870bedea0ef009bea9a952f24ed38aaf), [`7b541f4`](https://github.com/mastra-ai/mastra/commit/7b541f49eda6f5a87b738198edbd136927599475), [`0eea842`](https://github.com/mastra-ai/mastra/commit/0eea8423cbdd37f2111593c6f7d2efcde4b7e4ce), [`63ae8a2`](https://github.com/mastra-ai/mastra/commit/63ae8a22c0c09bbb8b9779f5f38934cd75f616af), [`bf810c5`](https://github.com/mastra-ai/mastra/commit/bf810c5c561bd8ef221c0f6bd84e69770b9a38cc), [`ac7ef07`](https://github.com/mastra-ai/mastra/commit/ac7ef07633caee89707142171d2873c888ffef85), [`522f0b4`](https://github.com/mastra-ai/mastra/commit/522f0b45330719858794eabffffde4f343f55549), [`bf810c5`](https://github.com/mastra-ai/mastra/commit/bf810c5c561bd8ef221c0f6bd84e69770b9a38cc), [`8b51d55`](https://github.com/mastra-ai/mastra/commit/8b51d55bae531edf7e383958d7ecee04df31f5d5), [`2131ac5`](https://github.com/mastra-ai/mastra/commit/2131ac571d5065f0a656c57494bca98691bb7609)]:
|
|
12
|
+
- @mastra/core@0.24.6-alpha.0
|
|
13
|
+
|
|
3
14
|
## 0.13.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -299,4 +310,193 @@
|
|
|
299
310
|
|
|
300
311
|
## 0.11.11-alpha.0
|
|
301
312
|
|
|
302
|
-
|
|
313
|
+
### Patch Changes
|
|
314
|
+
|
|
315
|
+
- [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
|
|
316
|
+
|
|
317
|
+
- Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
|
|
318
|
+
- @mastra/core@0.15.3-alpha.5
|
|
319
|
+
|
|
320
|
+
## 0.11.10
|
|
321
|
+
|
|
322
|
+
### Patch Changes
|
|
323
|
+
|
|
324
|
+
- [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
|
|
325
|
+
|
|
326
|
+
- Updated dependencies []:
|
|
327
|
+
- @mastra/core@0.15.2
|
|
328
|
+
|
|
329
|
+
## 0.11.9
|
|
330
|
+
|
|
331
|
+
### Patch Changes
|
|
332
|
+
|
|
333
|
+
- [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
|
|
334
|
+
|
|
335
|
+
- Updated dependencies []:
|
|
336
|
+
- @mastra/core@0.15.1
|
|
337
|
+
|
|
338
|
+
## 0.11.8
|
|
339
|
+
|
|
340
|
+
### Patch Changes
|
|
341
|
+
|
|
342
|
+
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
343
|
+
|
|
344
|
+
- Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6), [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
|
|
345
|
+
- @mastra/core@0.15.0
|
|
346
|
+
|
|
347
|
+
## 0.11.8-alpha.0
|
|
348
|
+
|
|
349
|
+
### Patch Changes
|
|
350
|
+
|
|
351
|
+
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
352
|
+
|
|
353
|
+
- Updated dependencies [[`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01)]:
|
|
354
|
+
- @mastra/core@0.14.2-alpha.1
|
|
355
|
+
|
|
356
|
+
## 0.11.7
|
|
357
|
+
|
|
358
|
+
### Patch Changes
|
|
359
|
+
|
|
360
|
+
- [#6700](https://github.com/mastra-ai/mastra/pull/6700) [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02) Thanks [@gpanakkal](https://github.com/gpanakkal)! - Add `getMessagesById` method to `MastraStorage` adapters
|
|
361
|
+
|
|
362
|
+
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
363
|
+
- @mastra/core@0.14.1
|
|
364
|
+
|
|
365
|
+
## 0.11.7-alpha.0
|
|
366
|
+
|
|
367
|
+
### Patch Changes
|
|
368
|
+
|
|
369
|
+
- [#6700](https://github.com/mastra-ai/mastra/pull/6700) [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02) Thanks [@gpanakkal](https://github.com/gpanakkal)! - Add `getMessagesById` method to `MastraStorage` adapters
|
|
370
|
+
|
|
371
|
+
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
372
|
+
- @mastra/core@0.14.1-alpha.0
|
|
373
|
+
|
|
374
|
+
## 0.11.6
|
|
375
|
+
|
|
376
|
+
### Patch Changes
|
|
377
|
+
|
|
378
|
+
- 03997ae: Update peerdeps
|
|
379
|
+
- Updated dependencies [227c7e6]
|
|
380
|
+
- Updated dependencies [12cae67]
|
|
381
|
+
- Updated dependencies [fd3a3eb]
|
|
382
|
+
- Updated dependencies [6faaee5]
|
|
383
|
+
- Updated dependencies [4232b14]
|
|
384
|
+
- Updated dependencies [a89de7e]
|
|
385
|
+
- Updated dependencies [5a37d0c]
|
|
386
|
+
- Updated dependencies [4bde0cb]
|
|
387
|
+
- Updated dependencies [cf4f357]
|
|
388
|
+
- Updated dependencies [ad888a2]
|
|
389
|
+
- Updated dependencies [481751d]
|
|
390
|
+
- Updated dependencies [2454423]
|
|
391
|
+
- Updated dependencies [194e395]
|
|
392
|
+
- Updated dependencies [a722c0b]
|
|
393
|
+
- Updated dependencies [c30bca8]
|
|
394
|
+
- Updated dependencies [3b5fec7]
|
|
395
|
+
- Updated dependencies [a8f129d]
|
|
396
|
+
- @mastra/core@0.14.0
|
|
397
|
+
|
|
398
|
+
## 0.11.6-alpha.0
|
|
399
|
+
|
|
400
|
+
### Patch Changes
|
|
401
|
+
|
|
402
|
+
- 03997ae: Update peerdeps
|
|
403
|
+
- @mastra/core@0.14.0-alpha.7
|
|
404
|
+
|
|
405
|
+
## 0.11.5
|
|
406
|
+
|
|
407
|
+
### Patch Changes
|
|
408
|
+
|
|
409
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
410
|
+
- Updated dependencies [cb36de0]
|
|
411
|
+
- Updated dependencies [d0496e6]
|
|
412
|
+
- Updated dependencies [a82b851]
|
|
413
|
+
- Updated dependencies [ea0c5f2]
|
|
414
|
+
- Updated dependencies [41a0a0e]
|
|
415
|
+
- Updated dependencies [2871020]
|
|
416
|
+
- Updated dependencies [94f4812]
|
|
417
|
+
- Updated dependencies [e202b82]
|
|
418
|
+
- Updated dependencies [e00f6a0]
|
|
419
|
+
- Updated dependencies [4a406ec]
|
|
420
|
+
- Updated dependencies [b0e43c1]
|
|
421
|
+
- Updated dependencies [5d377e5]
|
|
422
|
+
- Updated dependencies [1fb812e]
|
|
423
|
+
- Updated dependencies [35c5798]
|
|
424
|
+
- @mastra/core@0.13.0
|
|
425
|
+
|
|
426
|
+
## 0.11.5-alpha.0
|
|
427
|
+
|
|
428
|
+
### Patch Changes
|
|
429
|
+
|
|
430
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
431
|
+
- Updated dependencies [cb36de0]
|
|
432
|
+
- Updated dependencies [a82b851]
|
|
433
|
+
- Updated dependencies [41a0a0e]
|
|
434
|
+
- Updated dependencies [2871020]
|
|
435
|
+
- Updated dependencies [4a406ec]
|
|
436
|
+
- Updated dependencies [5d377e5]
|
|
437
|
+
- @mastra/core@0.13.0-alpha.2
|
|
438
|
+
|
|
439
|
+
## 0.11.4
|
|
440
|
+
|
|
441
|
+
### Patch Changes
|
|
442
|
+
|
|
443
|
+
- 9881232: dependencies updates:
|
|
444
|
+
- Updated dependency [`cloudflare@^4.5.0` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.5.0) (from `^4.4.1`, in `dependencies`)
|
|
445
|
+
- f42c4c2: update peer deps for packages to latest core range
|
|
446
|
+
- Updated dependencies [510e2c8]
|
|
447
|
+
- Updated dependencies [2f72fb2]
|
|
448
|
+
- Updated dependencies [27cc97a]
|
|
449
|
+
- Updated dependencies [3f89307]
|
|
450
|
+
- Updated dependencies [9eda7d4]
|
|
451
|
+
- Updated dependencies [9d49408]
|
|
452
|
+
- Updated dependencies [41daa63]
|
|
453
|
+
- Updated dependencies [ad0a58b]
|
|
454
|
+
- Updated dependencies [254a36b]
|
|
455
|
+
- Updated dependencies [2ecf658]
|
|
456
|
+
- Updated dependencies [7a7754f]
|
|
457
|
+
- Updated dependencies [fc92d80]
|
|
458
|
+
- Updated dependencies [e0f73c6]
|
|
459
|
+
- Updated dependencies [0b89602]
|
|
460
|
+
- Updated dependencies [4d37822]
|
|
461
|
+
- Updated dependencies [23a6a7c]
|
|
462
|
+
- Updated dependencies [cda801d]
|
|
463
|
+
- Updated dependencies [a77c823]
|
|
464
|
+
- Updated dependencies [ff9c125]
|
|
465
|
+
- Updated dependencies [09bca64]
|
|
466
|
+
- Updated dependencies [b8efbb9]
|
|
467
|
+
- Updated dependencies [71466e7]
|
|
468
|
+
- Updated dependencies [0c99fbe]
|
|
469
|
+
- @mastra/core@0.12.0
|
|
470
|
+
|
|
471
|
+
## 0.11.4-alpha.1
|
|
472
|
+
|
|
473
|
+
### Patch Changes
|
|
474
|
+
|
|
475
|
+
- f42c4c2: update peer deps for packages to latest core range
|
|
476
|
+
- @mastra/core@0.12.0-alpha.5
|
|
477
|
+
|
|
478
|
+
## 0.11.4-alpha.0
|
|
479
|
+
|
|
480
|
+
### Patch Changes
|
|
481
|
+
|
|
482
|
+
- 9881232: dependencies updates:
|
|
483
|
+
- Updated dependency [`cloudflare@^4.5.0` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.5.0) (from `^4.4.1`, in `dependencies`)
|
|
484
|
+
- Updated dependencies [27cc97a]
|
|
485
|
+
- Updated dependencies [41daa63]
|
|
486
|
+
- Updated dependencies [254a36b]
|
|
487
|
+
- Updated dependencies [0b89602]
|
|
488
|
+
- Updated dependencies [4d37822]
|
|
489
|
+
- Updated dependencies [ff9c125]
|
|
490
|
+
- Updated dependencies [b8efbb9]
|
|
491
|
+
- Updated dependencies [71466e7]
|
|
492
|
+
- Updated dependencies [0c99fbe]
|
|
493
|
+
- @mastra/core@0.12.0-alpha.2
|
|
494
|
+
|
|
495
|
+
## 0.11.3
|
|
496
|
+
|
|
497
|
+
### Patch Changes
|
|
498
|
+
|
|
499
|
+
- ce088f5: Update all peerdeps to latest core
|
|
500
|
+
- @mastra/core@0.11.1
|
|
501
|
+
|
|
502
|
+
... 944 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,311 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.24.6-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix base64 encoded images with threads - issue #10480 ([#10566](https://github.com/mastra-ai/mastra/pull/10566))
|
|
8
|
+
|
|
9
|
+
Fixed "Invalid URL" error when using base64 encoded images (without `data:` prefix) in agent calls with threads and resources. Raw base64 strings are now automatically converted to proper data URIs before being processed.
|
|
10
|
+
|
|
11
|
+
**Changes:**
|
|
12
|
+
- Updated `attachments-to-parts.ts` to detect and convert raw base64 strings to data URIs
|
|
13
|
+
- Fixed `MessageList` image processing to handle raw base64 in two locations:
|
|
14
|
+
- Image part conversion in `aiV4CoreMessageToV1PromptMessage`
|
|
15
|
+
- File part to experimental_attachments conversion in `mastraDBMessageToAIV4UIMessage`
|
|
16
|
+
- Added comprehensive tests for base64 images, data URIs, and HTTP URLs with threads
|
|
17
|
+
|
|
18
|
+
**Breaking Change:** None - this is a bug fix that maintains backward compatibility while adding support for raw base64 strings.
|
|
19
|
+
|
|
20
|
+
- SimpleAuth and improved CloudAuth ([#10569](https://github.com/mastra-ai/mastra/pull/10569))
|
|
21
|
+
|
|
22
|
+
- Fixed OpenAI schema compatibility when using `agent.generate()` or `agent.stream()` with `structuredOutput`. ([#10454](https://github.com/mastra-ai/mastra/pull/10454))
|
|
23
|
+
|
|
24
|
+
## Changes
|
|
25
|
+
- **Automatic transformation**: Zod schemas are now automatically transformed for OpenAI strict mode compatibility when using OpenAI models (including reasoning models like o1, o3, o4)
|
|
26
|
+
- **Optional field handling**: `.optional()` fields are converted to `.nullable()` with a transform that converts `null` → `undefined`, preserving optional semantics while satisfying OpenAI's strict mode requirements
|
|
27
|
+
- **Preserves nullable fields**: Intentionally `.nullable()` fields remain unchanged
|
|
28
|
+
- **Deep transformation**: Handles `.optional()` fields at any nesting level (objects, arrays, unions, etc.)
|
|
29
|
+
- **JSON Schema objects**: Not transformed, only Zod schemas
|
|
30
|
+
|
|
31
|
+
## Example
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
const agent = new Agent({
|
|
35
|
+
name: 'data-extractor',
|
|
36
|
+
model: { provider: 'openai', modelId: 'gpt-4o' },
|
|
37
|
+
instructions: 'Extract user information',
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const schema = z.object({
|
|
41
|
+
name: z.string(),
|
|
42
|
+
age: z.number().optional(),
|
|
43
|
+
deletedAt: z.date().nullable(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
// Schema is automatically transformed for OpenAI compatibility
|
|
47
|
+
const result = await agent.generate('Extract: John, deleted yesterday', {
|
|
48
|
+
structuredOutput: { schema },
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// Result: { name: 'John', age: undefined, deletedAt: null }
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
- deleteVectors, deleteFilter when upserting, updateVector filter (#10244) ([#10526](https://github.com/mastra-ai/mastra/pull/10526))
|
|
55
|
+
|
|
56
|
+
- Fix generateTitle model type to accept AI SDK LanguageModelV2 ([#10567](https://github.com/mastra-ai/mastra/pull/10567))
|
|
57
|
+
|
|
58
|
+
Updated the `generateTitle.model` config option to accept `MastraModelConfig` instead of `MastraLanguageModel`. This allows users to pass raw AI SDK `LanguageModelV2` models (e.g., `anthropic.languageModel('claude-3-5-haiku-20241022')`) directly without type errors.
|
|
59
|
+
|
|
60
|
+
Previously, passing a standard `LanguageModelV2` would fail because `MastraLanguageModelV2` has different `doGenerate`/`doStream` return types. Now `MastraModelConfig` is used consistently across:
|
|
61
|
+
- `memory/types.ts` - `generateTitle.model` config
|
|
62
|
+
- `agent.ts` - `genTitle`, `generateTitleFromUserMessage`, `resolveTitleGenerationConfig`
|
|
63
|
+
- `agent-legacy.ts` - `AgentLegacyCapabilities` interface
|
|
64
|
+
|
|
65
|
+
- Fix message metadata not persisting when using simple message format. Previously, custom metadata passed in messages (e.g., `{role: 'user', content: 'text', metadata: {userId: '123'}}`) was not being saved to the database. This occurred because the CoreMessage conversion path didn't preserve metadata fields. ([#10571](https://github.com/mastra-ai/mastra/pull/10571))
|
|
66
|
+
|
|
67
|
+
Now metadata is properly preserved for all message input formats:
|
|
68
|
+
- Simple CoreMessage format: `{role, content, metadata}`
|
|
69
|
+
- Full UIMessage format: `{role, content, parts, metadata}`
|
|
70
|
+
- AI SDK v5 ModelMessage format with metadata
|
|
71
|
+
|
|
72
|
+
Fixes #8556
|
|
73
|
+
|
|
74
|
+
- feat: Composite auth implementation ([#10486](https://github.com/mastra-ai/mastra/pull/10486))
|
|
75
|
+
|
|
76
|
+
- Fix requireApproval property being ignored for tools passed via toolsets, clientTools, and memoryTools parameters. The requireApproval flag now correctly propagates through all tool conversion paths, ensuring tools requiring approval will properly request user approval before execution. ([#10562](https://github.com/mastra-ai/mastra/pull/10562))
|
|
77
|
+
|
|
78
|
+
- Fix Azure Foundry rate limit handling for -1 values ([#10411](https://github.com/mastra-ai/mastra/pull/10411))
|
|
79
|
+
|
|
80
|
+
- Fix model headers not being passed through gateway system ([#10564](https://github.com/mastra-ai/mastra/pull/10564))
|
|
81
|
+
|
|
82
|
+
Previously, custom headers specified in `MastraModelConfig` were not being passed through the gateway system to model providers. This affected:
|
|
83
|
+
- OpenRouter (preventing activity tracking with `HTTP-Referer` and `X-Title`)
|
|
84
|
+
- Custom providers using custom URLs (headers not passed to `createOpenAICompatible`)
|
|
85
|
+
- Custom gateway implementations (headers not available in `resolveLanguageModel`)
|
|
86
|
+
|
|
87
|
+
Now headers are correctly passed through the entire gateway system:
|
|
88
|
+
- Base `MastraModelGateway` interface updated to accept headers
|
|
89
|
+
- `ModelRouterLanguageModel` passes headers from config to all gateways
|
|
90
|
+
- OpenRouter receives headers for activity tracking
|
|
91
|
+
- Custom URL providers receive headers via `createOpenAICompatible`
|
|
92
|
+
- Custom gateways can access headers in their `resolveLanguageModel` implementation
|
|
93
|
+
|
|
94
|
+
Example usage:
|
|
95
|
+
|
|
96
|
+
```typescript
|
|
97
|
+
// Works with OpenRouter
|
|
98
|
+
const agent = new Agent({
|
|
99
|
+
name: 'my-agent',
|
|
100
|
+
instructions: 'You are a helpful assistant.',
|
|
101
|
+
model: {
|
|
102
|
+
id: 'openrouter/anthropic/claude-3-5-sonnet',
|
|
103
|
+
headers: {
|
|
104
|
+
'HTTP-Referer': 'https://myapp.com',
|
|
105
|
+
'X-Title': 'My Application',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
// Also works with custom providers
|
|
111
|
+
const customAgent = new Agent({
|
|
112
|
+
name: 'custom-agent',
|
|
113
|
+
instructions: 'You are a helpful assistant.',
|
|
114
|
+
model: {
|
|
115
|
+
id: 'custom-provider/model',
|
|
116
|
+
url: 'https://api.custom.com/v1',
|
|
117
|
+
apiKey: 'key',
|
|
118
|
+
headers: {
|
|
119
|
+
'X-Custom-Header': 'custom-value',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Fixes https://github.com/mastra-ai/mastra/issues/9760
|
|
126
|
+
|
|
127
|
+
- fix(agent): persist messages before tool suspension ([#10542](https://github.com/mastra-ai/mastra/pull/10542))
|
|
128
|
+
|
|
129
|
+
Fixes issues where thread and messages were not saved before suspension when tools require approval or call suspend() during execution. This caused conversation history to be lost if users refreshed during tool approval or suspension.
|
|
130
|
+
|
|
131
|
+
**Backend changes (@mastra/core):**
|
|
132
|
+
- Add assistant messages to messageList immediately after LLM execution
|
|
133
|
+
- Flush messages synchronously before suspension to persist state
|
|
134
|
+
- Create thread if it doesn't exist before flushing
|
|
135
|
+
- Add metadata helpers to persist and remove tool approval state
|
|
136
|
+
- Pass saveQueueManager and memory context through workflow for immediate persistence
|
|
137
|
+
|
|
138
|
+
**Frontend changes (@mastra/react):**
|
|
139
|
+
- Extract runId from pending approvals to enable resumption after refresh
|
|
140
|
+
- Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
|
|
141
|
+
- Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
|
|
142
|
+
- Change runId from hardcoded `agentId` to unique `uuid()`
|
|
143
|
+
|
|
144
|
+
**UI changes (@mastra/playground-ui):**
|
|
145
|
+
- Handle tool calls awaiting approval in message initialization
|
|
146
|
+
- Convert approval metadata format when loading initial messages
|
|
147
|
+
|
|
148
|
+
Fixes #9745, #9906
|
|
149
|
+
|
|
150
|
+
- Fix race condition in parallel tool stream writes ([#10481](https://github.com/mastra-ai/mastra/pull/10481))
|
|
151
|
+
|
|
152
|
+
Introduces a write queue to ToolStream to serialize access to the underlying stream, preventing writer locked errors
|
|
153
|
+
|
|
154
|
+
- Remove unneeded console warning when flushing messages and no threadId or saveQueueManager is found. ([#10542](https://github.com/mastra-ai/mastra/pull/10542))
|
|
155
|
+
|
|
156
|
+
- Fixes GPT-5 reasoning which was failing on subsequent tool calls with the error: ([#10489](https://github.com/mastra-ai/mastra/pull/10489))
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
Item 'fc_xxx' of type 'function_call' was provided without its required 'reasoning' item: 'rs_xxx'
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
- Add optional includeRawChunks parameter to agent execution options, ([#10459](https://github.com/mastra-ai/mastra/pull/10459))
|
|
163
|
+
allowing users to include raw chunks in stream output where supported
|
|
164
|
+
by the model provider.
|
|
165
|
+
|
|
166
|
+
- When `mastra dev` runs, multiple processes can write to `provider-registry.json` concurrently (auto-refresh, syncGateways, syncGlobalCacheToLocal). This causes file corruption where the end of the JSON appears twice, making it unparseable. ([#10529](https://github.com/mastra-ai/mastra/pull/10529))
|
|
167
|
+
|
|
168
|
+
The fix uses atomic writes via the write-to-temp-then-rename pattern. Instead of:
|
|
169
|
+
|
|
170
|
+
```ts
|
|
171
|
+
fs.writeFileSync(filePath, content, 'utf-8');
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
We now do:
|
|
175
|
+
|
|
176
|
+
```ts
|
|
177
|
+
const tempPath = `${filePath}.${process.pid}.${Date.now()}.${randomSuffix}.tmp`;
|
|
178
|
+
fs.writeFileSync(tempPath, content, 'utf-8');
|
|
179
|
+
fs.renameSync(tempPath, filePath); // atomic on POSIX
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
`fs.rename()` is atomic on POSIX systems when both paths are on the same filesystem, so concurrent writes will each complete fully rather than interleaving.
|
|
183
|
+
|
|
184
|
+
- Ensures that data chunks written via `writer.custom()` always bubble up directly to the top-level stream, even when nested in sub-agents. This allows tools to emit custom progress updates, metrics, and other data that can be consumed at any level of the agent hierarchy. ([#10523](https://github.com/mastra-ai/mastra/pull/10523))
|
|
185
|
+
- **Added bubbling logic in sub-agent execution**: When sub-agents execute, data chunks (chunks with type starting with `data-`) are detected and written via `writer.custom()` instead of `writer.write()`, ensuring they bubble up directly without being wrapped in `tool-output` chunks.
|
|
186
|
+
- **Added comprehensive tests**:
|
|
187
|
+
- Test for `writer.custom()` with direct tool execution
|
|
188
|
+
- Test for `writer.custom()` with sub-agent tools (nested execution)
|
|
189
|
+
- Test for mixed usage of `writer.write()` and `writer.custom()` in the same tool
|
|
190
|
+
|
|
191
|
+
When a sub-agent's tool uses `writer.custom()` to write data chunks, those chunks appear in the sub-agent's stream. The parent agent's execution logic now detects these chunks and uses `writer.custom()` to bubble them up directly, preserving their structure and making them accessible at the top level.
|
|
192
|
+
|
|
193
|
+
This ensures that:
|
|
194
|
+
- Data chunks from tools always appear directly in the stream (not wrapped)
|
|
195
|
+
- Data chunks bubble up correctly through nested agent hierarchies
|
|
196
|
+
- Regular chunks continue to be wrapped in `tool-output` as expected
|
|
197
|
+
|
|
198
|
+
- Adds ability to create custom `MastraModelGateway`'s that can be added to the `Mastra` class instance under the `gateways` property. Giving you typescript autocompletion in any model picker string. ([#10535](https://github.com/mastra-ai/mastra/pull/10535))
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
import { MastraModelGateway, type ProviderConfig } from '@mastra/core/llm';
|
|
202
|
+
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
|
|
203
|
+
import type { LanguageModelV2 } from '@ai-sdk/provider';
|
|
204
|
+
|
|
205
|
+
class MyCustomGateway extends MastraModelGateway {
|
|
206
|
+
readonly id = 'custom';
|
|
207
|
+
readonly name = 'My Custom Gateway';
|
|
208
|
+
|
|
209
|
+
async fetchProviders(): Promise<Record<string, ProviderConfig>> {
|
|
210
|
+
return {
|
|
211
|
+
'my-provider': {
|
|
212
|
+
name: 'My Provider',
|
|
213
|
+
models: ['model-1', 'model-2'],
|
|
214
|
+
apiKeyEnvVar: 'MY_API_KEY',
|
|
215
|
+
gateway: this.id,
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
buildUrl(modelId: string, envVars?: Record<string, string>): string {
|
|
221
|
+
return 'https://api.my-provider.com/v1';
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
async getApiKey(modelId: string): Promise<string> {
|
|
225
|
+
const apiKey = process.env.MY_API_KEY;
|
|
226
|
+
if (!apiKey) throw new Error('MY_API_KEY not set');
|
|
227
|
+
return apiKey;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
async resolveLanguageModel({
|
|
231
|
+
modelId,
|
|
232
|
+
providerId,
|
|
233
|
+
apiKey,
|
|
234
|
+
}: {
|
|
235
|
+
modelId: string;
|
|
236
|
+
providerId: string;
|
|
237
|
+
apiKey: string;
|
|
238
|
+
}): Promise<LanguageModelV2> {
|
|
239
|
+
const baseURL = this.buildUrl(`${providerId}/${modelId}`);
|
|
240
|
+
return createOpenAICompatible({
|
|
241
|
+
name: providerId,
|
|
242
|
+
apiKey,
|
|
243
|
+
baseURL,
|
|
244
|
+
}).chatModel(modelId);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
new Mastra({
|
|
249
|
+
gateways: {
|
|
250
|
+
myGateway: new MyCustomGateway(),
|
|
251
|
+
},
|
|
252
|
+
});
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
- Support AI SDK voice models ([#10558](https://github.com/mastra-ai/mastra/pull/10558))
|
|
256
|
+
|
|
257
|
+
Mastra now supports AI SDK's transcription and speech models directly in `CompositeVoice`, enabling seamless integration with a wide range of voice providers through the AI SDK ecosystem. This allows you to use models from OpenAI, ElevenLabs, Groq, Deepgram, LMNT, Hume, and many more for both speech-to-text (transcription) and text-to-speech capabilities.
|
|
258
|
+
|
|
259
|
+
AI SDK models are automatically wrapped when passed to `CompositeVoice`, so you can mix and match AI SDK models with existing Mastra voice providers for maximum flexibility.
|
|
260
|
+
|
|
261
|
+
## Usage Example
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
import { CompositeVoice } from '@mastra/core/voice';
|
|
265
|
+
import { openai } from '@ai-sdk/openai';
|
|
266
|
+
import { elevenlabs } from '@ai-sdk/elevenlabs';
|
|
267
|
+
|
|
268
|
+
// Use AI SDK models directly with CompositeVoice
|
|
269
|
+
const voice = new CompositeVoice({
|
|
270
|
+
input: openai.transcription('whisper-1'), // AI SDK transcription model
|
|
271
|
+
output: elevenlabs.speech('eleven_turbo_v2'), // AI SDK speech model
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
// Convert text to speech
|
|
275
|
+
const audioStream = await voice.speak('Hello from AI SDK!');
|
|
276
|
+
|
|
277
|
+
// Convert speech to text
|
|
278
|
+
const transcript = await voice.listen(audioStream);
|
|
279
|
+
console.log(transcript);
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Fixes #9947
|
|
283
|
+
|
|
284
|
+
- Fix network data step formatting in AI SDK stream transformation ([#10525](https://github.com/mastra-ai/mastra/pull/10525))
|
|
285
|
+
|
|
286
|
+
Previously, network execution steps were not being tracked correctly in the AI SDK stream transformation. Steps were being duplicated rather than updated, and critical metadata like step IDs, iterations, and task information was missing or incorrectly structured.
|
|
287
|
+
|
|
288
|
+
**Changes:**
|
|
289
|
+
- Enhanced step tracking in `AgentNetworkToAISDKTransformer` to properly maintain step state throughout execution lifecycle
|
|
290
|
+
- Steps are now identified by unique IDs and updated in place rather than creating duplicates
|
|
291
|
+
- Added proper iteration and task metadata to each step in the network execution flow
|
|
292
|
+
- Fixed agent, workflow, and tool execution events to correctly populate step data
|
|
293
|
+
- Updated network stream event types to include `networkId`, `workflowId`, and consistent `runId` tracking
|
|
294
|
+
- Added test coverage for network custom data chunks with comprehensive validation
|
|
295
|
+
|
|
296
|
+
This ensures the AI SDK correctly represents the full execution flow of agent networks with accurate step sequencing and metadata.
|
|
297
|
+
|
|
298
|
+
- Fix generating provider-registry.json ([#10535](https://github.com/mastra-ai/mastra/pull/10535))
|
|
299
|
+
|
|
300
|
+
- Fix message-list conversion issues when persisting messages before tool suspension: filter internal metadata fields (`__originalContent`) from UI messages, keep reasoning field empty for consistent cache keys during message deduplication, and only include providerMetadata on parts when defined. ([#10552](https://github.com/mastra-ai/mastra/pull/10552))
|
|
301
|
+
|
|
302
|
+
- Fix agent.generate() to use model's doGenerate method instead of doStream ([#10572](https://github.com/mastra-ai/mastra/pull/10572))
|
|
303
|
+
|
|
304
|
+
When calling `agent.generate()`, the model's `doGenerate` method is now correctly invoked instead of always using `doStream`. This aligns the non-streaming generation path with the intended behavior where providers can implement optimized non-streaming responses.
|
|
305
|
+
|
|
306
|
+
- Updated dependencies [[`33a607a`](https://github.com/mastra-ai/mastra/commit/33a607a1f716c2029d4a1ff1603dd756129a33b3)]:
|
|
307
|
+
- @mastra/schema-compat@0.11.8-alpha.0
|
|
308
|
+
|
|
3
309
|
## 0.24.5
|
|
4
310
|
|
|
5
311
|
### Patch Changes
|
|
@@ -192,111 +498,5 @@
|
|
|
192
498
|
|
|
193
499
|
### Patch Changes
|
|
194
500
|
|
|
195
|
-
- Allow resuming nested workflow step with chained id ([#9464](https://github.com/mastra-ai/mastra/pull/9464))
|
|
196
|
-
|
|
197
|
-
Example, you have a workflow like this
|
|
198
|
-
|
|
199
|
-
```
|
|
200
|
-
export const supportWorkflow = mainWorkflow.then(nestedWorkflow).commit();
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
And a step in `nestedWorkflow` is supsended, you can now also resume it any of these ways:
|
|
204
|
-
|
|
205
|
-
```
|
|
206
|
-
run.resume({
|
|
207
|
-
step: "nestedWorkflow.suspendedStep", //chained nested workflow step id and suspended step id
|
|
208
|
-
//other resume params
|
|
209
|
-
})
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
OR
|
|
213
|
-
|
|
214
|
-
```
|
|
215
|
-
run.resume({
|
|
216
|
-
step: "nestedWorkflow", // just the nested workflow step/step id
|
|
217
|
-
//other resume params
|
|
218
|
-
})
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
- Fix creating system messages from inside processors using processInput. ([#9476](https://github.com/mastra-ai/mastra/pull/9476))
|
|
222
|
-
|
|
223
|
-
- Prevent changing workflow status to suspended when some parallel steps are still running ([#9460](https://github.com/mastra-ai/mastra/pull/9460))
|
|
224
|
-
|
|
225
|
-
## 0.23.3-alpha.0
|
|
226
|
-
|
|
227
|
-
### Patch Changes
|
|
228
|
-
|
|
229
|
-
- Allow resuming nested workflow step with chained id ([#9464](https://github.com/mastra-ai/mastra/pull/9464))
|
|
230
|
-
|
|
231
|
-
Example, you have a workflow like this
|
|
232
|
-
|
|
233
|
-
```
|
|
234
|
-
export const supportWorkflow = mainWorkflow.then(nestedWorkflow).commit();
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
And a step in `nestedWorkflow` is supsended, you can now also resume it any of these ways:
|
|
238
|
-
|
|
239
|
-
```
|
|
240
|
-
run.resume({
|
|
241
|
-
step: "nestedWorkflow.suspendedStep", //chained nested workflow step id and suspended step id
|
|
242
|
-
//other resume params
|
|
243
|
-
})
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
OR
|
|
247
|
-
|
|
248
|
-
```
|
|
249
|
-
run.resume({
|
|
250
|
-
step: "nestedWorkflow", // just the nested workflow step/step id
|
|
251
|
-
//other resume params
|
|
252
|
-
})
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
- Fix creating system messages from inside processors using processInput. ([#9476](https://github.com/mastra-ai/mastra/pull/9476))
|
|
256
|
-
|
|
257
|
-
- Prevent changing workflow status to suspended when some parallel steps are still running ([#9460](https://github.com/mastra-ai/mastra/pull/9460))
|
|
258
|
-
|
|
259
|
-
## 0.23.2
|
|
260
|
-
|
|
261
|
-
### Patch Changes
|
|
262
|
-
|
|
263
|
-
- Fix agent onChunk callback receiving wrapped chunk instead of direct chunk ([#9402](https://github.com/mastra-ai/mastra/pull/9402))
|
|
264
|
-
|
|
265
|
-
- Ensure model_generation spans end before agent_run spans. ([#9393](https://github.com/mastra-ai/mastra/pull/9393))
|
|
266
|
-
|
|
267
|
-
- Fix OpenAI schema validation errors in processors ([#9400](https://github.com/mastra-ai/mastra/pull/9400))
|
|
268
|
-
|
|
269
|
-
- Don't call `os.homedir()` at top level (but lazy invoke it) to accommodate sandboxed environments ([#9357](https://github.com/mastra-ai/mastra/pull/9357))
|
|
270
|
-
|
|
271
|
-
- Detect thenable objects returned by AI model providers ([#9414](https://github.com/mastra-ai/mastra/pull/9414))
|
|
272
|
-
|
|
273
|
-
- Bug fix: Use input processors that are passed in generate or stream agent options rather than always defaulting to the processors set on the Agent class. ([#9422](https://github.com/mastra-ai/mastra/pull/9422))
|
|
274
|
-
|
|
275
|
-
- Fix tool input validation to use schema-compat transformed schemas ([#9360](https://github.com/mastra-ai/mastra/pull/9360))
|
|
276
|
-
|
|
277
|
-
Previously, tool input validation used the original Zod schema while the LLM received a schema-compat transformed version. This caused validation failures when LLMs (like OpenAI o3 or Claude 3.5 Haiku) sent arguments matching the transformed schema but not the original.
|
|
278
|
-
|
|
279
|
-
For example:
|
|
280
|
-
- OpenAI o3 reasoning models convert `.optional()` to `.nullable()`, sending `null` values
|
|
281
|
-
- Claude 3.5 Haiku strips `min`/`max` string constraints, sending shorter strings
|
|
282
|
-
- Validation would reject these valid responses because it checked against the original schema
|
|
283
|
-
|
|
284
|
-
The fix ensures validation uses the same schema-compat processed schema that was sent to the LLM, eliminating this mismatch.
|
|
285
|
-
|
|
286
|
-
- Add import for WritableStream in execution-engine and dedupe llm.getModel in agent.ts ([#9341](https://github.com/mastra-ai/mastra/pull/9341))
|
|
287
|
-
|
|
288
|
-
- pass writableStream parameter to workflow execution ([#9339](https://github.com/mastra-ai/mastra/pull/9339))
|
|
289
|
-
|
|
290
|
-
- Save correct status in snapshot for all workflow parallel steps. ([#9398](https://github.com/mastra-ai/mastra/pull/9398))
|
|
291
|
-
This ensures when you poll workflow run result using `getWorkflowRunExecutionResult(runId)`, you get the right status for all parallel steps
|
|
292
|
-
|
|
293
|
-
- Add ability to pass agent options when wrapping an agent with createStep. This allows configuring agent execution settings when using agents as workflow steps. ([#9359](https://github.com/mastra-ai/mastra/pull/9359))
|
|
294
|
-
|
|
295
|
-
- Fix network loop iteration counter and usage promise handling: ([#9415](https://github.com/mastra-ai/mastra/pull/9415))
|
|
296
|
-
- Fixed iteration counter in network loop that was stuck at 0 due to falsy check. Properly handled zero values to ensure maxSteps is correctly enforced.
|
|
297
|
-
- Fixed usage promise resolution in RunOutput stream by properly resolving or rejecting the promise on stream close, preventing hanging promises when streams complete.
|
|
298
|
-
|
|
299
|
-
- Workflow validation zod v4 support ([#9363](https://github.com/mastra-ai/mastra/pull/9363))
|
|
300
|
-
|
|
301
501
|
|
|
302
|
-
...
|
|
502
|
+
... 5039 more lines hidden. See full changelog in package directory.
|