@mastra/editor 0.4.0-alpha.0 → 0.4.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 +105 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,110 @@
1
1
  # @mastra/editor
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added observational memory configuration support for stored agents. When creating or editing a stored agent in the playground, you can now enable observational memory and configure its settings including model provider/name, scope (thread or resource), share token budget, and detailed observer/reflector parameters like token limits, buffer settings, and blocking thresholds. The configuration is serialized as part of the agent's memory config and round-trips through storage. ([#12962](https://github.com/mastra-ai/mastra/pull/12962))
8
+
9
+ **Example usage in the playground:**
10
+
11
+ Enable the Observational Memory toggle in the Memory section, then configure:
12
+ - Top-level model (provider + model) used by both observer and reflector
13
+ - Scope: `thread` (per-conversation) or `resource` (shared across threads)
14
+ - Expand **Observer** or **Reflector** sections to override models and tune token budgets
15
+
16
+ **Programmatic usage via client SDK:**
17
+
18
+ ```ts
19
+ await client.createStoredAgent({
20
+ name: 'My Agent',
21
+ // ...other config
22
+ memory: {
23
+ observationalMemory: true, // enable with defaults
24
+ options: { lastMessages: 40 },
25
+ },
26
+ });
27
+
28
+ // Or with custom configuration:
29
+ await client.createStoredAgent({
30
+ name: 'My Agent',
31
+ memory: {
32
+ observationalMemory: {
33
+ model: 'google/gemini-2.5-flash',
34
+ scope: 'resource',
35
+ shareTokenBudget: true,
36
+ observation: { messageTokens: 50000 },
37
+ reflection: { observationTokens: 60000 },
38
+ },
39
+ options: { lastMessages: 40 },
40
+ },
41
+ });
42
+ ```
43
+
44
+ **Programmatic usage via editor:**
45
+
46
+ ```ts
47
+ await editor.agent.create({
48
+ name: 'My Agent',
49
+ // ...other config
50
+ memory: {
51
+ observationalMemory: true, // enable with defaults
52
+ options: { lastMessages: 40 },
53
+ },
54
+ });
55
+
56
+ // Or with custom configuration:
57
+ await editor.agent.create({
58
+ name: 'My Agent',
59
+ memory: {
60
+ observationalMemory: {
61
+ model: 'google/gemini-2.5-flash',
62
+ scope: 'resource',
63
+ shareTokenBudget: true,
64
+ observation: { messageTokens: 50000 },
65
+ reflection: { observationTokens: 60000 },
66
+ },
67
+ options: { lastMessages: 40 },
68
+ },
69
+ });
70
+ ```
71
+
72
+ - Added MCP client management, integration tools resolution, and built-in Composio and Arcade AI tool providers. ([#12974](https://github.com/mastra-ai/mastra/pull/12974))
73
+
74
+ **MCP Client Namespace**
75
+
76
+ New `editor.mcpClient` namespace for managing stored MCP client configurations with full CRUD operations. Stored agents can reference MCP clients with per-server tool filtering.
77
+
78
+ **Integration Tools**
79
+
80
+ Stored agents now support an `integrationTools` conditional field that resolves tools from registered `ToolProvider` instances at hydration time:
81
+
82
+ ```ts
83
+ import { MastraEditor } from '@mastra/editor';
84
+ import { ComposioToolProvider } from '@mastra/editor/composio';
85
+ import { ArcadeToolProvider } from '@mastra/editor/arcade';
86
+
87
+ const editor = new MastraEditor({
88
+ // ...
89
+ toolProviders: {
90
+ composio: new ComposioToolProvider({ apiKey: '...' }),
91
+ arcade: new ArcadeToolProvider({ apiKey: '...' }),
92
+ },
93
+ });
94
+ ```
95
+
96
+ **Built-in Tool Providers**
97
+ - `@mastra/editor/composio` — Composio tool provider with toolkit/tool discovery and execution via `@composio/core` and `@composio/mastra` SDKs
98
+ - `@mastra/editor/arcade` — Arcade AI tool provider with a pre-seeded catalog of 93 toolkits, tool discovery, and execution via `@arcadeai/arcadejs` SDK
99
+
100
+ Each provider is a separate entry point — importing `@mastra/editor` alone does not load any provider SDK code.
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [[`7ef618f`](https://github.com/mastra-ai/mastra/commit/7ef618f3c49c27e2f6b27d7f564c557c0734325b), [`b373564`](https://github.com/mastra-ai/mastra/commit/b37356491d43b4d53067f10cb669abaf2502f218), [`927c2af`](https://github.com/mastra-ai/mastra/commit/927c2af9792286c122e04409efce0f3c804f777f), [`b896b41`](https://github.com/mastra-ai/mastra/commit/b896b41343de7fcc14442fb40fe82d189e65bbe2), [`6415277`](https://github.com/mastra-ai/mastra/commit/6415277a438faa00db2af850ead5dee25f40c428), [`191bc3a`](https://github.com/mastra-ai/mastra/commit/191bc3adfdbe4b262dbc93b7d9c3d6c6a3c8ef92), [`0831bbb`](https://github.com/mastra-ai/mastra/commit/0831bbb5bc750c18e9b22b45f18687c964b70828), [`74fb394`](https://github.com/mastra-ai/mastra/commit/74fb3944f51f55e1fc1ca65eede4254d8fe72aa3), [`63f7eda`](https://github.com/mastra-ai/mastra/commit/63f7eda605eb3e0c8c35ee3912ffe7c999c69f69), [`a5b67a3`](https://github.com/mastra-ai/mastra/commit/a5b67a3589a74415feb663a55d1858324a2afde9), [`877b02c`](https://github.com/mastra-ai/mastra/commit/877b02cdbb15e199184c7f2b8f217be8d3ebada7), [`cb8c38e`](https://github.com/mastra-ai/mastra/commit/cb8c38e6f855ad190383a7112ba95abef072d490), [`7567222`](https://github.com/mastra-ai/mastra/commit/7567222b1366f0d39980594792dd9d5060bfe2ab), [`af71458`](https://github.com/mastra-ai/mastra/commit/af71458e3b566f09c11d0e5a0a836dc818e7a24a), [`eb36bd8`](https://github.com/mastra-ai/mastra/commit/eb36bd8c52fcd6ec9674ac3b7a6412405b5983e1), [`3cbf121`](https://github.com/mastra-ai/mastra/commit/3cbf121f55418141924754a83102aade89835947)]:
105
+ - @mastra/core@1.4.0
106
+ - @mastra/memory@1.3.0
107
+
3
108
  ## 0.4.0-alpha.0
4
109
 
5
110
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/editor",
3
- "version": "0.4.0-alpha.0",
3
+ "version": "0.4.0",
4
4
  "description": "Mastra Editor for agent management and instantiation",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -55,7 +55,7 @@
55
55
  "@arcadeai/arcadejs": "^2.2.0",
56
56
  "@composio/core": "^0.6.3",
57
57
  "@composio/mastra": "^0.6.3",
58
- "@mastra/memory": "1.3.0-alpha.0",
58
+ "@mastra/memory": "1.3.0",
59
59
  "@mastra/schema-compat": "1.1.0"
60
60
  },
61
61
  "devDependencies": {
@@ -63,11 +63,11 @@
63
63
  "typescript": "^5.9.3",
64
64
  "vitest": "4.0.16",
65
65
  "zod": "^3.25.76",
66
- "@internal/ai-v6": "0.0.5",
67
- "@internal/ai-sdk-v5": "0.0.5",
68
- "@internal/ai-sdk-v4": "0.0.5",
69
- "@mastra/core": "1.4.0-alpha.0",
70
- "@mastra/libsql": "1.4.0-alpha.0"
66
+ "@internal/ai-sdk-v5": "0.0.6",
67
+ "@internal/ai-sdk-v4": "0.0.6",
68
+ "@internal/ai-v6": "0.0.6",
69
+ "@mastra/core": "1.4.0",
70
+ "@mastra/libsql": "1.4.0"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@mastra/core": ">=1.0.0-0 <2.0.0-0",