@mastra/react 0.0.0-vnext-20251104230439 → 0.0.0-workflow-timeout-issue-20260213181535

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +959 -6
  2. package/dist/chunk-REDZDNFN-B1ouuY83.js +249 -0
  3. package/dist/chunk-REDZDNFN-B1ouuY83.js.map +1 -0
  4. package/dist/chunk-REDZDNFN-CbkG5d3w.cjs +251 -0
  5. package/dist/chunk-REDZDNFN-CbkG5d3w.cjs.map +1 -0
  6. package/dist/index-BQSALCsO.js +27703 -0
  7. package/dist/index-BQSALCsO.js.map +1 -0
  8. package/dist/index-BaK_Y6TP.cjs +185 -0
  9. package/dist/index-BaK_Y6TP.cjs.map +1 -0
  10. package/dist/index-C1OzXW5i.js +180 -0
  11. package/dist/index-C1OzXW5i.js.map +1 -0
  12. package/dist/index-DT_KGByV.cjs +27789 -0
  13. package/dist/index-DT_KGByV.cjs.map +1 -0
  14. package/dist/index.cjs +68 -1813
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.js +1 -1753
  17. package/dist/index.js.map +1 -1
  18. package/dist/react.css +1 -1
  19. package/dist/src/agent/hooks.d.ts +14 -2
  20. package/dist/src/index.d.ts +1 -0
  21. package/dist/src/lib/ai-sdk/types.d.ts +88 -3
  22. package/dist/src/lib/use-mutation.d.ts +27 -0
  23. package/dist/src/mastra-client-context.d.ts +3 -1
  24. package/dist/src/mastra-react-provider.d.ts +1 -1
  25. package/dist/src/workflows/hooks.d.ts +33 -0
  26. package/dist/src/workflows/index.d.ts +2 -0
  27. package/dist/src/workflows/types.d.ts +121 -0
  28. package/dist/src/workflows/use-stream-workflow.d.ts +38 -0
  29. package/dist/token-6GSAFR2W-XRCSVUPZ-D4lFShVi.cjs +64 -0
  30. package/dist/token-6GSAFR2W-XRCSVUPZ-D4lFShVi.cjs.map +1 -0
  31. package/dist/token-6GSAFR2W-XRCSVUPZ-nW1dYF0l.js +60 -0
  32. package/dist/token-6GSAFR2W-XRCSVUPZ-nW1dYF0l.js.map +1 -0
  33. package/dist/token-util-NEHG7TUY-U7CX7GS4-BZFIAvf9.cjs +11 -0
  34. package/dist/token-util-NEHG7TUY-U7CX7GS4-BZFIAvf9.cjs.map +1 -0
  35. package/dist/token-util-NEHG7TUY-U7CX7GS4-IihD8c3p.js +7 -0
  36. package/dist/token-util-NEHG7TUY-U7CX7GS4-IihD8c3p.js.map +1 -0
  37. package/package.json +20 -14
package/CHANGELOG.md CHANGED
@@ -1,12 +1,965 @@
1
- # @mastra/react-hooks
1
+ # @mastra/react
2
2
 
3
- ## 0.0.0-vnext-20251104230439
3
+ ## 0.0.0-workflow-timeout-issue-20260213181535
4
4
 
