@mastra/client-js 0.0.0-switch-to-core-20250424015131 → 0.0.0-vector-query-sources-20250516172905
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.
- package/CHANGELOG.md +325 -2
- package/dist/index.cjs +661 -18
- package/dist/index.d.cts +305 -7
- package/dist/index.d.ts +305 -7
- package/dist/index.js +657 -18
- package/package.json +9 -7
- package/src/adapters/agui.test.ts +180 -0
- package/src/adapters/agui.ts +239 -0
- package/src/client.ts +123 -2
- package/src/example.ts +29 -30
- package/src/index.test.ts +125 -5
- package/src/resources/a2a.ts +88 -0
- package/src/resources/agent.ts +27 -36
- package/src/resources/base.ts +2 -2
- package/src/resources/index.ts +3 -0
- package/src/resources/mcp-tool.ts +48 -0
- package/src/resources/memory-thread.ts +13 -3
- package/src/resources/network.ts +6 -12
- package/src/resources/tool.ts +15 -3
- package/src/resources/vnext-workflow.ts +261 -0
- package/src/resources/workflow.ts +38 -2
- package/src/types.ts +86 -2
- package/src/utils/zod-to-json-schema.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,338 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-vector-query-sources-20250516172905
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- f53a6ac: Add VNextWorkflowRuns type
|
|
8
|
+
- ccdabdc: Remove trailing / from mastraClient baseUrl
|
|
9
|
+
- a6e3881: Remove non serializable options from agent stream,generate
|
|
10
|
+
- fddae56: Add telemetry to cliend SDK streamParams
|
|
11
|
+
- 23f258c: Add new list and get routes for mcp servers. Changed route make-up for more consistency with existing API routes. Lastly, added in a lot of extra detail that can be optionally passed to the mcp server per the mcp spec.
|
|
12
|
+
- 2672a05: Add MCP servers and tool call execution to playground
|
|
13
|
+
- Updated dependencies [f53a6ac]
|
|
14
|
+
- Updated dependencies [eabdcd9]
|
|
15
|
+
- Updated dependencies [d0ee3c6]
|
|
16
|
+
- Updated dependencies [23f258c]
|
|
17
|
+
- Updated dependencies [2672a05]
|
|
18
|
+
- @mastra/core@0.0.0-vector-query-sources-20250516172905
|
|
19
|
+
|
|
20
|
+
## 0.1.22
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- c2f9e60: Resolves type issue and listen response string wrapped in text object twice
|
|
25
|
+
- 5c70b8a: [MASTRA-3234] added limit for client-js getMessages
|
|
26
|
+
- b4c6c87: fix: Specify $refStrategy: 'none' when calling zodToJsonSchema.
|
|
27
|
+
- 0c3d117: Add workflows to agent server handlers
|
|
28
|
+
- a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
|
|
29
|
+
- c2b980b: Fix multiple too-calls in AGUI
|
|
30
|
+
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
31
|
+
- 0b8b868: Added A2A support + streaming
|
|
32
|
+
- Updated dependencies [396be50]
|
|
33
|
+
- Updated dependencies [ab80e7e]
|
|
34
|
+
- Updated dependencies [c3bd795]
|
|
35
|
+
- Updated dependencies [da082f8]
|
|
36
|
+
- Updated dependencies [a5810ce]
|
|
37
|
+
- Updated dependencies [3e9c131]
|
|
38
|
+
- Updated dependencies [3171b5b]
|
|
39
|
+
- Updated dependencies [973e5ac]
|
|
40
|
+
- Updated dependencies [daf942f]
|
|
41
|
+
- Updated dependencies [0b8b868]
|
|
42
|
+
- Updated dependencies [9e1eff5]
|
|
43
|
+
- Updated dependencies [6fa1ad1]
|
|
44
|
+
- Updated dependencies [c28d7a0]
|
|
45
|
+
- Updated dependencies [edf1e88]
|
|
46
|
+
- @mastra/core@0.9.4
|
|
47
|
+
|
|
48
|
+
## 0.1.22-alpha.4
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- 5c70b8a: [MASTRA-3234] added limit for client-js getMessages
|
|
53
|
+
- Updated dependencies [3e9c131]
|
|
54
|
+
- @mastra/core@0.9.4-alpha.4
|
|
55
|
+
|
|
56
|
+
## 0.1.22-alpha.3
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- c2f9e60: Resolves type issue and listen response string wrapped in text object twice
|
|
61
|
+
- 0c3d117: Add workflows to agent server handlers
|
|
62
|
+
- a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
|
|
63
|
+
- Updated dependencies [396be50]
|
|
64
|
+
- Updated dependencies [c3bd795]
|
|
65
|
+
- Updated dependencies [da082f8]
|
|
66
|
+
- Updated dependencies [a5810ce]
|
|
67
|
+
- @mastra/core@0.9.4-alpha.3
|
|
68
|
+
|
|
69
|
+
## 0.1.22-alpha.2
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- b4c6c87: fix: Specify $refStrategy: 'none' when calling zodToJsonSchema.
|
|
74
|
+
- c2b980b: Fix multiple too-calls in AGUI
|
|
75
|
+
- Updated dependencies [3171b5b]
|
|
76
|
+
- Updated dependencies [973e5ac]
|
|
77
|
+
- Updated dependencies [9e1eff5]
|
|
78
|
+
- @mastra/core@0.9.4-alpha.2
|
|
79
|
+
|
|
80
|
+
## 0.1.22-alpha.1
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- Updated dependencies [ab80e7e]
|
|
85
|
+
- Updated dependencies [6fa1ad1]
|
|
86
|
+
- Updated dependencies [c28d7a0]
|
|
87
|
+
- Updated dependencies [edf1e88]
|
|
88
|
+
- @mastra/core@0.9.4-alpha.1
|
|
89
|
+
|
|
90
|
+
## 0.1.22-alpha.0
|
|
91
|
+
|
|
92
|
+
### Patch Changes
|
|
93
|
+
|
|
94
|
+
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
95
|
+
- 0b8b868: Added A2A support + streaming
|
|
96
|
+
- Updated dependencies [daf942f]
|
|
97
|
+
- Updated dependencies [0b8b868]
|
|
98
|
+
- @mastra/core@0.9.4-alpha.0
|
|
99
|
+
|
|
100
|
+
## 0.1.21
|
|
101
|
+
|
|
102
|
+
### Patch Changes
|
|
103
|
+
|
|
104
|
+
- 526c570: expose agent runtimeContext from clientSDK
|
|
105
|
+
- 36eb1aa: Fix AGUI text part
|
|
106
|
+
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
107
|
+
- Updated dependencies [e450778]
|
|
108
|
+
- Updated dependencies [8902157]
|
|
109
|
+
- Updated dependencies [ca0dc88]
|
|
110
|
+
- Updated dependencies [526c570]
|
|
111
|
+
- Updated dependencies [d7a6a33]
|
|
112
|
+
- Updated dependencies [9cd1a46]
|
|
113
|
+
- Updated dependencies [b5d2de0]
|
|
114
|
+
- Updated dependencies [644f8ad]
|
|
115
|
+
- Updated dependencies [70dbf51]
|
|
116
|
+
- @mastra/core@0.9.3
|
|
117
|
+
|
|
118
|
+
## 0.1.21-alpha.1
|
|
119
|
+
|
|
120
|
+
### Patch Changes
|
|
121
|
+
|
|
122
|
+
- 36eb1aa: Fix AGUI text part
|
|
123
|
+
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
124
|
+
- Updated dependencies [e450778]
|
|
125
|
+
- Updated dependencies [8902157]
|
|
126
|
+
- Updated dependencies [ca0dc88]
|
|
127
|
+
- Updated dependencies [9cd1a46]
|
|
128
|
+
- Updated dependencies [70dbf51]
|
|
129
|
+
- @mastra/core@0.9.3-alpha.1
|
|
130
|
+
|
|
131
|
+
## 0.1.21-alpha.0
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- 526c570: expose agent runtimeContext from clientSDK
|
|
136
|
+
- Updated dependencies [526c570]
|
|
137
|
+
- Updated dependencies [b5d2de0]
|
|
138
|
+
- Updated dependencies [644f8ad]
|
|
139
|
+
- @mastra/core@0.9.3-alpha.0
|
|
140
|
+
|
|
141
|
+
## 0.1.20
|
|
142
|
+
|
|
143
|
+
### Patch Changes
|
|
144
|
+
|
|
145
|
+
- 2cf3b8f: dependencies updates:
|
|
146
|
+
- Updated dependency [`zod@^3.24.3` ↗︎](https://www.npmjs.com/package/zod/v/3.24.3) (from `^3.24.2`, in `dependencies`)
|
|
147
|
+
- Updated dependency [`zod-to-json-schema@^3.24.5` ↗︎](https://www.npmjs.com/package/zod-to-json-schema/v/3.24.5) (from `^3.24.3`, in `dependencies`)
|
|
148
|
+
- 4155f47: Add parameters to filter workflow runs
|
|
149
|
+
Add fromDate and toDate to telemetry parameters
|
|
150
|
+
- 254f5c3: Audit, cleanup MastraClient
|
|
151
|
+
- 0097d50: Add serializedStepGraph to vNext workflow
|
|
152
|
+
Return serializedStepGraph from vNext workflow
|
|
153
|
+
Use serializedStepGraph in vNext workflow graph
|
|
154
|
+
- 2429c74: Add get workflow runs api to client-js
|
|
155
|
+
- 2e4f8e9: Agui client integration
|
|
156
|
+
- Updated dependencies [6052aa6]
|
|
157
|
+
- Updated dependencies [967b41c]
|
|
158
|
+
- Updated dependencies [3d2fb5c]
|
|
159
|
+
- Updated dependencies [26738f4]
|
|
160
|
+
- Updated dependencies [4155f47]
|
|
161
|
+
- Updated dependencies [7eeb2bc]
|
|
162
|
+
- Updated dependencies [b804723]
|
|
163
|
+
- Updated dependencies [8607972]
|
|
164
|
+
- Updated dependencies [ccef9f9]
|
|
165
|
+
- Updated dependencies [0097d50]
|
|
166
|
+
- Updated dependencies [7eeb2bc]
|
|
167
|
+
- Updated dependencies [17826a9]
|
|
168
|
+
- Updated dependencies [7d8b7c7]
|
|
169
|
+
- Updated dependencies [fba031f]
|
|
170
|
+
- Updated dependencies [3a5f1e1]
|
|
171
|
+
- Updated dependencies [51e6923]
|
|
172
|
+
- Updated dependencies [8398d89]
|
|
173
|
+
- @mastra/core@0.9.2
|
|
174
|
+
|
|
175
|
+
## 0.1.20-alpha.6
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- 2e4f8e9: Agui client integration
|
|
180
|
+
- Updated dependencies [6052aa6]
|
|
181
|
+
- Updated dependencies [7d8b7c7]
|
|
182
|
+
- Updated dependencies [3a5f1e1]
|
|
183
|
+
- Updated dependencies [8398d89]
|
|
184
|
+
- @mastra/core@0.9.2-alpha.6
|
|
185
|
+
|
|
186
|
+
## 0.1.20-alpha.5
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- Updated dependencies [3d2fb5c]
|
|
191
|
+
- Updated dependencies [7eeb2bc]
|
|
192
|
+
- Updated dependencies [8607972]
|
|
193
|
+
- Updated dependencies [7eeb2bc]
|
|
194
|
+
- Updated dependencies [fba031f]
|
|
195
|
+
- @mastra/core@0.9.2-alpha.5
|
|
196
|
+
|
|
197
|
+
## 0.1.20-alpha.4
|
|
198
|
+
|
|
199
|
+
### Patch Changes
|
|
200
|
+
|
|
201
|
+
- Updated dependencies [ccef9f9]
|
|
202
|
+
- Updated dependencies [51e6923]
|
|
203
|
+
- @mastra/core@0.9.2-alpha.4
|
|
204
|
+
|
|
205
|
+
## 0.1.20-alpha.3
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- 4155f47: Add parameters to filter workflow runs
|
|
210
|
+
Add fromDate and toDate to telemetry parameters
|
|
211
|
+
- Updated dependencies [967b41c]
|
|
212
|
+
- Updated dependencies [4155f47]
|
|
213
|
+
- Updated dependencies [17826a9]
|
|
214
|
+
- @mastra/core@0.9.2-alpha.3
|
|
215
|
+
|
|
216
|
+
## 0.1.20-alpha.2
|
|
217
|
+
|
|
218
|
+
### Patch Changes
|
|
219
|
+
|
|
220
|
+
- Updated dependencies [26738f4]
|
|
221
|
+
- @mastra/core@0.9.2-alpha.2
|
|
222
|
+
|
|
223
|
+
## 0.1.20-alpha.1
|
|
224
|
+
|
|
225
|
+
### Patch Changes
|
|
226
|
+
|
|
227
|
+
- 254f5c3: Audit, cleanup MastraClient
|
|
228
|
+
- 2429c74: Add get workflow runs api to client-js
|
|
229
|
+
- Updated dependencies [b804723]
|
|
230
|
+
- @mastra/core@0.9.2-alpha.1
|
|
231
|
+
|
|
232
|
+
## 0.1.20-alpha.0
|
|
233
|
+
|
|
234
|
+
### Patch Changes
|
|
235
|
+
|
|
236
|
+
- 0097d50: Add serializedStepGraph to vNext workflow
|
|
237
|
+
Return serializedStepGraph from vNext workflow
|
|
238
|
+
Use serializedStepGraph in vNext workflow graph
|
|
239
|
+
- Updated dependencies [0097d50]
|
|
240
|
+
- @mastra/core@0.9.2-alpha.0
|
|
241
|
+
|
|
242
|
+
## 0.1.19
|
|
243
|
+
|
|
244
|
+
### Patch Changes
|
|
245
|
+
|
|
246
|
+
- b50b9b7: Add vNext workflow to client-js
|
|
247
|
+
- 11d4485: Show VNext workflows on the playground
|
|
248
|
+
Show running status for step in vNext workflowState
|
|
249
|
+
- Updated dependencies [405b63d]
|
|
7
250
|
- Updated dependencies [81fb7f6]
|
|
251
|
+
- Updated dependencies [20275d4]
|
|
252
|
+
- Updated dependencies [7d1892c]
|
|
253
|
+
- Updated dependencies [a90a082]
|
|
254
|
+
- Updated dependencies [2d17c73]
|
|
255
|
+
- Updated dependencies [61e92f5]
|
|
256
|
+
- Updated dependencies [35955b0]
|
|
257
|
+
- Updated dependencies [6262bd5]
|
|
258
|
+
- Updated dependencies [c1409ef]
|
|
259
|
+
- Updated dependencies [3e7b69d]
|
|
260
|
+
- Updated dependencies [e4943b8]
|
|
261
|
+
- Updated dependencies [11d4485]
|
|
262
|
+
- Updated dependencies [479f490]
|
|
263
|
+
- Updated dependencies [c23a81c]
|
|
264
|
+
- Updated dependencies [2d4001d]
|
|
265
|
+
- Updated dependencies [c71013a]
|
|
266
|
+
- Updated dependencies [1d3b1cd]
|
|
267
|
+
- @mastra/core@0.9.1
|
|
268
|
+
|
|
269
|
+
## 0.1.19-alpha.8
|
|
270
|
+
|
|
271
|
+
### Patch Changes
|
|
272
|
+
|
|
273
|
+
- Updated dependencies [2d17c73]
|
|
274
|
+
- @mastra/core@0.9.1-alpha.8
|
|
275
|
+
|
|
276
|
+
## 0.1.19-alpha.7
|
|
277
|
+
|
|
278
|
+
### Patch Changes
|
|
279
|
+
|
|
280
|
+
- Updated dependencies [1d3b1cd]
|
|
281
|
+
- @mastra/core@0.9.1-alpha.7
|
|
282
|
+
|
|
283
|
+
## 0.1.19-alpha.6
|
|
284
|
+
|
|
285
|
+
### Patch Changes
|
|
286
|
+
|
|
287
|
+
- Updated dependencies [c23a81c]
|
|
288
|
+
- @mastra/core@0.9.1-alpha.6
|
|
289
|
+
|
|
290
|
+
## 0.1.19-alpha.5
|
|
291
|
+
|
|
292
|
+
### Patch Changes
|
|
293
|
+
|
|
294
|
+
- Updated dependencies [3e7b69d]
|
|
295
|
+
- @mastra/core@0.9.1-alpha.5
|
|
296
|
+
|
|
297
|
+
## 0.1.19-alpha.4
|
|
298
|
+
|
|
299
|
+
### Patch Changes
|
|
300
|
+
|
|
301
|
+
- Updated dependencies [e4943b8]
|
|
302
|
+
- Updated dependencies [479f490]
|
|
303
|
+
- @mastra/core@0.9.1-alpha.4
|
|
304
|
+
|
|
305
|
+
## 0.1.19-alpha.3
|
|
306
|
+
|
|
307
|
+
### Patch Changes
|
|
308
|
+
|
|
309
|
+
- Updated dependencies [6262bd5]
|
|
310
|
+
- @mastra/core@0.9.1-alpha.3
|
|
311
|
+
|
|
312
|
+
## 0.1.19-alpha.2
|
|
313
|
+
|
|
314
|
+
### Patch Changes
|
|
315
|
+
|
|
316
|
+
- Updated dependencies [405b63d]
|
|
317
|
+
- Updated dependencies [61e92f5]
|
|
318
|
+
- Updated dependencies [c71013a]
|
|
319
|
+
- @mastra/core@0.9.1-alpha.2
|
|
320
|
+
|
|
321
|
+
## 0.1.19-alpha.1
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- b50b9b7: Add vNext workflow to client-js
|
|
326
|
+
- 11d4485: Show VNext workflows on the playground
|
|
327
|
+
Show running status for step in vNext workflowState
|
|
328
|
+
- Updated dependencies [20275d4]
|
|
8
329
|
- Updated dependencies [7d1892c]
|
|
9
330
|
- Updated dependencies [a90a082]
|
|
10
331
|
- Updated dependencies [35955b0]
|
|
332
|
+
- Updated dependencies [c1409ef]
|
|
333
|
+
- Updated dependencies [11d4485]
|
|
11
334
|
- Updated dependencies [2d4001d]
|
|
12
|
-
- @mastra/core@0.
|
|
335
|
+
- @mastra/core@0.9.1-alpha.1
|
|
13
336
|
|
|
14
337
|
## 0.1.19-alpha.0
|
|
15
338
|
|