@mastra/editor 0.7.10-alpha.0 → 0.7.10

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,26 @@
1
1
  # @mastra/editor
2
2
 
3
+ ## 0.7.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Code-defined agents no longer get overridden with draft version data when no version has been explicitly published. When requesting `published` status and no `activeVersionId` is set, the agent's code defaults are preserved instead of falling back to the latest draft. ([#14894](https://github.com/mastra-ai/mastra/pull/14894))
8
+
9
+ - Updated dependencies [[`180aaaf`](https://github.com/mastra-ai/mastra/commit/180aaaf4d0903d33a49bc72de2d40ca69a5bc599), [`25bbff6`](https://github.com/mastra-ai/mastra/commit/25bbff67dadc01d5a18095574421f6266f610b17), [`9140989`](https://github.com/mastra-ai/mastra/commit/91409890e83f4f1d9c1b39223f1af91a6a53b549), [`542977f`](https://github.com/mastra-ai/mastra/commit/542977fe5043678df071ad3982b6bcbc78d95f02), [`d7c98cf`](https://github.com/mastra-ai/mastra/commit/d7c98cfc9d75baba9ecbf1a8835b5183d0a0aec8), [`acf5fbc`](https://github.com/mastra-ai/mastra/commit/acf5fbcb890dc7ca7167bec386ce5874dfadb997), [`24ca2ae`](https://github.com/mastra-ai/mastra/commit/24ca2ae57538ec189fabb9daee6175ad27035853), [`0762516`](https://github.com/mastra-ai/mastra/commit/07625167e029a8268ea7aaf0402416e6d8832874), [`9c57f2f`](https://github.com/mastra-ai/mastra/commit/9c57f2f7241e9f94769aa99fc86c531e8207d0f9), [`5bfc691`](https://github.com/mastra-ai/mastra/commit/5bfc69104c07ba7a9b55c2f8536422c0878b9c57), [`d2d0bea`](https://github.com/mastra-ai/mastra/commit/d2d0beaafba2e25b9ad368015ce91312c372f6a5), [`2de3d36`](https://github.com/mastra-ai/mastra/commit/2de3d36932b7f73ad26bc403f7da26cfe89e903e), [`d3736cb`](https://github.com/mastra-ai/mastra/commit/d3736cb9ce074d2b8e8b00218a01f790fe81a1b4), [`c627366`](https://github.com/mastra-ai/mastra/commit/c6273666f9ef4c8c617c68b7d07fe878a322f85c), [`66a7412`](https://github.com/mastra-ai/mastra/commit/66a7412ec0550f3dfa01cd05b057d8c6e5b062bc)]:
10
+ - @mastra/core@1.19.0
11
+ - @mastra/memory@1.12.0
12
+ - @mastra/mcp@1.4.0
13
+
14
+ ## 0.7.10-alpha.1
15
+
16
+ ### Patch Changes
17
+
18
+ - Code-defined agents no longer get overridden with draft version data when no version has been explicitly published. When requesting `published` status and no `activeVersionId` is set, the agent's code defaults are preserved instead of falling back to the latest draft. ([#14894](https://github.com/mastra-ai/mastra/pull/14894))
19
+
20
+ - Updated dependencies [[`542977f`](https://github.com/mastra-ai/mastra/commit/542977fe5043678df071ad3982b6bcbc78d95f02), [`9c57f2f`](https://github.com/mastra-ai/mastra/commit/9c57f2f7241e9f94769aa99fc86c531e8207d0f9), [`5bfc691`](https://github.com/mastra-ai/mastra/commit/5bfc69104c07ba7a9b55c2f8536422c0878b9c57), [`d2d0bea`](https://github.com/mastra-ai/mastra/commit/d2d0beaafba2e25b9ad368015ce91312c372f6a5)]:
21
+ - @mastra/memory@1.12.0-alpha.1
22
+ - @mastra/core@1.19.0-alpha.2
23
+
3
24
  ## 0.7.10-alpha.0
4
25
 
5
26
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -683,6 +683,12 @@ var EditorAgentNamespace = class extends CrudEditorNamespace {
683
683
  this.clearResolvedVersionId(agent);
684
684
  return agent;
685
685
  }
686
+ const requestedPublished = options && !("versionId" in options) && options.status === "published";
687
+ if (requestedPublished && !storedConfig.activeVersionId) {
688
+ this.restoreCodeDefaults(agent);
689
+ this.clearResolvedVersionId(agent);
690
+ return agent;
691
+ }
686
692
  this.saveCodeDefaults(agent);
687
693
  this.restoreCodeDefaults(agent);
688
694
  this.saveCodeDefaults(agent);
package/dist/index.js CHANGED
@@ -635,6 +635,12 @@ var EditorAgentNamespace = class extends CrudEditorNamespace {
635
635
  this.clearResolvedVersionId(agent);
636
636
  return agent;
637
637
  }
638
+ const requestedPublished = options && !("versionId" in options) && options.status === "published";
639
+ if (requestedPublished && !storedConfig.activeVersionId) {
640
+ this.restoreCodeDefaults(agent);
641
+ this.clearResolvedVersionId(agent);
642
+ return agent;
643
+ }
638
644
  this.saveCodeDefaults(agent);
639
645
  this.restoreCodeDefaults(agent);
640
646
  this.saveCodeDefaults(agent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/editor",
3
- "version": "0.7.10-alpha.0",
3
+ "version": "0.7.10",
4
4
  "description": "Mastra Editor for agent management and instantiation",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -65,7 +65,7 @@
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.11.1-alpha.0",
68
+ "@mastra/memory": "1.12.0",
69
69
  "@mastra/schema-compat": "1.2.7"
70
70
  },
71
71
  "devDependencies": {
@@ -75,13 +75,13 @@
75
75
  "typescript": "^5.9.3",
76
76
  "vitest": "4.0.18",
77
77
  "zod": "^3.25.76",
78
- "@internal/ai-sdk-v5": "0.0.22",
79
- "@internal/ai-sdk-v4": "0.0.22",
80
- "@internal/ai-v6": "0.0.22",
81
- "@mastra/hono": "1.3.2-alpha.0",
82
- "@mastra/core": "1.18.1-alpha.0",
78
+ "@internal/ai-sdk-v5": "0.0.23",
79
+ "@internal/ai-v6": "0.0.23",
80
+ "@internal/ai-sdk-v4": "0.0.23",
81
+ "@mastra/core": "1.19.0",
82
+ "@mastra/hono": "1.3.2",
83
83
  "@mastra/libsql": "1.7.3",
84
- "@mastra/mcp": "1.3.2"
84
+ "@mastra/mcp": "1.4.0"
85
85
  },
86
86
  "peerDependencies": {
87
87
  "@mastra/core": ">=1.7.1-0 <2.0.0-0",