@mastra/server 1.50.0-alpha.5 → 1.50.1-alpha.0
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 +58 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 1.50.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`e900f25`](https://github.com/mastra-ai/mastra/commit/e900f25dfe2c9237f15b26cb109ac55aa9de3000)]:
|
|
8
|
+
- @mastra/core@1.50.1-alpha.0
|
|
9
|
+
|
|
10
|
+
## 1.50.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- **Merged `/api/heartbeats` into `/api/schedules`.** The server now exposes one unified schedules API that covers both agent schedules (previously heartbeats) and workflow schedules. ([#18874](https://github.com/mastra-ai/mastra/pull/18874))
|
|
15
|
+
- `GET /api/schedules` lists both kinds and supports `agentId`, `workflowId`, `status`, `threadId`, `resourceId`, and `name` filters.
|
|
16
|
+
- `POST /api/schedules` creates an agent schedule (body with `agentId`, `cron`, `prompt`) or a workflow schedule (body with `workflowId`, `cron`).
|
|
17
|
+
- `PATCH`, `DELETE`, and `POST .../pause`, `.../resume`, `.../run` work for both kinds.
|
|
18
|
+
- The `/api/heartbeats/*` routes were removed. Use `/api/schedules/*` instead.
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
curl -X POST http://localhost:4111/api/schedules \
|
|
22
|
+
-H 'Content-Type: application/json' \
|
|
23
|
+
-d '{"agentId":"chef-agent","cron":"0 9 * * *","prompt":"Suggest a dish of the day"}'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Added workspace-level provider registry to MastraEditor. You can now register WorkspaceProvider factories that build complete Workspace instances as a single unit, instead of composing from separate filesystem and sandbox providers. Stored agents can reference a workspace provider via `{ type: 'provider', provider: 'my-cloud', config: { ... } }` and the editor will call the registered factory during agent hydration. ([#18781](https://github.com/mastra-ai/mastra/pull/18781))
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
import { MastraEditor } from '@mastra/editor';
|
|
32
|
+
import { Workspace } from '@mastra/core/workspace';
|
|
33
|
+
|
|
34
|
+
const editor = new MastraEditor({
|
|
35
|
+
workspaces: {
|
|
36
|
+
'my-cloud': {
|
|
37
|
+
id: 'my-cloud',
|
|
38
|
+
name: 'My Cloud Workspace',
|
|
39
|
+
createWorkspace: config =>
|
|
40
|
+
new Workspace({
|
|
41
|
+
id: 'cloud-ws',
|
|
42
|
+
name: 'Cloud WS',
|
|
43
|
+
filesystem: new MyCloudFilesystem(config),
|
|
44
|
+
sandbox: new MyCloudSandbox(config),
|
|
45
|
+
}),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Stored agent workspace reference using the provider:
|
|
51
|
+
// { type: 'provider', provider: 'my-cloud', config: { region: 'us-east-1' } }
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
- Fixed AgentController route handlers dropping the request context set by server middleware. Identity values set on the request context in `server.middleware` (for example a tenant id) now reach dynamic instructions and tools when an agent is driven through the AgentController API, matching the behavior of the plain agent routes. This applies to the send-message, steer, follow-up, tool-approval, and tool-suspension routes. Fixes [#18916](https://github.com/mastra-ai/mastra/issues/18916). ([#18918](https://github.com/mastra-ai/mastra/pull/18918))
|
|
55
|
+
|
|
56
|
+
- Update `@mastra/core` peer dependency for the unified schedules API ([#18874](https://github.com/mastra-ai/mastra/pull/18874))
|
|
57
|
+
|
|
58
|
+
- Updated dependencies [[`b291760`](https://github.com/mastra-ai/mastra/commit/b291760df9d6c7e4fc72606c8f0a4af2cf6e946c), [`3ffb8b7`](https://github.com/mastra-ai/mastra/commit/3ffb8b720e90f5e6977129ec1f6707d43c2bebe0), [`6ef59fe`](https://github.com/mastra-ai/mastra/commit/6ef59fef1da52ed8da5fbb2a892c71cf4fb6c739), [`4039488`](https://github.com/mastra-ai/mastra/commit/403948898af7293198d9e8b3e7fb47f623c78b94), [`29b7ea6`](https://github.com/mastra-ai/mastra/commit/29b7ea64e72b5523d5bdcbd34ee03d2b854d54e1), [`b2c9d70`](https://github.com/mastra-ai/mastra/commit/b2c9d70757207fb01a9069549e69b6f0d73a6636), [`a51c63d`](https://github.com/mastra-ai/mastra/commit/a51c63d8ee639e4daeba2a0be093efa6a1b5e52f), [`252f63d`](https://github.com/mastra-ai/mastra/commit/252f63d8fec723955adb2202be2f01a75ad0e69c), [`5ea76a7`](https://github.com/mastra-ai/mastra/commit/5ea76a723d966c72da9aa3ab30ae20276e049765), [`6445560`](https://github.com/mastra-ai/mastra/commit/6445560327045d20b239585fc63fed72e9ce36ec), [`e2b9f33`](https://github.com/mastra-ai/mastra/commit/e2b9f33456fd638eca555f9466c6519d8d049666), [`10959d5`](https://github.com/mastra-ai/mastra/commit/10959d509d824f682d40ff96e05ee044aec3b0e5), [`c547a77`](https://github.com/mastra-ai/mastra/commit/c547a7729bdf64dfc2df29c965046c0712a18f10), [`a0085fa`](https://github.com/mastra-ai/mastra/commit/a0085fa0934e52c37c8c8b3d75a6bb5cd199af36), [`a2ba369`](https://github.com/mastra-ai/mastra/commit/a2ba369e796dfab610f41c6875965b488272fa55), [`ffc3c17`](https://github.com/mastra-ai/mastra/commit/ffc3c17274ea17c11aa6f73d3140649cd7fc8abc), [`81542c1`](https://github.com/mastra-ai/mastra/commit/81542c1835c35bc32f2ce4fa9136ee11993cd299), [`3908e53`](https://github.com/mastra-ai/mastra/commit/3908e53ce04bbea04f5e0c097d7aa298c35fabee), [`cb24ce7`](https://github.com/mastra-ai/mastra/commit/cb24ce76bd16ca88eb6a963f6277f8780e703029), [`02705fd`](https://github.com/mastra-ai/mastra/commit/02705fd2f5a9062210d64ea061adeeb10dc9452e), [`ae51e81`](https://github.com/mastra-ai/mastra/commit/ae51e818825582d42500338dfc1929a082eff0ba), [`6f304ef`](https://github.com/mastra-ai/mastra/commit/6f304ef319e99725e884bdb8d3193c001b6e5964), [`5f9858f`](https://github.com/mastra-ai/mastra/commit/5f9858f791f1137ca7d52d23559fb4568f7a9026)]:
|
|
59
|
+
- @mastra/core@1.50.0
|
|
60
|
+
|
|
3
61
|
## 1.50.0-alpha.5
|
|
4
62
|
|
|
5
63
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "1.50.
|
|
3
|
+
"version": "1.50.1-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
"vitest": "4.1.8",
|
|
116
116
|
"zod": "^4.4.3",
|
|
117
117
|
"zod-to-ts": "^2.1.0",
|
|
118
|
-
"@internal/lint": "0.0.111",
|
|
119
|
-
"@internal/test-utils": "0.0.47",
|
|
120
|
-
"@internal/storage-test-utils": "0.0.107",
|
|
121
118
|
"@internal/core": "0.1.0",
|
|
122
|
-
"@internal/
|
|
123
|
-
"@internal/
|
|
119
|
+
"@internal/lint": "0.0.112",
|
|
120
|
+
"@internal/storage-test-utils": "0.0.108",
|
|
121
|
+
"@internal/types-builder": "0.0.87",
|
|
122
|
+
"@internal/voice": "0.0.12",
|
|
124
123
|
"@mastra/agent-builder": "1.1.4",
|
|
125
|
-
"@
|
|
126
|
-
"@mastra/schema-compat": "1.3.3"
|
|
124
|
+
"@internal/test-utils": "0.0.48",
|
|
125
|
+
"@mastra/schema-compat": "1.3.3",
|
|
126
|
+
"@mastra/core": "1.50.1-alpha.0"
|
|
127
127
|
},
|
|
128
128
|
"homepage": "https://mastra.ai",
|
|
129
129
|
"repository": {
|