@mastra/client-js 0.0.0-ai-v5-20250710191716 → 0.0.0-ai-v5-20250729012312

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @mastra/client-js@0.10.11 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.10.17-alpha.1 build /home/runner/work/mastra/mastra/client-sdks/client-js
3
3
  > tsup src/index.ts --format esm,cjs --dts --clean --treeshake=smallest --splitting
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,11 +9,11 @@
9
9
  CLI Cleaning output folder
10
10
  ESM Build start
11
11
  CJS Build start
12
- ESM dist/index.js 69.76 KB
13
- ESM ⚡️ Build success in 2133ms
14
- CJS dist/index.cjs 70.04 KB
15
- CJS ⚡️ Build success in 2147ms
12
+ CJS dist/index.cjs 75.34 KB
13
+ CJS ⚡️ Build success in 2299ms
14
+ ESM dist/index.js 75.03 KB
15
+ ESM ⚡️ Build success in 2304ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 18199ms
18
- DTS dist/index.d.ts 40.88 KB
19
- DTS dist/index.d.cts 40.88 KB
17
+ DTS ⚡️ Build success in 19159ms
18
+ DTS dist/index.d.ts 47.09 KB
19
+ DTS dist/index.d.cts 47.09 KB
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-ai-v5-20250710191716
3
+ ## 0.0.0-ai-v5-20250729012312
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,9 +8,223 @@
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - Updated dependencies [5237998]
11
+ - aa2715b: process stream response error handling
12
+ - 2ab3115: Should not send content type if body instance of FormData
13
+ - 0f24e20: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
14
+ - e25ab3b: fix: save score params
15
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
16
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
17
+ - Single message ID as string: `deleteMessages('msg-123')`
18
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
19
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
20
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
21
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
22
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
23
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
24
+ - Updates thread timestamps when messages are deleted
25
+ - Added comprehensive test coverage and documentation
26
+
27
+ - Updated dependencies [f96993c]
28
+ - Updated dependencies [6725b7b]
29
+ - Updated dependencies [5fc97af]
30
+ - Updated dependencies [39fcf57]
31
+ - Updated dependencies [6ab4a1c]
32
+ - Updated dependencies [41daa63]
33
+ - Updated dependencies [254a36b]
34
+ - Updated dependencies [67c55d0]
35
+ - Updated dependencies [731c220]
36
+ - Updated dependencies [c37d890]
37
+ - Updated dependencies [041d2de]
38
+ - Updated dependencies [4de4737]
39
+ - Updated dependencies [679c163]
40
+ - Updated dependencies [0f24e20]
41
+ - Updated dependencies [4cece2f]
42
+ - Updated dependencies [ff9c125]
12
43
  - Updated dependencies [66858d4]
