dsh-unlimited-retry 2.2.0 → 2.3.0
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 +13 -4
- package/README.zh.md +10 -4
- package/assets/icon-180.png +0 -0
- package/index.js +1 -1
- package/package.json +7 -4
package/README.md
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/xalor888/dsh-unlimited-retry/actions/workflows/ci.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/dsh-unlimited-retry)
|
|
7
|
-
[](LICENSE)
|
|
8
|
+
[](package.json)
|
|
9
|
+
[](#compatibility)
|
|
9
10
|
|
|
10
11
|
Unbounded model-request retry for the DeepSeek Harness agent loop, with a live
|
|
11
12
|
Settings panel.
|
|
@@ -338,8 +339,16 @@ curl -s http://127.0.0.1:3080/unlimited-retry/stats | head -c 400
|
|
|
338
339
|
|
|
339
340
|
## Compatibility
|
|
340
341
|
|
|
341
|
-
|
|
342
|
-
|
|
342
|
+
| Requirement | Value |
|
|
343
|
+
|---|---|
|
|
344
|
+
| Node.js | **>= 20** |
|
|
345
|
+
| DSH | **>= 0.2.0-0 < 0.3.0-0** (`engines.dsh`, enforced by the host's compatibility preflight) |
|
|
346
|
+
| Ships `dsh-agent-loop` and `dsh-llm-retry` | Yes — the retry listener hangs off that event |
|
|
347
|
+
|
|
348
|
+
The `-0` lower bound in `engines.dsh` is deliberate: the host matches with
|
|
349
|
+
`includePrerelease: true`, and only a boundary carrying a prerelease tag admits a
|
|
350
|
+
prerelease runtime such as `0.2.1-rc.3`. A plain `>=0.2.0` would silently exclude
|
|
351
|
+
every `-rc` build.
|
|
343
352
|
- `AbortSignal.any` is used when present; a controller-based fallback covers runtimes without it.
|
|
344
353
|
- A 1.x `config` still mounts: `retryAllCodes` is ignored and `terminalCodes` is read as `excludeCodes`, each with a one-line warning naming the replacement.
|
|
345
354
|
- The Web panel additionally needs `configEditor` and the `settings.section` slot. Without them the policy still applies; the page is simply absent or read-only.
|
package/README.zh.md
CHANGED
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/xalor888/dsh-unlimited-retry/actions/workflows/ci.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/dsh-unlimited-retry)
|
|
7
|
-
[](LICENSE)
|
|
8
|
+
[](package.json)
|
|
9
|
+
[](#兼容性)
|
|
9
10
|
|
|
10
11
|
DeepSeek Harness(DSH)的**无限模型请求重试**插件,附带一个实时设置面板。
|
|
11
12
|
|
|
@@ -258,8 +259,13 @@ curl -s http://127.0.0.1:3080/unlimited-retry/stats | head -c 400
|
|
|
258
259
|
|
|
259
260
|
## 兼容性
|
|
260
261
|
|
|
261
|
-
|
|
262
|
-
|
|
262
|
+
| 依赖 | 要求 |
|
|
263
|
+
|---|---|
|
|
264
|
+
| Node.js | **>= 20** |
|
|
265
|
+
| DSH | **>= 0.2.0-0 < 0.3.0-0**(`package.json` 的 `engines.dsh`,由宿主的兼容性预检强制执行) |
|
|
266
|
+
| 带 `dsh-agent-loop` 与 `dsh-llm-retry` | 是(重试监听器挂在那条事件上) |
|
|
267
|
+
|
|
268
|
+
`engines.dsh` 的 `-0` 下界是刻意的:宿主的预检用 `includePrerelease: true` 匹配,而只有带预发布标签的边界才能放行 `0.2.1-rc.3` 这样的预发布运行时。写成 `>=0.2.0` 会把所有 `-rc` 版本静默排除。
|
|
263
269
|
- 有 `AbortSignal.any` 就用它,没有则用 controller 方案等价实现。
|
|
264
270
|
- 1.x 的 `config` 仍可挂载:`retryAllCodes` 被忽略(除非显式排除,否则每个码都会重试),`terminalCodes` 按 `excludeCodes` 读取,两者各打一条替代提示。
|
|
265
271
|
- Web 面板另需 `configEditor` 与 `settings.section` 槽位;缺这些时策略照常生效,页面只是不存在或只读。
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
/** Cordis function-plugin name; also the Loader row id used by the patch. */
|
|
41
41
|
export const name = "unlimited-retry";
|
|
42
42
|
|
|
43
|
-
const PLUGIN_VERSION = "2.
|
|
43
|
+
const PLUGIN_VERSION = "2.3.0";
|
|
44
44
|
const STATS_PATH = "/unlimited-retry/stats";
|
|
45
45
|
const CONFIG_PATH = "/unlimited-retry/config";
|
|
46
46
|
const RESET_PATH = "/unlimited-retry/reset";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-unlimited-retry",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Unbounded model-request retry for the DeepSeek Harness agent loop, with a live Settings panel.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek",
|
|
@@ -38,10 +38,12 @@
|
|
|
38
38
|
"icon.svg",
|
|
39
39
|
"README.md",
|
|
40
40
|
"README.zh.md",
|
|
41
|
-
"LICENSE"
|
|
41
|
+
"LICENSE",
|
|
42
|
+
"assets/icon-180.png"
|
|
42
43
|
],
|
|
43
44
|
"engines": {
|
|
44
|
-
"node": ">=20"
|
|
45
|
+
"node": ">=20",
|
|
46
|
+
"dsh": ">=0.2.0-0 <0.3.0-0"
|
|
45
47
|
},
|
|
46
48
|
"scripts": {
|
|
47
49
|
"test": "node --test test/*.test.mjs"
|
|
@@ -52,7 +54,8 @@
|
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
|
54
56
|
"react": "^18.3.1",
|
|
55
|
-
"react-dom": "^18.3.1"
|
|
57
|
+
"react-dom": "^18.3.1",
|
|
58
|
+
"semver": "^7.8.5"
|
|
56
59
|
},
|
|
57
60
|
"dsh": {
|
|
58
61
|
"bundle": {
|