@mastra/react 0.0.0-add-crumb-action-20251028111500

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 (53) hide show
  1. package/CHANGELOG.md +312 -0
  2. package/LICENSE.md +15 -0
  3. package/dist/index.cjs +1817 -0
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.js +1753 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/react.css +719 -0
  9. package/dist/src/agent/hooks.d.ts +53 -0
  10. package/dist/src/agent/types.d.ts +16 -0
  11. package/dist/src/index.d.ts +6 -0
  12. package/dist/src/lib/ai-sdk/index.d.ts +4 -0
  13. package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.d.ts +12 -0
  14. package/dist/src/lib/ai-sdk/memory/resolveInitialMessages.test.d.ts +1 -0
  15. package/dist/src/lib/ai-sdk/transformers/AISdkNetworkTransformer.d.ts +10 -0
  16. package/dist/src/lib/ai-sdk/transformers/AISdkNetworkTransformer.test.d.ts +1 -0
  17. package/dist/src/lib/ai-sdk/transformers/types.d.ts +10 -0
  18. package/dist/src/lib/ai-sdk/types.d.ts +21 -0
  19. package/dist/src/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.d.ts +10 -0
  20. package/dist/src/lib/ai-sdk/utils/fromCoreUserMessageToUIMessage.test.d.ts +1 -0
  21. package/dist/src/lib/ai-sdk/utils/toAssistantUIMessage.d.ts +14 -0
  22. package/dist/src/lib/ai-sdk/utils/toAssistantUIMessage.test.d.ts +1 -0
  23. package/dist/src/lib/ai-sdk/utils/toUIMessage.d.ts +17 -0
  24. package/dist/src/lib/ai-sdk/utils/toUIMessage.test.d.ts +1 -0
  25. package/dist/src/mastra-client-context.d.ts +10 -0
  26. package/dist/src/mastra-react-provider.d.ts +4 -0
  27. package/dist/src/ui/Code/Code.d.ts +13 -0
  28. package/dist/src/ui/Code/highlight.d.ts +3 -0
  29. package/dist/src/ui/Code/index.d.ts +1 -0
  30. package/dist/src/ui/Entity/Entity.d.ts +13 -0
  31. package/dist/src/ui/Entity/Entity.stories.d.ts +22 -0
  32. package/dist/src/ui/Entity/Entry.d.ts +9 -0
  33. package/dist/src/ui/Entity/ToolApproval.d.ts +10 -0
  34. package/dist/src/ui/Entity/context.d.ts +10 -0
  35. package/dist/src/ui/Entity/index.d.ts +4 -0
  36. package/dist/src/ui/Entity/types.d.ts +1 -0
  37. package/dist/src/ui/Icon/Icon.d.ts +11 -0
  38. package/dist/src/ui/Icon/index.d.ts +1 -0
  39. package/dist/src/ui/IconButton/IconButton.d.ts +8 -0
  40. package/dist/src/ui/IconButton/IconButton.stories.d.ts +12 -0
  41. package/dist/src/ui/IconButton/index.d.ts +1 -0
  42. package/dist/src/ui/Icons/AgentIcon.d.ts +2 -0
  43. package/dist/src/ui/Icons/ToolsIcon.d.ts +2 -0
  44. package/dist/src/ui/Icons/WorkflowIcon.d.ts +2 -0
  45. package/dist/src/ui/Icons/index.d.ts +3 -0
  46. package/dist/src/ui/Message/Message.d.ts +25 -0
  47. package/dist/src/ui/Message/Message.stories.d.ts +13 -0
  48. package/dist/src/ui/Message/index.d.ts +1 -0
  49. package/dist/src/ui/Tooltip/Tooltip.d.ts +8 -0
  50. package/dist/src/ui/Tooltip/Tooltip.stories.d.ts +12 -0
  51. package/dist/src/ui/Tooltip/index.d.ts +1 -0
  52. package/dist/src/ui/index.d.ts +7 -0
  53. package/package.json +85 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,312 @@
