@lmzhen/dsh-evolution-review 0.3.79 → 0.3.80
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 +4 -2
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -612,6 +612,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
612
612
|
const opName = typeof args.name === "string" ? args.name : "";
|
|
613
613
|
const hashChecked = (args.action === "update" || args.action === "edit" || args.action === "patch") && opName !== "" && preRunHashes?.has(opName) === true;
|
|
614
614
|
const anchored = hashChecked && typeof stagedBytes === "string" ? stagedBytes : null;
|
|
615
|
+
let gateVerifiedBytes = null;
|
|
615
616
|
if (hashChecked) {
|
|
616
617
|
const live = anchored !== null ? anchored : hashLibrary ? await hashLibrary.read(opName).catch(() => null) : null;
|
|
617
618
|
const preRun = preRunHashes.get(opName);
|
|
@@ -620,8 +621,9 @@ function apply(ctx, rawConfig = {}) {
|
|
|
620
621
|
failedOps.push(`skill ${args.action} ${args.name}: the skill changed while this review ran — ${args.action === "patch" ? "patch" : "update"} refused as stale; produce a fresh plan`);
|
|
621
622
|
continue;
|
|
622
623
|
}
|
|
624
|
+
if (anchored === null) gateVerifiedBytes = live;
|
|
623
625
|
}
|
|
624
|
-
const anchorBytes = anchored ?? stagedBytes;
|
|
626
|
+
const anchorBytes = anchored ?? gateVerifiedBytes ?? stagedBytes;
|
|
625
627
|
if ((args.action === "update" || args.action === "edit") && anchorBytes !== void 0) args.staged_from_sha256 = anchorBytes === null ? "absent" : contentHash(anchorBytes);
|
|
626
628
|
const runnerArgs = {
|
|
627
629
|
operation: args,
|
|
@@ -739,7 +741,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
739
741
|
return updated;
|
|
740
742
|
}
|
|
741
743
|
if (op.action === "patch") {
|
|
742
|
-
const patched = await library.patch(name, op.old_string ?? "", op.new_string ?? "", op.file_path ?? "",
|
|
744
|
+
const patched = await library.patch(name, op.old_string ?? "", op.new_string ?? "", op.file_path ?? "", op.replace_all === true, origin);
|
|
743
745
|
if (patched.ok) await ctx.get("skillUsage")?.record?.(name, "patch").catch(() => {});
|
|
744
746
|
return patched;
|
|
745
747
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-review",
|
|
3
3
|
"description": "Background review orchestration (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.80",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
30
|
-
"@lmzhen/dsh-evolution-approval": "^0.3.
|
|
31
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
32
|
-
"@lmzhen/dsh-evolution-plan-validator": "^0.3.
|
|
30
|
+
"@lmzhen/dsh-evolution-approval": "^0.3.80",
|
|
31
|
+
"@lmzhen/dsh-evolution-core": "^0.3.80",
|
|
32
|
+
"@lmzhen/dsh-evolution-plan-validator": "^0.3.80"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@deepseek-ai/dsh-llm": "^0.1.5-rc.2",
|
|
38
38
|
"@deepseek-ai/dsh-session": "^0.1.5-rc.2",
|
|
39
39
|
"@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
|
|
40
|
-
"@lmzhen/dsh-evolution-state": "^0.3.
|
|
41
|
-
"@lmzhen/dsh-evolution-policy": "^0.3.
|
|
40
|
+
"@lmzhen/dsh-evolution-state": "^0.3.80",
|
|
41
|
+
"@lmzhen/dsh-evolution-policy": "^0.3.80"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@deepseek-ai/dsh-agent": "^0.1.5-rc.2",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"@deepseek-ai/dsh-session-persistence": "^0.1.5-rc.2",
|
|
49
49
|
"@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.5-rc.2",
|
|
50
50
|
"@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
|
|
51
|
-
"@lmzhen/dsh-evolution-approval": "^0.3.
|
|
52
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
53
|
-
"@lmzhen/dsh-evolution-curator": "^0.3.
|
|
54
|
-
"@lmzhen/dsh-evolution-plan-validator": "^0.3.
|
|
55
|
-
"@lmzhen/dsh-evolution-state": "^0.3.
|
|
51
|
+
"@lmzhen/dsh-evolution-approval": "^0.3.80",
|
|
52
|
+
"@lmzhen/dsh-evolution-core": "^0.3.80",
|
|
53
|
+
"@lmzhen/dsh-evolution-curator": "^0.3.80",
|
|
54
|
+
"@lmzhen/dsh-evolution-plan-validator": "^0.3.80",
|
|
55
|
+
"@lmzhen/dsh-evolution-state": "^0.3.80"
|
|
56
56
|
}
|
|
57
57
|
}
|