@lmzhen/dsh-evolution-review 0.48.0 → 0.50.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 +7 -7
  2. package/package.json +12 -12
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
+ import { BlockAssembler, SessionId, createToolResultMessage, createUserMessage, llmPort, settingsPort, toolsPort } from "@lmzhen/dsh-evolution-core/platform";
1
2
  import z from "@deepseek-ai/schemastery";
2
3
  import { randomUUID } from "node:crypto";
3
- import { BlockAssembler, SessionId, createToolResultMessage, createUserMessage } from "@lmzhen/dsh-evolution-core/platform";
4
4
  import { DEFAULT_REVIEW_MEMORY_INTERVAL, DEFAULT_REVIEW_SKILL_INTERVAL, DEFAULT_REVIEW_TIMEOUT_MS, DEFAULT_SKILL_REVIEW_COMPLETION_MIN_TOOL_CALLS, DEFAULT_SKILL_REVIEW_TRIGGER, DEFAULT_SUBSTANTIVE_MIN_AGENT_CHARS, DEFAULT_SUBSTANTIVE_MIN_TOOL_CALLS, DEFAULT_SUBSTANTIVE_MIN_USER_CHARS, INJECT_COMPLETION_SKILL_REVIEW_PROMPT, MAX_TIMER_DELAY_MS, PROMPT_BUNDLE, advanceReview, clampOnce, classifySessionEvent, clearReviewChannel, liveBool, markReviewChannel, paramRowId, pickWithPolicy, readDispatchSignal, reviewPrompt, sessionAudited, sessionTurnSignals, sweepReviewChannelSessions, unwrapLive, userSetKeys, verifyPromptBundle, withReviewContext } from "@lmzhen/dsh-evolution-core";
5
5
  import { assertSkillsRootAliasRetired, filterUnreadSkillOps } from "@lmzhen/dsh-evolution-core/skills";
6
6
  //#region lib/types/review-executor.js
@@ -379,8 +379,8 @@ function resolveReviewRowSettings(rawConfig, warn) {
379
379
  }
380
380
  function apply(ctx, rawConfig = {}) {
381
381
  ctx.inject(["settings"], (injected) => {
382
- const settings = injected.settings;
383
- if (typeof settings?.configure !== "function") return;
382
+ const settings = settingsPort(injected);
383
+ if (settings?.configure === void 0) return;
384
384
  const disposer = settings.configure({ auto: false }, ctx.fiber);
385
385
  if (typeof disposer === "function") ctx.effect(() => disposer, "dsh-evolution-review: settings presentation");
386
386
  });
@@ -788,8 +788,8 @@ function apply(ctx, rawConfig = {}) {
788
788
  ctx.logger.warn("dsh-evolution-review: aux review skipped — parent has no request header");
789
789
  return false;
790
790
  }
791
- const llm = ctx.get("llm");
792
- const tools = ctx.get("tools");
791
+ const llm = llmPort(ctx)?.streamRaw;
792
+ const tools = toolsPort(ctx)?.execute;
793
793
  if (llm === void 0 || tools === void 0) {
794
794
  ctx.logger.warn("dsh-evolution-review: aux review skipped — llm/tools service is not mounted");
795
795
  return false;
@@ -858,8 +858,8 @@ function apply(ctx, rawConfig = {}) {
858
858
  runId: reviewId
859
859
  }, () => runReview({
860
860
  parent: agent,
861
- llm: { stream: (options) => llm.stream(options) },
862
- tools: { execute: (input) => tools.execute({
861
+ llm: { stream: (options) => llm(options) },
862
+ tools: { execute: (input) => tools({
863
863
  calls: input.calls,
864
864
  signal: input.signal,
865
865
  agent
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.48.0",
4
+ "version": "0.50.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,23 +29,23 @@
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
31
  "@deepseek-ai/schemastery": "^3.18.5",
32
- "@lmzhen/dsh-evolution-core": "^0.48.0"
32
+ "@lmzhen/dsh-evolution-core": "^0.50.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "@deepseek-ai/cordis": "^4.0.5",
36
- "@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
37
- "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
38
- "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
39
- "@lmzhen/dsh-evolution-state": "^0.48.0"
36
+ "@deepseek-ai/dsh-agent": "^0.2.2-rc.3",
37
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.3",
38
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.3",
39
+ "@lmzhen/dsh-evolution-state": "^0.50.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
43
- "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
44
- "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
45
- "@lmzhen/dsh-evolution-core": "^0.48.0",
46
- "@lmzhen/dsh-evolution-state": "^0.48.0"
42
+ "@deepseek-ai/dsh-agent": "^0.2.2-rc.3",
43
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.3",
44
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.3",
45
+ "@lmzhen/dsh-evolution-core": "^0.50.0",
46
+ "@lmzhen/dsh-evolution-state": "^0.50.0"
47
47
  },
48
48
  "engines": {
49
- "dsh": ">=0.2.2-rc.0 <0.2.3-0"
49
+ "dsh": ">=0.2.2-rc.3 <0.2.3-0"
50
50
  }
51
51
  }