@lmzhen/dsh-evolution-approval 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.
Files changed (2) hide show
  1. package/lib/index.js +3 -2
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { settingsPort } from "@lmzhen/dsh-evolution-core/platform";
1
2
  import { Service } from "@deepseek-ai/cordis";
2
3
  import { randomUUID } from "node:crypto";
3
4
  import { clampOnce, unwrapLive } from "@lmzhen/dsh-evolution-core";
@@ -311,8 +312,8 @@ var EvolutionApproval = class extends Service {
311
312
  this.stageForegroundConfig = config.stageForeground ?? true;
312
313
  this.pendingTtlMsConfig = config.pendingTtlMs;
313
314
  this.ctx.inject(["settings"], (injected) => {
314
- const settings = injected.settings;
315
- if (typeof settings?.configure !== "function") return;
315
+ const settings = settingsPort(injected);
316
+ if (settings?.configure === void 0) return;
316
317
  const disposer = settings.configure({ auto: false }, this.ctx.fiber);
317
318
  if (typeof disposer === "function") this.ctx.effect(() => disposer, "evolution-approval: settings presentation");
318
319
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-approval",
3
3
  "description": "Stage/pending approval service for Hermes-style self-evolution writes (community build)",
4
- "version": "0.49.0",
4
+ "version": "0.51.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,18 +29,18 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
31
  "@deepseek-ai/schemastery": "^3.18.5",
32
- "@lmzhen/dsh-evolution-core": "^0.49.0"
32
+ "@lmzhen/dsh-evolution-core": "^0.51.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "^4.0.5",
36
- "@lmzhen/dsh-evolution-core": "^0.49.0",
37
- "@lmzhen/dsh-evolution-state": "^0.49.0"
36
+ "@lmzhen/dsh-evolution-core": "^0.51.0",
37
+ "@lmzhen/dsh-evolution-state": "^0.51.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@lmzhen/dsh-evolution-core": "^0.49.0",
41
- "@lmzhen/dsh-evolution-state": "^0.49.0"
40
+ "@lmzhen/dsh-evolution-core": "^0.51.0",
41
+ "@lmzhen/dsh-evolution-state": "^0.51.0"
42
42
  },
43
43
  "engines": {
44
- "dsh": ">=0.2.2-rc.0 <0.2.3-0"
44
+ "dsh": ">=0.2.2-rc.3 <0.2.3-0"
45
45
  }
46
46
  }