@mastra/client-js 0.0.0-support-d1-client-20250701191943 → 0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806162745

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 (77) hide show
  1. package/.turbo/turbo-build.log +9 -10
  2. package/CHANGELOG.md +538 -2
  3. package/LICENSE.md +11 -42
  4. package/README.md +1 -0
  5. package/dist/adapters/agui.d.ts +23 -0
  6. package/dist/adapters/agui.d.ts.map +1 -0
  7. package/dist/client.d.ts +265 -0
  8. package/dist/client.d.ts.map +1 -0
  9. package/dist/example.d.ts +2 -0
  10. package/dist/example.d.ts.map +1 -0
  11. package/dist/index.cjs +306 -79
  12. package/dist/index.cjs.map +1 -0
  13. package/dist/index.d.ts +4 -1152
  14. package/dist/index.d.ts.map +1 -0
  15. package/dist/index.js +305 -78
  16. package/dist/index.js.map +1 -0
  17. package/dist/resources/a2a.d.ts +44 -0
  18. package/dist/resources/a2a.d.ts.map +1 -0
  19. package/dist/resources/agent.d.ts +112 -0
  20. package/dist/resources/agent.d.ts.map +1 -0
  21. package/dist/resources/base.d.ts +13 -0
  22. package/dist/resources/base.d.ts.map +1 -0
  23. package/dist/resources/index.d.ts +11 -0
  24. package/dist/resources/index.d.ts.map +1 -0
  25. package/dist/resources/legacy-workflow.d.ts +87 -0
  26. package/dist/resources/legacy-workflow.d.ts.map +1 -0
  27. package/dist/resources/mcp-tool.d.ts +27 -0
  28. package/dist/resources/mcp-tool.d.ts.map +1 -0
  29. package/dist/resources/memory-thread.d.ts +53 -0
  30. package/dist/resources/memory-thread.d.ts.map +1 -0
  31. package/dist/resources/network-memory-thread.d.ts +47 -0
  32. package/dist/resources/network-memory-thread.d.ts.map +1 -0
  33. package/dist/resources/network.d.ts +30 -0
  34. package/dist/resources/network.d.ts.map +1 -0
  35. package/dist/resources/tool.d.ts +23 -0
  36. package/dist/resources/tool.d.ts.map +1 -0
  37. package/dist/resources/vNextNetwork.d.ts +42 -0
  38. package/dist/resources/vNextNetwork.d.ts.map +1 -0
  39. package/dist/resources/vector.d.ts +48 -0
  40. package/dist/resources/vector.d.ts.map +1 -0
  41. package/dist/resources/workflow.d.ts +154 -0
  42. package/dist/resources/workflow.d.ts.map +1 -0
  43. package/dist/types.d.ts +422 -0
  44. package/dist/types.d.ts.map +1 -0
  45. package/dist/utils/index.d.ts +3 -0
  46. package/dist/utils/index.d.ts.map +1 -0
  47. package/dist/utils/process-client-tools.d.ts +3 -0
  48. package/dist/utils/process-client-tools.d.ts.map +1 -0
  49. package/dist/utils/zod-to-json-schema.d.ts +105 -0
  50. package/dist/utils/zod-to-json-schema.d.ts.map +1 -0
  51. package/integration-tests/agui-adapter.test.ts +122 -0
  52. package/integration-tests/package.json +18 -0
  53. package/integration-tests/src/mastra/index.ts +35 -0
  54. package/integration-tests/vitest.config.ts +9 -0
  55. package/package.json +15 -9
  56. package/src/adapters/agui.test.ts +145 -3
  57. package/src/adapters/agui.ts +29 -11
  58. package/src/client.ts +145 -2
  59. package/src/example.ts +45 -17
  60. package/src/index.test.ts +402 -6
  61. package/src/index.ts +1 -0
  62. package/src/resources/agent.ts +46 -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 +31 -5
  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/dist/index.d.cts +0 -1152
@@ -1,19 +1,18 @@
1
1
 
2
- > @mastra/client-js@0.10.7 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
- > tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
2
+ > @mastra/client-js@0.10.20 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
+ > tsup --config tsup.config.ts
4
4
 
5
5
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.5.0
8
+ CLI Using tsup config: /home/runner/work/mastra/mastra/client-sdks/client-js/tsup.config.ts
8
9
  CLI Target: es2022
