@deepseek-ai/dsh-experimental-auto-review 0.2.2-alpha.2 → 0.2.2-rc.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.i18n.yaml +4 -4
- package/README.md +1 -2
- package/README.zh.md +1 -2
- package/lib/index.js +2 -0
- package/lib/types/index.d.ts +5 -0
- package/package.json +43 -43
package/README.i18n.yaml
CHANGED
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
en: 9c3e575c061d53fe
|
|
46
46
|
zh: 74db1c5a77b2d2a7
|
|
47
47
|
/deepseek-ai-dsh-experimental-auto-review/model-experience/per-call-reviewer/kv-cache-effect:
|
|
48
|
-
en:
|
|
49
|
-
zh:
|
|
48
|
+
en: ec9e16640f1ea1bc
|
|
49
|
+
zh: 8052d486d61807c6
|
|
50
50
|
/deepseek-ai-dsh-experimental-auto-review/model-experience/tool-denial:
|
|
51
51
|
en: f9b4d7b686f14fc5
|
|
52
52
|
zh: a2fac9a8eaf5e2a3
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
en: 8da1089dee147f94
|
|
61
61
|
zh: 87361347bfd10c6c
|
|
62
62
|
/deepseek-ai-dsh-experimental-auto-review/known-limitations-and-deferred-work:
|
|
63
|
-
en:
|
|
64
|
-
zh:
|
|
63
|
+
en: a48835d5113cbcfd
|
|
64
|
+
zh: 243ff731c27270b7
|
|
65
65
|
/deepseek-ai-dsh-experimental-auto-review/known-limitations-and-deferred-work/dev-note:
|
|
66
66
|
en: e67f633dc6fe7773
|
|
67
67
|
zh: 3bb0c20c93f16f98
|
package/README.md
CHANGED
|
@@ -110,7 +110,7 @@ One additional model request per supported call, without caching, retries, trunc
|
|
|
110
110
|
|
|
111
111
|
#### KV Cache effect
|
|
112
112
|
|
|
113
|
-
Each review's messages begin with all messages of the previous review, including its pending call, so routes that cache by prompt prefix, at message ends, or at a final marker with lookback reuse the policy and earlier history. Compaction, a cwd change, an earlier item leaving the surface, and the first review after a restart end that reuse once. Auto adds no dedicated runtime context or mode-switch prompt to the main agent.
|
|
113
|
+
Each review's messages begin with all messages of the previous review, including its pending call, so routes that cache by prompt prefix, at message ends, or at a final marker with lookback reuse the policy and earlier history. Compaction, a cwd change, an earlier item leaving the surface, and the first review after a restart end that reuse once. Auto adds no dedicated runtime context or mode-switch prompt to the main agent. Each review request carries the reviewed Session's `sessionId` and `purpose: 'auto-review'` as model-hidden transport metadata. Routes that key prompt caching or request routing by Session, such as OpenAI `prompt_cache_key` and the `x-opencode-session` header that OpenCode requires, send reviews under that Session's key; [the DeepSeek Session-log upload](../../session/session-log-deepseek/README.md#request-field) contributes the canonical Session log when enabled and no registered exclusion matches.
|
|
114
114
|
|
|
115
115
|
### Tool denial
|
|
116
116
|
|
|
@@ -136,7 +136,6 @@ The denial appends an ordinary tool result; it does not rewrite earlier context
|
|
|
136
136
|
- Model classification can be wrong. There are no deterministic tool exemptions, persistent grants, configurable policy, or retry layer.
|
|
137
137
|
- In-process Auto children review their own calls. Out-of-process children retain their native permission systems after the parent delegation call is allowed.
|
|
138
138
|
- The reviewer reads the Session action history through the deprecated synchronous `snapshotEvents()` reader under a line-scoped waiver. Prior calls, PTC starts, and the direct parent's initial prompt have no projection or paged reader yet, so the migration stays deferred by [the synchronous-read decision](../../../.agents/notes/implemented/architecture/2026-09-09-deprecate-synchronous-session-event-reads.md).
|
|
139
|
-
- Review requests carry no `sessionId`, so OpenAI routes receive no `prompt_cache_key`. Passing it would also attach the DeepSeek session-log upload and session headers to review requests, which first needs a request-purpose decision.
|
|
140
139
|
|
|
141
140
|
<a id="dev-note"></a>
|
|
142
141
|
### Dev Note
|
package/README.zh.md
CHANGED
|
@@ -110,7 +110,7 @@ Reviewer 使用最新 `request/header.config` 的 provider 与模型,并沿用
|
|
|
110
110
|
|
|
111
111
|
#### KV Cache 影响
|
|
112
112
|
|
|
113
|
-
每次评审的消息都以上一次评审的全部消息(包括其待审调用)开头,因此按 prompt 前缀、按消息结尾或在末尾标记处回溯缓存的路由都能复用策略与先前历史。Compaction、cwd 变化、较早条目离开 surface,以及重启后的第一次评审会让复用中断一次。Auto 不向主 agent 增加专门 runtime context
|
|
113
|
+
每次评审的消息都以上一次评审的全部消息(包括其待审调用)开头,因此按 prompt 前缀、按消息结尾或在末尾标记处回溯缓存的路由都能复用策略与先前历史。Compaction、cwd 变化、较早条目离开 surface,以及重启后的第一次评审会让复用中断一次。Auto 不向主 agent 增加专门 runtime context 或模式切换提示词。每个评审请求都携带被评审 Session 的 `sessionId` 和 `purpose: 'auto-review'`,作为模型不可见的传输元数据。按 Session 划分 prompt 缓存或请求路由的路由(例如 OpenAI 的 `prompt_cache_key`,以及 OpenCode 要求的 `x-opencode-session` header)会以该 Session 的键发送评审;[DeepSeek session-log 上传](../../session/session-log-deepseek/README.zh.md#request-field)在启用且没有已注册排除条件匹配时贡献权威 Session 日志。
|
|
114
114
|
|
|
115
115
|
### 工具拒绝
|
|
116
116
|
|
|
@@ -136,7 +136,6 @@ Reviewer 使用最新 `request/header.config` 的 provider 与模型,并沿用
|
|
|
136
136
|
- 模型分类可能出错。不提供确定性工具豁免、持久 grant、可配置策略或重试层。
|
|
137
137
|
- 进程内 Auto child 独立审查自身调用。进程外 child 在父委派调用获准后保留原生权限系统。
|
|
138
138
|
- reviewer 在带行级豁免的情况下,通过已废弃的同步 `snapshotEvents()` 读取 Session 动作历史。此前的调用、PTC start 与直接父级的初始 prompt 目前都没有投影或分页读取方,因此迁移按[同步读取决策](../../../.agents/notes/implemented/architecture/2026-09-09-deprecate-synchronous-session-event-reads.zh.md)继续延期。
|
|
139
|
-
- 评审请求不携带 `sessionId`,因此 OpenAI 路由不会收到 `prompt_cache_key`。传入它还会让评审请求附带 DeepSeek session-log 上传与 session header,需要先做请求用途决策。
|
|
140
139
|
|
|
141
140
|
<a id="dev-note"></a>
|
|
142
141
|
### 开发备注
|
package/lib/index.js
CHANGED
|
@@ -512,6 +512,8 @@ async function classifyRisk(ctx, agent, exec, signal, shown) {
|
|
|
512
512
|
system: REVIEW_POLICY,
|
|
513
513
|
messages: reviewMessages(snapshot),
|
|
514
514
|
temperature: 0,
|
|
515
|
+
sessionId: agent.session.id,
|
|
516
|
+
purpose: "auto-review",
|
|
515
517
|
signal
|
|
516
518
|
});
|
|
517
519
|
return readDecision(ctx.llm.stream(options));
|
package/lib/types/index.d.ts
CHANGED
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module @deepseek-ai/dsh-experimental-auto-review
|
|
9
9
|
*/
|
|
10
|
+
declare module '@deepseek-ai/dsh-llm/types' {
|
|
11
|
+
interface LlmRequestPurposeMap {
|
|
12
|
+
'auto-review': true;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
10
15
|
import { type Context } from '@deepseek-ai/cordis';
|
|
11
16
|
/** Cordis plugin name used by loader diagnostics. */
|
|
12
17
|
export declare const name = "experimental-auto-review";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-experimental-auto-review",
|
|
3
3
|
"description": "Per-tool LLM authorization review for the DeepSeek Harness Auto permission preset",
|
|
4
|
-
"version": "0.2.2-
|
|
4
|
+
"version": "0.2.2-rc.1",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -31,52 +31,52 @@
|
|
|
31
31
|
],
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@deepseek-ai/dsh-agent": "0.2.2-
|
|
35
|
-
"@deepseek-ai/dsh-agent-instructions": "0.2.2-
|
|
36
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
37
|
-
"@deepseek-ai/dsh-permission-presets": "0.2.2-
|
|
38
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
39
|
-
"@deepseek-ai/dsh-tools": "0.2.2-
|
|
40
|
-
"@deepseek-ai/cordis": "~4.0
|
|
41
|
-
"@deepseek-ai/dsh-working-directory": "0.2.2-
|
|
34
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
35
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.2-rc.1",
|
|
36
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
37
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.2-rc.1",
|
|
38
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
39
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
40
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
41
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.1"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@deepseek-ai/dsh-util-values": "0.2.2-
|
|
44
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-rc.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@deepseek-ai/dsh-agent": "0.2.2-
|
|
48
|
-
"@deepseek-ai/dsh-agent-instructions": "0.2.2-
|
|
49
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.2-
|
|
50
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-
|
|
51
|
-
"@deepseek-ai/dsh-bash-sandbox": "0.2.2-
|
|
52
|
-
"@deepseek-ai/dsh-compaction": "0.2.2-
|
|
53
|
-
"@deepseek-ai/dsh-fs-local": "0.2.2-
|
|
54
|
-
"@deepseek-ai/dsh-fs-observation-policy": "0.2.2-
|
|
55
|
-
"@deepseek-ai/dsh-fs-sandbox": "0.2.2-
|
|
56
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
57
|
-
"@deepseek-ai/dsh-llm-deepseek": "0.2.2-
|
|
58
|
-
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-
|
|
59
|
-
"@deepseek-ai/dsh-permission-presets": "0.2.2-
|
|
60
|
-
"@deepseek-ai/dsh-ptc-runtime-node": "0.2.2-
|
|
61
|
-
"@deepseek-ai/dsh-sandbox": "0.2.2-
|
|
62
|
-
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-
|
|
63
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
64
|
-
"@deepseek-ai/dsh-session-projection": "0.2.2-
|
|
65
|
-
"@deepseek-ai/dsh-shell": "0.2.2-
|
|
66
|
-
"@deepseek-ai/dsh-shell-env": "0.2.2-
|
|
67
|
-
"@deepseek-ai/dsh-subagent": "0.2.2-
|
|
68
|
-
"@deepseek-ai/dsh-subprocess-local": "0.2.2-
|
|
69
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.2-
|
|
70
|
-
"@deepseek-ai/dsh-tool-bash": "0.2.2-
|
|
71
|
-
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-
|
|
72
|
-
"@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-
|
|
73
|
-
"@deepseek-ai/dsh-tool-fs": "0.2.2-
|
|
74
|
-
"@deepseek-ai/dsh-tool-subagent": "0.2.2-
|
|
75
|
-
"@deepseek-ai/dsh-tool-testkit": "0.2.2-
|
|
76
|
-
"@deepseek-ai/dsh-tools": "0.2.2-
|
|
77
|
-
"@deepseek-ai/dsh-user-approval": "0.2.2-
|
|
78
|
-
"@deepseek-ai/cordis": "~4.0
|
|
79
|
-
"@deepseek-ai/dsh-working-directory": "0.2.2-
|
|
47
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
48
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.2-rc.1",
|
|
49
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
|
|
50
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.1",
|
|
51
|
+
"@deepseek-ai/dsh-bash-sandbox": "0.2.2-rc.1",
|
|
52
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
|
|
53
|
+
"@deepseek-ai/dsh-fs-local": "0.2.2-rc.1",
|
|
54
|
+
"@deepseek-ai/dsh-fs-observation-policy": "0.2.2-rc.1",
|
|
55
|
+
"@deepseek-ai/dsh-fs-sandbox": "0.2.2-rc.1",
|
|
56
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
57
|
+
"@deepseek-ai/dsh-llm-deepseek": "0.2.2-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-llm-deepseek-api-key": "0.2.2-rc.1",
|
|
59
|
+
"@deepseek-ai/dsh-permission-presets": "0.2.2-rc.1",
|
|
60
|
+
"@deepseek-ai/dsh-ptc-runtime-node": "0.2.2-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-shell": "0.2.2-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-shell-env": "0.2.2-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-subprocess-local": "0.2.2-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.2-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.2-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.2-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-tool-testkit": "0.2.2-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.1",
|
|
78
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
79
|
+
"@deepseek-ai/dsh-working-directory": "0.2.2-rc.1"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|