@mastra/server 0.24.7-alpha.4 → 0.24.8-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 +60 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 0.24.8-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @mastra/core@0.24.8-alpha.0
|
|
9
|
+
|
|
10
|
+
## 0.24.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Add timeTravel APIs and add timeTravel feature to studio ([#10757](https://github.com/mastra-ai/mastra/pull/10757))
|
|
15
|
+
|
|
16
|
+
- feat: Add partial response support for agent and workflow list endpoints ([#10906](https://github.com/mastra-ai/mastra/pull/10906))
|
|
17
|
+
|
|
18
|
+
Add optional `partial` query parameter to `/api/agents` and `/api/workflows` endpoints to return minimal data without schemas, reducing payload size for list views:
|
|
19
|
+
- When `partial=true`: tool schemas (inputSchema, outputSchema) are omitted
|
|
20
|
+
- When `partial=true`: workflow steps are replaced with stepCount integer
|
|
21
|
+
- When `partial=true`: workflow root schemas (inputSchema, outputSchema) are omitted
|
|
22
|
+
- Maintains backward compatibility when partial parameter is not provided
|
|
23
|
+
|
|
24
|
+
## Server Endpoint Usage
|
|
25
|
+
|
|
26
|
+
```http
|
|
27
|
+
# Get partial agent data (no tool schemas)
|
|
28
|
+
GET /api/agents?partial=true
|
|
29
|
+
|
|
30
|
+
# Get full agent data (default behavior)
|
|
31
|
+
GET /api/agents
|
|
32
|
+
|
|
33
|
+
# Get partial workflow data (stepCount instead of steps, no schemas)
|
|
34
|
+
GET /api/workflows?partial=true
|
|
35
|
+
|
|
36
|
+
# Get full workflow data (default behavior)
|
|
37
|
+
GET /api/workflows
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Client SDK Usage
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import { MastraClient } from '@mastra/client-js';
|
|
44
|
+
|
|
45
|
+
const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
|
|
46
|
+
|
|
47
|
+
// Get partial agent list (smaller payload)
|
|
48
|
+
const partialAgents = await client.listAgents({ partial: true });
|
|
49
|
+
|
|
50
|
+
// Get full agent list with tool schemas
|
|
51
|
+
const fullAgents = await client.listAgents();
|
|
52
|
+
|
|
53
|
+
// Get partial workflow list (smaller payload)
|
|
54
|
+
const partialWorkflows = await client.listWorkflows({ partial: true });
|
|
55
|
+
|
|
56
|
+
// Get full workflow list with steps and schemas
|
|
57
|
+
const fullWorkflows = await client.listWorkflows();
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [[`5cc85aa`](https://github.com/mastra-ai/mastra/commit/5cc85aa4329773cac8314f3aa0146227b6b158e4), [`c53f8e6`](https://github.com/mastra-ai/mastra/commit/c53f8e68df42464935f9a63eb0fc765a65aacb83), [`386ab43`](https://github.com/mastra-ai/mastra/commit/386ab4350cf2a814fb4ac0a5fc6983ca93158ffe), [`2b62302`](https://github.com/mastra-ai/mastra/commit/2b623027a9d65c1dbc963bf651e9e6a9d09da1fa), [`7d85da4`](https://github.com/mastra-ai/mastra/commit/7d85da42a5fab56009a959a9c20328558d14f4b5), [`3d7c5bd`](https://github.com/mastra-ai/mastra/commit/3d7c5bdbee1b2693cd45bf207b960dd9b7277680), [`31b381e`](https://github.com/mastra-ai/mastra/commit/31b381efb48e031c0ecc46bc6e410ae6e67b88e5), [`54cc99c`](https://github.com/mastra-ai/mastra/commit/54cc99cb99483b9e08ec41fa1502f43b71b4c351), [`e77a5f9`](https://github.com/mastra-ai/mastra/commit/e77a5f9718dc418e29e3c8a389299ed6dc0a6401), [`b685c9c`](https://github.com/mastra-ai/mastra/commit/b685c9c0b89f49e0d4542c4ac72569682db69794), [`b069af5`](https://github.com/mastra-ai/mastra/commit/b069af514c4dcfc4fdcb164303569bfff1c26e3d), [`7dc8304`](https://github.com/mastra-ai/mastra/commit/7dc830420296db516b86dcec663e54d0309b8fb8), [`6942109`](https://github.com/mastra-ai/mastra/commit/694210903c70e3c26b5ce8ca4f4637ca2d9eb369), [`62d13f4`](https://github.com/mastra-ai/mastra/commit/62d13f4d1db1c16742831f210fe4c2caf8a26d57), [`358ab98`](https://github.com/mastra-ai/mastra/commit/358ab98024c388e383aca15616e8988bf4a5b66e)]:
|
|
61
|
+
- @mastra/core@0.24.7
|
|
62
|
+
|
|
3
63
|
## 0.24.7-alpha.4
|
|
4
64
|
|
|
5
65
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "0.24.
|
|
3
|
+
"version": "0.24.8-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"typescript": "^5.8.3",
|
|
71
71
|
"vitest": "^3.2.4",
|
|
72
72
|
"zod": "^3.25.76",
|
|
73
|
-
"@internal/
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@mastra/agent-builder": "0.2.6
|
|
77
|
-
"@internal/types-builder": "0.0.
|
|
73
|
+
"@internal/storage-test-utils": "0.0.61",
|
|
74
|
+
"@internal/lint": "0.0.65",
|
|
75
|
+
"@mastra/core": "0.24.8-alpha.0",
|
|
76
|
+
"@mastra/agent-builder": "0.2.6",
|
|
77
|
+
"@internal/types-builder": "0.0.40"
|
|
78
78
|
},
|
|
79
79
|
"homepage": "https://mastra.ai",
|
|
80
80
|
"repository": {
|