@lmzhen/dsh-evolution-approval 0.1.0-rc.64 → 0.1.0-rc.66

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -0
  2. package/package.json +8 -8
package/lib/index.js CHANGED
@@ -36,6 +36,7 @@ var EvolutionApproval = class extends Service {
36
36
  return this.enabled;
37
37
  }
38
38
  registerRunner(kind, runner) {
39
+ if (this.runners.has(kind)) throw new Error(`approval runner for "${kind}" is already registered`);
39
40
  this.runners.set(kind, runner);
40
41
  return () => {
41
42
  if (this.runners.get(kind) === runner) this.runners.delete(kind);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-approval",
3
3
  "description": "Stage/pending approval service for Hermes-style self-evolution writes (community build)",
4
- "version": "0.1.0-rc.64",
4
+ "version": "0.1.0-rc.66",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,15 +37,15 @@
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
39
39
  "@deepseek-ai/cordis": "^4.0.1",
40
- "@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.64",
41
- "@lmzhen/dsh-evolution-state": "^0.1.0-rc.64"
40
+ "@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.66",
41
+ "@lmzhen/dsh-evolution-state": "^0.1.0-rc.66"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
45
- "@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.64",
46
- "@lmzhen/dsh-evolution-state": "^0.1.0-rc.64",
47
- "@lmzhen/dsh-evolution-io": "^0.1.0-rc.64",
48
- "@lmzhen/dsh-evolution-io-node": "^0.1.0-rc.64",
49
- "@lmzhen/dsh-evolution-state-json": "^0.1.0-rc.64"
45
+ "@lmzhen/dsh-evolution-state-storage": "^0.1.0-rc.66",
46
+ "@lmzhen/dsh-evolution-state": "^0.1.0-rc.66",
47
+ "@lmzhen/dsh-evolution-io": "^0.1.0-rc.66",
48
+ "@lmzhen/dsh-evolution-io-node": "^0.1.0-rc.66",
49
+ "@lmzhen/dsh-evolution-state-json": "^0.1.0-rc.66"
50
50
  }
51
51
  }