dsh-advisor-plugin 0.2.4 → 0.2.5
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 +43 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -175,6 +175,49 @@ agent/request ──每 N 步──▶ 快照 ──▶ 审查模型
|
|
|
175
175
|
|
|
176
176
|
## 兼容性
|
|
177
177
|
|
|
178
|
+
- **目标 DSH**:`0.1.5-rc.2` 及以上;不承诺更早的 rc / alpha 版本。
|
|
179
|
+
- **Node.js**:`^22.19` 或 `>=24`。
|
|
180
|
+
- **安装方式**:请使用 `dsh plugin --profile web add dsh-advisor-plugin`;裸 `npm install` 会撞 DSH 官方包的 peer 依赖,这不是插件本身的问题。
|
|
181
|
+
|
|
182
|
+
## 两条通道
|
|
183
|
+
|
|
184
|
+
### 显式咨询
|
|
185
|
+
|
|
186
|
+
```text
|
|
187
|
+
执行模型 ──advisor()──▶ 上下文组装 ──▶ 审查模型
|
|
188
|
+
▲ │
|
|
189
|
+
└──── plan / correction / stop ◀───────┘
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
适用时机:
|
|
193
|
+
|
|
194
|
+
- 实质性工作开始前;
|
|
195
|
+
- 反复卡住、方向不收敛时;
|
|
196
|
+
- 证据与建议矛盾时;
|
|
197
|
+
- 宣告完成前。
|
|
198
|
+
|
|
199
|
+
### 自动巡逻
|
|
200
|
+
|
|
201
|
+
```text
|
|
202
|
+
agent/request ──每 N 步──▶ 快照 ──▶ 审查模型
|
|
203
|
+
│
|
|
204
|
+
ON-TRACK / CORRECTION / STOP
|
|
205
|
+
▼
|
|
206
|
+
会话事件卡片 + agent.inject() 注入下一请求
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
巡逻不会打断在飞 turn,干预最早落在下一个模型请求。
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 依赖要求
|
|
214
|
+
|
|
215
|
+
- Node.js `^22.19` 或 `>=24`
|
|
216
|
+
- DeepSeek Harness(web profile)
|
|
217
|
+
- 已配置至少一个可用的 provider / model 作为审查模型
|
|
218
|
+
|
|
219
|
+
## 兼容性
|
|
220
|
+
|
|
178
221
|
- **DSH 版本**:peer 范围覆盖 `0.1.0-rc.6`、`0.1.1-rc.2`、`0.1.2-rc.1`、`0.1.3-alpha.1`;已在 `0.1.1-rc.2` 上实机验证。
|
|
179
222
|
- **配置向后兼容**:旧配置没有 `enabled` 字段时默认 `true`,不影响升级。
|
|
180
223
|
- **关闭总开关**:`enabled: false` 时保留已保存的模型配置,但不注册工具与升级守则。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-advisor-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "DeepSeek Harness advisor plugin: pair a fast executor with a stronger reviewer model for plan / correction / stop guidance.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"coding-agent"
|
|
64
64
|
],
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@deepseek-ai/cordis": "^4.0.
|
|
67
|
-
"@deepseek-ai/dsh-agent": "^0.1.
|
|
68
|
-
"@deepseek-ai/dsh-commands": "^0.1.
|
|
69
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
70
|
-
"@deepseek-ai/dsh-session": "^0.1.
|
|
71
|
-
"@deepseek-ai/dsh-settings": "^0.1.
|
|
72
|
-
"@deepseek-ai/dsh-system-prompt": "^0.1.
|
|
73
|
-
"@deepseek-ai/dsh-tools": "^0.1.
|
|
74
|
-
"@deepseek-ai/schemastery": "^3.18.
|
|
66
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
67
|
+
"@deepseek-ai/dsh-agent": "^0.1.5-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-commands": "^0.1.5-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-session": "^0.1.5-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-settings": "^0.1.5-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.5-rc.2",
|
|
73
|
+
"@deepseek-ai/dsh-tools": "^0.1.5-rc.2",
|
|
74
|
+
"@deepseek-ai/schemastery": "^3.18.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/node": "^24.0.0",
|