@mastra/editor 0.17.1-alpha.3 → 0.17.1-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.
@@ -3,7 +3,7 @@ name: mastra-editor
3
3
  description: Documentation for @mastra/editor. Use when working with @mastra/editor APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/editor"
6
- version: "0.17.1-alpha.3"
6
+ version: "0.17.1-alpha.5"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.17.1-alpha.3",
2
+ "version": "0.17.1-alpha.5",
3
3
  "package": "@mastra/editor",
4
4
  "exports": {
5
5
  "CrudEditorNamespace": {
package/dist/index.cjs CHANGED
@@ -1317,7 +1317,7 @@ var EditorAgentNamespace = class extends CrudEditorNamespace {
1317
1317
  ...skillsFormat && { skillsFormat },
1318
1318
  ...durable !== void 0 && { durable }
1319
1319
  });
1320
- if (!this.getCodeDefinedAgent(storedAgent.id)) {
1320
+ if (!this.getCodeDefinedAgent(storedAgent.id) && this.mastra?.listAgents()[storedAgent.id]?.source !== "stored") {
1321
1321
  this.mastra?.addAgent(agent, storedAgent.id, { source: "stored" });
1322
1322
  this._registeredStoredAgentIds.add(storedAgent.id);
1323
1323
  }