9
10
  CLI Cleaning output folder
10
11
  ESM Build start
11
12
  CJS Build start
12
- ESM dist/index.js 67.94 KB
13
- ESM ⚡️ Build success in 2390ms
14
- CJS dist/index.cjs 68.23 KB
15
- CJS ⚡️ Build success in 2395ms
16
- DTS Build start
17
- DTS ⚡️ Build success in 16098ms
18
- DTS dist/index.d.ts 40.25 KB
19
- DTS dist/index.d.cts 40.25 KB
13
+ CJS dist/index.cjs 76.11 KB
14
+ CJS dist/index.cjs.map 163.02 KB
15
+ CJS ⚡️ Build success in 2728ms
16
+ ESM dist/index.js 75.80 KB
17
+ ESM dist/index.js.map 162.83 KB
18
+ ESM ⚡️ Build success in 2729ms
package/CHANGELOG.md CHANGED
@@ -1,6 +1,539 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-support-d1-client-20250701191943
3
+ ## 0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806162745
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [8388649]
8
+ - @mastra/core@0.0.0-taofeeq-fix-tool-call-showing-after-message-20250806162745
9
+
10
+ ## 0.10.20
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [cd0042e]
15
+ - @mastra/core@0.13.1
16
+
17
+ ## 0.10.20-alpha.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [cd0042e]
22
+ - @mastra/core@0.13.1-alpha.0
23
+
24
+ ## 0.10.19
25
+
26
+ ### Patch Changes
27
+
28
+ - 42dfc48: Fix tool messages structure in agui adapter
29
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
30
+ - Updated dependencies [cb36de0]
31
+ - Updated dependencies [d0496e6]
32
+ - Updated dependencies [a82b851]
33
+ - Updated dependencies [ea0c5f2]
34
+ - Updated dependencies [41a0a0e]
35
+ - Updated dependencies [2871020]
36
+ - Updated dependencies [94f4812]
37
+ - Updated dependencies [e202b82]
38
+ - Updated dependencies [e00f6a0]
39
+ - Updated dependencies [4a406ec]
40
+ - Updated dependencies [b0e43c1]
41
+ - Updated dependencies [5d377e5]
42
+ - Updated dependencies [1fb812e]
43
+ - Updated dependencies [35c5798]
44
+ - @mastra/core@0.13.0
45
+
46
+ ## 0.10.19-alpha.3
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [d0496e6]
51
+ - @mastra/core@0.13.0-alpha.3
52
+
53
+ ## 0.10.19-alpha.2
54
+
55
+ ### Patch Changes
56
+
57
+ - 42dfc48: Fix tool messages structure in agui adapter
58
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
59
+ - Updated dependencies [cb36de0]
60
+ - Updated dependencies [a82b851]
61
+ - Updated dependencies [41a0a0e]
62
+ - Updated dependencies [2871020]
63
+ - Updated dependencies [4a406ec]
64
+ - Updated dependencies [5d377e5]
65
+ - @mastra/core@0.13.0-alpha.2
66
+
67
+ ## 0.10.19-alpha.1
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [ea0c5f2]
72
+ - Updated dependencies [b0e43c1]
73
+ - Updated dependencies [1fb812e]
74
+ - Updated dependencies [35c5798]
75
+ - @mastra/core@0.13.0-alpha.1
76
+
77
+ ## 0.10.19-alpha.0
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [94f4812]
82
+ - Updated dependencies [e202b82]
83
+ - Updated dependencies [e00f6a0]
84
+ - @mastra/core@0.12.2-alpha.0
85
+
86
+ ## 0.10.18
87
+
88
+ ### Patch Changes
89
+
90
+ - 6690a16: dependencies updates:
91
+ - 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`)
92
+ - Updated dependencies [33dcb07]
93
+ - Updated dependencies [d0d9500]
94
+ - Updated dependencies [d30b1a0]
95
+ - Updated dependencies [bff87f7]
96
+ - Updated dependencies [b4a8df0]
97
+ - @mastra/core@0.12.1
98
+
99
+ ## 0.10.18-alpha.1
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies [d0d9500]
104
+ - @mastra/core@0.12.1-alpha.1
105
+
106
+ ## 0.10.18-alpha.0
107
+
108
+ ### Patch Changes
109
+
110
+ - 6690a16: dependencies updates:
111
+ - 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`)
112
+ - Updated dependencies [33dcb07]
113
+ - Updated dependencies [d30b1a0]
114
+ - Updated dependencies [bff87f7]
115
+ - Updated dependencies [b4a8df0]
116
+ - @mastra/core@0.12.1-alpha.0
117
+
118
+ ## 0.10.17
119
+
120
+ ### Patch Changes
121
+
122
+ - aa2715b: process stream response error handling
123
+ - 6bd354c: Should not send content type if body instance of FormData
124
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
125
+ - b641ba3: fix: save score params
126
+ - 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
127
+ - 1ac8f6b: deduplicate message
128
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
129
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
130
+ - Single message ID as string: `deleteMessages('msg-123')`
131
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
132
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
133
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
134
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
135
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
136
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
137
+ - Updates thread timestamps when messages are deleted
138
+ - Added comprehensive test coverage and documentation
139
+
140
+ - Updated dependencies [510e2c8]
141
+ - Updated dependencies [2f72fb2]
142
+ - Updated dependencies [27cc97a]
143
+ - Updated dependencies [3f89307]
144
+ - Updated dependencies [9eda7d4]
145
+ - Updated dependencies [9d49408]
146
+ - Updated dependencies [41daa63]
147
+ - Updated dependencies [ad0a58b]
148
+ - Updated dependencies [254a36b]
149
+ - Updated dependencies [2ecf658]
150
+ - Updated dependencies [7a7754f]
151
+ - Updated dependencies [fc92d80]
152
+ - Updated dependencies [e0f73c6]
153
+ - Updated dependencies [0b89602]
154
+ - Updated dependencies [4d37822]
155
+ - Updated dependencies [23a6a7c]
156
+ - Updated dependencies [cda801d]
157
+ - Updated dependencies [a77c823]
158
+ - Updated dependencies [ff9c125]
159
+ - Updated dependencies [09bca64]
160
+ - Updated dependencies [b8efbb9]
161
+ - Updated dependencies [71466e7]
162
+ - Updated dependencies [0c99fbe]
163
+ - @mastra/core@0.12.0
164
+
165
+ ## 0.10.17-alpha.5
166
+
167
+ ### Patch Changes
168
+
169
+ - @mastra/core@0.12.0-alpha.5
170
+
171
+ ## 0.10.17-alpha.4
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [ad0a58b]
176
+ - @mastra/core@0.12.0-alpha.4
177
+
178
+ ## 0.10.17-alpha.3
179
+
180
+ ### Patch Changes
181
+
182
+ - 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
183
+ - 1ac8f6b: deduplicate message
184
+ - @mastra/core@0.12.0-alpha.3
185
+
186
+ ## 0.10.17-alpha.2
187
+
188
+ ### Patch Changes
189
+
190
+ - aa2715b: process stream response error handling
191
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
192
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
193
+ - Single message ID as string: `deleteMessages('msg-123')`
194
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
195
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
196
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
197
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
198
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
199
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
200
+ - Updates thread timestamps when messages are deleted
201
+ - Added comprehensive test coverage and documentation
202
+
203
+ - Updated dependencies [27cc97a]
204
+ - Updated dependencies [41daa63]
205
+ - Updated dependencies [254a36b]
206
+ - Updated dependencies [0b89602]
207
+ - Updated dependencies [4d37822]
208
+ - Updated dependencies [ff9c125]
209
+ - Updated dependencies [b8efbb9]
210
+ - Updated dependencies [71466e7]
211
+ - Updated dependencies [0c99fbe]
212
+ - @mastra/core@0.12.0-alpha.2
213
+
214
+ ## 0.10.17-alpha.1
215
+
216
+ ### Patch Changes
217
+
218
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
219
+ - Updated dependencies [e0f73c6]
220
+ - Updated dependencies [cda801d]
221
+ - Updated dependencies [a77c823]
222
+ - @mastra/core@0.12.0-alpha.1
223
+
224
+ ## 0.10.17-alpha.0
225
+
226
+ ### Patch Changes
227
+
228
+ - 6bd354c: Should not send content type if body instance of FormData
229
+ - b641ba3: fix: save score params
230
+ - Updated dependencies [510e2c8]
231
+ - Updated dependencies [2f72fb2]
232
+ - Updated dependencies [3f89307]
233
+ - Updated dependencies [9eda7d4]
234
+ - Updated dependencies [9d49408]
235
+ - Updated dependencies [2ecf658]
236
+ - Updated dependencies [7a7754f]
237
+ - Updated dependencies [fc92d80]
238
+ - Updated dependencies [23a6a7c]
239
+ - Updated dependencies [09bca64]
240
+ - @mastra/core@0.12.0-alpha.0
241
+
242
+ ## 0.10.16
243
+
244
+ ### Patch Changes
245
+
246
+ - @mastra/core@0.11.1
247
+
248
+ ## 0.10.15
249
+
250
+ ### Patch Changes
251
+
252
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
253
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
254
+ - 2affc57: Fix output type of network loop
255
+ - 032cb66: ClientJS
256
+ - 7827943: Handle streaming large data
257
+ - 65e3395: Add Scores playground-ui and add scorer hooks
258
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
259
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
260
+ - Updated dependencies [f248d53]
261
+ - Updated dependencies [2affc57]
262
+ - Updated dependencies [66e13e3]
263
+ - Updated dependencies [edd9482]
264
+ - Updated dependencies [18344d7]
265
+ - Updated dependencies [9d372c2]
266
+ - Updated dependencies [40c2525]
267
+ - Updated dependencies [e473f27]
268
+ - Updated dependencies [032cb66]
269
+ - Updated dependencies [703ac71]
270
+ - Updated dependencies [a723d69]
271
+ - Updated dependencies [7827943]
272
+ - Updated dependencies [5889a31]
273
+ - Updated dependencies [bf1e7e7]
274
+ - Updated dependencies [65e3395]
275
+ - Updated dependencies [4933192]
276
+ - Updated dependencies [d1c77a4]
277
+ - Updated dependencies [bea9dd1]
278
+ - Updated dependencies [dcd4802]
279
+ - Updated dependencies [cbddd18]
280
+ - Updated dependencies [7ba91fa]
281
+ - @mastra/core@0.11.0
282
+
283
+ ## 0.10.15-alpha.3
284
+
285
+ ### Patch Changes
286
+
287
+ - @mastra/core@0.11.0-alpha.3
288
+
289
+ ## 0.10.15-alpha.2
290
+
291
+ ### Patch Changes
292
+
293
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
294
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
295
+ - 2affc57: Fix output type of network loop
296
+ - 032cb66: ClientJS
297
+ - 65e3395: Add Scores playground-ui and add scorer hooks
298
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
299
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
300
+ - Updated dependencies [f248d53]
301
+ - Updated dependencies [2affc57]
302
+ - Updated dependencies [66e13e3]
303
+ - Updated dependencies [edd9482]
304
+ - Updated dependencies [18344d7]
305
+ - Updated dependencies [9d372c2]
306
+ - Updated dependencies [40c2525]
307
+ - Updated dependencies [e473f27]
308
+ - Updated dependencies [032cb66]
309
+ - Updated dependencies [703ac71]
310
+ - Updated dependencies [a723d69]
311
+ - Updated dependencies [5889a31]
312
+ - Updated dependencies [65e3395]
313
+ - Updated dependencies [4933192]
314
+ - Updated dependencies [d1c77a4]
315
+ - Updated dependencies [bea9dd1]
316
+ - Updated dependencies [dcd4802]
317
+ - Updated dependencies [7ba91fa]
318
+ - @mastra/core@0.11.0-alpha.2
319
+
320
+ ## 0.10.15-alpha.1
321
+
322
+ ### Patch Changes
323
+
324
+ - @mastra/core@0.11.0-alpha.1
325
+
326
+ ## 0.10.15-alpha.0
327
+
328
+ ### Patch Changes
329
+
330
+ - 7827943: Handle streaming large data
331
+ - Updated dependencies [7827943]
332
+ - Updated dependencies [bf1e7e7]
333
+ - Updated dependencies [cbddd18]
334
+ - @mastra/core@0.11.0-alpha.0
335
+
336
+ ## 0.10.14
337
+
338
+ ### Patch Changes
339
+
340
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
341
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
342
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
343
+ - Updated dependencies [0b56518]
344
+ - Updated dependencies [db5cc15]
345
+ - Updated dependencies [2ba5b76]
346
+ - Updated dependencies [5237998]
347
+ - Updated dependencies [c3a30de]
348
+ - Updated dependencies [37c1acd]
349
+ - Updated dependencies [1aa60b1]
350
+ - Updated dependencies [89ec9d4]
351
+ - Updated dependencies [cf3a184]
352
+ - Updated dependencies [d6bfd60]
353
+ - Updated dependencies [626b0f4]
354
+ - Updated dependencies [c22a91f]
355
+ - Updated dependencies [f7403ab]
356
+ - Updated dependencies [6c89d7f]
357
+ - @mastra/core@0.10.15
358
+
359
+ ## 0.10.14-alpha.1
360
+
361
+ ### Patch Changes
362
+
363
+ - Updated dependencies [0b56518]
364
+ - Updated dependencies [2ba5b76]
365
+ - Updated dependencies [c3a30de]
366
+ - Updated dependencies [cf3a184]
367
+ - Updated dependencies [d6bfd60]
368
+ - @mastra/core@0.10.15-alpha.1
369
+
370
+ ## 0.10.14-alpha.0
371
+
372
+ ### Patch Changes
373
+
374
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
375
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
376
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
377
+ - Updated dependencies [db5cc15]
378
+ - Updated dependencies [5237998]
379
+ - Updated dependencies [37c1acd]
380
+ - Updated dependencies [1aa60b1]
381
+ - Updated dependencies [89ec9d4]
382
+ - Updated dependencies [626b0f4]
383
+ - Updated dependencies [c22a91f]
384
+ - Updated dependencies [f7403ab]
385
+ - Updated dependencies [6c89d7f]
386
+ - @mastra/core@0.10.15-alpha.0
387
+
388
+ ## 0.10.13
389
+
390
+ ### Patch Changes
391
+
392
+ - @mastra/core@0.10.14
393
+
394
+ ## 0.10.11
395
+
396
+ ### Patch Changes
397
+
398
+ - 9468be4: Fix error on agent generate while using antropic
399
+ - 44731a4: Client SDK - Expose processTextStream util for agent textstream with structured output
400
+ - Updated dependencies [b4a9811]
401
+ - Updated dependencies [4d5583d]
402
+ - @mastra/core@0.10.12
403
+
404
+ ## 0.10.11-alpha.1
405
+
406
+ ### Patch Changes
407
+
408
+ - Updated dependencies [4d5583d]
409
+ - @mastra/core@0.10.12-alpha.1
410
+
411
+ ## 0.10.11-alpha.0
412
+
413
+ ### Patch Changes
414
+
415
+ - 9468be4: Fix error on agent generate while using antropic
416
+ - 44731a4: Client SDK - Expose processTextStream util for agent textstream with structured output
417
+ - Updated dependencies [b4a9811]
418
+ - @mastra/core@0.10.12-alpha.0
419
+
420
+ ## 0.10.10
421
+
422
+ ### Patch Changes
423
+
424
+ - 18da791: Add abortSignal to client SDK options
425
+ - Updated dependencies [2873c7f]
426
+ - Updated dependencies [1c1c6a1]
427
+ - Updated dependencies [f8ce2cc]
428
+ - Updated dependencies [8c846b6]
429
+ - Updated dependencies [c7bbf1e]
430
+ - Updated dependencies [8722d53]
431
+ - Updated dependencies [565cc0c]
432
+ - Updated dependencies [b790fd1]
433
+ - Updated dependencies [132027f]
434
+ - Updated dependencies [0c85311]
435
+ - Updated dependencies [d7ed04d]
436
+ - Updated dependencies [cb16baf]
437
+ - Updated dependencies [f36e4f1]
438
+ - Updated dependencies [7f6e403]
439
+ - @mastra/core@0.10.11
440
+
441
+ ## 0.10.10-alpha.4
442
+
443
+ ### Patch Changes
444
+
445
+ - @mastra/core@0.10.11-alpha.4
446
+
447
+ ## 0.10.10-alpha.3
448
+
449
+ ### Patch Changes
450
+
451
+ - Updated dependencies [c7bbf1e]
452
+ - Updated dependencies [8722d53]
453
+ - Updated dependencies [132027f]
454
+ - Updated dependencies [0c85311]
455
+ - Updated dependencies [cb16baf]
456
+ - @mastra/core@0.10.11-alpha.3
457
+
458
+ ## 0.10.10-alpha.2
459
+
460
+ ### Patch Changes
461
+
462
+ - 18da791: Add abortSignal to client SDK options
463
+ - Updated dependencies [2873c7f]
464
+ - Updated dependencies [1c1c6a1]
465
+ - Updated dependencies [565cc0c]
466
+ - @mastra/core@0.10.11-alpha.2
467
+
468
+ ## 0.10.10-alpha.1
469
+
470
+ ### Patch Changes
471
+
472
+ - Updated dependencies [7f6e403]
473
+ - @mastra/core@0.10.11-alpha.1
474
+
475
+ ## 0.10.10-alpha.0
476
+
477
+ ### Patch Changes
478
+
479
+ - Updated dependencies [f8ce2cc]
480
+ - Updated dependencies [8c846b6]
481
+ - Updated dependencies [b790fd1]
482
+ - Updated dependencies [d7ed04d]
483
+ - Updated dependencies [f36e4f1]
484
+ - @mastra/core@0.10.11-alpha.0
485
+
486
+ ## 0.10.9
487
+
488
+ ### Patch Changes
489
+
490
+ - b60f510: Fix getWorkflowRuns by limit and offset
491
+ - 6997af1: add send event to server, deployer, client-js and playground-ui
492
+ - Updated dependencies [4d3fbdf]
493
+ - @mastra/core@0.10.10
494
+
495
+ ## 0.10.9-alpha.1
496
+
497
+ ### Patch Changes
498
+
499
+ - b60f510: Fix getWorkflowRuns by limit and offset
500
+ - 6997af1: add send event to server, deployer, client-js and playground-ui
501
+ - @mastra/core@0.10.10-alpha.1
502
+
503
+ ## 0.10.9-alpha.0
504
+
505
+ ### Patch Changes
506
+
507
+ - Updated dependencies [4d3fbdf]
508
+ - @mastra/core@0.10.10-alpha.0
509
+
510
+ ## 0.10.8
511
+
512
+ ### Patch Changes
513
+
514
+ - 9047bda: clientTools - stream tool-result part
515
+ - a606c75: show right suspend schema for nested workflow on playground
516
+ - 1760a1c: Use workflow stream in playground instead of watch
517
+ - 038e5ae: Add cancel workflow run
518
+ - 7e801dd: Add tools to network api response
519
+ - Updated dependencies [9dda1ac]
520
+ - Updated dependencies [c984582]
521
+ - Updated dependencies [7e801dd]
522
+ - Updated dependencies [a606c75]
523
+ - Updated dependencies [7aa70a4]
524
+ - Updated dependencies [764f86a]
525
+ - Updated dependencies [1760a1c]
526
+ - Updated dependencies [038e5ae]
527
+ - Updated dependencies [7dda16a]
528
+ - Updated dependencies [5ebfcdd]
529
+ - Updated dependencies [b2d0c91]
530
+ - Updated dependencies [4e809ad]
531
+ - Updated dependencies [57929df]
532
+ - Updated dependencies [b7852ed]
533
+ - Updated dependencies [6320a61]
534
+ - @mastra/core@0.10.9
535
+
536
+ ## 0.10.8-alpha.0
4
537
 
5
538
  ### Patch Changes
6
539
 
@@ -10,6 +543,7 @@
10
543
  - 038e5ae: Add cancel workflow run
11
544
  - 7e801dd: Add tools to network api response
12
545
  - Updated dependencies [9dda1ac]
546
+ - Updated dependencies [c984582]
13
547
  - Updated dependencies [7e801dd]
14
548
  - Updated dependencies [a606c75]
15
549
  - Updated dependencies [7aa70a4]
@@ -17,11 +551,13 @@
17
551
  - Updated dependencies [1760a1c]
18
552
  - Updated dependencies [038e5ae]
19
553
  - Updated dependencies [7dda16a]
554
+ - Updated dependencies [5ebfcdd]
555
+ - Updated dependencies [b2d0c91]
20
556
  - Updated dependencies [4e809ad]
21
557
  - Updated dependencies [57929df]
22
558
  - Updated dependencies [b7852ed]
23
559
  - Updated dependencies [6320a61]
24
- - @mastra/core@0.0.0-support-d1-client-20250701191943
560
+ - @mastra/core@0.10.9-alpha.0
25
561
 
26
562
  ## 0.10.7
27
563
 
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"}