@lmzhen/dsh-evolution-review 0.3.16 → 0.3.17
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 +5 -4
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -169,7 +169,7 @@ function apply(ctx, rawConfig) {
|
|
|
169
169
|
});
|
|
170
170
|
const acceptedSkillOps = validation.accepted.skillOps ?? [];
|
|
171
171
|
const skippedUnread = filterUnreadSkillOps(acceptedSkillOps, new Set([...collectReadSkillNames(session), ...childReads]));
|
|
172
|
-
const actions = await executePlan(validation.accepted);
|
|
172
|
+
const actions = await executePlan(validation.accepted, session.id);
|
|
173
173
|
const evidenceQuotes = [...validation.accepted.memoryOps ?? [], ...acceptedSkillOps].reduce((total, op) => total + (Array.isArray(op.evidence) ? op.evidence.length : 0), 0);
|
|
174
174
|
ctx.emit("evolution/plan-applied", {
|
|
175
175
|
sessionId: session.id,
|
|
@@ -206,7 +206,7 @@ function apply(ctx, rawConfig) {
|
|
|
206
206
|
return false;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
async function executePlan(plan) {
|
|
209
|
+
async function executePlan(plan, sessionId) {
|
|
210
210
|
const memory = ctx.get("memory");
|
|
211
211
|
const approval = ctx.get("evolutionApproval");
|
|
212
212
|
const origins = resolveOrigins(void 0, true);
|
|
@@ -247,14 +247,15 @@ function apply(ctx, rawConfig) {
|
|
|
247
247
|
kind,
|
|
248
248
|
summary,
|
|
249
249
|
args: stored,
|
|
250
|
-
origin: origins.approval
|
|
250
|
+
origin: origins.approval,
|
|
251
|
+
...sessionId ? { sessionId } : {}
|
|
251
252
|
});
|
|
252
253
|
if (decision.action === "staged") return {
|
|
253
254
|
ok: false,
|
|
254
255
|
message: decision.message
|
|
255
256
|
};
|
|
256
257
|
if (approval.isEnabled === false) return await runnerDirect(kind, runnerArgs);
|
|
257
|
-
return await approval.run(kind, runnerArgs);
|
|
258
|
+
return await approval.run(kind, runnerArgs, { interface: "background_review" });
|
|
258
259
|
}
|
|
259
260
|
/** Direct execution for the approval-disabled case (parallel to executeSkillDirect). */
|
|
260
261
|
async function runnerDirect(kind, args) {
|
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.17",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
36
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
37
|
-
"@lmzhen/dsh-evolution-plan-validator": "^0.3.
|
|
36
|
+
"@lmzhen/dsh-evolution-core": "^0.3.17",
|
|
37
|
+
"@lmzhen/dsh-evolution-plan-validator": "^0.3.17"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
44
44
|
"@deepseek-ai/dsh-session": "^0.1.1-rc.2",
|
|
45
45
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
46
|
-
"@lmzhen/dsh-evolution-state": "^0.3.
|
|
46
|
+
"@lmzhen/dsh-evolution-state": "^0.3.17"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@deepseek-ai/dsh-agent": "^0.1.1-rc.2",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@deepseek-ai/dsh-session-persistence": "^0.1.1-rc.2",
|
|
55
55
|
"@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.1-rc.2",
|
|
56
56
|
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
57
|
-
"@lmzhen/dsh-evolution-approval": "^0.3.
|
|
58
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
59
|
-
"@lmzhen/dsh-evolution-plan-validator": "^0.3.
|
|
60
|
-
"@lmzhen/dsh-evolution-state": "^0.3.
|
|
57
|
+
"@lmzhen/dsh-evolution-approval": "^0.3.17",
|
|
58
|
+
"@lmzhen/dsh-evolution-core": "^0.3.17",
|
|
59
|
+
"@lmzhen/dsh-evolution-plan-validator": "^0.3.17",
|
|
60
|
+
"@lmzhen/dsh-evolution-state": "^0.3.17"
|
|
61
61
|
}
|
|
62
62
|
}
|