@lmzhen/dsh-evolution-curator 0.32.2 → 0.32.4

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/lib/index.js CHANGED
@@ -1636,6 +1636,15 @@ var EvolutionCurator = class extends Service {
1636
1636
  };
1637
1637
  }
1638
1638
  async undoUnit(name, unitId) {
1639
+ const release = await this.acquireMutex();
1640
+ try {
1641
+ if (!this.holdsInstance) return this.instanceHeldRefusal("undo-unit");
1642
+ return await this.undoUnitMutate(name, unitId);
1643
+ } finally {
1644
+ release();
1645
+ }
1646
+ }
1647
+ async undoUnitMutate(name, unitId) {
1639
1648
  const versions = await this.skills.listVersions(name);
1640
1649
  if (versions.length === 0) return {
1641
1650
  ok: false,
@@ -592,6 +592,7 @@ export declare class EvolutionCurator extends Service {
592
592
  message: string;
593
593
  }>;
594
594
  undoUnit(name: string, unitId?: string): Promise<SkillActionResult>;
595
+ private undoUnitMutate;
595
596
  /** The content the live bytes replaced: the CHAIN first, the recorded order as the fallback.
596
597
  *
597
598
  * Every entry written from 0.10.0 on carries `beforeHash`, read under the content lock, so the link
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-curator",
3
3
  "description": "Deterministic skill lifecycle and recovery (community build)",
4
- "version": "0.32.2",
4
+ "version": "0.32.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,21 +27,21 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.5",
30
- "@lmzhen/dsh-evolution-core": "^0.32.2"
30
+ "@lmzhen/dsh-evolution-core": "^0.32.4"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.5",
34
34
  "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
35
35
  "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
36
- "@lmzhen/dsh-evolution-io": "^0.32.2",
37
- "@lmzhen/dsh-evolution-state": "^0.32.2"
36
+ "@lmzhen/dsh-evolution-io": "^0.32.4",
37
+ "@lmzhen/dsh-evolution-state": "^0.32.4"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
41
41
  "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
42
- "@lmzhen/dsh-evolution-core": "^0.32.2",
43
- "@lmzhen/dsh-evolution-io": "^0.32.2",
44
- "@lmzhen/dsh-evolution-state": "^0.32.2"
42
+ "@lmzhen/dsh-evolution-core": "^0.32.4",
43
+ "@lmzhen/dsh-evolution-io": "^0.32.4",
44
+ "@lmzhen/dsh-evolution-state": "^0.32.4"
45
45
  },
46
46
  "engines": {
47
47
  "dsh": ">=0.2.1-rc.2 <0.2.2-0"