@lmzhen/dsh-evolution-review 0.37.0 → 0.38.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 +13 -16
package/lib/index.js CHANGED
@@ -3,6 +3,7 @@ import { randomUUID } from "node:crypto";
3
3
  import { createUserMessage } from "@deepseek-ai/dsh-llm";
4
4
  import { SessionId } from "@deepseek-ai/dsh-session";
5
5
  import { COMPLETION_SKILL_REVIEW_PROMPT, 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, MAX_TIMER_DELAY_MS, MEMORY_REVIEW_PROMPT, PROMPT_BUNDLE, advanceReview, assertSkillsRootAliasRetired, clampOnce, classifySessionEvent, clearReviewChannel, filterUnreadSkillOps, liveBool, markReviewChannel, paramRowId, pickWithPolicy, readDispatchSignal, registerOwnerSettings, reviewPrompt, sessionAudited, sessionTurnSignals, sweepReviewChannelSessions, unwrapLive, userSetKeys, verifyPromptBundle } from "@lmzhen/dsh-evolution-core";
6
+ import { modelRoute, presetsPort } from "@lmzhen/dsh-evolution-core/platform";
6
7
  /**
7
8
  * Whether a message is a notice this plugin delivered, judged only by durable source fields.
8
9
  *
@@ -631,7 +632,7 @@ function apply(ctx, rawConfig = {}) {
631
632
  }, config.reviewTimeoutMs);
632
633
  let handle;
633
634
  try {
634
- const presets = ctx.get("agentPresets");
635
+ const presets = presetsPort(ctx);
635
636
  let agentPreset;
636
637
  let setup;
637
638
  if (presets !== void 0) {
@@ -642,7 +643,7 @@ function apply(ctx, rawConfig = {}) {
642
643
  };
643
644
  }
644
645
  const seed = session.snapshotEvents();
645
- const current = ctx.get("agentDefaultModel")?.currentSelection?.();
646
+ const current = modelRoute(ctx, agent, session);
646
647
  handle = await ctx.agents.create({
647
648
  sessionId: childId,
648
649
  parentAgent: 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.37.0",
4
+ "version": "0.38.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,27 +27,24 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@deepseek-ai/schemastery": "^3.18.5",
30
- "@lmzhen/dsh-evolution-core": "^0.37.0"
30
+ "@lmzhen/dsh-evolution-core": "^0.38.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@deepseek-ai/cordis": "^4.0.5",
34
- "@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
35
- "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
36
- "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
37
- "@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
38
- "@lmzhen/dsh-evolution-policy": "^0.37.0",
39
- "@lmzhen/dsh-evolution-state": "^0.37.0"
34
+ "@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
35
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
36
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
37
+ "@lmzhen/dsh-evolution-policy": "^0.38.0",
38
+ "@lmzhen/dsh-evolution-state": "^0.38.0"
40
39
  },
41
40
  "devDependencies": {
42
- "@deepseek-ai/dsh-agent": "^0.2.1-rc.2",
43
- "@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.2",
44
- "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
45
- "@deepseek-ai/dsh-session": "^0.2.1-rc.2",
46
- "@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
47
- "@lmzhen/dsh-evolution-core": "^0.37.0",
48
- "@lmzhen/dsh-evolution-state": "^0.37.0"
41
+ "@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
42
+ "@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
43
+ "@deepseek-ai/dsh-session": "^0.2.2-rc.0",
44
+ "@lmzhen/dsh-evolution-core": "^0.38.0",
45
+ "@lmzhen/dsh-evolution-state": "^0.38.0"
49
46
  },
50
47
  "engines": {
51
- "dsh": ">=0.2.1-rc.2 <0.2.2-0"
48
+ "dsh": ">=0.2.2-rc.0 <0.2.3-0"
52
49
  }
53
50
  }