@lmzhen/dsh-evolution-commands 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 +3 -2
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -36,8 +36,9 @@ function apply(ctx, rawConfig = {}) {
|
|
|
36
36
|
});
|
|
37
37
|
const approval = ctx.get("evolutionApproval");
|
|
38
38
|
if (input === "pending") {
|
|
39
|
-
const pending = approval ? await approval.list("pending") : [];
|
|
40
|
-
|
|
39
|
+
const pending = approval ? [...await approval.list("pending"), ...await approval.list("executing")] : [];
|
|
40
|
+
if (pending.length === 0) return ok("No pending evolution writes.");
|
|
41
|
+
return ok(pending.map((p) => `${p.id} ${p.kind} ${p.status === "executing" ? "EXECUTING " : ""}${p.summary}`).join("\n") + (pending.some((p) => p.status === "executing") ? "\n(EXECUTING: a previous approve may have crashed after running; verify the write manually, then reject — approve will not re-run it)" : ""));
|
|
41
42
|
}
|
|
42
43
|
if (input.startsWith("approve ")) {
|
|
43
44
|
const id = input.slice(8).trim();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-commands",
|
|
3
3
|
"description": "Human commands for the evolution family (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-maintenance": "^0.3.
|
|
36
|
+
"@lmzhen/dsh-evolution-core": "^0.3.17",
|
|
37
|
+
"@lmzhen/dsh-evolution-maintenance": "^0.3.17"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@deepseek-ai/cordis": "^4.0.1",
|