@lmzhen/dsh-evolution-commands 0.1.0-rc.21 → 0.1.0-rc.23

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 CHANGED
@@ -1,6 +1,7 @@
1
+ import { buildLearnPrompt } from "@lmzhen/dsh-evolution-core";
1
2
  //#region lib/types/index.js
2
3
  /**
3
- * Human commands for the evolution family: /evolution status|pending.
4
+ * Human commands for the evolution family: /evolution learn|pending|curator|restore|consolidate.
4
5
  * @module @lmzhen/dsh-evolution-commands
5
6
  */
6
7
  const name = "evolution-commands";
@@ -82,7 +83,8 @@ function apply(ctx) {
82
83
  message: "Curator service not mounted."
83
84
  }).message };
84
85
  }
85
- return { text: "Evolution: memory, skills, review, curator. Use /evolution pending | curator run | curator report | restore | consolidate <target> <source...> | skill restore <name>." };
86
+ 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]." };
86
88
  }
87
89
  });
88
90
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Human commands for the evolution family: /evolution status|pending.
2
+ * Human commands for the evolution family: /evolution learn|pending|curator|restore|consolidate.
3
3
  * @module @deepseek-ai/dsh-evolution-commands
4
4
  */
5
5
  import type { Context } from '@deepseek-ai/cordis';
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.21",
4
+ "version": "0.1.0-rc.23",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,7 +32,8 @@
32
32
  ],
33
33
  "license": "MIT",
34
34
  "dependencies": {
35
- "@deepseek-ai/schemastery": "^3.18.1"
35
+ "@deepseek-ai/schemastery": "^3.18.1",
36
+ "@lmzhen/dsh-evolution-core": "^0.1.0-rc.23"
36
37
  },
37
38
  "peerDependencies": {
38
39
  "@deepseek-ai/dsh-invariants": "^0.1.0-rc.6",