@mastra/client-js 0.0.0-mcp-changeset-20250707162621 → 0.0.0-memory-system-message-error-20250813233316

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 (78) hide show
  1. package/CHANGELOG.md +527 -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 +270 -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 +333 -98
  11. package/dist/index.cjs.map +1 -0
  12. package/dist/index.d.ts +4 -1164
  13. package/dist/index.d.ts.map +1 -0
  14. package/dist/index.js +332 -97
  15. package/dist/index.js.map +1 -0
  16. package/dist/resources/a2a.d.ts +41 -0
  17. package/dist/resources/a2a.d.ts.map +1 -0
  18. package/dist/resources/agent.d.ts +123 -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 +105 -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 +15 -9
  55. package/src/adapters/agui.test.ts +145 -3
  56. package/src/adapters/agui.ts +29 -11
  57. package/src/client.ts +153 -2
  58. package/src/example.ts +45 -17
  59. package/src/index.test.ts +402 -6
  60. package/src/index.ts +1 -0
  61. package/src/resources/a2a.ts +35 -25
  62. package/src/resources/agent.ts +58 -24
  63. package/src/resources/base.ts +6 -1
  64. package/src/resources/memory-thread.test.ts +285 -0
  65. package/src/resources/memory-thread.ts +36 -0
  66. package/src/resources/network-memory-thread.test.ts +269 -0
  67. package/src/resources/network-memory-thread.ts +18 -0
  68. package/src/resources/network.ts +4 -3
  69. package/src/resources/vNextNetwork.ts +22 -5
  70. package/src/resources/workflow.ts +17 -3
  71. package/src/types.ts +90 -10
  72. package/src/utils/process-client-tools.ts +1 -1
  73. package/src/v2-messages.test.ts +180 -0
  74. package/tsconfig.build.json +9 -0
  75. package/tsconfig.json +1 -1
  76. package/tsup.config.ts +17 -0
  77. package/.turbo/turbo-build.log +0 -19
  78. package/dist/index.d.cts +0 -1164
