@lmzhen/dsh-evolution-review 0.39.1 → 0.39.2
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 +2 -2
- package/lib/index.js +3 -4
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -15,9 +15,9 @@ Subagent-origin, background-visibility, and review-child sessions are excluded.
|
|
|
15
15
|
| Mode | Behavior | Recorded history |
|
|
16
16
|
|---|---|---|
|
|
17
17
|
| `aux` (default) | Runs a plugin-owned manual loop over the parent request prefix: parent Agent, no child Session, no parent append, allowlisted parent-visible tools executed without a log; a disallowed call returns a tool error instead of aborting the review. | Emits `review-scheduled` and `review-completed`; the completion event is folded into the bounded activity review list (preview + actions + usage). |
|
|
18
|
-
| `inject` (debug) | Sends the review prompt into the parent session as an ordinary turn. `reviewWakeInject=true` uses a waking follow-up when available. | Emits `review-scheduled`; does **not** emit `plan-applied`, so plan-based activity/replay stays empty. |
|
|
18
|
+
| `inject` (debug) | Sends the kind-specific foreground review prompt into the parent session as an ordinary turn. `reviewWakeInject=true` uses a waking follow-up when available. | Emits `review-scheduled`; does **not** emit `plan-applied`, so plan-based activity/replay stays empty. |
|
|
19
19
|
|
|
20
|
-
`reviewNotice=true` allows result notices for the inject path. Aux results are audit-only: `finalText` lands in the bounded activity review record and never becomes a parent message or a new parent turn.
|
|
20
|
+
`reviewNotice=true` allows result notices for the inject path. Aux results are audit-only: `finalText` lands in the bounded activity review record and never becomes a parent message or a new parent turn. The aux path uses the combined prompt for skill/combined reviews, so it includes the memory pass instead of silently dropping memory. It does not declare a background role: the model sees the actual tool set, and the prompt only states that unavailable tools or paths must be replaced with verified local equivalents or reported.
|
|
21
21
|
|
|
22
22
|
## Events and limits
|
|
23
23
|
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import z from "@deepseek-ai/schemastery";
|
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { BlockAssembler, createToolResultMessage, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
4
4
|
import { SessionId } from "@deepseek-ai/dsh-session";
|
|
5
|
-
import {
|
|
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, assertSkillsRootAliasRetired, clampOnce, classifySessionEvent, clearReviewChannel, filterUnreadSkillOps, liveBool, markReviewChannel, paramRowId, pickWithPolicy, readDispatchSignal, registerOwnerSettings, reviewPrompt, sessionAudited, sessionTurnSignals, sweepReviewChannelSessions, unwrapLive, userSetKeys, verifyPromptBundle, withReviewContext } from "@lmzhen/dsh-evolution-core";
|
|
6
6
|
//#region lib/types/review-executor.js
|
|
7
7
|
/**
|
|
8
8
|
* Plugin-side review execution over the parent request prefix.
|
|
@@ -630,7 +630,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
630
630
|
if (!tryAuxReview(session, agent, "skill", signal, "completion")) completionInjected.delete(session.id);
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
|
-
if (!deliverMessage(agent,
|
|
633
|
+
if (!deliverMessage(agent, INJECT_COMPLETION_SKILL_REVIEW_PROMPT, "completion review", true)) {
|
|
634
634
|
completionInjected.delete(session.id);
|
|
635
635
|
return;
|
|
636
636
|
}
|
|
@@ -753,7 +753,6 @@ function apply(ctx, rawConfig = {}) {
|
|
|
753
753
|
return false;
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
|
-
const BRANCH_MEMORY_PROMPT = MEMORY_REVIEW_PROMPT.replace("If nothing is worth saving, just say \"Nothing to save.\" and stop.", "Do not create skills here; return a short summary of what was saved.\nIf nothing is worth saving, say \"Nothing to save.\" and stop.");
|
|
757
756
|
/** Tools the plugin-side review may call; every name must already be in the parent request head. */
|
|
758
757
|
/**
|
|
759
758
|
* Run one plugin-side review over the parent prefix. No child Agent/Session is
|
|
@@ -811,7 +810,7 @@ function apply(ctx, rawConfig = {}) {
|
|
|
811
810
|
let usage;
|
|
812
811
|
let error;
|
|
813
812
|
try {
|
|
814
|
-
const prompt = kind
|
|
813
|
+
const prompt = reviewPrompt(kind, "aux");
|
|
815
814
|
const result = await withReviewContext({
|
|
816
815
|
reviewId,
|
|
817
816
|
runId: reviewId
|
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.39.
|
|
4
|
+
"version": "0.39.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@deepseek-ai/schemastery": "^3.18.5",
|
|
30
|
-
"@lmzhen/dsh-evolution-core": "^0.39.
|
|
30
|
+
"@lmzhen/dsh-evolution-core": "^0.39.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@deepseek-ai/cordis": "^4.0.5",
|
|
34
34
|
"@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
|
|
35
35
|
"@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
|
|
36
36
|
"@deepseek-ai/dsh-session": "^0.2.2-rc.0",
|
|
37
|
-
"@lmzhen/dsh-evolution-policy": "^0.39.
|
|
38
|
-
"@lmzhen/dsh-evolution-state": "^0.39.
|
|
37
|
+
"@lmzhen/dsh-evolution-policy": "^0.39.2",
|
|
38
|
+
"@lmzhen/dsh-evolution-state": "^0.39.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@deepseek-ai/dsh-agent": "^0.2.2-rc.0",
|
|
42
42
|
"@deepseek-ai/dsh-llm": "^0.2.2-rc.0",
|
|
43
43
|
"@deepseek-ai/dsh-session": "^0.2.2-rc.0",
|
|
44
|
-
"@lmzhen/dsh-evolution-core": "^0.39.
|
|
45
|
-
"@lmzhen/dsh-evolution-state": "^0.39.
|
|
44
|
+
"@lmzhen/dsh-evolution-core": "^0.39.2",
|
|
45
|
+
"@lmzhen/dsh-evolution-state": "^0.39.2"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|
|
48
48
|
"dsh": ">=0.2.2-rc.0 <0.2.3-0"
|