@mastra/react 0.0.0-error-handler-fix-20251020202607 → 0.0.0-execa-dynamic-import-20260304221256

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 (110) hide show
  1. package/CHANGELOG.md +1172 -3
  2. package/LICENSE.md +15 -0
  3. package/dist/agent/hooks.d.ts +66 -0
  4. package/dist/agent/hooks.d.ts.map +1 -0
  5. package/dist/{src/agent → agent}/types.d.ts +2 -0
  6. package/dist/agent/types.d.ts.map +1 -0
  7. package/dist/index.cjs +1515 -293
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.ts +8 -2
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +1506 -286
  12. package/dist/index.js.map +1 -1
  13. package/dist/lib/ai-sdk/index.d.ts +5 -0
  14. package/dist/lib/ai-sdk/index.d.ts.map +1 -0
  15. package/dist/lib/ai-sdk/memory/resolveInitialMessages.d.ts +13 -0
  16. package/dist/lib/ai-sdk/memory/resolveInitialMessages.d.ts.map +1 -0
  17. package/dist/{src/lib → lib}/ai-sdk/transformers/AISdkNetworkTransformer.d.ts +4 -3
  18. package/dist/lib/ai-sdk/transformers/AISdkNetworkTransformer.d.ts.map +1 -0
  19. package/dist/lib/ai-sdk/transformers/types.d.ts +11 -0
  20. package/dist/lib/ai-sdk/transformers/types.d.ts.map +1 -0
  21. package/dist/lib/ai-sdk/types.d.ts +116 -0
  22. package/dist/lib/ai-sdk/types.d.ts.map +1 -0
  23. package/dist/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts +11 -0
  24. package/dist/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts.map +1 -0
  25. package/dist/{src/lib → lib}/ai-sdk/utils/toAssistantUIMessage.d.ts +3 -2
  26. package/dist/lib/ai-sdk/utils/toAssistantUIMessage.d.ts.map +1 -0
  27. package/dist/{src/lib → lib}/ai-sdk/utils/toUIMessage.d.ts +4 -3
  28. package/dist/lib/ai-sdk/utils/toUIMessage.d.ts.map +1 -0
  29. package/dist/lib/use-mutation.d.ts +28 -0
  30. package/dist/lib/use-mutation.d.ts.map +1 -0
  31. package/dist/mastra-client-context.d.ts +14 -0
  32. package/dist/mastra-client-context.d.ts.map +1 -0
  33. package/dist/mastra-react-provider.d.ts +5 -0
  34. package/dist/mastra-react-provider.d.ts.map +1 -0
  35. package/dist/react.css +184 -322
  36. package/dist/{src/ui → ui}/Code/Code.d.ts +2 -1
  37. package/dist/ui/Code/Code.d.ts.map +1 -0
  38. package/dist/ui/Code/highlight.d.ts +4 -0
  39. package/dist/ui/Code/highlight.d.ts.map +1 -0
  40. package/dist/ui/Code/index.d.ts +2 -0
  41. package/dist/ui/Code/index.d.ts.map +1 -0
  42. package/dist/{src/ui → ui}/Entity/Entity.d.ts +2 -1
  43. package/dist/ui/Entity/Entity.d.ts.map +1 -0
  44. package/dist/{src/ui → ui}/Entity/Entry.d.ts +2 -1
  45. package/dist/ui/Entity/Entry.d.ts.map +1 -0
  46. package/dist/{src/ui → ui}/Entity/ToolApproval.d.ts +1 -0
  47. package/dist/ui/Entity/ToolApproval.d.ts.map +1 -0
  48. package/dist/{src/ui → ui}/Entity/context.d.ts +4 -3
  49. package/dist/ui/Entity/context.d.ts.map +1 -0
  50. package/dist/ui/Entity/index.d.ts +5 -0
  51. package/dist/ui/Entity/index.d.ts.map +1 -0
  52. package/dist/{src/ui → ui}/Entity/types.d.ts +1 -0
  53. package/dist/ui/Entity/types.d.ts.map +1 -0
  54. package/dist/{src/ui → ui}/Icon/Icon.d.ts +2 -1
  55. package/dist/ui/Icon/Icon.d.ts.map +1 -0
  56. package/dist/ui/Icon/index.d.ts +2 -0
  57. package/dist/ui/Icon/index.d.ts.map +1 -0
  58. package/dist/{src/ui → ui}/IconButton/IconButton.d.ts +2 -1
  59. package/dist/ui/IconButton/IconButton.d.ts.map +1 -0
  60. package/dist/ui/IconButton/index.d.ts +2 -0
  61. package/dist/ui/IconButton/index.d.ts.map +1 -0
  62. package/dist/{src/ui → ui}/Icons/AgentIcon.d.ts +2 -1
  63. package/dist/ui/Icons/AgentIcon.d.ts.map +1 -0
  64. package/dist/{src/ui → ui}/Icons/ToolsIcon.d.ts +2 -1
  65. package/dist/ui/Icons/ToolsIcon.d.ts.map +1 -0
  66. package/dist/{src/ui → ui}/Icons/WorkflowIcon.d.ts +2 -1
  67. package/dist/ui/Icons/WorkflowIcon.d.ts.map +1 -0
  68. package/dist/ui/Icons/index.d.ts +4 -0
  69. package/dist/ui/Icons/index.d.ts.map +1 -0
  70. package/dist/{src/ui → ui}/Message/Message.d.ts +2 -1
  71. package/dist/ui/Message/Message.d.ts.map +1 -0
  72. package/dist/ui/Message/index.d.ts +2 -0
  73. package/dist/ui/Message/index.d.ts.map +1 -0
  74. package/dist/{src/ui → ui}/Tooltip/Tooltip.d.ts +2 -1
  75. package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -0
  76. package/dist/ui/Tooltip/index.d.ts +2 -0
  77. package/dist/ui/Tooltip/index.d.ts.map +1 -0
  78. package/dist/ui/index.d.ts +8 -0
  79. package/dist/ui/index.d.ts.map +1 -0
  80. package/dist/workflows/hooks.d.ts +34 -0
  81. package/dist/workflows/hooks.d.ts.map +1 -0
  82. package/dist/workflows/index.d.ts +3 -0
  83. package/dist/workflows/index.d.ts.map +1 -0
  84. package/dist/workflows/types.d.ts +122 -0
  85. package/dist/workflows/types.d.ts.map +1 -0
  86. package/dist/workflows/use-stream-workflow.d.ts +39 -0
  87. package/dist/workflows/use-stream-workflow.d.ts.map +1 -0
  88. package/package.json +34 -23
  89. package/dist/src/agent/hooks.d.ts +0 -46
  90. package/dist/src/index.d.ts +0 -6
  91. package/dist/src/lib/ai-sdk/index.d.ts +0 -3
  92. package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.d.ts +0 -2
  93. package/dist/src/lib/ai-sdk/transformers/types.d.ts +0 -10
  94. package/dist/src/lib/ai-sdk/types.d.ts +0 -14
  95. package/dist/src/lib/ai-sdk/utils/toAssistantUIMessage.test.d.ts +0 -1
  96. package/dist/src/mastra-client-context.d.ts +0 -10
  97. package/dist/src/mastra-react-provider.d.ts +0 -4
  98. package/dist/src/ui/Code/highlight.d.ts +0 -3
  99. package/dist/src/ui/Code/index.d.ts +0 -1
  100. package/dist/src/ui/Entity/Entity.stories.d.ts +0 -22
  101. package/dist/src/ui/Entity/index.d.ts +0 -4
  102. package/dist/src/ui/Icon/index.d.ts +0 -1
  103. package/dist/src/ui/IconButton/IconButton.stories.d.ts +0 -12
  104. package/dist/src/ui/IconButton/index.d.ts +0 -1
  105. package/dist/src/ui/Icons/index.d.ts +0 -3
  106. package/dist/src/ui/Message/Message.stories.d.ts +0 -13
  107. package/dist/src/ui/Message/index.d.ts +0 -1
  108. package/dist/src/ui/Tooltip/Tooltip.stories.d.ts +0 -12
  109. package/dist/src/ui/Tooltip/index.d.ts +0 -1
  110. package/dist/src/ui/index.d.ts +0 -7
package/CHANGELOG.md CHANGED
@@ -1,13 +1,1182 @@
1
- # @mastra/react-hooks
1
+ # @mastra/react
2
2
 