package/CHANGELOG.md CHANGED
@@ -1,17 +1,542 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-mcp-changeset-20250707162621
3
+ ## 0.0.0-memory-system-message-error-20250813233316
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Updated dependencies [49281f5]
8
+ - Updated dependencies [2256977]
9
+ - Updated dependencies [c597dc5]
10
+ - Updated dependencies [a6841fa]
11
+ - Updated dependencies [c30bca8]
12
+ - Updated dependencies [83d180b]
13
+ - Updated dependencies [3b5fec7]
14
+ - @mastra/core@0.0.0-memory-system-message-error-20250813233316
15
+
16
+ ## 0.10.22-alpha.0
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [c30bca8]
21
+ - @mastra/core@0.13.3-alpha.0
22
+
23
+ ## 0.10.21
24
+
25
+ ### Patch Changes
26
+
27
+ - a239d41: Updated A2A syntax to v0.3.0
28
+ - 96169cc: Create handler that returns providers user has keys for in their env
29
+ - ce04175: Add update agent model handler
30
+ - Updated dependencies [d5330bf]
31
+ - Updated dependencies [2e74797]
32
+ - Updated dependencies [8388649]
33
+ - Updated dependencies [a239d41]
34
+ - Updated dependencies [dd94a26]
35
+ - Updated dependencies [3ba6772]
36
+ - Updated dependencies [b5cf2a3]
37
+ - Updated dependencies [2fff911]
38
+ - Updated dependencies [b32c50d]
39
+ - Updated dependencies [63449d0]
40
+ - Updated dependencies [121a3f8]
41
+ - Updated dependencies [ec510e7]
42
+ - @mastra/core@0.13.2
43
+
44
+ ## 0.10.21-alpha.3
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [b5cf2a3]
49
+ - @mastra/core@0.13.2-alpha.3
50
+
51
+ ## 0.10.21-alpha.2
52
+
53
+ ### Patch Changes
54
+
55
+ - a239d41: Updated A2A syntax to v0.3.0
56
+ - 96169cc: Create handler that returns providers user has keys for in their env
57
+ - ce04175: Add update agent model handler
58
+ - Updated dependencies [d5330bf]
59
+ - Updated dependencies [a239d41]
60
+ - Updated dependencies [b32c50d]
61
+ - Updated dependencies [121a3f8]
62
+ - Updated dependencies [ec510e7]
63
+ - @mastra/core@0.13.2-alpha.2
64
+
65
+ ## 0.10.21-alpha.1
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [2e74797]
70
+ - Updated dependencies [63449d0]
71
+ - @mastra/core@0.13.2-alpha.1
72
+
73
+ ## 0.10.21-alpha.0
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [8388649]
78
+ - Updated dependencies [dd94a26]
79
+ - Updated dependencies [3ba6772]
80
+ - Updated dependencies [2fff911]
81
+ - @mastra/core@0.13.2-alpha.0
82
+
83
+ ## 0.10.20
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [cd0042e]
88
+ - @mastra/core@0.13.1
89
+
90
+ ## 0.10.20-alpha.0
91
+
92
+ ### Patch Changes
93
+
94
+ - Updated dependencies [cd0042e]
95
+ - @mastra/core@0.13.1-alpha.0
96
+
97
+ ## 0.10.19
98
+
99
+ ### Patch Changes
100
+
101
+ - 42dfc48: Fix tool messages structure in agui adapter
102
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
103
+ - Updated dependencies [cb36de0]
104
+ - Updated dependencies [d0496e6]
105
+ - Updated dependencies [a82b851]
106
+ - Updated dependencies [ea0c5f2]
107
+ - Updated dependencies [41a0a0e]
108
+ - Updated dependencies [2871020]
109
+ - Updated dependencies [94f4812]
110
+ - Updated dependencies [e202b82]
111
+ - Updated dependencies [e00f6a0]
112
+ - Updated dependencies [4a406ec]
113
+ - Updated dependencies [b0e43c1]
114
+ - Updated dependencies [5d377e5]
115
+ - Updated dependencies [1fb812e]
116
+ - Updated dependencies [35c5798]
117
+ - @mastra/core@0.13.0
118
+
119
+ ## 0.10.19-alpha.3
120
+
121
+ ### Patch Changes
122
+
123
+ - Updated dependencies [d0496e6]
124
+ - @mastra/core@0.13.0-alpha.3
125
+
126
+ ## 0.10.19-alpha.2
127
+
128
+ ### Patch Changes
129
+
130
+ - 42dfc48: Fix tool messages structure in agui adapter
131
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
132
+ - Updated dependencies [cb36de0]
133
+ - Updated dependencies [a82b851]
134
+ - Updated dependencies [41a0a0e]
135
+ - Updated dependencies [2871020]
136
+ - Updated dependencies [4a406ec]
137
+ - Updated dependencies [5d377e5]
138
+ - @mastra/core@0.13.0-alpha.2
139
+
140
+ ## 0.10.19-alpha.1
141
+
142
+ ### Patch Changes
143
+
144
+ - Updated dependencies [ea0c5f2]
145
+ - Updated dependencies [b0e43c1]
146
+ - Updated dependencies [1fb812e]
147
+ - Updated dependencies [35c5798]
148
+ - @mastra/core@0.13.0-alpha.1
149
+
150
+ ## 0.10.19-alpha.0
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [94f4812]
155
+ - Updated dependencies [e202b82]
156
+ - Updated dependencies [e00f6a0]
157
+ - @mastra/core@0.12.2-alpha.0
158
+
159
+ ## 0.10.18
160
+
161
+ ### Patch Changes
162
+
163
+ - 6690a16: dependencies updates:
164
+ - 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`)
165
+ - Updated dependencies [33dcb07]
166
+ - Updated dependencies [d0d9500]
167
+ - Updated dependencies [d30b1a0]
168
+ - Updated dependencies [bff87f7]
169
+ - Updated dependencies [b4a8df0]
170
+ - @mastra/core@0.12.1
171
+
172
+ ## 0.10.18-alpha.1
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [d0d9500]
177
+ - @mastra/core@0.12.1-alpha.1
178
+
179
+ ## 0.10.18-alpha.0
180
+
181
+ ### Patch Changes
182
+
183
+ - 6690a16: dependencies updates:
184
+ - 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`)
185
+ - Updated dependencies [33dcb07]
186
+ - Updated dependencies [d30b1a0]
187
+ - Updated dependencies [bff87f7]
188
+ - Updated dependencies [b4a8df0]
189
+ - @mastra/core@0.12.1-alpha.0
190
+
191
+ ## 0.10.17
192
+
193
+ ### Patch Changes
194
+
195
+ - aa2715b: process stream response error handling
196
+ - 6bd354c: Should not send content type if body instance of FormData
197
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
198
+ - b641ba3: fix: save score params
199
+ - 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
200
+ - 1ac8f6b: deduplicate message
201
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
202
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
203
+ - Single message ID as string: `deleteMessages('msg-123')`
204
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
205
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
206
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
207
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
208
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
209
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
210
+ - Updates thread timestamps when messages are deleted
211
+ - Added comprehensive test coverage and documentation
212
+
213
+ - Updated dependencies [510e2c8]
214
+ - Updated dependencies [2f72fb2]
215
+ - Updated dependencies [27cc97a]
216
+ - Updated dependencies [3f89307]
217
+ - Updated dependencies [9eda7d4]
218
+ - Updated dependencies [9d49408]
219
+ - Updated dependencies [41daa63]
220
+ - Updated dependencies [ad0a58b]
221
+ - Updated dependencies [254a36b]
222
+ - Updated dependencies [2ecf658]
223
+ - Updated dependencies [7a7754f]
224
+ - Updated dependencies [fc92d80]
225
+ - Updated dependencies [e0f73c6]
226
+ - Updated dependencies [0b89602]
227
+ - Updated dependencies [4d37822]
228
+ - Updated dependencies [23a6a7c]
229
+ - Updated dependencies [cda801d]
230
+ - Updated dependencies [a77c823]
231
+ - Updated dependencies [ff9c125]
232
+ - Updated dependencies [09bca64]
233
+ - Updated dependencies [b8efbb9]
234
+ - Updated dependencies [71466e7]
235
+ - Updated dependencies [0c99fbe]
236
+ - @mastra/core@0.12.0
237
+
238
+ ## 0.10.17-alpha.5
239
+
240
+ ### Patch Changes
241
+
242
+ - @mastra/core@0.12.0-alpha.5
243
+
244
+ ## 0.10.17-alpha.4
245
+
246
+ ### Patch Changes
247
+
248
+ - Updated dependencies [ad0a58b]
249
+ - @mastra/core@0.12.0-alpha.4
250
+
251
+ ## 0.10.17-alpha.3
252
+
253
+ ### Patch Changes
254
+
255
+ - 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
256
+ - 1ac8f6b: deduplicate message
257
+ - @mastra/core@0.12.0-alpha.3
258
+
259
+ ## 0.10.17-alpha.2
260
+
261
+ ### Patch Changes
262
+
263
+ - aa2715b: process stream response error handling
264
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
265
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
266
+ - Single message ID as string: `deleteMessages('msg-123')`
267
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
268
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
269
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
270
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
271
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
272
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
273
+ - Updates thread timestamps when messages are deleted
274
+ - Added comprehensive test coverage and documentation
275
+
276
+ - Updated dependencies [27cc97a]
277
+ - Updated dependencies [41daa63]
278
+ - Updated dependencies [254a36b]
279
+ - Updated dependencies [0b89602]
280
+ - Updated dependencies [4d37822]
281
+ - Updated dependencies [ff9c125]
282
+ - Updated dependencies [b8efbb9]
283
+ - Updated dependencies [71466e7]
284
+ - Updated dependencies [0c99fbe]
285
+ - @mastra/core@0.12.0-alpha.2
286
+
287
+ ## 0.10.17-alpha.1
288
+
289
+ ### Patch Changes
290
+
291
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
292
+ - Updated dependencies [e0f73c6]
293
+ - Updated dependencies [cda801d]
294
+ - Updated dependencies [a77c823]
295
+ - @mastra/core@0.12.0-alpha.1
296
+
297
+ ## 0.10.17-alpha.0
298
+
299
+ ### Patch Changes
300
+
301
+ - 6bd354c: Should not send content type if body instance of FormData
302
+ - b641ba3: fix: save score params
303
+ - Updated dependencies [510e2c8]
304
+ - Updated dependencies [2f72fb2]
305
+ - Updated dependencies [3f89307]
306
+ - Updated dependencies [9eda7d4]
307
+ - Updated dependencies [9d49408]
308
+ - Updated dependencies [2ecf658]
309
+ - Updated dependencies [7a7754f]
310
+ - Updated dependencies [fc92d80]
311
+ - Updated dependencies [23a6a7c]
312
+ - Updated dependencies [09bca64]
313
+ - @mastra/core@0.12.0-alpha.0
314
+
315
+ ## 0.10.16
316
+
317
+ ### Patch Changes
318
+
319
+ - @mastra/core@0.11.1
320
+
321
+ ## 0.10.15
322
+
323
+ ### Patch Changes
324
+
325
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
326
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
327
+ - 2affc57: Fix output type of network loop
328
+ - 032cb66: ClientJS
329
+ - 7827943: Handle streaming large data
330
+ - 65e3395: Add Scores playground-ui and add scorer hooks
331
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
332
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
333
+ - Updated dependencies [f248d53]
334
+ - Updated dependencies [2affc57]
335
+ - Updated dependencies [66e13e3]
336
+ - Updated dependencies [edd9482]
337
+ - Updated dependencies [18344d7]
338
+ - Updated dependencies [9d372c2]
339
+ - Updated dependencies [40c2525]
340
+ - Updated dependencies [e473f27]
341
+ - Updated dependencies [032cb66]
342
+ - Updated dependencies [703ac71]
343
+ - Updated dependencies [a723d69]
344
+ - Updated dependencies [7827943]
345
+ - Updated dependencies [5889a31]
346
+ - Updated dependencies [bf1e7e7]
347
+ - Updated dependencies [65e3395]
348
+ - Updated dependencies [4933192]
349
+ - Updated dependencies [d1c77a4]
350
+ - Updated dependencies [bea9dd1]
351
+ - Updated dependencies [dcd4802]
352
+ - Updated dependencies [cbddd18]
353
+ - Updated dependencies [7ba91fa]
354
+ - @mastra/core@0.11.0
355
+
356
+ ## 0.10.15-alpha.3
357
+
358
+ ### Patch Changes
359
+
360
+ - @mastra/core@0.11.0-alpha.3
361
+
362
+ ## 0.10.15-alpha.2
363
+
364
+ ### Patch Changes
365
+
366
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
367
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
368
+ - 2affc57: Fix output type of network loop
369
+ - 032cb66: ClientJS
370
+ - 65e3395: Add Scores playground-ui and add scorer hooks
371
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
372
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
373
+ - Updated dependencies [f248d53]
374
+ - Updated dependencies [2affc57]
375
+ - Updated dependencies [66e13e3]
376
+ - Updated dependencies [edd9482]
377
+ - Updated dependencies [18344d7]
378
+ - Updated dependencies [9d372c2]
379
+ - Updated dependencies [40c2525]
380
+ - Updated dependencies [e473f27]
381
+ - Updated dependencies [032cb66]
382
+ - Updated dependencies [703ac71]
383
+ - Updated dependencies [a723d69]
384
+ - Updated dependencies [5889a31]
385
+ - Updated dependencies [65e3395]
386
+ - Updated dependencies [4933192]
387
+ - Updated dependencies [d1c77a4]
388
+ - Updated dependencies [bea9dd1]
389
+ - Updated dependencies [dcd4802]
390
+ - Updated dependencies [7ba91fa]
391
+ - @mastra/core@0.11.0-alpha.2
392
+
393
+ ## 0.10.15-alpha.1
394
+
395
+ ### Patch Changes
396
+
397
+ - @mastra/core@0.11.0-alpha.1
398
+
399
+ ## 0.10.15-alpha.0
400
+
401
+ ### Patch Changes
402
+
403
+ - 7827943: Handle streaming large data
404
+ - Updated dependencies [7827943]
405
+ - Updated dependencies [bf1e7e7]
406
+ - Updated dependencies [cbddd18]
407
+ - @mastra/core@0.11.0-alpha.0
408
+
409
+ ## 0.10.14
410
+
411
+ ### Patch Changes
412
+
413
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
414
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
415
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
416
+ - Updated dependencies [0b56518]
417
+ - Updated dependencies [db5cc15]
418
+ - Updated dependencies [2ba5b76]
419
+ - Updated dependencies [5237998]
420
+ - Updated dependencies [c3a30de]
421
+ - Updated dependencies [37c1acd]
422
+ - Updated dependencies [1aa60b1]
423
+ - Updated dependencies [89ec9d4]
424
+ - Updated dependencies [cf3a184]
425
+ - Updated dependencies [d6bfd60]
426
+ - Updated dependencies [626b0f4]
427
+ - Updated dependencies [c22a91f]
428
+ - Updated dependencies [f7403ab]
429
+ - Updated dependencies [6c89d7f]
430
+ - @mastra/core@0.10.15
431
+
432
+ ## 0.10.14-alpha.1
433
+
434
+ ### Patch Changes
435
+
436
+ - Updated dependencies [0b56518]
437
+ - Updated dependencies [2ba5b76]
438
+ - Updated dependencies [c3a30de]
439
+ - Updated dependencies [cf3a184]
440
+ - Updated dependencies [d6bfd60]
441
+ - @mastra/core@0.10.15-alpha.1
442
+
443
+ ## 0.10.14-alpha.0
444
+
445
+ ### Patch Changes
446
+
447
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
448
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
449
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
450
+ - Updated dependencies [db5cc15]
451
+ - Updated dependencies [5237998]
452
+ - Updated dependencies [37c1acd]
453
+ - Updated dependencies [1aa60b1]
454
+ - Updated dependencies [89ec9d4]
455
+ - Updated dependencies [626b0f4]
456
+ - Updated dependencies [c22a91f]
457
+ - Updated dependencies [f7403ab]
458
+ - Updated dependencies [6c89d7f]
459
+ - @mastra/core@0.10.15-alpha.0
460
+
461
+ ## 0.10.13
462
+
463
+ ### Patch Changes
464
+
465
+ - @mastra/core@0.10.14
466
+
467
+ ## 0.10.11
468
+
469
+ ### Patch Changes
470
+
471
+ - 9468be4: Fix error on agent generate while using antropic
472
+ - 44731a4: Client SDK - Expose processTextStream util for agent textstream with structured output
473
+ - Updated dependencies [b4a9811]
474
+ - Updated dependencies [4d5583d]
475
+ - @mastra/core@0.10.12
476
+
477
+ ## 0.10.11-alpha.1
478
+
479
+ ### Patch Changes
480
+
481
+ - Updated dependencies [4d5583d]
482
+ - @mastra/core@0.10.12-alpha.1
483
+
484
+ ## 0.10.11-alpha.0
485
+
486
+ ### Patch Changes
487
+
488
+ - 9468be4: Fix error on agent generate while using antropic
489
+ - 44731a4: Client SDK - Expose processTextStream util for agent textstream with structured output
490
+ - Updated dependencies [b4a9811]
491
+ - @mastra/core@0.10.12-alpha.0
492
+
493
+ ## 0.10.10
494
+
495
+ ### Patch Changes
496
+
497
+ - 18da791: Add abortSignal to client SDK options
498
+ - Updated dependencies [2873c7f]
499
+ - Updated dependencies [1c1c6a1]
7
500
  - Updated dependencies [f8ce2cc]
