@mastra/editor 0.8.0-alpha.1 → 0.8.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # @mastra/editor
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added optional `metadata` to code-defined agents. Pass a `metadata` record to `new Agent({...})`, read it back with `agent.getMetadata()`, and clients can filter on it from the existing `/agents` and `/agents/:agentId` responses without encoding the data into IDs or names. ([#16603](https://github.com/mastra-ai/mastra/pull/16603))
8
+
9
+ Metadata supports the same `DynamicArgument` form as other agent config fields, so it can also be resolved per request from the request context.
10
+
11
+ Stored agents loaded via the editor also expose their metadata through `agent.getMetadata()`, so clients can filter these agents as well. Cloning a runtime agent via `editor.agent.clone()` now carries the source agent's metadata over to the stored clone when the caller does not provide one explicitly.
12
+
13
+ ```ts
14
+ // Static
15
+ const supportAgent = new Agent({
16
+ id: 'support-agent',
17
+ name: 'Support Agent',
18
+ instructions: 'You help customers with support requests.',
19
+ model: 'openai/gpt-5',
20
+ metadata: { type: 'support' },
21
+ });
22
+
23
+ supportAgent.getMetadata(); // { type: 'support' }
24
+
25
+ // Dynamic
26
+ const tenantAgent = new Agent({
27
+ id: 'tenant-agent',
28
+ name: 'Tenant Agent',
29
+ instructions: 'You help customers with tenant-specific tasks.',
30
+ model: 'openai/gpt-5',
31
+ metadata: ({ requestContext }) => ({
32
+ type: 'support',
33
+ tenant: requestContext.get('tenant'),
34
+ }),
35
+ });
36
+
37
+ await tenantAgent.getMetadata({ requestContext }); // { type: 'support', tenant: 'acme' }
38
+ ```
39
+
40
+ ### Patch Changes
41
+
42
+ - Fixed stored agent tool overrides so conditional tool configuration no longer recursively calls the forked agent when merging code-defined tools. ([#16544](https://github.com/mastra-ai/mastra/pull/16544))
43
+
44
+ - Updated dependencies [[`20787de`](https://github.com/mastra-ai/mastra/commit/20787de5965234a1af28fe35f49437c537dbfa0d), [`784ad98`](https://github.com/mastra-ai/mastra/commit/784ad989549de91dc5d33ab8ef36caa6f7dcd34e), [`fceae1f`](https://github.com/mastra-ai/mastra/commit/fceae1f5f5db4722cb078a663c6eb4bd22944123), [`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`97fe629`](https://github.com/mastra-ai/mastra/commit/97fe629d07b0a9952e6657b1e6334ca4d9aa15ce), [`bf02acb`](https://github.com/mastra-ai/mastra/commit/bf02acbb8a6110f638ac844e89f1ebf04cb7fe74), [`090a647`](https://github.com/mastra-ai/mastra/commit/090a647ba5a66d36f203f9f49457e03a1ff4e6fb), [`bdb4cbf`](https://github.com/mastra-ai/mastra/commit/bdb4cbf8ba4b685d7481f28bb9dc3de6c79c9ed2), [`0fd3fbe`](https://github.com/mastra-ai/mastra/commit/0fd3fbe40fb63657aedd72f6e7b38c8e8ee6940d), [`f84447d`](https://github.com/mastra-ai/mastra/commit/f84447d6c80f3471836a9b300d246b331fb47e0d), [`a1a5b3e`](https://github.com/mastra-ai/mastra/commit/a1a5b3e42ab2ca5161ea21db59ebf28442680fa7), [`af84f57`](https://github.com/mastra-ai/mastra/commit/af84f571ed762e92e8e61c5f9a72363520914274), [`8b3c6f9`](https://github.com/mastra-ai/mastra/commit/8b3c6f90f7879833ba7d1bc70937e1d8f69d0804), [`fed0475`](https://github.com/mastra-ai/mastra/commit/fed0475ccfea31e4fc251469ac05640d0742c1f0), [`0d53730`](https://github.com/mastra-ai/mastra/commit/0d53730c1ed87ef80c87caa5701c4170ea8028e6), [`522f44d`](https://github.com/mastra-ai/mastra/commit/522f44d947214bfc06cff50599bae1ef3494880d)]:
45
+ - @mastra/core@1.34.0
46
+ - @mastra/memory@1.18.1
47
+
3
48
  ## 0.8.0-alpha.1
4
49
 
5
50
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/editor",
3
- "version": "0.8.0-alpha.1",
3
+ "version": "0.8.0",
4
4
  "description": "Mastra Editor for agent management and instantiation",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -65,8 +65,8 @@
65
65
  "@arcadeai/arcadejs": "^2.3.0",
66
66
  "@composio/core": "^0.6.5",
67
67
  "@composio/mastra": "^0.6.5",
68
- "@mastra/memory": "1.18.1-alpha.0",
69
- "@mastra/schema-compat": "1.2.10"
68
+ "@mastra/schema-compat": "1.2.10",
69
+ "@mastra/memory": "1.18.1"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@hono/node-server": "^1.19.11",
@@ -75,13 +75,13 @@
75
75
  "typescript": "^6.0.3",
76
76
  "vitest": "4.1.5",
77
77
  "zod": "^3.25.76",
78
- "@internal/ai-sdk-v4": "0.0.41",
79
- "@internal/ai-sdk-v5": "0.0.41",
80
- "@internal/ai-v6": "0.0.41",
81
- "@mastra/core": "1.34.0-alpha.3",
82
- "@mastra/mcp": "1.7.0",
78
+ "@internal/ai-sdk-v4": "0.0.42",
79
+ "@internal/ai-sdk-v5": "0.0.42",
80
+ "@internal/ai-v6": "0.0.42",
81
+ "@mastra/hono": "1.4.16",
83
82
  "@mastra/libsql": "1.10.1",
84
- "@mastra/hono": "1.4.16-alpha.3"
83
+ "@mastra/mcp": "1.7.0",
84
+ "@mastra/core": "1.34.0"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@mastra/core": ">=1.13.2-0 <2.0.0-0",