@mastra/client-js 0.0.0-ai-v5-20250718021026 → 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.15-alpha.1 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
+ 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
12
16
  DTS Build start
13
- ESM dist/index.js 71.36 KB
14
- ESM ⚡️ Build success in 2104ms
15
- CJS dist/index.cjs 71.66 KB
16
- CJS ⚡️ Build success in 2109ms
17
- DTS ⚡️ Build success in 18106ms
18
- DTS dist/index.d.ts 42.03 KB
19
- DTS dist/index.d.cts 42.03 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-20250718021026
3
+ ## 0.0.0-ai-v5-20250729012312
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,12 +8,149 @@
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
+ - 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]
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]
13
106
  - Updated dependencies [7827943]
107
+ - Updated dependencies [5889a31]
14
108
  - Updated dependencies [bf1e7e7]
109
+ - Updated dependencies [65e3395]
110
+ - Updated dependencies [4933192]
111
+ - Updated dependencies [d1c77a4]
112
+ - Updated dependencies [bea9dd1]
113
+ - Updated dependencies [dcd4802]
15
114
  - Updated dependencies [cbddd18]
16
- - @mastra/core@0.0.0-ai-v5-20250718021026
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
17
154
 
18
155
  ## 0.10.15-alpha.1
19
156
 
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