dsh-advisor-plugin 0.2.4 → 0.2.6
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 +71 -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.1` / `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` 时保留已保存的模型配置,但不注册工具与升级守则。
|
|
@@ -215,6 +258,34 @@ npm run build
|
|
|
215
258
|
- [oh-my-pi advisor/watchdog](https://github.com/can1357/oh-my-pi/blob/main/docs/advisor-watchdog.md)
|
|
216
259
|
- [rpiv-advisor](https://github.com/juicesharp/rpiv-mono/tree/main/packages/rpiv-advisor)
|
|
217
260
|
|
|
261
|
+
## 常见问题
|
|
262
|
+
|
|
263
|
+
### DSH Desktop 报 `cannot resolve package "dsh-advisor"`
|
|
264
|
+
|
|
265
|
+
这是 `0.2.1` 的旧 bundle patch 导致的:那个版本的 `cordis.patch.yml` 仍然引用旧包名 `dsh-advisor`。`0.2.2+` 已经改成 `dsh-advisor-plugin`。
|
|
266
|
+
|
|
267
|
+
1. 先从对应 profile 移除旧安装(DSH Desktop 通常是 `desktop` profile):
|
|
268
|
+
```bash
|
|
269
|
+
dsh plugin --profile desktop remove dsh-advisor
|
|
270
|
+
dsh plugin --profile desktop remove dsh-advisor-plugin
|
|
271
|
+
```
|
|
272
|
+
2. 安装最新版本:
|
|
273
|
+
```bash
|
|
274
|
+
dsh plugin --profile desktop add dsh-advisor-plugin@latest --registry=https://registry.npmjs.org
|
|
275
|
+
```
|
|
276
|
+
3. 验证 profile 组合结果:
|
|
277
|
+
```bash
|
|
278
|
+
dsh --profile desktop --dump-config | grep -A3 dsh-advisor
|
|
279
|
+
```
|
|
280
|
+
期望看到:
|
|
281
|
+
```text
|
|
282
|
+
# == dsh-advisor-plugin
|
|
283
|
+
- id: dsh-advisor-plugin
|
|
284
|
+
name: dsh-advisor-plugin
|
|
285
|
+
```
|
|
286
|
+
4. 如果 profile 的 `cordis.patch.yml` 里还残留 `- id: dsh-advisor` / `name: dsh-advisor` 行,删掉那一行再重启。
|
|
287
|
+
|
|
288
|
+
|
|
218
289
|
## License
|
|
219
290
|
|
|
220
291
|
[MIT](LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-advisor-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
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.1 || ^0.1.5-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-commands": "^0.1.5-rc.1 || ^0.1.5-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-rc.1 || ^0.1.5-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-session": "^0.1.5-rc.1 || ^0.1.5-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-settings": "^0.1.5-rc.1 || ^0.1.5-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-system-prompt": "^0.1.5-rc.1 || ^0.1.5-rc.2",
|
|
73
|
+
"@deepseek-ai/dsh-tools": "^0.1.5-rc.1 || ^0.1.5-rc.2",
|
|
74
|
+
"@deepseek-ai/schemastery": "^3.18.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/node": "^24.0.0",
|