@mastra/editor 0.13.14-alpha.4 → 0.14.0-alpha.5
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 +24 -0
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @mastra/editor
|
|
2
2
|
|
|
3
|
+
## 0.14.0-alpha.5
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added a `durable` option to stored agents so agents created through the Agents API can run with durable execution — no code deployment required. ([#21715](https://github.com/mastra-ai/mastra/pull/21715))
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
await mastraClient.createStoredAgent({
|
|
11
|
+
id: 'helper',
|
|
12
|
+
name: 'Helper',
|
|
13
|
+
instructions: 'You are a helpful assistant.',
|
|
14
|
+
model: { provider: 'openai', name: 'gpt-5' },
|
|
15
|
+
durable: true,
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Pass `true` for defaults, or `{ maxSteps, cleanupTimeoutMs }` to tune the durable loop. Cache and pubsub are inherited from the server's Mastra instance, so configure distributed backends there for durability across replicas. Automatic recovery is still configured in code via `recovery.durableAgents`.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`6223446`](https://github.com/mastra-ai/mastra/commit/6223446ddce6166e96e0ba5e00d628b615dee8ca), [`583e235`](https://github.com/mastra-ai/mastra/commit/583e23519c13af16c1746f9c49722d011216611b), [`a77f8d4`](https://github.com/mastra-ai/mastra/commit/a77f8d4740d2178a74c41e4bf678b4fcd8fa0bb2), [`40d358e`](https://github.com/mastra-ai/mastra/commit/40d358e29d55543803e64b49241122f598ffabc7), [`e80cd7e`](https://github.com/mastra-ai/mastra/commit/e80cd7e7683e7d732e1cc6784bcac1d2640d2ce3), [`39ba1b9`](https://github.com/mastra-ai/mastra/commit/39ba1b9ce256a9a910a16f125cc6a59588185bfe), [`0f53aeb`](https://github.com/mastra-ai/mastra/commit/0f53aeb119158bd9f83bd8ef667f1f675740e8f0), [`20504b2`](https://github.com/mastra-ai/mastra/commit/20504b2ecebd0e077acda3d457ab57480a98ed3e)]:
|
|
24
|
+
- @mastra/core@1.60.0-alpha.11
|
|
25
|
+
- @mastra/mcp@1.17.0-alpha.2
|
|
26
|
+
|
|
3
27
|
## 0.13.14-alpha.4
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -591,7 +591,8 @@ const AGENT_SNAPSHOT_CONFIG_FIELDS = [
|
|
|
591
591
|
"skills",
|
|
592
592
|
"skillsFormat",
|
|
593
593
|
"workspace",
|
|
594
|
-
"browser"
|
|
594
|
+
"browser",
|
|
595
|
+
"durable"
|
|
595
596
|
];
|
|
596
597
|
/** Fields from builder.configuration.agent that can be applied as creation defaults */
|
|
597
598
|
const BUILDER_DEFAULT_FIELDS = [
|
|
@@ -1135,6 +1136,7 @@ var EditorAgentNamespace = class extends CrudEditorNamespace {
|
|
|
1135
1136
|
return this.resolveStoredBrowser(resolvedRef);
|
|
1136
1137
|
} : await this.resolveStoredBrowser(storedAgent.browser);
|
|
1137
1138
|
const skillsFormat = storedAgent.skillsFormat;
|
|
1139
|
+
const durable = storedAgent.durable;
|
|
1138
1140
|
const agent = new _mastra_core_agent.Agent({
|
|
1139
1141
|
id: storedAgent.id,
|
|
1140
1142
|
name: storedAgent.name,
|
|
@@ -1155,7 +1157,8 @@ var EditorAgentNamespace = class extends CrudEditorNamespace {
|
|
|
1155
1157
|
requestContextSchema,
|
|
1156
1158
|
workspace,
|
|
1157
1159
|
browser,
|
|
1158
|
-
...skillsFormat && { skillsFormat }
|
|
1160
|
+
...skillsFormat && { skillsFormat },
|
|
1161
|
+
...durable !== void 0 && { durable }
|
|
1159
1162
|
});
|
|
1160
1163
|
if (!this.getCodeDefinedAgent(storedAgent.id)) this.mastra?.addAgent(agent, storedAgent.id, { source: "stored" });
|
|
1161
1164
|
this.logger?.debug(`[createAgentFromStoredConfig] Successfully created agent "${storedAgent.id}"`);
|