3
- ## 0.0.0-error-handler-fix-20251020202607
3
+ ## 0.0.0-execa-dynamic-import-20260304221256
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`41e48c1`](https://github.com/mastra-ai/mastra/commit/41e48c198eee846478e60c02ec432c19d322a517), [`82469d3`](https://github.com/mastra-ai/mastra/commit/82469d3135d5a49dd8dc8feec0ff398b4e0225a0), [`7ef6e2c`](https://github.com/mastra-ai/mastra/commit/7ef6e2c61be5a42e26f55d15b5902866fc76634f), [`b12d2a5`](https://github.com/mastra-ai/mastra/commit/b12d2a59a48be0477cabae66eb6cf0fc94a7d40d), [`b12d2a5`](https://github.com/mastra-ai/mastra/commit/b12d2a59a48be0477cabae66eb6cf0fc94a7d40d), [`4e79496`](https://github.com/mastra-ai/mastra/commit/4e79496a7b4d1869e63d538418fc84cd7d84d86c), [`f51849a`](https://github.com/mastra-ai/mastra/commit/f51849a568935122b5100b7ee69704e6d680cf7b), [`cafa045`](https://github.com/mastra-ai/mastra/commit/cafa0453c9de141ad50c09a13894622dffdd9978), [`1fd9ddb`](https://github.com/mastra-ai/mastra/commit/1fd9ddbb3fe83b281b12bd2e27e426ae86288266), [`d1e26f0`](https://github.com/mastra-ai/mastra/commit/d1e26f0091ea8685ee7219ea510124f4ed816fea), [`6135ef4`](https://github.com/mastra-ai/mastra/commit/6135ef4f5288652bf45f616ec590607e4c95f443), [`6135ef4`](https://github.com/mastra-ai/mastra/commit/6135ef4f5288652bf45f616ec590607e4c95f443)]:
8
+ - @mastra/core@0.0.0-execa-dynamic-import-20260304221256
9
+ - @mastra/client-js@0.0.0-execa-dynamic-import-20260304221256
10
+
11
+ ## 0.2.8
12
+
13
+ ### Patch Changes
14
+
15
+ - fix(@mastra/react): externalize @mastra/core instead of inlining it into dist ([#13703](https://github.com/mastra-ai/mastra/pull/13703))
16
+
17
+ `rollup-plugin-node-externals` doesn't catch workspace-linked packages (`workspace:*`),
18
+ so `@mastra/core` was being fully bundled into `@mastra/react`'s dist (~900KB). Switched
19
+ from Vite/Rollup to tsup with explicit externalization, and moved `@mastra/core` to
20
+ `peerDependencies` so consumers provide it rather than having it bundled inline.
21
+
22
+ - Fixed `mastra studio --server-port` so requests to local servers (`localhost` and `127.0.0.1`) correctly use local development auth behavior. ([#13492](https://github.com/mastra-ai/mastra/pull/13492))
23
+
24
+ - Updated dependencies [[`504fc8b`](https://github.com/mastra-ai/mastra/commit/504fc8b9d0ddab717577ad3bf9c95ea4bd5377bd), [`f9c150b`](https://github.com/mastra-ai/mastra/commit/f9c150b7595ad05ad9cc9a11098e2944361e8c22), [`88de7e8`](https://github.com/mastra-ai/mastra/commit/88de7e8dfe4b7e1951a9e441bb33136e705ce24e), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`edee4b3`](https://github.com/mastra-ai/mastra/commit/edee4b37dff0af515fc7cc0e8d71ee39e6a762f0), [`3790c75`](https://github.com/mastra-ai/mastra/commit/3790c7578cc6a47d854eb12d89e6b1912867fe29), [`e7a235b`](https://github.com/mastra-ai/mastra/commit/e7a235be6472e0c870ed6c791ddb17c492dc188b), [`d51d298`](https://github.com/mastra-ai/mastra/commit/d51d298953967aab1f58ec965b644d109214f085), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`d5f0d8d`](https://github.com/mastra-ai/mastra/commit/d5f0d8d6a03e515ddaa9b5da19b7e44b8357b07b), [`09c3b18`](https://github.com/mastra-ai/mastra/commit/09c3b1802ff14e243a8a8baea327440bc8cc2e32), [`b896379`](https://github.com/mastra-ai/mastra/commit/b8963791c6afa79484645fcec596a201f936b9a2), [`85c84eb`](https://github.com/mastra-ai/mastra/commit/85c84ebb78aebfcba9d209c8e152b16d7a00cb71), [`a89272a`](https://github.com/mastra-ai/mastra/commit/a89272a5d71939b9fcd284e6a6dc1dd091a6bdcf), [`ee9c8df`](https://github.com/mastra-ai/mastra/commit/ee9c8df644f19d055af5f496bf4942705f5a47b7), [`77b4a25`](https://github.com/mastra-ai/mastra/commit/77b4a254e51907f8ff3a3ba95596a18e93ae4b35), [`276246e`](https://github.com/mastra-ai/mastra/commit/276246e0b9066a1ea48bbc70df84dbe528daaf99), [`08ecfdb`](https://github.com/mastra-ai/mastra/commit/08ecfdbdad6fb8285deef86a034bdf4a6047cfca), [`d5f628c`](https://github.com/mastra-ai/mastra/commit/d5f628ca86c6f6f3ff1035d52f635df32dd81cab), [`524c0f3`](https://github.com/mastra-ai/mastra/commit/524c0f3c434c3d9d18f66338dcef383d6161b59c), [`c18a0e9`](https://github.com/mastra-ai/mastra/commit/c18a0e9cef1e4ca004b2963d35e4cfc031971eac), [`4bd21ea`](https://github.com/mastra-ai/mastra/commit/4bd21ea43d44d0a0427414fc047577f9f0aa3bec), [`115a7a4`](https://github.com/mastra-ai/mastra/commit/115a7a47db5e9896fec12ae6507501adb9ec89bf), [`22a48ae`](https://github.com/mastra-ai/mastra/commit/22a48ae2513eb54d8d79dad361fddbca97a155e8), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9311c17`](https://github.com/mastra-ai/mastra/commit/9311c17d7a0640d9c4da2e71b814dc67c57c6369), [`7edf78f`](https://github.com/mastra-ai/mastra/commit/7edf78f80422c43e84585f08ba11df0d4d0b73c5), [`1c4221c`](https://github.com/mastra-ai/mastra/commit/1c4221cf6032ec98d0e094d4ee11da3e48490d96), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`d25b9ea`](https://github.com/mastra-ai/mastra/commit/d25b9eabd400167255a97b690ffbc4ee4097ded5), [`fe1ce5c`](https://github.com/mastra-ai/mastra/commit/fe1ce5c9211c03d561606fda95cbfe7df1d9a9b5), [`b03c0e0`](https://github.com/mastra-ai/mastra/commit/b03c0e0389a799523929a458b0509c9e4244d562), [`0a8366b`](https://github.com/mastra-ai/mastra/commit/0a8366b0a692fcdde56c4d526e4cf03c502ae4ac), [`85664e9`](https://github.com/mastra-ai/mastra/commit/85664e9fd857320fbc245e301f764f45f66f32a3), [`bc79650`](https://github.com/mastra-ai/mastra/commit/bc796500c6e0334faa158a96077e3fb332274869), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`3a3a59e`](https://github.com/mastra-ai/mastra/commit/3a3a59e8ffaa6a985fe3d9a126a3f5ade11a6724), [`3108d4e`](https://github.com/mastra-ai/mastra/commit/3108d4e649c9fddbf03253a6feeb388a5fa9fa5a), [`0c33b2c`](https://github.com/mastra-ai/mastra/commit/0c33b2c9db537f815e1c59e2c898ffce2e395a79), [`191e5bd`](https://github.com/mastra-ai/mastra/commit/191e5bd29b82f5bda35243945790da7bc7b695c2), [`f77cd94`](https://github.com/mastra-ai/mastra/commit/f77cd94c44eabed490384e7d19232a865e13214c), [`e8135c7`](https://github.com/mastra-ai/mastra/commit/e8135c7e300dac5040670eec7eab896ac6092e30), [`daca48f`](https://github.com/mastra-ai/mastra/commit/daca48f0fb17b7ae0b62a2ac40cf0e491b2fd0b7), [`257d14f`](https://github.com/mastra-ai/mastra/commit/257d14faca5931f2e4186fc165b6f0b1f915deee), [`352f25d`](https://github.com/mastra-ai/mastra/commit/352f25da316b24cdd5b410fd8dddf6a8b763da2a), [`93477d0`](https://github.com/mastra-ai/mastra/commit/93477d0769b8a13ea5ed73d508d967fb23eaeed9), [`31c78b3`](https://github.com/mastra-ai/mastra/commit/31c78b3eb28f58a8017f1dcc795c33214d87feac), [`0bc0720`](https://github.com/mastra-ai/mastra/commit/0bc07201095791858087cc56f353fcd65e87ab54), [`36516ac`](https://github.com/mastra-ai/mastra/commit/36516aca1021cbeb42e74751b46a2614101f37c8), [`e947652`](https://github.com/mastra-ai/mastra/commit/e9476527fdecb4449e54570e80dfaf8466901254), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`ec248f6`](https://github.com/mastra-ai/mastra/commit/ec248f6b56e8a037c066c49b2178e2507471d988)]:
25
+ - @mastra/core@1.9.0
26
+ - @mastra/client-js@1.7.2
27
+
28
+ ## 0.2.8-alpha.0
29
+
30
+ ### Patch Changes
31
+
32
+ - fix(@mastra/react): externalize @mastra/core instead of inlining it into dist ([#13703](https://github.com/mastra-ai/mastra/pull/13703))
33
+
34
+ `rollup-plugin-node-externals` doesn't catch workspace-linked packages (`workspace:*`),
35
+ so `@mastra/core` was being fully bundled into `@mastra/react`'s dist (~900KB). Switched
36
+ from Vite/Rollup to tsup with explicit externalization, and moved `@mastra/core` to
37
+ `peerDependencies` so consumers provide it rather than having it bundled inline.
38
+
39
+ - Fixed `mastra studio --server-port` so requests to local servers (`localhost` and `127.0.0.1`) correctly use local development auth behavior. ([#13492](https://github.com/mastra-ai/mastra/pull/13492))
40
+
41
+ - Updated dependencies [[`504fc8b`](https://github.com/mastra-ai/mastra/commit/504fc8b9d0ddab717577ad3bf9c95ea4bd5377bd), [`f9c150b`](https://github.com/mastra-ai/mastra/commit/f9c150b7595ad05ad9cc9a11098e2944361e8c22), [`88de7e8`](https://github.com/mastra-ai/mastra/commit/88de7e8dfe4b7e1951a9e441bb33136e705ce24e), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`edee4b3`](https://github.com/mastra-ai/mastra/commit/edee4b37dff0af515fc7cc0e8d71ee39e6a762f0), [`3790c75`](https://github.com/mastra-ai/mastra/commit/3790c7578cc6a47d854eb12d89e6b1912867fe29), [`e7a235b`](https://github.com/mastra-ai/mastra/commit/e7a235be6472e0c870ed6c791ddb17c492dc188b), [`d51d298`](https://github.com/mastra-ai/mastra/commit/d51d298953967aab1f58ec965b644d109214f085), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`d5f0d8d`](https://github.com/mastra-ai/mastra/commit/d5f0d8d6a03e515ddaa9b5da19b7e44b8357b07b), [`09c3b18`](https://github.com/mastra-ai/mastra/commit/09c3b1802ff14e243a8a8baea327440bc8cc2e32), [`b896379`](https://github.com/mastra-ai/mastra/commit/b8963791c6afa79484645fcec596a201f936b9a2), [`85c84eb`](https://github.com/mastra-ai/mastra/commit/85c84ebb78aebfcba9d209c8e152b16d7a00cb71), [`a89272a`](https://github.com/mastra-ai/mastra/commit/a89272a5d71939b9fcd284e6a6dc1dd091a6bdcf), [`ee9c8df`](https://github.com/mastra-ai/mastra/commit/ee9c8df644f19d055af5f496bf4942705f5a47b7), [`77b4a25`](https://github.com/mastra-ai/mastra/commit/77b4a254e51907f8ff3a3ba95596a18e93ae4b35), [`276246e`](https://github.com/mastra-ai/mastra/commit/276246e0b9066a1ea48bbc70df84dbe528daaf99), [`08ecfdb`](https://github.com/mastra-ai/mastra/commit/08ecfdbdad6fb8285deef86a034bdf4a6047cfca), [`d5f628c`](https://github.com/mastra-ai/mastra/commit/d5f628ca86c6f6f3ff1035d52f635df32dd81cab), [`524c0f3`](https://github.com/mastra-ai/mastra/commit/524c0f3c434c3d9d18f66338dcef383d6161b59c), [`c18a0e9`](https://github.com/mastra-ai/mastra/commit/c18a0e9cef1e4ca004b2963d35e4cfc031971eac), [`4bd21ea`](https://github.com/mastra-ai/mastra/commit/4bd21ea43d44d0a0427414fc047577f9f0aa3bec), [`115a7a4`](https://github.com/mastra-ai/mastra/commit/115a7a47db5e9896fec12ae6507501adb9ec89bf), [`22a48ae`](https://github.com/mastra-ai/mastra/commit/22a48ae2513eb54d8d79dad361fddbca97a155e8), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9311c17`](https://github.com/mastra-ai/mastra/commit/9311c17d7a0640d9c4da2e71b814dc67c57c6369), [`7edf78f`](https://github.com/mastra-ai/mastra/commit/7edf78f80422c43e84585f08ba11df0d4d0b73c5), [`1c4221c`](https://github.com/mastra-ai/mastra/commit/1c4221cf6032ec98d0e094d4ee11da3e48490d96), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`d25b9ea`](https://github.com/mastra-ai/mastra/commit/d25b9eabd400167255a97b690ffbc4ee4097ded5), [`fe1ce5c`](https://github.com/mastra-ai/mastra/commit/fe1ce5c9211c03d561606fda95cbfe7df1d9a9b5), [`b03c0e0`](https://github.com/mastra-ai/mastra/commit/b03c0e0389a799523929a458b0509c9e4244d562), [`0a8366b`](https://github.com/mastra-ai/mastra/commit/0a8366b0a692fcdde56c4d526e4cf03c502ae4ac), [`85664e9`](https://github.com/mastra-ai/mastra/commit/85664e9fd857320fbc245e301f764f45f66f32a3), [`bc79650`](https://github.com/mastra-ai/mastra/commit/bc796500c6e0334faa158a96077e3fb332274869), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`3a3a59e`](https://github.com/mastra-ai/mastra/commit/3a3a59e8ffaa6a985fe3d9a126a3f5ade11a6724), [`3108d4e`](https://github.com/mastra-ai/mastra/commit/3108d4e649c9fddbf03253a6feeb388a5fa9fa5a), [`0c33b2c`](https://github.com/mastra-ai/mastra/commit/0c33b2c9db537f815e1c59e2c898ffce2e395a79), [`191e5bd`](https://github.com/mastra-ai/mastra/commit/191e5bd29b82f5bda35243945790da7bc7b695c2), [`f77cd94`](https://github.com/mastra-ai/mastra/commit/f77cd94c44eabed490384e7d19232a865e13214c), [`e8135c7`](https://github.com/mastra-ai/mastra/commit/e8135c7e300dac5040670eec7eab896ac6092e30), [`daca48f`](https://github.com/mastra-ai/mastra/commit/daca48f0fb17b7ae0b62a2ac40cf0e491b2fd0b7), [`257d14f`](https://github.com/mastra-ai/mastra/commit/257d14faca5931f2e4186fc165b6f0b1f915deee), [`352f25d`](https://github.com/mastra-ai/mastra/commit/352f25da316b24cdd5b410fd8dddf6a8b763da2a), [`93477d0`](https://github.com/mastra-ai/mastra/commit/93477d0769b8a13ea5ed73d508d967fb23eaeed9), [`31c78b3`](https://github.com/mastra-ai/mastra/commit/31c78b3eb28f58a8017f1dcc795c33214d87feac), [`0bc0720`](https://github.com/mastra-ai/mastra/commit/0bc07201095791858087cc56f353fcd65e87ab54), [`36516ac`](https://github.com/mastra-ai/mastra/commit/36516aca1021cbeb42e74751b46a2614101f37c8), [`e947652`](https://github.com/mastra-ai/mastra/commit/e9476527fdecb4449e54570e80dfaf8466901254), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`ec248f6`](https://github.com/mastra-ai/mastra/commit/ec248f6b56e8a037c066c49b2178e2507471d988)]:
42
+ - @mastra/core@1.9.0-alpha.0
43
+ - @mastra/client-js@1.7.2-alpha.0
44
+
45
+ ## 0.2.7
46
+
47
+ ### Patch Changes
48
+
49
+ - Added completionResult to MastraUIMessageMetadata ([#13323](https://github.com/mastra-ai/mastra/pull/13323))
50
+
51
+ - Updated dependencies:
52
+ - @mastra/client-js@1.7.1
53
+
54
+ ## 0.2.7-alpha.0
55
+
56
+ ### Patch Changes
57
+
58
+ - Added completionResult to MastraUIMessageMetadata ([#13323](https://github.com/mastra-ai/mastra/pull/13323))
59
+
60
+ - Updated dependencies:
61
+ - @mastra/client-js@1.7.1-alpha.0
62
+
63
+ ## 0.2.6
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [[`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc)]:
68
+ - @mastra/client-js@1.7.0
69
+
70
+ ## 0.2.6-alpha.0
71
+
72
+ ### Patch Changes
73
+
74
+ - Updated dependencies [[`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc)]:
75
+ - @mastra/client-js@1.7.0-alpha.0
76
+
77
+ ## 0.2.5
78
+
79
+ ### Patch Changes
80
+
81
+ - dependencies updates: ([#13308](https://github.com/mastra-ai/mastra/pull/13308))
82
+ - Updated dependency [`tailwind-merge@^3.4.1` ↗︎](https://www.npmjs.com/package/tailwind-merge/v/3.4.1) (from `^3.3.1`, in `dependencies`)
83
+ - Updated dependencies [[`0d9efb4`](https://github.com/mastra-ai/mastra/commit/0d9efb47992c34aa90581c18b9f51f774f6252a5), [`3f8f1b3`](https://github.com/mastra-ai/mastra/commit/3f8f1b31146d2a8316157171962ad825628aa251)]:
84
+ - @mastra/client-js@1.6.0
85
+
86
+ ## 0.2.5-alpha.0
87
+
88
+ ### Patch Changes
89
+
90
+ - dependencies updates: ([#13308](https://github.com/mastra-ai/mastra/pull/13308))
91
+ - Updated dependency [`tailwind-merge@^3.4.1` ↗︎](https://www.npmjs.com/package/tailwind-merge/v/3.4.1) (from `^3.3.1`, in `dependencies`)
92
+ - Updated dependencies [[`0d9efb4`](https://github.com/mastra-ai/mastra/commit/0d9efb47992c34aa90581c18b9f51f774f6252a5), [`3f8f1b3`](https://github.com/mastra-ai/mastra/commit/3f8f1b31146d2a8316157171962ad825628aa251)]:
93
+ - @mastra/client-js@1.6.0-alpha.0
94
+
95
+ ## 0.2.4
96
+
97
+ ### Patch Changes
98
+
99
+ - Added generic Harness class to @mastra/core for orchestrating agents with modes, state management, built-in tools (ask_user, submit_plan), subagent support, Observational Memory integration, model discovery, and permission-aware tool approval. The Harness provides a reusable foundation for building agent-powered applications with features like thread management, heartbeat monitoring, and event-driven architecture. ([#13245](https://github.com/mastra-ai/mastra/pull/13245))
100
+
101
+ - Fixed tool error results displaying as "[object Object]" during streaming in the chat UI. Error messages are now properly extracted and displayed. ([#13242](https://github.com/mastra-ai/mastra/pull/13242))
102
+
103
+ - Migrated MastraCode from the prototype harness to the generic CoreHarness from @mastra/core. The createMastraCode function is now fully configurable with optional parameters for modes, subagents, storage, tools, and more. Removed the deprecated prototype harness implementation. ([#13245](https://github.com/mastra-ai/mastra/pull/13245))
104
+
105
+ - Updated dependencies [[`55a0ab1`](https://github.com/mastra-ai/mastra/commit/55a0ab13187b3c656247a1d9bfa715077af6e422), [`5ffadfe`](https://github.com/mastra-ai/mastra/commit/5ffadfefb1468ac2612b20bb84d24c39de6961c0), [`55a0ab1`](https://github.com/mastra-ai/mastra/commit/55a0ab13187b3c656247a1d9bfa715077af6e422), [`ae408ea`](https://github.com/mastra-ai/mastra/commit/ae408ea7128f0d2710b78d8623185198e7cb19c1), [`ba74aef`](https://github.com/mastra-ai/mastra/commit/ba74aef5716142dbbe931351f5243c9c6e4128a9), [`ba74aef`](https://github.com/mastra-ai/mastra/commit/ba74aef5716142dbbe931351f5243c9c6e4128a9)]:
106
+ - @mastra/client-js@1.5.0
107
+
108
+ ## 0.2.4-alpha.1
109
+
110
+ ### Patch Changes
111
+
112
+ - Updated dependencies:
113
+ - @mastra/client-js@1.5.0-alpha.1
114
+
115
+ ## 0.2.4-alpha.0
116
+
117
+ ### Patch Changes
118
+
119
+ - Added generic Harness class to @mastra/core for orchestrating agents with modes, state management, built-in tools (ask_user, submit_plan), subagent support, Observational Memory integration, model discovery, and permission-aware tool approval. The Harness provides a reusable foundation for building agent-powered applications with features like thread management, heartbeat monitoring, and event-driven architecture. ([#13245](https://github.com/mastra-ai/mastra/pull/13245))
120
+
121
+ - Fixed tool error results displaying as "[object Object]" during streaming in the chat UI. Error messages are now properly extracted and displayed. ([#13242](https://github.com/mastra-ai/mastra/pull/13242))
122
+
123
+ - Migrated MastraCode from the prototype harness to the generic CoreHarness from @mastra/core. The createMastraCode function is now fully configurable with optional parameters for modes, subagents, storage, tools, and more. Removed the deprecated prototype harness implementation. ([#13245](https://github.com/mastra-ai/mastra/pull/13245))
124
+
125
+ - Updated dependencies [[`55a0ab1`](https://github.com/mastra-ai/mastra/commit/55a0ab13187b3c656247a1d9bfa715077af6e422), [`5ffadfe`](https://github.com/mastra-ai/mastra/commit/5ffadfefb1468ac2612b20bb84d24c39de6961c0), [`55a0ab1`](https://github.com/mastra-ai/mastra/commit/55a0ab13187b3c656247a1d9bfa715077af6e422), [`ae408ea`](https://github.com/mastra-ai/mastra/commit/ae408ea7128f0d2710b78d8623185198e7cb19c1), [`ba74aef`](https://github.com/mastra-ai/mastra/commit/ba74aef5716142dbbe931351f5243c9c6e4128a9), [`ba74aef`](https://github.com/mastra-ai/mastra/commit/ba74aef5716142dbbe931351f5243c9c6e4128a9)]:
126
+ - @mastra/client-js@1.5.0-alpha.0
127
+
128
+ ## 0.2.3
129
+
130
+ ### Patch Changes
131
+
132
+ - Add `workflow-step-progress` stream event for foreach workflow steps. Each iteration emits a progress event with `completedCount`, `totalCount`, `currentIndex`, `iterationStatus` (`success` | `failed` | `suspended`), and optional `iterationOutput`. Both the default and evented execution engines emit these events. ([#12838](https://github.com/mastra-ai/mastra/pull/12838))
133
+
134
+ The Mastra Studio UI now renders a progress bar with an N/total counter on foreach nodes, updating in real time as iterations complete:
135
+
136
+ ```ts
137
+ // Consuming progress events from the workflow stream
138
+ const run = workflow.createRun();
139
+ const result = await run.start({ inputData });
140
+ const stream = result.stream;
141
+
142
+ for await (const chunk of stream) {
143
+ if (chunk.type === 'workflow-step-progress') {
144
+ console.log(`${chunk.payload.completedCount}/${chunk.payload.totalCount} - ${chunk.payload.iterationStatus}`);
145
+ }
146
+ }
147
+ ```
148
+
149
+ `@mastra/react`: The `mapWorkflowStreamChunkToWatchResult` reducer now accumulates `foreachProgress` from `workflow-step-progress` events into step state, making progress data available to React consumers via the existing workflow watch hooks.
150
+
151
+ - Updated dependencies [[`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`3da8a73`](https://github.com/mastra-ai/mastra/commit/3da8a73c9b9f042d528975ca330babc99563bd12), [`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`4ba40dc`](https://github.com/mastra-ai/mastra/commit/4ba40dcb6c9ef31eedbb01b6d5b8b0b3c71e5b61), [`a5b67a3`](https://github.com/mastra-ai/mastra/commit/a5b67a3589a74415feb663a55d1858324a2afde9), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`40f224e`](https://github.com/mastra-ai/mastra/commit/40f224ec14e9b01a36802d8c5445a547a33992a5)]:
152
+ - @mastra/client-js@1.4.0
153
+
154
+ ## 0.2.3-alpha.0
155
+
156
+ ### Patch Changes
157
+
158
+ - Add `workflow-step-progress` stream event for foreach workflow steps. Each iteration emits a progress event with `completedCount`, `totalCount`, `currentIndex`, `iterationStatus` (`success` | `failed` | `suspended`), and optional `iterationOutput`. Both the default and evented execution engines emit these events. ([#12838](https://github.com/mastra-ai/mastra/pull/12838))
159
+
160
+ The Mastra Studio UI now renders a progress bar with an N/total counter on foreach nodes, updating in real time as iterations complete:
161
+
162
+ ```ts
163
+ // Consuming progress events from the workflow stream
164
+ const run = workflow.createRun();
165
+ const result = await run.start({ inputData });
166
+ const stream = result.stream;
167
+
168
+ for await (const chunk of stream) {
169
+ if (chunk.type === 'workflow-step-progress') {
170
+ console.log(`${chunk.payload.completedCount}/${chunk.payload.totalCount} - ${chunk.payload.iterationStatus}`);
171
+ }
172
+ }
173
+ ```
174
+
175
+ `@mastra/react`: The `mapWorkflowStreamChunkToWatchResult` reducer now accumulates `foreachProgress` from `workflow-step-progress` events into step state, making progress data available to React consumers via the existing workflow watch hooks.
176
+
177
+ - Updated dependencies [[`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`3da8a73`](https://github.com/mastra-ai/mastra/commit/3da8a73c9b9f042d528975ca330babc99563bd12), [`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`4ba40dc`](https://github.com/mastra-ai/mastra/commit/4ba40dcb6c9ef31eedbb01b6d5b8b0b3c71e5b61), [`a5b67a3`](https://github.com/mastra-ai/mastra/commit/a5b67a3589a74415feb663a55d1858324a2afde9), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`40f224e`](https://github.com/mastra-ai/mastra/commit/40f224ec14e9b01a36802d8c5445a547a33992a5)]:
178
+ - @mastra/client-js@1.4.0-alpha.0
179
+
180
+ ## 0.2.2
181
+
182
+ ### Patch Changes
183
+
184
+ - Fixed chat messages flashing when loading a thread. Messages now update reactively via useEffect instead of lazy state initialization, preventing the brief flash of empty state. ([#12863](https://github.com/mastra-ai/mastra/pull/12863))
185
+
186
+ - Updated dependencies [[`6c40593`](https://github.com/mastra-ai/mastra/commit/6c40593d6d2b1b68b0c45d1a3a4c6ac5ecac3937), [`11804ad`](https://github.com/mastra-ai/mastra/commit/11804adf1d6be46ebe216be40a43b39bb8b397d7), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`2e02cd7`](https://github.com/mastra-ai/mastra/commit/2e02cd7e08ba2d84a275c80d80c069d2b8b66211), [`8109aee`](https://github.com/mastra-ai/mastra/commit/8109aeeab758e16cd4255a6c36f044b70eefc6a6), [`be42958`](https://github.com/mastra-ai/mastra/commit/be42958d62c9f3d6b3a037580a6ef362afa47240), [`a211248`](https://github.com/mastra-ai/mastra/commit/a21124845b1b1321b6075a8377c341c7f5cda1b6), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`8c90ff4`](https://github.com/mastra-ai/mastra/commit/8c90ff4d3414e7f2a2d216ea91274644f7b29133)]:
187
+ - @mastra/client-js@1.3.0
188
+
189
+ ## 0.2.2-alpha.3
190
+
191
+ ### Patch Changes
192
+
193
+ - Updated dependencies [[`2e02cd7`](https://github.com/mastra-ai/mastra/commit/2e02cd7e08ba2d84a275c80d80c069d2b8b66211)]:
194
+ - @mastra/client-js@1.3.0-alpha.3
195
+
196
+ ## 0.2.2-alpha.2
197
+
198
+ ### Patch Changes
199
+
200
+ - Updated dependencies [[`b31c922`](https://github.com/mastra-ai/mastra/commit/b31c922215b513791d98feaea1b98784aa00803a)]:
201
+ - @mastra/client-js@1.3.0-alpha.2
202
+
203
+ ## 0.2.2-alpha.1
204
+
205
+ ### Patch Changes
206
+
207
+ - Fixed chat messages flashing when loading a thread. Messages now update reactively via useEffect instead of lazy state initialization, preventing the brief flash of empty state. ([#12863](https://github.com/mastra-ai/mastra/pull/12863))
208
+
209
+ - Updated dependencies [[`6c40593`](https://github.com/mastra-ai/mastra/commit/6c40593d6d2b1b68b0c45d1a3a4c6ac5ecac3937), [`11804ad`](https://github.com/mastra-ai/mastra/commit/11804adf1d6be46ebe216be40a43b39bb8b397d7), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`be42958`](https://github.com/mastra-ai/mastra/commit/be42958d62c9f3d6b3a037580a6ef362afa47240), [`a211248`](https://github.com/mastra-ai/mastra/commit/a21124845b1b1321b6075a8377c341c7f5cda1b6), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`8c90ff4`](https://github.com/mastra-ai/mastra/commit/8c90ff4d3414e7f2a2d216ea91274644f7b29133)]:
210
+ - @mastra/client-js@1.3.0-alpha.1
211
+
212
+ ## 0.2.2-alpha.0
213
+
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [[`8109aee`](https://github.com/mastra-ai/mastra/commit/8109aeeab758e16cd4255a6c36f044b70eefc6a6)]:
217
+ - @mastra/client-js@1.2.1-alpha.0
218
+
219
+ ## 0.2.1
220
+
221
+ ### Patch Changes
222
+
223
+ - Updated dependencies [[`2770921`](https://github.com/mastra-ai/mastra/commit/2770921eec4d55a36b278d15c3a83f694e462ee5), [`b1695db`](https://github.com/mastra-ai/mastra/commit/b1695db2d7be0c329d499619c7881899649188d0), [`aa37c84`](https://github.com/mastra-ai/mastra/commit/aa37c84d29b7db68c72517337932ef486c316275)]:
224
+ - @mastra/client-js@1.2.0
225
+
226
+ ## 0.2.1-alpha.1
227
+
228
+ ### Patch Changes
229
+
230
+ - Updated dependencies [[`2770921`](https://github.com/mastra-ai/mastra/commit/2770921eec4d55a36b278d15c3a83f694e462ee5), [`b1695db`](https://github.com/mastra-ai/mastra/commit/b1695db2d7be0c329d499619c7881899649188d0)]:
231
+ - @mastra/client-js@1.2.0-alpha.1
232
+
233
+ ## 0.2.1-alpha.0
234
+
235
+ ### Patch Changes
236
+
237
+ - Updated dependencies [[`aa37c84`](https://github.com/mastra-ai/mastra/commit/aa37c84d29b7db68c72517337932ef486c316275)]:
238
+ - @mastra/client-js@1.1.1-alpha.0
239
+
240
+ ## 0.2.0
241
+
242
+ ### Minor Changes
243
+
244
+ - Added `apiPrefix` prop to `MastraClientProvider` for connecting to servers with custom API route prefixes (defaults to `/api`). ([#12295](https://github.com/mastra-ai/mastra/pull/12295))
245
+
246
+ **Default usage (no change required):**
247
+
248
+ ```tsx
249
+ <MastraClientProvider baseUrl="http://localhost:3000">{children}</MastraClientProvider>
250
+ ```
251
+
252
+ **Custom prefix usage:**
253
+
254
+ ```tsx
255
+ <MastraClientProvider baseUrl="http://localhost:3000" apiPrefix="/mastra">
256
+ {children}
257
+ </MastraClientProvider>
258
+ ```
259
+
260
+ See #12261 for more details.
261
+
262
+ - Added useCancelWorkflowRun hook to @mastra/react for canceling workflow runs. This hook was previously only available internally in playground-ui and is now exported for use in custom applications. ([#12142](https://github.com/mastra-ai/mastra/pull/12142))
263
+
264
+ - Added useStreamWorkflow hook to @mastra/react for streaming workflow execution. This hook supports streaming, observing, resuming, and time-traveling workflows. It accepts tracingOptions and onError as parameters for better customization. ([#12151](https://github.com/mastra-ai/mastra/pull/12151))
265
+
266
+ ### Patch Changes
267
+
268
+ - Use useExecuteWorkflow hook from @mastra/react instead of local implementation in playground-ui ([#12138](https://github.com/mastra-ai/mastra/pull/12138))
269
+
270
+ - Updated dependencies [[`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f), [`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`dc82e6c`](https://github.com/mastra-ai/mastra/commit/dc82e6c5a05d6a9160c522af08b8c809ddbcdb66), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334)]:
271
+ - @mastra/client-js@1.1.0
272
+
273
+ ## 0.2.0-alpha.2
274
+
275
+ ### Patch Changes
276
+
277
+ - Updated dependencies [[`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334)]:
278
+ - @mastra/client-js@1.1.0-alpha.2
279
+
280
+ ## 0.2.0-alpha.1
281
+
282
+ ### Patch Changes
283
+
284
+ - Updated dependencies [[`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f)]:
285
+ - @mastra/client-js@1.1.0-alpha.1
286
+
287
+ ## 0.2.0-alpha.0
288
+
289
+ ### Minor Changes
290
+
291
+ - Added `apiPrefix` prop to `MastraClientProvider` for connecting to servers with custom API route prefixes (defaults to `/api`). ([#12295](https://github.com/mastra-ai/mastra/pull/12295))
292
+
293
+ **Default usage (no change required):**
294
+
295
+ ```tsx
296
+ <MastraClientProvider baseUrl="http://localhost:3000">{children}</MastraClientProvider>
297
+ ```
298
+
299
+ **Custom prefix usage:**
300
+
301
+ ```tsx
302
+ <MastraClientProvider baseUrl="http://localhost:3000" apiPrefix="/mastra">
303
+ {children}
304
+ </MastraClientProvider>
305
+ ```
306
+
307
+ See #12261 for more details.
308
+
309
+ - Added useCancelWorkflowRun hook to @mastra/react for canceling workflow runs. This hook was previously only available internally in playground-ui and is now exported for use in custom applications. ([#12142](https://github.com/mastra-ai/mastra/pull/12142))
310
+
311
+ - Added useStreamWorkflow hook to @mastra/react for streaming workflow execution. This hook supports streaming, observing, resuming, and time-traveling workflows. It accepts tracingOptions and onError as parameters for better customization. ([#12151](https://github.com/mastra-ai/mastra/pull/12151))
312
+
313
+ ### Patch Changes
314
+
315
+ - Use useExecuteWorkflow hook from @mastra/react instead of local implementation in playground-ui ([#12138](https://github.com/mastra-ai/mastra/pull/12138))
316
+
317
+ - Updated dependencies [[`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`dc82e6c`](https://github.com/mastra-ai/mastra/commit/dc82e6c5a05d6a9160c522af08b8c809ddbcdb66)]:
318
+ - @mastra/client-js@1.1.0-alpha.0
319
+
320
+ ## 0.1.1
321
+
322
+ ### Patch Changes
323
+
324
+ - Updated dependencies:
325
+ - @mastra/client-js@1.0.1
326
+
327
+ ## 0.1.1-alpha.0
328
+
329
+ ### Patch Changes
330
+
331
+ - Updated dependencies:
332
+ - @mastra/client-js@1.0.1-alpha.0
333
+
334
+ ## 0.1.0
335
+
336
+ ### Minor Changes
337
+
338
+ - Added human-in-the-loop (HITL) tool approval support for `generate()` method. ([#12056](https://github.com/mastra-ai/mastra/pull/12056))
339
+
340
+ **Why:** This provides parity between `stream()` and `generate()` for tool approval flows, allowing non-streaming use cases to leverage `requireToolApproval` without needing to switch to streaming.
341
+
342
+ Previously, tool approval with `requireToolApproval` only worked with `stream()`. Now you can use the same approval flow with `generate()` for non-streaming use cases.
343
+
344
+ **Using tool approval with generate()**
345
+
346
+ ```typescript
347
+ const output = await agent.generate('Find user John', {
348
+ requireToolApproval: true,
349
+ });
350
+
351
+ // Check if a tool is waiting for approval
352
+ if (output.finishReason === 'suspended') {
353
+ console.log('Tool requires approval:', output.suspendPayload.toolName);
354
+
355
+ // Approve the tool call
356
+ const result = await agent.approveToolCallGenerate({
357
+ runId: output.runId,
358
+ toolCallId: output.suspendPayload.toolCallId,
359
+ });
360
+
361
+ console.log(result.text);
362
+ }
363
+ ```
364
+
365
+ **Declining a tool call**
366
+
367
+ ```typescript
368
+ if (output.finishReason === 'suspended') {
369
+ const result = await agent.declineToolCallGenerate({
370
+ runId: output.runId,
371
+ toolCallId: output.suspendPayload.toolCallId,
372
+ });
373
+ }
374
+ ```
375
+
376
+ **New methods added:**
377
+ - `agent.approveToolCallGenerate({ runId, toolCallId })` - Approves a pending tool call and returns the complete result
378
+ - `agent.declineToolCallGenerate({ runId, toolCallId })` - Declines a pending tool call and returns the complete result
379
+
380
+ **Server routes added:**
381
+ - `POST /api/agents/:agentId/approve-tool-call-generate`
382
+ - `POST /api/agents/:agentId/decline-tool-call-generate`
383
+
384
+ The playground UI now also supports tool approval when using generate mode.
385
+
386
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
387
+
388
+ - **Fixed:** Align `Agent.network` with core and update `@mastra/react` network usage. ([#12015](https://github.com/mastra-ai/mastra/pull/12015))
389
+
390
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
391
+
392
+ - Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
393
+
394
+ ## What changed
395
+
396
+ Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
397
+
398
+ **Before:**
399
+
400
+ ```typescript
401
+ // Old span structure
402
+ span.agentId; // 'my-agent'
403
+ span.toolId; // undefined
404
+ span.workflowId; // undefined
405
+ ```
406
+
407
+ **After:**
408
+
409
+ ```typescript
410
+ // New span structure
411
+ span.entityType; // EntityType.AGENT
412
+ span.entityId; // 'my-agent'
413
+ span.entityName; // 'My Agent'
414
+ ```
415
+
416
+ ## New `listTraces()` API
417
+
418
+ Query traces with filtering, pagination, and sorting:
419
+
420
+ ```typescript
421
+ const { spans, pagination } = await storage.listTraces({
422
+ filters: {
423
+ entityType: EntityType.AGENT,
424
+ entityId: 'my-agent',
425
+ userId: 'user-123',
426
+ environment: 'production',
427
+ status: TraceStatus.SUCCESS,
428
+ startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
429
+ },
430
+ pagination: { page: 0, perPage: 50 },
431
+ orderBy: { field: 'startedAt', direction: 'DESC' },
432
+ });
433
+ ```
434
+
435
+ **Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
436
+
437
+ ## New retrieval methods
438
+ - `getSpan({ traceId, spanId })` - Get a single span
439
+ - `getRootSpan({ traceId })` - Get the root span of a trace
440
+ - `getTrace({ traceId })` - Get all spans for a trace
441
+
442
+ ## Backward compatibility
443
+
444
+ The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
445
+
446
+ ## Migration
447
+
448
+ **Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
449
+
450
+ **No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
451
+
452
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
453
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
454
+
455
+ - Fix "MessagePartRuntime is not available" error when chatting with agents in Studio playground by replacing deprecated `useMessagePart` hook with `useAssistantState` ([#11039](https://github.com/mastra-ai/mastra/pull/11039))
456
+
457
+ ### Patch Changes
458
+
459
+ - Remove redundant toolCalls from network agent finalResult ([#11189](https://github.com/mastra-ai/mastra/pull/11189))
460
+
461
+ The network agent's `finalResult` was storing `toolCalls` separately even though all tool call information is already present in the `messages` array (as `tool-call` and `tool-result` type messages). This caused significant token waste since the routing agent reads this data from memory on every iteration.
462
+
463
+ **Before:** `finalResult: { text, toolCalls, messages }`
464
+ **After:** `finalResult: { text, messages }`
465
+
466
+ +**Migration:** If you were accessing `finalResult.toolCalls`, retrieve tool calls from `finalResult.messages` by filtering for messages with `type: 'tool-call'`.
467
+
468
+ Updated `@mastra/react` to extract tool calls directly from the `messages` array instead of the removed `toolCalls` field when resolving initial messages from memory.
469
+
470
+ Fixes #11059
471
+
472
+ - Auto resume suspended tools if `autoResumeSuspendedTools: true` ([#11157](https://github.com/mastra-ai/mastra/pull/11157))
473
+
474
+ The flag can be added to `defaultAgentOptions` when creating the agent or to options in `agent.stream` or `agent.generate`
475
+
476
+ ```typescript
477
+ const agent = new Agent({
478
+ //...agent information,
479
+ defaultAgentOptions: {
480
+ autoResumeSuspendedTools: true,
481
+ },
482
+ });
483
+ ```
484
+
485
+ - Removes the deprecated `threadId` and `resourceId` options from `AgentExecutionOptions`. These have been deprecated for months in favour of the `memory` option. ([#11897](https://github.com/mastra-ai/mastra/pull/11897))
486
+
487
+ ### Breaking Changes
488
+
489
+ #### `@mastra/core`
490
+
491
+ The `threadId` and `resourceId` options have been removed from `agent.generate()` and `agent.stream()`. Use the `memory` option instead:
492
+
493
+ ```ts
494
+ // Before
495
+ await agent.stream('Hello', {
496
+ threadId: 'thread-123',
497
+ resourceId: 'user-456',
498
+ });
499
+
500
+ // After
501
+ await agent.stream('Hello', {
502
+ memory: {
503
+ thread: 'thread-123',
504
+ resource: 'user-456',
505
+ },
506
+ });
507
+ ```
508
+
509
+ #### `@mastra/server`
510
+
511
+ The `threadId`, `resourceId`, and `resourceid` fields have been removed from the main agent execution body schema. The server now expects the `memory` option format in request bodies. Legacy routes (`/api/agents/:agentId/generate-legacy` and `/api/agents/:agentId/stream-legacy`) continue to support the deprecated fields.
512
+
513
+ #### `@mastra/react`
514
+
515
+ The `useChat` hook now internally converts `threadId` to the `memory` option format when making API calls. No changes needed in component code - the hook handles the conversion automatically.
516
+
517
+ #### `@mastra/client-js`
518
+
519
+ When using the client SDK agent methods, use the `memory` option instead of `threadId`/`resourceId`:
520
+
521
+ ```ts
522
+ const agent = client.getAgent('my-agent');
523
+
524
+ // Before
525
+ await agent.generate([...], {
526
+ threadId: 'thread-123',
527
+ resourceId: 'user-456',
528
+ });
529
+
530
+ // After
531
+ await agent.generate([...], {
532
+ memory: {
533
+ thread: 'thread-123',
534
+ resource: 'user-456',
535
+ },
536
+ });
537
+ ```
538
+
539
+ - Adjust the types to accept tracingOptions ([#10742](https://github.com/mastra-ai/mastra/pull/10742))
540
+
541
+ - Add human-in-the-loop (HITL) support to agent networks ([#11678](https://github.com/mastra-ai/mastra/pull/11678))
542
+ - Add suspend/resume capabilities to agent network
543
+ - Enable auto-resume for suspended network execution via `autoResumeSuspendedTools`
544
+
545
+ `agent.resumeNetwork`, `agent.approveNetworkToolCall`, `agent.declineNetworkToolCall`
546
+
547
+ - Fix TypeScript errors during build declaration generation ([#11682](https://github.com/mastra-ai/mastra/pull/11682))
548
+
549
+ Updated test file `toUIMessage.test.ts` to match current `@mastra/core` types:
550
+ - Changed `error` property from string to `Error` object (per `StepFailure` type)
551
+ - Added missing `resumeSchema` property to `tool-call-approval` payloads (per `ToolCallApprovalPayload` type)
552
+ - Added `zod` as peer/dev dependency for test type support
553
+
554
+ - Fix text parts incorrectly merging across tool calls ([#11783](https://github.com/mastra-ai/mastra/pull/11783))
555
+
556
+ Previously, when an agent produced text before and after a tool call (e.g., "Let me search for that" → tool call → "Here's what I found"), the text parts would be merged into a single part, losing the separation. This fix introduces a `textId` property to track separate text streams, ensuring each text stream maintains its own text part in the UI message.
557
+
558
+ Fixes #11577
559
+
560
+ - Configurable resourceId in react useChat ([#10461](https://github.com/mastra-ai/mastra/pull/10461))
561
+
562
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
563
+
564
+ - 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. ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
565
+
566
+ **Backend changes (@mastra/core):**
567
+ - Add assistant messages to messageList immediately after LLM execution
568
+ - Flush messages synchronously before suspension to persist state
569
+ - Create thread if it doesn't exist before flushing
570
+ - Add metadata helpers to persist and remove tool approval state
571
+ - Pass saveQueueManager and memory context through workflow for immediate persistence
572
+
573
+ **Frontend changes (@mastra/react):**
574
+ - Extract runId from pending approvals to enable resumption after refresh
575
+ - Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
576
+ - Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
577
+ - Change runId from hardcoded `agentId` to unique `uuid()`
578
+
579
+ **UI changes (@mastra/playground-ui):**
580
+ - Handle tool calls awaiting approval in message initialization
581
+ - Convert approval metadata format when loading initial messages
582
+
583
+ Fixes #9745, #9906
584
+
585
+ - Fixed compatibility with updated `@mastra/client-js` generate and stream API signatures ([#12011](https://github.com/mastra-ai/mastra/pull/12011))
586
+
587
+ - Fixed agent network not returning text response when routing agent handles requests without delegation. ([#11497](https://github.com/mastra-ai/mastra/pull/11497))
588
+
589
+ **What changed:**
590
+ - Agent networks now correctly stream text responses when the routing agent decides to handle a request itself instead of delegating to sub-agents, workflows, or tools
591
+ - Added fallback in transformers to ensure text is always returned even if core events are missing
592
+
593
+ **Why this matters:**
594
+ Previously, when using `toAISdkV5Stream` or `networkRoute()` outside of the Mastra Studio UI, no text content was returned when the routing agent handled requests directly. This fix ensures consistent behavior across all API routes.
595
+
596
+ Fixes #11219
597
+
598
+ - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
599
+
600
+ - Display network completion validation results and scorer feedback in the Playground when viewing agent network runs, letting users see pass/fail status and actionable feedback from completion scorers ([#11562](https://github.com/mastra-ai/mastra/pull/11562))
601
+
602
+ - Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
603
+
604
+ When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
605
+
606
+ ```typescript
607
+ const run = await workflow.createRun();
608
+ const result = await run.start({ inputData: { message: 'Hello' } });
609
+
610
+ if (result.status === 'tripwire') {
611
+ console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
612
+ console.log('Processor ID:', result.tripwire?.processorId);
613
+ console.log('Retry requested:', result.tripwire?.retry);
614
+ }
615
+ ```
616
+
617
+ Adds new UI state for tripwire in agent chat and workflow UI.
618
+
619
+ This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
620
+
621
+ - - Add persistence for custom data chunks (`data-*` parts) emitted via `writer.custom()` in tools ([#10884](https://github.com/mastra-ai/mastra/pull/10884))
622
+ - Data chunks are now saved to message storage so they survive page refreshes
623
+ - Update `@assistant-ui/react` to v0.11.47 with native `DataMessagePart` support
624
+ - Convert `data-*` parts to `DataMessagePart` format (`{ type: 'data', name: string, data: T }`)
625
+ - Update related `@assistant-ui/*` packages for compatibility
626
+ - Updated dependencies [[`6edf340`](https://github.com/mastra-ai/mastra/commit/6edf3402f6a46ee8def2f42a2287785251fbffd6), [`bc72b52`](https://github.com/mastra-ai/mastra/commit/bc72b529ee4478fe89ecd85a8be47ce0127b82a0), [`ed3e3dd`](https://github.com/mastra-ai/mastra/commit/ed3e3ddec69d564fe2b125e083437f76331f1283), [`c042bd0`](https://github.com/mastra-ai/mastra/commit/c042bd0b743e0e86199d0cb83344ca7690e34a9c), [`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`ad7e8f1`](https://github.com/mastra-ai/mastra/commit/ad7e8f16ac843cbd16687ad47b66ba96bcffe111), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`9d5059e`](https://github.com/mastra-ai/mastra/commit/9d5059eae810829935fb08e81a9bb7ecd5b144a7), [`e1b7118`](https://github.com/mastra-ai/mastra/commit/e1b7118f42ca0a97247afc75e57dcd5fdf987752), [`461e448`](https://github.com/mastra-ai/mastra/commit/461e448852fe999506a6046d50b1efc27d8aa378), [`441c7b6`](https://github.com/mastra-ai/mastra/commit/441c7b6665915cfa7fd625fded8c0f518530bf10), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`ef756c6`](https://github.com/mastra-ai/mastra/commit/ef756c65f82d16531c43f49a27290a416611e526), [`1b85674`](https://github.com/mastra-ai/mastra/commit/1b85674123708d9b85834dccc9eae601a9d0891c), [`5a1ede1`](https://github.com/mastra-ai/mastra/commit/5a1ede1f7ab527b9ead11f7eee2f73e67aeca9e4), [`47b1c16`](https://github.com/mastra-ai/mastra/commit/47b1c16a01c7ffb6765fe1e499b49092f8b7eba3), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`dbd9db0`](https://github.com/mastra-ai/mastra/commit/dbd9db0d5c2797a210b9098e7e3e613718e5442f), [`6a86fe5`](https://github.com/mastra-ai/mastra/commit/6a86fe56b8ff53ca2eb3ed87ffc0748749ebadce), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`026b848`](https://github.com/mastra-ai/mastra/commit/026b8483fbf5b6d977be8f7e6aac8d15c75558ac), [`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`610a70b`](https://github.com/mastra-ai/mastra/commit/610a70bdad282079f0c630e0d7bb284578f20151), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`f93d992`](https://github.com/mastra-ai/mastra/commit/f93d992a37d5431ab4a71246835d403ef7c4ce85), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`595a3b8`](https://github.com/mastra-ai/mastra/commit/595a3b8727c901f44e333909c09843c711224440), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`d90ea65`](https://github.com/mastra-ai/mastra/commit/d90ea6536f7aa51c6545a4e9215b55858e98e16d), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`e4d366a`](https://github.com/mastra-ai/mastra/commit/e4d366aeb500371dd4210d6aa8361a4c21d87034), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`d171e55`](https://github.com/mastra-ai/mastra/commit/d171e559ead9f52ec728d424844c8f7b164c4510), [`632fdb8`](https://github.com/mastra-ai/mastra/commit/632fdb8b3cd9ff6f90399256d526db439fc1758b), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`519d9e6`](https://github.com/mastra-ai/mastra/commit/519d9e6d31910457c54bdae8b7b7cb3a69f41831), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`5fe71bc`](https://github.com/mastra-ai/mastra/commit/5fe71bc925dfce597df69c89241f33b378028c63), [`dfe3f8c`](https://github.com/mastra-ai/mastra/commit/dfe3f8c7376ffe159236819e19ca522143c1f972), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`e8dcd71`](https://github.com/mastra-ai/mastra/commit/e8dcd71fa5e473c8ba1d6dad99eef182d20a0491), [`e849603`](https://github.com/mastra-ai/mastra/commit/e849603a596269069f58a438b98449ea2770493d), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`9312dcd`](https://github.com/mastra-ai/mastra/commit/9312dcd1c6f5b321929e7d382e763d95fdc030f5), [`184f01d`](https://github.com/mastra-ai/mastra/commit/184f01d1f534ec0be9703d3996f2e088b4a560eb), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`58e3931`](https://github.com/mastra-ai/mastra/commit/58e3931af9baa5921688566210f00fb0c10479fa), [`439eaf7`](https://github.com/mastra-ai/mastra/commit/439eaf75447809b05e326666675a4dcbf9c334ce), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db), [`08bb631`](https://github.com/mastra-ai/mastra/commit/08bb631ae2b14684b2678e3549d0b399a6f0561e), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`6cbb549`](https://github.com/mastra-ai/mastra/commit/6cbb549475201a2fbf158f0fd7323f6495f46d08), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`106c960`](https://github.com/mastra-ai/mastra/commit/106c960df5d110ec15ac8f45de8858597fb90ad5)]:
627
+ - @mastra/client-js@1.0.0
628
+
629
+ ## 0.1.0-beta.27
630
+
631
+ ### Patch Changes
632
+
633
+ - Updated dependencies:
634
+ - @mastra/client-js@1.0.0-beta.27
635
+
636
+ ## 0.1.0-beta.26
637
+
638
+ ### Patch Changes
639
+
640
+ - Updated dependencies [[`026b848`](https://github.com/mastra-ai/mastra/commit/026b8483fbf5b6d977be8f7e6aac8d15c75558ac)]:
641
+ - @mastra/client-js@1.0.0-beta.26
642
+
643
+ ## 0.1.0-beta.25
644
+
645
+ ### Minor Changes
646
+
647
+ - Added human-in-the-loop (HITL) tool approval support for `generate()` method. ([#12056](https://github.com/mastra-ai/mastra/pull/12056))
648
+
649
+ **Why:** This provides parity between `stream()` and `generate()` for tool approval flows, allowing non-streaming use cases to leverage `requireToolApproval` without needing to switch to streaming.
650
+
651
+ Previously, tool approval with `requireToolApproval` only worked with `stream()`. Now you can use the same approval flow with `generate()` for non-streaming use cases.
652
+
653
+ **Using tool approval with generate()**
654
+
655
+ ```typescript
656
+ const output = await agent.generate('Find user John', {
657
+ requireToolApproval: true,
658
+ });
659
+
660
+ // Check if a tool is waiting for approval
661
+ if (output.finishReason === 'suspended') {
662
+ console.log('Tool requires approval:', output.suspendPayload.toolName);
663
+
664
+ // Approve the tool call
665
+ const result = await agent.approveToolCallGenerate({
666
+ runId: output.runId,
667
+ toolCallId: output.suspendPayload.toolCallId,
668
+ });
669
+
670
+ console.log(result.text);
671
+ }
672
+ ```
673
+
674
+ **Declining a tool call**
675
+
676
+ ```typescript
677
+ if (output.finishReason === 'suspended') {
678
+ const result = await agent.declineToolCallGenerate({
679
+ runId: output.runId,
680
+ toolCallId: output.suspendPayload.toolCallId,
681
+ });
682
+ }
683
+ ```
684
+
685
+ **New methods added:**
686
+ - `agent.approveToolCallGenerate({ runId, toolCallId })` - Approves a pending tool call and returns the complete result
687
+ - `agent.declineToolCallGenerate({ runId, toolCallId })` - Declines a pending tool call and returns the complete result
688
+
689
+ **Server routes added:**
690
+ - `POST /api/agents/:agentId/approve-tool-call-generate`
691
+ - `POST /api/agents/:agentId/decline-tool-call-generate`
692
+
693
+ The playground UI now also supports tool approval when using generate mode.
694
+
695
+ ### Patch Changes
696
+
697
+ - Updated dependencies [[`ed3e3dd`](https://github.com/mastra-ai/mastra/commit/ed3e3ddec69d564fe2b125e083437f76331f1283), [`47b1c16`](https://github.com/mastra-ai/mastra/commit/47b1c16a01c7ffb6765fe1e499b49092f8b7eba3), [`9312dcd`](https://github.com/mastra-ai/mastra/commit/9312dcd1c6f5b321929e7d382e763d95fdc030f5)]:
698
+ - @mastra/client-js@1.0.0-beta.25
699
+
700
+ ## 0.1.0-beta.23
701
+
702
+ ### Major Changes
703
+
704
+ - **Fixed:** Align `Agent.network` with core and update `@mastra/react` network usage. ([#12015](https://github.com/mastra-ai/mastra/pull/12015))
705
+
706
+ ### Patch Changes
707
+
708
+ - Fixed compatibility with updated `@mastra/client-js` generate and stream API signatures ([#12011](https://github.com/mastra-ai/mastra/pull/12011))
709
+
710
+ - Updated dependencies [[`461e448`](https://github.com/mastra-ai/mastra/commit/461e448852fe999506a6046d50b1efc27d8aa378)]:
711
+ - @mastra/client-js@1.0.0-beta.24
712
+
713
+ ## 0.1.0-beta.23
714
+
715
+ ### Patch Changes
716
+
717
+ - Updated dependencies:
718
+ - @mastra/client-js@1.0.0-beta.23
719
+
720
+ ## 0.1.0-beta.22
721
+
722
+ ### Patch Changes
723
+
724
+ - Removes the deprecated `threadId` and `resourceId` options from `AgentExecutionOptions`. These have been deprecated for months in favour of the `memory` option. ([#11897](https://github.com/mastra-ai/mastra/pull/11897))
725
+
726
+ ### Breaking Changes
727
+
728
+ #### `@mastra/core`
729
+
730
+ The `threadId` and `resourceId` options have been removed from `agent.generate()` and `agent.stream()`. Use the `memory` option instead:
731
+
732
+ ```ts
733
+ // Before
734
+ await agent.stream('Hello', {
735
+ threadId: 'thread-123',
736
+ resourceId: 'user-456',
737
+ });
738
+
739
+ // After
740
+ await agent.stream('Hello', {
741
+ memory: {
742
+ thread: 'thread-123',
743
+ resource: 'user-456',
744
+ },
745
+ });
746
+ ```
747
+
748
+ #### `@mastra/server`
749
+
750
+ The `threadId`, `resourceId`, and `resourceid` fields have been removed from the main agent execution body schema. The server now expects the `memory` option format in request bodies. Legacy routes (`/api/agents/:agentId/generate-legacy` and `/api/agents/:agentId/stream-legacy`) continue to support the deprecated fields.
751
+
752
+ #### `@mastra/react`
753
+
754
+ The `useChat` hook now internally converts `threadId` to the `memory` option format when making API calls. No changes needed in component code - the hook handles the conversion automatically.
755
+
756
+ #### `@mastra/client-js`
757
+
758
+ When using the client SDK agent methods, use the `memory` option instead of `threadId`/`resourceId`:
759
+
760
+ ```ts
761
+ const agent = client.getAgent('my-agent');
762
+
763
+ // Before
764
+ await agent.generate({
765
+ messages: [...],
766
+ threadId: 'thread-123',
767
+ resourceId: 'user-456',
768
+ });
769
+
770
+ // After
771
+ await agent.generate({
772
+ messages: [...],
773
+ memory: {
774
+ thread: 'thread-123',
775
+ resource: 'user-456',
776
+ },
777
+ });
778
+ ```
779
+
780
+ - Add human-in-the-loop (HITL) support to agent networks ([#11678](https://github.com/mastra-ai/mastra/pull/11678))
781
+ - Add suspend/resume capabilities to agent network
782
+ - Enable auto-resume for suspended network execution via `autoResumeSuspendedTools`
783
+
784
+ `agent.resumeNetwork`, `agent.approveNetworkToolCall`, `agent.declineNetworkToolCall`
785
+
786
+ - Fix text parts incorrectly merging across tool calls ([#11783](https://github.com/mastra-ai/mastra/pull/11783))
787
+
788
+ Previously, when an agent produced text before and after a tool call (e.g., "Let me search for that" → tool call → "Here's what I found"), the text parts would be merged into a single part, losing the separation. This fix introduces a `textId` property to track separate text streams, ensuring each text stream maintains its own text part in the UI message.
789
+
790
+ Fixes #11577
791
+
792
+ - Updated dependencies [[`9d5059e`](https://github.com/mastra-ai/mastra/commit/9d5059eae810829935fb08e81a9bb7ecd5b144a7), [`ef756c6`](https://github.com/mastra-ai/mastra/commit/ef756c65f82d16531c43f49a27290a416611e526), [`610a70b`](https://github.com/mastra-ai/mastra/commit/610a70bdad282079f0c630e0d7bb284578f20151)]:
793
+ - @mastra/client-js@1.0.0-beta.22
794
+
795
+ ## 0.1.0-beta.21
796
+
797
+ ### Patch Changes
798
+
799
+ - Updated dependencies:
800
+ - @mastra/client-js@1.0.0-beta.21
801
+
802
+ ## 0.1.0-beta.20
803
+
804
+ ### Patch Changes
805
+
806
+ - Fix TypeScript errors during build declaration generation ([#11682](https://github.com/mastra-ai/mastra/pull/11682))
807
+
808
+ Updated test file `toUIMessage.test.ts` to match current `@mastra/core` types:
809
+ - Changed `error` property from string to `Error` object (per `StepFailure` type)
810
+ - Added missing `resumeSchema` property to `tool-call-approval` payloads (per `ToolCallApprovalPayload` type)
811
+ - Added `zod` as peer/dev dependency for test type support
812
+
813
+ - Fixed agent network not returning text response when routing agent handles requests without delegation. ([#11497](https://github.com/mastra-ai/mastra/pull/11497))
814
+
815
+ **What changed:**
816
+ - Agent networks now correctly stream text responses when the routing agent decides to handle a request itself instead of delegating to sub-agents, workflows, or tools
817
+ - Added fallback in transformers to ensure text is always returned even if core events are missing
818
+
819
+ **Why this matters:**
820
+ Previously, when using `toAISdkV5Stream` or `networkRoute()` outside of the Mastra Studio UI, no text content was returned when the routing agent handled requests directly. This fix ensures consistent behavior across all API routes.
821
+
822
+ Fixes #11219
823
+
824
+ - Display network completion validation results and scorer feedback in the Playground when viewing agent network runs, letting users see pass/fail status and actionable feedback from completion scorers ([#11562](https://github.com/mastra-ai/mastra/pull/11562))
825
+
826
+ - Updated dependencies [[`bc72b52`](https://github.com/mastra-ai/mastra/commit/bc72b529ee4478fe89ecd85a8be47ce0127b82a0), [`c042bd0`](https://github.com/mastra-ai/mastra/commit/c042bd0b743e0e86199d0cb83344ca7690e34a9c), [`e4d366a`](https://github.com/mastra-ai/mastra/commit/e4d366aeb500371dd4210d6aa8361a4c21d87034), [`58e3931`](https://github.com/mastra-ai/mastra/commit/58e3931af9baa5921688566210f00fb0c10479fa), [`08bb631`](https://github.com/mastra-ai/mastra/commit/08bb631ae2b14684b2678e3549d0b399a6f0561e), [`106c960`](https://github.com/mastra-ai/mastra/commit/106c960df5d110ec15ac8f45de8858597fb90ad5)]:
827
+ - @mastra/client-js@1.0.0-beta.20
828
+
829
+ ## 0.1.0-beta.19
830
+
831
+ ### Patch Changes
832
+
833
+ - Updated dependencies:
834
+ - @mastra/client-js@1.0.0-beta.19
835
+
836
+ ## 0.1.0-beta.18
837
+
838
+ ### Patch Changes
839
+
840
+ - Updated dependencies:
841
+ - @mastra/client-js@1.0.0-beta.18
842
+
843
+ ## 0.1.0-beta.17
844
+
845
+ ### Patch Changes
846
+
847
+ - Updated dependencies:
848
+ - @mastra/client-js@1.0.0-beta.17
849
+
850
+ ## 0.1.0-beta.16
851
+
852
+ ### Patch Changes
853
+
854
+ - Updated dependencies [[`6cbb549`](https://github.com/mastra-ai/mastra/commit/6cbb549475201a2fbf158f0fd7323f6495f46d08)]:
855
+ - @mastra/client-js@1.0.0-beta.16
856
+
857
+ ## 0.1.0-beta.15
858
+
859
+ ### Minor Changes
860
+
861
+ - Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
862
+
863
+ ## What changed
864
+
865
+ Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
866
+
867
+ **Before:**
868
+
869
+ ```typescript
870
+ // Old span structure
871
+ span.agentId; // 'my-agent'
872
+ span.toolId; // undefined
873
+ span.workflowId; // undefined
874
+ ```
875
+
876
+ **After:**
877
+
878
+ ```typescript
879
+ // New span structure
880
+ span.entityType; // EntityType.AGENT
881
+ span.entityId; // 'my-agent'
882
+ span.entityName; // 'My Agent'
883
+ ```
884
+
885
+ ## New `listTraces()` API
886
+
887
+ Query traces with filtering, pagination, and sorting:
888
+
889
+ ```typescript
890
+ const { spans, pagination } = await storage.listTraces({
891
+ filters: {
892
+ entityType: EntityType.AGENT,
893
+ entityId: 'my-agent',
894
+ userId: 'user-123',
895
+ environment: 'production',
896
+ status: TraceStatus.SUCCESS,
897
+ startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
898
+ },
899
+ pagination: { page: 0, perPage: 50 },
900
+ orderBy: { field: 'startedAt', direction: 'DESC' },
901
+ });
902
+ ```
903
+
904
+ **Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
905
+
906
+ ## New retrieval methods
907
+ - `getSpan({ traceId, spanId })` - Get a single span
908
+ - `getRootSpan({ traceId })` - Get the root span of a trace
909
+ - `getTrace({ traceId })` - Get all spans for a trace
910
+
911
+ ## Backward compatibility
912
+
913
+ The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
914
+
915
+ ## Migration
916
+
917
+ **Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
918
+
919
+ **No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
920
+
921
+ ### Patch Changes
922
+
923
+ - Updated dependencies [[`d90ea65`](https://github.com/mastra-ai/mastra/commit/d90ea6536f7aa51c6545a4e9215b55858e98e16d), [`d171e55`](https://github.com/mastra-ai/mastra/commit/d171e559ead9f52ec728d424844c8f7b164c4510), [`632fdb8`](https://github.com/mastra-ai/mastra/commit/632fdb8b3cd9ff6f90399256d526db439fc1758b), [`184f01d`](https://github.com/mastra-ai/mastra/commit/184f01d1f534ec0be9703d3996f2e088b4a560eb)]:
924
+ - @mastra/client-js@1.0.0-beta.15
925
+
926
+ ## 0.1.0-beta.14
927
+
928
+ ### Patch Changes
929
+
930
+ - Updated dependencies [[`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7)]:
931
+ - @mastra/client-js@1.0.0-beta.14
932
+
933
+ ## 0.1.0-beta.13
934
+
935
+ ### Patch Changes
936
+
937
+ - Updated dependencies:
938
+ - @mastra/client-js@1.0.0-beta.13
939
+
940
+ ## 0.1.0-beta.12
941
+
942
+ ### Patch Changes
943
+
944
+ - Remove redundant toolCalls from network agent finalResult ([#11189](https://github.com/mastra-ai/mastra/pull/11189))
945
+
946
+ The network agent's `finalResult` was storing `toolCalls` separately even though all tool call information is already present in the `messages` array (as `tool-call` and `tool-result` type messages). This caused significant token waste since the routing agent reads this data from memory on every iteration.
947
+
948
+ **Before:** `finalResult: { text, toolCalls, messages }`
949
+ **After:** `finalResult: { text, messages }`
950
+
951
+ +**Migration:** If you were accessing `finalResult.toolCalls`, retrieve tool calls from `finalResult.messages` by filtering for messages with `type: 'tool-call'`.
952
+
953
+ Updated `@mastra/react` to extract tool calls directly from the `messages` array instead of the removed `toolCalls` field when resolving initial messages from memory.
954
+
955
+ Fixes #11059
956
+
957
+ - Auto resume suspended tools if `autoResumeSuspendedTools: true` ([#11157](https://github.com/mastra-ai/mastra/pull/11157))
958
+
959
+ The flag can be added to `defaultAgentOptions` when creating the agent or to options in `agent.stream` or `agent.generate`
960
+
961
+ ```typescript
962
+ const agent = new Agent({
963
+ //...agent information,
964
+ defaultAgentOptions: {
965
+ autoResumeSuspendedTools: true,
966
+ },
967
+ });
968
+ ```
969
+
970
+ - Updated dependencies [[`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`1b85674`](https://github.com/mastra-ai/mastra/commit/1b85674123708d9b85834dccc9eae601a9d0891c), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`439eaf7`](https://github.com/mastra-ai/mastra/commit/439eaf75447809b05e326666675a4dcbf9c334ce)]:
971
+ - @mastra/client-js@1.0.0-beta.12
972
+
973
+ ## 0.1.0-beta.11
974
+
975
+ ### Patch Changes
976
+
977
+ - Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
978
+
979
+ When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
980
+
981
+ ```typescript showLineNumbers copy
982
+ const run = await workflow.createRun();
983
+ const result = await run.start({ inputData: { message: 'Hello' } });
984
+
985
+ if (result.status === 'tripwire') {
986
+ console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
987
+ console.log('Processor ID:', result.tripwire?.processorId);
988
+ console.log('Retry requested:', result.tripwire?.retry);
989
+ }
990
+ ```
991
+
992
+ Adds new UI state for tripwire in agent chat and workflow UI.
993
+
994
+ This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
995
+
996
+ - Updated dependencies [[`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
997
+ - @mastra/client-js@1.0.0-beta.11
998
+
999
+ ## 0.1.0-beta.10
1000
+
1001
+ ### Minor Changes
1002
+
1003
+ - Fix "MessagePartRuntime is not available" error when chatting with agents in Studio playground by replacing deprecated `useMessagePart` hook with `useAssistantState` ([#11039](https://github.com/mastra-ai/mastra/pull/11039))
1004
+
1005
+ ### Patch Changes
1006
+
1007
+ - fix: persist data-\* chunks from writer.custom() to memory storage ([#10884](https://github.com/mastra-ai/mastra/pull/10884))
1008
+ - Add persistence for custom data chunks (`data-*` parts) emitted via `writer.custom()` in tools
1009
+ - Data chunks are now saved to message storage so they survive page refreshes
1010
+ - Update `@assistant-ui/react` to v0.11.47 with native `DataMessagePart` support
1011
+ - Convert `data-*` parts to `DataMessagePart` format (`{ type: 'data', name: string, data: T }`)
1012
+ - Update related `@assistant-ui/*` packages for compatibility
1013
+
1014
+ - Updated dependencies [[`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d)]:
1015
+ - @mastra/client-js@1.0.0-beta.10
1016
+
1017
+ ## 0.1.0-beta.9
1018
+
1019
+ ### Patch Changes
1020
+
1021
+ - Updated dependencies [[`5a1ede1`](https://github.com/mastra-ai/mastra/commit/5a1ede1f7ab527b9ead11f7eee2f73e67aeca9e4)]:
1022
+ - @mastra/client-js@1.0.0-beta.9
1023
+
1024
+ ## 0.1.0-beta.8
1025
+
1026
+ ### Patch Changes
1027
+
1028
+ - Updated dependencies:
1029
+ - @mastra/client-js@1.0.0-beta.8
1030
+
1031
+ ## 0.1.0-beta.7
1032
+
1033
+ ### Patch Changes
1034
+
1035
+ - Updated dependencies [[`5fe71bc`](https://github.com/mastra-ai/mastra/commit/5fe71bc925dfce597df69c89241f33b378028c63), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141)]:
1036
+ - @mastra/client-js@1.0.0-beta.7
1037
+
1038
+ ## 0.1.0-beta.6
1039
+
1040
+ ### Patch Changes
1041
+
1042
+ - Adjust the types to accept tracingOptions ([#10742](https://github.com/mastra-ai/mastra/pull/10742))
1043
+
1044
+ - Updated dependencies [[`6edf340`](https://github.com/mastra-ai/mastra/commit/6edf3402f6a46ee8def2f42a2287785251fbffd6), [`ad7e8f1`](https://github.com/mastra-ai/mastra/commit/ad7e8f16ac843cbd16687ad47b66ba96bcffe111), [`e1b7118`](https://github.com/mastra-ai/mastra/commit/e1b7118f42ca0a97247afc75e57dcd5fdf987752), [`441c7b6`](https://github.com/mastra-ai/mastra/commit/441c7b6665915cfa7fd625fded8c0f518530bf10), [`e849603`](https://github.com/mastra-ai/mastra/commit/e849603a596269069f58a438b98449ea2770493d)]:
1045
+ - @mastra/client-js@1.0.0-beta.6
1046
+
1047
+ ## 0.1.0-beta.5
1048
+
1049
+ ### Patch Changes
1050
+
1051
+ - Configurable resourceId in react useChat ([#10461](https://github.com/mastra-ai/mastra/pull/10461))
1052
+
1053
+ - fix(agent): persist messages before tool suspension ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
1054
+
1055
+ 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.
1056
+
1057
+ **Backend changes (@mastra/core):**
1058
+ - Add assistant messages to messageList immediately after LLM execution
1059
+ - Flush messages synchronously before suspension to persist state
1060
+ - Create thread if it doesn't exist before flushing
1061
+ - Add metadata helpers to persist and remove tool approval state
1062
+ - Pass saveQueueManager and memory context through workflow for immediate persistence
1063
+
1064
+ **Frontend changes (@mastra/react):**
1065
+ - Extract runId from pending approvals to enable resumption after refresh
1066
+ - Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
1067
+ - Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
1068
+ - Change runId from hardcoded `agentId` to unique `uuid()`
1069
+
1070
+ **UI changes (@mastra/playground-ui):**
1071
+ - Handle tool calls awaiting approval in message initialization
1072
+ - Convert approval metadata format when loading initial messages
1073
+
1074
+ Fixes #9745, #9906
1075
+
1076
+ - Updated dependencies [[`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f)]:
1077
+ - @mastra/client-js@1.0.0-beta.5
1078
+
1079
+ ## 0.1.0-beta.4
1080
+
1081
+ ### Patch Changes
1082
+
1083
+ - Updated dependencies [[`6a86fe5`](https://github.com/mastra-ai/mastra/commit/6a86fe56b8ff53ca2eb3ed87ffc0748749ebadce), [`595a3b8`](https://github.com/mastra-ai/mastra/commit/595a3b8727c901f44e333909c09843c711224440)]:
1084
+ - @mastra/client-js@1.0.0-beta.4
1085
+
1086
+ ## 0.1.0-beta.3
1087
+
1088
+ ### Patch Changes
1089
+
1090
+ - Updated dependencies [[`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365)]:
1091
+ - @mastra/client-js@1.0.0-beta.3
1092
+
1093
+ ## 0.1.0-beta.2
1094
+
1095
+ ### Patch Changes
1096
+
1097
+ - Updated dependencies []:
1098
+ - @mastra/client-js@1.0.0-beta.2
1099
+
1100
+ ## 0.1.0-beta.1
1101
+
1102
+ ### Patch Changes
1103
+
1104
+ - Updated dependencies [[`dbd9db0`](https://github.com/mastra-ai/mastra/commit/dbd9db0d5c2797a210b9098e7e3e613718e5442f)]:
1105
+ - @mastra/client-js@1.0.0-beta.1
1106
+
1107
+ ## 0.1.0-beta.0
1108
+
1109
+ ### Minor Changes
1110
+
1111
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
1112
+
1113
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
1114
+
1115
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
1116
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
1117
+
1118
+ ### Patch Changes
1119
+
1120
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
1121
+
1122
+ - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
1123
+
1124
+ - Updated dependencies [[`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`f93d992`](https://github.com/mastra-ai/mastra/commit/f93d992a37d5431ab4a71246835d403ef7c4ce85), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`519d9e6`](https://github.com/mastra-ai/mastra/commit/519d9e6d31910457c54bdae8b7b7cb3a69f41831), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`dfe3f8c`](https://github.com/mastra-ai/mastra/commit/dfe3f8c7376ffe159236819e19ca522143c1f972), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`e8dcd71`](https://github.com/mastra-ai/mastra/commit/e8dcd71fa5e473c8ba1d6dad99eef182d20a0491), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014)]:
1125
+ - @mastra/client-js@1.0.0-beta.0
1126
+
1127
+ ## 0.0.10
1128
+
1129
+ ### Patch Changes
1130
+
1131
+ - Updated dependencies []:
1132
+ - @mastra/client-js@0.16.4
1133
+
1134
+ ## 0.0.10-alpha.0
1135
+
1136
+ ### Patch Changes
1137
+
1138
+ - Updated dependencies []:
1139
+ - @mastra/client-js@0.16.4-alpha.0
1140
+
1141
+ ## 0.0.9
1142
+
1143
+ ### Patch Changes
1144
+
1145
+ - Updated dependencies []:
1146
+ - @mastra/client-js@0.16.3
1147
+
1148
+ ## 0.0.9-alpha.0
1149
+
1150
+ ### Patch Changes
1151
+
1152
+ - Updated dependencies []:
1153
+ - @mastra/client-js@0.16.3-alpha.0
1154
+
1155
+ ## 0.0.8
4
1156
 
5
1157
  ### Patch Changes
6
1158
 
7
1159
  - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
8
1160
 
1161
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
1162
+
1163
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
1164
+
1165
+ - Updated dependencies []:
1166
+ - @mastra/client-js@0.16.2
1167
+
1168
+ ## 0.0.8-alpha.1
1169
+
1170
+ ### Patch Changes
1171
+
1172
+ - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
1173
+
1174
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
1175
+
1176
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
1177
+
9
1178
  - Updated dependencies []:
10
- - @mastra/client-js@0.0.0-error-handler-fix-20251020202607
1179
+ - @mastra/client-js@0.16.2-alpha.1
11
1180
 
12
1181
  ## 0.0.8-alpha.0
13
1182