@mastra/client-js 0.0.0-fix-shareable-traces-20250717112558 → 0.0.0-fix-tool-call-history-20250730195323

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.15-alpha.0 build /home/runner/work/mastra/mastra/client-sdks/client-js
2
+ > @mastra/client-js@0.10.17 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
+ CJS dist/index.cjs 75.52 KB
13
+ CJS ⚡️ Build success in 1833ms
14
+ ESM dist/index.js 75.21 KB
15
+ ESM ⚡️ Build success in 1834ms
12
16
  DTS Build start
13
- CJS dist/index.cjs 71.60 KB
14
- CJS ⚡️ Build success in 2718ms
15
- ESM dist/index.js 71.31 KB
16
- ESM ⚡️ Build success in 2722ms
17
- DTS ⚡️ Build success in 16956ms
18
- DTS dist/index.d.ts 41.95 KB
19
- DTS dist/index.d.cts 41.95 KB
17
+ DTS ⚡️ Build success in 15864ms
18
+ DTS dist/index.d.ts 47.19 KB
19
+ DTS dist/index.d.cts 47.19 KB
package/CHANGELOG.md CHANGED
@@ -1,14 +1,219 @@
1
1
  # @mastra/client-js
2
2
 
3
- ## 0.0.0-fix-shareable-traces-20250717112558
3
+ ## 0.0.0-fix-tool-call-history-20250730195323
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Updated dependencies [f953f00]
8
+ - @mastra/core@0.0.0-fix-tool-call-history-20250730195323
9
+
10
+ ## 0.10.17
11
+
12
+ ### Patch Changes
13
+
14
+ - aa2715b: process stream response error handling
15
+ - 6bd354c: Should not send content type if body instance of FormData
16
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
17
+ - b641ba3: fix: save score params
18
+ - 9802f42: Added types and tests to ensure client-js and hono endpoints can save memory messages where the input is either a v1 or v2 mastra message
19
+ - 1ac8f6b: deduplicate message
20
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
21
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
22
+ - Single message ID as string: `deleteMessages('msg-123')`
23
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
24
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
25
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
26
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
27
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
28
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
29
+ - Updates thread timestamps when messages are deleted
30
+ - Added comprehensive test coverage and documentation
31
+
32
+ - Updated dependencies [510e2c8]
33
+ - Updated dependencies [2f72fb2]
34
+ - Updated dependencies [27cc97a]
35
+ - Updated dependencies [3f89307]
36
+ - Updated dependencies [9eda7d4]
37
+ - Updated dependencies [9d49408]
38
+ - Updated dependencies [41daa63]
39
+ - Updated dependencies [ad0a58b]
40
+ - Updated dependencies [254a36b]
41
+ - Updated dependencies [2ecf658]
42
+ - Updated dependencies [7a7754f]
43
+ - Updated dependencies [fc92d80]
44
+ - Updated dependencies [e0f73c6]
45
+ - Updated dependencies [0b89602]
46
+ - Updated dependencies [4d37822]
47
+ - Updated dependencies [23a6a7c]
48
+ - Updated dependencies [cda801d]
49
+ - Updated dependencies [a77c823]
50
+ - Updated dependencies [ff9c125]
51
+ - Updated dependencies [09bca64]
52
+ - Updated dependencies [b8efbb9]
53
+ - Updated dependencies [71466e7]
54
+ - Updated dependencies [0c99fbe]
55
+ - @mastra/core@0.12.0
56
+
57
+ ## 0.10.17-alpha.5
58
+
59
+ ### Patch Changes
60
+
61
+ - @mastra/core@0.12.0-alpha.5
62
+
63
+ ## 0.10.17-alpha.4
64
+
65
+ ### Patch Changes
66
+
67
+ - Updated dependencies [ad0a58b]
68
+ - @mastra/core@0.12.0-alpha.4
69
+
70
+ ## 0.10.17-alpha.3
71
+
72
+ ### Patch Changes
73
+
74
+ - 9802f42: Added types and tests to ensure client-js and hono endpoints can save memory messages where the input is either a v1 or v2 mastra message
75
+ - 1ac8f6b: deduplicate message
76
+ - @mastra/core@0.12.0-alpha.3
77
+
78
+ ## 0.10.17-alpha.2
79
+
80
+ ### Patch Changes
81
+
82
+ - aa2715b: process stream response error handling
83
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
84
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
85
+ - Single message ID as string: `deleteMessages('msg-123')`
86
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
87
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
88
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
89
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
90
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
91
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
92
+ - Updates thread timestamps when messages are deleted
93
+ - Added comprehensive test coverage and documentation
94
+
95
+ - Updated dependencies [27cc97a]
96
+ - Updated dependencies [41daa63]
97
+ - Updated dependencies [254a36b]
98
+ - Updated dependencies [0b89602]
99
+ - Updated dependencies [4d37822]
100
+ - Updated dependencies [ff9c125]
101
+ - Updated dependencies [b8efbb9]
102
+ - Updated dependencies [71466e7]
103
+ - Updated dependencies [0c99fbe]
104
+ - @mastra/core@0.12.0-alpha.2
105
+
106
+ ## 0.10.17-alpha.1
107
+
108
+ ### Patch Changes
109
+
110
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
111
+ - Updated dependencies [e0f73c6]
112
+ - Updated dependencies [cda801d]
113
+ - Updated dependencies [a77c823]
114
+ - @mastra/core@0.12.0-alpha.1
115
+
116
+ ## 0.10.17-alpha.0
117
+
118
+ ### Patch Changes
119
+
120
+ - 6bd354c: Should not send content type if body instance of FormData
121
+ - b641ba3: fix: save score params
122
+ - Updated dependencies [510e2c8]
123
+ - Updated dependencies [2f72fb2]
124
+ - Updated dependencies [3f89307]
125
+ - Updated dependencies [9eda7d4]
126
+ - Updated dependencies [9d49408]
127
+ - Updated dependencies [2ecf658]
128
+ - Updated dependencies [7a7754f]
129
+ - Updated dependencies [fc92d80]
130
+ - Updated dependencies [23a6a7c]
131
+ - Updated dependencies [09bca64]
132
+ - @mastra/core@0.12.0-alpha.0
133
+
134
+ ## 0.10.16
135
+
136
+ ### Patch Changes
137
+
138
+ - @mastra/core@0.11.1
139
+
140
+ ## 0.10.15
141
+
142
+ ### Patch Changes
143
+
144
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
145
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
146
+ - 2affc57: Fix output type of network loop
147
+ - 032cb66: ClientJS
7
148
  - 7827943: Handle streaming large data
