@mastra/mcp-docs-server 1.0.0-beta.7 → 1.0.0-beta.9

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.
Files changed (63) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +1 -15
  2. package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +1 -7
  3. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +1 -55
  4. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +12 -12
  5. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +48 -48
  6. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +17 -17
  7. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +17 -17
  8. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +18 -18
  9. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +17 -17
  10. package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +6 -0
  11. package/.docs/organized/changelogs/%40mastra%2Fconvex.md +16 -0
  12. package/.docs/organized/changelogs/%40mastra%2Fcore.md +78 -78
  13. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +18 -18
  14. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +23 -23
  15. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +17 -17
  16. package/.docs/organized/changelogs/%40mastra%2Flance.md +17 -17
  17. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +65 -65
  18. package/.docs/organized/changelogs/%40mastra%2Floggers.md +29 -29
  19. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +16 -16
  20. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +12 -12
  21. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +10 -10
  22. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +17 -17
  23. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +17 -17
  24. package/.docs/organized/changelogs/%40mastra%2Fpg.md +69 -69
  25. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +31 -31
  26. package/.docs/organized/changelogs/%40mastra%2Freact.md +14 -0
  27. package/.docs/organized/changelogs/%40mastra%2Fserver.md +56 -56
  28. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +17 -17
  29. package/.docs/organized/changelogs/create-mastra.md +13 -13
  30. package/.docs/organized/changelogs/mastra.md +21 -21
  31. package/.docs/organized/code-examples/mcp-server-adapters.md +1 -2
  32. package/.docs/organized/code-examples/processors-with-ai-sdk.md +14 -0
  33. package/.docs/organized/code-examples/server-app-access.md +1 -1
  34. package/.docs/organized/code-examples/server-hono-adapter.md +1 -1
  35. package/.docs/raw/getting-started/studio.mdx +4 -2
  36. package/.docs/raw/guides/agent-frameworks/ai-sdk.mdx +161 -0
  37. package/.docs/raw/guides/build-your-ui/ai-sdk-ui.mdx +381 -431
  38. package/.docs/raw/guides/getting-started/quickstart.mdx +11 -0
  39. package/.docs/raw/guides/migrations/upgrade-to-v1/tools.mdx +3 -3
  40. package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +31 -0
  41. package/.docs/raw/reference/ai-sdk/chat-route.mdx +127 -0
  42. package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +117 -0
  43. package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +64 -0
  44. package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +116 -0
  45. package/.docs/raw/reference/ai-sdk/network-route.mdx +99 -0
  46. package/.docs/raw/reference/ai-sdk/to-ai-sdk-stream.mdx +289 -0
  47. package/.docs/raw/reference/ai-sdk/workflow-route.mdx +110 -0
  48. package/.docs/raw/reference/client-js/agents.mdx +251 -67
  49. package/.docs/raw/reference/client-js/mastra-client.mdx +2 -2
  50. package/.docs/raw/reference/client-js/memory.mdx +4 -1
  51. package/.docs/raw/reference/core/getMemory.mdx +73 -0
  52. package/.docs/raw/reference/core/getStoredAgentById.mdx +183 -0
  53. package/.docs/raw/reference/core/listMemory.mdx +70 -0
  54. package/.docs/raw/reference/core/listStoredAgents.mdx +151 -0
  55. package/.docs/raw/reference/core/mastra-class.mdx +8 -0
  56. package/.docs/raw/reference/server/express-adapter.mdx +52 -0
  57. package/.docs/raw/reference/server/hono-adapter.mdx +54 -0
  58. package/.docs/raw/server-db/custom-api-routes.mdx +5 -5
  59. package/.docs/raw/server-db/server-adapters.mdx +94 -91
  60. package/.docs/raw/streaming/tool-streaming.mdx +10 -14
  61. package/.docs/raw/workflows/workflow-state.mdx +4 -5
  62. package/CHANGELOG.md +15 -0
  63. package/package.json +4 -4
@@ -1,15 +1 @@
1
- # @internal/changeset-cli
2
-
3
- ## 0.0.7
4
-
5
- ## 0.0.6
6
-
7
- ## 0.0.5
8
-
9
- ## 0.0.4
10
-
11
- ## 0.0.3
12
-
13
- ## 0.0.2
14
-
15
- ## 0.0.1
1
+ No changelog available.
@@ -1,7 +1 @@
1
- # @internal/external-types
2
-
3
- ## 0.0.3
4
-
5
- ## 0.0.2
6
-
7
- ## 0.0.1
1
+ No changelog available.
@@ -1,55 +1 @@
1
- # @internal/types-builder
2
-
3
- ## 0.0.28
4
-
5
- ## 0.0.27
6
-
7
- ## 0.0.26
8
-
9
- ## 0.0.25
10
-
11
- ## 0.0.24
12
-
13
- ## 0.0.23
14
-
15
- ## 0.0.22
16
-
17
- ## 0.0.21
18
-
19
- ## 0.0.20
20
-
21
- ## 0.0.19
22
-
23
- ## 0.0.18
24
-
25
- ## 0.0.17
26
-
27
- ## 0.0.16
28
-
29
- ## 0.0.15
30
-
31
- ## 0.0.14
32
-
33
- ## 0.0.13
34
-
35
- ## 0.0.12
36
-
37
- ## 0.0.11
38
-
39
- ## 0.0.10
40
-
41
- ## 0.0.9
42
-
43
- ## 0.0.8
44
-
45
- ## 0.0.7
46
-
47
- ## 0.0.6
48
-
49
- ## 0.0.5
50
-
51
- ## 0.0.4
52
-
53
- ## 0.0.3
54
-
55
- ## 0.0.2
1
+ No changelog available.
@@ -1,5 +1,15 @@
1
1
  # @mastra/agent-builder
