@lmzhen/dsh-evolution-approval 0.44.0 → 0.46.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.
package/lib/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { clampOnce, registerOwnerSettings, unwrapLive } from "@lmzhen/dsh-evolution-core";
2
1
  import { Service } from "@deepseek-ai/cordis";
3
2
  import { randomUUID } from "node:crypto";
3
+ import { clampOnce, unwrapLive } from "@lmzhen/dsh-evolution-core";
4
4
  import z from "@deepseek-ai/schemastery";
5
- import { PENDING_STATUSES } from "@lmzhen/dsh-evolution-state-storage";
5
+ import { PENDING_STATUSES } from "@lmzhen/dsh-evolution-state";
6
6
  import { elapsedSince, textDiffFacts } from "@lmzhen/dsh-evolution-core/skills";
7
7
  import { HOST_ROUTES, json, methodNotAllowed, readJsonObject, registerHostRoutes } from "@lmzhen/dsh-evolution-core/http-routes";
8
8
  //#region lib/types/routes.js
@@ -277,7 +277,7 @@ function effectiveSessionPolicy(ctx, session) {
277
277
  if (!approval || session === void 0) return void 0;
278
278
  return approval.overrideOf(session) ?? approval.config?.policy ?? "ask";
279
279
  }
280
- var EvolutionApproval = class EvolutionApproval extends Service {
280
+ var EvolutionApproval = class extends Service {
281
281
  static inject = ["evolutionState"];
282
282
  static Config = z.object({
283
283
  enabled: z.boolean().default(false).volatile(),
@@ -307,7 +307,6 @@ var EvolutionApproval = class EvolutionApproval extends Service {
307
307
  inFlight = /* @__PURE__ */ new Map();
308
308
  constructor(ctx, config = {}) {
309
309
  super(ctx, "evolutionApproval");
310
- registerOwnerSettings(this.ctx, "evolution-approval", EvolutionApproval.Config);
311
310
  this.enabledConfig = config.enabled;
312
311
  this.stageForegroundConfig = config.stageForeground ?? true;
313
312
  this.pendingTtlMsConfig = config.pendingTtlMs;
@@ -19,7 +19,7 @@
19
19
  import { Context, Service } from '@deepseek-ai/cordis';
20
20
  import type { Volatile } from '@deepseek-ai/cordis';
21
21
  import z from '@deepseek-ai/schemastery';
22
- import type { PendingKind, PendingRecord, PendingStatus } from '@lmzhen/dsh-evolution-state-storage';
22
+ import type { PendingKind, PendingRecord, PendingStatus } from '@lmzhen/dsh-evolution-state';
23
23
  import type { DecisionAudit } from '@lmzhen/dsh-evolution-core/http-routes';
24
24
  export type { PendingKind, PendingRecord, PendingStatus };
25
25
  export type WriteRunner = (args: unknown) => Promise<{
@@ -14,7 +14,7 @@
14
14
  * the same methods.
15
15
  * @module @lmzhen/dsh-evolution-approval/routes
16
16
  */
17
- import type { PendingKind, PendingRecord, PendingStatus } from '@lmzhen/dsh-evolution-state-storage';
17
+ import type { PendingKind, PendingRecord, PendingStatus } from '@lmzhen/dsh-evolution-state';
18
18
  import { elapsedSince } from '@lmzhen/dsh-evolution-core/skills';
19
19
  import type { ConnectionFetchRouteLike, DecisionAudit } from '@lmzhen/dsh-evolution-core/http-routes';
20
20
  import type { WritePreview } from './index.ts';
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.44.0",
4
+ "version": "0.46.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,18 +29,16 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
31
  "@deepseek-ai/schemastery": "^3.18.5",
32
- "@lmzhen/dsh-evolution-core": "^0.44.0"
32
+ "@lmzhen/dsh-evolution-core": "^0.46.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "^4.0.5",
36
- "@lmzhen/dsh-evolution-core": "^0.44.0",
37
- "@lmzhen/dsh-evolution-state": "^0.44.0",
38
- "@lmzhen/dsh-evolution-state-storage": "^0.44.0"
36
+ "@lmzhen/dsh-evolution-core": "^0.46.0",
37
+ "@lmzhen/dsh-evolution-state": "^0.46.0"
39
38
  },
40
39
  "devDependencies": {
41
- "@lmzhen/dsh-evolution-core": "^0.44.0",
42
- "@lmzhen/dsh-evolution-state": "^0.44.0",
43
- "@lmzhen/dsh-evolution-state-storage": "^0.44.0"
40
+ "@lmzhen/dsh-evolution-core": "^0.46.0",
41
+ "@lmzhen/dsh-evolution-state": "^0.46.0"
44
42
  },
45
43
  "engines": {
46
44
  "dsh": ">=0.2.2-rc.0 <0.2.3-0"