@lmzhen/dsh-evolution-review 0.20.0 → 0.22.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 +8 -8
  2. package/package.json +11 -11
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@ import { createHash, randomUUID } from "node:crypto";
2
2
  import z from "@deepseek-ai/schemastery";
3
3
  import { createUserMessage } from "@deepseek-ai/dsh-llm";
4
4
  import { SessionId } from "@deepseek-ai/dsh-session";
5
- import { COMPLETION_SKILL_REVIEW_PROMPT, DEFAULT_MAX_OPS_PER_PLAN, DEFAULT_MEMORY_CHAR_LIMIT, DEFAULT_MEMORY_REVIEW_MODEL, DEFAULT_REVIEW_CONTEXT_MESSAGES, DEFAULT_REVIEW_MEMORY_INTERVAL, DEFAULT_REVIEW_MESSAGE_CHARS, DEFAULT_REVIEW_SKILL_INTERVAL, DEFAULT_REVIEW_TIMEOUT_MS, DEFAULT_SKILL_CONTENT_CHARS, DEFAULT_SKILL_LIMITS, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, DEFAULT_SKILL_REVIEW_MODEL, DEFAULT_SKILL_REVIEW_TRIGGER, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, DEFAULT_USER_CHAR_LIMIT, MAX_TIMER_DELAY_MS, PROMPT_BUNDLE, advanceReview, assertSkillsRootAliasRetired, clampOnce, clearReviewChannel, contentHash, evolutionIoAdapter, filterUnreadSkillOps, filterUnreadSkillOps as filterUnreadSkillOps$1, foldUntrustedLines, markReviewChannel, newSkillLibrary, paramRowId, payloadText, pickWithPolicy, policyStageLimits, readDispatchSignal, redactSecrets, resolveOrigins, resolveRootConfig, reviewPrompt, sessionAudited, sessionEvidenceIndex, sessionReadNames, sessionTurnSignals, sweepReviewChannelSessions, userSetKeys, verifyPromptBundle } from "@lmzhen/dsh-evolution-core";
5
+ import { COMPLETION_SKILL_REVIEW_PROMPT, DEFAULT_MAX_OPS_PER_PLAN, DEFAULT_MEMORY_CHAR_LIMIT, DEFAULT_MEMORY_REVIEW_MODEL, DEFAULT_REVIEW_CONTEXT_MESSAGES, DEFAULT_REVIEW_MEMORY_INTERVAL, DEFAULT_REVIEW_MESSAGE_CHARS, DEFAULT_REVIEW_SKILL_INTERVAL, DEFAULT_REVIEW_TIMEOUT_MS, DEFAULT_SKILL_CONTENT_CHARS, DEFAULT_SKILL_LIMITS, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, DEFAULT_SKILL_REVIEW_MODEL, DEFAULT_SKILL_REVIEW_TRIGGER, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, DEFAULT_USER_CHAR_LIMIT, MAX_TIMER_DELAY_MS, PROMPT_BUNDLE, advanceReview, assertSkillsRootAliasRetired, clampOnce, clearReviewChannel, contentHash, evolutionIoAdapter, filterUnreadSkillOps, filterUnreadSkillOps as filterUnreadSkillOps$1, foldUntrustedLines, liveBool, markReviewChannel, newSkillLibrary, paramRowId, payloadText, pickWithPolicy, policyStageLimits, readDispatchSignal, redactSecrets, resolveOrigins, resolveRootConfig, reviewPrompt, sessionAudited, sessionEvidenceIndex, sessionReadNames, sessionTurnSignals, sweepReviewChannelSessions, unwrapLive, userSetKeys, verifyPromptBundle } from "@lmzhen/dsh-evolution-core";
6
6
  import { validateEvolutionPlan } from "@lmzhen/dsh-evolution-plan-validator";
7
7
  /**
8
8
  * Whether a message is a notice this plugin delivered, judged only by durable source fields.
@@ -231,13 +231,13 @@ function policySnapshotOf(source) {
231
231
  function resolveReviewRowSettings(rawConfig, warn) {
232
232
  const warned = /* @__PURE__ */ new Set();
