@mastra/client-js 0.0.0-vnext-inngest-20250508131921 → 0.0.0-vnextAgentNetwork-20250527102918
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 +206 -2
- package/dist/index.cjs +394 -102
- package/dist/index.d.cts +244 -77
- package/dist/index.d.ts +244 -77
- package/dist/index.js +390 -102
- package/package.json +6 -5
- package/src/adapters/agui.test.ts +19 -6
- package/src/adapters/agui.ts +31 -11
- package/src/client.ts +94 -19
- 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 -36
- package/src/resources/base.ts +1 -1
- package/src/resources/index.ts +4 -2
- 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 +197 -99
- package/src/types.ts +66 -17
- package/src/utils/index.ts +11 -0
- package/src/utils/zod-to-json-schema.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,220 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-vnextAgentNetwork-20250527102918
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5343f93: Move emitter to symbol to make private
|
|
8
|
+
- f622cfa: Make some properties of CreateMemoryThreadParams optional
|
|
9
|
+
- Updated dependencies [6d16390]
|
|
10
|
+
- Updated dependencies [1e4a421]
|
|
11
|
+
- Updated dependencies [200d0da]
|
|
12
|
+
- Updated dependencies [bf5f17b]
|
|
13
|
+
- Updated dependencies [5343f93]
|
|
14
|
+
- Updated dependencies [38aee50]
|
|
15
|
+
- Updated dependencies [5c41100]
|
|
16
|
+
- Updated dependencies [d6a759b]
|
|
17
|
+
- @mastra/core@0.0.0-vnextAgentNetwork-20250527102918
|
|
18
|
+
|
|
19
|
+
## 0.10.1-alpha.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- f622cfa: Make some properties of CreateMemoryThreadParams optional
|
|
24
|
+
- Updated dependencies [6d16390]
|
|
25
|
+
- Updated dependencies [1e4a421]
|
|
26
|
+
- @mastra/core@0.10.1-alpha.0
|
|
27
|
+
|
|
28
|
+
## 0.10.0
|
|
29
|
+
|
|
30
|
+
### Minor Changes
|
|
31
|
+
|
|
32
|
+
- 83da932: Move @mastra/core to peerdeps
|
|
33
|
+
- 5eb5a99: Remove pino from @mastra/core into @mastra/loggers
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- b3a3d63: BREAKING: Make vnext workflow the default worklow, and old workflow legacy_workflow
|
|
38
|
+
- 0215b0b: Add description to vnext workflow response
|
|
39
|
+
- f53a6ac: Add VNextWorkflowRuns type
|
|
40
|
+
- ccdabdc: Remove trailing / from mastraClient baseUrl
|
|
41
|
+
- a6e3881: Remove non serializable options from agent stream,generate
|
|
42
|
+
- fddae56: Add telemetry to cliend SDK streamParams
|
|
43
|
+
- 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.
|
|
44
|
+
- 5063646: Accept plain obects as runtimeContext
|
|
45
|
+
- 2672a05: Add MCP servers and tool call execution to playground
|
|
46
|
+
- Updated dependencies [b3a3d63]
|
|
47
|
+
- Updated dependencies [344f453]
|
|
48
|
+
- Updated dependencies [0a3ae6d]
|
|
49
|
+
- Updated dependencies [95911be]
|
|
50
|
+
- Updated dependencies [f53a6ac]
|
|
51
|
+
- Updated dependencies [5eb5a99]
|
|
52
|
+
- Updated dependencies [7e632c5]
|
|
53
|
+
- Updated dependencies [1e9fbfa]
|
|
54
|
+
- Updated dependencies [eabdcd9]
|
|
55
|
+
- Updated dependencies [90be034]
|
|
56
|
+
- Updated dependencies [99f050a]
|
|
57
|
+
- Updated dependencies [d0ee3c6]
|
|
58
|
+
- Updated dependencies [b2ae5aa]
|
|
59
|
+
- Updated dependencies [23f258c]
|
|
60
|
+
- Updated dependencies [a7292b0]
|
|
61
|
+
- Updated dependencies [0dcb9f0]
|
|
62
|
+
- Updated dependencies [2672a05]
|
|
63
|
+
- @mastra/core@0.10.0
|
|
64
|
+
|
|
65
|
+
## 0.2.0-alpha.1
|
|
66
|
+
|
|
67
|
+
### Minor Changes
|
|
68
|
+
|
|
69
|
+
- 83da932: Move @mastra/core to peerdeps
|
|
70
|
+
- 5eb5a99: Remove pino from @mastra/core into @mastra/loggers
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- b3a3d63: BREAKING: Make vnext workflow the default worklow, and old workflow legacy_workflow
|
|
75
|
+
- 0215b0b: Add description to vnext workflow response
|
|
76
|
+
- 5063646: Accept plain obects as runtimeContext
|
|
77
|
+
- Updated dependencies [b3a3d63]
|
|
78
|
+
- Updated dependencies [344f453]
|
|
79
|
+
- Updated dependencies [0a3ae6d]
|
|
80
|
+
- Updated dependencies [95911be]
|
|
81
|
+
- Updated dependencies [5eb5a99]
|
|
82
|
+
- Updated dependencies [7e632c5]
|
|
83
|
+
- Updated dependencies [1e9fbfa]
|
|
84
|
+
- Updated dependencies [b2ae5aa]
|
|
85
|
+
- Updated dependencies [a7292b0]
|
|
86
|
+
- Updated dependencies [0dcb9f0]
|
|
87
|
+
- @mastra/core@0.10.0-alpha.1
|
|
88
|
+
|
|
89
|
+
## 0.1.23-alpha.0
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
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
|
+
- 2672a05: Add MCP servers and tool call execution to playground
|
|
99
|
+
- Updated dependencies [f53a6ac]
|
|
100
|
+
- Updated dependencies [eabdcd9]
|
|
101
|
+
- Updated dependencies [90be034]
|
|
102
|
+
- Updated dependencies [99f050a]
|
|
103
|
+
- Updated dependencies [d0ee3c6]
|
|
104
|
+
- Updated dependencies [23f258c]
|
|
105
|
+
- Updated dependencies [2672a05]
|
|
106
|
+
- @mastra/core@0.9.5-alpha.0
|
|
107
|
+
|
|
108
|
+
## 0.1.22
|
|
109
|
+
|
|
110
|
+
### Patch Changes
|
|
111
|
+
|
|
112
|
+
- c2f9e60: Resolves type issue and listen response string wrapped in text object twice
|
|
113
|
+
- 5c70b8a: [MASTRA-3234] added limit for client-js getMessages
|
|
114
|
+
- b4c6c87: fix: Specify $refStrategy: 'none' when calling zodToJsonSchema.
|
|
115
|
+
- 0c3d117: Add workflows to agent server handlers
|
|
116
|
+
- a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
|
|
117
|
+
- c2b980b: Fix multiple too-calls in AGUI
|
|
118
|
+
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
119
|
+
- 0b8b868: Added A2A support + streaming
|
|
120
|
+
- Updated dependencies [396be50]
|
|
121
|
+
- Updated dependencies [ab80e7e]
|
|
122
|
+
- Updated dependencies [c3bd795]
|
|
123
|
+
- Updated dependencies [da082f8]
|
|
124
|
+
- Updated dependencies [a5810ce]
|
|
125
|
+
- Updated dependencies [3e9c131]
|
|
126
|
+
- Updated dependencies [3171b5b]
|
|
127
|
+
- Updated dependencies [973e5ac]
|
|
128
|
+
- Updated dependencies [daf942f]
|
|
129
|
+
- Updated dependencies [0b8b868]
|
|
130
|
+
- Updated dependencies [9e1eff5]
|
|
131
|
+
- Updated dependencies [6fa1ad1]
|
|
132
|
+
- Updated dependencies [c28d7a0]
|
|
133
|
+
- Updated dependencies [edf1e88]
|
|
134
|
+
- @mastra/core@0.9.4
|
|
135
|
+
|
|
136
|
+
## 0.1.22-alpha.4
|
|
137
|
+
|
|
138
|
+
### Patch Changes
|
|
139
|
+
|
|
140
|
+
- 5c70b8a: [MASTRA-3234] added limit for client-js getMessages
|
|
141
|
+
- Updated dependencies [3e9c131]
|
|
142
|
+
- @mastra/core@0.9.4-alpha.4
|
|
143
|
+
|
|
144
|
+
## 0.1.22-alpha.3
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- c2f9e60: Resolves type issue and listen response string wrapped in text object twice
|
|
149
|
+
- 0c3d117: Add workflows to agent server handlers
|
|
150
|
+
- a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
|
|
151
|
+
- Updated dependencies [396be50]
|
|
152
|
+
- Updated dependencies [c3bd795]
|
|
153
|
+
- Updated dependencies [da082f8]
|
|
154
|
+
- Updated dependencies [a5810ce]
|
|
155
|
+
- @mastra/core@0.9.4-alpha.3
|
|
156
|
+
|
|
157
|
+
## 0.1.22-alpha.2
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- b4c6c87: fix: Specify $refStrategy: 'none' when calling zodToJsonSchema.
|
|
162
|
+
- c2b980b: Fix multiple too-calls in AGUI
|
|
163
|
+
- Updated dependencies [3171b5b]
|
|
164
|
+
- Updated dependencies [973e5ac]
|
|
165
|
+
- Updated dependencies [9e1eff5]
|
|
166
|
+
- @mastra/core@0.9.4-alpha.2
|
|
167
|
+
|
|
168
|
+
## 0.1.22-alpha.1
|
|
169
|
+
|
|
170
|
+
### Patch Changes
|
|
171
|
+
|
|
172
|
+
- Updated dependencies [ab80e7e]
|
|
173
|
+
- Updated dependencies [6fa1ad1]
|
|
174
|
+
- Updated dependencies [c28d7a0]
|
|
175
|
+
- Updated dependencies [edf1e88]
|
|
176
|
+
- @mastra/core@0.9.4-alpha.1
|
|
177
|
+
|
|
178
|
+
## 0.1.22-alpha.0
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
183
|
+
- 0b8b868: Added A2A support + streaming
|
|
184
|
+
- Updated dependencies [daf942f]
|
|
185
|
+
- Updated dependencies [0b8b868]
|
|
186
|
+
- @mastra/core@0.9.4-alpha.0
|
|
187
|
+
|
|
188
|
+
## 0.1.21
|
|
4
189
|
|
|
5
190
|
### Patch Changes
|
|
6
191
|
|
|
7
192
|
- 526c570: expose agent runtimeContext from clientSDK
|
|
193
|
+
- 36eb1aa: Fix AGUI text part
|
|
194
|
+
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
195
|
+
- Updated dependencies [e450778]
|
|
196
|
+
- Updated dependencies [8902157]
|
|
197
|
+
- Updated dependencies [ca0dc88]
|
|
8
198
|
- Updated dependencies [526c570]
|
|
199
|
+
- Updated dependencies [d7a6a33]
|
|
9
200
|
- Updated dependencies [9cd1a46]
|
|
10
201
|
- Updated dependencies [b5d2de0]
|
|
11
202
|
- Updated dependencies [644f8ad]
|
|
12
203
|
- Updated dependencies [70dbf51]
|
|
13
|
-
- @mastra/core@0.
|
|
204
|
+
- @mastra/core@0.9.3
|
|
205
|
+
|
|
206
|
+
## 0.1.21-alpha.1
|
|
207
|
+
|
|
208
|
+
### Patch Changes
|
|
209
|
+
|
|
210
|
+
- 36eb1aa: Fix AGUI text part
|
|
211
|
+
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
212
|
+
- Updated dependencies [e450778]
|
|
213
|
+
- Updated dependencies [8902157]
|
|
214
|
+
- Updated dependencies [ca0dc88]
|
|
215
|
+
- Updated dependencies [9cd1a46]
|
|
216
|
+
- Updated dependencies [70dbf51]
|
|
217
|
+
- @mastra/core@0.9.3-alpha.1
|
|
14
218
|
|
|
15
219
|
## 0.1.21-alpha.0
|
|
16
220
|
|