@lmzhen/dsh-evolution-commands 0.3.72 → 0.3.74

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/README.md CHANGED
@@ -15,6 +15,11 @@ Human commands for the evolution family
15
15
  P2-22 (v11) correction: this package's **only** direct model-visible token is the
16
16
  `/evolution learn` injection — the full learning guidance is injected as a user
17
17
  message in this session. Everything else adds no tokens; consumers add their own.
18
+ The injection goes through the agent's waking primitive (`followup`, falling back
19
+ to `inject` when the host lacks it), **called on the agent instance**: the
20
+ platform's `Agent.followup` is a prototype method (`this.send(...)`), so a
21
+ detached reference throws and queues nothing (0.3.73 fix; the same shape is
22
+ pinned by `evolution-host/tests/wake-delivery-guard.spec.ts`).
18
23
 
19
24
  #### KV Cache effect
20
25
 
package/lib/index.js CHANGED
@@ -417,9 +417,8 @@ function apply(ctx, rawConfig = {}) {
417
417
  summary: "learn request"
418
418
  }
419
419
  });
420
- const followup = invocation.agent.followup;
421
- const woke = typeof followup === "function";
422
- if (woke) followup(message);
420
+ const woke = typeof invocation.agent.followup === "function";
421
+ if (woke) invocation.agent.followup(message);
423
422
  else invocation.agent.inject(message);
424
423
  const eventIo = ctx.get("evolutionIo")?.provider();
425
424
  if (eventIo) appendEvolutionEvent(eventIo, eventsFile(evolutionRoot()), {
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.3.72",
4
+ "version": "0.3.74",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,12 +31,12 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-approval": "^0.3.72",
35
- "@lmzhen/dsh-evolution-core": "^0.3.72",
36
- "@lmzhen/dsh-evolution-maintenance": "^0.3.72"
34
+ "@lmzhen/dsh-evolution-approval": "^0.3.74",
35
+ "@lmzhen/dsh-evolution-core": "^0.3.74",
36
+ "@lmzhen/dsh-evolution-maintenance": "^0.3.74"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@lmzhen/dsh-evolution-agent-preset": "^0.3.72"
39
+ "@lmzhen/dsh-evolution-agent-preset": "^0.3.74"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@deepseek-ai/cordis": "^4.0.1",