@lmzhen/dsh-evolution-review 0.1.0-rc.33 → 0.1.0-rc.34
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 +17 -0
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -259,8 +259,25 @@ function apply(ctx, rawConfig) {
|
|
|
259
259
|
ok: false,
|
|
260
260
|
message: decision.message
|
|
261
261
|
};
|
|
262
|
+
if (approval.isEnabled === false) return await runnerDirect(kind, runnerArgs);
|
|
262
263
|
return await approval.run(kind, runnerArgs);
|
|
263
264
|
}
|
|
265
|
+
/** Direct execution for the approval-disabled case (parallel to executeSkillDirect). */
|
|
266
|
+
async function runnerDirect(kind, args) {
|
|
267
|
+
if (kind === "memory") {
|
|
268
|
+
const memory = ctx.get("memory");
|
|
269
|
+
const op = args;
|
|
270
|
+
if (!memory?.applyBatch) return void 0;
|
|
271
|
+
return await memory.applyBatch(op.target === "user" ? "user" : "memory", [{
|
|
272
|
+
action: op.action ?? "add",
|
|
273
|
+
facts: op.facts ?? op.content,
|
|
274
|
+
old_text: op.old_text
|
|
275
|
+
}]);
|
|
276
|
+
}
|
|
277
|
+
const wrapped = args ?? {};
|
|
278
|
+
if (!wrapped.operation) return void 0;
|
|
279
|
+
return await executeSkillDirect(wrapped.operation);
|
|
280
|
+
}
|
|
264
281
|
/**
|
|
265
282
|
* Approval-disabled path: execute the skill op through SkillLibrary with an
|
|
266
283
|
* EXPLICIT background_review origin. Going through ctx.tools.execute would
|
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.1.0-rc.
|
|
4
|
+
"version": "0.1.0-rc.34",
|
|
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.1.0-rc.
|
|
37
|
-
"@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.
|
|
36
|
+
"@lmzhen/dsh-evolution-core": "^0.1.0-rc.34",
|
|
37
|
+
"@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.34"
|
|
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.0-rc.6",
|
|
44
44
|
"@deepseek-ai/dsh-session": "^0.1.0-rc.6",
|
|
45
45
|
"@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
|
|
46
|
-
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.
|
|
46
|
+
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.34"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@deepseek-ai/dsh-agent": "^0.1.0-rc.6",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"@deepseek-ai/dsh-llm": "^0.1.0-rc.6",
|
|
53
53
|
"@deepseek-ai/dsh-session": "^0.1.0-rc.6",
|
|
54
54
|
"@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
|
|
55
|
-
"@lmzhen/dsh-evolution-core": "^0.1.0-rc.
|
|
56
|
-
"@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.
|
|
57
|
-
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.
|
|
55
|
+
"@lmzhen/dsh-evolution-core": "^0.1.0-rc.34",
|
|
56
|
+
"@lmzhen/dsh-evolution-plan-validator": "^0.1.0-rc.34",
|
|
57
|
+
"@lmzhen/dsh-evolution-state": "^0.1.0-rc.34"
|
|
58
58
|
}
|
|
59
59
|
}
|