@mastra/client-js 0.0.0-custom-instrumentation-20250626084921 → 0.0.0-declaration-maps-20250729202623

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