5
- ### Major Changes
5
+ ### Patch Changes
6
+
7
+ - Add `workflow-step-progress` stream event for foreach workflow steps. Each iteration emits a progress event with `completedCount`, `totalCount`, `currentIndex`, `iterationStatus` (`success` | `failed` | `suspended`), and optional `iterationOutput`. Both the default and evented execution engines emit these events. ([#12838](https://github.com/mastra-ai/mastra/pull/12838))
8
+
9
+ The Mastra Studio UI now renders a progress bar with an N/total counter on foreach nodes, updating in real time as iterations complete:
10
+
11
+ ```ts
12
+ // Consuming progress events from the workflow stream
13
+ const run = workflow.createRun();
14
+ const result = await run.start({ inputData });
15
+ const stream = result.stream;
16
+
17
+ for await (const chunk of stream) {
18
+ if (chunk.type === 'workflow-step-progress') {
19
+ console.log(`${chunk.payload.completedCount}/${chunk.payload.totalCount} - ${chunk.payload.iterationStatus}`);
20
+ }
21
+ }
22
+ ```
23
+
24
+ `@mastra/react`: The `mapWorkflowStreamChunkToWatchResult` reducer now accumulates `foreachProgress` from `workflow-step-progress` events into step state, making progress data available to React consumers via the existing workflow watch hooks.
25
+
26
+ - Updated dependencies [[`4ba40dc`](https://github.com/mastra-ai/mastra/commit/4ba40dcb6c9ef31eedbb01b6d5b8b0b3c71e5b61), [`a5b67a3`](https://github.com/mastra-ai/mastra/commit/a5b67a3589a74415feb663a55d1858324a2afde9), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`40f224e`](https://github.com/mastra-ai/mastra/commit/40f224ec14e9b01a36802d8c5445a547a33992a5)]:
27
+ - @mastra/client-js@0.0.0-workflow-timeout-issue-20260213181535
28
+
29
+ ## 0.2.2
30
+
31
+ ### Patch Changes
32
+
33
+ - Fixed chat messages flashing when loading a thread. Messages now update reactively via useEffect instead of lazy state initialization, preventing the brief flash of empty state. ([#12863](https://github.com/mastra-ai/mastra/pull/12863))
34
+
35
+ - Updated dependencies [[`6c40593`](https://github.com/mastra-ai/mastra/commit/6c40593d6d2b1b68b0c45d1a3a4c6ac5ecac3937), [`11804ad`](https://github.com/mastra-ai/mastra/commit/11804adf1d6be46ebe216be40a43b39bb8b397d7), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`2e02cd7`](https://github.com/mastra-ai/mastra/commit/2e02cd7e08ba2d84a275c80d80c069d2b8b66211), [`8109aee`](https://github.com/mastra-ai/mastra/commit/8109aeeab758e16cd4255a6c36f044b70eefc6a6), [`be42958`](https://github.com/mastra-ai/mastra/commit/be42958d62c9f3d6b3a037580a6ef362afa47240), [`a211248`](https://github.com/mastra-ai/mastra/commit/a21124845b1b1321b6075a8377c341c7f5cda1b6), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`8c90ff4`](https://github.com/mastra-ai/mastra/commit/8c90ff4d3414e7f2a2d216ea91274644f7b29133)]:
36
+ - @mastra/client-js@1.3.0
37
+
38
+ ## 0.2.2-alpha.3
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [[`2e02cd7`](https://github.com/mastra-ai/mastra/commit/2e02cd7e08ba2d84a275c80d80c069d2b8b66211)]:
43
+ - @mastra/client-js@1.3.0-alpha.3
44
+
45
+ ## 0.2.2-alpha.2
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [[`b31c922`](https://github.com/mastra-ai/mastra/commit/b31c922215b513791d98feaea1b98784aa00803a)]:
50
+ - @mastra/client-js@1.3.0-alpha.2
51
+
52
+ ## 0.2.2-alpha.1
53
+
54
+ ### Patch Changes
55
+
56
+ - Fixed chat messages flashing when loading a thread. Messages now update reactively via useEffect instead of lazy state initialization, preventing the brief flash of empty state. ([#12863](https://github.com/mastra-ai/mastra/pull/12863))
57
+
58
+ - Updated dependencies [[`6c40593`](https://github.com/mastra-ai/mastra/commit/6c40593d6d2b1b68b0c45d1a3a4c6ac5ecac3937), [`11804ad`](https://github.com/mastra-ai/mastra/commit/11804adf1d6be46ebe216be40a43b39bb8b397d7), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`be42958`](https://github.com/mastra-ai/mastra/commit/be42958d62c9f3d6b3a037580a6ef362afa47240), [`a211248`](https://github.com/mastra-ai/mastra/commit/a21124845b1b1321b6075a8377c341c7f5cda1b6), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`8c90ff4`](https://github.com/mastra-ai/mastra/commit/8c90ff4d3414e7f2a2d216ea91274644f7b29133)]:
59
+ - @mastra/client-js@1.3.0-alpha.1
60
+
61
+ ## 0.2.2-alpha.0
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies [[`8109aee`](https://github.com/mastra-ai/mastra/commit/8109aeeab758e16cd4255a6c36f044b70eefc6a6)]:
66
+ - @mastra/client-js@1.2.1-alpha.0
67
+
68
+ ## 0.2.1
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [[`2770921`](https://github.com/mastra-ai/mastra/commit/2770921eec4d55a36b278d15c3a83f694e462ee5), [`b1695db`](https://github.com/mastra-ai/mastra/commit/b1695db2d7be0c329d499619c7881899649188d0), [`aa37c84`](https://github.com/mastra-ai/mastra/commit/aa37c84d29b7db68c72517337932ef486c316275)]:
73
+ - @mastra/client-js@1.2.0
74
+
75
+ ## 0.2.1-alpha.1
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [[`2770921`](https://github.com/mastra-ai/mastra/commit/2770921eec4d55a36b278d15c3a83f694e462ee5), [`b1695db`](https://github.com/mastra-ai/mastra/commit/b1695db2d7be0c329d499619c7881899649188d0)]:
80
+ - @mastra/client-js@1.2.0-alpha.1
81
+
82
+ ## 0.2.1-alpha.0
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [[`aa37c84`](https://github.com/mastra-ai/mastra/commit/aa37c84d29b7db68c72517337932ef486c316275)]:
87
+ - @mastra/client-js@1.1.1-alpha.0
88
+
89
+ ## 0.2.0
90
+
91
+ ### Minor Changes
92
+
93
+ - Added `apiPrefix` prop to `MastraClientProvider` for connecting to servers with custom API route prefixes (defaults to `/api`). ([#12295](https://github.com/mastra-ai/mastra/pull/12295))
94
+
95
+ **Default usage (no change required):**
96
+
97
+ ```tsx
98
+ <MastraClientProvider baseUrl="http://localhost:3000">{children}</MastraClientProvider>
99
+ ```
100
+
101
+ **Custom prefix usage:**
102
+
103
+ ```tsx
104
+ <MastraClientProvider baseUrl="http://localhost:3000" apiPrefix="/mastra">
105
+ {children}
106
+ </MastraClientProvider>
107
+ ```
108
+
109
+ See #12261 for more details.
110
+
111
+ - Added useCancelWorkflowRun hook to @mastra/react for canceling workflow runs. This hook was previously only available internally in playground-ui and is now exported for use in custom applications. ([#12142](https://github.com/mastra-ai/mastra/pull/12142))
112
+
113
+ - Added useStreamWorkflow hook to @mastra/react for streaming workflow execution. This hook supports streaming, observing, resuming, and time-traveling workflows. It accepts tracingOptions and onError as parameters for better customization. ([#12151](https://github.com/mastra-ai/mastra/pull/12151))
114
+
115
+ ### Patch Changes
116
+
117
+ - Use useExecuteWorkflow hook from @mastra/react instead of local implementation in playground-ui ([#12138](https://github.com/mastra-ai/mastra/pull/12138))
118
+
119
+ - Updated dependencies [[`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f), [`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`dc82e6c`](https://github.com/mastra-ai/mastra/commit/dc82e6c5a05d6a9160c522af08b8c809ddbcdb66), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334)]:
120
+ - @mastra/client-js@1.1.0
121
+
122
+ ## 0.2.0-alpha.2
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [[`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334), [`a64a24c`](https://github.com/mastra-ai/mastra/commit/a64a24c9bce499b989667c7963f2f71a11d90334)]:
127
+ - @mastra/client-js@1.1.0-alpha.2
128
+
129
+ ## 0.2.0-alpha.1
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [[`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f)]:
134
+ - @mastra/client-js@1.1.0-alpha.1
135
+
136
+ ## 0.2.0-alpha.0
137
+
138
+ ### Minor Changes
139
+
140
+ - Added `apiPrefix` prop to `MastraClientProvider` for connecting to servers with custom API route prefixes (defaults to `/api`). ([#12295](https://github.com/mastra-ai/mastra/pull/12295))
141
+
142
+ **Default usage (no change required):**
143
+
144
+ ```tsx
145
+ <MastraClientProvider baseUrl="http://localhost:3000">{children}</MastraClientProvider>
146
+ ```
147
+
148
+ **Custom prefix usage:**
149
+
150
+ ```tsx
151
+ <MastraClientProvider baseUrl="http://localhost:3000" apiPrefix="/mastra">
152
+ {children}
153
+ </MastraClientProvider>
154
+ ```
155
+
156
+ See #12261 for more details.
157
+
158
+ - Added useCancelWorkflowRun hook to @mastra/react for canceling workflow runs. This hook was previously only available internally in playground-ui and is now exported for use in custom applications. ([#12142](https://github.com/mastra-ai/mastra/pull/12142))
159
+
160
+ - Added useStreamWorkflow hook to @mastra/react for streaming workflow execution. This hook supports streaming, observing, resuming, and time-traveling workflows. It accepts tracingOptions and onError as parameters for better customization. ([#12151](https://github.com/mastra-ai/mastra/pull/12151))
161
+
162
+ ### Patch Changes
163
+
164
+ - Use useExecuteWorkflow hook from @mastra/react instead of local implementation in playground-ui ([#12138](https://github.com/mastra-ai/mastra/pull/12138))
165
+
166
+ - Updated dependencies [[`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`dc82e6c`](https://github.com/mastra-ai/mastra/commit/dc82e6c5a05d6a9160c522af08b8c809ddbcdb66)]:
167
+ - @mastra/client-js@1.1.0-alpha.0
168
+
169
+ ## 0.1.1
170
+
171
+ ### Patch Changes
172
+
173
+ - Updated dependencies:
174
+ - @mastra/client-js@1.0.1
175
+
176
+ ## 0.1.1-alpha.0
177
+
178
+ ### Patch Changes
179
+
180
+ - Updated dependencies:
181
+ - @mastra/client-js@1.0.1-alpha.0
182
+
183
+ ## 0.1.0
184
+
185
+ ### Minor Changes
186
+
187
+ - Added human-in-the-loop (HITL) tool approval support for `generate()` method. ([#12056](https://github.com/mastra-ai/mastra/pull/12056))
188
+
189
+ **Why:** This provides parity between `stream()` and `generate()` for tool approval flows, allowing non-streaming use cases to leverage `requireToolApproval` without needing to switch to streaming.
190
+
191
+ Previously, tool approval with `requireToolApproval` only worked with `stream()`. Now you can use the same approval flow with `generate()` for non-streaming use cases.
192
+
193
+ **Using tool approval with generate()**
194
+
195
+ ```typescript
196
+ const output = await agent.generate('Find user John', {
197
+ requireToolApproval: true,
198
+ });
199
+
200
+ // Check if a tool is waiting for approval
201
+ if (output.finishReason === 'suspended') {
202
+ console.log('Tool requires approval:', output.suspendPayload.toolName);
203
+
204
+ // Approve the tool call
205
+ const result = await agent.approveToolCallGenerate({
206
+ runId: output.runId,
207
+ toolCallId: output.suspendPayload.toolCallId,
208
+ });
209
+
210
+ console.log(result.text);
211
+ }
212
+ ```
213
+
214
+ **Declining a tool call**
215
+
216
+ ```typescript
217
+ if (output.finishReason === 'suspended') {
218
+ const result = await agent.declineToolCallGenerate({
219
+ runId: output.runId,
220
+ toolCallId: output.suspendPayload.toolCallId,
221
+ });
222
+ }
223
+ ```
224
+
225
+ **New methods added:**
226
+ - `agent.approveToolCallGenerate({ runId, toolCallId })` - Approves a pending tool call and returns the complete result
227
+ - `agent.declineToolCallGenerate({ runId, toolCallId })` - Declines a pending tool call and returns the complete result
228
+
229
+ **Server routes added:**
230
+ - `POST /api/agents/:agentId/approve-tool-call-generate`
231
+ - `POST /api/agents/:agentId/decline-tool-call-generate`
232
+
233
+ The playground UI now also supports tool approval when using generate mode.
234
+
235
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
236
+
237
+ - **Fixed:** Align `Agent.network` with core and update `@mastra/react` network usage. ([#12015](https://github.com/mastra-ai/mastra/pull/12015))
6
238
 
7
239
  - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
8
240
 
9
- - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
241
+ - Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
242
+
243
+ ## What changed
244
+
245
+ Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
246
+
247
+ **Before:**
248
+
249
+ ```typescript
250
+ // Old span structure
251
+ span.agentId; // 'my-agent'
252
+ span.toolId; // undefined
253
+ span.workflowId; // undefined
254
+ ```
255
+
256
+ **After:**
257
+
258
+ ```typescript
259
+ // New span structure
260
+ span.entityType; // EntityType.AGENT
261
+ span.entityId; // 'my-agent'
262
+ span.entityName; // 'My Agent'
263
+ ```
264
+
265
+ ## New `listTraces()` API
266
+
267
+ Query traces with filtering, pagination, and sorting:
268
+
269
+ ```typescript
270
+ const { spans, pagination } = await storage.listTraces({
271
+ filters: {
272
+ entityType: EntityType.AGENT,
273
+ entityId: 'my-agent',
274
+ userId: 'user-123',
275
+ environment: 'production',
276
+ status: TraceStatus.SUCCESS,
277
+ startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
278
+ },
279
+ pagination: { page: 0, perPage: 50 },
280
+ orderBy: { field: 'startedAt', direction: 'DESC' },
281
+ });
282
+ ```
283
+
284
+ **Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
285
+
286
+ ## New retrieval methods
287
+ - `getSpan({ traceId, spanId })` - Get a single span
288
+ - `getRootSpan({ traceId })` - Get the root span of a trace
289
+ - `getTrace({ traceId })` - Get all spans for a trace
290
+
291
+ ## Backward compatibility
292
+
293
+ The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
294
+
295
+ ## Migration
296
+
297
+ **Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
298
+
299
+ **No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
300
+
301
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
302
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
303
+
304
+ - Fix "MessagePartRuntime is not available" error when chatting with agents in Studio playground by replacing deprecated `useMessagePart` hook with `useAssistantState` ([#11039](https://github.com/mastra-ai/mastra/pull/11039))
305
+
306
+ ### Patch Changes
307
+
308
+ - Remove redundant toolCalls from network agent finalResult ([#11189](https://github.com/mastra-ai/mastra/pull/11189))
309
+
310
+ The network agent's `finalResult` was storing `toolCalls` separately even though all tool call information is already present in the `messages` array (as `tool-call` and `tool-result` type messages). This caused significant token waste since the routing agent reads this data from memory on every iteration.
311
+
312
+ **Before:** `finalResult: { text, toolCalls, messages }`
313
+ **After:** `finalResult: { text, messages }`
314
+
315
+ +**Migration:** If you were accessing `finalResult.toolCalls`, retrieve tool calls from `finalResult.messages` by filtering for messages with `type: 'tool-call'`.
316
+
317
+ Updated `@mastra/react` to extract tool calls directly from the `messages` array instead of the removed `toolCalls` field when resolving initial messages from memory.
318
+
319
+ Fixes #11059
320
+
321
+ - Auto resume suspended tools if `autoResumeSuspendedTools: true` ([#11157](https://github.com/mastra-ai/mastra/pull/11157))
322
+
323
+ The flag can be added to `defaultAgentOptions` when creating the agent or to options in `agent.stream` or `agent.generate`
324
+
325
+ ```typescript
326
+ const agent = new Agent({
327
+ //...agent information,
328
+ defaultAgentOptions: {
329
+ autoResumeSuspendedTools: true,
330
+ },
331
+ });
332
+ ```
333
+
334
+ - Removes the deprecated `threadId` and `resourceId` options from `AgentExecutionOptions`. These have been deprecated for months in favour of the `memory` option. ([#11897](https://github.com/mastra-ai/mastra/pull/11897))
335
+
336
+ ### Breaking Changes
337
+
338
+ #### `@mastra/core`
339
+
340
+ The `threadId` and `resourceId` options have been removed from `agent.generate()` and `agent.stream()`. Use the `memory` option instead:
341
+
342
+ ```ts
343
+ // Before
344
+ await agent.stream('Hello', {
345
+ threadId: 'thread-123',
346
+ resourceId: 'user-456',
347
+ });
348
+
349
+ // After
350
+ await agent.stream('Hello', {
351
+ memory: {
352
+ thread: 'thread-123',
353
+ resource: 'user-456',
354
+ },
355
+ });
356
+ ```
357
+
358
+ #### `@mastra/server`
359
+
360
+ The `threadId`, `resourceId`, and `resourceid` fields have been removed from the main agent execution body schema. The server now expects the `memory` option format in request bodies. Legacy routes (`/api/agents/:agentId/generate-legacy` and `/api/agents/:agentId/stream-legacy`) continue to support the deprecated fields.
361
+
362
+ #### `@mastra/react`
363
+
364
+ The `useChat` hook now internally converts `threadId` to the `memory` option format when making API calls. No changes needed in component code - the hook handles the conversion automatically.
365
+
366
+ #### `@mastra/client-js`
367
+
368
+ When using the client SDK agent methods, use the `memory` option instead of `threadId`/`resourceId`:
369
+
370
+ ```ts
371
+ const agent = client.getAgent('my-agent');
372
+
373
+ // Before
374
+ await agent.generate([...], {
375
+ threadId: 'thread-123',
376
+ resourceId: 'user-456',
377
+ });
378
+
379
+ // After
380
+ await agent.generate([...], {
381
+ memory: {
382
+ thread: 'thread-123',
383
+ resource: 'user-456',
384
+ },
385
+ });
386
+ ```
387
+
388
+ - Adjust the types to accept tracingOptions ([#10742](https://github.com/mastra-ai/mastra/pull/10742))
389
+
390
+ - Add human-in-the-loop (HITL) support to agent networks ([#11678](https://github.com/mastra-ai/mastra/pull/11678))
391
+ - Add suspend/resume capabilities to agent network
392
+ - Enable auto-resume for suspended network execution via `autoResumeSuspendedTools`
393
+
394
+ `agent.resumeNetwork`, `agent.approveNetworkToolCall`, `agent.declineNetworkToolCall`
395
+
396
+ - Fix TypeScript errors during build declaration generation ([#11682](https://github.com/mastra-ai/mastra/pull/11682))
397
+
398
+ Updated test file `toUIMessage.test.ts` to match current `@mastra/core` types:
399
+ - Changed `error` property from string to `Error` object (per `StepFailure` type)
400
+ - Added missing `resumeSchema` property to `tool-call-approval` payloads (per `ToolCallApprovalPayload` type)
401
+ - Added `zod` as peer/dev dependency for test type support
402
+
403
+ - Fix text parts incorrectly merging across tool calls ([#11783](https://github.com/mastra-ai/mastra/pull/11783))
404
+
405
+ Previously, when an agent produced text before and after a tool call (e.g., "Let me search for that" → tool call → "Here's what I found"), the text parts would be merged into a single part, losing the separation. This fix introduces a `textId` property to track separate text streams, ensuring each text stream maintains its own text part in the UI message.
406
+
407
+ Fixes #11577
408
+
409
+ - Configurable resourceId in react useChat ([#10461](https://github.com/mastra-ai/mastra/pull/10461))
410
+
411
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
412
+
413
+ - Fixes issues where thread and messages were not saved before suspension when tools require approval or call suspend() during execution. This caused conversation history to be lost if users refreshed during tool approval or suspension. ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
414
+
415
+ **Backend changes (@mastra/core):**
416
+ - Add assistant messages to messageList immediately after LLM execution
417
+ - Flush messages synchronously before suspension to persist state
418
+ - Create thread if it doesn't exist before flushing
419
+ - Add metadata helpers to persist and remove tool approval state
420
+ - Pass saveQueueManager and memory context through workflow for immediate persistence
421
+
422
+ **Frontend changes (@mastra/react):**
423
+ - Extract runId from pending approvals to enable resumption after refresh
424
+ - Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
425
+ - Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
426
+ - Change runId from hardcoded `agentId` to unique `uuid()`
427
+
428
+ **UI changes (@mastra/playground-ui):**
429
+ - Handle tool calls awaiting approval in message initialization
430
+ - Convert approval metadata format when loading initial messages
431
+
432
+ Fixes #9745, #9906
433
+
434
+ - Fixed compatibility with updated `@mastra/client-js` generate and stream API signatures ([#12011](https://github.com/mastra-ai/mastra/pull/12011))
435
+
436
+ - Fixed agent network not returning text response when routing agent handles requests without delegation. ([#11497](https://github.com/mastra-ai/mastra/pull/11497))
437
+
438
+ **What changed:**
439
+ - Agent networks now correctly stream text responses when the routing agent decides to handle a request itself instead of delegating to sub-agents, workflows, or tools
440
+ - Added fallback in transformers to ensure text is always returned even if core events are missing
441
+
442
+ **Why this matters:**
443
+ Previously, when using `toAISdkV5Stream` or `networkRoute()` outside of the Mastra Studio UI, no text content was returned when the routing agent handled requests directly. This fix ensures consistent behavior across all API routes.
444
+
445
+ Fixes #11219
446
+
447
+ - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
448
+
449
+ - Display network completion validation results and scorer feedback in the Playground when viewing agent network runs, letting users see pass/fail status and actionable feedback from completion scorers ([#11562](https://github.com/mastra-ai/mastra/pull/11562))
450
+
451
+ - Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
452
+
453
+ When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
454
+
455
+ ```typescript
456
+ const run = await workflow.createRun();
457
+ const result = await run.start({ inputData: { message: 'Hello' } });
458
+
459
+ if (result.status === 'tripwire') {
460
+ console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
461
+ console.log('Processor ID:', result.tripwire?.processorId);
462
+ console.log('Retry requested:', result.tripwire?.retry);
463
+ }
464
+ ```
465
+
466
+ Adds new UI state for tripwire in agent chat and workflow UI.
467
+
468
+ This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
469
+
470
+ - - Add persistence for custom data chunks (`data-*` parts) emitted via `writer.custom()` in tools ([#10884](https://github.com/mastra-ai/mastra/pull/10884))
471
+ - Data chunks are now saved to message storage so they survive page refreshes
472
+ - Update `@assistant-ui/react` to v0.11.47 with native `DataMessagePart` support
473
+ - Convert `data-*` parts to `DataMessagePart` format (`{ type: 'data', name: string, data: T }`)
474
+ - Update related `@assistant-ui/*` packages for compatibility
475
+ - Updated dependencies [[`6edf340`](https://github.com/mastra-ai/mastra/commit/6edf3402f6a46ee8def2f42a2287785251fbffd6), [`bc72b52`](https://github.com/mastra-ai/mastra/commit/bc72b529ee4478fe89ecd85a8be47ce0127b82a0), [`ed3e3dd`](https://github.com/mastra-ai/mastra/commit/ed3e3ddec69d564fe2b125e083437f76331f1283), [`c042bd0`](https://github.com/mastra-ai/mastra/commit/c042bd0b743e0e86199d0cb83344ca7690e34a9c), [`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`ad7e8f1`](https://github.com/mastra-ai/mastra/commit/ad7e8f16ac843cbd16687ad47b66ba96bcffe111), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`9d5059e`](https://github.com/mastra-ai/mastra/commit/9d5059eae810829935fb08e81a9bb7ecd5b144a7), [`e1b7118`](https://github.com/mastra-ai/mastra/commit/e1b7118f42ca0a97247afc75e57dcd5fdf987752), [`461e448`](https://github.com/mastra-ai/mastra/commit/461e448852fe999506a6046d50b1efc27d8aa378), [`441c7b6`](https://github.com/mastra-ai/mastra/commit/441c7b6665915cfa7fd625fded8c0f518530bf10), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`ef756c6`](https://github.com/mastra-ai/mastra/commit/ef756c65f82d16531c43f49a27290a416611e526), [`1b85674`](https://github.com/mastra-ai/mastra/commit/1b85674123708d9b85834dccc9eae601a9d0891c), [`5a1ede1`](https://github.com/mastra-ai/mastra/commit/5a1ede1f7ab527b9ead11f7eee2f73e67aeca9e4), [`47b1c16`](https://github.com/mastra-ai/mastra/commit/47b1c16a01c7ffb6765fe1e499b49092f8b7eba3), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`dbd9db0`](https://github.com/mastra-ai/mastra/commit/dbd9db0d5c2797a210b9098e7e3e613718e5442f), [`6a86fe5`](https://github.com/mastra-ai/mastra/commit/6a86fe56b8ff53ca2eb3ed87ffc0748749ebadce), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`026b848`](https://github.com/mastra-ai/mastra/commit/026b8483fbf5b6d977be8f7e6aac8d15c75558ac), [`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`610a70b`](https://github.com/mastra-ai/mastra/commit/610a70bdad282079f0c630e0d7bb284578f20151), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`f93d992`](https://github.com/mastra-ai/mastra/commit/f93d992a37d5431ab4a71246835d403ef7c4ce85), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`595a3b8`](https://github.com/mastra-ai/mastra/commit/595a3b8727c901f44e333909c09843c711224440), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`d90ea65`](https://github.com/mastra-ai/mastra/commit/d90ea6536f7aa51c6545a4e9215b55858e98e16d), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`e4d366a`](https://github.com/mastra-ai/mastra/commit/e4d366aeb500371dd4210d6aa8361a4c21d87034), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`d171e55`](https://github.com/mastra-ai/mastra/commit/d171e559ead9f52ec728d424844c8f7b164c4510), [`632fdb8`](https://github.com/mastra-ai/mastra/commit/632fdb8b3cd9ff6f90399256d526db439fc1758b), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`519d9e6`](https://github.com/mastra-ai/mastra/commit/519d9e6d31910457c54bdae8b7b7cb3a69f41831), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`5fe71bc`](https://github.com/mastra-ai/mastra/commit/5fe71bc925dfce597df69c89241f33b378028c63), [`dfe3f8c`](https://github.com/mastra-ai/mastra/commit/dfe3f8c7376ffe159236819e19ca522143c1f972), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`e8dcd71`](https://github.com/mastra-ai/mastra/commit/e8dcd71fa5e473c8ba1d6dad99eef182d20a0491), [`e849603`](https://github.com/mastra-ai/mastra/commit/e849603a596269069f58a438b98449ea2770493d), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`9312dcd`](https://github.com/mastra-ai/mastra/commit/9312dcd1c6f5b321929e7d382e763d95fdc030f5), [`184f01d`](https://github.com/mastra-ai/mastra/commit/184f01d1f534ec0be9703d3996f2e088b4a560eb), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`58e3931`](https://github.com/mastra-ai/mastra/commit/58e3931af9baa5921688566210f00fb0c10479fa), [`439eaf7`](https://github.com/mastra-ai/mastra/commit/439eaf75447809b05e326666675a4dcbf9c334ce), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db), [`08bb631`](https://github.com/mastra-ai/mastra/commit/08bb631ae2b14684b2678e3549d0b399a6f0561e), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`6cbb549`](https://github.com/mastra-ai/mastra/commit/6cbb549475201a2fbf158f0fd7323f6495f46d08), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`106c960`](https://github.com/mastra-ai/mastra/commit/106c960df5d110ec15ac8f45de8858597fb90ad5)]:
476
+ - @mastra/client-js@1.0.0
477
+
478
+ ## 0.1.0-beta.27
479
+
480
+ ### Patch Changes
481
+
482
+ - Updated dependencies:
483
+ - @mastra/client-js@1.0.0-beta.27
484
+
485
+ ## 0.1.0-beta.26
486
+
487
+ ### Patch Changes
488
+
489
+ - Updated dependencies [[`026b848`](https://github.com/mastra-ai/mastra/commit/026b8483fbf5b6d977be8f7e6aac8d15c75558ac)]:
490
+ - @mastra/client-js@1.0.0-beta.26
491
+
492
+ ## 0.1.0-beta.25
493
+
494
+ ### Minor Changes
495
+
496
+ - Added human-in-the-loop (HITL) tool approval support for `generate()` method. ([#12056](https://github.com/mastra-ai/mastra/pull/12056))
497
+
498
+ **Why:** This provides parity between `stream()` and `generate()` for tool approval flows, allowing non-streaming use cases to leverage `requireToolApproval` without needing to switch to streaming.
499
+
500
+ Previously, tool approval with `requireToolApproval` only worked with `stream()`. Now you can use the same approval flow with `generate()` for non-streaming use cases.
501
+
502
+ **Using tool approval with generate()**
503
+
504
+ ```typescript
505
+ const output = await agent.generate('Find user John', {
506
+ requireToolApproval: true,
507
+ });
508
+
509
+ // Check if a tool is waiting for approval
510
+ if (output.finishReason === 'suspended') {
511
+ console.log('Tool requires approval:', output.suspendPayload.toolName);
512
+
513
+ // Approve the tool call
514
+ const result = await agent.approveToolCallGenerate({
515
+ runId: output.runId,
516
+ toolCallId: output.suspendPayload.toolCallId,
517
+ });
518
+
519
+ console.log(result.text);
520
+ }
521
+ ```
522
+
523
+ **Declining a tool call**
524
+
525
+ ```typescript
526
+ if (output.finishReason === 'suspended') {
527
+ const result = await agent.declineToolCallGenerate({
528
+ runId: output.runId,
529
+ toolCallId: output.suspendPayload.toolCallId,
530
+ });
531
+ }
532
+ ```
533
+
534
+ **New methods added:**
535
+ - `agent.approveToolCallGenerate({ runId, toolCallId })` - Approves a pending tool call and returns the complete result
536
+ - `agent.declineToolCallGenerate({ runId, toolCallId })` - Declines a pending tool call and returns the complete result
537
+
538
+ **Server routes added:**
539
+ - `POST /api/agents/:agentId/approve-tool-call-generate`
540
+ - `POST /api/agents/:agentId/decline-tool-call-generate`
541
+
542
+ The playground UI now also supports tool approval when using generate mode.
543
+
544
+ ### Patch Changes
545
+
546
+ - Updated dependencies [[`ed3e3dd`](https://github.com/mastra-ai/mastra/commit/ed3e3ddec69d564fe2b125e083437f76331f1283), [`47b1c16`](https://github.com/mastra-ai/mastra/commit/47b1c16a01c7ffb6765fe1e499b49092f8b7eba3), [`9312dcd`](https://github.com/mastra-ai/mastra/commit/9312dcd1c6f5b321929e7d382e763d95fdc030f5)]:
547
+ - @mastra/client-js@1.0.0-beta.25
548
+
549
+ ## 0.1.0-beta.23
550
+
551
+ ### Major Changes
552
+
553
+ - **Fixed:** Align `Agent.network` with core and update `@mastra/react` network usage. ([#12015](https://github.com/mastra-ai/mastra/pull/12015))
554
+
555
+ ### Patch Changes
556
+
557
+ - Fixed compatibility with updated `@mastra/client-js` generate and stream API signatures ([#12011](https://github.com/mastra-ai/mastra/pull/12011))
558
+
559
+ - Updated dependencies [[`461e448`](https://github.com/mastra-ai/mastra/commit/461e448852fe999506a6046d50b1efc27d8aa378)]:
560
+ - @mastra/client-js@1.0.0-beta.24
561
+
562
+ ## 0.1.0-beta.23
563
+
564
+ ### Patch Changes
565
+
566
+ - Updated dependencies:
567
+ - @mastra/client-js@1.0.0-beta.23
568
+
569
+ ## 0.1.0-beta.22
570
+
571
+ ### Patch Changes
572
+
573
+ - Removes the deprecated `threadId` and `resourceId` options from `AgentExecutionOptions`. These have been deprecated for months in favour of the `memory` option. ([#11897](https://github.com/mastra-ai/mastra/pull/11897))
574
+
575
+ ### Breaking Changes
576
+
577
+ #### `@mastra/core`
578
+
579
+ The `threadId` and `resourceId` options have been removed from `agent.generate()` and `agent.stream()`. Use the `memory` option instead:
580
+
581
+ ```ts
582
+ // Before
583
+ await agent.stream('Hello', {
584
+ threadId: 'thread-123',
585
+ resourceId: 'user-456',
586
+ });
587
+
588
+ // After
589
+ await agent.stream('Hello', {
590
+ memory: {
591
+ thread: 'thread-123',
592
+ resource: 'user-456',
593
+ },
594
+ });
595
+ ```
596
+
597
+ #### `@mastra/server`
598
+
599
+ The `threadId`, `resourceId`, and `resourceid` fields have been removed from the main agent execution body schema. The server now expects the `memory` option format in request bodies. Legacy routes (`/api/agents/:agentId/generate-legacy` and `/api/agents/:agentId/stream-legacy`) continue to support the deprecated fields.
600
+
601
+ #### `@mastra/react`
602
+
603
+ The `useChat` hook now internally converts `threadId` to the `memory` option format when making API calls. No changes needed in component code - the hook handles the conversion automatically.
604
+
605
+ #### `@mastra/client-js`
606
+
607
+ When using the client SDK agent methods, use the `memory` option instead of `threadId`/`resourceId`:
608
+
609
+ ```ts
610
+ const agent = client.getAgent('my-agent');
611
+
612
+ // Before
613
+ await agent.generate({
614
+ messages: [...],
615
+ threadId: 'thread-123',
616
+ resourceId: 'user-456',
617
+ });
618
+
619
+ // After
620
+ await agent.generate({
621
+ messages: [...],
622
+ memory: {
623
+ thread: 'thread-123',
624
+ resource: 'user-456',
625
+ },
626
+ });
627
+ ```
628
+
629
+ - Add human-in-the-loop (HITL) support to agent networks ([#11678](https://github.com/mastra-ai/mastra/pull/11678))
630
+ - Add suspend/resume capabilities to agent network
631
+ - Enable auto-resume for suspended network execution via `autoResumeSuspendedTools`
632
+
633
+ `agent.resumeNetwork`, `agent.approveNetworkToolCall`, `agent.declineNetworkToolCall`
634
+
635
+ - Fix text parts incorrectly merging across tool calls ([#11783](https://github.com/mastra-ai/mastra/pull/11783))
636
+
637
+ Previously, when an agent produced text before and after a tool call (e.g., "Let me search for that" → tool call → "Here's what I found"), the text parts would be merged into a single part, losing the separation. This fix introduces a `textId` property to track separate text streams, ensuring each text stream maintains its own text part in the UI message.
638
+
639
+ Fixes #11577
640
+
641
+ - Updated dependencies [[`9d5059e`](https://github.com/mastra-ai/mastra/commit/9d5059eae810829935fb08e81a9bb7ecd5b144a7), [`ef756c6`](https://github.com/mastra-ai/mastra/commit/ef756c65f82d16531c43f49a27290a416611e526), [`610a70b`](https://github.com/mastra-ai/mastra/commit/610a70bdad282079f0c630e0d7bb284578f20151)]:
642
+ - @mastra/client-js@1.0.0-beta.22
643
+
644
+ ## 0.1.0-beta.21
645
+
646
+ ### Patch Changes
647
+
648
+ - Updated dependencies:
649
+ - @mastra/client-js@1.0.0-beta.21
650
+
651
+ ## 0.1.0-beta.20
652
+
653
+ ### Patch Changes
654
+
655
+ - Fix TypeScript errors during build declaration generation ([#11682](https://github.com/mastra-ai/mastra/pull/11682))
656
+
657
+ Updated test file `toUIMessage.test.ts` to match current `@mastra/core` types:
658
+ - Changed `error` property from string to `Error` object (per `StepFailure` type)
659
+ - Added missing `resumeSchema` property to `tool-call-approval` payloads (per `ToolCallApprovalPayload` type)
660
+ - Added `zod` as peer/dev dependency for test type support
661
+
662
+ - Fixed agent network not returning text response when routing agent handles requests without delegation. ([#11497](https://github.com/mastra-ai/mastra/pull/11497))
663
+
664
+ **What changed:**
665
+ - Agent networks now correctly stream text responses when the routing agent decides to handle a request itself instead of delegating to sub-agents, workflows, or tools
666
+ - Added fallback in transformers to ensure text is always returned even if core events are missing
667
+
668
+ **Why this matters:**
669
+ Previously, when using `toAISdkV5Stream` or `networkRoute()` outside of the Mastra Studio UI, no text content was returned when the routing agent handled requests directly. This fix ensures consistent behavior across all API routes.
670
+
671
+ Fixes #11219
672
+
673
+ - Display network completion validation results and scorer feedback in the Playground when viewing agent network runs, letting users see pass/fail status and actionable feedback from completion scorers ([#11562](https://github.com/mastra-ai/mastra/pull/11562))
674
+
675
+ - Updated dependencies [[`bc72b52`](https://github.com/mastra-ai/mastra/commit/bc72b529ee4478fe89ecd85a8be47ce0127b82a0), [`c042bd0`](https://github.com/mastra-ai/mastra/commit/c042bd0b743e0e86199d0cb83344ca7690e34a9c), [`e4d366a`](https://github.com/mastra-ai/mastra/commit/e4d366aeb500371dd4210d6aa8361a4c21d87034), [`58e3931`](https://github.com/mastra-ai/mastra/commit/58e3931af9baa5921688566210f00fb0c10479fa), [`08bb631`](https://github.com/mastra-ai/mastra/commit/08bb631ae2b14684b2678e3549d0b399a6f0561e), [`106c960`](https://github.com/mastra-ai/mastra/commit/106c960df5d110ec15ac8f45de8858597fb90ad5)]:
676
+ - @mastra/client-js@1.0.0-beta.20
677
+
678
+ ## 0.1.0-beta.19
679
+
680
+ ### Patch Changes
681
+
682
+ - Updated dependencies:
683
+ - @mastra/client-js@1.0.0-beta.19
684
+
685
+ ## 0.1.0-beta.18
686
+
687
+ ### Patch Changes
688
+
689
+ - Updated dependencies:
690
+ - @mastra/client-js@1.0.0-beta.18
691
+
692
+ ## 0.1.0-beta.17
693
+
694
+ ### Patch Changes
695
+
696
+ - Updated dependencies:
697
+ - @mastra/client-js@1.0.0-beta.17
698
+
699
+ ## 0.1.0-beta.16
700
+
701
+ ### Patch Changes
702
+
703
+ - Updated dependencies [[`6cbb549`](https://github.com/mastra-ai/mastra/commit/6cbb549475201a2fbf158f0fd7323f6495f46d08)]:
704
+ - @mastra/client-js@1.0.0-beta.16
705
+
706
+ ## 0.1.0-beta.15
707
+
708
+ ### Minor Changes
709
+
710
+ - Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
711
+
712
+ ## What changed
713
+
714
+ Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
715
+
716
+ **Before:**
717
+
718
+ ```typescript
719
+ // Old span structure
720
+ span.agentId; // 'my-agent'
721
+ span.toolId; // undefined
722
+ span.workflowId; // undefined
723
+ ```
724
+
725
+ **After:**
726
+
727
+ ```typescript
728
+ // New span structure
729
+ span.entityType; // EntityType.AGENT
730
+ span.entityId; // 'my-agent'
731
+ span.entityName; // 'My Agent'
732
+ ```
733
+
734
+ ## New `listTraces()` API
735
+
736
+ Query traces with filtering, pagination, and sorting:
737
+
738
+ ```typescript
739
+ const { spans, pagination } = await storage.listTraces({
740
+ filters: {
741
+ entityType: EntityType.AGENT,
742
+ entityId: 'my-agent',
743
+ userId: 'user-123',
744
+ environment: 'production',
745
+ status: TraceStatus.SUCCESS,
746
+ startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
747
+ },
748
+ pagination: { page: 0, perPage: 50 },
749
+ orderBy: { field: 'startedAt', direction: 'DESC' },
750
+ });
751
+ ```
752
+
753
+ **Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
754
+
755
+ ## New retrieval methods
756
+ - `getSpan({ traceId, spanId })` - Get a single span
757
+ - `getRootSpan({ traceId })` - Get the root span of a trace
758
+ - `getTrace({ traceId })` - Get all spans for a trace
759
+
760
+ ## Backward compatibility
761
+
762
+ The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
763
+
764
+ ## Migration
765
+
766
+ **Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
767
+
768
+ **No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
769
+
770
+ ### Patch Changes
771
+
772
+ - Updated dependencies [[`d90ea65`](https://github.com/mastra-ai/mastra/commit/d90ea6536f7aa51c6545a4e9215b55858e98e16d), [`d171e55`](https://github.com/mastra-ai/mastra/commit/d171e559ead9f52ec728d424844c8f7b164c4510), [`632fdb8`](https://github.com/mastra-ai/mastra/commit/632fdb8b3cd9ff6f90399256d526db439fc1758b), [`184f01d`](https://github.com/mastra-ai/mastra/commit/184f01d1f534ec0be9703d3996f2e088b4a560eb)]:
773
+ - @mastra/client-js@1.0.0-beta.15
774
+
775
+ ## 0.1.0-beta.14
776
+
777
+ ### Patch Changes
778
+
779
+ - Updated dependencies [[`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7)]:
780
+ - @mastra/client-js@1.0.0-beta.14
781
+
782
+ ## 0.1.0-beta.13
783
+
784
+ ### Patch Changes
785
+
786
+ - Updated dependencies:
787
+ - @mastra/client-js@1.0.0-beta.13
788
+
789
+ ## 0.1.0-beta.12
790
+
791
+ ### Patch Changes
792
+
793
+ - Remove redundant toolCalls from network agent finalResult ([#11189](https://github.com/mastra-ai/mastra/pull/11189))
794
+
795
+ The network agent's `finalResult` was storing `toolCalls` separately even though all tool call information is already present in the `messages` array (as `tool-call` and `tool-result` type messages). This caused significant token waste since the routing agent reads this data from memory on every iteration.
796
+
797
+ **Before:** `finalResult: { text, toolCalls, messages }`
798
+ **After:** `finalResult: { text, messages }`
799
+
800
+ +**Migration:** If you were accessing `finalResult.toolCalls`, retrieve tool calls from `finalResult.messages` by filtering for messages with `type: 'tool-call'`.
801
+
802
+ Updated `@mastra/react` to extract tool calls directly from the `messages` array instead of the removed `toolCalls` field when resolving initial messages from memory.
803
+
804
+ Fixes #11059
805
+
806
+ - Auto resume suspended tools if `autoResumeSuspendedTools: true` ([#11157](https://github.com/mastra-ai/mastra/pull/11157))
807
+
808
+ The flag can be added to `defaultAgentOptions` when creating the agent or to options in `agent.stream` or `agent.generate`
809
+
810
+ ```typescript
811
+ const agent = new Agent({
812
+ //...agent information,
813
+ defaultAgentOptions: {
814
+ autoResumeSuspendedTools: true,
815
+ },
816
+ });
817
+ ```
818
+
819
+ - Updated dependencies [[`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`1b85674`](https://github.com/mastra-ai/mastra/commit/1b85674123708d9b85834dccc9eae601a9d0891c), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`439eaf7`](https://github.com/mastra-ai/mastra/commit/439eaf75447809b05e326666675a4dcbf9c334ce)]:
820
+ - @mastra/client-js@1.0.0-beta.12
821
+
822
+ ## 0.1.0-beta.11
823
+
824
+ ### Patch Changes
825
+
826
+ - Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
827
+
828
+ When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
829
+
830
+ ```typescript showLineNumbers copy
831
+ const run = await workflow.createRun();
832
+ const result = await run.start({ inputData: { message: 'Hello' } });
833
+
834
+ if (result.status === 'tripwire') {
835
+ console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
836
+ console.log('Processor ID:', result.tripwire?.processorId);
837
+ console.log('Retry requested:', result.tripwire?.retry);
838
+ }
839
+ ```
840
+
841
+ Adds new UI state for tripwire in agent chat and workflow UI.
842
+
843
+ This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
844
+
845
+ - Updated dependencies [[`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
846
+ - @mastra/client-js@1.0.0-beta.11
847
+
848
+ ## 0.1.0-beta.10
849
+
850
+ ### Minor Changes
851
+
852
+ - Fix "MessagePartRuntime is not available" error when chatting with agents in Studio playground by replacing deprecated `useMessagePart` hook with `useAssistantState` ([#11039](https://github.com/mastra-ai/mastra/pull/11039))
853
+
854
+ ### Patch Changes
855
+
856
+ - fix: persist data-\* chunks from writer.custom() to memory storage ([#10884](https://github.com/mastra-ai/mastra/pull/10884))
857
+ - Add persistence for custom data chunks (`data-*` parts) emitted via `writer.custom()` in tools
858
+ - Data chunks are now saved to message storage so they survive page refreshes
859
+ - Update `@assistant-ui/react` to v0.11.47 with native `DataMessagePart` support
860
+ - Convert `data-*` parts to `DataMessagePart` format (`{ type: 'data', name: string, data: T }`)
861
+ - Update related `@assistant-ui/*` packages for compatibility
862
+
863
+ - Updated dependencies [[`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d)]:
864
+ - @mastra/client-js@1.0.0-beta.10
865
+
866
+ ## 0.1.0-beta.9
867
+
868
+ ### Patch Changes
869
+
870
+ - Updated dependencies [[`5a1ede1`](https://github.com/mastra-ai/mastra/commit/5a1ede1f7ab527b9ead11f7eee2f73e67aeca9e4)]:
871
+ - @mastra/client-js@1.0.0-beta.9
872
+
873
+ ## 0.1.0-beta.8
874
+
875
+ ### Patch Changes
876
+
877
+ - Updated dependencies:
878
+ - @mastra/client-js@1.0.0-beta.8
879
+
880
+ ## 0.1.0-beta.7
881
+
882
+ ### Patch Changes
883
+
884
+ - Updated dependencies [[`5fe71bc`](https://github.com/mastra-ai/mastra/commit/5fe71bc925dfce597df69c89241f33b378028c63), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141)]:
885
+ - @mastra/client-js@1.0.0-beta.7
886
+
887
+ ## 0.1.0-beta.6
888
+
889
+ ### Patch Changes
890
+
891
+ - Adjust the types to accept tracingOptions ([#10742](https://github.com/mastra-ai/mastra/pull/10742))
892
+
893
+ - Updated dependencies [[`6edf340`](https://github.com/mastra-ai/mastra/commit/6edf3402f6a46ee8def2f42a2287785251fbffd6), [`ad7e8f1`](https://github.com/mastra-ai/mastra/commit/ad7e8f16ac843cbd16687ad47b66ba96bcffe111), [`e1b7118`](https://github.com/mastra-ai/mastra/commit/e1b7118f42ca0a97247afc75e57dcd5fdf987752), [`441c7b6`](https://github.com/mastra-ai/mastra/commit/441c7b6665915cfa7fd625fded8c0f518530bf10), [`e849603`](https://github.com/mastra-ai/mastra/commit/e849603a596269069f58a438b98449ea2770493d)]:
894
+ - @mastra/client-js@1.0.0-beta.6
895
+
896
+ ## 0.1.0-beta.5
897
+
898
+ ### Patch Changes
899
+
900
+ - Configurable resourceId in react useChat ([#10461](https://github.com/mastra-ai/mastra/pull/10461))
901
+
902
+ - fix(agent): persist messages before tool suspension ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
903
+
904
+ Fixes issues where thread and messages were not saved before suspension when tools require approval or call suspend() during execution. This caused conversation history to be lost if users refreshed during tool approval or suspension.
905
+
906
+ **Backend changes (@mastra/core):**
907
+ - Add assistant messages to messageList immediately after LLM execution
908
+ - Flush messages synchronously before suspension to persist state
909
+ - Create thread if it doesn't exist before flushing
910
+ - Add metadata helpers to persist and remove tool approval state
911
+ - Pass saveQueueManager and memory context through workflow for immediate persistence
912
+
913
+ **Frontend changes (@mastra/react):**
914
+ - Extract runId from pending approvals to enable resumption after refresh
915
+ - Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
916
+ - Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
917
+ - Change runId from hardcoded `agentId` to unique `uuid()`
918
+
919
+ **UI changes (@mastra/playground-ui):**
920
+ - Handle tool calls awaiting approval in message initialization
921
+ - Convert approval metadata format when loading initial messages
922
+
923
+ Fixes #9745, #9906
924
+
925
+ - Updated dependencies [[`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f)]:
926
+ - @mastra/client-js@1.0.0-beta.5
927
+
928
+ ## 0.1.0-beta.4
929
+
930
+ ### Patch Changes
931
+
932
+ - Updated dependencies [[`6a86fe5`](https://github.com/mastra-ai/mastra/commit/6a86fe56b8ff53ca2eb3ed87ffc0748749ebadce), [`595a3b8`](https://github.com/mastra-ai/mastra/commit/595a3b8727c901f44e333909c09843c711224440)]:
933
+ - @mastra/client-js@1.0.0-beta.4
934
+
935
+ ## 0.1.0-beta.3
936
+
937
+ ### Patch Changes
938
+
939
+ - Updated dependencies [[`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365)]:
940
+ - @mastra/client-js@1.0.0-beta.3
941
+
942
+ ## 0.1.0-beta.2
943
+
944
+ ### Patch Changes
945
+
946
+ - Updated dependencies []:
947
+ - @mastra/client-js@1.0.0-beta.2
948
+
949
+ ## 0.1.0-beta.1
950
+
951
+ ### Patch Changes
952
+
953
+ - Updated dependencies [[`dbd9db0`](https://github.com/mastra-ai/mastra/commit/dbd9db0d5c2797a210b9098e7e3e613718e5442f)]:
954
+ - @mastra/client-js@1.0.0-beta.1
955
+
956
+ ## 0.1.0-beta.0
957
+
958
+ ### Minor Changes
959
+
960
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
961
+
962
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
10
963
 
11
964
  - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
12
965
  Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
@@ -17,8 +970,8 @@
17
970
 
18
971
  - Fix multi modal in react sdk ([#9373](https://github.com/mastra-ai/mastra/pull/9373))
19
972
 
20
- - Updated dependencies [[`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`f93d992`](https://github.com/mastra-ai/mastra/commit/f93d992a37d5431ab4a71246835d403ef7c4ce85), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`dfe3f8c`](https://github.com/mastra-ai/mastra/commit/dfe3f8c7376ffe159236819e19ca522143c1f972), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014)]:
21
- - @mastra/client-js@0.0.0-vnext-20251104230439
973
+ - Updated dependencies [[`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`1ee3411`](https://github.com/mastra-ai/mastra/commit/1ee34113192b11aa8bcdd8d9d5830ae13254b345), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`f93d992`](https://github.com/mastra-ai/mastra/commit/f93d992a37d5431ab4a71246835d403ef7c4ce85), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`ea0b8de`](https://github.com/mastra-ai/mastra/commit/ea0b8dec0d4bc86a72a7e75b2f56c6017c58786d), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`519d9e6`](https://github.com/mastra-ai/mastra/commit/519d9e6d31910457c54bdae8b7b7cb3a69f41831), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`dfe3f8c`](https://github.com/mastra-ai/mastra/commit/dfe3f8c7376ffe159236819e19ca522143c1f972), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`e8dcd71`](https://github.com/mastra-ai/mastra/commit/e8dcd71fa5e473c8ba1d6dad99eef182d20a0491), [`63f2f18`](https://github.com/mastra-ai/mastra/commit/63f2f1863dffe3ad23221d0660ed4e4f2b81789d), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014)]:
974
+ - @mastra/client-js@1.0.0-beta.0
22
975
 
23
976
  ## 0.0.10
24
977