@mastra/editor 0.13.14-alpha.0 → 0.13.14-alpha.1
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 +9 -0
- package/dist/index.cjs +3 -6
- 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 +3 -6
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/editor
|
|
2
2
|
|
|
3
|
+
## 0.13.14-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Keep agent snapshot updates as drafts until explicitly published. ([#21528](https://github.com/mastra-ai/mastra/pull/21528))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`7e096f0`](https://github.com/mastra-ai/mastra/commit/7e096f02f0dddbf09b85d306458351245ed2f886), [`8f0a332`](https://github.com/mastra-ai/mastra/commit/8f0a3321bf180368d76fe7b36aa1a8f60f00b6de), [`b098de9`](https://github.com/mastra-ai/mastra/commit/b098de9d7cb9f672e0883a5c716465a3a689693d), [`ef6e295`](https://github.com/mastra-ai/mastra/commit/ef6e295b59bc25a5b61b633a89c97bcfce9fb465), [`208e1b3`](https://github.com/mastra-ai/mastra/commit/208e1b39f30f4b386e494394e9d71d96f0f90241), [`c938d34`](https://github.com/mastra-ai/mastra/commit/c938d34739936c8ecbabd67ad6a4a4396f41c4c6), [`1d9a0ea`](https://github.com/mastra-ai/mastra/commit/1d9a0ea4a9901baee6cd56737243bd6d1f631ac0), [`3667679`](https://github.com/mastra-ai/mastra/commit/3667679db057edfb086846d13369fdda4902ad65), [`49696e8`](https://github.com/mastra-ai/mastra/commit/49696e8e42f870674a0a58f5abcd22cc54dd2864), [`512100a`](https://github.com/mastra-ai/mastra/commit/512100a7d8b7e9c920f2590c6b3612f5de0d3cff), [`9ef432b`](https://github.com/mastra-ai/mastra/commit/9ef432b6faa534b57b0d182a610e13dd9a7123ff), [`b9cf308`](https://github.com/mastra-ai/mastra/commit/b9cf30846f97f99ac1906ee8a68f4f2d117b0378)]:
|
|
10
|
+
- @mastra/core@1.60.0-alpha.2
|
|
11
|
+
|
|
3
12
|
## 0.13.14-alpha.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -707,18 +707,15 @@ var EditorAgentNamespace = class extends CrudEditorNamespace {
|
|
|
707
707
|
if (!await store.getById(input.id)) throw new Error(`Agent with id ${input.id} not found`);
|
|
708
708
|
const providedConfig = getProvidedSnapshotFields(input, AGENT_SNAPSHOT_CONFIG_FIELDS);
|
|
709
709
|
if ("workspace" in providedConfig) await this.ensureStoredWorkspaceRefs(providedConfig.workspace);
|
|
710
|
-
|
|
710
|
+
if (Object.keys(providedConfig).length > 0) await createVersionFromSnapshotUpdate({
|
|
711
711
|
store,
|
|
712
712
|
parentId: input.id,
|
|
713
713
|
parentIdField: "agentId",
|
|
714
714
|
snapshotFields: AGENT_SNAPSHOT_CONFIG_FIELDS,
|
|
715
715
|
providedConfig
|
|
716
|
-
}) : { versionCreated: false };
|
|
717
|
-
const recordFields = getProvidedAgentRecordFields(input);
|
|
718
|
-
if (recordFields || versionResult.versionCreated) await store.update({
|
|
719
|
-
...recordFields ?? { id: input.id },
|
|
720
|
-
...versionResult.versionCreated ? { activeVersionId: versionResult.version.id } : {}
|
|
721
716
|
});
|
|
717
|
+
const recordFields = getProvidedAgentRecordFields(input);
|
|
718
|
+
if (recordFields) await store.update(recordFields);
|
|
722
719
|
this._cache.delete(input.id);
|
|
723
720
|
this.onCacheEvict(input.id);
|
|
724
721
|
const existingCodeAgent = this.getCodeDefinedAgent(input.id);
|