8
501
  - Updated dependencies [8c846b6]
502
+ - Updated dependencies [c7bbf1e]
503
+ - Updated dependencies [8722d53]
9
504
  - Updated dependencies [565cc0c]
10
505
  - Updated dependencies [b790fd1]
506
+ - Updated dependencies [132027f]
507
+ - Updated dependencies [0c85311]
11
508
  - Updated dependencies [d7ed04d]
509
+ - Updated dependencies [cb16baf]
12
510
  - Updated dependencies [f36e4f1]
13
511
  - Updated dependencies [7f6e403]
14
- - @mastra/core@0.0.0-mcp-changeset-20250707162621
512
+ - @mastra/core@0.10.11
513
+
514
+ ## 0.10.10-alpha.4
515
+
516
+ ### Patch Changes
517
+
518
+ - @mastra/core@0.10.11-alpha.4
519
+
520
+ ## 0.10.10-alpha.3
521
+
522
+ ### Patch Changes
523
+
524
+ - Updated dependencies [c7bbf1e]
525
+ - Updated dependencies [8722d53]
526
+ - Updated dependencies [132027f]
527
+ - Updated dependencies [0c85311]
528
+ - Updated dependencies [cb16baf]
529
+ - @mastra/core@0.10.11-alpha.3
530
+
531
+ ## 0.10.10-alpha.2
532
+
533
+ ### Patch Changes
534
+
535
+ - 18da791: Add abortSignal to client SDK options
536
+ - Updated dependencies [2873c7f]
537
+ - Updated dependencies [1c1c6a1]
538
+ - Updated dependencies [565cc0c]
539
+ - @mastra/core@0.10.11-alpha.2
15
540
 
16
541
  ## 0.10.10-alpha.1
17
542
 
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.js';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agui.d.ts","sourceRoot":"","sources":["../../src/adapters/agui.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,OAAO,EACP,aAAa,EASd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAa,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,WAAY,SAAQ,aAAa;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;gBACR,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,iBAAiB;IAStE,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC;CA+G3D;AAED;;GAEG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAgCrC;AAED,wBAAgB,+BAA+B,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,WAAW,EAAE,CAoElF"}