@mastra/server 1.6.0-alpha.0 → 1.6.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 +55 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,60 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added Processor Providers — a new system for configuring and hydrating processors on stored agents. Define custom processor types with config schemas, available phases, and a factory method, then compose them into serializable processor graphs that support sequential, parallel, and conditional execution. ([#13219](https://github.com/mastra-ai/mastra/pull/13219))
|
|
8
|
+
|
|
9
|
+
**Example — custom processor provider:**
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { MastraEditor } from '@mastra/editor';
|
|
13
|
+
|
|
14
|
+
// Built-in processors (token-limiter, unicode-normalizer, etc.) are registered automatically.
|
|
15
|
+
// Only register custom providers for your own processors:
|
|
16
|
+
const editor = new MastraEditor({
|
|
17
|
+
processorProviders: {
|
|
18
|
+
'my-custom-filter': myCustomFilterProvider,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Example — stored agent with a processor graph:**
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
const agentConfig = {
|
|
27
|
+
inputProcessors: {
|
|
28
|
+
steps: [
|
|
29
|
+
{
|
|
30
|
+
type: 'step',
|
|
31
|
+
step: { id: 'norm', providerId: 'unicode-normalizer', config: {}, enabledPhases: ['processInput'] },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: 'step',
|
|
35
|
+
step: {
|
|
36
|
+
id: 'limit',
|
|
37
|
+
providerId: 'token-limiter',
|
|
38
|
+
config: { limit: 4000 },
|
|
39
|
+
enabledPhases: ['processInput', 'processOutputStream'],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Added skill editing and workspace support in the agent CMS. Agents can now toggle skills on/off and associate a workspace. Fixed auto-versioning to compare against the latest draft version instead of the published one, preventing stale draft configs from being returned after saves. ([#13314](https://github.com/mastra-ai/mastra/pull/13314))
|
|
50
|
+
|
|
51
|
+
- Fixed recursive schema warnings for processor graph entries by unrolling to a fixed depth of 3 levels, matching the existing rule group pattern ([#13292](https://github.com/mastra-ai/mastra/pull/13292))
|
|
52
|
+
|
|
53
|
+
- Workspace tools like `ast_edit` are now correctly detected at runtime based on available dependencies (e.g. `@ast-grep/napi`), preventing missing tools from being advertised to agents. ([#13233](https://github.com/mastra-ai/mastra/pull/13233))
|
|
54
|
+
|
|
55
|
+
- Updated dependencies [[`0d9efb4`](https://github.com/mastra-ai/mastra/commit/0d9efb47992c34aa90581c18b9f51f774f6252a5), [`5caa13d`](https://github.com/mastra-ai/mastra/commit/5caa13d1b2a496e2565ab124a11de9a51ad3e3b9), [`940163f`](https://github.com/mastra-ai/mastra/commit/940163fc492401d7562301e6f106ccef4fefe06f), [`47892c8`](https://github.com/mastra-ai/mastra/commit/47892c85708eac348209f99f10f9a5f5267e11c0), [`45bb78b`](https://github.com/mastra-ai/mastra/commit/45bb78b70bd9db29678fe49476cd9f4ed01bfd0b), [`70eef84`](https://github.com/mastra-ai/mastra/commit/70eef84b8f44493598fdafa2980a0e7283415eda), [`d84e52d`](https://github.com/mastra-ai/mastra/commit/d84e52d0f6511283ddd21ed5fe7f945449d0f799), [`24b80af`](https://github.com/mastra-ai/mastra/commit/24b80af87da93bb84d389340181e17b7477fa9ca), [`608e156`](https://github.com/mastra-ai/mastra/commit/608e156def954c9604c5e3f6d9dfce3bcc7aeab0), [`2b2e157`](https://github.com/mastra-ai/mastra/commit/2b2e157a092cd597d9d3f0000d62b8bb4a7348ed), [`59d30b5`](https://github.com/mastra-ai/mastra/commit/59d30b5d0cb44ea7a1c440e7460dfb57eac9a9b5), [`453693b`](https://github.com/mastra-ai/mastra/commit/453693bf9e265ddccecef901d50da6caaea0fbc6), [`78d1c80`](https://github.com/mastra-ai/mastra/commit/78d1c808ad90201897a300af551bcc1d34458a20), [`c204b63`](https://github.com/mastra-ai/mastra/commit/c204b632d19e66acb6d6e19b11c4540dd6ad5380), [`742a417`](https://github.com/mastra-ai/mastra/commit/742a417896088220a3b5560c354c45c5ca6d88b9)]:
|
|
56
|
+
- @mastra/core@1.6.0
|
|
57
|
+
|
|
3
58
|
## 1.6.0-alpha.0
|
|
4
59
|
|
|
5
60
|
### Minor 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.6.0
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -84,19 +84,19 @@
|
|
|
84
84
|
"@ai-sdk/openai": "^1.3.24",
|
|
85
85
|
"@ai-sdk/openai-v5": "npm:@ai-sdk/openai@2.0.89",
|
|
86
86
|
"@types/node": "22.19.7",
|
|
87
|
-
"@vitest/coverage-v8": "4.0.
|
|
88
|
-
"@vitest/ui": "4.0.
|
|
87
|
+
"@vitest/coverage-v8": "4.0.18",
|
|
88
|
+
"@vitest/ui": "4.0.18",
|
|
89
89
|
"eslint": "^9.37.0",
|
|
90
90
|
"superjson": "^2.2.6",
|
|
91
91
|
"tsup": "^8.5.1",
|
|
92
92
|
"typescript": "^5.9.3",
|
|
93
|
-
"vitest": "4.0.
|
|
93
|
+
"vitest": "4.0.18",
|
|
94
94
|
"zod": "^3.25.76",
|
|
95
|
-
"@internal/lint": "0.0.
|
|
96
|
-
"@internal/storage-test-utils": "0.0.
|
|
97
|
-
"@mastra/agent-builder": "1.0.6
|
|
98
|
-
"@
|
|
99
|
-
"@
|
|
95
|
+
"@internal/lint": "0.0.61",
|
|
96
|
+
"@internal/storage-test-utils": "0.0.57",
|
|
97
|
+
"@mastra/agent-builder": "1.0.6",
|
|
98
|
+
"@internal/types-builder": "0.0.36",
|
|
99
|
+
"@mastra/core": "1.6.0"
|
|
100
100
|
},
|
|
101
101
|
"homepage": "https://mastra.ai",
|
|
102
102
|
"repository": {
|