@mastra/client-js 0.0.0-fix-message-list-args-missing-20250807205055 → 0.0.0-fix-bundle-cleanup-20250911062914

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 +514 -3
  2. package/README.md +5 -3
  3. package/dist/client.d.ts +21 -6
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/index.cjs +1270 -369
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.js +1272 -371
  8. package/dist/index.js.map +1 -1
  9. package/dist/resources/a2a.d.ts +13 -16
  10. package/dist/resources/a2a.d.ts.map +1 -1
  11. package/dist/resources/agent-builder.d.ts +161 -0
  12. package/dist/resources/agent-builder.d.ts.map +1 -0
  13. package/dist/resources/agent.d.ts +55 -7
  14. package/dist/resources/agent.d.ts.map +1 -1
  15. package/dist/resources/base.d.ts.map +1 -1
  16. package/dist/resources/index.d.ts +2 -0
  17. package/dist/resources/index.d.ts.map +1 -1
  18. package/dist/resources/memory-thread.d.ts +1 -1
  19. package/dist/resources/memory-thread.d.ts.map +1 -1
  20. package/dist/resources/network-memory-thread.d.ts +1 -1
  21. package/dist/resources/network-memory-thread.d.ts.map +1 -1
  22. package/dist/resources/network.d.ts +1 -1
  23. package/dist/resources/network.d.ts.map +1 -1
  24. package/dist/resources/observability.d.ts +19 -0
  25. package/dist/resources/observability.d.ts.map +1 -0
  26. package/dist/resources/tool.d.ts.map +1 -1
  27. package/dist/resources/vNextNetwork.d.ts +1 -1
  28. package/dist/resources/vNextNetwork.d.ts.map +1 -1
  29. package/dist/resources/workflow.d.ts +15 -0
  30. package/dist/resources/workflow.d.ts.map +1 -1
  31. package/dist/types.d.ts +49 -2
  32. package/dist/types.d.ts.map +1 -1
  33. package/dist/utils/process-client-tools.d.ts.map +1 -1
  34. package/dist/utils/process-mastra-stream.d.ts +11 -0
  35. package/dist/utils/process-mastra-stream.d.ts.map +1 -0
  36. package/dist/utils/zod-to-json-schema.d.ts +2 -104
  37. package/dist/utils/zod-to-json-schema.d.ts.map +1 -1
  38. package/package.json +22 -16
  39. package/.turbo/turbo-build.log +0 -18
  40. package/dist/adapters/agui.d.ts +0 -23
  41. package/dist/adapters/agui.d.ts.map +0 -1
  42. package/eslint.config.js +0 -6
  43. package/integration-tests/agui-adapter.test.ts +0 -122
  44. package/integration-tests/package.json +0 -18
  45. package/integration-tests/src/mastra/index.ts +0 -35
  46. package/integration-tests/vitest.config.ts +0 -9
  47. package/src/adapters/agui.test.ts +0 -322
  48. package/src/adapters/agui.ts +0 -257
  49. package/src/client.ts +0 -623
  50. package/src/example.ts +0 -95
  51. package/src/index.test.ts +0 -1226
  52. package/src/index.ts +0 -3
  53. package/src/resources/a2a.ts +0 -88
  54. package/src/resources/agent.ts +0 -785
  55. package/src/resources/base.ts +0 -76
  56. package/src/resources/index.ts +0 -10
  57. package/src/resources/legacy-workflow.ts +0 -242
  58. package/src/resources/mcp-tool.ts +0 -48
  59. package/src/resources/memory-thread.test.ts +0 -285
  60. package/src/resources/memory-thread.ts +0 -99
  61. package/src/resources/network-memory-thread.test.ts +0 -269
  62. package/src/resources/network-memory-thread.ts +0 -81
  63. package/src/resources/network.ts +0 -86
  64. package/src/resources/tool.ts +0 -45
  65. package/src/resources/vNextNetwork.ts +0 -194
  66. package/src/resources/vector.ts +0 -83
  67. package/src/resources/workflow.ts +0 -410
  68. package/src/types.ts +0 -502
  69. package/src/utils/index.ts +0 -11
  70. package/src/utils/process-client-tools.ts +0 -32
  71. package/src/utils/zod-to-json-schema.ts +0 -10
  72. package/src/v2-messages.test.ts +0 -180
  73. package/tsconfig.build.json +0 -9
  74. package/tsconfig.json +0 -5
  75. package/tsup.config.ts +0 -17
  76. package/vitest.config.js +0 -8
