@mastra/client-js 0.0.0-working-memory-per-user-20250620161509 → 0.0.0-zod-v4-compat-part-2-20250820135355

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 (76) hide show
  1. package/CHANGELOG.md +601 -2
  2. package/LICENSE.md +11 -42
  3. package/README.md +1 -0
  4. package/dist/adapters/agui.d.ts +23 -0
  5. package/dist/adapters/agui.d.ts.map +1 -0
  6. package/dist/client.d.ts +265 -0
  7. package/dist/client.d.ts.map +1 -0
  8. package/dist/example.d.ts +2 -0
  9. package/dist/example.d.ts.map +1 -0
  10. package/dist/index.cjs +883 -22
  11. package/dist/index.cjs.map +1 -0
  12. package/dist/index.d.ts +4 -952
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +884 -23
  15. package/dist/index.js.map +1 -0
  16. package/dist/resources/a2a.d.ts +44 -0
  17. package/dist/resources/a2a.d.ts.map +1 -0
  18. package/dist/resources/agent.d.ts +112 -0
  19. package/dist/resources/agent.d.ts.map +1 -0
  20. package/dist/resources/base.d.ts +13 -0
  21. package/dist/resources/base.d.ts.map +1 -0
  22. package/dist/resources/index.d.ts +11 -0
  23. package/dist/resources/index.d.ts.map +1 -0
  24. package/dist/resources/legacy-workflow.d.ts +87 -0
  25. package/dist/resources/legacy-workflow.d.ts.map +1 -0
  26. package/dist/resources/mcp-tool.d.ts +27 -0
  27. package/dist/resources/mcp-tool.d.ts.map +1 -0
  28. package/dist/resources/memory-thread.d.ts +53 -0
  29. package/dist/resources/memory-thread.d.ts.map +1 -0
  30. package/dist/resources/network-memory-thread.d.ts +47 -0
  31. package/dist/resources/network-memory-thread.d.ts.map +1 -0
  32. package/dist/resources/network.d.ts +30 -0
  33. package/dist/resources/network.d.ts.map +1 -0
  34. package/dist/resources/tool.d.ts +23 -0
  35. package/dist/resources/tool.d.ts.map +1 -0
  36. package/dist/resources/vNextNetwork.d.ts +42 -0
  37. package/dist/resources/vNextNetwork.d.ts.map +1 -0
  38. package/dist/resources/vector.d.ts +48 -0
  39. package/dist/resources/vector.d.ts.map +1 -0
  40. package/dist/resources/workflow.d.ts +154 -0
  41. package/dist/resources/workflow.d.ts.map +1 -0
  42. package/dist/types.d.ts +422 -0
  43. package/dist/types.d.ts.map +1 -0
  44. package/dist/utils/index.d.ts +3 -0
  45. package/dist/utils/index.d.ts.map +1 -0
  46. package/dist/utils/process-client-tools.d.ts +3 -0
  47. package/dist/utils/process-client-tools.d.ts.map +1 -0
  48. package/dist/utils/zod-to-json-schema.d.ts +3 -0
  49. package/dist/utils/zod-to-json-schema.d.ts.map +1 -0
  50. package/integration-tests/agui-adapter.test.ts +122 -0
  51. package/integration-tests/package.json +18 -0
  52. package/integration-tests/src/mastra/index.ts +35 -0
  53. package/integration-tests/vitest.config.ts +9 -0
  54. package/package.json +16 -12
  55. package/src/adapters/agui.test.ts +145 -3
  56. package/src/client.ts +214 -1
  57. package/src/example.ts +46 -15
  58. package/src/index.test.ts +402 -6
  59. package/src/index.ts +1 -0
  60. package/src/resources/agent.ts +593 -25
  61. package/src/resources/base.ts +6 -0
  62. package/src/resources/memory-thread.test.ts +285 -0
  63. package/src/resources/memory-thread.ts +36 -0
  64. package/src/resources/network-memory-thread.test.ts +269 -0
  65. package/src/resources/network-memory-thread.ts +81 -0
  66. package/src/resources/network.ts +6 -6
  67. package/src/resources/vNextNetwork.ts +194 -0
  68. package/src/resources/workflow.ts +45 -8
  69. package/src/types.ts +171 -8
  70. package/src/utils/process-client-tools.ts +4 -3
  71. package/src/utils/zod-to-json-schema.ts +20 -3
  72. package/src/v2-messages.test.ts +180 -0
  73. package/tsconfig.build.json +9 -0
  74. package/tsconfig.json +1 -1
  75. package/tsup.config.ts +22 -0
  76. package/dist/index.d.cts +0 -952