233
233
  return {
234
- reviewSkillInterval: clampOnce(warned, warn, "reviewSkillInterval", rawConfig.reviewSkillInterval?.get() ?? rawConfig.skillInterval, DEFAULT_REVIEW_SKILL_INTERVAL, 1),
235
- reviewMemoryInterval: clampOnce(warned, warn, "reviewMemoryInterval", rawConfig.reviewMemoryInterval?.get() ?? rawConfig.memoryInterval, DEFAULT_REVIEW_MEMORY_INTERVAL, 1),
236
- skillReviewTrigger: rawConfig.skillReviewTrigger?.get() ?? DEFAULT_SKILL_REVIEW_TRIGGER,
234
+ reviewSkillInterval: clampOnce(warned, warn, "reviewSkillInterval", unwrapLive(rawConfig.reviewSkillInterval) ?? rawConfig.skillInterval, DEFAULT_REVIEW_SKILL_INTERVAL, 1),
235
+ reviewMemoryInterval: clampOnce(warned, warn, "reviewMemoryInterval", unwrapLive(rawConfig.reviewMemoryInterval) ?? rawConfig.memoryInterval, DEFAULT_REVIEW_MEMORY_INTERVAL, 1),
236
+ skillReviewTrigger: unwrapLive(rawConfig.skillReviewTrigger) ?? DEFAULT_SKILL_REVIEW_TRIGGER,
237
237
  skillReviewCompletionMinToolCalls: clampOnce(warned, warn, "skillReviewCompletionMinToolCalls", rawConfig.skillReviewCompletionMinToolCalls, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, 1),
238
- reviewEnabled: rawConfig.reviewEnabled?.get() ?? true,
239
- reviewMode: rawConfig.reviewMode?.get() ?? "inject",
240
- reviewWakeInject: rawConfig.reviewWakeInject?.get() ?? true
238
+ reviewEnabled: liveBool(rawConfig.reviewEnabled, true),
239
+ reviewMode: unwrapLive(rawConfig.reviewMode) ?? "inject",
240
+ reviewWakeInject: liveBool(rawConfig.reviewWakeInject, true)
241
241
  };
242
242
  }
243
243
  function apply(ctx, rawConfig = {}) {
@@ -300,7 +300,7 @@ function apply(ctx, rawConfig = {}) {
300
300
  reviewSkillInterval: DEFAULT_REVIEW_SKILL_INTERVAL
301
301
  };
302
302
  const rowSupplied = (id, alias) => {
303
- const canonical = rawConfig[id]?.get();
303
+ const canonical = unwrapLive(rawConfig[id]);
304
304
  if (canonical !== void 0 && canonical !== SHADOW_DEFAULTS[id]) return true;
305
305
  return alias !== void 0 && rawConfig[alias] !== void 0 && rawConfig[alias] !== schemaDefaults[alias];
306
306
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-review",
3
3
  "description": "Background review orchestration (community build)",
4
- "version": "0.20.0",
4
+ "version": "0.22.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,9 +27,9 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.4",
30
- "@lmzhen/dsh-evolution-approval": "^0.20.0",
31
- "@lmzhen/dsh-evolution-core": "^0.20.0",
32
- "@lmzhen/dsh-evolution-plan-validator": "^0.20.0"
30
+ "@lmzhen/dsh-evolution-approval": "^0.22.0",
31
+ "@lmzhen/dsh-evolution-core": "^0.22.0",
32
+ "@lmzhen/dsh-evolution-plan-validator": "^0.22.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "^4.0.1",
@@ -37,8 +37,8 @@
37
37
  "@deepseek-ai/dsh-llm": "^0.2.0-rc.1",
38
38
  "@deepseek-ai/dsh-session": "^0.2.0-rc.1",
39
39
  "@deepseek-ai/dsh-tools": "^0.2.0-rc.1",
40
- "@lmzhen/dsh-evolution-state": "^0.20.0",
41
- "@lmzhen/dsh-evolution-policy": "^0.20.0"
40
+ "@lmzhen/dsh-evolution-state": "^0.22.0",
41
+ "@lmzhen/dsh-evolution-policy": "^0.22.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-agent": "^0.2.0-rc.1",
@@ -48,10 +48,10 @@
48
48
  "@deepseek-ai/dsh-session-persistence": "^0.2.0-rc.1",
49
49
  "@deepseek-ai/dsh-session-persistence-jsonl": "^0.2.0-rc.1",
50
50
  "@deepseek-ai/dsh-tools": "^0.2.0-rc.1",
51
- "@lmzhen/dsh-evolution-approval": "^0.20.0",
52
- "@lmzhen/dsh-evolution-core": "^0.20.0",
53
- "@lmzhen/dsh-evolution-curator": "^0.20.0",
54
- "@lmzhen/dsh-evolution-plan-validator": "^0.20.0",
55
- "@lmzhen/dsh-evolution-state": "^0.20.0"
51
+ "@lmzhen/dsh-evolution-approval": "^0.22.0",
52
+ "@lmzhen/dsh-evolution-core": "^0.22.0",
53
+ "@lmzhen/dsh-evolution-curator": "^0.22.0",
54
+ "@lmzhen/dsh-evolution-plan-validator": "^0.22.0",
55
+ "@lmzhen/dsh-evolution-state": "^0.22.0"
56
56
  }
57
57
  }