package/CHANGELOG.md CHANGED
@@ -1,16 +1,527 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-fix-message-list-args-missing-20250807205055
3
+ ## 0.0.0-fix-bundle-cleanup-20250911062914
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [903dfec]
7
+ - Update peerdep of @mastra/core ([`01fa4aa`](https://github.com/mastra-ai/mastra/commit/01fa4aaa634303fca93a8834160c69aeb71c400d))
8
+
9
+ - Change SchemaCompat zodToJsonSchema ref strategy from none to relative, leading to less schema warnings and smaller converted schema sizes ([#7697](https://github.com/mastra-ai/mastra/pull/7697))
10
+
11
+ - Updated dependencies [[`b4379f7`](https://github.com/mastra-ai/mastra/commit/b4379f703fd74474f253420e8c3a684f2c4b2f8e), [`dd9119b`](https://github.com/mastra-ai/mastra/commit/dd9119b175a8f389082f75c12750e51f96d65dca), [`d34aaa1`](https://github.com/mastra-ai/mastra/commit/d34aaa1da5d3c5f991740f59e2fe6d28d3e2dd91), [`ce1e580`](https://github.com/mastra-ai/mastra/commit/ce1e580f6391e94a0c6816a9c5db0a21566a262f), [`b2babfa`](https://github.com/mastra-ai/mastra/commit/b2babfa9e75b22f2759179e71d8473f6dc5421ed), [`d8c3ba5`](https://github.com/mastra-ai/mastra/commit/d8c3ba516f4173282d293f7e64769cfc8738d360), [`3863c52`](https://github.com/mastra-ai/mastra/commit/3863c52d44b4e5779968b802d977e87adf939d8e), [`6424c7e`](https://github.com/mastra-ai/mastra/commit/6424c7ec38b6921d66212431db1e0958f441b2a7), [`db94750`](https://github.com/mastra-ai/mastra/commit/db94750a41fd29b43eb1f7ce8e97ba8b9978c91b), [`a66a371`](https://github.com/mastra-ai/mastra/commit/a66a3716b00553d7f01842be9deb34f720b10fab), [`69fc3cd`](https://github.com/mastra-ai/mastra/commit/69fc3cd0fd814901785bdcf49bf536ab1e7fd975), [`0dcfeec`](https://github.com/mastra-ai/mastra/commit/0dcfeec18c35e7a0f5b82757599d2c12eed54400)]:
12
+ - @mastra/core@0.0.0-fix-bundle-cleanup-20250911062914
13
+
14
+ ## 0.12.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`61926ef`](https://github.com/mastra-ai/mastra/commit/61926ef40d415b805a63527cffe27a50542e15e5)]:
19
+ - @mastra/core@0.16.2
20
+
21
+ ## 0.12.2-alpha.0
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies [[`61926ef`](https://github.com/mastra-ai/mastra/commit/61926ef40d415b805a63527cffe27a50542e15e5)]:
26
+ - @mastra/core@0.16.2-alpha.0
27
+
28
+ ## 0.12.1
29
+
30
+ ### Patch Changes
31
+
32
+ - Allow streamVNext and generateVNext to use structuredOutputs from the MastraClient ([#7597](https://github.com/mastra-ai/mastra/pull/7597))
33
+
34
+ - Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
35
+
36
+ - Make agent streamVNext work with clientTools in client js ([#7577](https://github.com/mastra-ai/mastra/pull/7577))
37
+
38
+ - Updated dependencies [[`47b6dc9`](https://github.com/mastra-ai/mastra/commit/47b6dc94f4976d4f3d3882e8f19eb365bbc5976c), [`827d876`](https://github.com/mastra-ai/mastra/commit/827d8766f36a900afcaf64a040f7ba76249009b3), [`0662d02`](https://github.com/mastra-ai/mastra/commit/0662d02ef16916e67531890639fcd72c69cfb6e2), [`565d65f`](https://github.com/mastra-ai/mastra/commit/565d65fc16314a99f081975ec92f2636dff0c86d), [`6189844`](https://github.com/mastra-ai/mastra/commit/61898448e65bda02bb814fb15801a89dc6476938), [`4da3d68`](https://github.com/mastra-ai/mastra/commit/4da3d68a778e5c4d5a17351ef223289fe2f45a45), [`fd9bbfe`](https://github.com/mastra-ai/mastra/commit/fd9bbfee22484f8493582325f53e8171bf8e682b), [`7eaf1d1`](https://github.com/mastra-ai/mastra/commit/7eaf1d1cec7e828d7a98efc2a748ac395bbdba3b), [`6f046b5`](https://github.com/mastra-ai/mastra/commit/6f046b5ccc5c8721302a9a61d5d16c12374cc8d7), [`d7a8f59`](https://github.com/mastra-ai/mastra/commit/d7a8f59154b0621aec4f41a6b2ea2b3882f03cb7), [`0b0bbb2`](https://github.com/mastra-ai/mastra/commit/0b0bbb24f4198ead69792e92b68a350f52b45cf3), [`d951f41`](https://github.com/mastra-ai/mastra/commit/d951f41771e4e5da8da4b9f870949f9509e38756), [`4dda259`](https://github.com/mastra-ai/mastra/commit/4dda2593b6343f9258671de5fb237aeba3ef6bb7), [`8049e2e`](https://github.com/mastra-ai/mastra/commit/8049e2e8cce80a00353c64894c62b695ac34e35e), [`f3427cd`](https://github.com/mastra-ai/mastra/commit/f3427cdaf9eecd63360dfc897a4acbf5f4143a4e), [`defed1c`](https://github.com/mastra-ai/mastra/commit/defed1ca8040cc8d42e645c5a50a1bc52a4918d7), [`6991ced`](https://github.com/mastra-ai/mastra/commit/6991cedcb5a44a49d9fe58ef67926e1f96ba55b1), [`9cb9c42`](https://github.com/mastra-ai/mastra/commit/9cb9c422854ee81074989dd2d8dccc0500ba8d3e), [`8334859`](https://github.com/mastra-ai/mastra/commit/83348594d4f37b311ba4a94d679c5f8721d796d4), [`05f13b8`](https://github.com/mastra-ai/mastra/commit/05f13b8fb269ccfc4de98e9db58dbe16eae55a5e)]:
39
+ - @mastra/core@0.16.1
40
+
41
+ ## 0.12.1-alpha.3
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [[`fd9bbfe`](https://github.com/mastra-ai/mastra/commit/fd9bbfee22484f8493582325f53e8171bf8e682b)]:
46
+ - @mastra/core@0.16.1-alpha.3
47
+
48
+ ## 0.12.1-alpha.2
49
+
50
+ ### Patch Changes
51
+
52
+ - Updated dependencies [[`827d876`](https://github.com/mastra-ai/mastra/commit/827d8766f36a900afcaf64a040f7ba76249009b3), [`7eaf1d1`](https://github.com/mastra-ai/mastra/commit/7eaf1d1cec7e828d7a98efc2a748ac395bbdba3b), [`f3427cd`](https://github.com/mastra-ai/mastra/commit/f3427cdaf9eecd63360dfc897a4acbf5f4143a4e), [`05f13b8`](https://github.com/mastra-ai/mastra/commit/05f13b8fb269ccfc4de98e9db58dbe16eae55a5e)]:
53
+ - @mastra/core@0.16.1-alpha.2
54
+
55
+ ## 0.12.1-alpha.1
56
+
57
+ ### Patch Changes
58
+
59
+ - Allow streamVNext and generateVNext to use structuredOutputs from the MastraClient ([#7597](https://github.com/mastra-ai/mastra/pull/7597))
60
+
61
+ - Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
62
+
63
+ - Make agent streamVNext work with clientTools in client js ([#7577](https://github.com/mastra-ai/mastra/pull/7577))
64
+
65
+ - Updated dependencies [[`47b6dc9`](https://github.com/mastra-ai/mastra/commit/47b6dc94f4976d4f3d3882e8f19eb365bbc5976c), [`565d65f`](https://github.com/mastra-ai/mastra/commit/565d65fc16314a99f081975ec92f2636dff0c86d), [`4da3d68`](https://github.com/mastra-ai/mastra/commit/4da3d68a778e5c4d5a17351ef223289fe2f45a45), [`0b0bbb2`](https://github.com/mastra-ai/mastra/commit/0b0bbb24f4198ead69792e92b68a350f52b45cf3), [`d951f41`](https://github.com/mastra-ai/mastra/commit/d951f41771e4e5da8da4b9f870949f9509e38756), [`8049e2e`](https://github.com/mastra-ai/mastra/commit/8049e2e8cce80a00353c64894c62b695ac34e35e)]:
66
+ - @mastra/core@0.16.1-alpha.1
67
+
68
+ ## 0.12.1-alpha.0
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [[`0662d02`](https://github.com/mastra-ai/mastra/commit/0662d02ef16916e67531890639fcd72c69cfb6e2), [`6189844`](https://github.com/mastra-ai/mastra/commit/61898448e65bda02bb814fb15801a89dc6476938), [`d7a8f59`](https://github.com/mastra-ai/mastra/commit/d7a8f59154b0621aec4f41a6b2ea2b3882f03cb7), [`4dda259`](https://github.com/mastra-ai/mastra/commit/4dda2593b6343f9258671de5fb237aeba3ef6bb7), [`defed1c`](https://github.com/mastra-ai/mastra/commit/defed1ca8040cc8d42e645c5a50a1bc52a4918d7), [`6991ced`](https://github.com/mastra-ai/mastra/commit/6991cedcb5a44a49d9fe58ef67926e1f96ba55b1), [`9cb9c42`](https://github.com/mastra-ai/mastra/commit/9cb9c422854ee81074989dd2d8dccc0500ba8d3e), [`8334859`](https://github.com/mastra-ai/mastra/commit/83348594d4f37b311ba4a94d679c5f8721d796d4)]:
73
+ - @mastra/core@0.16.1-alpha.0
74
+
75
+ ## 0.12.0
76
+
77
+ ### Minor Changes
78
+
79
+ - 6155cfc: Remove AGUI implementation from client-js
80
+
81
+ ### Patch Changes
82
+
83
+ - cf4e353: Agent Builder Template - adding in UI components to use agent builder template actions
84
+ - 5397eb4: Add public URL support when adding files in Multi Modal
85
+ - Updated dependencies [8fbf79e]
86
+ - Updated dependencies [fd83526]
87
+ - Updated dependencies [d0b90ab]
88
+ - Updated dependencies [6f5eb7a]
89
+ - Updated dependencies [a01cf14]
90
+ - Updated dependencies [a9e50ee]
91
+ - Updated dependencies [5397eb4]
92
+ - Updated dependencies [c9f4e4a]
93
+ - Updated dependencies [0acbc80]
94
+ - @mastra/core@0.16.0
95
+
96
+ ## 0.12.0-alpha.1
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [8fbf79e]
101
+ - @mastra/core@0.16.0-alpha.1
102
+
103
+ ## 0.12.0-alpha.0
104
+
105
+ ### Minor Changes
106
+
107
+ - 6155cfc: Remove AGUI implementation from client-js
108
+
109
+ ### Patch Changes
110
+
111
+ - cf4e353: Agent Builder Template - adding in UI components to use agent builder template actions
112
+ - 5397eb4: Add public URL support when adding files in Multi Modal
113
+ - Updated dependencies [fd83526]
114
+ - Updated dependencies [d0b90ab]
115
+ - Updated dependencies [6f5eb7a]
116
+ - Updated dependencies [a01cf14]
117
+ - Updated dependencies [a9e50ee]
118
+ - Updated dependencies [5397eb4]
119
+ - Updated dependencies [c9f4e4a]
120
+ - Updated dependencies [0acbc80]
121
+ - @mastra/core@0.16.0-alpha.0
122
+
123
+ ## 0.11.3
124
+
125
+ ### Patch Changes
126
+
127
+ - ab48c97: dependencies updates:
128
+ - Updated dependency [`zod-to-json-schema@^3.24.6` ↗︎](https://www.npmjs.com/package/zod-to-json-schema/v/3.24.6) (from `^3.24.5`, in `dependencies`)
129
+ - ff89505: Add deprecation warnings and add legacy routes
130
+ - de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
131
+ - 26b0d7c: Cleanup pkg output
132
+ - 48f0742: add deployer, server and clientjs handlers for agent builder template
133
+ - 5de1555: Fixed tracingContext on tool executions in AI tracing
134
+ - Updated dependencies [ab48c97]
135
+ - Updated dependencies [85ef90b]
136
+ - Updated dependencies [aedbbfa]
137
+ - Updated dependencies [ff89505]
138
+ - Updated dependencies [637f323]
139
+ - Updated dependencies [de3cbc6]
140
+ - Updated dependencies [c19bcf7]
141
+ - Updated dependencies [4474d04]
142
+ - Updated dependencies [183dc95]
143
+ - Updated dependencies [a1111e2]
144
+ - Updated dependencies [b42a961]
145
+ - Updated dependencies [61debef]
146
+ - Updated dependencies [9beaeff]
147
+ - Updated dependencies [29de0e1]
148
+ - Updated dependencies [f643c65]
149
+ - Updated dependencies [00c74e7]
150
+ - Updated dependencies [fef7375]
151
+ - Updated dependencies [e3d8fea]
152
+ - Updated dependencies [45e4d39]
153
+ - Updated dependencies [9eee594]
154
+ - Updated dependencies [7149d8d]
155
+ - Updated dependencies [822c2e8]
156
+ - Updated dependencies [979912c]
157
+ - Updated dependencies [7dcf4c0]
158
+ - Updated dependencies [4106a58]
159
+ - Updated dependencies [ad78bfc]
160
+ - Updated dependencies [0302f50]
161
+ - Updated dependencies [6ac697e]
162
+ - Updated dependencies [74db265]
163
+ - Updated dependencies [0ce418a]
164
+ - Updated dependencies [af90672]
165
+ - Updated dependencies [8387952]
166
+ - Updated dependencies [7f3b8da]
167
+ - Updated dependencies [905352b]
168
+ - Updated dependencies [599d04c]
169
+ - Updated dependencies [56041d0]
170
+ - Updated dependencies [3412597]
171
+ - Updated dependencies [5eca5d2]
172
+ - Updated dependencies [f2cda47]
173
+ - Updated dependencies [5de1555]
174
+ - Updated dependencies [cfd377a]
175
+ - Updated dependencies [1ed5a3e]
176
+ - @mastra/core@0.15.3
177
+
178
+ ## 0.11.3-alpha.9
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [[`599d04c`](https://github.com/mastra-ai/mastra/commit/599d04cebe92c1d536fee3190434941b8c91548e)]:
183
+ - @mastra/core@0.15.3-alpha.9
184
+
185
+ ## 0.11.3-alpha.8
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [[`4474d04`](https://github.com/mastra-ai/mastra/commit/4474d0489b1e152e0985c33a4f529207317d27b5), [`4106a58`](https://github.com/mastra-ai/mastra/commit/4106a58b15b4c0a060a4a9ccab52d119d00d8edb)]:
190
+ - @mastra/core@0.15.3-alpha.8
191
+
192
+ ## 0.11.3-alpha.7
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [[`7149d8d`](https://github.com/mastra-ai/mastra/commit/7149d8d4bdc1edf0008e0ca9b7925eb0b8b60dbe)]:
197
+ - @mastra/core@0.15.3-alpha.7
198
+
199
+ ## 0.11.3-alpha.6
200
+
201
+ ### Patch Changes
202
+
203
+ - Updated dependencies [[`c19bcf7`](https://github.com/mastra-ai/mastra/commit/c19bcf7b43542b02157b5e17303e519933a153ab), [`b42a961`](https://github.com/mastra-ai/mastra/commit/b42a961a5aefd19d6e938a7705fc0ecc90e8f756), [`45e4d39`](https://github.com/mastra-ai/mastra/commit/45e4d391a2a09fc70c48e4d60f505586ada1ba0e), [`0302f50`](https://github.com/mastra-ai/mastra/commit/0302f50861a53c66ff28801fc371b37c5f97e41e), [`74db265`](https://github.com/mastra-ai/mastra/commit/74db265b96aa01a72ffd91dcae0bc3b346cca0f2), [`7f3b8da`](https://github.com/mastra-ai/mastra/commit/7f3b8da6dd21c35d3672e44b4f5dd3502b8f8f92), [`905352b`](https://github.com/mastra-ai/mastra/commit/905352bcda134552400eb252bca1cb05a7975c14), [`f2cda47`](https://github.com/mastra-ai/mastra/commit/f2cda47ae911038c5d5489f54c36517d6f15bdcc), [`cfd377a`](https://github.com/mastra-ai/mastra/commit/cfd377a3a33a9c88b644f6540feed9cd9832db47)]:
204
+ - @mastra/core@0.15.3-alpha.6
205
+
206
+ ## 0.11.3-alpha.5
207
+
208
+ ### Patch Changes
209
+
210
+ - [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
211
+
212
+ - Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
213
+ - @mastra/core@0.15.3-alpha.5
214
+
215
+ ## 0.11.3-alpha.4
216
+
217
+ ### Patch Changes
218
+
219
+ - [#5816](https://github.com/mastra-ai/mastra/pull/5816) [`ab48c97`](https://github.com/mastra-ai/mastra/commit/ab48c979098ea571faf998a55d3a00e7acd7a715) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
220
+ - Updated dependency [`zod-to-json-schema@^3.24.6` ↗︎](https://www.npmjs.com/package/zod-to-json-schema/v/3.24.6) (from `^3.24.5`, in `dependencies`)
221
+
222
+ - [#7269](https://github.com/mastra-ai/mastra/pull/7269) [`ff89505`](https://github.com/mastra-ai/mastra/commit/ff895057c8c7e91a5535faef46c5e5391085ddfa) Thanks [@wardpeet](https://github.com/wardpeet)! - Add deprecation warnings and add legacy routes
223
+
224
+ - [#7329](https://github.com/mastra-ai/mastra/pull/7329) [`26b0d7c`](https://github.com/mastra-ai/mastra/commit/26b0d7c7cba46469351d453714e119ac7aae9da2) Thanks [@wardpeet](https://github.com/wardpeet)! - Cleanup pkg output
225
+
226
+ - [#7136](https://github.com/mastra-ai/mastra/pull/7136) [`48f0742`](https://github.com/mastra-ai/mastra/commit/48f0742662414610dc9a7a99d45902d059ee123d) Thanks [@NikAiyer](https://github.com/NikAiyer)! - add deployer, server and clientjs handlers for agent builder template
227
+
228
+ - Updated dependencies [[`ab48c97`](https://github.com/mastra-ai/mastra/commit/ab48c979098ea571faf998a55d3a00e7acd7a715), [`ff89505`](https://github.com/mastra-ai/mastra/commit/ff895057c8c7e91a5535faef46c5e5391085ddfa), [`183dc95`](https://github.com/mastra-ai/mastra/commit/183dc95596f391b977bd1a2c050b8498dac74891), [`a1111e2`](https://github.com/mastra-ai/mastra/commit/a1111e24e705488adfe5e0a6f20c53bddf26cb22), [`61debef`](https://github.com/mastra-ai/mastra/commit/61debefd80ad3a7ed5737e19df6a23d40091689a), [`9beaeff`](https://github.com/mastra-ai/mastra/commit/9beaeffa4a97b1d5fd01a7f8af8708b16067f67c), [`9eee594`](https://github.com/mastra-ai/mastra/commit/9eee594e35e0ca2a650fcc33fa82009a142b9ed0), [`979912c`](https://github.com/mastra-ai/mastra/commit/979912cfd180aad53287cda08af771df26454e2c), [`7dcf4c0`](https://github.com/mastra-ai/mastra/commit/7dcf4c04f44d9345b1f8bc5d41eae3f11ac61611), [`ad78bfc`](https://github.com/mastra-ai/mastra/commit/ad78bfc4ea6a1fff140432bf4f638e01af7af668), [`0ce418a`](https://github.com/mastra-ai/mastra/commit/0ce418a1ccaa5e125d4483a9651b635046152569), [`8387952`](https://github.com/mastra-ai/mastra/commit/838795227b4edf758c84a2adf6f7fba206c27719), [`5eca5d2`](https://github.com/mastra-ai/mastra/commit/5eca5d2655788863ea0442a46c9ef5d3c6dbe0a8)]:
229
+ - @mastra/core@0.15.3-alpha.4
230
+
231
+ ## 0.11.3-alpha.3
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [[`aedbbfa`](https://github.com/mastra-ai/mastra/commit/aedbbfa064124ddde039111f12629daebfea7e48), [`f643c65`](https://github.com/mastra-ai/mastra/commit/f643c651bdaf57c2343cf9dbfc499010495701fb), [`fef7375`](https://github.com/mastra-ai/mastra/commit/fef737534574f41b432a7361a285f776c3bac42b), [`e3d8fea`](https://github.com/mastra-ai/mastra/commit/e3d8feaacfb8b5c5c03c13604cc06ea2873d45fe), [`3412597`](https://github.com/mastra-ai/mastra/commit/3412597a6644c0b6bf3236d6e319ed1450c5bae8)]:
236
+ - @mastra/core@0.15.3-alpha.3
237
+
238
+ ## 0.11.3-alpha.2
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [[`822c2e8`](https://github.com/mastra-ai/mastra/commit/822c2e88a3ecbffb7c680e6227976006ccefe6a8)]:
243
+ - @mastra/core@0.15.3-alpha.2
244
+
245
+ ## 0.11.3-alpha.1
246
+
247
+ ### Patch Changes
248
+
249
+ - Updated dependencies [[`637f323`](https://github.com/mastra-ai/mastra/commit/637f32371d79a8f78c52c0d53411af0915fcec67), [`29de0e1`](https://github.com/mastra-ai/mastra/commit/29de0e1b0a7173317ae7d1ab0c0993167c659f2b), [`6ac697e`](https://github.com/mastra-ai/mastra/commit/6ac697edcc2435482c247cba615277ec4765dcc4)]:
250
+ - @mastra/core@0.15.3-alpha.1
251
+
252
+ ## 0.11.3-alpha.0
253
+
254
+ ### Patch Changes
255
+
256
+ - [#7109](https://github.com/mastra-ai/mastra/pull/7109) [`5de1555`](https://github.com/mastra-ai/mastra/commit/5de15554d3d6695211945a36928f6657e76cddc9) Thanks [@epinzur](https://github.com/epinzur)! - Fixed tracingContext on tool executions in AI tracing
257
+
258
+ - Updated dependencies [[`00c74e7`](https://github.com/mastra-ai/mastra/commit/00c74e73b1926be0d475693bb886fb67a22ff352), [`af90672`](https://github.com/mastra-ai/mastra/commit/af906722d8da28688882193b1e531026f9e2e81e), [`56041d0`](https://github.com/mastra-ai/mastra/commit/56041d018863a3da6b98c512e47348647c075fb3), [`5de1555`](https://github.com/mastra-ai/mastra/commit/5de15554d3d6695211945a36928f6657e76cddc9), [`1ed5a3e`](https://github.com/mastra-ai/mastra/commit/1ed5a3e19330374c4347a4237cd2f4b9ffb60376)]:
259
+ - @mastra/core@0.15.3-alpha.0
260
+
261
+ ## 0.11.2
262
+
263
+ ### Patch Changes
264
+
265
+ - [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
266
+
267
+ - Updated dependencies []:
268
+ - @mastra/core@0.15.2
269
+
270
+ ## 0.11.1
271
+
272
+ ### Patch Changes
273
+
274
+ - Updated dependencies []:
275
+ - @mastra/core@0.15.1
276
+
277
+ ## 0.11.0
278
+
279
+ ### Minor Changes
280
+
281
+ - [#6993](https://github.com/mastra-ai/mastra/pull/6993) [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve types and fix linting issues
282
+
283
+ - [#7032](https://github.com/mastra-ai/mastra/pull/7032) [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c) Thanks [@wardpeet](https://github.com/wardpeet)! - Bump zod peerdep to 3.25.0 to support both v3/v4
284
+
285
+ ### Patch Changes
286
+
287
+ - [#6967](https://github.com/mastra-ai/mastra/pull/6967) [`01be5d3`](https://github.com/mastra-ai/mastra/commit/01be5d358fad8faa101e5c69dfa54562c02cc0af) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Implement AI traces for server apis and client sdk
288
+
289
+ - [#6972](https://github.com/mastra-ai/mastra/pull/6972) [`00ef6c1`](https://github.com/mastra-ai/mastra/commit/00ef6c1d3c76708712acd3de7f39c4d6b0f3b427) Thanks [@roaminro](https://github.com/roaminro)! - add credentials option for fetch requests
290
+
291
+ - [#6949](https://github.com/mastra-ai/mastra/pull/6949) [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1) Thanks [@CalebBarnes](https://github.com/CalebBarnes)! - stream/generate vnext: simplify internal output schema handling, improve types and typescript generics, and add jsdoc comments
292
+
293
+ - [#6942](https://github.com/mastra-ai/mastra/pull/6942) [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01) Thanks [@wardpeet](https://github.com/wardpeet)! - Add zod as peerdeps for all packages
294
+
295
+ - Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6), [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
296
+ - @mastra/core@0.15.0
297
+
298
+ ## 0.11.0-alpha.4
299
+
300
+ ### Minor Changes
301
+
302
+ - [#7032](https://github.com/mastra-ai/mastra/pull/7032) [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c) Thanks [@wardpeet](https://github.com/wardpeet)! - Bump zod peerdep to 3.25.0 to support both v3/v4
303
+
304
+ ### Patch Changes
305
+
306
+ - Updated dependencies [[`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c)]:
307
+ - @mastra/core@0.15.0-alpha.4
308
+
309
+ ## 0.11.0-alpha.3
310
+
311
+ ### Patch Changes
312
+
313
+ - Updated dependencies []:
314
+ - @mastra/core@0.15.0-alpha.3
315
+
316
+ ## 0.11.0-alpha.2
317
+
318
+ ### Patch Changes
319
+
320
+ - Updated dependencies [[`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6)]:
321
+ - @mastra/core@0.14.2-alpha.2
322
+
323
+ ## 0.11.0-alpha.1
324
+
325
+ ### Minor Changes
326
+
327
+ - [#6993](https://github.com/mastra-ai/mastra/pull/6993) [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve types and fix linting issues
328
+
329
+ ### Patch Changes
330
+
331
+ - [#6967](https://github.com/mastra-ai/mastra/pull/6967) [`01be5d3`](https://github.com/mastra-ai/mastra/commit/01be5d358fad8faa101e5c69dfa54562c02cc0af) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Implement AI traces for server apis and client sdk
332
+
333
+ - [#6972](https://github.com/mastra-ai/mastra/pull/6972) [`00ef6c1`](https://github.com/mastra-ai/mastra/commit/00ef6c1d3c76708712acd3de7f39c4d6b0f3b427) Thanks [@roaminro](https://github.com/roaminro)! - add credentials option for fetch requests
334
+
335
+ - [#6942](https://github.com/mastra-ai/mastra/pull/6942) [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01) Thanks [@wardpeet](https://github.com/wardpeet)! - Add zod as peerdeps for all packages
336
+
337
+ - Updated dependencies [[`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01)]:
338
+ - @mastra/core@0.14.2-alpha.1
339
+
340
+ ## 0.10.24-alpha.0
341
+
342
+ ### Patch Changes
343
+
344
+ - [#6949](https://github.com/mastra-ai/mastra/pull/6949) [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1) Thanks [@CalebBarnes](https://github.com/CalebBarnes)! - stream/generate vnext: simplify internal output schema handling, improve types and typescript generics, and add jsdoc comments
345
+
346
+ - Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
347
+ - @mastra/core@0.14.2-alpha.0
348
+
349
+ ## 0.10.23
350
+
351
+ ### Patch Changes
352
+
353
+ - Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
354
+ - @mastra/core@0.14.1
355
+
356
+ ## 0.10.23-alpha.1
357
+
358
+ ### Patch Changes
359
+
360
+ - Updated dependencies [[`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236)]:
361
+ - @mastra/core@0.14.1-alpha.1
362
+
363
+ ## 0.10.23-alpha.0
364
+
365
+ ### Patch Changes
366
+
367
+ - Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
368
+ - @mastra/core@0.14.1-alpha.0
369
+
370
+ ## 0.10.22
371
+
372
+ ### Patch Changes
373
+
374
+ - 0a7f675: Add VNext methods and `processMastraStream`
375
+ - 6313063: Implement model switcher in playground
376
+ - 1d59515: Add options to playground based on modelVersion
377
+ - Updated dependencies [227c7e6]
378
+ - Updated dependencies [12cae67]
379
+ - Updated dependencies [fd3a3eb]
380
+ - Updated dependencies [6faaee5]
381
+ - Updated dependencies [4232b14]
382
+ - Updated dependencies [a89de7e]
383
+ - Updated dependencies [5a37d0c]
384
+ - Updated dependencies [4bde0cb]
385
+ - Updated dependencies [cf4f357]
386
+ - Updated dependencies [ad888a2]
387
+ - Updated dependencies [481751d]
388
+ - Updated dependencies [2454423]
389
+ - Updated dependencies [194e395]
390
+ - Updated dependencies [a722c0b]
391
+ - Updated dependencies [c30bca8]
392
+ - Updated dependencies [3b5fec7]
393
+ - Updated dependencies [a8f129d]
394
+ - @mastra/core@0.14.0
395
+
396
+ ## 0.10.22-alpha.7
397
+
398
+ ### Patch Changes
399
+
400
+ - @mastra/core@0.14.0-alpha.7
401
+
402
+ ## 0.10.22-alpha.6
403
+
404
+ ### Patch Changes
405
+
406
+ - Updated dependencies [ad888a2]
407
+ - Updated dependencies [481751d]
408
+ - Updated dependencies [194e395]
409
+ - @mastra/core@0.14.0-alpha.6
410
+
411
+ ## 0.10.22-alpha.5
412
+
413
+ ### Patch Changes
414
+
415
+ - @mastra/core@0.14.0-alpha.5
416
+
417
+ ## 0.10.22-alpha.4
418
+
419
+ ### Patch Changes
420
+
421
+ - 0a7f675: Client JS vnext methods
422
+ - 1d59515: Add options to playground based on modelVersion
423
+ - 195eabb: Process Mastra Stream
424
+ - Updated dependencies [0a7f675]
425
+ - Updated dependencies [12cae67]
426
+ - Updated dependencies [5a37d0c]
427
+ - Updated dependencies [4bde0cb]
428
+ - Updated dependencies [1a80071]
429
+ - Updated dependencies [36a3be8]
430
+ - Updated dependencies [361757b]
431
+ - Updated dependencies [2bb9955]
432
+ - Updated dependencies [2454423]
433
+ - Updated dependencies [a44d91e]
434
+ - Updated dependencies [dfb91e9]
435
+ - Updated dependencies [a741dde]
436
+ - Updated dependencies [7cb3fc0]
437
+ - Updated dependencies [195eabb]
438
+ - Updated dependencies [b78b95b]
439
+ - @mastra/core@0.14.0-alpha.4
440
+
441
+ ## 0.10.22-alpha.3
442
+
443
+ ### Patch Changes
444
+
445
+ - Updated dependencies [227c7e6]
446
+ - Updated dependencies [fd3a3eb]
447
+ - Updated dependencies [a8f129d]
448
+ - @mastra/core@0.14.0-alpha.3
449
+
450
+ ## 0.10.22-alpha.2
451
+
452
+ ### Patch Changes
453
+
454
+ - @mastra/core@0.14.0-alpha.2
455
+
456
+ ## 0.10.22-alpha.1
457
+
458
+ ### Patch Changes
459
+
460
+ - 6313063: Implement model switcher in playground
461
+ - Updated dependencies [6faaee5]
462
+ - Updated dependencies [4232b14]
463
+ - Updated dependencies [a89de7e]
464
+ - Updated dependencies [cf4f357]
465
+ - Updated dependencies [a722c0b]
466
+ - Updated dependencies [3b5fec7]
467
+ - @mastra/core@0.14.0-alpha.1
468
+
469
+ ## 0.10.22-alpha.0
470
+
471
+ ### Patch Changes
472
+
473
+ - Updated dependencies [c30bca8]
474
+ - @mastra/core@0.13.3-alpha.0
475
+
476
+ ## 0.10.21
477
+
478
+ ### Patch Changes
479
+
480
+ - a239d41: Updated A2A syntax to v0.3.0
481
+ - 96169cc: Create handler that returns providers user has keys for in their env
482
+ - ce04175: Add update agent model handler
483
+ - Updated dependencies [d5330bf]
484
+ - Updated dependencies [2e74797]
8
485
  - Updated dependencies [8388649]
486
+ - Updated dependencies [a239d41]
9
487
  - Updated dependencies [dd94a26]
10
488
  - Updated dependencies [3ba6772]
489
+ - Updated dependencies [b5cf2a3]
11
490
  - Updated dependencies [2fff911]
491
+ - Updated dependencies [b32c50d]
492
+ - Updated dependencies [63449d0]
493
+ - Updated dependencies [121a3f8]
494
+ - Updated dependencies [ec510e7]
495
+ - @mastra/core@0.13.2
496
+
497
+ ## 0.10.21-alpha.3
498
+
499
+ ### Patch Changes
500
+
501
+ - Updated dependencies [b5cf2a3]
502
+ - @mastra/core@0.13.2-alpha.3
503
+
504
+ ## 0.10.21-alpha.2
505
+
506
+ ### Patch Changes
507
+
508
+ - a239d41: Updated A2A syntax to v0.3.0
509
+ - 96169cc: Create handler that returns providers user has keys for in their env
510
+ - ce04175: Add update agent model handler
511
+ - Updated dependencies [d5330bf]
512
+ - Updated dependencies [a239d41]
513
+ - Updated dependencies [b32c50d]
514
+ - Updated dependencies [121a3f8]
515
+ - Updated dependencies [ec510e7]
516
+ - @mastra/core@0.13.2-alpha.2
517
+
518
+ ## 0.10.21-alpha.1
519
+
520
+ ### Patch Changes
521
+
522
+ - Updated dependencies [2e74797]
12
523
  - Updated dependencies [63449d0]
13
- - @mastra/core@0.0.0-fix-message-list-args-missing-20250807205055
524
+ - @mastra/core@0.13.2-alpha.1
14
525
 
15
526
  ## 0.10.21-alpha.0
16
527
 
package/README.md CHANGED
@@ -53,8 +53,10 @@ const client = new MastraClient({
53
53
  - `getAgents()`: Get all available agents
54
54
  - `getAgent(agentId)`: Get a specific agent instance
55
55
  - `agent.details()`: Get agent details
56
- - `agent.generate(params)`: Generate a response
57
- - `agent.stream(params)`: Stream a response
56
+ - `agent.generate(params)`: Generate a response (deprecated)
57
+ - `agent.generateVNext(params)`: Improved API for generating a response
58
+ - `agent.stream(params)`: Stream a response (deprecated)
59
+ - `agent.streamVNext(params)`: Improved API for streaming a response
58
60
  - `agent.getTool(toolId)`: Get agent tool details
59
61
  - `agent.evals()`: Get agent evaluations
60
62
  - `agent.liveEvals()`: Get live evaluations
@@ -82,7 +84,7 @@ const client = new MastraClient({
82
84
  - `workflow.createRun()`: Create workflow run
83
85
  - `workflow.createRunAsync()`: Create workflow run (alias)
84
86
  - `workflow.startAsync(params)`: Execute the workflow and wait for execution results
85
- - `workflow.resumeAsync(parmas)`: Resume suspended workflow step async
87
+ - `workflow.resumeAsync(params)`: Resume suspended workflow step async
86
88
  - `workflow.watch({runId},(record)=>{})`: Watch the step transitions of the workflow run
87
89
  - `workflow.start({runId, triggerData})`: Start a workflow run sync
88
90
  - `workflow.resume(params)`: Resume the workflow run sync
package/dist/client.d.ts CHANGED
@@ -1,19 +1,17 @@
1
- import type { AbstractAgent } from '@ag-ui/client';
1
+ import type { AITraceRecord, AITracesPaginatedArg, WorkflowInfo } from '@mastra/core';
2
2
  import type { ServerDetailInfo } from '@mastra/core/mcp';
3
- import { Agent, MemoryThread, Tool, Workflow, Vector, BaseResource, Network, A2A, MCPTool, LegacyWorkflow } from './resources/index.js';
3
+ import { Agent, MemoryThread, Tool, Workflow, Vector, BaseResource, Network, A2A, MCPTool, LegacyWorkflow, AgentBuilder } from './resources/index.js';
4
4
  import { NetworkMemoryThread } from './resources/network-memory-thread.js';
5
5
  import { VNextNetwork } from './resources/vNextNetwork.js';
6
- import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, GetLogParams, GetLogsParams, GetLogsResponse, GetMemoryThreadParams, GetMemoryThreadResponse, GetNetworkResponse, GetTelemetryParams, GetTelemetryResponse, GetToolResponse, GetWorkflowResponse, SaveMessageToMemoryParams, SaveMessageToMemoryResponse, McpServerListResponse, McpServerToolListResponse, GetLegacyWorkflowResponse, GetVNextNetworkResponse, GetNetworkMemoryThreadParams, CreateNetworkMemoryThreadParams, SaveNetworkMessageToMemoryParams, GetScorerResponse, GetScoresByScorerIdParams, GetScoresResponse, GetScoresByRunIdParams, GetScoresByEntityIdParams, SaveScoreParams, SaveScoreResponse } from './types.js';
6
+ import type { ClientOptions, CreateMemoryThreadParams, CreateMemoryThreadResponse, GetAgentResponse, GetLogParams, GetLogsParams, GetLogsResponse, GetMemoryThreadParams, GetMemoryThreadResponse, GetNetworkResponse, GetTelemetryParams, GetTelemetryResponse, GetToolResponse, GetWorkflowResponse, SaveMessageToMemoryParams, SaveMessageToMemoryResponse, McpServerListResponse, McpServerToolListResponse, GetLegacyWorkflowResponse, GetVNextNetworkResponse, GetNetworkMemoryThreadParams, CreateNetworkMemoryThreadParams, SaveNetworkMessageToMemoryParams, GetScorerResponse, GetScoresByScorerIdParams, GetScoresResponse, GetScoresByRunIdParams, GetScoresByEntityIdParams, SaveScoreParams, SaveScoreResponse, GetAITracesResponse } from './types.js';
7
7
  export declare class MastraClient extends BaseResource {
8
+ private observability;
8
9
  constructor(options: ClientOptions);
9
10
  /**
10
11
  * Retrieves all available agents
11
12
  * @returns Promise containing map of agent IDs to agent details
12
13
  */
13
14
  getAgents(): Promise<Record<string, GetAgentResponse>>;
14
- getAGUI({ resourceId }: {
15
- resourceId: string;
16
- }): Promise<Record<string, AbstractAgent>>;
17
15
  /**
18
16
  * Gets an agent instance by ID
19
17
  * @param agentId - ID of the agent to retrieve
@@ -115,6 +113,16 @@ export declare class MastraClient extends BaseResource {
115
113
  * @returns Workflow instance
116
114
  */
117
115
  getWorkflow(workflowId: string): Workflow;
116
+ /**
117
+ * Gets all available agent builder actions
118
+ * @returns Promise containing map of action IDs to action details
119
+ */
120
+ getAgentBuilderActions(): Promise<Record<string, WorkflowInfo>>;
121
+ /**
122
+ * Gets an agent builder instance for executing agent-builder workflows
123
+ * @returns AgentBuilder instance
124
+ */
125
+ getAgentBuilderAction(actionId: string): AgentBuilder;
118
126
  /**
119
127
  * Gets a vector instance by name
120
128
  * @param vectorName - Name of the vector to retrieve
@@ -261,5 +269,12 @@ export declare class MastraClient extends BaseResource {
261
269
  * @returns Promise containing the saved score
262
270
  */
263
271
  saveScore(params: SaveScoreParams): Promise<SaveScoreResponse>;
272
+ /**
273
+ * Retrieves model providers with available keys
274
+ * @returns Promise containing model providers with available keys
275
+ */
276
+ getModelProviders(): Promise<string[]>;
277
+ getAITrace(traceId: string): Promise<AITraceRecord>;
278
+ getAITraces(params: AITracesPaginatedArg): Promise<GetAITracesResponse>;
264
279
  }
265
280
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EACL,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,OAAO,EACP,GAAG,EACH,OAAO,EACP,cAAc,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,EACf,qBAAqB,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