package/CHANGELOG.md CHANGED
@@ -1,14 +1,613 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-working-memory-per-user-20250620161509
3
+ ## 0.0.0-zod-v4-compat-part-2-20250820135355
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Updated dependencies [94f4812]
8
+ - Updated dependencies [e202b82]
9
+ - Updated dependencies [e00f6a0]
10
+ - Updated dependencies [35c5798]
11
+ - @mastra/core@0.0.0-zod-v4-compat-part-2-20250820135355
12
+
13
+ ## 0.10.19-alpha.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [94f4812]
18
+ - Updated dependencies [e202b82]
19
+ - Updated dependencies [e00f6a0]
20
+ - @mastra/core@0.12.2-alpha.0
21
+
22
+ ## 0.10.18
23
+
24
+ ### Patch Changes
25
+
26
+ - 6690a16: dependencies updates:
27
+ - Updated dependency [`@ag-ui/client@^0.0.35` ↗︎](https://www.npmjs.com/package/@ag-ui/client/v/0.0.35) (from `^0.0.27`, in `dependencies`)
28
+ - Updated dependencies [33dcb07]
29
+ - Updated dependencies [d0d9500]
30
+ - Updated dependencies [d30b1a0]
31
+ - Updated dependencies [bff87f7]
32
+ - Updated dependencies [b4a8df0]
33
+ - @mastra/core@0.12.1
34
+
35
+ ## 0.10.18-alpha.1
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [d0d9500]
40
+ - @mastra/core@0.12.1-alpha.1
41
+
42
+ ## 0.10.18-alpha.0
43
+
44
+ ### Patch Changes
45
+
46
+ - 6690a16: dependencies updates:
47
+ - Updated dependency [`@ag-ui/client@^0.0.35` ↗︎](https://www.npmjs.com/package/@ag-ui/client/v/0.0.35) (from `^0.0.27`, in `dependencies`)
48
+ - Updated dependencies [33dcb07]
49
+ - Updated dependencies [d30b1a0]
50
+ - Updated dependencies [bff87f7]
51
+ - Updated dependencies [b4a8df0]
52
+ - @mastra/core@0.12.1-alpha.0
53
+
54
+ ## 0.10.17
55
+
56
+ ### Patch Changes
57
+
58
+ - aa2715b: process stream response error handling
59
+ - 6bd354c: Should not send content type if body instance of FormData
60
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
61
+ - b641ba3: fix: save score params
62
+ - 9802f42: Added types and tests to ensure client-js and hono endpoints can save memory messages where the input is either a v1 or v2 mastra message
63
+ - 1ac8f6b: deduplicate message
64
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
65
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
66
+ - Single message ID as string: `deleteMessages('msg-123')`
67
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
68
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
69
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
70
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
71
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
72
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
73
+ - Updates thread timestamps when messages are deleted
74
+ - Added comprehensive test coverage and documentation
75
+
76
+ - Updated dependencies [510e2c8]
77
+ - Updated dependencies [2f72fb2]
78
+ - Updated dependencies [27cc97a]
79
+ - Updated dependencies [3f89307]
80
+ - Updated dependencies [9eda7d4]
81
+ - Updated dependencies [9d49408]
82
+ - Updated dependencies [41daa63]
83
+ - Updated dependencies [ad0a58b]
84
+ - Updated dependencies [254a36b]
85
+ - Updated dependencies [2ecf658]
86
+ - Updated dependencies [7a7754f]
87
+ - Updated dependencies [fc92d80]
88
+ - Updated dependencies [e0f73c6]
89
+ - Updated dependencies [0b89602]
90
+ - Updated dependencies [4d37822]
91
+ - Updated dependencies [23a6a7c]
92
+ - Updated dependencies [cda801d]
93
+ - Updated dependencies [a77c823]
94
+ - Updated dependencies [ff9c125]
95
+ - Updated dependencies [09bca64]
96
+ - Updated dependencies [b8efbb9]
97
+ - Updated dependencies [71466e7]
98
+ - Updated dependencies [0c99fbe]
99
+ - @mastra/core@0.12.0
100
+
101
+ ## 0.10.17-alpha.5
102
+
103
+ ### Patch Changes
104
+
105
+ - @mastra/core@0.12.0-alpha.5
106
+
107
+ ## 0.10.17-alpha.4
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [ad0a58b]
112
+ - @mastra/core@0.12.0-alpha.4
113
+
114
+ ## 0.10.17-alpha.3
115
+
116
+ ### Patch Changes
117
+
118
+ - 9802f42: Added types and tests to ensure client-js and hono endpoints can save memory messages where the input is either a v1 or v2 mastra message
119
+ - 1ac8f6b: deduplicate message
120
+ - @mastra/core@0.12.0-alpha.3
121
+
122
+ ## 0.10.17-alpha.2
123
+
124
+ ### Patch Changes
125
+
126
+ - aa2715b: process stream response error handling
127
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
128
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
129
+ - Single message ID as string: `deleteMessages('msg-123')`
130
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
131
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
132
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
133
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
134
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
135
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
136
+ - Updates thread timestamps when messages are deleted
137
+ - Added comprehensive test coverage and documentation
138
+
139
+ - Updated dependencies [27cc97a]
140
+ - Updated dependencies [41daa63]
141
+ - Updated dependencies [254a36b]
142
+ - Updated dependencies [0b89602]
143
+ - Updated dependencies [4d37822]
144
+ - Updated dependencies [ff9c125]
145
+ - Updated dependencies [b8efbb9]
146
+ - Updated dependencies [71466e7]
147
+ - Updated dependencies [0c99fbe]
148
+ - @mastra/core@0.12.0-alpha.2
149
+
150
+ ## 0.10.17-alpha.1
151
+
152
+ ### Patch Changes
153
+
154
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
155
+ - Updated dependencies [e0f73c6]
156
+ - Updated dependencies [cda801d]
157
+ - Updated dependencies [a77c823]
158
+ - @mastra/core@0.12.0-alpha.1
159
+
160
+ ## 0.10.17-alpha.0
161
+
162
+ ### Patch Changes
163
+
164
+ - 6bd354c: Should not send content type if body instance of FormData
165
+ - b641ba3: fix: save score params
166
+ - Updated dependencies [510e2c8]
167
+ - Updated dependencies [2f72fb2]
168
+ - Updated dependencies [3f89307]
169
+ - Updated dependencies [9eda7d4]
170
+ - Updated dependencies [9d49408]
171
+ - Updated dependencies [2ecf658]
172
+ - Updated dependencies [7a7754f]
173
+ - Updated dependencies [fc92d80]
174
+ - Updated dependencies [23a6a7c]
175
+ - Updated dependencies [09bca64]
176
+ - @mastra/core@0.12.0-alpha.0
177
+
178
+ ## 0.10.16
179
+
180
+ ### Patch Changes
181
+
182
+ - @mastra/core@0.11.1
183
+
184
+ ## 0.10.15
185
+
186
+ ### Patch Changes
187
+
188
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
189
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
190
+ - 2affc57: Fix output type of network loop
191
+ - 032cb66: ClientJS
192
+ - 7827943: Handle streaming large data
193
+ - 65e3395: Add Scores playground-ui and add scorer hooks
194
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
195
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
196
+ - Updated dependencies [f248d53]
197
+ - Updated dependencies [2affc57]
198
+ - Updated dependencies [66e13e3]
199
+ - Updated dependencies [edd9482]
200
+ - Updated dependencies [18344d7]
201
+ - Updated dependencies [9d372c2]
202
+ - Updated dependencies [40c2525]
203
+ - Updated dependencies [e473f27]
204
+ - Updated dependencies [032cb66]
205
+ - Updated dependencies [703ac71]
206
+ - Updated dependencies [a723d69]
207
+ - Updated dependencies [7827943]
208
+ - Updated dependencies [5889a31]
209
+ - Updated dependencies [bf1e7e7]
210
+ - Updated dependencies [65e3395]
211
+ - Updated dependencies [4933192]
212
+ - Updated dependencies [d1c77a4]
213
+ - Updated dependencies [bea9dd1]
214
+ - Updated dependencies [dcd4802]
215
+ - Updated dependencies [cbddd18]
216
+ - Updated dependencies [7ba91fa]
217
+ - @mastra/core@0.11.0
218
+
219
+ ## 0.10.15-alpha.3
220
+
221
+ ### Patch Changes
222
+
223
+ - @mastra/core@0.11.0-alpha.3
224
+
225
+ ## 0.10.15-alpha.2
226
+
227
+ ### Patch Changes
228
+
229
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
230
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
231
+ - 2affc57: Fix output type of network loop
232
+ - 032cb66: ClientJS
233
+ - 65e3395: Add Scores playground-ui and add scorer hooks
234
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
235
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
236
+ - Updated dependencies [f248d53]
237
+ - Updated dependencies [2affc57]
238
+ - Updated dependencies [66e13e3]
239
+ - Updated dependencies [edd9482]
240
+ - Updated dependencies [18344d7]
241
+ - Updated dependencies [9d372c2]
242
+ - Updated dependencies [40c2525]
243
+ - Updated dependencies [e473f27]
244
+ - Updated dependencies [032cb66]
245
+ - Updated dependencies [703ac71]
246
+ - Updated dependencies [a723d69]
247
+ - Updated dependencies [5889a31]
248
+ - Updated dependencies [65e3395]
249
+ - Updated dependencies [4933192]
250
+ - Updated dependencies [d1c77a4]
251
+ - Updated dependencies [bea9dd1]
252
+ - Updated dependencies [dcd4802]
253
+ - Updated dependencies [7ba91fa]
254
+ - @mastra/core@0.11.0-alpha.2
255
+
256
+ ## 0.10.15-alpha.1
257
+
258
+ ### Patch Changes
259
+
260
+ - @mastra/core@0.11.0-alpha.1
261
+
262
+ ## 0.10.15-alpha.0
263
+
264
+ ### Patch Changes
265
+
266
+ - 7827943: Handle streaming large data
267
+ - Updated dependencies [7827943]
268
+ - Updated dependencies [bf1e7e7]
269
+ - Updated dependencies [cbddd18]
270
+ - @mastra/core@0.11.0-alpha.0
271
+
272
+ ## 0.10.14
273
+
274
+ ### Patch Changes
275
+
276
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
277
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
278
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
279
+ - Updated dependencies [0b56518]
280
+ - Updated dependencies [db5cc15]
281
+ - Updated dependencies [2ba5b76]
282
+ - Updated dependencies [5237998]
283
+ - Updated dependencies [c3a30de]
284
+ - Updated dependencies [37c1acd]
285
+ - Updated dependencies [1aa60b1]
286
+ - Updated dependencies [89ec9d4]
287
+ - Updated dependencies [cf3a184]
288
+ - Updated dependencies [d6bfd60]
289
+ - Updated dependencies [626b0f4]
290
+ - Updated dependencies [c22a91f]
291
+ - Updated dependencies [f7403ab]
292
+ - Updated dependencies [6c89d7f]
293
+ - @mastra/core@0.10.15
294
+
295
+ ## 0.10.14-alpha.1
296
+
297
+ ### Patch Changes
298
+
299
+ - Updated dependencies [0b56518]
300
+ - Updated dependencies [2ba5b76]
301
+ - Updated dependencies [c3a30de]
302
+ - Updated dependencies [cf3a184]
303
+ - Updated dependencies [d6bfd60]
304
+ - @mastra/core@0.10.15-alpha.1
305
+
306
+ ## 0.10.14-alpha.0
307
+
308
+ ### Patch Changes
309
+
310
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
311
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
312
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
313
+ - Updated dependencies [db5cc15]
314
+ - Updated dependencies [5237998]
315
+ - Updated dependencies [37c1acd]
316
+ - Updated dependencies [1aa60b1]
317
+ - Updated dependencies [89ec9d4]
318
+ - Updated dependencies [626b0f4]
319
+ - Updated dependencies [c22a91f]
320
+ - Updated dependencies [f7403ab]
321
+ - Updated dependencies [6c89d7f]
322
+ - @mastra/core@0.10.15-alpha.0
323
+
324
+ ## 0.10.13
325
+
326
+ ### Patch Changes
327
+
328
+ - @mastra/core@0.10.14
329
+
330
+ ## 0.10.11
331
+
332
+ ### Patch Changes
333
+
334
+ - 9468be4: Fix error on agent generate while using antropic
335
+ - 44731a4: Client SDK - Expose processTextStream util for agent textstream with structured output
336
+ - Updated dependencies [b4a9811]
337
+ - Updated dependencies [4d5583d]
338
+ - @mastra/core@0.10.12
339
+
340
+ ## 0.10.11-alpha.1
341
+
342
+ ### Patch Changes
343
+
344
+ - Updated dependencies [4d5583d]
345
+ - @mastra/core@0.10.12-alpha.1
346
+
347
+ ## 0.10.11-alpha.0
348
+
349
+ ### Patch Changes
350
+
351
+ - 9468be4: Fix error on agent generate while using antropic
352
+ - 44731a4: Client SDK - Expose processTextStream util for agent textstream with structured output
353
+ - Updated dependencies [b4a9811]
354
+ - @mastra/core@0.10.12-alpha.0
355
+
356
+ ## 0.10.10
357
+
358
+ ### Patch Changes
359
+
360
+ - 18da791: Add abortSignal to client SDK options
361
+ - Updated dependencies [2873c7f]
362
+ - Updated dependencies [1c1c6a1]
363
+ - Updated dependencies [f8ce2cc]
364
+ - Updated dependencies [8c846b6]
365
+ - Updated dependencies [c7bbf1e]
366
+ - Updated dependencies [8722d53]
367
+ - Updated dependencies [565cc0c]
368
+ - Updated dependencies [b790fd1]
369
+ - Updated dependencies [132027f]
370
+ - Updated dependencies [0c85311]
371
+ - Updated dependencies [d7ed04d]
372
+ - Updated dependencies [cb16baf]
373
+ - Updated dependencies [f36e4f1]
374
+ - Updated dependencies [7f6e403]
375
+ - @mastra/core@0.10.11
376
+
377
+ ## 0.10.10-alpha.4
378
+
379
+ ### Patch Changes
380
+
381
+ - @mastra/core@0.10.11-alpha.4
382
+
383
+ ## 0.10.10-alpha.3
384
+
385
+ ### Patch Changes
386
+
387
+ - Updated dependencies [c7bbf1e]
388
+ - Updated dependencies [8722d53]
389
+ - Updated dependencies [132027f]
390
+ - Updated dependencies [0c85311]
391
+ - Updated dependencies [cb16baf]
392
+ - @mastra/core@0.10.11-alpha.3
393
+
394
+ ## 0.10.10-alpha.2
395
+
396
+ ### Patch Changes
397
+
398
+ - 18da791: Add abortSignal to client SDK options
399
+ - Updated dependencies [2873c7f]
400
+ - Updated dependencies [1c1c6a1]
401
+ - Updated dependencies [565cc0c]
402
+ - @mastra/core@0.10.11-alpha.2
403
+
404
+ ## 0.10.10-alpha.1
405
+
406
+ ### Patch Changes
407
+
408
+ - Updated dependencies [7f6e403]
409
+ - @mastra/core@0.10.11-alpha.1
410
+
411
+ ## 0.10.10-alpha.0
412
+
413
+ ### Patch Changes
414
+
415
+ - Updated dependencies [f8ce2cc]
416
+ - Updated dependencies [8c846b6]
417
+ - Updated dependencies [b790fd1]
418
+ - Updated dependencies [d7ed04d]
419
+ - Updated dependencies [f36e4f1]
420
+ - @mastra/core@0.10.11-alpha.0
421
+
422
+ ## 0.10.9
423
+
424
+ ### Patch Changes
425
+
426
+ - b60f510: Fix getWorkflowRuns by limit and offset
427
+ - 6997af1: add send event to server, deployer, client-js and playground-ui
428
+ - Updated dependencies [4d3fbdf]
429
+ - @mastra/core@0.10.10
430
+
431
+ ## 0.10.9-alpha.1
432
+
433
+ ### Patch Changes
434
+
435
+ - b60f510: Fix getWorkflowRuns by limit and offset
436
+ - 6997af1: add send event to server, deployer, client-js and playground-ui
437
+ - @mastra/core@0.10.10-alpha.1
438
+
439
+ ## 0.10.9-alpha.0
440
+
441
+ ### Patch Changes
442
+
443
+ - Updated dependencies [4d3fbdf]
444
+ - @mastra/core@0.10.10-alpha.0
445
+
446
+ ## 0.10.8
447
+
448
+ ### Patch Changes
449
+
450
+ - 9047bda: clientTools - stream tool-result part
451
+ - a606c75: show right suspend schema for nested workflow on playground
452
+ - 1760a1c: Use workflow stream in playground instead of watch
453
+ - 038e5ae: Add cancel workflow run
454
+ - 7e801dd: Add tools to network api response
455
+ - Updated dependencies [9dda1ac]
456
+ - Updated dependencies [c984582]
457
+ - Updated dependencies [7e801dd]
458
+ - Updated dependencies [a606c75]
459
+ - Updated dependencies [7aa70a4]
460
+ - Updated dependencies [764f86a]
461
+ - Updated dependencies [1760a1c]
462
+ - Updated dependencies [038e5ae]
463
+ - Updated dependencies [7dda16a]
464
+ - Updated dependencies [5ebfcdd]
465
+ - Updated dependencies [b2d0c91]
466
+ - Updated dependencies [4e809ad]
467
+ - Updated dependencies [57929df]
468
+ - Updated dependencies [b7852ed]
469
+ - Updated dependencies [6320a61]
470
+ - @mastra/core@0.10.9
471
+
472
+ ## 0.10.8-alpha.0
473
+
474
+ ### Patch Changes
475
+
476
+ - 9047bda: clientTools - stream tool-result part
477
+ - a606c75: show right suspend schema for nested workflow on playground
478
+ - 1760a1c: Use workflow stream in playground instead of watch
479
+ - 038e5ae: Add cancel workflow run
480
+ - 7e801dd: Add tools to network api response
481
+ - Updated dependencies [9dda1ac]
482
+ - Updated dependencies [c984582]
483
+ - Updated dependencies [7e801dd]
484
+ - Updated dependencies [a606c75]
485
+ - Updated dependencies [7aa70a4]
486
+ - Updated dependencies [764f86a]
487
+ - Updated dependencies [1760a1c]
488
+ - Updated dependencies [038e5ae]
489
+ - Updated dependencies [7dda16a]
490
+ - Updated dependencies [5ebfcdd]
491
+ - Updated dependencies [b2d0c91]
492
+ - Updated dependencies [4e809ad]
493
+ - Updated dependencies [57929df]
494
+ - Updated dependencies [b7852ed]
495
+ - Updated dependencies [6320a61]
496
+ - @mastra/core@0.10.9-alpha.0
497
+
498
+ ## 0.10.7
499
+
500
+ ### Patch Changes
501
+
502
+ - a344ac7: Fix tool streaming in agent network
503
+ - Updated dependencies [b8f16b2]
504
+ - Updated dependencies [3e04487]
505
+ - Updated dependencies [a344ac7]
506
+ - Updated dependencies [dc4ca0a]
507
+ - @mastra/core@0.10.8
508
+
509
+ ## 0.10.7-alpha.1
510
+
511
+ ### Patch Changes
512
+
513
+ - Updated dependencies [b8f16b2]
514
+ - Updated dependencies [3e04487]
515
+ - Updated dependencies [dc4ca0a]
516
+ - @mastra/core@0.10.8-alpha.1
517
+
518
+ ## 0.10.7-alpha.0
519
+
520
+ ### Patch Changes
521
+
522
+ - a344ac7: Fix tool streaming in agent network
523
+ - Updated dependencies [a344ac7]
524
+ - @mastra/core@0.10.8-alpha.0
525
+
526
+ ## 0.10.6
527
+
528
+ ### Patch Changes
529
+
530
+ - 8e1b6e9: dependencies updates:
531
+ - Updated dependency [`zod@^3.25.67` ↗︎](https://www.npmjs.com/package/zod/v/3.25.67) (from `^3.25.57`, in `dependencies`)
532
+ - 9bf1d55: Fix runtimeContext in mastra server, client SDK
533
+ - 18a5d59: clientTools client side execution
534
+ - 5d74aab: vNext network in playground
535
+ - bee3fe4: Fix client side tool calling
536
+ - c0d41f6: Fix streaming for agent tool calls
537
+ - Updated dependencies [15e9d26]
538
+ - Updated dependencies [d1baedb]
7
539
  - Updated dependencies [d8f2d19]
540
+ - Updated dependencies [4d21bf2]
541
+ - Updated dependencies [07d6d88]
8
542
  - Updated dependencies [9d52b17]
9
543
  - Updated dependencies [2097952]
544
+ - Updated dependencies [792c4c0]
545
+ - Updated dependencies [5d74aab]
546
+ - Updated dependencies [a8b194f]
547
+ - Updated dependencies [4fb0cc2]
548
+ - Updated dependencies [d2a7a31]
549
+ - Updated dependencies [502fe05]
550
+ - Updated dependencies [144eb0b]
10
551
  - Updated dependencies [8ba1b51]
11
- - @mastra/core@0.0.0-working-memory-per-user-20250620161509
552
+ - Updated dependencies [4efcfa0]
553
+ - Updated dependencies [0e17048]
554
+ - @mastra/core@0.10.7
555
+
556
+ ## 0.10.6-alpha.6
557
+
558
+ ### Patch Changes
559
+
560
+ - c0d41f6: Fix streaming for agent tool calls
561
+
562
+ ## 0.10.6-alpha.5
563
+
564
+ ### Patch Changes
565
+
566
+ - bee3fe4: Fix client side tool calling
567
+ - @mastra/core@0.10.7-alpha.5
568
+
569
+ ## 0.10.6-alpha.4
570
+
571
+ ### Patch Changes
572
+
573
+ - Updated dependencies [a8b194f]
574
+ - @mastra/core@0.10.7-alpha.4
575
+
576
+ ## 0.10.6-alpha.3
577
+
578
+ ### Patch Changes
579
+
580
+ - 18a5d59: clientTools client side execution
581
+ - Updated dependencies [792c4c0]
582
+ - Updated dependencies [502fe05]
583
+ - Updated dependencies [4efcfa0]
584
+ - @mastra/core@0.10.7-alpha.3
585
+
586
+ ## 0.10.6-alpha.2
587
+
588
+ ### Patch Changes
589
+
590
+ - 8e1b6e9: dependencies updates:
591
+ - Updated dependency [`zod@^3.25.67` ↗︎](https://www.npmjs.com/package/zod/v/3.25.67) (from `^3.25.57`, in `dependencies`)
592
+ - 9bf1d55: Fix runtimeContext in mastra server, client SDK
593
+ - 5d74aab: vNext network in playground
594
+ - Updated dependencies [15e9d26]
595
+ - Updated dependencies [07d6d88]
596
+ - Updated dependencies [5d74aab]
597
+ - Updated dependencies [144eb0b]
598
+ - @mastra/core@0.10.7-alpha.2
599
+
600
+ ## 0.10.6-alpha.1
601
+
602
+ ### Patch Changes
603
+
604
+ - Updated dependencies [d1baedb]
605
+ - Updated dependencies [4d21bf2]
606
+ - Updated dependencies [2097952]
607
+ - Updated dependencies [4fb0cc2]
608
+ - Updated dependencies [d2a7a31]
609
+ - Updated dependencies [0e17048]
610
+ - @mastra/core@0.10.7-alpha.1
12
611
 
13
612
  ## 0.10.6-alpha.0
14
613
 
package/LICENSE.md CHANGED
@@ -1,46 +1,15 @@
1
- # Elastic License 2.0 (ELv2)
1
+ # Apache License 2.0
2
2
 
3
- Copyright (c) 2025 Mastra AI, Inc.
3
+ Copyright (c) 2025 Kepler Software, Inc.
4
4
 
5
- **Acceptance**
6
- By using the software, you agree to all of the terms and conditions below.
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
7
8
 
8
- **Copyright License**
9
- The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
10
 
11
- **Limitations**
12
- You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
13
-
14
- You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
15
-
16
- You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
17
-
18
- **Patents**
19
- The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
20
-
21
- **Notices**
22
- You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
23
-
24
- If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
25
-
26
- **No Other Rights**
27
- These terms do not imply any licenses other than those expressly granted in these terms.
28
-
29
- **Termination**
30
- If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
31
-
32
- **No Liability**
33
- As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
34
-
35
- **Definitions**
36
- The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
37
-
38
- _you_ refers to the individual or entity agreeing to these terms.
39
-
40
- _your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
41
-
42
- _your licenses_ are all the licenses granted to you for the software under these terms.
43
-
44
- _use_ means anything you do with the software requiring one of your licenses.
45
-
46
- _trademark_ means trademarks, service marks, and similar rights.
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.
package/README.md CHANGED
@@ -80,6 +80,7 @@ const client = new MastraClient({
80
80
  - `getWorkflow(workflowId)`: Get a workflow instance
81
81
  - `workflow.details()`: Get workflow details
82
82
  - `workflow.createRun()`: Create workflow run
83
+ - `workflow.createRunAsync()`: Create workflow run (alias)
83
84
  - `workflow.startAsync(params)`: Execute the workflow and wait for execution results
84
85
  - `workflow.resumeAsync(parmas)`: Resume suspended workflow step async
85
86
  - `workflow.watch({runId},(record)=>{})`: Watch the step transitions of the workflow run
@@ -0,0 +1,23 @@
1
+ import type { AgentConfig, BaseEvent, Message, RunAgentInput } from '@ag-ui/client';
2
+ import { AbstractAgent } from '@ag-ui/client';
3
+ import type { CoreMessage } from '@mastra/core';
4
+ import { Observable } from 'rxjs';
5
+ import type { Agent } from '../resources/agent';
6
+ interface MastraAgentConfig extends AgentConfig {
7
+ agent: Agent;
8
+ agentId: string;
9
+ resourceId?: string;
10
+ }
11
+ export declare class AGUIAdapter extends AbstractAgent {
12
+ agent: Agent;
13
+ resourceId?: string;
14
+ constructor({ agent, agentId, resourceId, ...rest }: MastraAgentConfig);
15
+ protected run(input: RunAgentInput): Observable<BaseEvent>;
16
+ }
17
+ /**
18
+ * Generates a UUID v4 that works in both browser and Node.js environments
19
+ */
20
+ export declare function generateUUID(): string;
21
+ export declare function convertMessagesToMastraMessages(messages: Message[]): CoreMessage[];
22
+ export {};
23
+ //# sourceMappingURL=agui.d.ts.map