@mastra/react 0.0.0-monorepo-binary-20251013210052 → 0.0.0-netlify-no-bundle-20251127120354

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,210 @@
1
1
  # @mastra/react-hooks
2
2
 
3
- ## 0.0.0-monorepo-binary-20251013210052
3
+ ## 0.0.0-netlify-no-bundle-20251127120354
4
+
5
+ ### Minor Changes
6
+
7
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
8
+
9
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
10
+
11
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
12
+ 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
13
+
14
+ ### Patch Changes
15
+
16
+ - Configurable resourceId in react useChat ([#10461](https://github.com/mastra-ai/mastra/pull/10461))
17
+
18
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
19
+
20
+ - fix(agent): persist messages before tool suspension ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
21
+
22
+ 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.
23
+
24
+ **Backend changes (@mastra/core):**
25
+ - Add assistant messages to messageList immediately after LLM execution
26
+ - Flush messages synchronously before suspension to persist state
27
+ - Create thread if it doesn't exist before flushing
28
+ - Add metadata helpers to persist and remove tool approval state
29
+ - Pass saveQueueManager and memory context through workflow for immediate persistence
30
+
31
+ **Frontend changes (@mastra/react):**
32
+ - Extract runId from pending approvals to enable resumption after refresh
33
+ - Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
34
+ - Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
35
+ - Change runId from hardcoded `agentId` to unique `uuid()`
36
+
37
+ **UI changes (@mastra/playground-ui):**
38
+ - Handle tool calls awaiting approval in message initialization
39
+ - Convert approval metadata format when loading initial messages
40
+
41
+ Fixes #9745, #9906
42
+
43
+ - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
44
+
45
+ - 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), [`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), [`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), [`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), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365)]:
46
+ - @mastra/client-js@0.0.0-netlify-no-bundle-20251127120354
47
+
48
+ ## 0.1.0-beta.5
49
+
50
+ ### Patch Changes
51
+
52
+ - Configurable resourceId in react useChat ([#10461](https://github.com/mastra-ai/mastra/pull/10461))
53
+
54
+ - fix(agent): persist messages before tool suspension ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
55
+
56
+ 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.
57
+
58
+ **Backend changes (@mastra/core):**
59
+ - Add assistant messages to messageList immediately after LLM execution
60
+ - Flush messages synchronously before suspension to persist state
61
+ - Create thread if it doesn't exist before flushing
62
+ - Add metadata helpers to persist and remove tool approval state
63
+ - Pass saveQueueManager and memory context through workflow for immediate persistence
64
+
65
+ **Frontend changes (@mastra/react):**
66
+ - Extract runId from pending approvals to enable resumption after refresh
67
+ - Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
68
+ - Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
69
+ - Change runId from hardcoded `agentId` to unique `uuid()`
70
+
71
+ **UI changes (@mastra/playground-ui):**
72
+ - Handle tool calls awaiting approval in message initialization
73
+ - Convert approval metadata format when loading initial messages
74
+
75
+ Fixes #9745, #9906
76
+
77
+ - Updated dependencies [[`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f)]:
78
+ - @mastra/client-js@1.0.0-beta.5
79
+
80
+ ## 0.1.0-beta.4
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [[`6a86fe5`](https://github.com/mastra-ai/mastra/commit/6a86fe56b8ff53ca2eb3ed87ffc0748749ebadce), [`595a3b8`](https://github.com/mastra-ai/mastra/commit/595a3b8727c901f44e333909c09843c711224440)]:
85
+ - @mastra/client-js@1.0.0-beta.4
86
+
87
+ ## 0.1.0-beta.3
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [[`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365)]:
92
+ - @mastra/client-js@1.0.0-beta.3
93
+
94
+ ## 0.1.0-beta.2
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies []:
99
+ - @mastra/client-js@1.0.0-beta.2
100
+
101
+ ## 0.1.0-beta.1
102
+
103
+ ### Patch Changes
104
+
105
+ - Updated dependencies [[`dbd9db0`](https://github.com/mastra-ai/mastra/commit/dbd9db0d5c2797a210b9098e7e3e613718e5442f)]:
106
+ - @mastra/client-js@1.0.0-beta.1
107
+
108
+ ## 0.1.0-beta.0
109
+
110
+ ### Minor Changes
111
+
112
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
113
+
114
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
115
+
116
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
117
+ 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
118
+
119
+ ### Patch Changes
120
+
121
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
122
+
123
+ - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
124
+
125
+ - 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)]:
126
+ - @mastra/client-js@1.0.0-beta.0
127
+
128
+ ## 0.0.10
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies []:
133
+ - @mastra/client-js@0.16.4
134
+
135
+ ## 0.0.10-alpha.0
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies []:
140
+ - @mastra/client-js@0.16.4-alpha.0
141
+
142
+ ## 0.0.9
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies []:
147
+ - @mastra/client-js@0.16.3
148
+
149
+ ## 0.0.9-alpha.0
150
+
151
+ ### Patch Changes
152
+
153
+ - Updated dependencies []:
154
+ - @mastra/client-js@0.16.3-alpha.0
155
+
156
+ ## 0.0.8
157
+
158
+ ### Patch Changes
159
+
160
+ - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
161
+
162
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
163
+
164
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
165
+
166
+ - Updated dependencies []:
167
+ - @mastra/client-js@0.16.2
168
+
169
+ ## 0.0.8-alpha.1
170
+
171
+ ### Patch Changes
172
+
173
+ - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
174
+
175
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
176
+
177
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
178
+
179
+ - Updated dependencies []:
180
+ - @mastra/client-js@0.16.2-alpha.1
181
+
182
+ ## 0.0.8-alpha.0
183
+
184
+ ### Patch Changes
185
+
186
+ - Updated dependencies []:
187
+ - @mastra/client-js@0.16.2-alpha.0
188
+
189
+ ## 0.0.7
190
+
191
+ ### Patch Changes
192
+
193
+ - Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
194
+
195
+ - Updated dependencies []:
196
+ - @mastra/client-js@0.16.1
197
+
198
+ ## 0.0.7-alpha.0
199
+
200
+ ### Patch Changes
201
+
202
+ - Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
203
+
204
+ - Updated dependencies []:
205
+ - @mastra/client-js@0.16.1-alpha.0
206
+
207
+ ## 0.0.6
4
208
 
5
209
  ### Patch Changes
6
210
 
@@ -10,14 +214,52 @@
10
214
 
11
215
  - Improve the surface API of the react sdk ([#8715](https://github.com/mastra-ai/mastra/pull/8715))
12
216
 
217
+ - Move react and react-dom deps to peer and dev deps ([#8698](https://github.com/mastra-ai/mastra/pull/8698))
218
+
13
219
  - Fix back the tripwire verification inside the new react system ([#8674](https://github.com/mastra-ai/mastra/pull/8674))
14
220
 
15
221
  - handle error case in react sdk ([#8676](https://github.com/mastra-ai/mastra/pull/8676))
16
222
 
17
223
  - fix maxSteps model settings not being passed to generate and stream endpoints ([#8627](https://github.com/mastra-ai/mastra/pull/8627))
18
224
 
225
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
226
+
19
227
  - Updated dependencies [[`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`78cfb6b`](https://github.com/mastra-ai/mastra/commit/78cfb6b66fe88bc848105fccb6459fd75413ec87)]:
20
- - @mastra/client-js@0.0.0-monorepo-binary-20251013210052
228
+ - @mastra/client-js@0.16.0
229
+
230
+ ## 0.0.6-alpha.4
231
+
232
+ ### Patch Changes
233
+
234
+ - Updated dependencies []:
235
+ - @mastra/client-js@0.16.0-alpha.4
236
+
237
+ ## 0.0.6-alpha.3
238
+
239
+ ### Patch Changes
240
+
241
+ - Updated dependencies []:
242
+ - @mastra/client-js@0.16.0-alpha.3
243
+
244
+ ## 0.0.6-alpha.2
245
+
246
+ ### Patch Changes
247
+
248
+ - Updated dependencies []:
249
+ - @mastra/client-js@0.16.0-alpha.2
250
+
251
+ ## 0.0.6-alpha.1
252
+
253
+ ### Patch Changes
254
+
255
+ - Improve the surface API of the react sdk ([#8715](https://github.com/mastra-ai/mastra/pull/8715))
256
+
257
+ - Move react and react-dom deps to peer and dev deps ([#8698](https://github.com/mastra-ai/mastra/pull/8698))
258
+
259
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
260
+
261
+ - Updated dependencies []:
262
+ - @mastra/client-js@0.16.0-alpha.1
21
263
 
22
264
  ## 0.0.6-alpha.0
23
265