2
2
 
3
+ ## 1.0.0-beta.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix install step validation error by making targetPath optional in InstallInputSchema. This resolves the "expected string, received undefined" error when running the agent builder template workflow without explicitly providing a targetPath parameter. ([#10922](https://github.com/mastra-ai/mastra/pull/10922))
8
+
9
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`9f2c5b1`](https://github.com/mastra-ai/mastra/commit/9f2c5b163e959b0cd08e2f399fb0ff927a3dba91), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
10
+ - @mastra/core@1.0.0-beta.8
11
+ - @mastra/memory@1.0.0-beta.4
12
+
3
13
  ## 1.0.0-beta.3
4
14
 
5
15
  ### Patch Changes
@@ -488,15 +498,5 @@
488
498
  - Updated dependencies [8387952]
489
499
  - Updated dependencies [7f3b8da]
490
500
  - Updated dependencies [905352b]
491
- - Updated dependencies [599d04c]
492
- - Updated dependencies [56041d0]
493
- - Updated dependencies [3412597]
494
- - Updated dependencies [5eca5d2]
495
- - Updated dependencies [f2cda47]
496
- - Updated dependencies [5de1555]
497
- - Updated dependencies [cfd377a]
498
- - Updated dependencies [1ed5a3e]
499
- - @mastra/core@0.15.3
500
- - @mastra/memory@0.14.3
501
-
502
- ... 55 more lines hidden. See full changelog in package directory.
501
+
502
+ ... 65 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,52 @@
1
1
  # @mastra/ai-sdk
2
2
 
3
+ ## 1.0.0-beta.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Return NetworkDataPart on each agent-execution-event and workflow-execution-event in network streams ([#10982](https://github.com/mastra-ai/mastra/pull/10982))
8
+
9
+ - Fixed tool-call-suspended chunks being dropped in workflow-step-output when using AI SDK. Previously, when an agent inside a workflow step called a tool that got suspended, the tool-call-suspended chunk was not received on the frontend even though tool-input-available chunks were correctly received. ([#10987](https://github.com/mastra-ai/mastra/pull/10987))
10
+
11
+ The issue occurred because tool-call-suspended was not included in the isMastraTextStreamChunk list, causing it to be filtered out in transformWorkflow. Now tool-call-suspended, tool-call-approval, object, and tripwire chunks are properly included in the text stream chunk list and will be transformed and passed through correctly.
12
+
13
+ Fixes #10978
14
+
15
+ - Adds `withMastra()` for wrapping AI SDK models with Mastra processors and memory. ([#10911](https://github.com/mastra-ai/mastra/pull/10911))
16
+
17
+ ```typescript
18
+ import { openai } from '@ai-sdk/openai';
19
+ import { generateText } from 'ai';
20
+ import { withMastra } from '@mastra/ai-sdk';
21
+
22
+ const model = withMastra(openai('gpt-4o'), {
23
+ inputProcessors: [myGuardProcessor],
24
+ outputProcessors: [myLoggingProcessor],
25
+ memory: {
26
+ storage,
27
+ threadId: 'thread-123',
28
+ resourceId: 'user-123',
29
+ lastMessages: 10,
30
+ },
31
+ });
32
+
33
+ const { text } = await generateText({ model, prompt: 'Hello!' });
34
+ ```
35
+
36
+ Works with `generateText`, `streamText`, `generateObject`, and `streamObject`.
37
+
38
+ - Updated dependencies [[`72df8ae`](https://github.com/mastra-ai/mastra/commit/72df8ae595584cdd7747d5c39ffaca45e4507227), [`9198899`](https://github.com/mastra-ai/mastra/commit/91988995c427b185c33714b7f3be955367911324), [`653e65a`](https://github.com/mastra-ai/mastra/commit/653e65ae1f9502c2958a32f47a5a2df11e612a92), [`c6fd6fe`](https://github.com/mastra-ai/mastra/commit/c6fd6fedd09e9cf8004b03a80925f5e94826ad7e), [`0bed332`](https://github.com/mastra-ai/mastra/commit/0bed332843f627202c6520eaf671771313cd20f3)]:
39
+ - @mastra/core@1.0.0-beta.9
40
+
41
+ ## 1.0.0-beta.6
42
+
43
+ ### Patch Changes
44
+
45
+ - Improve JSDoc comments ([#10877](https://github.com/mastra-ai/mastra/pull/10877))
46
+
47
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
48
+ - @mastra/core@1.0.0-beta.8
49
+
3
50
  ## 1.0.0-beta.5
4
51
 
5
52
  ### Minor Changes
@@ -451,52 +498,5 @@
451
498
  - Add transformer to support workflows in useChat ([#7829](https://github.com/mastra-ai/mastra/pull/7829))
452
499
 
453
500
  - Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`504438b`](https://github.com/mastra-ai/mastra/commit/504438b961bde211071186bba63a842c4e3db879), [`b342a68`](https://github.com/mastra-ai/mastra/commit/b342a68e1399cf1ece9ba11bda112db89d21118c), [`a7243e2`](https://github.com/mastra-ai/mastra/commit/a7243e2e58762667a6e3921e755e89d6bb0a3282), [`7fceb0a`](https://github.com/mastra-ai/mastra/commit/7fceb0a327d678e812f90f5387c5bc4f38bd039e), [`303a9c0`](https://github.com/mastra-ai/mastra/commit/303a9c0d7dd58795915979f06a0512359e4532fb), [`df64f9e`](https://github.com/mastra-ai/mastra/commit/df64f9ef814916fff9baedd861c988084e7c41de), [`370f8a6`](https://github.com/mastra-ai/mastra/commit/370f8a6480faec70fef18d72e5f7538f27004301), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`683e5a1`](https://github.com/mastra-ai/mastra/commit/683e5a1466e48b686825b2c11f84680f296138e4), [`3679378`](https://github.com/mastra-ai/mastra/commit/3679378673350aa314741dc826f837b1984149bc), [`7775bc2`](https://github.com/mastra-ai/mastra/commit/7775bc20bb1ad1ab24797fb420e4f96c65b0d8ec), [`623ffaf`](https://github.com/mastra-ai/mastra/commit/623ffaf2d969e11e99a0224633cf7b5a0815c857), [`9fc1613`](https://github.com/mastra-ai/mastra/commit/9fc16136400186648880fd990119ac15f7c02ee4), [`61f62aa`](https://github.com/mastra-ai/mastra/commit/61f62aa31bc88fe4ddf8da6240dbcfbeb07358bd), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`e8f379d`](https://github.com/mastra-ai/mastra/commit/e8f379d390efa264c4e0874f9ac0cf8839b07777), [`652066b`](https://github.com/mastra-ai/mastra/commit/652066bd1efc6bb6813ba950ed1d7573e8b7d9d4), [`3e292ba`](https://github.com/mastra-ai/mastra/commit/3e292ba00837886d5d68a34cbc0d9b703c991883), [`418c136`](https://github.com/mastra-ai/mastra/commit/418c1366843d88e491bca3f87763899ce855ca29), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`67b0f00`](https://github.com/mastra-ai/mastra/commit/67b0f005b520335c71fb85cbaa25df4ce8484a81), [`c2a4919`](https://github.com/mastra-ai/mastra/commit/c2a4919ba6797d8bdb1509e02287496eef69303e), [`c84b7d0`](https://github.com/mastra-ai/mastra/commit/c84b7d093c4657772140cbfd2b15ef72f3315ed5), [`0130986`](https://github.com/mastra-ai/mastra/commit/0130986fc62d0edcc626dd593282661dbb9af141)]:
454
- - @mastra/core@0.19.0
455
-
456
- ## 0.0.5-alpha.0
457
-
458
- ### Patch Changes
459
-
460
- - Update peer deps ([#8154](https://github.com/mastra-ai/mastra/pull/8154))
461
-
462
- - Add transformer to support workflows in useChat ([#7829](https://github.com/mastra-ai/mastra/pull/7829))
463
-
464
- - Updated dependencies [[`504438b`](https://github.com/mastra-ai/mastra/commit/504438b961bde211071186bba63a842c4e3db879), [`a7243e2`](https://github.com/mastra-ai/mastra/commit/a7243e2e58762667a6e3921e755e89d6bb0a3282), [`7fceb0a`](https://github.com/mastra-ai/mastra/commit/7fceb0a327d678e812f90f5387c5bc4f38bd039e), [`df64f9e`](https://github.com/mastra-ai/mastra/commit/df64f9ef814916fff9baedd861c988084e7c41de), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`683e5a1`](https://github.com/mastra-ai/mastra/commit/683e5a1466e48b686825b2c11f84680f296138e4), [`3679378`](https://github.com/mastra-ai/mastra/commit/3679378673350aa314741dc826f837b1984149bc), [`7775bc2`](https://github.com/mastra-ai/mastra/commit/7775bc20bb1ad1ab24797fb420e4f96c65b0d8ec), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`e8f379d`](https://github.com/mastra-ai/mastra/commit/e8f379d390efa264c4e0874f9ac0cf8839b07777), [`652066b`](https://github.com/mastra-ai/mastra/commit/652066bd1efc6bb6813ba950ed1d7573e8b7d9d4), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`c2a4919`](https://github.com/mastra-ai/mastra/commit/c2a4919ba6797d8bdb1509e02287496eef69303e), [`0130986`](https://github.com/mastra-ai/mastra/commit/0130986fc62d0edcc626dd593282661dbb9af141)]:
465
- - @mastra/core@0.19.0-alpha.1
466
-
467
- ## 0.0.4
468
-
469
- ### Patch Changes
470
-
471
- - fix: result object type inference when using structuredOutput and unify output/structuredOutput types with single OUTPUT generic ([#7969](https://github.com/mastra-ai/mastra/pull/7969))
472
-
473
- - Update Peerdeps for packages based on core minor bump ([#8025](https://github.com/mastra-ai/mastra/pull/8025))
474
-
475
- - Updated dependencies [[`cf34503`](https://github.com/mastra-ai/mastra/commit/cf345031de4e157f29087946449e60b965e9c8a9), [`6b4b1e4`](https://github.com/mastra-ai/mastra/commit/6b4b1e4235428d39e51cbda9832704c0ba70ab32), [`3469fca`](https://github.com/mastra-ai/mastra/commit/3469fca7bb7e5e19369ff9f7044716a5e4b02585), [`a61f23f`](https://github.com/mastra-ai/mastra/commit/a61f23fbbca4b88b763d94f1d784c47895ed72d7), [`4b339b8`](https://github.com/mastra-ai/mastra/commit/4b339b8141c20d6a6d80583c7e8c5c05d8c19492), [`d1dc606`](https://github.com/mastra-ai/mastra/commit/d1dc6067b0557a71190b68d56ee15b48c26d2411), [`c45298a`](https://github.com/mastra-ai/mastra/commit/c45298a0a0791db35cf79f1199d77004da0704cb), [`c4a8204`](https://github.com/mastra-ai/mastra/commit/c4a82046bfd241d6044e234bc5917d5a01fe6b55), [`d3bd4d4`](https://github.com/mastra-ai/mastra/commit/d3bd4d482a685bbb67bfa89be91c90dca3fa71ad), [`c591dfc`](https://github.com/mastra-ai/mastra/commit/c591dfc1e600fae1dedffe239357d250e146378f), [`1920c5c`](https://github.com/mastra-ai/mastra/commit/1920c5c6d666f687785c73021196aa551e579e0d), [`b6a3b65`](https://github.com/mastra-ai/mastra/commit/b6a3b65d830fa0ca7754ad6481661d1f2c878f21), [`af3abb6`](https://github.com/mastra-ai/mastra/commit/af3abb6f7c7585d856e22d27f4e7d2ece2186b9a)]:
476
- - @mastra/core@0.18.0
477
-
478
- ## 0.0.4-alpha.1
479
-
480
- ### Patch Changes
481
-
482
- - Update Peerdeps for packages based on core minor bump ([#8025](https://github.com/mastra-ai/mastra/pull/8025))
483
-
484
- - Updated dependencies [[`cf34503`](https://github.com/mastra-ai/mastra/commit/cf345031de4e157f29087946449e60b965e9c8a9), [`6b4b1e4`](https://github.com/mastra-ai/mastra/commit/6b4b1e4235428d39e51cbda9832704c0ba70ab32), [`3469fca`](https://github.com/mastra-ai/mastra/commit/3469fca7bb7e5e19369ff9f7044716a5e4b02585), [`c4a8204`](https://github.com/mastra-ai/mastra/commit/c4a82046bfd241d6044e234bc5917d5a01fe6b55)]:
485
- - @mastra/core@0.18.0-alpha.2
486
-
487
- ## 0.0.4-alpha.0
488
-
489
- ### Patch Changes
490
-
491
- - fix: result object type inference when using structuredOutput and unify output/structuredOutput types with single OUTPUT generic ([#7969](https://github.com/mastra-ai/mastra/pull/7969))
492
-
493
- - Updated dependencies [[`a61f23f`](https://github.com/mastra-ai/mastra/commit/a61f23fbbca4b88b763d94f1d784c47895ed72d7), [`d1dc606`](https://github.com/mastra-ai/mastra/commit/d1dc6067b0557a71190b68d56ee15b48c26d2411), [`d3bd4d4`](https://github.com/mastra-ai/mastra/commit/d3bd4d482a685bbb67bfa89be91c90dca3fa71ad)]:
494
- - @mastra/core@0.17.2-alpha.0
495
-
496
- ## 0.0.3
497
-
498
- ### Patch Changes
499
-
500
- - Update peerdep of @mastra/core ([#7619](https://github.com/mastra-ai/mastra/pull/7619))
501
501
 
502
- ... 105 more lines hidden. See full changelog in package directory.
502
+ ... 152 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,21 @@
1
1
  # @mastra/clickhouse
2
2
 
3
+ ## 1.0.0-beta.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix saveScore not persisting ID correctly, breaking getScoreById retrieval ([#10915](https://github.com/mastra-ai/mastra/pull/10915))
8
+
9
+ **What Changed**
10
+ - saveScore now correctly returns scores that can be retrieved with getScoreById
11
+ - Validation errors now include contextual information (scorer, entity, trace details) for easier debugging
12
+
13
+ **Impact**
14
+ Previously, calling getScoreById after saveScore would return null because the generated ID wasn't persisted to the database. This is now fixed across all store implementations, ensuring consistent behavior and data integrity.
15
+
16
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
17
+ - @mastra/core@1.0.0-beta.8
18
+
3
19
  ## 1.0.0-beta.3
4
20
 
5
21
  ### Minor Changes
@@ -482,21 +498,5 @@
482
498
 
483
499
  - 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
484
500
  - Updated dependencies [fd83526]
485
- - Updated dependencies [d0b90ab]
486
- - Updated dependencies [6f5eb7a]
487
- - Updated dependencies [a01cf14]
488
- - Updated dependencies [a9e50ee]
489
- - Updated dependencies [5397eb4]
490
- - Updated dependencies [c9f4e4a]
491
- - Updated dependencies [0acbc80]
492
- - @mastra/core@0.16.0-alpha.0
493
-
494
- ## 0.14.3
495
-
496
- ### Patch Changes
497
-
498
- - de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
499
- - f0dfcac: updated core peerdep
500
- - Updated dependencies [ab48c97]
501
501
 
502
- ... 1244 more lines hidden. See full changelog in package directory.
502
+ ... 1260 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,21 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 1.0.0-beta.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix `saveMessageToMemory` return type to match API response. The method now correctly returns `{ messages: (MastraMessageV1 | MastraDBMessage)[] }` instead of `(MastraMessageV1 | MastraDBMessage)[]` to align with the server endpoint response schema. ([#10996](https://github.com/mastra-ai/mastra/pull/10996))
8
+
9
+ - Updated dependencies [[`72df8ae`](https://github.com/mastra-ai/mastra/commit/72df8ae595584cdd7747d5c39ffaca45e4507227), [`9198899`](https://github.com/mastra-ai/mastra/commit/91988995c427b185c33714b7f3be955367911324), [`653e65a`](https://github.com/mastra-ai/mastra/commit/653e65ae1f9502c2958a32f47a5a2df11e612a92), [`c6fd6fe`](https://github.com/mastra-ai/mastra/commit/c6fd6fedd09e9cf8004b03a80925f5e94826ad7e), [`0bed332`](https://github.com/mastra-ai/mastra/commit/0bed332843f627202c6520eaf671771313cd20f3)]:
10
+ - @mastra/core@1.0.0-beta.9
11
+
12
+ ## 1.0.0-beta.8
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
17
+ - @mastra/core@1.0.0-beta.8
18
+
3
19
  ## 1.0.0-beta.7
4
20
 
5
21
  ### Patch Changes
@@ -483,20 +499,4 @@
483
499
  - Updated dependencies [[`2b031e2`](https://github.com/mastra-ai/mastra/commit/2b031e25ca10cd3e4d63e6a27f909cba26d91405)]:
484
500
  - @mastra/core@0.22.2
485
501
 
486
- ## 0.16.4-alpha.0
487
-
488
- ### Patch Changes
489
-
490
- - Updated dependencies [[`2b031e2`](https://github.com/mastra-ai/mastra/commit/2b031e25ca10cd3e4d63e6a27f909cba26d91405)]:
491
- - @mastra/core@0.22.2-alpha.0
492
-
493
- ## 0.16.3
494
-
495
- ### Patch Changes
496
-
497
- - Updated dependencies []:
498
- - @mastra/core@0.22.1
499
-
500
- ## 0.16.3-alpha.0
501
-
502
- ... 3238 more lines hidden. See full changelog in package directory.
502
+ ... 3254 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,21 @@
1
1
  # @mastra/cloudflare-d1
2
2
 
3
+ ## 1.0.0-beta.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix saveScore not persisting ID correctly, breaking getScoreById retrieval ([#10915](https://github.com/mastra-ai/mastra/pull/10915))
8
+
9
+ **What Changed**
10
+ - saveScore now correctly returns scores that can be retrieved with getScoreById
11
+ - Validation errors now include contextual information (scorer, entity, trace details) for easier debugging
12
+
13
+ **Impact**
14
+ Previously, calling getScoreById after saveScore would return null because the generated ID wasn't persisted to the database. This is now fixed across all store implementations, ensuring consistent behavior and data integrity.
15
+
16
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
17
+ - @mastra/core@1.0.0-beta.8
18
+
3
19
  ## 1.0.0-beta.3
4
20
 
5
21
  ### Minor Changes
@@ -482,21 +498,5 @@
482
498
  - Updated dependencies [f643c65]
483
499
  - Updated dependencies [00c74e7]
484
500
  - Updated dependencies [fef7375]
485
- - Updated dependencies [e3d8fea]
486
- - Updated dependencies [45e4d39]
487
- - Updated dependencies [9eee594]
488
- - Updated dependencies [7149d8d]
489
- - Updated dependencies [822c2e8]
490
- - Updated dependencies [979912c]
491
- - Updated dependencies [7dcf4c0]
492
- - Updated dependencies [4106a58]
493
- - Updated dependencies [ad78bfc]
494
- - Updated dependencies [0302f50]
495
- - Updated dependencies [6ac697e]
496
- - Updated dependencies [74db265]
497
- - Updated dependencies [0ce418a]
498
- - Updated dependencies [af90672]
499
- - Updated dependencies [8387952]
500
- - Updated dependencies [7f3b8da]
501
-
502
- ... 985 more lines hidden. See full changelog in package directory.
501
+
502
+ ... 1001 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,21 @@
1
1
  # @mastra/cloudflare
2
2
 
3
+ ## 1.0.0-beta.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix saveScore not persisting ID correctly, breaking getScoreById retrieval ([#10915](https://github.com/mastra-ai/mastra/pull/10915))
8
+
9
+ **What Changed**
10
+ - saveScore now correctly returns scores that can be retrieved with getScoreById
11
+ - Validation errors now include contextual information (scorer, entity, trace details) for easier debugging
12
+
13
+ **Impact**
14
+ Previously, calling getScoreById after saveScore would return null because the generated ID wasn't persisted to the database. This is now fixed across all store implementations, ensuring consistent behavior and data integrity.
15
+
16
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
17
+ - @mastra/core@1.0.0-beta.8
18
+
3
19
  ## 1.0.0-beta.4
4
20
 
5
21
  ### Minor Changes
@@ -482,21 +498,5 @@
482
498
  ### Patch Changes
483
499
 
484
500
  - 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
485
- - Updated dependencies [8fbf79e]
486
- - Updated dependencies [fd83526]
487
- - Updated dependencies [d0b90ab]
488
- - Updated dependencies [6f5eb7a]
489
- - Updated dependencies [a01cf14]
490
- - Updated dependencies [a9e50ee]
491
- - Updated dependencies [5397eb4]
492
- - Updated dependencies [c9f4e4a]
493
- - Updated dependencies [0acbc80]
494
- - @mastra/core@0.16.0
495
-
496
- ## 0.12.0-alpha.1
497
-
498
- ### Minor Changes
499
-
500
- - 376913a: Update peerdeps of @mastra/core
501
501
 
502
- ... 1214 more lines hidden. See full changelog in package directory.
502
+ ... 1230 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,11 @@
1
1
  # @mastra/codemod
2
2
 
3
+ ## 0.1.0-beta.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed a bug where `[native code]` was incorrectly added to the output ([#10971](https://github.com/mastra-ai/mastra/pull/10971))
8
+
3
9
  ## 0.1.0-beta.3
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,21 @@
1
1
  # @mastra/convex
2
2
 
3
+ ## 0.1.0-beta.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix saveScore not persisting ID correctly, breaking getScoreById retrieval ([#10915](https://github.com/mastra-ai/mastra/pull/10915))
8
+
9
+ **What Changed**
10
+ - saveScore now correctly returns scores that can be retrieved with getScoreById
11
+ - Validation errors now include contextual information (scorer, entity, trace details) for easier debugging
12
+
13
+ **Impact**
14
+ Previously, calling getScoreById after saveScore would return null because the generated ID wasn't persisted to the database. This is now fixed across all store implementations, ensuring consistent behavior and data integrity.
15
+
16
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
17
+ - @mastra/core@1.0.0-beta.8
18
+
3
19
  ## 0.1.0-beta.1
4
20
 
5
21
  ### Minor Changes
@@ -1,5 +1,82 @@
1
1
  # @mastra/core
2
2
 
3
+ ## 1.0.0-beta.9
4
+
5
+ ### Minor Changes
6
+
7
+ - Add stored agents support ([#10953](https://github.com/mastra-ai/mastra/pull/10953))
8
+
9
+ Agents can now be stored in the database and loaded at runtime. This lets you persist agent configurations and dynamically create executable Agent instances from storage.
10
+
11
+ ```typescript
12
+ import { Mastra } from '@mastra/core';
13
+ import { LibSQLStore } from '@mastra/libsql';
14
+
15
+ const mastra = new Mastra({
16
+ storage: new LibSQLStore({ url: ':memory:' }),
17
+ tools: { myTool },
18
+ scorers: { myScorer },
19
+ });
20
+
21
+ // Create agent in storage via API or directly
22
+ await mastra.getStorage().createAgent({
23
+ agent: {
24
+ id: 'my-agent',
25
+ name: 'My Agent',
26
+ instructions: 'You are helpful',
27
+ model: { provider: 'openai', name: 'gpt-4' },
28
+ tools: { myTool: {} },
29
+ scorers: { myScorer: { sampling: { type: 'ratio', rate: 0.5 } } },
30
+ },
31
+ });
32
+
33
+ // Load and use the agent
34
+ const agent = await mastra.getStoredAgentById('my-agent');
35
+ const response = await agent.generate({ messages: 'Hello!' });
36
+
37
+ // List all stored agents with pagination
38
+ const { agents, total, hasMore } = await mastra.listStoredAgents({
39
+ page: 0,
40
+ perPage: 10,
41
+ });
42
+ ```
43
+
44
+ Also adds a memory registry to Mastra so stored agents can reference memory instances by key.
45
+
46
+ ### Patch Changes
47
+
48
+ - Add agentId and agentName attributes to MODEL_GENERATION spans. This allows users to correlate gen_ai.usage metrics with specific agents when analyzing LLM operation spans. The attributes are exported as gen_ai.agent.id and gen_ai.agent.name in the OtelExporter. ([#10984](https://github.com/mastra-ai/mastra/pull/10984))
49
+
50
+ - Fix JSON parsing errors when LLMs output unescaped newlines in structured output strings ([#10965](https://github.com/mastra-ai/mastra/pull/10965))
51
+
52
+ Some LLMs (particularly when not using native JSON mode) output actual newline characters inside JSON string values instead of properly escaped `\n` sequences. This breaks JSON parsing and causes structured output to fail.
53
+
54
+ This change adds preprocessing to escape unescaped control characters (`\n`, `\r`, `\t`) within JSON string values before parsing, making structured output more robust across different LLM providers.
55
+
56
+ - Fix toolCallId propagation in agent network tool execution. The toolCallId property was undefined at runtime despite being required by TypeScript type definitions in AgentToolExecutionContext. Now properly passes the toolCallId through to the tool's context during network tool execution. ([#10951](https://github.com/mastra-ai/mastra/pull/10951))
57
+
58
+ - Exports `convertFullStreamChunkToMastra` from the stream module for AI SDK stream chunk transformations. ([#10911](https://github.com/mastra-ai/mastra/pull/10911))
59
+
60
+ ## 1.0.0-beta.8
61
+
62
+ ### Patch Changes
63
+
64
+ - Fix saveScore not persisting ID correctly, breaking getScoreById retrieval ([#10915](https://github.com/mastra-ai/mastra/pull/10915))
65
+
66
+ **What Changed**
67
+ - saveScore now correctly returns scores that can be retrieved with getScoreById
68
+ - Validation errors now include contextual information (scorer, entity, trace details) for easier debugging
69
+
70
+ **Impact**
71
+ Previously, calling getScoreById after saveScore would return null because the generated ID wasn't persisted to the database. This is now fixed across all store implementations, ensuring consistent behavior and data integrity.
72
+
73
+ - `setState` is now async ([#10944](https://github.com/mastra-ai/mastra/pull/10944))
74
+ - `setState` must now be awaited: `await setState({ key: value })`
75
+ - State updates are merged automatically—no need to spread the previous state
76
+ - State data is validated against the step's `stateSchema` when `validateInputs` is enabled (default: `true`)
77
+
78
+ - Add human-in-the-loop support for workflows used in agent ([#10871](https://github.com/mastra-ai/mastra/pull/10871))
79
+
3
80
  ## 1.0.0-beta.7
4
81
 
5
82
  ### Minor Changes
@@ -422,81 +499,4 @@
422
499
 
423
500
  - Fix writer.custom not working during workflow resume operations ([#10720](https://github.com/mastra-ai/mastra/pull/10720))
424
501
 
425
- When a workflow step is resumed, the writer parameter was not being properly passed through, causing writer.custom() calls to fail. This fix ensures the writableStream parameter is correctly passed to both run.resume() and run.start() calls in the workflow execution engine, allowing custom events to be emitted properly during resume operations.
426
-
427
- - Fix corrupted provider-registry.json file in global cache and regenerate corrupted files ([#10606](https://github.com/mastra-ai/mastra/pull/10606))
428
-
429
- - Fix TypeScript error when using Zod schemas in `defaultOptions.structuredOutput` ([#10710](https://github.com/mastra-ai/mastra/pull/10710))
430
-
431
- Previously, defining `structuredOutput.schema` in `defaultOptions` would cause a TypeScript error because the type only accepted `undefined`. Now any valid `OutputSchema` is correctly accepted.
432
-
433
- - Add support for `providerOptions` when defining tools. This allows developers to specify provider-specific configurations (like Anthropic's `cacheControl`) per tool. ([#10649](https://github.com/mastra-ai/mastra/pull/10649))
434
-
435
- ```typescript
436
- createTool({
437
- id: 'my-tool',
438
- providerOptions: {
439
- anthropic: { cacheControl: { type: 'ephemeral' } },
440
- },
441
- // ...
442
- });
443
- ```
444
-
445
- - Fixed OpenAI reasoning message merging so distinct reasoning items are no longer dropped when they share a message ID. Prevents downstream errors where a function call is missing its required "reasoning" item. See #9005. ([#10614](https://github.com/mastra-ai/mastra/pull/10614))
446
-
447
- - Updated dependencies [[`103586c`](https://github.com/mastra-ai/mastra/commit/103586cb23ebcd2466c7f68a71674d37cc10e263), [`61a5705`](https://github.com/mastra-ai/mastra/commit/61a570551278b6743e64243b3ce7d73de915ca8a), [`db70a48`](https://github.com/mastra-ai/mastra/commit/db70a48aeeeeb8e5f92007e8ede52c364ce15287), [`f03ae60`](https://github.com/mastra-ai/mastra/commit/f03ae60500fe350c9d828621006cdafe1975fdd8)]:
448
- - @mastra/observability@1.0.0-beta.2
449
- - @mastra/schema-compat@1.0.0-beta.2
450
-
451
- ## 1.0.0-beta.5
452
-
453
- ### Patch Changes
454
-
455
- - Add Azure OpenAI gateway ([#9990](https://github.com/mastra-ai/mastra/pull/9990))
456
-
457
- The Azure OpenAI gateway supports three configuration modes:
458
- 1. **Static deployments**: Provide deployment names from Azure Portal
459
- 2. **Dynamic discovery**: Query Azure Management API for available deployments
460
- 3. **Manual**: Specify deployment names when creating agents
461
-
462
- ## Usage
463
-
464
- ```typescript
465
- import { Mastra } from '@mastra/core';
466
- import { AzureOpenAIGateway } from '@mastra/core/llm';
467
-
468
- // Static mode (recommended)
469
- export const mastra = new Mastra({
470
- gateways: [
471
- new AzureOpenAIGateway({
472
- resourceName: process.env.AZURE_RESOURCE_NAME!,
473
- apiKey: process.env.AZURE_API_KEY!,
474
- deployments: ['gpt-4-prod', 'gpt-35-turbo-dev'],
475
- }),
476
- ],
477
- });
478
-
479
- // Dynamic discovery mode
480
- export const mastra = new Mastra({
481
- gateways: [
482
- new AzureOpenAIGateway({
483
- resourceName: process.env.AZURE_RESOURCE_NAME!,
484
- apiKey: process.env.AZURE_API_KEY!,
485
- management: {
486
- tenantId: process.env.AZURE_TENANT_ID!,
487
- clientId: process.env.AZURE_CLIENT_ID!,
488
- clientSecret: process.env.AZURE_CLIENT_SECRET!,
489
- subscriptionId: process.env.AZURE_SUBSCRIPTION_ID!,
490
- resourceGroup: 'my-resource-group',
491
- },
492
- }),
493
- ],
494
- });
495
-
496
- // Use Azure OpenAI models
497
- const agent = new Agent({
498
- model: 'azure-openai/gpt-4-deployment',
499
- instructions: 'You are a helpful assistant',
500
- });
501
-
502
- ... 5916 more lines hidden. See full changelog in package directory.
502
+ ... 5993 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,22 @@
1
1
  # @mastra/deployer-cloud
2
2
 
3
+ ## 1.0.0-beta.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`72df8ae`](https://github.com/mastra-ai/mastra/commit/72df8ae595584cdd7747d5c39ffaca45e4507227), [`9198899`](https://github.com/mastra-ai/mastra/commit/91988995c427b185c33714b7f3be955367911324), [`7761c77`](https://github.com/mastra-ai/mastra/commit/7761c778b7b083cb01f7587cfa66010307204d00), [`653e65a`](https://github.com/mastra-ai/mastra/commit/653e65ae1f9502c2958a32f47a5a2df11e612a92), [`c6fd6fe`](https://github.com/mastra-ai/mastra/commit/c6fd6fedd09e9cf8004b03a80925f5e94826ad7e), [`0bed332`](https://github.com/mastra-ai/mastra/commit/0bed332843f627202c6520eaf671771313cd20f3)]:
8
+ - @mastra/core@1.0.0-beta.9
9
+ - @mastra/deployer@1.0.0-beta.9
10
+
11
+ ## 1.0.0-beta.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`38c98bc`](https://github.com/mastra-ai/mastra/commit/38c98bca79aa028d6ac324073779483ace4d665b), [`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`2a54120`](https://github.com/mastra-ai/mastra/commit/2a541203a7ede20c7b4dca11adaed387e717d6e0), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
16
+ - @mastra/loggers@1.0.0-beta.3
17
+ - @mastra/core@1.0.0-beta.8
18
+ - @mastra/deployer@1.0.0-beta.8
19
+
3
20
  ## 1.0.0-beta.7
4
21
 
5
22
  ### Patch Changes
@@ -481,22 +498,5 @@
481
498
 
482
499
  ## 0.17.1
483
500
 
484
- ### Patch Changes
485
-
486
- - Updated dependencies [[`fd00e63`](https://github.com/mastra-ai/mastra/commit/fd00e63759cbcca3473c40cac9843280b0557cff), [`ab610f6`](https://github.com/mastra-ai/mastra/commit/ab610f6f41dbfe6c9502368671485ca7a0aac09b), [`e6bda5f`](https://github.com/mastra-ai/mastra/commit/e6bda5f954ee8493ea18adc1a883f0a5b785ad9b)]:
487
- - @mastra/core@0.17.1
488
- - @mastra/deployer@0.17.1
489
-
490
- ## 0.17.1-alpha.0
491
-
492
- ### Patch Changes
493
-
494
- - Updated dependencies [[`fd00e63`](https://github.com/mastra-ai/mastra/commit/fd00e63759cbcca3473c40cac9843280b0557cff), [`ab610f6`](https://github.com/mastra-ai/mastra/commit/ab610f6f41dbfe6c9502368671485ca7a0aac09b), [`e6bda5f`](https://github.com/mastra-ai/mastra/commit/e6bda5f954ee8493ea18adc1a883f0a5b785ad9b)]:
495
- - @mastra/core@0.17.1-alpha.0
496
- - @mastra/deployer@0.17.1-alpha.0
497
-
498
- ## 0.17.0
499
-
500
- ### Minor Changes
501
501
 
502
- ... 462 more lines hidden. See full changelog in package directory.
502
+ ... 479 more lines hidden. See full changelog in package directory.