@lmzhen/dsh-evolution-commands 0.1.0-rc.42 → 0.1.0-rc.44

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 +20 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -48,6 +48,25 @@ function apply(ctx) {
48
48
  const result = await curator.run({ ignoreGates: true });
49
49
  return ok(`Curator run complete: ${result.stale.length} stale, ${result.archived.length} archived, ${result.errors.length} failed.\nrunId=${result.report.runId}${result.report.snapshotPath ? `\nsnapshot=${result.report.snapshotPath}` : ""}`);
50
50
  }
51
+ if (input === "curator pause" || input === "curator resume") {
52
+ const curator = ctx.get("evolutionCurator");
53
+ if (!curator) return err("Curator service not mounted.");
54
+ const paused = input === "curator pause";
55
+ await curator.setPaused(paused);
56
+ return ok(paused ? "Curator automatic curation paused. Manual /evolution curator run is unaffected; resume with /evolution curator resume." : "Curator automatic curation resumed. The next scheduled pass waits one interval (first-run defer semantics).");
57
+ }
58
+ if (input === "curator status") {
59
+ const curator = ctx.get("evolutionCurator");
60
+ if (!curator) return err("Curator service not mounted.");
61
+ const state = await curator.status();
62
+ if (!state) return ok("No curator state yet: the first automatic pass is deferred until the interval elapses.");
63
+ return ok([
64
+ `paused=${state.paused}`,
65
+ `runs=${state.runCount}`,
66
+ `lastRun=${new Date(state.lastRunAt).toISOString()}`,
67
+ `summary=${state.lastSummary}`
68
+ ].join("\n"));
69
+ }
51
70
  if (input === "mutations") {
52
71
  const curator = ctx.get("evolutionCurator");
53
72
  if (!curator) return err("Curator service not mounted.");
@@ -116,7 +135,7 @@ function apply(ctx) {
116
135
  if (!replay) return err("Replay service not mounted.");
117
136
  return ok(replay.compare().report);
118
137
  }
119
- return ok("Evolution: memory, skills, review, curator. Use /evolution pending | curator run | curator report | curator scope | restore | consolidate <target> <source...> | skill restore <name> | learn [request] | replay.");
138
+ return ok("Evolution: memory, skills, review, curator. Use /evolution pending | approve <id> | reject <id> | curator run | curator status | curator pause | curator resume | curator report | curator scope | restore | consolidate <target> <source...> | skill restore <name> | learn [request] | replay.");
120
139
  }
121
140
  });
122
141
  });
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.1.0-rc.42",
4
+ "version": "0.1.0-rc.44",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -33,7 +33,7 @@
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
35
  "@deepseek-ai/schemastery": "^3.18.1",
36
- "@lmzhen/dsh-evolution-core": "^0.1.0-rc.42"
36
+ "@lmzhen/dsh-evolution-core": "^0.1.0-rc.44"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",