@lmzhen/dsh-evolution-commands 0.1.0-rc.65 → 0.1.0-rc.67

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 +16 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -130,7 +130,22 @@ function apply(ctx) {
130
130
  };
131
131
  return result.ok ? ok(result.message) : err(result.message);
132
132
  }
133
- if (input === "learn" || input.startsWith("learn ")) return ok(buildLearnPrompt(input === "learn" ? "" : input.slice(6).trim()));
133
+ if (input === "learn" || input.startsWith("learn ")) {
134
+ const request = input === "learn" ? "" : input.slice(6).trim();
135
+ invocation.agent.inject({
136
+ content: [{
137
+ type: "text",
138
+ text: buildLearnPrompt(request)
139
+ }],
140
+ source: {
141
+ kind: "plugin",
142
+ plugin: "dsh-evolution-commands",
143
+ form: "notice",
144
+ summary: "learn request"
145
+ }
146
+ });
147
+ return ok("Learning request sent to this session. Follow it now.");
148
+ }
134
149
  if (input === "replay") {
135
150
  const replay = ctx.get("evolutionReplay");
136
151
  if (!replay) return err("Replay service not mounted.");
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.65",
4
+ "version": "0.1.0-rc.67",
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.65"
36
+ "@lmzhen/dsh-evolution-core": "^0.1.0-rc.67"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",