@lmzhen/dsh-evolution-review 0.6.1 → 0.8.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/README.md CHANGED
@@ -36,7 +36,7 @@ own, and the delivery mode lives on the `evolution-policy` row, not here.
36
36
  - Deprecated names (G0/S0.3): `memoryInterval` and `skillInterval` are the legacy
37
37
  spellings of the policy row's `reviewMemoryInterval` / `reviewSkillInterval`
38
38
  (the snapshot shadows them in every shipped composition). Reading them still
39
- works; writing them is refused, and both are removed in 0.7.0.
39
+ works; writing them is refused. Removal was planned for 0.7.0 and is deferred: both aliases still ship, so no later version is claimed here.
40
40
 
41
41
  ### Review delivery contract
42
42
 
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, PARAM_NAMESPACES, PROMPT_BUNDLE, advanceReview, assertSkillsRootAliasRetired, clampedNumber, clearReviewChannel, contentHash, evolutionIoAdapter, foldToolDispatches, foldTurn, installParamSection, markReviewChannel, newSkillLibrary, policyStageLimits, readDispatchSignal, readNumberParam, redactSecrets, resolveOrigins, resolveRootConfig, reviewPrompt, sessionAudited, skillReadNameOf, sweepReviewChannelSessions, 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, clampedNumber, clearReviewChannel, contentHash, evolutionIoAdapter, foldToolDispatches, foldTurn, installParamSection, markReviewChannel, newSkillLibrary, paramNamespace, policyStageLimits, readDispatchSignal, readNumberParam, redactSecrets, resolveOrigins, resolveRootConfig, reviewPrompt, sessionAudited, skillReadNameOf, sweepReviewChannelSessions, verifyPromptBundle } from "@lmzhen/dsh-evolution-core";
6
6
  import { validateEvolutionPlan } from "@lmzhen/dsh-evolution-plan-validator";
7
7
  //#region lib/types/session-state.js
8
8
  /**
@@ -152,8 +152,6 @@ function clampReviewConfig(rawConfig, ctx) {
152
152
  function policySnapshotOf(source) {
153
153
  return source?.get?.();
154
154
  }
155
- /** Namespace the review group's user-writable knobs live in (core's PARAM_NAMESPACES). */
156
- const REVIEW_SETTINGS_NAMESPACE = "evolution-review";
157
155
  /** Schema the platform validates the user layer against; defaults mirror the
158
156
  * core constants so an empty document resolves to today's behaviour. */
159
157
  const REVIEW_SETTINGS_SCHEMA = z.object({
@@ -196,7 +194,7 @@ function apply(ctx, rawConfig = {}) {
196
194
  reviewMode: config.reviewMode ?? "inject",
197
195
  reviewWakeInject: config.reviewWakeInject ?? true
198
196
  };
199
- const overrides = installParamSection(ctx, PARAM_NAMESPACES["evolution-review"] ?? "evolution-review", REVIEW_SETTINGS_SCHEMA, settingsBase, { warn: (message) => {
197
+ const overrides = installParamSection(ctx, paramNamespace("evolution-review"), REVIEW_SETTINGS_SCHEMA, settingsBase, { warn: (message) => {
200
198
  ctx.logger.warn("dsh-evolution-review: " + message);
201
199
  } });
202
200
  const params = () => {
@@ -1273,4 +1271,4 @@ function buildReviewRequest(session, kind, signal, maxMessages, maxMessageChars)
1273
1271
  ].join("\n");
1274
1272
  }
1275
1273
  //#endregion
1276
- export { Config, REVIEW_OUTPUT_SCHEMA, REVIEW_SETTINGS_NAMESPACE, REVIEW_SETTINGS_SCHEMA, apply, buildReviewRequest, clampReviewConfig, filterUnreadSkillOps, inject, name, renderToolResultLine, shouldCompletionReview, sweepDeadSessionEntries };
1274
+ export { Config, REVIEW_OUTPUT_SCHEMA, REVIEW_SETTINGS_SCHEMA, apply, buildReviewRequest, clampReviewConfig, filterUnreadSkillOps, inject, name, renderToolResultLine, shouldCompletionReview, sweepDeadSessionEntries };
@@ -129,8 +129,6 @@ type ClampedReviewConfig = Config & {
129
129
  skillReviewCompletionMinToolCalls: number;
130
130
  };
131
131
  export declare function clampReviewConfig(rawConfig: Config, ctx: Context): ClampedReviewConfig;
132
- /** Namespace the review group's user-writable knobs live in (core's PARAM_NAMESPACES). */
133
- export declare const REVIEW_SETTINGS_NAMESPACE = "evolution-review";
134
132
  /** Review behaviour a user may change (G3/S3.1). Field names are the CANONICAL
135
133
  * parameter ids from the registry, so the settings document, the params output,
136
134
  * the doctor report and the cards all spell one name. */
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.6.1",
4
+ "version": "0.8.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.1",
30
- "@lmzhen/dsh-evolution-approval": "^0.6.1",
31
- "@lmzhen/dsh-evolution-core": "^0.6.1",
32
- "@lmzhen/dsh-evolution-plan-validator": "^0.6.1"
30
+ "@lmzhen/dsh-evolution-approval": "^0.8.0",
31
+ "@lmzhen/dsh-evolution-core": "^0.8.0",
32
+ "@lmzhen/dsh-evolution-plan-validator": "^0.8.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.1.5-rc.2",
38
38
  "@deepseek-ai/dsh-session": "^0.1.5-rc.2",
39
39
  "@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
40
- "@lmzhen/dsh-evolution-state": "^0.6.1",
41
- "@lmzhen/dsh-evolution-policy": "^0.6.1"
40
+ "@lmzhen/dsh-evolution-state": "^0.8.0",
41
+ "@lmzhen/dsh-evolution-policy": "^0.8.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@deepseek-ai/dsh-agent": "^0.1.5-rc.2",
@@ -48,10 +48,10 @@
48
48
  "@deepseek-ai/dsh-session-persistence": "^0.1.5-rc.2",
49
49
  "@deepseek-ai/dsh-session-persistence-jsonl": "^0.1.5-rc.2",
50
50
  "@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
51
- "@lmzhen/dsh-evolution-approval": "^0.6.1",
52
- "@lmzhen/dsh-evolution-core": "^0.6.1",
53
- "@lmzhen/dsh-evolution-curator": "^0.6.1",
54
- "@lmzhen/dsh-evolution-plan-validator": "^0.6.1",
55
- "@lmzhen/dsh-evolution-state": "^0.6.1"
51
+ "@lmzhen/dsh-evolution-approval": "^0.8.0",
52
+ "@lmzhen/dsh-evolution-core": "^0.8.0",
53
+ "@lmzhen/dsh-evolution-curator": "^0.8.0",
54
+ "@lmzhen/dsh-evolution-plan-validator": "^0.8.0",
55
+ "@lmzhen/dsh-evolution-state": "^0.8.0"
56
56
  }
57
57
  }