13
- - @mastra/core@0.0.0-ai-v5-20250710191716
44
+ - Updated dependencies [19bc92c]
45
+ - Updated dependencies [b8efbb9]
46
+ - Updated dependencies [0c99fbe]
47
+ - @mastra/core@0.0.0-ai-v5-20250729012312
48
+
49
+ ## 0.10.17-alpha.1
50
+
51
+ ### Patch Changes
52
+
53
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
54
+ - Updated dependencies [e0f73c6]
55
+ - Updated dependencies [cda801d]
56
+ - Updated dependencies [a77c823]
57
+ - @mastra/core@0.12.0-alpha.1
58
+
59
+ ## 0.10.17-alpha.0
60
+
61
+ ### Patch Changes
62
+
63
+ - 6bd354c: Should not send content type if body instance of FormData
64
+ - b641ba3: fix: save score params
65
+ - Updated dependencies [510e2c8]
66
+ - Updated dependencies [2f72fb2]
67
+ - Updated dependencies [3f89307]
68
+ - Updated dependencies [9eda7d4]
69
+ - Updated dependencies [9d49408]
70
+ - Updated dependencies [2ecf658]
71
+ - Updated dependencies [7a7754f]
72
+ - Updated dependencies [fc92d80]
73
+ - Updated dependencies [23a6a7c]
74
+ - Updated dependencies [09bca64]
75
+ - @mastra/core@0.12.0-alpha.0
76
+
77
+ ## 0.10.16
78
+
79
+ ### Patch Changes
80
+
81
+ - @mastra/core@0.11.1
82
+
83
+ ## 0.10.15
84
+
85
+ ### Patch Changes
86
+
87
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
88
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
89
+ - 2affc57: Fix output type of network loop
90
+ - 032cb66: ClientJS
91
+ - 7827943: Handle streaming large data
92
+ - 65e3395: Add Scores playground-ui and add scorer hooks
93
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
94
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
95
+ - Updated dependencies [f248d53]
96
+ - Updated dependencies [2affc57]
97
+ - Updated dependencies [66e13e3]
98
+ - Updated dependencies [edd9482]
99
+ - Updated dependencies [18344d7]
100
+ - Updated dependencies [9d372c2]
101
+ - Updated dependencies [40c2525]
102
+ - Updated dependencies [e473f27]
103
+ - Updated dependencies [032cb66]
104
+ - Updated dependencies [703ac71]
105
+ - Updated dependencies [a723d69]
106
+ - Updated dependencies [7827943]
107
+ - Updated dependencies [5889a31]
108
+ - Updated dependencies [bf1e7e7]
109
+ - Updated dependencies [65e3395]
110
+ - Updated dependencies [4933192]
111
+ - Updated dependencies [d1c77a4]
112
+ - Updated dependencies [bea9dd1]
113
+ - Updated dependencies [dcd4802]
114
+ - Updated dependencies [cbddd18]
115
+ - Updated dependencies [7ba91fa]
116
+ - @mastra/core@0.11.0
117
+
118
+ ## 0.10.15-alpha.3
119
+
120
+ ### Patch Changes
121
+
122
+ - @mastra/core@0.11.0-alpha.3
123
+
124
+ ## 0.10.15-alpha.2
125
+
126
+ ### Patch Changes
127
+
128
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
129
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
130
+ - 2affc57: Fix output type of network loop
131
+ - 032cb66: ClientJS
132
+ - 65e3395: Add Scores playground-ui and add scorer hooks
133
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
134
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
135
+ - Updated dependencies [f248d53]
136
+ - Updated dependencies [2affc57]
137
+ - Updated dependencies [66e13e3]
138
+ - Updated dependencies [edd9482]
139
+ - Updated dependencies [18344d7]
140
+ - Updated dependencies [9d372c2]
141
+ - Updated dependencies [40c2525]
142
+ - Updated dependencies [e473f27]
143
+ - Updated dependencies [032cb66]
144
+ - Updated dependencies [703ac71]
145
+ - Updated dependencies [a723d69]
146
+ - Updated dependencies [5889a31]
147
+ - Updated dependencies [65e3395]
148
+ - Updated dependencies [4933192]
149
+ - Updated dependencies [d1c77a4]
150
+ - Updated dependencies [bea9dd1]
151
+ - Updated dependencies [dcd4802]
152
+ - Updated dependencies [7ba91fa]
153
+ - @mastra/core@0.11.0-alpha.2
154
+
155
+ ## 0.10.15-alpha.1
156
+
157
+ ### Patch Changes
158
+
159
+ - @mastra/core@0.11.0-alpha.1
160
+
161
+ ## 0.10.15-alpha.0
162
+
163
+ ### Patch Changes
164
+
165
+ - 7827943: Handle streaming large data
166
+ - Updated dependencies [7827943]
167
+ - Updated dependencies [bf1e7e7]
168
+ - Updated dependencies [cbddd18]
169
+ - @mastra/core@0.11.0-alpha.0
170
+
171
+ ## 0.10.14
172
+
173
+ ### Patch Changes
174
+
175
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
176
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
177
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
178
+ - Updated dependencies [0b56518]
179
+ - Updated dependencies [db5cc15]
180
+ - Updated dependencies [2ba5b76]
181
+ - Updated dependencies [5237998]
182
+ - Updated dependencies [c3a30de]
183
+ - Updated dependencies [37c1acd]
184
+ - Updated dependencies [1aa60b1]
185
+ - Updated dependencies [89ec9d4]
186
+ - Updated dependencies [cf3a184]
187
+ - Updated dependencies [d6bfd60]
188
+ - Updated dependencies [626b0f4]
189
+ - Updated dependencies [c22a91f]
190
+ - Updated dependencies [f7403ab]
191
+ - Updated dependencies [6c89d7f]
192
+ - @mastra/core@0.10.15
193
+
194
+ ## 0.10.14-alpha.1
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [0b56518]
199
+ - Updated dependencies [2ba5b76]
200
+ - Updated dependencies [c3a30de]
201
+ - Updated dependencies [cf3a184]
202
+ - Updated dependencies [d6bfd60]
203
+ - @mastra/core@0.10.15-alpha.1
204
+
205
+ ## 0.10.14-alpha.0
206
+
207
+ ### Patch Changes
208
+
209
+ - 31f9f6b: Replace crypto randomUUID in client SDK"
210
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
211
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
212
+ - Updated dependencies [db5cc15]
213
+ - Updated dependencies [5237998]
214
+ - Updated dependencies [37c1acd]
215
+ - Updated dependencies [1aa60b1]
216
+ - Updated dependencies [89ec9d4]
217
+ - Updated dependencies [626b0f4]
218
+ - Updated dependencies [c22a91f]
219
+ - Updated dependencies [f7403ab]
220
+ - Updated dependencies [6c89d7f]
221
+ - @mastra/core@0.10.15-alpha.0
222
+
223
+ ## 0.10.13
224
+
225
+ ### Patch Changes
226
+
227
+ - @mastra/core@0.10.14
14
228
 
15
229
  ## 0.10.11
16
230
 
package/README.md CHANGED
@@ -80,6 +80,7 @@ const client = new MastraClient({
80
80
  - `getWorkflow(workflowId)`: Get a workflow instance
81
81
  - `workflow.details()`: Get workflow details
82
82
  - `workflow.createRun()`: Create workflow run
83
+ - `workflow.createRunAsync()`: Create workflow run (alias)
83
84
  - `workflow.startAsync(params)`: Execute the workflow and wait for execution results
84
85
  - `workflow.resumeAsync(parmas)`: Resume suspended workflow step async
85
86
  - `workflow.watch({runId},(record)=>{})`: Watch the step transitions of the workflow run