@mastra/client-js 0.0.0-ai-v5-20250718021026 → 0.0.0-ai-v5-20250729181825

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