@lmzhen/dsh-evolution-activity 0.49.0 → 0.51.0

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.
@@ -1,5 +1,6 @@
1
1
  import z from "@deepseek-ai/schemastery";
2
2
  import { SKILL_NAME_RE, authorityFrom, contentHash, errorText, evolutionIoAdapter, isPresent, isUnknown, runWriteGates, skillWriteGateContext } from "@lmzhen/dsh-evolution-core";
3
+ import { commandsPort } from "@lmzhen/dsh-evolution-core/platform";
3
4
  import { effectiveSessionPolicy } from "@lmzhen/dsh-evolution-approval";
4
5
  import { newSkillLibrary, relatedSkillNames, resolveExecOrigins } from "@lmzhen/dsh-evolution-core/skills";
5
6
  //#region lib/types/learning-graph/index.js
@@ -257,7 +258,8 @@ async function graphWriteGate(services, request) {
257
258
  }
258
259
  function apply(ctx, rawConfig = {}) {
259
260
  ctx.inject(["commands"], (commandCtx) => {
260
- const commands = commandCtx.commands;
261
+ const commands = commandsPort(commandCtx);
262
+ if (commands === void 0) return;
261
263
  const graphCommand = {
262
264
  name: "graph",
263
265
  description: "显示学习图,或对某个节点操作:graph [detail|edit|delete] <nodeId>",
@@ -10,6 +10,7 @@
10
10
  * @module @lmzhen/dsh-evolution-learning-graph
11
11
  */
12
12
  import { isPresent, isUnknown, authorityFrom, runWriteGates, skillWriteGateContext } from '@lmzhen/dsh-evolution-core';
13
+ import { commandsPort } from '@lmzhen/dsh-evolution-core/platform';
13
14
  import { effectiveSessionPolicy } from '@lmzhen/dsh-evolution-approval';
14
15
  import z from '@deepseek-ai/schemastery';
15
16
  import { errorText, SKILL_NAME_RE, contentHash, evolutionIoAdapter } from '@lmzhen/dsh-evolution-core';
@@ -263,7 +264,9 @@ export function apply(ctx, rawConfig = {}) {
263
264
  // `CommandDefinition` type are the contract (previously a local cast to
264
265
  // `{ register(definition: unknown) }`, which silenced every upstream shape
265
266
  // change). `@deepseek-ai/dsh-commands` is a declared peer.
266
- const commands = commandCtx.commands;
267
+ const commands = commandsPort(commandCtx);
268
+ if (commands === undefined)
269
+ return;
267
270
  // M-11 (v3 audit): the register disposer must be bound to the fiber — an
268
271
  // unbound registration survives HMR/reload and duplicates the command.
269
272
  // v28 G0.3 (CMD-01): the definition is a const so `handler` can delegate
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-activity",
3
3
  "description": "Durable activity store for self-evolution plan outcomes (community build)",
4
- "version": "0.49.0",
4
+ "version": "0.51.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -51,18 +51,18 @@
51
51
  "license": "MIT",
52
52
  "dependencies": {
53
53
  "@deepseek-ai/schemastery": "^3.18.5",
54
- "@lmzhen/dsh-evolution-core": "^0.49.0",
55
- "@lmzhen/dsh-evolution-skill-discovery": "^0.49.0",
56
- "@lmzhen/dsh-evolution-approval": "^0.49.0"
54
+ "@lmzhen/dsh-evolution-core": "^0.51.0",
55
+ "@lmzhen/dsh-evolution-skill-discovery": "^0.51.0",
56
+ "@lmzhen/dsh-evolution-approval": "^0.51.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "@deepseek-ai/cordis": "^4.0.5"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@deepseek-ai/cordis": "^4.0.5",
63
- "@lmzhen/dsh-evolution-core": "^0.49.0"
63
+ "@lmzhen/dsh-evolution-core": "^0.51.0"
64
64
  },
65
65
  "engines": {
66
- "dsh": ">=0.2.2-rc.0 <0.2.3-0"
66
+ "dsh": ">=0.2.2-rc.3 <0.2.3-0"
67
67
  }
68
68
  }