@mastra/client-js 0.0.0-mcp-server-deploy-20250507160341 → 0.0.0-pass-headers-for-create-mastra-client-20250529190531
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/.turbo/turbo-build.log +19 -0
- package/CHANGELOG.md +317 -2
- package/dist/index.cjs +560 -112
- package/dist/index.d.cts +236 -96
- package/dist/index.d.ts +236 -96
- package/dist/index.js +556 -112
- package/package.json +9 -6
- package/src/adapters/agui.test.ts +180 -0
- package/src/adapters/agui.ts +239 -0
- package/src/client.ts +98 -30
- package/src/example.ts +29 -30
- package/src/index.test.ts +121 -1
- package/src/resources/a2a.ts +88 -0
- package/src/resources/agent.ts +27 -34
- package/src/resources/base.ts +1 -1
- package/src/resources/index.ts +4 -3
- package/src/resources/{vnext-workflow.ts → legacy-workflow.ts} +124 -139
- package/src/resources/mcp-tool.ts +48 -0
- package/src/resources/memory-thread.ts +13 -3
- package/src/resources/network.ts +5 -11
- package/src/resources/tool.ts +9 -2
- package/src/resources/workflow.ts +202 -100
- package/src/types.ts +65 -24
- package/src/utils/index.ts +11 -0
- package/src/utils/zod-to-json-schema.ts +10 -0
- package/src/resources/mcp.ts +0 -22
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
> @mastra/client-js@0.10.2-alpha.0 build /home/runner/work/mastra/mastra/client-sdks/client-js
|
|
3
|
+
> tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.4.0
|
|
8
|
+
[34mCLI[39m Target: es2022
|
|
9
|
+
[34mCLI[39m Cleaning output folder
|
|
10
|
+
[34mESM[39m Build start
|
|
11
|
+
[34mCJS[39m Build start
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m43.40 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 1507ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m43.69 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 1516ms
|
|
16
|
+
[34mDTS[39m Build start
|
|
17
|
+
[32mDTS[39m ⚡️ Build success in 17330ms
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m31.68 KB[39m
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m31.68 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,292 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-pass-headers-for-create-mastra-client-20250529190531
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- 592a2db: Added different icons for agents and workflows in mcp tools list
|
|
8
|
+
- Updated dependencies [ee77e78]
|
|
9
|
+
- Updated dependencies [592a2db]
|
|
10
|
+
- Updated dependencies [e5dc18d]
|
|
11
|
+
- @mastra/core@0.0.0-pass-headers-for-create-mastra-client-20250529190531
|
|
12
|
+
|
|
13
|
+
## 0.10.2-alpha.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 592a2db: Added different icons for agents and workflows in mcp tools list
|
|
18
|
+
- Updated dependencies [592a2db]
|
|
19
|
+
- Updated dependencies [e5dc18d]
|
|
20
|
+
- @mastra/core@0.10.2-alpha.0
|
|
21
|
+
|
|
22
|
+
## 0.10.1
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 267773e: Show map config on workflow graph
|
|
27
|
+
Highlight borders for conditions too on workflow graph
|
|
28
|
+
Fix watch stream
|
|
29
|
+
- 5343f93: Move emitter to symbol to make private
|
|
30
|
+
- f622cfa: Make some properties of CreateMemoryThreadParams optional
|
|
31
|
+
- 6015bdf: Leverage defaultAgentStreamOption, defaultAgentGenerateOption in playground
|
|
32
|
+
- Updated dependencies [d70b807]
|
|
33
|
+
- Updated dependencies [6d16390]
|
|
34
|
+
- Updated dependencies [1e4a421]
|
|
35
|
+
- Updated dependencies [200d0da]
|
|
36
|
+
- Updated dependencies [bf5f17b]
|
|
37
|
+
- Updated dependencies [5343f93]
|
|
38
|
+
- Updated dependencies [38aee50]
|
|
39
|
+
- Updated dependencies [5c41100]
|
|
40
|
+
- Updated dependencies [d6a759b]
|
|
41
|
+
- Updated dependencies [6015bdf]
|
|
42
|
+
- @mastra/core@0.10.1
|
|
43
|
+
|
|
44
|
+
## 0.10.1-alpha.3
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- 267773e: Show map config on workflow graph
|
|
49
|
+
Highlight borders for conditions too on workflow graph
|
|
50
|
+
Fix watch stream
|
|
51
|
+
|
|
52
|
+
## 0.10.1-alpha.2
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- 6015bdf: Leverage defaultAgentStreamOption, defaultAgentGenerateOption in playground
|
|
57
|
+
- Updated dependencies [6015bdf]
|
|
58
|
+
- @mastra/core@0.10.1-alpha.2
|
|
59
|
+
|
|
60
|
+
## 0.10.1-alpha.1
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- 5343f93: Move emitter to symbol to make private
|
|
65
|
+
- Updated dependencies [200d0da]
|
|
66
|
+
- Updated dependencies [bf5f17b]
|
|
67
|
+
- Updated dependencies [5343f93]
|
|
68
|
+
- Updated dependencies [38aee50]
|
|
69
|
+
- Updated dependencies [5c41100]
|
|
70
|
+
- Updated dependencies [d6a759b]
|
|
71
|
+
- @mastra/core@0.10.1-alpha.1
|
|
72
|
+
|
|
73
|
+
## 0.10.1-alpha.0
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- f622cfa: Make some properties of CreateMemoryThreadParams optional
|
|
78
|
+
- Updated dependencies [6d16390]
|
|
79
|
+
- Updated dependencies [1e4a421]
|
|
80
|
+
- @mastra/core@0.10.1-alpha.0
|
|
81
|
+
|
|
82
|
+
## 0.10.0
|
|
83
|
+
|
|
84
|
+
### Minor Changes
|
|
85
|
+
|
|
86
|
+
- 83da932: Move @mastra/core to peerdeps
|
|
87
|
+
- 5eb5a99: Remove pino from @mastra/core into @mastra/loggers
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- b3a3d63: BREAKING: Make vnext workflow the default worklow, and old workflow legacy_workflow
|
|
92
|
+
- 0215b0b: Add description to vnext workflow response
|
|
93
|
+
- f53a6ac: Add VNextWorkflowRuns type
|
|
94
|
+
- ccdabdc: Remove trailing / from mastraClient baseUrl
|
|
95
|
+
- a6e3881: Remove non serializable options from agent stream,generate
|
|
96
|
+
- fddae56: Add telemetry to cliend SDK streamParams
|
|
97
|
+
- 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.
|
|
98
|
+
- 5063646: Accept plain obects as runtimeContext
|
|
99
|
+
- 2672a05: Add MCP servers and tool call execution to playground
|
|
100
|
+
- Updated dependencies [b3a3d63]
|
|
101
|
+
- Updated dependencies [344f453]
|
|
102
|
+
- Updated dependencies [0a3ae6d]
|
|
103
|
+
- Updated dependencies [95911be]
|
|
104
|
+
- Updated dependencies [f53a6ac]
|
|
105
|
+
- Updated dependencies [5eb5a99]
|
|
106
|
+
- Updated dependencies [7e632c5]
|
|
107
|
+
- Updated dependencies [1e9fbfa]
|
|
108
|
+
- Updated dependencies [eabdcd9]
|
|
109
|
+
- Updated dependencies [90be034]
|
|
110
|
+
- Updated dependencies [99f050a]
|
|
111
|
+
- Updated dependencies [d0ee3c6]
|
|
112
|
+
- Updated dependencies [b2ae5aa]
|
|
113
|
+
- Updated dependencies [23f258c]
|
|
114
|
+
- Updated dependencies [a7292b0]
|
|
115
|
+
- Updated dependencies [0dcb9f0]
|
|
116
|
+
- Updated dependencies [2672a05]
|
|
117
|
+
- @mastra/core@0.10.0
|
|
118
|
+
|
|
119
|
+
## 0.2.0-alpha.1
|
|
120
|
+
|
|
121
|
+
### Minor Changes
|
|
122
|
+
|
|
123
|
+
- 83da932: Move @mastra/core to peerdeps
|
|
124
|
+
- 5eb5a99: Remove pino from @mastra/core into @mastra/loggers
|
|
125
|
+
|
|
126
|
+
### Patch Changes
|
|
127
|
+
|
|
128
|
+
- b3a3d63: BREAKING: Make vnext workflow the default worklow, and old workflow legacy_workflow
|
|
129
|
+
- 0215b0b: Add description to vnext workflow response
|
|
130
|
+
- 5063646: Accept plain obects as runtimeContext
|
|
131
|
+
- Updated dependencies [b3a3d63]
|
|
132
|
+
- Updated dependencies [344f453]
|
|
133
|
+
- Updated dependencies [0a3ae6d]
|
|
134
|
+
- Updated dependencies [95911be]
|
|
135
|
+
- Updated dependencies [5eb5a99]
|
|
136
|
+
- Updated dependencies [7e632c5]
|
|
137
|
+
- Updated dependencies [1e9fbfa]
|
|
138
|
+
- Updated dependencies [b2ae5aa]
|
|
139
|
+
- Updated dependencies [a7292b0]
|
|
140
|
+
- Updated dependencies [0dcb9f0]
|
|
141
|
+
- @mastra/core@0.10.0-alpha.1
|
|
142
|
+
|
|
143
|
+
## 0.1.23-alpha.0
|
|
144
|
+
|
|
145
|
+
### Patch Changes
|
|
146
|
+
|
|
147
|
+
- f53a6ac: Add VNextWorkflowRuns type
|
|
148
|
+
- ccdabdc: Remove trailing / from mastraClient baseUrl
|
|
149
|
+
- a6e3881: Remove non serializable options from agent stream,generate
|
|
150
|
+
- fddae56: Add telemetry to cliend SDK streamParams
|
|
151
|
+
- 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.
|
|
152
|
+
- 2672a05: Add MCP servers and tool call execution to playground
|
|
153
|
+
- Updated dependencies [f53a6ac]
|
|
154
|
+
- Updated dependencies [eabdcd9]
|
|
155
|
+
- Updated dependencies [90be034]
|
|
156
|
+
- Updated dependencies [99f050a]
|
|
157
|
+
- Updated dependencies [d0ee3c6]
|
|
158
|
+
- Updated dependencies [23f258c]
|
|
159
|
+
- Updated dependencies [2672a05]
|
|
160
|
+
- @mastra/core@0.9.5-alpha.0
|
|
161
|
+
|
|
162
|
+
## 0.1.22
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- c2f9e60: Resolves type issue and listen response string wrapped in text object twice
|
|
167
|
+
- 5c70b8a: [MASTRA-3234] added limit for client-js getMessages
|
|
168
|
+
- b4c6c87: fix: Specify $refStrategy: 'none' when calling zodToJsonSchema.
|
|
169
|
+
- 0c3d117: Add workflows to agent server handlers
|
|
170
|
+
- a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
|
|
171
|
+
- c2b980b: Fix multiple too-calls in AGUI
|
|
172
|
+
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
173
|
+
- 0b8b868: Added A2A support + streaming
|
|
174
|
+
- Updated dependencies [396be50]
|
|
175
|
+
- Updated dependencies [ab80e7e]
|
|
176
|
+
- Updated dependencies [c3bd795]
|
|
177
|
+
- Updated dependencies [da082f8]
|
|
178
|
+
- Updated dependencies [a5810ce]
|
|
179
|
+
- Updated dependencies [3e9c131]
|
|
180
|
+
- Updated dependencies [3171b5b]
|
|
181
|
+
- Updated dependencies [973e5ac]
|
|
182
|
+
- Updated dependencies [daf942f]
|
|
183
|
+
- Updated dependencies [0b8b868]
|
|
184
|
+
- Updated dependencies [9e1eff5]
|
|
185
|
+
- Updated dependencies [6fa1ad1]
|
|
186
|
+
- Updated dependencies [c28d7a0]
|
|
187
|
+
- Updated dependencies [edf1e88]
|
|
188
|
+
- @mastra/core@0.9.4
|
|
189
|
+
|
|
190
|
+
## 0.1.22-alpha.4
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- 5c70b8a: [MASTRA-3234] added limit for client-js getMessages
|
|
195
|
+
- Updated dependencies [3e9c131]
|
|
196
|
+
- @mastra/core@0.9.4-alpha.4
|
|
197
|
+
|
|
198
|
+
## 0.1.22-alpha.3
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- c2f9e60: Resolves type issue and listen response string wrapped in text object twice
|
|
203
|
+
- 0c3d117: Add workflows to agent server handlers
|
|
204
|
+
- a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
|
|
205
|
+
- Updated dependencies [396be50]
|
|
206
|
+
- Updated dependencies [c3bd795]
|
|
207
|
+
- Updated dependencies [da082f8]
|
|
208
|
+
- Updated dependencies [a5810ce]
|
|
209
|
+
- @mastra/core@0.9.4-alpha.3
|
|
210
|
+
|
|
211
|
+
## 0.1.22-alpha.2
|
|
212
|
+
|
|
213
|
+
### Patch Changes
|
|
214
|
+
|
|
215
|
+
- b4c6c87: fix: Specify $refStrategy: 'none' when calling zodToJsonSchema.
|
|
216
|
+
- c2b980b: Fix multiple too-calls in AGUI
|
|
217
|
+
- Updated dependencies [3171b5b]
|
|
218
|
+
- Updated dependencies [973e5ac]
|
|
219
|
+
- Updated dependencies [9e1eff5]
|
|
220
|
+
- @mastra/core@0.9.4-alpha.2
|
|
221
|
+
|
|
222
|
+
## 0.1.22-alpha.1
|
|
223
|
+
|
|
224
|
+
### Patch Changes
|
|
225
|
+
|
|
226
|
+
- Updated dependencies [ab80e7e]
|
|
227
|
+
- Updated dependencies [6fa1ad1]
|
|
228
|
+
- Updated dependencies [c28d7a0]
|
|
229
|
+
- Updated dependencies [edf1e88]
|
|
230
|
+
- @mastra/core@0.9.4-alpha.1
|
|
231
|
+
|
|
232
|
+
## 0.1.22-alpha.0
|
|
233
|
+
|
|
234
|
+
### Patch Changes
|
|
235
|
+
|
|
236
|
+
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
237
|
+
- 0b8b868: Added A2A support + streaming
|
|
238
|
+
- Updated dependencies [daf942f]
|
|
239
|
+
- Updated dependencies [0b8b868]
|
|
240
|
+
- @mastra/core@0.9.4-alpha.0
|
|
241
|
+
|
|
242
|
+
## 0.1.21
|
|
243
|
+
|
|
244
|
+
### Patch Changes
|
|
245
|
+
|
|
246
|
+
- 526c570: expose agent runtimeContext from clientSDK
|
|
247
|
+
- 36eb1aa: Fix AGUI text part
|
|
248
|
+
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
249
|
+
- Updated dependencies [e450778]
|
|
250
|
+
- Updated dependencies [8902157]
|
|
251
|
+
- Updated dependencies [ca0dc88]
|
|
252
|
+
- Updated dependencies [526c570]
|
|
253
|
+
- Updated dependencies [d7a6a33]
|
|
254
|
+
- Updated dependencies [9cd1a46]
|
|
255
|
+
- Updated dependencies [b5d2de0]
|
|
256
|
+
- Updated dependencies [644f8ad]
|
|
257
|
+
- Updated dependencies [70dbf51]
|
|
258
|
+
- @mastra/core@0.9.3
|
|
259
|
+
|
|
260
|
+
## 0.1.21-alpha.1
|
|
261
|
+
|
|
262
|
+
### Patch Changes
|
|
263
|
+
|
|
264
|
+
- 36eb1aa: Fix AGUI text part
|
|
265
|
+
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
266
|
+
- Updated dependencies [e450778]
|
|
267
|
+
- Updated dependencies [8902157]
|
|
268
|
+
- Updated dependencies [ca0dc88]
|
|
269
|
+
- Updated dependencies [9cd1a46]
|
|
270
|
+
- Updated dependencies [70dbf51]
|
|
271
|
+
- @mastra/core@0.9.3-alpha.1
|
|
272
|
+
|
|
273
|
+
## 0.1.21-alpha.0
|
|
274
|
+
|
|
275
|
+
### Patch Changes
|
|
276
|
+
|
|
277
|
+
- 526c570: expose agent runtimeContext from clientSDK
|
|
278
|
+
- Updated dependencies [526c570]
|
|
279
|
+
- Updated dependencies [b5d2de0]
|
|
280
|
+
- Updated dependencies [644f8ad]
|
|
281
|
+
- @mastra/core@0.9.3-alpha.0
|
|
282
|
+
|
|
283
|
+
## 0.1.20
|
|
284
|
+
|
|
285
|
+
### Patch Changes
|
|
286
|
+
|
|
287
|
+
- 2cf3b8f: dependencies updates:
|
|
288
|
+
- Updated dependency [`zod@^3.24.3` ↗︎](https://www.npmjs.com/package/zod/v/3.24.3) (from `^3.24.2`, in `dependencies`)
|
|
289
|
+
- 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`)
|
|
7
290
|
- 4155f47: Add parameters to filter workflow runs
|
|
8
291
|
Add fromDate and toDate to telemetry parameters
|
|
9
292
|
- 254f5c3: Audit, cleanup MastraClient
|
|
@@ -11,15 +294,47 @@
|
|
|
11
294
|
Return serializedStepGraph from vNext workflow
|
|
12
295
|
Use serializedStepGraph in vNext workflow graph
|
|
13
296
|
- 2429c74: Add get workflow runs api to client-js
|
|
297
|
+
- 2e4f8e9: Agui client integration
|
|
298
|
+
- Updated dependencies [6052aa6]
|
|
14
299
|
- Updated dependencies [967b41c]
|
|
300
|
+
- Updated dependencies [3d2fb5c]
|
|
15
301
|
- Updated dependencies [26738f4]
|
|
16
302
|
- Updated dependencies [4155f47]
|
|
303
|
+
- Updated dependencies [7eeb2bc]
|
|
17
304
|
- Updated dependencies [b804723]
|
|
305
|
+
- Updated dependencies [8607972]
|
|
18
306
|
- Updated dependencies [ccef9f9]
|
|
19
307
|
- Updated dependencies [0097d50]
|
|
308
|
+
- Updated dependencies [7eeb2bc]
|
|
20
309
|
- Updated dependencies [17826a9]
|
|
310
|
+
- Updated dependencies [7d8b7c7]
|
|
311
|
+
- Updated dependencies [fba031f]
|
|
312
|
+
- Updated dependencies [3a5f1e1]
|
|
21
313
|
- Updated dependencies [51e6923]
|
|
22
|
-
|
|
314
|
+
- Updated dependencies [8398d89]
|
|
315
|
+
- @mastra/core@0.9.2
|
|
316
|
+
|
|
317
|
+
## 0.1.20-alpha.6
|
|
318
|
+
|
|
319
|
+
### Patch Changes
|
|
320
|
+
|
|
321
|
+
- 2e4f8e9: Agui client integration
|
|
322
|
+
- Updated dependencies [6052aa6]
|
|
323
|
+
- Updated dependencies [7d8b7c7]
|
|
324
|
+
- Updated dependencies [3a5f1e1]
|
|
325
|
+
- Updated dependencies [8398d89]
|
|
326
|
+
- @mastra/core@0.9.2-alpha.6
|
|
327
|
+
|
|
328
|
+
## 0.1.20-alpha.5
|
|
329
|
+
|
|
330
|
+
### Patch Changes
|
|
331
|
+
|
|
332
|
+
- Updated dependencies [3d2fb5c]
|
|
333
|
+
- Updated dependencies [7eeb2bc]
|
|
334
|
+
- Updated dependencies [8607972]
|
|
335
|
+
- Updated dependencies [7eeb2bc]
|
|
336
|
+
- Updated dependencies [fba031f]
|
|
337
|
+
- @mastra/core@0.9.2-alpha.5
|
|
23
338
|
|
|
24
339
|
## 0.1.20-alpha.4
|
|
25
340
|
|