@lmzhen/dsh-evolution-commands 0.1.0-rc.26 → 0.1.0-rc.27

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 +14 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -46,6 +46,19 @@ function apply(ctx) {
46
46
  const recent = records.slice(-5).reverse().map((record) => `${record.at.slice(0, 19)} ${record.skillName} ${record.action} ${record.summary}`);
47
47
  return { text: `Mutations: ${records.length} recorded (recent 5):\n${recent.join("\n")}` };
48
48
  }
49
+ if (input === "curator scope") {
50
+ const curator = ctx.get("evolutionCurator");
51
+ if (!curator) return { text: "Curator service not mounted." };
52
+ const view = await curator.scopeView();
53
+ const line = (label, names) => `${label}: ${names.length}${names.length === 0 ? "" : `\n ${names.join(", ")}`}`;
54
+ return { text: [
55
+ `Lifecycle scope at ${(/* @__PURE__ */ new Date()).toISOString().slice(0, 10)}`,
56
+ line("Managed (may transition)", view.managed),
57
+ line("Watched (stale / quality-warned)", view.watched),
58
+ line("Exempted (exclude / referenced)", view.exempted),
59
+ line("Protected (pinned / bundled / hub)", view.protected)
60
+ ].join("\n") };
61
+ }
49
62
  if (input === "curator report") {
50
63
  const curator = ctx.get("evolutionCurator");
51
64
  if (!curator) return { text: "Curator service not mounted." };
@@ -84,7 +97,7 @@ function apply(ctx) {
84
97
  }).message };
85
98
  }
86
99
  if (input === "learn" || input.startsWith("learn ")) return { text: buildLearnPrompt(input === "learn" ? "" : input.slice(6).trim()) };
87
- return { text: "Evolution: memory, skills, review, curator. Use /evolution pending | curator run | curator report | restore | consolidate <target> <source...> | skill restore <name> | learn [request]." };
100
+ return { text: "Evolution: memory, skills, review, curator. Use /evolution pending | curator run | curator report | curator scope | restore | consolidate <target> <source...> | skill restore <name> | learn [request]." };
88
101
  }
89
102
  });
90
103
  });
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.26",
4
+ "version": "0.1.0-rc.27",
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.26"
36
+ "@lmzhen/dsh-evolution-core": "^0.1.0-rc.27"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",