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