@lmzhen/dsh-evolution-review 0.61.3 → 0.62.1
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 +1 -1
- package/lib/index.js +3 -9
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ Subagent-origin, background-visibility, and review-child sessions are excluded.
|
|
|
21
21
|
|
|
22
22
|
## Events and limits
|
|
23
23
|
|
|
24
|
-
The package emits `evolution/review-scheduled`, `evolution/review-completed`, `evolution/review-error`, and an aux `evolution/plan-applied` ledger entry. `reviewTimeoutMs` bounds the aux loop; `reviewMaxRounds` (default 12) and `reviewMaxToolCalls` (default 50) bound model rounds and tool calls. Reaching any bound records `partial`/`timeout` with `hitRoundLimit` and `partialReason`, never `completed`. Review cadence state is persisted when `evolution-state` is available; without it, cadence can reset between turns.
|
|
24
|
+
The package emits `evolution/review-scheduled`, `evolution/review-completed`, `evolution/review-error`, and an aux `evolution/plan-applied` ledger entry. `reviewTimeoutMs` bounds the aux loop (default 300s; raise it, lower `reviewMaxRounds`, or raise `reviewMaxToolCalls` for unusually long reviews); `reviewMaxRounds` (default 12) and `reviewMaxToolCalls` (default 50) bound model rounds and tool calls. Reaching any bound records `partial`/`timeout` with `hitRoundLimit` and `partialReason`, never `completed`. Review cadence state is persisted when `evolution-state` is available; without it, cadence can reset between turns.
|
|
25
25
|
|
|
26
26
|
**Removed metadata:** `reviewProvider`, `reviewContextMessages`, `reviewMessageChars`, `reviewMaxDepth` and `reviewToolAllow` were declared but never read, so they are gone from the registry and the bundles. Provider/model come from the parent session header; native review sees the parent catalog but only the family allowlist executes, while PTC exposes only `run_code`.
|
|
27
27
|
`memoryInterval` and `skillInterval` were removed from the live row schema in 0.48 (G0/S0.3). They survive only in the family's old-document migration table and doctor's old-key report; a deployment config that still spells them must be rewritten to `reviewMemoryInterval` and `reviewSkillInterval`.
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { llmPort, settingsPort, toolsPort } from "@lmzhen/dsh-evolution-platform
|
|
|
2
2
|
import z from "@deepseek-ai/schemastery";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { BlockAssembler, SessionId, createToolResultMessage, createUserMessage, defineTool } from "@lmzhen/dsh-evolution-platform/values";
|
|
5
|
-
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, currentReviewContext, liveBool, markReviewChannel, paramRowId, pickWithPolicy, readDispatchSignal, recordReviewRead, reviewPrompt, sessionAudited, sessionTurnSignals, sweepReviewChannelSessions, unwrapLive, userSetKeys, verifyPromptBundle, withReviewContext } from "@lmzhen/dsh-evolution-core";
|
|
5
|
+
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, currentReviewContext, liveBool, makeKeyedSerialQueue, markReviewChannel, paramRowId, pickWithPolicy, readDispatchSignal, recordReviewRead, reviewPrompt, sessionAudited, sessionTurnSignals, sweepReviewChannelSessions, unwrapLive, userSetKeys, verifyPromptBundle, withReviewContext } from "@lmzhen/dsh-evolution-core";
|
|
6
6
|
import { createReviewChildAgent } from "@lmzhen/dsh-evolution-platform/review-child";
|
|
7
7
|
import { assertSkillsRootAliasRetired, filterUnreadSkillOps } from "@lmzhen/dsh-evolution-core/skills";
|
|
8
8
|
//#region lib/types/review-executor.js
|
|
@@ -1144,9 +1144,9 @@ function apply(ctx, rawConfig = {}) {
|
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
1146
|
if (params().reviewMode === "inject") ctx.logger.warn("dsh-evolution-review: reviewMode \"inject\" (debug-only) runs the review in the parent session and emits NO evolution/plan-applied ledger entry — evolution-activity and evolution-replay stay empty in this mode (see the evolution-review README, \"Known Limitations and Deferred Work\"). Set reviewMode: \"branch\" on the evolution-policy row to keep the audited plan path; branch review is a temporary platform-gap path (see the README known limitations).");
|
|
1147
|
-
const
|
|
1147
|
+
const reviewStateSerial = makeKeyedSerialQueue();
|
|
1148
1148
|
async function withReviewStateLock(id, task) {
|
|
1149
|
-
|
|
1149
|
+
return await reviewStateSerial(id, async () => {
|
|
1150
1150
|
const liveAuthority = () => ctx.get("evolutionMutationAuthority");
|
|
1151
1151
|
const authority = liveAuthority();
|
|
1152
1152
|
let token;
|
|
@@ -1168,12 +1168,6 @@ function apply(ctx, rawConfig = {}) {
|
|
|
1168
1168
|
if (token !== void 0 && authority !== void 0) await authority.lease.release(token);
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
1171
|
-
reviewStateLocks.set(id, next);
|
|
1172
|
-
try {
|
|
1173
|
-
return await next;
|
|
1174
|
-
} finally {
|
|
1175
|
-
if (reviewStateLocks.get(id) === next) reviewStateLocks.delete(id);
|
|
1176
|
-
}
|
|
1177
1171
|
}
|
|
1178
1172
|
ctx.on("session/event", (session, event) => {
|
|
1179
1173
|
if (!sessionAudited(ctx, session.id, config.sessionScoped)) return;
|
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.
|
|
4
|
+
"version": "0.62.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
32
|
-
"@lmzhen/dsh-evolution-core": "0.
|
|
33
|
-
"@lmzhen/dsh-evolution-platform": "0.
|
|
32
|
+
"@lmzhen/dsh-evolution-core": "0.62.1",
|
|
33
|
+
"@lmzhen/dsh-evolution-platform": "0.62.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@deepseek-ai/dsh-agent": "0.2.2-rc.5",
|
|
43
43
|
"@deepseek-ai/dsh-llm": "0.2.2-rc.5",
|
|
44
44
|
"@deepseek-ai/dsh-session": "0.2.2-rc.5",
|
|
45
|
-
"@lmzhen/dsh-evolution-core": "^0.
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.62.1"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"dsh": "0.2.2-rc.5"
|