@mastra/client-js 0.0.0-fix-message-list-args-missing-20250807205055 → 0.0.0-fix-zod-to-json-schema-ref-strategy-20250910193441

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 +512 -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 +1235 -376
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.js +1237 -378
  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 +50 -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 +42 -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 +7 -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 -15
  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,525 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-fix-message-list-args-missing-20250807205055
3
+ ## 0.0.0-fix-zod-to-json-schema-ref-strategy-20250910193441
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [903dfec]
7
+ - Change SchemaCompat zodToJsonSchema ref strategy from none to relative, leading to less schema warnings and smaller converted schema sizes ([`194f0cf`](https://github.com/mastra-ai/mastra/commit/194f0cffbcaa0cfc9631a00f5450863038b8454b))
8
+
9
+ - 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)]:
10
+ - @mastra/core@0.0.0-fix-zod-to-json-schema-ref-strategy-20250910193441
11
+
12
+ ## 0.12.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [[`61926ef`](https://github.com/mastra-ai/mastra/commit/61926ef40d415b805a63527cffe27a50542e15e5)]:
17
+ - @mastra/core@0.16.2
18
+
19
+ ## 0.12.2-alpha.0
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`61926ef`](https://github.com/mastra-ai/mastra/commit/61926ef40d415b805a63527cffe27a50542e15e5)]:
24
+ - @mastra/core@0.16.2-alpha.0
25
+
26
+ ## 0.12.1
27
+
28
+ ### Patch Changes
29
+
30
+ - Allow streamVNext and generateVNext to use structuredOutputs from the MastraClient ([#7597](https://github.com/mastra-ai/mastra/pull/7597))
31
+
32
+ - Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
33
+
34
+ - Make agent streamVNext work with clientTools in client js ([#7577](https://github.com/mastra-ai/mastra/pull/7577))
35
+
36
+ - 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)]:
37
+ - @mastra/core@0.16.1
38
+
39
+ ## 0.12.1-alpha.3
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies [[`fd9bbfe`](https://github.com/mastra-ai/mastra/commit/fd9bbfee22484f8493582325f53e8171bf8e682b)]:
44
+ - @mastra/core@0.16.1-alpha.3
45
+
46
+ ## 0.12.1-alpha.2
47
+
48
+ ### Patch Changes
49
+
50
+ - 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)]:
51
+ - @mastra/core@0.16.1-alpha.2
52
+
53
+ ## 0.12.1-alpha.1
54
+
55
+ ### Patch Changes
56
+
57
+ - Allow streamVNext and generateVNext to use structuredOutputs from the MastraClient ([#7597](https://github.com/mastra-ai/mastra/pull/7597))
58
+
59
+ - Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
60
+
61
+ - Make agent streamVNext work with clientTools in client js ([#7577](https://github.com/mastra-ai/mastra/pull/7577))
62
+
63
+ - 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)]:
64
+ - @mastra/core@0.16.1-alpha.1
65
+
66
+ ## 0.12.1-alpha.0
67
+
68
+ ### Patch Changes
69
+
70
+ - 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)]:
71
+ - @mastra/core@0.16.1-alpha.0
72
+
73
+ ## 0.12.0
74
+
75
+ ### Minor Changes
76
+
77
+ - 6155cfc: Remove AGUI implementation from client-js
78
+
79
+ ### Patch Changes
80
+
81
+ - cf4e353: Agent Builder Template - adding in UI components to use agent builder template actions
82
+ - 5397eb4: Add public URL support when adding files in Multi Modal
83
+ - Updated dependencies [8fbf79e]
84
+ - Updated dependencies [fd83526]
85
+ - Updated dependencies [d0b90ab]
86
+ - Updated dependencies [6f5eb7a]
87
+ - Updated dependencies [a01cf14]
88
+ - Updated dependencies [a9e50ee]
89
+ - Updated dependencies [5397eb4]
90
+ - Updated dependencies [c9f4e4a]
91
+ - Updated dependencies [0acbc80]
92
+ - @mastra/core@0.16.0
93
+
94
+ ## 0.12.0-alpha.1
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [8fbf79e]
99
+ - @mastra/core@0.16.0-alpha.1
100
+
101
+ ## 0.12.0-alpha.0
102
+
103
+ ### Minor Changes
104
+
105
+ - 6155cfc: Remove AGUI implementation from client-js
106
+
107
+ ### Patch Changes
108
+
109
+ - cf4e353: Agent Builder Template - adding in UI components to use agent builder template actions
110
+ - 5397eb4: Add public URL support when adding files in Multi Modal
111
+ - Updated dependencies [fd83526]
112
+ - Updated dependencies [d0b90ab]
113
+ - Updated dependencies [6f5eb7a]
114
+ - Updated dependencies [a01cf14]
115
+ - Updated dependencies [a9e50ee]
116
+ - Updated dependencies [5397eb4]
117
+ - Updated dependencies [c9f4e4a]
118
+ - Updated dependencies [0acbc80]
119
+ - @mastra/core@0.16.0-alpha.0
120
+
121
+ ## 0.11.3
122
+
123
+ ### Patch Changes
124
+
125
+ - ab48c97: dependencies updates:
126
+ - 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`)
127
+ - ff89505: Add deprecation warnings and add legacy routes
128
+ - de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
129
+ - 26b0d7c: Cleanup pkg output
130
+ - 48f0742: add deployer, server and clientjs handlers for agent builder template
131
+ - 5de1555: Fixed tracingContext on tool executions in AI tracing
132
+ - Updated dependencies [ab48c97]
133
+ - Updated dependencies [85ef90b]
134
+ - Updated dependencies [aedbbfa]
135
+ - Updated dependencies [ff89505]
136
+ - Updated dependencies [637f323]
137
+ - Updated dependencies [de3cbc6]
138
+ - Updated dependencies [c19bcf7]
139
+ - Updated dependencies [4474d04]
140
+ - Updated dependencies [183dc95]
141
+ - Updated dependencies [a1111e2]
142
+ - Updated dependencies [b42a961]
143
+ - Updated dependencies [61debef]
144
+ - Updated dependencies [9beaeff]
145
+ - Updated dependencies [29de0e1]
146
+ - Updated dependencies [f643c65]
147
+ - Updated dependencies [00c74e7]
148
+ - Updated dependencies [fef7375]
149
+ - Updated dependencies [e3d8fea]
150
+ - Updated dependencies [45e4d39]
151
+ - Updated dependencies [9eee594]
152
+ - Updated dependencies [7149d8d]
153
+ - Updated dependencies [822c2e8]
154
+ - Updated dependencies [979912c]
155
+ - Updated dependencies [7dcf4c0]
156
+ - Updated dependencies [4106a58]
157
+ - Updated dependencies [ad78bfc]
158
+ - Updated dependencies [0302f50]
159
+ - Updated dependencies [6ac697e]
160
+ - Updated dependencies [74db265]
161
+ - Updated dependencies [0ce418a]
162
+ - Updated dependencies [af90672]
163
+ - Updated dependencies [8387952]
164
+ - Updated dependencies [7f3b8da]
165
+ - Updated dependencies [905352b]
166
+ - Updated dependencies [599d04c]
167
+ - Updated dependencies [56041d0]
168
+ - Updated dependencies [3412597]
169
+ - Updated dependencies [5eca5d2]
170
+ - Updated dependencies [f2cda47]
171
+ - Updated dependencies [5de1555]
172
+ - Updated dependencies [cfd377a]
173
+ - Updated dependencies [1ed5a3e]
174
+ - @mastra/core@0.15.3
175
+
176
+ ## 0.11.3-alpha.9
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies [[`599d04c`](https://github.com/mastra-ai/mastra/commit/599d04cebe92c1d536fee3190434941b8c91548e)]:
181
+ - @mastra/core@0.15.3-alpha.9
182
+
183
+ ## 0.11.3-alpha.8
184
+
185
+ ### Patch Changes
186
+
187
+ - Updated dependencies [[`4474d04`](https://github.com/mastra-ai/mastra/commit/4474d0489b1e152e0985c33a4f529207317d27b5), [`4106a58`](https://github.com/mastra-ai/mastra/commit/4106a58b15b4c0a060a4a9ccab52d119d00d8edb)]:
188
+ - @mastra/core@0.15.3-alpha.8
189
+
190
+ ## 0.11.3-alpha.7
191
+
192
+ ### Patch Changes
193
+
194
+ - Updated dependencies [[`7149d8d`](https://github.com/mastra-ai/mastra/commit/7149d8d4bdc1edf0008e0ca9b7925eb0b8b60dbe)]:
195
+ - @mastra/core@0.15.3-alpha.7
196
+
197
+ ## 0.11.3-alpha.6
198
+
199
+ ### Patch Changes
200
+
201
+ - 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)]:
202
+ - @mastra/core@0.15.3-alpha.6
203
+
204
+ ## 0.11.3-alpha.5
205
+
206
+ ### Patch Changes
207
+
208
+ - [#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`.
209
+
210
+ - Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
211
+ - @mastra/core@0.15.3-alpha.5
212
+
213
+ ## 0.11.3-alpha.4
214
+
215
+ ### Patch Changes
216
+
217
+ - [#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:
218
+ - 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`)
219
+
220
+ - [#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
221
+
222
+ - [#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
223
+
224
+ - [#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
225
+
226
+ - 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)]:
227
+ - @mastra/core@0.15.3-alpha.4
228
+
229
+ ## 0.11.3-alpha.3
230
+
231
+ ### Patch Changes
232
+
233
+ - 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)]:
234
+ - @mastra/core@0.15.3-alpha.3
235
+
236
+ ## 0.11.3-alpha.2
237
+
238
+ ### Patch Changes
239
+
240
+ - Updated dependencies [[`822c2e8`](https://github.com/mastra-ai/mastra/commit/822c2e88a3ecbffb7c680e6227976006ccefe6a8)]:
241
+ - @mastra/core@0.15.3-alpha.2
242
+
243
+ ## 0.11.3-alpha.1
244
+
245
+ ### Patch Changes
246
+
247
+ - 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)]:
248
+ - @mastra/core@0.15.3-alpha.1
249
+
250
+ ## 0.11.3-alpha.0
251
+
252
+ ### Patch Changes
253
+
254
+ - [#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
255
+
256
+ - 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)]:
257
+ - @mastra/core@0.15.3-alpha.0
258
+
259
+ ## 0.11.2
260
+
261
+ ### Patch Changes
262
+
263
+ - [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
264
+
265
+ - Updated dependencies []:
266
+ - @mastra/core@0.15.2
267
+
268
+ ## 0.11.1
269
+
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies []:
273
+ - @mastra/core@0.15.1
274
+
275
+ ## 0.11.0
276
+
277
+ ### Minor Changes
278
+
279
+ - [#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
280
+
281
+ - [#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
282
+
283
+ ### Patch Changes
284
+
285
+ - [#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
286
+
287
+ - [#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
288
+
289
+ - [#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
290
+
291
+ - [#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
292
+
293
+ - 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)]:
294
+ - @mastra/core@0.15.0
295
+
296
+ ## 0.11.0-alpha.4
297
+
298
+ ### Minor Changes
299
+
300
+ - [#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
301
+
302
+ ### Patch Changes
303
+
304
+ - Updated dependencies [[`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c)]:
305
+ - @mastra/core@0.15.0-alpha.4
306
+
307
+ ## 0.11.0-alpha.3
308
+
309
+ ### Patch Changes
310
+
311
+ - Updated dependencies []:
312
+ - @mastra/core@0.15.0-alpha.3
313
+
314
+ ## 0.11.0-alpha.2
315
+
316
+ ### Patch Changes
317
+
318
+ - Updated dependencies [[`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6)]:
319
+ - @mastra/core@0.14.2-alpha.2
320
+
321
+ ## 0.11.0-alpha.1
322
+
323
+ ### Minor Changes
324
+
325
+ - [#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
326
+
327
+ ### Patch Changes
328
+
329
+ - [#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
330
+
331
+ - [#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
332
+
333
+ - [#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
334
+
335
+ - 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)]:
336
+ - @mastra/core@0.14.2-alpha.1
337
+
338
+ ## 0.10.24-alpha.0
339
+
340
+ ### Patch Changes
341
+
342
+ - [#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
343
+
344
+ - 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)]:
345
+ - @mastra/core@0.14.2-alpha.0
346
+
347
+ ## 0.10.23
348
+
349
+ ### Patch Changes
350
+
351
+ - 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)]:
352
+ - @mastra/core@0.14.1
353
+
354
+ ## 0.10.23-alpha.1
355
+
356
+ ### Patch Changes
357
+
358
+ - Updated dependencies [[`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236)]:
359
+ - @mastra/core@0.14.1-alpha.1
360
+
361
+ ## 0.10.23-alpha.0
362
+
363
+ ### Patch Changes
364
+
365
+ - Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
366
+ - @mastra/core@0.14.1-alpha.0
367
+
368
+ ## 0.10.22
369
+
370
+ ### Patch Changes
371
+
372
+ - 0a7f675: Add VNext methods and `processMastraStream`
373
+ - 6313063: Implement model switcher in playground
374
+ - 1d59515: Add options to playground based on modelVersion
375
+ - Updated dependencies [227c7e6]
376
+ - Updated dependencies [12cae67]
377
+ - Updated dependencies [fd3a3eb]
378
+ - Updated dependencies [6faaee5]
379
+ - Updated dependencies [4232b14]
380
+ - Updated dependencies [a89de7e]
381
+ - Updated dependencies [5a37d0c]
382
+ - Updated dependencies [4bde0cb]
383
+ - Updated dependencies [cf4f357]
384
+ - Updated dependencies [ad888a2]
385
+ - Updated dependencies [481751d]
386
+ - Updated dependencies [2454423]
387
+ - Updated dependencies [194e395]
388
+ - Updated dependencies [a722c0b]
389
+ - Updated dependencies [c30bca8]
390
+ - Updated dependencies [3b5fec7]
391
+ - Updated dependencies [a8f129d]
392
+ - @mastra/core@0.14.0
393
+
394
+ ## 0.10.22-alpha.7
395
+
396
+ ### Patch Changes
397
+
398
+ - @mastra/core@0.14.0-alpha.7
399
+
400
+ ## 0.10.22-alpha.6
401
+
402
+ ### Patch Changes
403
+
404
+ - Updated dependencies [ad888a2]
405
+ - Updated dependencies [481751d]
406
+ - Updated dependencies [194e395]
407
+ - @mastra/core@0.14.0-alpha.6
408
+
409
+ ## 0.10.22-alpha.5
410
+
411
+ ### Patch Changes
412
+
413
+ - @mastra/core@0.14.0-alpha.5
414
+
415
+ ## 0.10.22-alpha.4
416
+
417
+ ### Patch Changes
418
+
419
+ - 0a7f675: Client JS vnext methods
420
+ - 1d59515: Add options to playground based on modelVersion
421
+ - 195eabb: Process Mastra Stream
422
+ - Updated dependencies [0a7f675]
423
+ - Updated dependencies [12cae67]
424
+ - Updated dependencies [5a37d0c]
425
+ - Updated dependencies [4bde0cb]
426
+ - Updated dependencies [1a80071]
427
+ - Updated dependencies [36a3be8]
428
+ - Updated dependencies [361757b]
429
+ - Updated dependencies [2bb9955]
430
+ - Updated dependencies [2454423]
431
+ - Updated dependencies [a44d91e]
432
+ - Updated dependencies [dfb91e9]
433
+ - Updated dependencies [a741dde]
434
+ - Updated dependencies [7cb3fc0]
435
+ - Updated dependencies [195eabb]
436
+ - Updated dependencies [b78b95b]
437
+ - @mastra/core@0.14.0-alpha.4
438
+
439
+ ## 0.10.22-alpha.3
440
+
441
+ ### Patch Changes
442
+
443
+ - Updated dependencies [227c7e6]
444
+ - Updated dependencies [fd3a3eb]
445
+ - Updated dependencies [a8f129d]
446
+ - @mastra/core@0.14.0-alpha.3
447
+
448
+ ## 0.10.22-alpha.2
449
+
450
+ ### Patch Changes
451
+
452
+ - @mastra/core@0.14.0-alpha.2
453
+
454
+ ## 0.10.22-alpha.1
455
+
456
+ ### Patch Changes
457
+
458
+ - 6313063: Implement model switcher in playground
459
+ - Updated dependencies [6faaee5]
460
+ - Updated dependencies [4232b14]
461
+ - Updated dependencies [a89de7e]
462
+ - Updated dependencies [cf4f357]
463
+ - Updated dependencies [a722c0b]
464
+ - Updated dependencies [3b5fec7]
465
+ - @mastra/core@0.14.0-alpha.1
466
+
467
+ ## 0.10.22-alpha.0
468
+
469
+ ### Patch Changes
470
+
471
+ - Updated dependencies [c30bca8]
472
+ - @mastra/core@0.13.3-alpha.0
473
+
474
+ ## 0.10.21
475
+
476
+ ### Patch Changes
477
+
478
+ - a239d41: Updated A2A syntax to v0.3.0
479
+ - 96169cc: Create handler that returns providers user has keys for in their env
480
+ - ce04175: Add update agent model handler
481
+ - Updated dependencies [d5330bf]
482
+ - Updated dependencies [2e74797]
8
483
  - Updated dependencies [8388649]
484
+ - Updated dependencies [a239d41]
9
485
  - Updated dependencies [dd94a26]
10
486
  - Updated dependencies [3ba6772]
487
+ - Updated dependencies [b5cf2a3]
11
488
  - Updated dependencies [2fff911]
489
+ - Updated dependencies [b32c50d]
490
+ - Updated dependencies [63449d0]
491
+ - Updated dependencies [121a3f8]
492
+ - Updated dependencies [ec510e7]
493
+ - @mastra/core@0.13.2
494
+
495
+ ## 0.10.21-alpha.3
496
+
497
+ ### Patch Changes
498
+
499
+ - Updated dependencies [b5cf2a3]
500
+ - @mastra/core@0.13.2-alpha.3
501
+
502
+ ## 0.10.21-alpha.2
503
+
504
+ ### Patch Changes
505
+
506
+ - a239d41: Updated A2A syntax to v0.3.0
507
+ - 96169cc: Create handler that returns providers user has keys for in their env
508
+ - ce04175: Add update agent model handler
509
+ - Updated dependencies [d5330bf]
510
+ - Updated dependencies [a239d41]
511
+ - Updated dependencies [b32c50d]
512
+ - Updated dependencies [121a3f8]
513
+ - Updated dependencies [ec510e7]
514
+ - @mastra/core@0.13.2-alpha.2
515
+
516
+ ## 0.10.21-alpha.1
517
+
518
+ ### Patch Changes
519
+
520
+ - Updated dependencies [2e74797]
12
521
  - Updated dependencies [63449d0]
13
- - @mastra/core@0.0.0-fix-message-list-args-missing-20250807205055
522
+ - @mastra/core@0.13.2-alpha.1
14
523
 
15
524
  ## 0.10.21-alpha.0
16
525
 
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,EACrB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,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