@mastra/client-js 0.0.0-studio-deploy-20260404182525 → 0.0.0-studio-cli-20260504022012
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 +917 -3
- package/dist/_types/@internal_ai-sdk-v5/dist/index.d.ts +466 -1764
- package/dist/client.d.ts +46 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/docs/SKILL.md +3 -1
- package/dist/docs/assets/SOURCE_MAP.json +7 -2
- package/dist/docs/references/docs-editor-overview.md +290 -0
- package/dist/docs/references/docs-server-mastra-client.md +2 -2
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-messages.md +95 -0
- package/dist/docs/references/reference-ai-sdk-to-ai-sdk-stream.md +15 -0
- package/dist/docs/references/reference-client-js-agents.md +166 -0
- package/dist/docs/references/reference-client-js-conversations.md +1 -1
- package/dist/docs/references/reference-client-js-mastra-client.md +23 -0
- package/dist/docs/references/reference-client-js-observability.md +2 -2
- package/dist/docs/references/reference-client-js-responses.md +1 -1
- package/dist/docs/references/reference-client-js-workflows.md +62 -1
- package/dist/index.cjs +660 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +657 -35
- package/dist/index.js.map +1 -1
- package/dist/resources/a2a.d.ts +56 -10
- package/dist/resources/a2a.d.ts.map +1 -1
- package/dist/resources/agent.d.ts +69 -0
- package/dist/resources/agent.d.ts.map +1 -1
- package/dist/resources/channels.d.ts +63 -0
- package/dist/resources/channels.d.ts.map +1 -0
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/memory-thread.d.ts.map +1 -1
- package/dist/resources/observability.d.ts +18 -1
- package/dist/resources/observability.d.ts.map +1 -1
- package/dist/resources/run.d.ts +26 -2
- package/dist/resources/run.d.ts.map +1 -1
- package/dist/resources/vector.d.ts +5 -5
- package/dist/resources/vector.d.ts.map +1 -1
- package/dist/types.d.ts +115 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/process-a2a-stream.d.ts +4 -0
- package/dist/utils/process-a2a-stream.d.ts.map +1 -0
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,925 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
-
## 0.0.0-studio-
|
|
3
|
+
## 0.0.0-studio-cli-20260504022012
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added schedule methods to the client for the new scheduled workflows feature. ([#15830](https://github.com/mastra-ai/mastra/pull/15830))
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { MastraClient } from '@mastra/client-js';
|
|
11
|
+
|
|
12
|
+
const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
|
|
13
|
+
|
|
14
|
+
const schedules = await client.listSchedules({ workflowId: 'daily-report' });
|
|
15
|
+
const schedule = await client.getSchedule('wf_daily-report');
|
|
16
|
+
const triggers = await client.listScheduleTriggers('wf_daily-report', { limit: 50 });
|
|
17
|
+
|
|
18
|
+
await client.pauseSchedule('wf_daily-report');
|
|
19
|
+
await client.resumeSchedule('wf_daily-report');
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Pause is durable across redeploys. Resume recomputes the next fire time from now so a long-paused schedule does not fire a backlog.
|
|
23
|
+
|
|
24
|
+
- Fixed Vector resource return types so they match what the server actually returns. Previously the types declared shapes that did not exist at runtime, leading to runtime failures with no TypeScript errors. ([#16036](https://github.com/mastra-ai/mastra/pull/16036))
|
|
25
|
+
|
|
26
|
+
**What changed**
|
|
27
|
+
- `vector.getIndexes()` now returns `string[]` (was `{ indexes: string[] }`)
|
|
28
|
+
- `vector.upsert()` now returns `{ ids: string[] }` (was `string[]`)
|
|
29
|
+
- `vector.query()` now returns `QueryResult[]` (was `{ results: QueryResult[] }`)
|
|
30
|
+
|
|
31
|
+
**Before**
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
const response = await client.getVector('docs').getIndexes();
|
|
35
|
+
console.log(response.indexes); // undefined at runtime
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**After**
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const indexes = await client.getVector('docs').getIndexes();
|
|
42
|
+
console.log(indexes[0]); // 'docs-index'
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Closes #15089.
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [[`6dcd65f`](https://github.com/mastra-ai/mastra/commit/6dcd65f2a34069e6dc43ba35f1d11119b9b40bef), [`c05c9a1`](https://github.com/mastra-ai/mastra/commit/c05c9a13230988cef6d438a62f37760f31927bc7), [`e24aacb`](https://github.com/mastra-ai/mastra/commit/e24aacba07bd66f5d95b636dc24016fca26b52cf), [`1c2dda8`](https://github.com/mastra-ai/mastra/commit/1c2dda805fbfccc0abf55d4cb20cc34402dc3f0c), [`c721164`](https://github.com/mastra-ai/mastra/commit/c7211643f7ac861f83b19a3757cc921487fc9d75), [`1b55954`](https://github.com/mastra-ai/mastra/commit/1b559541c1e08a10e49d01ffc51a634dfc37a286), [`5adc55e`](https://github.com/mastra-ai/mastra/commit/5adc55e63407be8ee977914957d68bcc2a075ceb), [`70017d7`](https://github.com/mastra-ai/mastra/commit/70017d72ab741b5d7040e2a15c251a317782e39e), [`e4942bc`](https://github.com/mastra-ai/mastra/commit/e4942bc7fdc903572f7d84f26d5e15f9d39c763d)]:
|
|
50
|
+
- @mastra/core@0.0.0-studio-cli-20260504022012
|
|
51
|
+
|
|
52
|
+
## 1.17.0-alpha.1
|
|
53
|
+
|
|
54
|
+
### Minor Changes
|
|
55
|
+
|
|
56
|
+
- Added schedule methods to the client for the new scheduled workflows feature. ([#15830](https://github.com/mastra-ai/mastra/pull/15830))
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { MastraClient } from '@mastra/client-js';
|
|
60
|
+
|
|
61
|
+
const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
|
|
62
|
+
|
|
63
|
+
const schedules = await client.listSchedules({ workflowId: 'daily-report' });
|
|
64
|
+
const schedule = await client.getSchedule('wf_daily-report');
|
|
65
|
+
const triggers = await client.listScheduleTriggers('wf_daily-report', { limit: 50 });
|
|
66
|
+
|
|
67
|
+
await client.pauseSchedule('wf_daily-report');
|
|
68
|
+
await client.resumeSchedule('wf_daily-report');
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Pause is durable across redeploys. Resume recomputes the next fire time from now so a long-paused schedule does not fire a backlog.
|
|
72
|
+
|
|
73
|
+
- Fixed Vector resource return types so they match what the server actually returns. Previously the types declared shapes that did not exist at runtime, leading to runtime failures with no TypeScript errors. ([#16036](https://github.com/mastra-ai/mastra/pull/16036))
|
|
74
|
+
|
|
75
|
+
**What changed**
|
|
76
|
+
- `vector.getIndexes()` now returns `string[]` (was `{ indexes: string[] }`)
|
|
77
|
+
- `vector.upsert()` now returns `{ ids: string[] }` (was `string[]`)
|
|
78
|
+
- `vector.query()` now returns `QueryResult[]` (was `{ results: QueryResult[] }`)
|
|
79
|
+
|
|
80
|
+
**Before**
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
const response = await client.getVector('docs').getIndexes();
|
|
84
|
+
console.log(response.indexes); // undefined at runtime
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**After**
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
const indexes = await client.getVector('docs').getIndexes();
|
|
91
|
+
console.log(indexes[0]); // 'docs-index'
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Closes #15089.
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- Updated dependencies [[`c05c9a1`](https://github.com/mastra-ai/mastra/commit/c05c9a13230988cef6d438a62f37760f31927bc7), [`e24aacb`](https://github.com/mastra-ai/mastra/commit/e24aacba07bd66f5d95b636dc24016fca26b52cf), [`c721164`](https://github.com/mastra-ai/mastra/commit/c7211643f7ac861f83b19a3757cc921487fc9d75), [`1b55954`](https://github.com/mastra-ai/mastra/commit/1b559541c1e08a10e49d01ffc51a634dfc37a286), [`5adc55e`](https://github.com/mastra-ai/mastra/commit/5adc55e63407be8ee977914957d68bcc2a075ceb), [`70017d7`](https://github.com/mastra-ai/mastra/commit/70017d72ab741b5d7040e2a15c251a317782e39e), [`e4942bc`](https://github.com/mastra-ai/mastra/commit/e4942bc7fdc903572f7d84f26d5e15f9d39c763d)]:
|
|
99
|
+
- @mastra/core@1.32.0-alpha.1
|
|
100
|
+
|
|
101
|
+
## 1.16.1-alpha.0
|
|
102
|
+
|
|
103
|
+
### Patch Changes
|
|
104
|
+
|
|
105
|
+
- Updated dependencies [[`6dcd65f`](https://github.com/mastra-ai/mastra/commit/6dcd65f2a34069e6dc43ba35f1d11119b9b40bef), [`1c2dda8`](https://github.com/mastra-ai/mastra/commit/1c2dda805fbfccc0abf55d4cb20cc34402dc3f0c)]:
|
|
106
|
+
- @mastra/core@1.31.1-alpha.0
|
|
107
|
+
|
|
108
|
+
## 1.16.0
|
|
109
|
+
|
|
110
|
+
### Minor Changes
|
|
111
|
+
|
|
112
|
+
- Added Channels resource to MastraClient with listPlatforms, listInstallations, connect, and disconnect methods for managing platform channel integrations. ([#15876](https://github.com/mastra-ai/mastra/pull/15876))
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- Updated dependencies [[`1723e09`](https://github.com/mastra-ai/mastra/commit/1723e099829892419ddbfe49287acfeac2522724), [`629f9e9`](https://github.com/mastra-ai/mastra/commit/629f9e9a7e56aa8f129515a3923c5813298790c7), [`25168fb`](https://github.com/mastra-ai/mastra/commit/25168fb9c1de9db7f8171df4f58ceb842c53aa29), [`ab34b5a`](https://github.com/mastra-ai/mastra/commit/ab34b5a2191b8e4353df1dbf7b9155e7d6628d79), [`5fb6c2a`](https://github.com/mastra-ai/mastra/commit/5fb6c2a95c1843cc231704b91354311fc1f34a71), [`2b0f355`](https://github.com/mastra-ai/mastra/commit/2b0f3553be3e9e5524da539a66e5cf82668440a4), [`394f0cf`](https://github.com/mastra-ai/mastra/commit/394f0cfc31e6b4d801219fdef2e9cc69e5bc8682), [`b2deb29`](https://github.com/mastra-ai/mastra/commit/b2deb29412b300c868655b5840463614fbb7962d), [`66644be`](https://github.com/mastra-ai/mastra/commit/66644beac1aa560f0e417956ff007c89341dc382), [`e109607`](https://github.com/mastra-ai/mastra/commit/e10960749251e34d46b480a20648c490fd30381b), [`310b953`](https://github.com/mastra-ai/mastra/commit/310b95345f302dcd5ba3ed862bdc96f059d44122), [`3d7f709`](https://github.com/mastra-ai/mastra/commit/3d7f709b615e588050bb6283c4ee5cfe2978cbde), [`48a42f1`](https://github.com/mastra-ai/mastra/commit/48a42f114a4006a95e0b7a1b5ad1a24815a175c2), [`8091c7c`](https://github.com/mastra-ai/mastra/commit/8091c7c944d15e13fef6d61b6cfd903f158d4006), [`2c83efc`](https://github.com/mastra-ai/mastra/commit/2c83efc4482b3efe50830e3b8b4ba9a8d219edff), [`43f0e1d`](https://github.com/mastra-ai/mastra/commit/43f0e1d5d5a74ba6fc746f2ad89ebe0c64777a7d), [`da0b9e2`](https://github.com/mastra-ai/mastra/commit/da0b9e2ba7ecc560213b426d6c097fe63946086e), [`282a10c`](https://github.com/mastra-ai/mastra/commit/282a10c9446e9922afe80e10e3770481c8ac8a28), [`04151c7`](https://github.com/mastra-ai/mastra/commit/04151c7dcea934b4fe9076708a23fac161195414), [`8091c7c`](https://github.com/mastra-ai/mastra/commit/8091c7c944d15e13fef6d61b6cfd903f158d4006)]:
|
|
117
|
+
- @mastra/core@1.31.0
|
|
118
|
+
|
|
119
|
+
## 1.16.0-alpha.5
|
|
120
|
+
|
|
121
|
+
### Patch Changes
|
|
122
|
+
|
|
123
|
+
- Updated dependencies:
|
|
124
|
+
- @mastra/core@1.31.0-alpha.5
|
|
125
|
+
|
|
126
|
+
## 1.16.0-alpha.4
|
|
127
|
+
|
|
128
|
+
### Patch Changes
|
|
129
|
+
|
|
130
|
+
- Updated dependencies [[`8091c7c`](https://github.com/mastra-ai/mastra/commit/8091c7c944d15e13fef6d61b6cfd903f158d4006), [`04151c7`](https://github.com/mastra-ai/mastra/commit/04151c7dcea934b4fe9076708a23fac161195414), [`8091c7c`](https://github.com/mastra-ai/mastra/commit/8091c7c944d15e13fef6d61b6cfd903f158d4006)]:
|
|
131
|
+
- @mastra/core@1.31.0-alpha.4
|
|
132
|
+
|
|
133
|
+
## 1.16.0-alpha.3
|
|
134
|
+
|
|
135
|
+
### Minor Changes
|
|
136
|
+
|
|
137
|
+
- Added Channels resource to MastraClient with listPlatforms, listInstallations, connect, and disconnect methods for managing platform channel integrations. ([#15876](https://github.com/mastra-ai/mastra/pull/15876))
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- Updated dependencies [[`b2deb29`](https://github.com/mastra-ai/mastra/commit/b2deb29412b300c868655b5840463614fbb7962d), [`66644be`](https://github.com/mastra-ai/mastra/commit/66644beac1aa560f0e417956ff007c89341dc382), [`310b953`](https://github.com/mastra-ai/mastra/commit/310b95345f302dcd5ba3ed862bdc96f059d44122), [`43f0e1d`](https://github.com/mastra-ai/mastra/commit/43f0e1d5d5a74ba6fc746f2ad89ebe0c64777a7d), [`da0b9e2`](https://github.com/mastra-ai/mastra/commit/da0b9e2ba7ecc560213b426d6c097fe63946086e)]:
|
|
142
|
+
- @mastra/core@1.31.0-alpha.3
|
|
143
|
+
|
|
144
|
+
## 1.15.3-alpha.2
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- Updated dependencies [[`2b0f355`](https://github.com/mastra-ai/mastra/commit/2b0f3553be3e9e5524da539a66e5cf82668440a4)]:
|
|
149
|
+
- @mastra/core@1.31.0-alpha.2
|
|
150
|
+
|
|
151
|
+
## 1.15.3-alpha.1
|
|
152
|
+
|
|
153
|
+
### Patch Changes
|
|
154
|
+
|
|
155
|
+
- Updated dependencies [[`e109607`](https://github.com/mastra-ai/mastra/commit/e10960749251e34d46b480a20648c490fd30381b)]:
|
|
156
|
+
- @mastra/core@1.31.0-alpha.1
|
|
157
|
+
|
|
158
|
+
## 1.15.3-alpha.0
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- Updated dependencies [[`1723e09`](https://github.com/mastra-ai/mastra/commit/1723e099829892419ddbfe49287acfeac2522724), [`629f9e9`](https://github.com/mastra-ai/mastra/commit/629f9e9a7e56aa8f129515a3923c5813298790c7), [`25168fb`](https://github.com/mastra-ai/mastra/commit/25168fb9c1de9db7f8171df4f58ceb842c53aa29), [`ab34b5a`](https://github.com/mastra-ai/mastra/commit/ab34b5a2191b8e4353df1dbf7b9155e7d6628d79), [`5fb6c2a`](https://github.com/mastra-ai/mastra/commit/5fb6c2a95c1843cc231704b91354311fc1f34a71), [`394f0cf`](https://github.com/mastra-ai/mastra/commit/394f0cfc31e6b4d801219fdef2e9cc69e5bc8682), [`3d7f709`](https://github.com/mastra-ai/mastra/commit/3d7f709b615e588050bb6283c4ee5cfe2978cbde), [`48a42f1`](https://github.com/mastra-ai/mastra/commit/48a42f114a4006a95e0b7a1b5ad1a24815a175c2), [`2c83efc`](https://github.com/mastra-ai/mastra/commit/2c83efc4482b3efe50830e3b8b4ba9a8d219edff), [`282a10c`](https://github.com/mastra-ai/mastra/commit/282a10c9446e9922afe80e10e3770481c8ac8a28)]:
|
|
163
|
+
- @mastra/core@1.31.0-alpha.0
|
|
164
|
+
|
|
165
|
+
## 1.15.2
|
|
166
|
+
|
|
167
|
+
### Patch Changes
|
|
168
|
+
|
|
169
|
+
- Remove incorrect deprecation markers from `getTask()` and `cancelTask()` in the Mastra A2A client. ([#15941](https://github.com/mastra-ai/mastra/pull/15941))
|
|
170
|
+
|
|
171
|
+
- Add durable agents with resumable streams ([#12557](https://github.com/mastra-ai/mastra/pull/12557))
|
|
172
|
+
|
|
173
|
+
Durable agents make agent execution resilient to disconnections, crashes, and long-running operations.
|
|
174
|
+
|
|
175
|
+
### The Problem
|
|
176
|
+
|
|
177
|
+
Standard agent streaming has two fragility points:
|
|
178
|
+
1. **Connection drops** - If a client disconnects mid-stream (network blip, browser refresh, mobile app backgrounded), all subsequent events are lost. The client has no way to "catch up" on what they missed.
|
|
179
|
+
2. **Long-running operations** - Agent loops with tool calls can take minutes. Holding an HTTP connection open that long is unreliable. If the server restarts or the connection times out, the work is lost.
|
|
180
|
+
|
|
181
|
+
### The Solution
|
|
182
|
+
|
|
183
|
+
**Resumable streams** solve connection drops. Every event is cached with a sequential index. If a client disconnects at event 5, they can reconnect and request events starting from index 6. They receive cached events immediately, then continue with live events as they arrive.
|
|
184
|
+
|
|
185
|
+
**Durable execution** solves long-running operations. Instead of executing the agent loop directly in the HTTP request, execution happens in a workflow engine (built-in evented engine or Inngest). The HTTP request just subscribes to events. If the connection drops, execution continues. The client can reconnect anytime to observe progress.
|
|
186
|
+
|
|
187
|
+
### Usage
|
|
188
|
+
|
|
189
|
+
Wrap any existing `Agent` with durability using factory functions:
|
|
190
|
+
|
|
191
|
+
```typescript
|
|
192
|
+
import { Agent } from '@mastra/core/agent';
|
|
193
|
+
import { createDurableAgent } from '@mastra/core/agent/durable';
|
|
194
|
+
|
|
195
|
+
const agent = new Agent({
|
|
196
|
+
id: 'my-agent',
|
|
197
|
+
model: openai('gpt-4'),
|
|
198
|
+
instructions: 'You are helpful',
|
|
199
|
+
});
|
|
200
|
+
|
|
201
|
+
const durableAgent = createDurableAgent({ agent });
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Factory functions for different execution strategies:**
|
|
205
|
+
|
|
206
|
+
| Factory | Execution | Use Case |
|
|
207
|
+
| ---------------------------------------- | ----------------------------------- | ------------------------------- |
|
|
208
|
+
| `createDurableAgent({ agent })` | Local, synchronous | Development, simple deployments |
|
|
209
|
+
| `createEventedAgent({ agent })` | Fire-and-forget via workflow engine | Long-running operations |
|
|
210
|
+
| `createInngestAgent({ agent, inngest })` | Inngest-powered | Production, distributed systems |
|
|
211
|
+
|
|
212
|
+
### Resumable Streams
|
|
213
|
+
|
|
214
|
+
```typescript
|
|
215
|
+
// Start streaming
|
|
216
|
+
const { runId, output } = await durableAgent.stream('Analyze this data...');
|
|
217
|
+
|
|
218
|
+
// Client disconnects at event 5...
|
|
219
|
+
|
|
220
|
+
// Reconnect and resume from where we left off
|
|
221
|
+
const { output: resumed } = await durableAgent.observe(runId, { offset: 6 });
|
|
222
|
+
// Receives events 6, 7, 8... from cache, then continues with live events
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### PubSub and Cache
|
|
226
|
+
|
|
227
|
+
Durable agents use two infrastructure components:
|
|
228
|
+
|
|
229
|
+
| Component | Purpose | Default |
|
|
230
|
+
| ---------- | ----------------------------------------- | --------------------- |
|
|
231
|
+
| **PubSub** | Real-time event delivery during streaming | `EventEmitterPubSub` |
|
|
232
|
+
| **Cache** | Stores events for replay on reconnection | `InMemoryServerCache` |
|
|
233
|
+
|
|
234
|
+
When `stream()` is called, events flow through pubsub in real-time. The cache stores each event with a sequential index. When `observe()` is called, missed events replay from cache before continuing with live events.
|
|
235
|
+
|
|
236
|
+
**Configure via Mastra instance (recommended):**
|
|
237
|
+
|
|
238
|
+
```typescript
|
|
239
|
+
const mastra = new Mastra({
|
|
240
|
+
cache: new RedisServerCache({ url: 'redis://...' }),
|
|
241
|
+
pubsub: new RedisPubSub({ url: 'redis://...' }),
|
|
242
|
+
agents: {
|
|
243
|
+
// Inherits cache and pubsub from Mastra
|
|
244
|
+
myAgent: createDurableAgent({ agent }),
|
|
245
|
+
},
|
|
246
|
+
});
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**Configure per-agent (overrides Mastra):**
|
|
250
|
+
|
|
251
|
+
```typescript
|
|
252
|
+
const durableAgent = createDurableAgent({
|
|
253
|
+
agent,
|
|
254
|
+
cache: new RedisServerCache({ url: 'redis://...' }),
|
|
255
|
+
pubsub: new RedisPubSub({ url: 'redis://...' }),
|
|
256
|
+
});
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
**Disable caching (streams won't be resumable):**
|
|
260
|
+
|
|
261
|
+
```typescript
|
|
262
|
+
const durableAgent = createDurableAgent({ agent, cache: false });
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
For single-instance deployments, the defaults work fine. For multi-instance deployments (load balancer, horizontal scaling), use Redis-backed implementations so any instance can serve reconnection requests.
|
|
266
|
+
|
|
267
|
+
### Class Hierarchy
|
|
268
|
+
- `DurableAgent` extends `Agent` - base class with resumable streams
|
|
269
|
+
- `EventedAgent` extends `DurableAgent` - fire-and-forget execution
|
|
270
|
+
- `InngestAgent` extends `DurableAgent` - Inngest-powered execution
|
|
271
|
+
|
|
272
|
+
- Updated dependencies [[`920c757`](https://github.com/mastra-ai/mastra/commit/920c75799c6bd71787d86deaf654a35af4c839ca), [`d587199`](https://github.com/mastra-ai/mastra/commit/d5871993c0371bde2b0717d6b47194755baa1443), [`1fe2533`](https://github.com/mastra-ai/mastra/commit/1fe2533c4382ca6858aac7c4b63e888c2eac6541), [`f8694b6`](https://github.com/mastra-ai/mastra/commit/f8694b6fa0b7a5cde71d794c3bbef4957c55bcb8)]:
|
|
273
|
+
- @mastra/core@1.30.0
|
|
274
|
+
|
|
275
|
+
## 1.15.2-alpha.1
|
|
276
|
+
|
|
277
|
+
### Patch Changes
|
|
278
|
+
|
|
279
|
+
- Add durable agents with resumable streams ([#12557](https://github.com/mastra-ai/mastra/pull/12557))
|
|
280
|
+
|
|
281
|
+
Durable agents make agent execution resilient to disconnections, crashes, and long-running operations.
|
|
282
|
+
|
|
283
|
+
### The Problem
|
|
284
|
+
|
|
285
|
+
Standard agent streaming has two fragility points:
|
|
286
|
+
1. **Connection drops** - If a client disconnects mid-stream (network blip, browser refresh, mobile app backgrounded), all subsequent events are lost. The client has no way to "catch up" on what they missed.
|
|
287
|
+
2. **Long-running operations** - Agent loops with tool calls can take minutes. Holding an HTTP connection open that long is unreliable. If the server restarts or the connection times out, the work is lost.
|
|
288
|
+
|
|
289
|
+
### The Solution
|
|
290
|
+
|
|
291
|
+
**Resumable streams** solve connection drops. Every event is cached with a sequential index. If a client disconnects at event 5, they can reconnect and request events starting from index 6. They receive cached events immediately, then continue with live events as they arrive.
|
|
292
|
+
|
|
293
|
+
**Durable execution** solves long-running operations. Instead of executing the agent loop directly in the HTTP request, execution happens in a workflow engine (built-in evented engine or Inngest). The HTTP request just subscribes to events. If the connection drops, execution continues. The client can reconnect anytime to observe progress.
|
|
294
|
+
|
|
295
|
+
### Usage
|
|
296
|
+
|
|
297
|
+
Wrap any existing `Agent` with durability using factory functions:
|
|
298
|
+
|
|
299
|
+
```typescript
|
|
300
|
+
import { Agent } from '@mastra/core/agent';
|
|
301
|
+
import { createDurableAgent } from '@mastra/core/agent/durable';
|
|
302
|
+
|
|
303
|
+
const agent = new Agent({
|
|
304
|
+
id: 'my-agent',
|
|
305
|
+
model: openai('gpt-4'),
|
|
306
|
+
instructions: 'You are helpful',
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
const durableAgent = createDurableAgent({ agent });
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
**Factory functions for different execution strategies:**
|
|
313
|
+
|
|
314
|
+
| Factory | Execution | Use Case |
|
|
315
|
+
| ---------------------------------------- | ----------------------------------- | ------------------------------- |
|
|
316
|
+
| `createDurableAgent({ agent })` | Local, synchronous | Development, simple deployments |
|
|
317
|
+
| `createEventedAgent({ agent })` | Fire-and-forget via workflow engine | Long-running operations |
|
|
318
|
+
| `createInngestAgent({ agent, inngest })` | Inngest-powered | Production, distributed systems |
|
|
319
|
+
|
|
320
|
+
### Resumable Streams
|
|
321
|
+
|
|
322
|
+
```typescript
|
|
323
|
+
// Start streaming
|
|
324
|
+
const { runId, output } = await durableAgent.stream('Analyze this data...');
|
|
325
|
+
|
|
326
|
+
// Client disconnects at event 5...
|
|
327
|
+
|
|
328
|
+
// Reconnect and resume from where we left off
|
|
329
|
+
const { output: resumed } = await durableAgent.observe(runId, { offset: 6 });
|
|
330
|
+
// Receives events 6, 7, 8... from cache, then continues with live events
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### PubSub and Cache
|
|
334
|
+
|
|
335
|
+
Durable agents use two infrastructure components:
|
|
336
|
+
|
|
337
|
+
| Component | Purpose | Default |
|
|
338
|
+
| ---------- | ----------------------------------------- | --------------------- |
|
|
339
|
+
| **PubSub** | Real-time event delivery during streaming | `EventEmitterPubSub` |
|
|
340
|
+
| **Cache** | Stores events for replay on reconnection | `InMemoryServerCache` |
|
|
341
|
+
|
|
342
|
+
When `stream()` is called, events flow through pubsub in real-time. The cache stores each event with a sequential index. When `observe()` is called, missed events replay from cache before continuing with live events.
|
|
343
|
+
|
|
344
|
+
**Configure via Mastra instance (recommended):**
|
|
345
|
+
|
|
346
|
+
```typescript
|
|
347
|
+
const mastra = new Mastra({
|
|
348
|
+
cache: new RedisServerCache({ url: 'redis://...' }),
|
|
349
|
+
pubsub: new RedisPubSub({ url: 'redis://...' }),
|
|
350
|
+
agents: {
|
|
351
|
+
// Inherits cache and pubsub from Mastra
|
|
352
|
+
myAgent: createDurableAgent({ agent }),
|
|
353
|
+
},
|
|
354
|
+
});
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
**Configure per-agent (overrides Mastra):**
|
|
358
|
+
|
|
359
|
+
```typescript
|
|
360
|
+
const durableAgent = createDurableAgent({
|
|
361
|
+
agent,
|
|
362
|
+
cache: new RedisServerCache({ url: 'redis://...' }),
|
|
363
|
+
pubsub: new RedisPubSub({ url: 'redis://...' }),
|
|
364
|
+
});
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
**Disable caching (streams won't be resumable):**
|
|
368
|
+
|
|
369
|
+
```typescript
|
|
370
|
+
const durableAgent = createDurableAgent({ agent, cache: false });
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
For single-instance deployments, the defaults work fine. For multi-instance deployments (load balancer, horizontal scaling), use Redis-backed implementations so any instance can serve reconnection requests.
|
|
374
|
+
|
|
375
|
+
### Class Hierarchy
|
|
376
|
+
- `DurableAgent` extends `Agent` - base class with resumable streams
|
|
377
|
+
- `EventedAgent` extends `DurableAgent` - fire-and-forget execution
|
|
378
|
+
- `InngestAgent` extends `DurableAgent` - Inngest-powered execution
|
|
379
|
+
|
|
380
|
+
- Updated dependencies [[`920c757`](https://github.com/mastra-ai/mastra/commit/920c75799c6bd71787d86deaf654a35af4c839ca), [`1fe2533`](https://github.com/mastra-ai/mastra/commit/1fe2533c4382ca6858aac7c4b63e888c2eac6541), [`f8694b6`](https://github.com/mastra-ai/mastra/commit/f8694b6fa0b7a5cde71d794c3bbef4957c55bcb8)]:
|
|
381
|
+
- @mastra/core@1.30.0-alpha.1
|
|
382
|
+
|
|
383
|
+
## 1.15.2-alpha.0
|
|
384
|
+
|
|
385
|
+
### Patch Changes
|
|
386
|
+
|
|
387
|
+
- Remove incorrect deprecation markers from `getTask()` and `cancelTask()` in the Mastra A2A client. ([#15941](https://github.com/mastra-ai/mastra/pull/15941))
|
|
388
|
+
|
|
389
|
+
- Updated dependencies [[`d587199`](https://github.com/mastra-ai/mastra/commit/d5871993c0371bde2b0717d6b47194755baa1443)]:
|
|
390
|
+
- @mastra/core@1.29.2-alpha.0
|
|
391
|
+
|
|
392
|
+
## 1.15.1
|
|
393
|
+
|
|
394
|
+
### Patch Changes
|
|
395
|
+
|
|
396
|
+
- Updated dependencies [[`6db978c`](https://github.com/mastra-ai/mastra/commit/6db978c42e94e75540a504f7230086f0b5cd35f9), [`512a013`](https://github.com/mastra-ai/mastra/commit/512a013f285aa9c0aa8f08a35b2ce09f9938b017), [`e9becde`](https://github.com/mastra-ai/mastra/commit/e9becdeed9176b9f8392e557bde12b933f99cf7a), [`703a443`](https://github.com/mastra-ai/mastra/commit/703a44390c587d9c0b8ae94ec4edd8afb2a74044), [`808df1b`](https://github.com/mastra-ai/mastra/commit/808df1b39358b5f10b7317107e42b1fda7c87185)]:
|
|
397
|
+
- @mastra/core@1.29.1
|
|
398
|
+
|
|
399
|
+
## 1.15.1-alpha.2
|
|
400
|
+
|
|
401
|
+
### Patch Changes
|
|
402
|
+
|
|
403
|
+
- Updated dependencies [[`512a013`](https://github.com/mastra-ai/mastra/commit/512a013f285aa9c0aa8f08a35b2ce09f9938b017), [`e9becde`](https://github.com/mastra-ai/mastra/commit/e9becdeed9176b9f8392e557bde12b933f99cf7a)]:
|
|
404
|
+
- @mastra/core@1.29.1-alpha.2
|
|
405
|
+
|
|
406
|
+
## 1.15.1-alpha.1
|
|
407
|
+
|
|
408
|
+
### Patch Changes
|
|
409
|
+
|
|
410
|
+
- Updated dependencies [[`703a443`](https://github.com/mastra-ai/mastra/commit/703a44390c587d9c0b8ae94ec4edd8afb2a74044), [`808df1b`](https://github.com/mastra-ai/mastra/commit/808df1b39358b5f10b7317107e42b1fda7c87185)]:
|
|
411
|
+
- @mastra/core@1.29.1-alpha.1
|
|
412
|
+
|
|
413
|
+
## 1.15.1-alpha.0
|
|
414
|
+
|
|
415
|
+
### Patch Changes
|
|
416
|
+
|
|
417
|
+
- Updated dependencies [[`6db978c`](https://github.com/mastra-ai/mastra/commit/6db978c42e94e75540a504f7230086f0b5cd35f9)]:
|
|
418
|
+
- @mastra/core@1.29.1-alpha.0
|
|
419
|
+
|
|
420
|
+
## 1.15.0
|
|
421
|
+
|
|
422
|
+
### Minor Changes
|
|
423
|
+
|
|
424
|
+
- Added support for resuming suspended agent streams over HTTP with custom data. This adds the `POST /agents/:agentId/resume-stream` server endpoint and the client SDK `agent.resumeStream()` method, so apps can continue a suspended agent run through the Mastra client. ([#14579](https://github.com/mastra-ai/mastra/pull/14579))
|
|
425
|
+
|
|
426
|
+
**Usage example (client SDK):**
|
|
427
|
+
|
|
428
|
+
```typescript
|
|
429
|
+
const agent = mastraClient.getAgent('my-agent');
|
|
430
|
+
|
|
431
|
+
// Resume a suspended agent stream with custom data
|
|
432
|
+
const response = await agent.resumeStream(
|
|
433
|
+
{ approved: true, selectedOption: 'plan-b' },
|
|
434
|
+
{ runId: 'previous-run-id', toolCallId: 'tool-123' },
|
|
435
|
+
);
|
|
436
|
+
|
|
437
|
+
await response.processDataStream({
|
|
438
|
+
onChunk: chunk => console.log(chunk),
|
|
439
|
+
});
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
- Improved the Mastra A2A client to feel closer to the official A2A SDK without introducing a breaking change. ([#15720](https://github.com/mastra-ai/mastra/pull/15720))
|
|
443
|
+
- Added official-style A2A methods such as `getAgentCard()`, `sendMessageStream()`, `getExtendedAgentCard()`, and `getTaskPushNotificationConfig()`.
|
|
444
|
+
- Added typed A2A stream consumption for `sendMessageStream()` and `resubscribeTask()`.
|
|
445
|
+
- Kept older methods available as deprecated compatibility methods, including `getCard()` and `sendStreamingMessage()`.
|
|
446
|
+
|
|
447
|
+
### Patch Changes
|
|
448
|
+
|
|
449
|
+
- Fixed Studio observability tabs so runtime-injected observability unlocks them. ([#15821](https://github.com/mastra-ai/mastra/pull/15821))
|
|
450
|
+
|
|
451
|
+
- Add `streamUntilIdle` to the agent client, mirroring the new server route. The client keeps the SSE connection open through background task completion and the agent's follow-up turn, and preserves the `/stream-until-idle` endpoint across client-tool continuations. ([#15686](https://github.com/mastra-ai/mastra/pull/15686))
|
|
452
|
+
|
|
453
|
+
```ts
|
|
454
|
+
const stream = await client.getAgent('my-agent').streamUntilIdle({
|
|
455
|
+
messages: 'Research quantum computing',
|
|
456
|
+
});
|
|
457
|
+
for await (const chunk of stream) {
|
|
458
|
+
/* ... */
|
|
459
|
+
}
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
- Updated dependencies [[`28caa5b`](https://github.com/mastra-ai/mastra/commit/28caa5b032358545af2589ed90636eccb4dd9d2f), [`c1ae974`](https://github.com/mastra-ai/mastra/commit/c1ae97491f6e57378ce880c3a397778c42adcdf1), [`b510d36`](https://github.com/mastra-ai/mastra/commit/b510d368f73dab6be2e2c2bc99035aaef1fb7d7a), [`13b4d7c`](https://github.com/mastra-ai/mastra/commit/13b4d7c16de34dff9095d1cd80f22f544b6cfe75), [`7a7b313`](https://github.com/mastra-ai/mastra/commit/7a7b3138fb3bcf0b0c740eaea07971e43d330ef3), [`c04417b`](https://github.com/mastra-ai/mastra/commit/c04417ba0a2e4ded66da4352331ef29cd4bd1d79), [`cf25a03`](https://github.com/mastra-ai/mastra/commit/cf25a03132164b9dc1e5dccf7394824e33007c51), [`8a71261`](https://github.com/mastra-ai/mastra/commit/8a71261e3954ae617c6f8e25767b951f99438ab2), [`9e973b0`](https://github.com/mastra-ai/mastra/commit/9e973b010dacfa15ac82b0072897319f5234b90a), [`dd934a0`](https://github.com/mastra-ai/mastra/commit/dd934a0982ce0f78712fbd559e4f2410bf594b39), [`ba6b0c5`](https://github.com/mastra-ai/mastra/commit/ba6b0c51bfce358554fd33c7f2bcd5593633f2ff), [`a6dac0a`](https://github.com/mastra-ai/mastra/commit/a6dac0a40c7181161b1add4e8534f962bcbc9aa7), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`6c8c6c7`](https://github.com/mastra-ai/mastra/commit/6c8c6c71518394321a4692614aa4b11f3bb0a343), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`7d056b6`](https://github.com/mastra-ai/mastra/commit/7d056b6ecf603cacaa0f663ff1df025ed885b6c1), [`9cef83b`](https://github.com/mastra-ai/mastra/commit/9cef83b8a642b8098747772921e3523b492bafbc), [`d30e215`](https://github.com/mastra-ai/mastra/commit/d30e2156c746bc9fd791745cec1cc24377b66789), [`021a60f`](https://github.com/mastra-ai/mastra/commit/021a60f1f3e0135a70ef23c58be7a9b3aaffe6b4), [`73f2809`](https://github.com/mastra-ai/mastra/commit/73f2809721db24e98cdf122539652a455211b450), [`aedeea4`](https://github.com/mastra-ai/mastra/commit/aedeea48a94f728323f040478775076b9574be50), [`26f1f94`](https://github.com/mastra-ai/mastra/commit/26f1f9490574b864ba1ecedf2c9632e0767a23bd), [`8126d86`](https://github.com/mastra-ai/mastra/commit/8126d8638411eacfafdc29036ac998e8757ea66f), [`73b45fa`](https://github.com/mastra-ai/mastra/commit/73b45facdef4fbcb8af710c50f0646f18619dbaa), [`ae97520`](https://github.com/mastra-ai/mastra/commit/ae975206fdb0f6ef03c4d5bf94f7dc7c3f706c02), [`7a7b313`](https://github.com/mastra-ai/mastra/commit/7a7b3138fb3bcf0b0c740eaea07971e43d330ef3), [`441670a`](https://github.com/mastra-ai/mastra/commit/441670a02c9dc7731c52674f55481e7848a84523)]:
|
|
463
|
+
- @mastra/core@1.29.0
|
|
464
|
+
|
|
465
|
+
## 1.15.0-alpha.6
|
|
466
|
+
|
|
467
|
+
### Minor Changes
|
|
468
|
+
|
|
469
|
+
- Improved the Mastra A2A client to feel closer to the official A2A SDK without introducing a breaking change. ([#15720](https://github.com/mastra-ai/mastra/pull/15720))
|
|
470
|
+
- Added official-style A2A methods such as `getAgentCard()`, `sendMessageStream()`, `getExtendedAgentCard()`, and `getTaskPushNotificationConfig()`.
|
|
471
|
+
- Added typed A2A stream consumption for `sendMessageStream()` and `resubscribeTask()`.
|
|
472
|
+
- Kept older methods available as deprecated compatibility methods, including `getCard()` and `sendStreamingMessage()`.
|
|
473
|
+
|
|
474
|
+
### Patch Changes
|
|
475
|
+
|
|
476
|
+
- Fixed Studio observability tabs so runtime-injected observability unlocks them. ([#15821](https://github.com/mastra-ai/mastra/pull/15821))
|
|
477
|
+
|
|
478
|
+
- Updated dependencies [[`c1ae974`](https://github.com/mastra-ai/mastra/commit/c1ae97491f6e57378ce880c3a397778c42adcdf1), [`13b4d7c`](https://github.com/mastra-ai/mastra/commit/13b4d7c16de34dff9095d1cd80f22f544b6cfe75), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`6c8c6c7`](https://github.com/mastra-ai/mastra/commit/6c8c6c71518394321a4692614aa4b11f3bb0a343), [`5a4b1ee`](https://github.com/mastra-ai/mastra/commit/5a4b1ee80212969621228104995589c0fa59e575), [`ec4cb26`](https://github.com/mastra-ai/mastra/commit/ec4cb26919972eb2031fea510f8f013e1d5b7ee2)]:
|
|
479
|
+
- @mastra/core@1.29.0-alpha.6
|
|
480
|
+
|
|
481
|
+
## 1.15.0-alpha.5
|
|
482
|
+
|
|
483
|
+
### Patch Changes
|
|
484
|
+
|
|
485
|
+
- Updated dependencies [[`28caa5b`](https://github.com/mastra-ai/mastra/commit/28caa5b032358545af2589ed90636eccb4dd9d2f), [`7d056b6`](https://github.com/mastra-ai/mastra/commit/7d056b6ecf603cacaa0f663ff1df025ed885b6c1), [`26f1f94`](https://github.com/mastra-ai/mastra/commit/26f1f9490574b864ba1ecedf2c9632e0767a23bd)]:
|
|
486
|
+
- @mastra/core@1.29.0-alpha.5
|
|
487
|
+
|
|
488
|
+
## 1.15.0-alpha.4
|
|
489
|
+
|
|
490
|
+
### Patch Changes
|
|
491
|
+
|
|
492
|
+
- Updated dependencies [[`8a71261`](https://github.com/mastra-ai/mastra/commit/8a71261e3954ae617c6f8e25767b951f99438ab2), [`021a60f`](https://github.com/mastra-ai/mastra/commit/021a60f1f3e0135a70ef23c58be7a9b3aaffe6b4)]:
|
|
493
|
+
- @mastra/core@1.29.0-alpha.4
|
|
494
|
+
|
|
495
|
+
## 1.15.0-alpha.3
|
|
496
|
+
|
|
497
|
+
### Patch Changes
|
|
498
|
+
|
|
499
|
+
- Updated dependencies [[`c04417b`](https://github.com/mastra-ai/mastra/commit/c04417ba0a2e4ded66da4352331ef29cd4bd1d79), [`cf25a03`](https://github.com/mastra-ai/mastra/commit/cf25a03132164b9dc1e5dccf7394824e33007c51), [`ba6b0c5`](https://github.com/mastra-ai/mastra/commit/ba6b0c51bfce358554fd33c7f2bcd5593633f2ff)]:
|
|
500
|
+
- @mastra/core@1.29.0-alpha.3
|
|
501
|
+
|
|
502
|
+
## 1.15.0-alpha.2
|
|
503
|
+
|
|
504
|
+
### Patch Changes
|
|
505
|
+
|
|
506
|
+
- Add `streamUntilIdle` to the agent client, mirroring the new server route. The client keeps the SSE connection open through background task completion and the agent's follow-up turn, and preserves the `/stream-until-idle` endpoint across client-tool continuations. ([#15686](https://github.com/mastra-ai/mastra/pull/15686))
|
|
507
|
+
|
|
508
|
+
```ts
|
|
509
|
+
const stream = await client.getAgent('my-agent').streamUntilIdle({
|
|
510
|
+
messages: 'Research quantum computing',
|
|
511
|
+
});
|
|
512
|
+
for await (const chunk of stream) {
|
|
513
|
+
/* ... */
|
|
514
|
+
}
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
- Updated dependencies [[`9e973b0`](https://github.com/mastra-ai/mastra/commit/9e973b010dacfa15ac82b0072897319f5234b90a), [`dd934a0`](https://github.com/mastra-ai/mastra/commit/dd934a0982ce0f78712fbd559e4f2410bf594b39), [`73f2809`](https://github.com/mastra-ai/mastra/commit/73f2809721db24e98cdf122539652a455211b450), [`aedeea4`](https://github.com/mastra-ai/mastra/commit/aedeea48a94f728323f040478775076b9574be50), [`8126d86`](https://github.com/mastra-ai/mastra/commit/8126d8638411eacfafdc29036ac998e8757ea66f), [`ae97520`](https://github.com/mastra-ai/mastra/commit/ae975206fdb0f6ef03c4d5bf94f7dc7c3f706c02), [`441670a`](https://github.com/mastra-ai/mastra/commit/441670a02c9dc7731c52674f55481e7848a84523)]:
|
|
518
|
+
- @mastra/core@1.29.0-alpha.2
|
|
519
|
+
|
|
520
|
+
## 1.15.0-alpha.1
|
|
521
|
+
|
|
522
|
+
### Patch Changes
|
|
523
|
+
|
|
524
|
+
- Updated dependencies [[`7a7b313`](https://github.com/mastra-ai/mastra/commit/7a7b3138fb3bcf0b0c740eaea07971e43d330ef3), [`a6dac0a`](https://github.com/mastra-ai/mastra/commit/a6dac0a40c7181161b1add4e8534f962bcbc9aa7), [`9cef83b`](https://github.com/mastra-ai/mastra/commit/9cef83b8a642b8098747772921e3523b492bafbc), [`d30e215`](https://github.com/mastra-ai/mastra/commit/d30e2156c746bc9fd791745cec1cc24377b66789), [`73b45fa`](https://github.com/mastra-ai/mastra/commit/73b45facdef4fbcb8af710c50f0646f18619dbaa), [`7a7b313`](https://github.com/mastra-ai/mastra/commit/7a7b3138fb3bcf0b0c740eaea07971e43d330ef3)]:
|
|
525
|
+
- @mastra/core@1.29.0-alpha.1
|
|
526
|
+
|
|
527
|
+
## 1.15.0-alpha.0
|
|
528
|
+
|
|
529
|
+
### Minor Changes
|
|
530
|
+
|
|
531
|
+
- Added support for resuming suspended agent streams over HTTP with custom data. This adds the `POST /agents/:agentId/resume-stream` server endpoint and the client SDK `agent.resumeStream()` method, so apps can continue a suspended agent run through the Mastra client. ([#14579](https://github.com/mastra-ai/mastra/pull/14579))
|
|
532
|
+
|
|
533
|
+
**Usage example (client SDK):**
|
|
534
|
+
|
|
535
|
+
```typescript
|
|
536
|
+
const agent = mastraClient.getAgent('my-agent');
|
|
537
|
+
|
|
538
|
+
// Resume a suspended agent stream with custom data
|
|
539
|
+
const response = await agent.resumeStream(
|
|
540
|
+
{ approved: true, selectedOption: 'plan-b' },
|
|
541
|
+
{ runId: 'previous-run-id', toolCallId: 'tool-123' },
|
|
542
|
+
);
|
|
543
|
+
|
|
544
|
+
await response.processDataStream({
|
|
545
|
+
onChunk: chunk => console.log(chunk),
|
|
546
|
+
});
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Patch Changes
|
|
550
|
+
|
|
551
|
+
- Updated dependencies [[`b510d36`](https://github.com/mastra-ai/mastra/commit/b510d368f73dab6be2e2c2bc99035aaef1fb7d7a)]:
|
|
552
|
+
- @mastra/core@1.29.0-alpha.0
|
|
553
|
+
|
|
554
|
+
## 1.14.2
|
|
555
|
+
|
|
556
|
+
### Patch Changes
|
|
557
|
+
|
|
558
|
+
- Updated dependencies [[`733bf53`](https://github.com/mastra-ai/mastra/commit/733bf53d9352aedd3ef38c3d501edb275b65b43c), [`5405b3b`](https://github.com/mastra-ai/mastra/commit/5405b3b35325c5b8fb34fc7ac109bd2feb7bb6fe), [`45e29cb`](https://github.com/mastra-ai/mastra/commit/45e29cb5b5737f3083eb3852db02b944b9cf37ed), [`750b4d3`](https://github.com/mastra-ai/mastra/commit/750b4d3d8231f92e769b2c485921ac5a8ca639b9), [`c321127`](https://github.com/mastra-ai/mastra/commit/c3211275fc195de9ad1ead2746b354beb8eae6e8), [`a07bcef`](https://github.com/mastra-ai/mastra/commit/a07bcefea77c03d6d322caad973dca49b4b15fa1), [`696694e`](https://github.com/mastra-ai/mastra/commit/696694e00f29241a25dd1a1b749afa06c3a626b4), [`b084a80`](https://github.com/mastra-ai/mastra/commit/b084a800db0f82d62e1fc3d6e3e3480da1ba5a53), [`82b7a96`](https://github.com/mastra-ai/mastra/commit/82b7a964169636c1d1e0c694fc892a213b0179d5), [`df97812`](https://github.com/mastra-ai/mastra/commit/df97812bd949dcafeb074b80ecab501724b49c3b), [`8bbe360`](https://github.com/mastra-ai/mastra/commit/8bbe36042af7fc4be0244dffd8913f6795179421), [`f6b8ba8`](https://github.com/mastra-ai/mastra/commit/f6b8ba8dbf533b7a8db90c72b6805ddc804a3a72), [`a07bcef`](https://github.com/mastra-ai/mastra/commit/a07bcefea77c03d6d322caad973dca49b4b15fa1)]:
|
|
559
|
+
- @mastra/core@1.28.0
|
|
560
|
+
|
|
561
|
+
## 1.14.2-alpha.2
|
|
562
|
+
|
|
563
|
+
### Patch Changes
|
|
564
|
+
|
|
565
|
+
- Updated dependencies [[`45e29cb`](https://github.com/mastra-ai/mastra/commit/45e29cb5b5737f3083eb3852db02b944b9cf37ed), [`696694e`](https://github.com/mastra-ai/mastra/commit/696694e00f29241a25dd1a1b749afa06c3a626b4)]:
|
|
566
|
+
- @mastra/core@1.28.0-alpha.2
|
|
567
|
+
|
|
568
|
+
## 1.14.2-alpha.1
|
|
569
|
+
|
|
570
|
+
### Patch Changes
|
|
571
|
+
|
|
572
|
+
- Updated dependencies [[`750b4d3`](https://github.com/mastra-ai/mastra/commit/750b4d3d8231f92e769b2c485921ac5a8ca639b9)]:
|
|
573
|
+
- @mastra/core@1.28.0-alpha.1
|
|
574
|
+
|
|
575
|
+
## 1.14.2-alpha.0
|
|
576
|
+
|
|
577
|
+
### Patch Changes
|
|
578
|
+
|
|
579
|
+
- Updated dependencies [[`733bf53`](https://github.com/mastra-ai/mastra/commit/733bf53d9352aedd3ef38c3d501edb275b65b43c), [`5405b3b`](https://github.com/mastra-ai/mastra/commit/5405b3b35325c5b8fb34fc7ac109bd2feb7bb6fe), [`c321127`](https://github.com/mastra-ai/mastra/commit/c3211275fc195de9ad1ead2746b354beb8eae6e8), [`a07bcef`](https://github.com/mastra-ai/mastra/commit/a07bcefea77c03d6d322caad973dca49b4b15fa1), [`b084a80`](https://github.com/mastra-ai/mastra/commit/b084a800db0f82d62e1fc3d6e3e3480da1ba5a53), [`82b7a96`](https://github.com/mastra-ai/mastra/commit/82b7a964169636c1d1e0c694fc892a213b0179d5), [`df97812`](https://github.com/mastra-ai/mastra/commit/df97812bd949dcafeb074b80ecab501724b49c3b), [`8bbe360`](https://github.com/mastra-ai/mastra/commit/8bbe36042af7fc4be0244dffd8913f6795179421), [`f6b8ba8`](https://github.com/mastra-ai/mastra/commit/f6b8ba8dbf533b7a8db90c72b6805ddc804a3a72), [`a07bcef`](https://github.com/mastra-ai/mastra/commit/a07bcefea77c03d6d322caad973dca49b4b15fa1)]:
|
|
580
|
+
- @mastra/core@1.28.0-alpha.0
|
|
581
|
+
|
|
582
|
+
## 1.14.1
|
|
583
|
+
|
|
584
|
+
### Patch Changes
|
|
585
|
+
|
|
586
|
+
- Updated dependencies [[`f112db1`](https://github.com/mastra-ai/mastra/commit/f112db179557ae9b5a0f1d25dc47f928d7d61cd9), [`21d9706`](https://github.com/mastra-ai/mastra/commit/21d970604d89eee970cbf8013d26d7551aff6ea5), [`0a0aa94`](https://github.com/mastra-ai/mastra/commit/0a0aa94729592e99885af2efb90c56aaada62247), [`ed07df3`](https://github.com/mastra-ai/mastra/commit/ed07df32a9d539c8261e892fc1bade783f5b41a6), [`01a7d51`](https://github.com/mastra-ai/mastra/commit/01a7d513493d21562f677f98550f7ceb165ba78c)]:
|
|
587
|
+
- @mastra/core@1.27.0
|
|
588
|
+
|
|
589
|
+
## 1.14.1-alpha.2
|
|
590
|
+
|
|
591
|
+
### Patch Changes
|
|
592
|
+
|
|
593
|
+
- Updated dependencies [[`ed07df3`](https://github.com/mastra-ai/mastra/commit/ed07df32a9d539c8261e892fc1bade783f5b41a6)]:
|
|
594
|
+
- @mastra/core@1.27.0-alpha.2
|
|
595
|
+
|
|
596
|
+
## 1.14.1-alpha.1
|
|
597
|
+
|
|
598
|
+
### Patch Changes
|
|
599
|
+
|
|
600
|
+
- Updated dependencies [[`0a0aa94`](https://github.com/mastra-ai/mastra/commit/0a0aa94729592e99885af2efb90c56aaada62247), [`01a7d51`](https://github.com/mastra-ai/mastra/commit/01a7d513493d21562f677f98550f7ceb165ba78c)]:
|
|
601
|
+
- @mastra/core@1.27.0-alpha.1
|
|
602
|
+
|
|
603
|
+
## 1.14.1-alpha.0
|
|
604
|
+
|
|
605
|
+
### Patch Changes
|
|
606
|
+
|
|
607
|
+
- Updated dependencies [[`f112db1`](https://github.com/mastra-ai/mastra/commit/f112db179557ae9b5a0f1d25dc47f928d7d61cd9), [`21d9706`](https://github.com/mastra-ai/mastra/commit/21d970604d89eee970cbf8013d26d7551aff6ea5)]:
|
|
608
|
+
- @mastra/core@1.26.1-alpha.0
|
|
609
|
+
|
|
610
|
+
## 1.14.0
|
|
611
|
+
|
|
612
|
+
### Minor Changes
|
|
613
|
+
|
|
614
|
+
- Added `forEachIndex` option to `run.resume()`, `run.resumeAsync()`, and `run.resumeStream()`. Use it to resume a single iteration of a suspended `.foreach()` step while leaving the other iterations suspended. ([#15563](https://github.com/mastra-ai/mastra/pull/15563))
|
|
615
|
+
|
|
616
|
+
```ts
|
|
617
|
+
await client
|
|
618
|
+
.getWorkflow('myWorkflow')
|
|
619
|
+
.createRun(runId)
|
|
620
|
+
.resume({
|
|
621
|
+
step: 'approve',
|
|
622
|
+
resumeData: { ok: true },
|
|
623
|
+
forEachIndex: 1, // only resume the second iteration
|
|
624
|
+
});
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
### Patch Changes
|
|
628
|
+
|
|
629
|
+
- Add `/api/background-tasks` routes (SSE stream, list with filters + pagination, get by ID) and matching `MastraClient` methods (`listBackgroundTasks`, `getBackgroundTask`, `streamBackgroundTasks`). ([#15307](https://github.com/mastra-ai/mastra/pull/15307))
|
|
630
|
+
|
|
631
|
+
- Fixed @mastra/client-js to re-export RequestContext so client SDK users can import it from @mastra/client-js. ([#15413](https://github.com/mastra-ai/mastra/pull/15413))
|
|
632
|
+
|
|
633
|
+
- Added `observabilityRuntimeStrategy` to `GetSystemPackagesResponse` so clients can read the active observability tracing strategy (`realtime`, `batch-with-updates`, `insert-only`, or `event-sourced`) reported by the server. ([#15512](https://github.com/mastra-ai/mastra/pull/15512))
|
|
634
|
+
|
|
635
|
+
- Updated dependencies [[`20f59b8`](https://github.com/mastra-ai/mastra/commit/20f59b876cf91199efbc49a0e36b391240708f08), [`aba393e`](https://github.com/mastra-ai/mastra/commit/aba393e2da7390c69b80e516a4f153cda6f09376), [`3d83d06`](https://github.com/mastra-ai/mastra/commit/3d83d06f776f00fb5f4163dddd32a030c5c20844), [`e2687a7`](https://github.com/mastra-ai/mastra/commit/e2687a7408790c384563816a9a28ed06735684c9), [`fdd54cf`](https://github.com/mastra-ai/mastra/commit/fdd54cf612a9af876e9fdd85e534454f6e7dd518), [`6315317`](https://github.com/mastra-ai/mastra/commit/63153175fe9a7b224e5be7c209bbebc01dd9b0d5), [`a371ac5`](https://github.com/mastra-ai/mastra/commit/a371ac534aa1bb368a1acf9d8b313378dfdc787e), [`7db42a9`](https://github.com/mastra-ai/mastra/commit/7db42a9cccd3b29c44fb0731f792c51575e8421c), [`0474c2b`](https://github.com/mastra-ai/mastra/commit/0474c2b2e7c7e1ad8691dca031284841391ff1ef), [`0a5fa1d`](https://github.com/mastra-ai/mastra/commit/0a5fa1d3cb0583889d06687155f26fd7d2edc76c), [`7e0e63e`](https://github.com/mastra-ai/mastra/commit/7e0e63e2e485e84442351f4c7a79a424c83539dc), [`ea43e64`](https://github.com/mastra-ai/mastra/commit/ea43e646dd95d507694b6112b0bf1df22ad552b2), [`f607106`](https://github.com/mastra-ai/mastra/commit/f607106854c6416c4a07d4082604b9f66d047221), [`30456b6`](https://github.com/mastra-ai/mastra/commit/30456b6b08c8fd17e109dd093b73d93b65e83bc5), [`9d11a8c`](https://github.com/mastra-ai/mastra/commit/9d11a8c1c8924eb975a245a5884d40ca1b7e0491), [`9d3b24b`](https://github.com/mastra-ai/mastra/commit/9d3b24b19407ae9c09586cf7766d38dc4dff4a69), [`00d1b16`](https://github.com/mastra-ai/mastra/commit/00d1b16b401199cb294fa23f43336547db4dca9b), [`47cee3e`](https://github.com/mastra-ai/mastra/commit/47cee3e137fe39109cf7fffd2a8cf47b76dc702e), [`62919a6`](https://github.com/mastra-ai/mastra/commit/62919a6ee0fbf3779ad21a97b1ec6696515d5104), [`d246696`](https://github.com/mastra-ai/mastra/commit/d246696139a3144a5b21b042d41c532688e957e1), [`354f9ce`](https://github.com/mastra-ai/mastra/commit/354f9ce1ca6af2074b6a196a23f8ec30012dccca), [`16e34ca`](https://github.com/mastra-ai/mastra/commit/16e34caa98b9a114b17a6125e4e3fd87f169d0d0), [`7020c06`](https://github.com/mastra-ai/mastra/commit/7020c0690b199d9da337f0e805f16948e557922e), [`8786a61`](https://github.com/mastra-ai/mastra/commit/8786a61fa54ba265f85eeff9985ca39863d18bb6), [`9467ea8`](https://github.com/mastra-ai/mastra/commit/9467ea87695749a53dfc041576410ebf9ee7bb67), [`7338d94`](https://github.com/mastra-ai/mastra/commit/7338d949380cf68b095342e8e42610dc51d557c1), [`c80dc16`](https://github.com/mastra-ai/mastra/commit/c80dc16e113e6cc159f510ffde501ad4711b2189), [`af8a57e`](https://github.com/mastra-ai/mastra/commit/af8a57ed9ba9685ad8601d5b71ae3706da6222f9), [`d63ffdb`](https://github.com/mastra-ai/mastra/commit/d63ffdbb2c11e76fe5ea45faab44bc15460f010c), [`47cee3e`](https://github.com/mastra-ai/mastra/commit/47cee3e137fe39109cf7fffd2a8cf47b76dc702e), [`1bd5104`](https://github.com/mastra-ai/mastra/commit/1bd51048b6da93507276d6623e3fd96a9e1a8944), [`e9837b5`](https://github.com/mastra-ai/mastra/commit/e9837b53699e18711b09e0ca010a4106376f2653), [`c65aec3`](https://github.com/mastra-ai/mastra/commit/c65aec356cc037ee7c4b30ccea946807d4c4f443), [`8f1b280`](https://github.com/mastra-ai/mastra/commit/8f1b280b7fe6999ec654f160cb69c1a8719e7a57), [`92dcf02`](https://github.com/mastra-ai/mastra/commit/92dcf029294210ac91b090900c1a0555a425c57a), [`0fd90a2`](https://github.com/mastra-ai/mastra/commit/0fd90a215caf5fca8099c15a67ca03e4427747a3), [`8fb2405`](https://github.com/mastra-ai/mastra/commit/8fb2405138f2d208b7962ad03f121ca25bcc28c5), [`12df98c`](https://github.com/mastra-ai/mastra/commit/12df98c4904643d9481f5c78f3bed443725b4c96)]:
|
|
636
|
+
- @mastra/core@1.26.0
|
|
637
|
+
- @mastra/schema-compat@1.2.9
|
|
638
|
+
|
|
639
|
+
## 1.14.0-alpha.13
|
|
640
|
+
|
|
641
|
+
### Patch Changes
|
|
642
|
+
|
|
643
|
+
- Updated dependencies:
|
|
644
|
+
- @mastra/core@1.26.0-alpha.13
|
|
645
|
+
|
|
646
|
+
## 1.14.0-alpha.12
|
|
647
|
+
|
|
648
|
+
### Patch Changes
|
|
649
|
+
|
|
650
|
+
- Updated dependencies [[`a371ac5`](https://github.com/mastra-ai/mastra/commit/a371ac534aa1bb368a1acf9d8b313378dfdc787e), [`47cee3e`](https://github.com/mastra-ai/mastra/commit/47cee3e137fe39109cf7fffd2a8cf47b76dc702e), [`c80dc16`](https://github.com/mastra-ai/mastra/commit/c80dc16e113e6cc159f510ffde501ad4711b2189), [`47cee3e`](https://github.com/mastra-ai/mastra/commit/47cee3e137fe39109cf7fffd2a8cf47b76dc702e)]:
|
|
651
|
+
- @mastra/core@1.26.0-alpha.12
|
|
652
|
+
|
|
653
|
+
## 1.14.0-alpha.11
|
|
654
|
+
|
|
655
|
+
### Patch Changes
|
|
656
|
+
|
|
657
|
+
- Added `observabilityRuntimeStrategy` to `GetSystemPackagesResponse` so clients can read the active observability tracing strategy (`realtime`, `batch-with-updates`, `insert-only`, or `event-sourced`) reported by the server. ([#15512](https://github.com/mastra-ai/mastra/pull/15512))
|
|
658
|
+
|
|
659
|
+
- Updated dependencies [[`20f59b8`](https://github.com/mastra-ai/mastra/commit/20f59b876cf91199efbc49a0e36b391240708f08), [`e2687a7`](https://github.com/mastra-ai/mastra/commit/e2687a7408790c384563816a9a28ed06735684c9), [`8f1b280`](https://github.com/mastra-ai/mastra/commit/8f1b280b7fe6999ec654f160cb69c1a8719e7a57), [`12df98c`](https://github.com/mastra-ai/mastra/commit/12df98c4904643d9481f5c78f3bed443725b4c96)]:
|
|
660
|
+
- @mastra/core@1.26.0-alpha.11
|
|
661
|
+
|
|
662
|
+
## 1.14.0-alpha.10
|
|
663
|
+
|
|
664
|
+
### Minor Changes
|
|
665
|
+
|
|
666
|
+
- Added `forEachIndex` option to `run.resume()`, `run.resumeAsync()`, and `run.resumeStream()`. Use it to resume a single iteration of a suspended `.foreach()` step while leaving the other iterations suspended. ([#15563](https://github.com/mastra-ai/mastra/pull/15563))
|
|
667
|
+
|
|
668
|
+
```ts
|
|
669
|
+
await client
|
|
670
|
+
.getWorkflow('myWorkflow')
|
|
671
|
+
.createRun(runId)
|
|
672
|
+
.resume({
|
|
673
|
+
step: 'approve',
|
|
674
|
+
resumeData: { ok: true },
|
|
675
|
+
forEachIndex: 1, // only resume the second iteration
|
|
676
|
+
});
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
### Patch Changes
|
|
680
|
+
|
|
681
|
+
- Updated dependencies [[`aba393e`](https://github.com/mastra-ai/mastra/commit/aba393e2da7390c69b80e516a4f153cda6f09376), [`0a5fa1d`](https://github.com/mastra-ai/mastra/commit/0a5fa1d3cb0583889d06687155f26fd7d2edc76c), [`ea43e64`](https://github.com/mastra-ai/mastra/commit/ea43e646dd95d507694b6112b0bf1df22ad552b2), [`00d1b16`](https://github.com/mastra-ai/mastra/commit/00d1b16b401199cb294fa23f43336547db4dca9b), [`af8a57e`](https://github.com/mastra-ai/mastra/commit/af8a57ed9ba9685ad8601d5b71ae3706da6222f9)]:
|
|
682
|
+
- @mastra/core@1.26.0-alpha.10
|
|
683
|
+
|
|
684
|
+
## 1.13.5-alpha.9
|
|
685
|
+
|
|
686
|
+
### Patch Changes
|
|
687
|
+
|
|
688
|
+
- Updated dependencies [[`16e34ca`](https://github.com/mastra-ai/mastra/commit/16e34caa98b9a114b17a6125e4e3fd87f169d0d0)]:
|
|
689
|
+
- @mastra/core@1.26.0-alpha.9
|
|
690
|
+
|
|
691
|
+
## 1.13.5-alpha.8
|
|
692
|
+
|
|
693
|
+
### Patch Changes
|
|
694
|
+
|
|
695
|
+
- Updated dependencies [[`1bd5104`](https://github.com/mastra-ai/mastra/commit/1bd51048b6da93507276d6623e3fd96a9e1a8944)]:
|
|
696
|
+
- @mastra/core@1.26.0-alpha.8
|
|
697
|
+
|
|
698
|
+
## 1.13.5-alpha.7
|
|
699
|
+
|
|
700
|
+
### Patch Changes
|
|
701
|
+
|
|
702
|
+
- Updated dependencies [[`8786a61`](https://github.com/mastra-ai/mastra/commit/8786a61fa54ba265f85eeff9985ca39863d18bb6), [`8fb2405`](https://github.com/mastra-ai/mastra/commit/8fb2405138f2d208b7962ad03f121ca25bcc28c5)]:
|
|
703
|
+
- @mastra/core@1.26.0-alpha.7
|
|
704
|
+
|
|
705
|
+
## 1.13.5-alpha.6
|
|
706
|
+
|
|
707
|
+
### Patch Changes
|
|
708
|
+
|
|
709
|
+
- Updated dependencies [[`6315317`](https://github.com/mastra-ai/mastra/commit/63153175fe9a7b224e5be7c209bbebc01dd9b0d5), [`9d3b24b`](https://github.com/mastra-ai/mastra/commit/9d3b24b19407ae9c09586cf7766d38dc4dff4a69)]:
|
|
710
|
+
- @mastra/core@1.26.0-alpha.6
|
|
711
|
+
|
|
712
|
+
## 1.13.5-alpha.5
|
|
713
|
+
|
|
714
|
+
### Patch Changes
|
|
715
|
+
|
|
716
|
+
- Updated dependencies [[`92dcf02`](https://github.com/mastra-ai/mastra/commit/92dcf029294210ac91b090900c1a0555a425c57a)]:
|
|
717
|
+
- @mastra/core@1.26.0-alpha.5
|
|
718
|
+
|
|
719
|
+
## 1.13.5-alpha.4
|
|
720
|
+
|
|
721
|
+
### Patch Changes
|
|
722
|
+
|
|
723
|
+
- Updated dependencies [[`0474c2b`](https://github.com/mastra-ai/mastra/commit/0474c2b2e7c7e1ad8691dca031284841391ff1ef), [`f607106`](https://github.com/mastra-ai/mastra/commit/f607106854c6416c4a07d4082604b9f66d047221), [`62919a6`](https://github.com/mastra-ai/mastra/commit/62919a6ee0fbf3779ad21a97b1ec6696515d5104), [`0fd90a2`](https://github.com/mastra-ai/mastra/commit/0fd90a215caf5fca8099c15a67ca03e4427747a3)]:
|
|
724
|
+
- @mastra/core@1.26.0-alpha.4
|
|
725
|
+
|
|
726
|
+
## 1.13.5-alpha.3
|
|
727
|
+
|
|
728
|
+
### Patch Changes
|
|
729
|
+
|
|
730
|
+
- Fixed @mastra/client-js to re-export RequestContext so client SDK users can import it from @mastra/client-js. ([#15413](https://github.com/mastra-ai/mastra/pull/15413))
|
|
731
|
+
|
|
732
|
+
- Updated dependencies [[`fdd54cf`](https://github.com/mastra-ai/mastra/commit/fdd54cf612a9af876e9fdd85e534454f6e7dd518), [`7db42a9`](https://github.com/mastra-ai/mastra/commit/7db42a9cccd3b29c44fb0731f792c51575e8421c), [`30456b6`](https://github.com/mastra-ai/mastra/commit/30456b6b08c8fd17e109dd093b73d93b65e83bc5), [`9d11a8c`](https://github.com/mastra-ai/mastra/commit/9d11a8c1c8924eb975a245a5884d40ca1b7e0491), [`d246696`](https://github.com/mastra-ai/mastra/commit/d246696139a3144a5b21b042d41c532688e957e1), [`354f9ce`](https://github.com/mastra-ai/mastra/commit/354f9ce1ca6af2074b6a196a23f8ec30012dccca), [`e9837b5`](https://github.com/mastra-ai/mastra/commit/e9837b53699e18711b09e0ca010a4106376f2653)]:
|
|
733
|
+
- @mastra/core@1.26.0-alpha.3
|
|
734
|
+
- @mastra/schema-compat@1.2.9-alpha.1
|
|
735
|
+
|
|
736
|
+
## 1.13.5-alpha.2
|
|
737
|
+
|
|
738
|
+
### Patch Changes
|
|
739
|
+
|
|
740
|
+
- Updated dependencies [[`3d83d06`](https://github.com/mastra-ai/mastra/commit/3d83d06f776f00fb5f4163dddd32a030c5c20844), [`7e0e63e`](https://github.com/mastra-ai/mastra/commit/7e0e63e2e485e84442351f4c7a79a424c83539dc), [`9467ea8`](https://github.com/mastra-ai/mastra/commit/9467ea87695749a53dfc041576410ebf9ee7bb67), [`7338d94`](https://github.com/mastra-ai/mastra/commit/7338d949380cf68b095342e8e42610dc51d557c1), [`c65aec3`](https://github.com/mastra-ai/mastra/commit/c65aec356cc037ee7c4b30ccea946807d4c4f443)]:
|
|
741
|
+
- @mastra/core@1.26.0-alpha.2
|
|
742
|
+
- @mastra/schema-compat@1.2.9-alpha.0
|
|
743
|
+
|
|
744
|
+
## 1.13.5-alpha.1
|
|
745
|
+
|
|
746
|
+
### Patch Changes
|
|
747
|
+
|
|
748
|
+
- Updated dependencies [[`7020c06`](https://github.com/mastra-ai/mastra/commit/7020c0690b199d9da337f0e805f16948e557922e)]:
|
|
749
|
+
- @mastra/core@1.25.1-alpha.1
|
|
750
|
+
|
|
751
|
+
## 1.13.5-alpha.0
|
|
752
|
+
|
|
753
|
+
### Patch Changes
|
|
754
|
+
|
|
755
|
+
- Add `/api/background-tasks` routes (SSE stream, list with filters + pagination, get by ID) and matching `MastraClient` methods (`listBackgroundTasks`, `getBackgroundTask`, `streamBackgroundTasks`). ([#15307](https://github.com/mastra-ai/mastra/pull/15307))
|
|
756
|
+
|
|
757
|
+
- Updated dependencies [[`d63ffdb`](https://github.com/mastra-ai/mastra/commit/d63ffdbb2c11e76fe5ea45faab44bc15460f010c)]:
|
|
758
|
+
- @mastra/core@1.25.1-alpha.0
|
|
759
|
+
|
|
760
|
+
## 1.13.4
|
|
761
|
+
|
|
762
|
+
### Patch Changes
|
|
763
|
+
|
|
764
|
+
- Updated dependencies [[`87df955`](https://github.com/mastra-ai/mastra/commit/87df955c028660c075873fd5d74af28233ce32eb), [`8fad147`](https://github.com/mastra-ai/mastra/commit/8fad14759804179c8e080ce4d9dec6ef1a808b31), [`582644c`](https://github.com/mastra-ai/mastra/commit/582644c4a87f83b4f245a84d72b9e8590585012e), [`cbdf3e1`](https://github.com/mastra-ai/mastra/commit/cbdf3e12b3d0c30a6e5347be658e2009648c130a), [`8fe46d3`](https://github.com/mastra-ai/mastra/commit/8fe46d354027f3f0f0846e64219772348de106dd), [`18c67db`](https://github.com/mastra-ai/mastra/commit/18c67dbb9c9ebc26f26f65f7d3ff836e5691ef46), [`4ba3bb1`](https://github.com/mastra-ai/mastra/commit/4ba3bb1e465ad2ddaba3bbf2bc47e0faec32985e), [`5d84914`](https://github.com/mastra-ai/mastra/commit/5d84914e0e520c642a40329b210b413fcd139898), [`8dcc77e`](https://github.com/mastra-ai/mastra/commit/8dcc77e78a5340f5848f74b9e9f1b3da3513c1f5), [`aa67fc5`](https://github.com/mastra-ai/mastra/commit/aa67fc59ee8a5eeff1f23eb05970b8d7a536c8ff), [`fd2f314`](https://github.com/mastra-ai/mastra/commit/fd2f31473d3449b6b97e837ef8641264377f41a7), [`fa8140b`](https://github.com/mastra-ai/mastra/commit/fa8140bcd4251d2e3ac85fdc5547dfc4f372b5be), [`190f452`](https://github.com/mastra-ai/mastra/commit/190f45258b0640e2adfc8219fa3258cdc5b8f071), [`e80fead`](https://github.com/mastra-ai/mastra/commit/e80fead1412cc0d1b2f7d6a1ce5017d9e0098ff7), [`0287b64`](https://github.com/mastra-ai/mastra/commit/0287b644a5c3272755cf3112e71338106664103b), [`7e7bf60`](https://github.com/mastra-ai/mastra/commit/7e7bf606886bf374a6f9d4ca9b09dd83d0533372), [`184907d`](https://github.com/mastra-ai/mastra/commit/184907d775d8609c03c26e78ccaf37315f3aa287), [`075e91a`](https://github.com/mastra-ai/mastra/commit/075e91a4549baf46ad7a42a6a8ac8dfa78cc09e6), [`2a69802`](https://github.com/mastra-ai/mastra/commit/2a69802a0fc6d8a25a77fa6a42276e9d59a83914), [`0c4cd13`](https://github.com/mastra-ai/mastra/commit/0c4cd131931c04ac5405373c932a242dbe88edd6), [`b16a753`](https://github.com/mastra-ai/mastra/commit/b16a753d5748440248d7df82e29bb987a9c8386c)]:
|
|
765
|
+
- @mastra/core@1.25.0
|
|
766
|
+
- @mastra/schema-compat@1.2.8
|
|
767
|
+
|
|
768
|
+
## 1.13.4-alpha.3
|
|
769
|
+
|
|
770
|
+
### Patch Changes
|
|
771
|
+
|
|
772
|
+
- Updated dependencies [[`cbdf3e1`](https://github.com/mastra-ai/mastra/commit/cbdf3e12b3d0c30a6e5347be658e2009648c130a), [`8fe46d3`](https://github.com/mastra-ai/mastra/commit/8fe46d354027f3f0f0846e64219772348de106dd), [`18c67db`](https://github.com/mastra-ai/mastra/commit/18c67dbb9c9ebc26f26f65f7d3ff836e5691ef46), [`8dcc77e`](https://github.com/mastra-ai/mastra/commit/8dcc77e78a5340f5848f74b9e9f1b3da3513c1f5), [`aa67fc5`](https://github.com/mastra-ai/mastra/commit/aa67fc59ee8a5eeff1f23eb05970b8d7a536c8ff), [`fa8140b`](https://github.com/mastra-ai/mastra/commit/fa8140bcd4251d2e3ac85fdc5547dfc4f372b5be), [`190f452`](https://github.com/mastra-ai/mastra/commit/190f45258b0640e2adfc8219fa3258cdc5b8f071), [`7e7bf60`](https://github.com/mastra-ai/mastra/commit/7e7bf606886bf374a6f9d4ca9b09dd83d0533372), [`184907d`](https://github.com/mastra-ai/mastra/commit/184907d775d8609c03c26e78ccaf37315f3aa287), [`0c4cd13`](https://github.com/mastra-ai/mastra/commit/0c4cd131931c04ac5405373c932a242dbe88edd6), [`b16a753`](https://github.com/mastra-ai/mastra/commit/b16a753d5748440248d7df82e29bb987a9c8386c)]:
|
|
773
|
+
- @mastra/core@1.25.0-alpha.3
|
|
774
|
+
|
|
775
|
+
## 1.13.4-alpha.2
|
|
776
|
+
|
|
777
|
+
### Patch Changes
|
|
778
|
+
|
|
779
|
+
- Updated dependencies [[`4ba3bb1`](https://github.com/mastra-ai/mastra/commit/4ba3bb1e465ad2ddaba3bbf2bc47e0faec32985e), [`2a69802`](https://github.com/mastra-ai/mastra/commit/2a69802a0fc6d8a25a77fa6a42276e9d59a83914)]:
|
|
780
|
+
- @mastra/core@1.25.0-alpha.2
|
|
781
|
+
- @mastra/schema-compat@1.2.8-alpha.0
|
|
782
|
+
|
|
783
|
+
## 1.13.4-alpha.1
|
|
784
|
+
|
|
785
|
+
### Patch Changes
|
|
786
|
+
|
|
787
|
+
- Updated dependencies [[`8fad147`](https://github.com/mastra-ai/mastra/commit/8fad14759804179c8e080ce4d9dec6ef1a808b31), [`582644c`](https://github.com/mastra-ai/mastra/commit/582644c4a87f83b4f245a84d72b9e8590585012e), [`5d84914`](https://github.com/mastra-ai/mastra/commit/5d84914e0e520c642a40329b210b413fcd139898), [`fd2f314`](https://github.com/mastra-ai/mastra/commit/fd2f31473d3449b6b97e837ef8641264377f41a7), [`e80fead`](https://github.com/mastra-ai/mastra/commit/e80fead1412cc0d1b2f7d6a1ce5017d9e0098ff7), [`0287b64`](https://github.com/mastra-ai/mastra/commit/0287b644a5c3272755cf3112e71338106664103b)]:
|
|
788
|
+
- @mastra/core@1.25.0-alpha.1
|
|
789
|
+
|
|
790
|
+
## 1.13.4-alpha.0
|
|
791
|
+
|
|
792
|
+
### Patch Changes
|
|
793
|
+
|
|
794
|
+
- Updated dependencies [[`87df955`](https://github.com/mastra-ai/mastra/commit/87df955c028660c075873fd5d74af28233ce32eb), [`075e91a`](https://github.com/mastra-ai/mastra/commit/075e91a4549baf46ad7a42a6a8ac8dfa78cc09e6)]:
|
|
795
|
+
- @mastra/core@1.24.2-alpha.0
|
|
796
|
+
|
|
797
|
+
## 1.13.3
|
|
798
|
+
|
|
799
|
+
### Patch Changes
|
|
800
|
+
|
|
801
|
+
- Updated dependencies [[`ef94400`](https://github.com/mastra-ai/mastra/commit/ef9440049402596b31f2ab976c5e4508f6cb6c91), [`3db852b`](https://github.com/mastra-ai/mastra/commit/3db852bff74e29f60d415a7b0f1583d6ce2bad92)]:
|
|
802
|
+
- @mastra/core@1.24.1
|
|
803
|
+
|
|
804
|
+
## 1.13.3-alpha.1
|
|
805
|
+
|
|
806
|
+
### Patch Changes
|
|
807
|
+
|
|
808
|
+
- Updated dependencies [[`3db852b`](https://github.com/mastra-ai/mastra/commit/3db852bff74e29f60d415a7b0f1583d6ce2bad92)]:
|
|
809
|
+
- @mastra/core@1.24.1-alpha.1
|
|
810
|
+
|
|
811
|
+
## 1.13.3-alpha.0
|
|
812
|
+
|
|
813
|
+
### Patch Changes
|
|
814
|
+
|
|
815
|
+
- Updated dependencies [[`ef94400`](https://github.com/mastra-ai/mastra/commit/ef9440049402596b31f2ab976c5e4508f6cb6c91)]:
|
|
816
|
+
- @mastra/core@1.24.1-alpha.0
|
|
817
|
+
|
|
818
|
+
## 1.13.2
|
|
819
|
+
|
|
820
|
+
### Patch Changes
|
|
821
|
+
|
|
822
|
+
- Fixed the client JS Responses types to allow omitting the model override. ([#15140](https://github.com/mastra-ai/mastra/pull/15140))
|
|
823
|
+
|
|
824
|
+
- Updated dependencies [[`8db7663`](https://github.com/mastra-ai/mastra/commit/8db7663c9a9c735828094c359d2e327fd4f8fba3), [`153e864`](https://github.com/mastra-ai/mastra/commit/153e86476b425db7cd0dc8490050096e92964a38), [`715710d`](https://github.com/mastra-ai/mastra/commit/715710d12fa47cf88e09d41f13843eddc29327b0), [`378c6c4`](https://github.com/mastra-ai/mastra/commit/378c6c4755726e8d8cf83a14809b350b90d46c62), [`9f91fd5`](https://github.com/mastra-ai/mastra/commit/9f91fd538ab2a44f8cc740bcad8e51205f74fbea), [`ba6fa9c`](https://github.com/mastra-ai/mastra/commit/ba6fa9cc0f3e1912c49fd70d4c3bb8c44903ddaa)]:
|
|
825
|
+
- @mastra/core@1.24.0
|
|
826
|
+
|
|
827
|
+
## 1.13.2-alpha.1
|
|
828
|
+
|
|
829
|
+
### Patch Changes
|
|
830
|
+
|
|
831
|
+
- Updated dependencies [[`8db7663`](https://github.com/mastra-ai/mastra/commit/8db7663c9a9c735828094c359d2e327fd4f8fba3), [`715710d`](https://github.com/mastra-ai/mastra/commit/715710d12fa47cf88e09d41f13843eddc29327b0), [`378c6c4`](https://github.com/mastra-ai/mastra/commit/378c6c4755726e8d8cf83a14809b350b90d46c62), [`9f91fd5`](https://github.com/mastra-ai/mastra/commit/9f91fd538ab2a44f8cc740bcad8e51205f74fbea), [`ba6fa9c`](https://github.com/mastra-ai/mastra/commit/ba6fa9cc0f3e1912c49fd70d4c3bb8c44903ddaa)]:
|
|
832
|
+
- @mastra/core@1.24.0-alpha.1
|
|
833
|
+
|
|
834
|
+
## 1.13.2-alpha.0
|
|
835
|
+
|
|
836
|
+
### Patch Changes
|
|
837
|
+
|
|
838
|
+
- Fixed the client JS Responses types to allow omitting the model override. ([#15140](https://github.com/mastra-ai/mastra/pull/15140))
|
|
839
|
+
|
|
840
|
+
- Updated dependencies [[`153e864`](https://github.com/mastra-ai/mastra/commit/153e86476b425db7cd0dc8490050096e92964a38)]:
|
|
841
|
+
- @mastra/core@1.23.1-alpha.0
|
|
842
|
+
|
|
843
|
+
## 1.13.1
|
|
844
|
+
|
|
845
|
+
### Patch Changes
|
|
846
|
+
|
|
847
|
+
- Added an `includeSystemReminders` option to `listThreadMessages()` and memory thread message listing so clients can opt into raw system reminder history when needed. ([#15100](https://github.com/mastra-ai/mastra/pull/15100))
|
|
848
|
+
|
|
849
|
+
- Updated dependencies [[`f32b9e1`](https://github.com/mastra-ai/mastra/commit/f32b9e115a3c754d1c8cfa3f4256fba87b09cfb7), [`7d6f521`](https://github.com/mastra-ai/mastra/commit/7d6f52164d0cca099f0b07cb2bba334360f1c8ab), [`a50d220`](https://github.com/mastra-ai/mastra/commit/a50d220b01ecbc5644d489a3d446c3bd4ab30245), [`665477b`](https://github.com/mastra-ai/mastra/commit/665477bc104fd52cfef8e7610d7664781a70c220), [`4cc2755`](https://github.com/mastra-ai/mastra/commit/4cc2755a7194cb08720ff2ab4dffb4b4a5103dfd), [`ac7baf6`](https://github.com/mastra-ai/mastra/commit/ac7baf66ef1db15e03975ef4ebb02724f015a391), [`ed425d7`](https://github.com/mastra-ai/mastra/commit/ed425d78e7c66cbda8209fee910856f98c6c6b82), [`1371703`](https://github.com/mastra-ai/mastra/commit/1371703835080450ef3f9aea58059a95d0da2e5a), [`0df8321`](https://github.com/mastra-ai/mastra/commit/0df832196eeb2450ab77ce887e8553abdd44c5a6), [`98f8a8b`](https://github.com/mastra-ai/mastra/commit/98f8a8bdf5761b9982f3ad3acbe7f1cc3efa71f3), [`ba6f7e9`](https://github.com/mastra-ai/mastra/commit/ba6f7e9086d8281393f2acae60fda61de3bff1f9), [`7eb2596`](https://github.com/mastra-ai/mastra/commit/7eb25960d607e07468c9a10c5437abd2deaf1e9a), [`1805ddc`](https://github.com/mastra-ai/mastra/commit/1805ddc9c9b3b14b63749735a13c05a45af43a80), [`fff91cf`](https://github.com/mastra-ai/mastra/commit/fff91cf914de0e731578aacebffdeebef82f0440), [`61109b3`](https://github.com/mastra-ai/mastra/commit/61109b34feb0e38d54bee4b8ca83eb7345b1d557), [`33f1ead`](https://github.com/mastra-ai/mastra/commit/33f1eadfa19c86953f593478e5fa371093b33779)]:
|
|
850
|
+
- @mastra/core@1.23.0
|
|
851
|
+
|
|
852
|
+
## 1.13.1-alpha.9
|
|
853
|
+
|
|
854
|
+
### Patch Changes
|
|
855
|
+
|
|
856
|
+
- Updated dependencies [[`a50d220`](https://github.com/mastra-ai/mastra/commit/a50d220b01ecbc5644d489a3d446c3bd4ab30245)]:
|
|
857
|
+
- @mastra/core@1.23.0-alpha.9
|
|
858
|
+
|
|
859
|
+
## 1.13.1-alpha.8
|
|
860
|
+
|
|
861
|
+
### Patch Changes
|
|
862
|
+
|
|
863
|
+
- Added an `includeSystemReminders` option to `listThreadMessages()` and memory thread message listing so clients can opt into raw system reminder history when needed. ([#15100](https://github.com/mastra-ai/mastra/pull/15100))
|
|
864
|
+
|
|
865
|
+
- Updated dependencies [[`ac7baf6`](https://github.com/mastra-ai/mastra/commit/ac7baf66ef1db15e03975ef4ebb02724f015a391), [`0df8321`](https://github.com/mastra-ai/mastra/commit/0df832196eeb2450ab77ce887e8553abdd44c5a6), [`61109b3`](https://github.com/mastra-ai/mastra/commit/61109b34feb0e38d54bee4b8ca83eb7345b1d557), [`33f1ead`](https://github.com/mastra-ai/mastra/commit/33f1eadfa19c86953f593478e5fa371093b33779)]:
|
|
866
|
+
- @mastra/core@1.23.0-alpha.8
|
|
867
|
+
|
|
868
|
+
## 1.13.1-alpha.7
|
|
869
|
+
|
|
870
|
+
### Patch Changes
|
|
871
|
+
|
|
872
|
+
- Updated dependencies [[`665477b`](https://github.com/mastra-ai/mastra/commit/665477bc104fd52cfef8e7610d7664781a70c220), [`4cc2755`](https://github.com/mastra-ai/mastra/commit/4cc2755a7194cb08720ff2ab4dffb4b4a5103dfd)]:
|
|
873
|
+
- @mastra/core@1.23.0-alpha.7
|
|
874
|
+
|
|
875
|
+
## 1.13.1-alpha.6
|
|
876
|
+
|
|
877
|
+
### Patch Changes
|
|
878
|
+
|
|
879
|
+
- Updated dependencies [[`7d6f521`](https://github.com/mastra-ai/mastra/commit/7d6f52164d0cca099f0b07cb2bba334360f1c8ab)]:
|
|
880
|
+
- @mastra/core@1.23.0-alpha.6
|
|
881
|
+
|
|
882
|
+
## 1.13.1-alpha.5
|
|
883
|
+
|
|
884
|
+
### Patch Changes
|
|
885
|
+
|
|
886
|
+
- Updated dependencies [[`1371703`](https://github.com/mastra-ai/mastra/commit/1371703835080450ef3f9aea58059a95d0da2e5a), [`98f8a8b`](https://github.com/mastra-ai/mastra/commit/98f8a8bdf5761b9982f3ad3acbe7f1cc3efa71f3)]:
|
|
887
|
+
- @mastra/core@1.23.0-alpha.5
|
|
888
|
+
|
|
889
|
+
## 1.13.1-alpha.4
|
|
890
|
+
|
|
891
|
+
### Patch Changes
|
|
892
|
+
|
|
893
|
+
- Updated dependencies [[`fff91cf`](https://github.com/mastra-ai/mastra/commit/fff91cf914de0e731578aacebffdeebef82f0440)]:
|
|
894
|
+
- @mastra/core@1.23.0-alpha.4
|
|
895
|
+
|
|
896
|
+
## 1.13.1-alpha.3
|
|
897
|
+
|
|
898
|
+
### Patch Changes
|
|
899
|
+
|
|
900
|
+
- Updated dependencies [[`1805ddc`](https://github.com/mastra-ai/mastra/commit/1805ddc9c9b3b14b63749735a13c05a45af43a80)]:
|
|
901
|
+
- @mastra/core@1.23.0-alpha.3
|
|
902
|
+
|
|
903
|
+
## 1.13.1-alpha.2
|
|
904
|
+
|
|
905
|
+
### Patch Changes
|
|
906
|
+
|
|
907
|
+
- Updated dependencies:
|
|
908
|
+
- @mastra/core@1.23.0-alpha.2
|
|
909
|
+
|
|
910
|
+
## 1.13.1-alpha.1
|
|
911
|
+
|
|
912
|
+
### Patch Changes
|
|
913
|
+
|
|
914
|
+
- Updated dependencies [[`f32b9e1`](https://github.com/mastra-ai/mastra/commit/f32b9e115a3c754d1c8cfa3f4256fba87b09cfb7)]:
|
|
915
|
+
- @mastra/core@1.23.0-alpha.1
|
|
916
|
+
|
|
917
|
+
## 1.13.1-alpha.0
|
|
4
918
|
|
|
5
919
|
### Patch Changes
|
|
6
920
|
|
|
7
|
-
- Updated dependencies [[`
|
|
8
|
-
- @mastra/core@
|
|
921
|
+
- Updated dependencies [[`ed425d7`](https://github.com/mastra-ai/mastra/commit/ed425d78e7c66cbda8209fee910856f98c6c6b82), [`ba6f7e9`](https://github.com/mastra-ai/mastra/commit/ba6f7e9086d8281393f2acae60fda61de3bff1f9), [`7eb2596`](https://github.com/mastra-ai/mastra/commit/7eb25960d607e07468c9a10c5437abd2deaf1e9a)]:
|
|
922
|
+
- @mastra/core@1.23.0-alpha.0
|
|
9
923
|
|
|
10
924
|
## 1.13.0
|
|
11
925
|
|