@lmzhen/dsh-evolution-commands 0.30.0 → 0.30.2

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 +3 -19
  2. package/package.json +5 -5
package/lib/index.js CHANGED
@@ -1938,11 +1938,6 @@ const COMMAND_ENTRIES = [
1938
1938
  usage: "restore",
1939
1939
  summary: "从最近的快照恢复技能"
1940
1940
  },
1941
- {
1942
- readonly: false,
1943
- usage: "consolidate <target> <sources...> [--plan <runId>]",
1944
- summary: "把若干技能合并进一个总括技能"
1945
- },
1946
1941
  {
1947
1942
  readonly: false,
1948
1943
  usage: "skill restore <name>",
@@ -2550,20 +2545,9 @@ function apply(ctx, rawConfig = {}) {
2550
2545
  };
2551
2546
  return result.ok ? ok(result.message) : err(result.message);
2552
2547
  }
2553
- if (input.startsWith("consolidate ")) {
2554
- const consolidateRefusal = unreplayableWriteRefusal("consolidate");
2555
- if (consolidateRefusal) return consolidateRefusal;
2556
- const planTail = /\s--plan\s+(\S+)\s*$/.exec(input) ?? null;
2557
- const planRunId = planTail?.[1] ?? void 0;
2558
- const [target, ...sources] = (planTail ? input.slice(0, planTail.index) : input).slice(12).trim().split(/\s+/).filter(Boolean);
2559
- if (!target || sources.length === 0) return err("用法:/evolution consolidate <target> <source...>");
2560
- const curator = ctx.get("evolutionCurator");
2561
- const result = curator ? await curator.consolidate(target, sources) : {
2562
- ok: false,
2563
- message: errorText("e-302-curator-service-not-mounted")
2564
- };
2565
- if (!result.ok) return err(result.message);
2566
- return ok(planRunId ? `${result.message}\n[audit] plan=${planRunId}` : result.message);
2548
+ if (input === "consolidate" || input.startsWith("consolidate ")) {
2549
+ const plan = /--plan\s+(\S+)/.exec(input)?.[1];
2550
+ return err("`consolidate` 已退出用户面:机械追加由 curator 归档收尾,人类合成用 `/evolution merge pair <a> <b>`。" + (plan === void 0 ? "" : "\n旧 --plan 审计只读保留:" + plan));
2567
2551
  }
2568
2552
  if (input.startsWith("skill restore ")) {
2569
2553
  const name = input.slice(14).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 (/evolution pending|curator|maintain|doctor) (community build)",
4
- "version": "0.30.0",
4
+ "version": "0.30.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,12 +27,12 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.5",
30
- "@lmzhen/dsh-evolution-approval": "^0.30.0",
31
- "@lmzhen/dsh-evolution-core": "^0.30.0",
32
- "@lmzhen/dsh-evolution-maintenance": "^0.30.0"
30
+ "@lmzhen/dsh-evolution-approval": "^0.30.2",
31
+ "@lmzhen/dsh-evolution-core": "^0.30.2",
32
+ "@lmzhen/dsh-evolution-maintenance": "^0.30.2"
33
33
  },
34
34
  "optionalDependencies": {
35
- "@lmzhen/dsh-evolution-agent-preset": "^0.30.0"
35
+ "@lmzhen/dsh-evolution-agent-preset": "^0.30.2"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/cordis": "^4.0.5",