@lmzhen/dsh-evolution-approval 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -177,7 +177,7 @@ var EvolutionApproval = class extends Service {
177
177
  message: `Pending write "${id}" carries no claim to release (unexpected record shape) — reject it instead.`
178
178
  };
179
179
  const holderPid = parseLockBody(claimId);
180
- if (holderPid !== null && holderPid !== process.pid && isProcessAlive(holderPid)) return {
180
+ if (holderPid !== null && holderPid > 0 && holderPid !== process.pid && isProcessAlive(holderPid)) return {
181
181
  ok: false,
182
182
  message: `Pending write "${id}" is claimed by pid ${holderPid}, which is ALIVE — another process may be running this approve. Do not release it: verify the write effect instead and let that run finish (a completed approve resolves its own record).`
183
183
  };
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.4.0",
4
+ "version": "0.4.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,16 +27,16 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.1",
30
- "@lmzhen/dsh-evolution-core": "^0.4.0"
30
+ "@lmzhen/dsh-evolution-core": "^0.4.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.1",
34
- "@lmzhen/dsh-evolution-state-storage": "^0.4.0",
35
- "@lmzhen/dsh-evolution-state": "^0.4.0"
34
+ "@lmzhen/dsh-evolution-state-storage": "^0.4.1",
35
+ "@lmzhen/dsh-evolution-state": "^0.4.1"
36
36
  },
37
37
  "devDependencies": {
38
- "@lmzhen/dsh-evolution-core": "^0.4.0",
39
- "@lmzhen/dsh-evolution-state-storage": "^0.4.0",
40
- "@lmzhen/dsh-evolution-state": "^0.4.0"
38
+ "@lmzhen/dsh-evolution-core": "^0.4.1",
39
+ "@lmzhen/dsh-evolution-state-storage": "^0.4.1",
40
+ "@lmzhen/dsh-evolution-state": "^0.4.1"
41
41
  }
42
42
  }