149
+ - 65e3395: Add Scores playground-ui and add scorer hooks
150
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
151
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
152
+ - Updated dependencies [f248d53]
153
+ - Updated dependencies [2affc57]
154
+ - Updated dependencies [66e13e3]
155
+ - Updated dependencies [edd9482]
156
+ - Updated dependencies [18344d7]
157
+ - Updated dependencies [9d372c2]
158
+ - Updated dependencies [40c2525]
159
+ - Updated dependencies [e473f27]
160
+ - Updated dependencies [032cb66]
161
+ - Updated dependencies [703ac71]
162
+ - Updated dependencies [a723d69]
8
163
  - Updated dependencies [7827943]
164
+ - Updated dependencies [5889a31]
9
165
  - Updated dependencies [bf1e7e7]
166
+ - Updated dependencies [65e3395]
167
+ - Updated dependencies [4933192]
168
+ - Updated dependencies [d1c77a4]
169
+ - Updated dependencies [bea9dd1]
170
+ - Updated dependencies [dcd4802]
10
171
  - Updated dependencies [cbddd18]
11
- - @mastra/core@0.0.0-fix-shareable-traces-20250717112558
172
+ - Updated dependencies [7ba91fa]
173
+ - @mastra/core@0.11.0
174
+
175
+ ## 0.10.15-alpha.3
176
+
177
+ ### Patch Changes
178
+
179
+ - @mastra/core@0.11.0-alpha.3
180
+
181
+ ## 0.10.15-alpha.2
182
+
183
+ ### Patch Changes
184
+
185
+ - 4832752: Do not set content-type header when making POST/PUT requests without a body
186
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
187
+ - 2affc57: Fix output type of network loop
188
+ - 032cb66: ClientJS
189
+ - 65e3395: Add Scores playground-ui and add scorer hooks
190
+ - 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
191
+ - 6f6e651: Alias createRun -> createRunAsync to match Mastra Workflow class
192
+ - Updated dependencies [f248d53]
193
+ - Updated dependencies [2affc57]
194
+ - Updated dependencies [66e13e3]
195
+ - Updated dependencies [edd9482]
196
+ - Updated dependencies [18344d7]
197
+ - Updated dependencies [9d372c2]
198
+ - Updated dependencies [40c2525]
199
+ - Updated dependencies [e473f27]
200
+ - Updated dependencies [032cb66]
201
+ - Updated dependencies [703ac71]
202
+ - Updated dependencies [a723d69]
203
+ - Updated dependencies [5889a31]
204
+ - Updated dependencies [65e3395]
205
+ - Updated dependencies [4933192]
206
+ - Updated dependencies [d1c77a4]
207
+ - Updated dependencies [bea9dd1]
208
+ - Updated dependencies [dcd4802]
209
+ - Updated dependencies [7ba91fa]
210
+ - @mastra/core@0.11.0-alpha.2
211
+
212
+ ## 0.10.15-alpha.1
213
+
214
+ ### Patch Changes
215
+
216
+ - @mastra/core@0.11.0-alpha.1
12
217
 
13
218
  ## 0.10.15-alpha.0
14
219
 
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