@mastra/client-js 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 CHANGED
@@ -1,5 +1,57 @@
1
1
  # @mastra/client-js
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
+ - Updated dependencies [[`0d9efb4`](https://github.com/mastra-ai/mastra/commit/0d9efb47992c34aa90581c18b9f51f774f6252a5), [`7184d87`](https://github.com/mastra-ai/mastra/commit/7184d87c9237d26862f500ccfd0c9f9eadd38ddf), [`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)]:
52
+ - @mastra/core@1.6.0
53
+ - @mastra/schema-compat@1.1.2
54
+
3
55
  ## 1.6.0-alpha.0
4
56
 
5
57
  ### Minor Changes
@@ -3,7 +3,7 @@ name: mastra-client-js
3
3
  description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/client-js"
6
- version: "1.6.0-alpha.0"
6
+ version: "1.6.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.0-alpha.0",
2
+ "version": "1.6.0",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/client-js",
3
- "version": "1.6.0-alpha.0",
3
+ "version": "1.6.0",
4
4
  "description": "The official TypeScript library for the Mastra Client API",
5
5
  "author": "",
6
6
  "type": "module",
@@ -36,8 +36,8 @@
36
36
  "dependencies": {
37
37
  "@lukeed/uuid": "^2.0.1",
38
38
  "json-schema": "^0.4.0",
39
- "@mastra/core": "1.6.0-alpha.0",
40
- "@mastra/schema-compat": "1.1.2-alpha.0"
39
+ "@mastra/core": "1.6.0",
40
+ "@mastra/schema-compat": "1.1.2"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "zod": "^3.25.0 || ^4.0.0"
@@ -46,17 +46,17 @@
46
46
  "@ai-sdk/ui-utils": "^1.2.11",
47
47
  "@types/json-schema": "^7.0.15",
48
48
  "@types/node": "22.19.7",
49
- "@vitest/coverage-v8": "4.0.12",
50
- "@vitest/ui": "4.0.12",
49
+ "@vitest/coverage-v8": "4.0.18",
50
+ "@vitest/ui": "4.0.18",
51
51
  "eslint": "^9.37.0",
52
52
  "tsup": "^8.5.1",
53
53
  "typescript": "^5.9.3",
54
- "vitest": "4.0.16",
54
+ "vitest": "4.0.18",
55
55
  "zod": "^3.25.76",
56
- "@internal/ai-sdk-v5": "0.0.7",
57
- "@internal/lint": "0.0.60",
58
- "@internal/ai-sdk-v4": "0.0.7",
59
- "@internal/types-builder": "0.0.35"
56
+ "@internal/ai-sdk-v4": "0.0.8",
57
+ "@internal/ai-sdk-v5": "0.0.8",
58
+ "@internal/lint": "0.0.61",
59
+ "@internal/types-builder": "0.0.36"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=22.13.0"