1
+ # @mastra/react-hooks
2
+
3
+ ## 0.0.0-add-crumb-action-20251028111500
4
+
5
+ ### Patch Changes
6
+
7
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
8
+
9
+ - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
10
+
11
+ - Updated dependencies [[`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d)]:
12
+ - @mastra/client-js@0.0.0-add-crumb-action-20251028111500
13
+
14
+ ## 0.0.10
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies []:
19
+ - @mastra/client-js@0.16.4
20
+
21
+ ## 0.0.10-alpha.0
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies []:
26
+ - @mastra/client-js@0.16.4-alpha.0
27
+
28
+ ## 0.0.9
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies []:
33
+ - @mastra/client-js@0.16.3
34
+
35
+ ## 0.0.9-alpha.0
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies []:
40
+ - @mastra/client-js@0.16.3-alpha.0
41
+
42
+ ## 0.0.8
43
+
44
+ ### Patch Changes
45
+
46
+ - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
47
+
48
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
49
+
50
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
51
+
52
+ - Updated dependencies []:
53
+ - @mastra/client-js@0.16.2
54
+
55
+ ## 0.0.8-alpha.1
56
+
57
+ ### Patch Changes
58
+
59
+ - Fix perf issue: removed flush sync ([#9014](https://github.com/mastra-ai/mastra/pull/9014))
60
+
61
+ - Fix tool result in playground ([#9087](https://github.com/mastra-ai/mastra/pull/9087))
62
+
63
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
64
+
65
+ - Updated dependencies []:
66
+ - @mastra/client-js@0.16.2-alpha.1
67
+
68
+ ## 0.0.8-alpha.0
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies []:
73
+ - @mastra/client-js@0.16.2-alpha.0
74
+
75
+ ## 0.0.7
76
+
77
+ ### Patch Changes
78
+
79
+ - Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
80
+
81
+ - Updated dependencies []:
82
+ - @mastra/client-js@0.16.1
83
+
84
+ ## 0.0.7-alpha.0
85
+
86
+ ### Patch Changes
87
+
88
+ - Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
89
+
90
+ - Updated dependencies []:
91
+ - @mastra/client-js@0.16.1-alpha.0
92
+
93
+ ## 0.0.6
94
+
95
+ ### Patch Changes
96
+
97
+ - Gracefully fix errors in react-sdk when error is an object ([#8703](https://github.com/mastra-ai/mastra/pull/8703))
98
+
99
+ - Prepares some basic set of homemade components ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
100
+
101
+ - Improve the surface API of the react sdk ([#8715](https://github.com/mastra-ai/mastra/pull/8715))
102
+
103
+ - Move react and react-dom deps to peer and dev deps ([#8698](https://github.com/mastra-ai/mastra/pull/8698))
104
+
105
+ - Fix back the tripwire verification inside the new react system ([#8674](https://github.com/mastra-ai/mastra/pull/8674))
106
+
107
+ - handle error case in react sdk ([#8676](https://github.com/mastra-ai/mastra/pull/8676))
108
+
109
+ - fix maxSteps model settings not being passed to generate and stream endpoints ([#8627](https://github.com/mastra-ai/mastra/pull/8627))
110
+
111
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
112
+
113
+ - Updated dependencies [[`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`78cfb6b`](https://github.com/mastra-ai/mastra/commit/78cfb6b66fe88bc848105fccb6459fd75413ec87)]:
114
+ - @mastra/client-js@0.16.0
115
+
116
+ ## 0.0.6-alpha.4
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies []:
121
+ - @mastra/client-js@0.16.0-alpha.4
122
+
123
+ ## 0.0.6-alpha.3
124
+
125
+ ### Patch Changes
126
+
127
+ - Updated dependencies []:
128
+ - @mastra/client-js@0.16.0-alpha.3
129
+
130
+ ## 0.0.6-alpha.2
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies []:
135
+ - @mastra/client-js@0.16.0-alpha.2
136
+
137
+ ## 0.0.6-alpha.1
138
+
139
+ ### Patch Changes
140
+
141
+ - Improve the surface API of the react sdk ([#8715](https://github.com/mastra-ai/mastra/pull/8715))
142
+
143
+ - Move react and react-dom deps to peer and dev deps ([#8698](https://github.com/mastra-ai/mastra/pull/8698))
144
+
145
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
146
+
147
+ - Updated dependencies []:
148
+ - @mastra/client-js@0.16.0-alpha.1
149
+
150
+ ## 0.0.6-alpha.0
151
+
152
+ ### Patch Changes
153
+
154
+ - Gracefully fix errors in react-sdk when error is an object ([#8703](https://github.com/mastra-ai/mastra/pull/8703))
155
+
156
+ - Prepares some basic set of homemade components ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
157
+
158
+ - Fix back the tripwire verification inside the new react system ([#8674](https://github.com/mastra-ai/mastra/pull/8674))
159
+
160
+ - handle error case in react sdk ([#8676](https://github.com/mastra-ai/mastra/pull/8676))
161
+
162
+ - fix maxSteps model settings not being passed to generate and stream endpoints ([#8627](https://github.com/mastra-ai/mastra/pull/8627))
163
+
164
+ - Updated dependencies [[`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`78cfb6b`](https://github.com/mastra-ai/mastra/commit/78cfb6b66fe88bc848105fccb6459fd75413ec87)]:
165
+ - @mastra/client-js@0.16.0-alpha.0
166
+
167
+ ## 0.0.5
168
+
169
+ ### Patch Changes
170
+
171
+ - Updated dependencies []:
172
+ - @mastra/client-js@0.15.2
173
+
174
+ ## 0.0.5-alpha.1
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies []:
179
+ - @mastra/client-js@0.15.2-alpha.1
180
+
181
+ ## 0.0.5-alpha.0
182
+
183
+ ### Patch Changes
184
+
185
+ - Updated dependencies []:
186
+ - @mastra/client-js@0.15.2-alpha.0
187
+
188
+ ## 0.0.4
189
+
190
+ ### Patch Changes
191
+
192
+ - Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
193
+
194
+ - add tripwire reason in playground ([#8568](https://github.com/mastra-ai/mastra/pull/8568))
195
+
196
+ - type fixes and missing changeset ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
197
+
198
+ - Convert WorkflowWatchResult to WorkflowResult in workflow graph ([#8541](https://github.com/mastra-ai/mastra/pull/8541))
199
+
200
+ - Updated dependencies [[`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa)]:
201
+ - @mastra/client-js@0.15.1
202
+
203
+ ## 0.0.4-alpha.4
204
+
205
+ ### Patch Changes
206
+
207
+ - Updated dependencies []:
208
+ - @mastra/client-js@0.15.1-alpha.4
209
+
210
+ ## 0.0.4-alpha.3
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies []:
215
+ - @mastra/client-js@0.15.1-alpha.3
216
+
217
+ ## 0.0.4-alpha.2
218
+
219
+ ### Patch Changes
220
+
221
+ - Updated dependencies []:
222
+ - @mastra/client-js@0.15.1-alpha.2
223
+
224
+ ## 0.0.4-alpha.1
225
+
226
+ ### Patch Changes
227
+
228
+ - Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
229
+
230
+ - add tripwire reason in playground ([#8568](https://github.com/mastra-ai/mastra/pull/8568))
231
+
232
+ - type fixes and missing changeset ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
233
+
234
+ - Convert WorkflowWatchResult to WorkflowResult in workflow graph ([#8541](https://github.com/mastra-ai/mastra/pull/8541))
235
+
236
+ - Updated dependencies [[`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa)]:
237
+ - @mastra/client-js@0.15.1-alpha.1
238
+
239
+ ## 0.0.4-alpha.0
240
+
241
+ ### Patch Changes
242
+
243
+ - Updated dependencies []:
244
+ - @mastra/client-js@0.15.1-alpha.0
245
+
246
+ ## 0.0.3
247
+
248
+ ### Patch Changes
249
+
250
+ - generateVNext into react SDK + to asistant ui message ([#8345](https://github.com/mastra-ai/mastra/pull/8345))
251
+
252
+ - distinguish between legacy and regular messages in agent chat for useChat usage ([#8409](https://github.com/mastra-ai/mastra/pull/8409))
253
+
254
+ - Updated dependencies [[`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
255
+ - @mastra/client-js@0.15.0
256
+
257
+ ## 0.0.3-alpha.0
258
+
259
+ ### Patch Changes
260
+
261
+ - generateVNext into react SDK + to asistant ui message ([#8345](https://github.com/mastra-ai/mastra/pull/8345))
262
+
263
+ - distinguish between legacy and regular messages in agent chat for useChat usage ([#8409](https://github.com/mastra-ai/mastra/pull/8409))
264
+
265
+ - Updated dependencies [[`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
266
+ - @mastra/client-js@0.15.0-alpha.0
267
+
268
+ ## 0.0.2
269
+
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies []:
273
+ - @mastra/client-js@0.14.1
274
+
275
+ ## 0.0.2-alpha.1
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies []:
280
+ - @mastra/client-js@0.14.1-alpha.1
281
+
282
+ ## 0.0.2-alpha.0
283
+
284
+ ### Patch Changes
285
+
286
+ - Updated dependencies []:
287
+ - @mastra/client-js@0.14.1-alpha.0
288
+
289
+ ## 0.0.1
290
+
291
+ ### Patch Changes
292
+
293
+ - modify the useMastraChat hook to useChat ([#8265](https://github.com/mastra-ai/mastra/pull/8265))
294
+
295
+ - Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`5cb4596`](https://github.com/mastra-ai/mastra/commit/5cb4596c644104ea817bb0c5a07b8b1f8de595a8), [`86be6be`](https://github.com/mastra-ai/mastra/commit/86be6bee7e64b7d828a6b4eec283265c820dfa43), [`57b6dd5`](https://github.com/mastra-ai/mastra/commit/57b6dd50f9e6d92c0ed3e7199e6a92752025e3a1), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`67b0f00`](https://github.com/mastra-ai/mastra/commit/67b0f005b520335c71fb85cbaa25df4ce8484a81), [`6f67656`](https://github.com/mastra-ai/mastra/commit/6f676562276926e2982401574d1e07157579be30)]:
296
+ - @mastra/client-js@0.14.0
297
+
298
+ ## 0.0.1-alpha.1
299
+
300
+ ### Patch Changes
301
+
302
+ - modify the useMastraChat hook to useChat ([#8265](https://github.com/mastra-ai/mastra/pull/8265))
303
+
304
+ - Updated dependencies [[`5cb4596`](https://github.com/mastra-ai/mastra/commit/5cb4596c644104ea817bb0c5a07b8b1f8de595a8), [`86be6be`](https://github.com/mastra-ai/mastra/commit/86be6bee7e64b7d828a6b4eec283265c820dfa43), [`57b6dd5`](https://github.com/mastra-ai/mastra/commit/57b6dd50f9e6d92c0ed3e7199e6a92752025e3a1), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`6f67656`](https://github.com/mastra-ai/mastra/commit/6f676562276926e2982401574d1e07157579be30)]:
305
+ - @mastra/client-js@0.14.0-alpha.1
306
+
307
+ ## 0.0.1-alpha.1
308
+
309
+ ### Patch Changes
310
+
311
+ - Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67)]:
312
+ - @mastra/client-js@0.14.0-alpha.0
package/LICENSE.md ADDED
@@ -0,0 +1,15 @@
1
+ # Apache License 2.0
2
+
3
+ Copyright (c) 2025 Kepler Software, Inc.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.