@luolingp/request-doctor 0.14.0 → 0.14.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.
@@ -1,7 +1,7 @@
1
1
  # 软件测试报告
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.14.0
4
+ **版本**:0.14.2
5
5
  **编制依据**:GB/T 8567-2006《计算机软件文档编制规范》6.6;GB/T 8566-2007 验证与确认过程
6
6
 
7
7
  ---
@@ -59,14 +59,14 @@
59
59
  | `test/pinned-peers.test.mjs` | 1 | peer 钉死成上一补丁版本:六条全对齐、只给导入的建垫片 |
60
60
  | `test/install-rescue.test.mjs` | 4 | 从失败里取出包名与版本,供授权使用 |
61
61
  | `test/install-in-place.test.mjs` | 2 | 已装着的包就地修复,不再重复安装 |
62
- | `test/client-half.test.mjs` | 9 | 客户端半:模块身份、注入声明、apply 注册、组件能渲染 |
62
+ | `test/client-half.test.mjs` | 11 | 客户端半:模块身份、注入声明、apply 注册、组件能渲染 |
63
63
  | `test/diagnostics.test.mjs` | 3 | 快照可选写入:不配置不写盘、突发合并、坏路径不致命 |
64
64
  | `test/restart-notice.test.mjs` | 3 |
65
65
  | `test/allow-version.test.mjs` | 6 | 放行:版本必填、缺管理器拒绝、成功只调一次、失败如实报、请求体解析 |
66
66
  | `test/panel-blocked.test.mjs` | 7 | 冲突判定:审计兼容却被拒装、清单形状解析、给 allow 动作 |
67
67
  | `test/panel-briefs.test.mjs` | 6 | 界面摘要:按名索引、只送可见行、缺数据不抛、不污染诊断 |
68
68
  | `test/verdict-report.test.mjs` | 29 | why 与 list:判定、理由、环境摘要、自动扫描、分组、缺口、按形态给建议 | 缺导出判为需要重启;其它失败不误判;多次累积不覆盖 |
69
- | **合计** | **212** | **全部通过** |
69
+ | **合计** | **214** | **全部通过** |
70
70
 
71
71
  执行结果:
72
72
 
@@ -219,4 +219,4 @@
219
219
 
220
220
  ### 7.2 分文件执行结果
221
221
 
222
- 34 个测试文件逐个单独执行,每个都有用例且全部通过,不存在因导入失败而静默跳过的文件。用例数分布:compat.test.mjs 17、plugin.test.mjs 15、compat-env.test.mjs 14、classify.test.mjs 13,其余按职能分散,合计 212。
222
+ 34 个测试文件逐个单独执行,每个都有用例且全部通过,不存在因导入失败而静默跳过的文件。用例数分布:compat.test.mjs 17、plugin.test.mjs 15、compat-env.test.mjs 14、classify.test.mjs 13,其余按职能分散,合计 214。
@@ -1,7 +1,7 @@
1
1
  # 软件安装部署说明
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.14.0
4
+ **版本**:0.14.2
5
5
  **编制依据**:GB/T 8567-2006《计算机软件文档编制规范》6.7
6
6
 
7
7
  ---
@@ -1,7 +1,7 @@
1
1
  # 软件用户手册
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.14.0
4
+ **版本**:0.14.2
5
5
  **编制依据**:GB/T 8567-2006《计算机软件文档编制规范》6.5
6
6
 
7
7
  ---
@@ -195,7 +195,13 @@ Plugin xxx@1.0.0 is incompatible with dsh 0.2.1-rc.3
195
195
  ```
196
196
 
197
197
  看到这条说明修复本身已经完成,缺的只是一次重启——不要重复触发修复,那不会加快任何事。
198
- ## 8 界面里每行的来源
198
+ ## 8 界面上在哪操作
199
+
200
+ 插件面板里有一个「不兼容安装」标签页,设置里的插件页也有同一个入口,两处内容一致。
201
+
202
+ 页面顶部是输入框和两个按钮:「授权并安装」把包名或路径填进去点一下即可;「重新扫描」让 Host 立刻重算一轮审计。下面列出需要处理的插件。
203
+
204
+ ## 9 界面里每行的来源
199
205
 
200
206
  插件页那一栏每行都标出来源:
201
207
 
@@ -213,7 +219,7 @@ needs older api
213
219
  ```n
214
220
  这样不必切到命令行敲 `/doctor why` 也能看清原因。
215
221
 
216
- ## 9 查某个插件为什么装不上
222
+ ## 10 查某个插件为什么装不上
217
223
 
218
224
  ```
219
225
  /doctor why dsh-hyper-tools
@@ -272,4 +278,24 @@ dsh-hyper-tools@0.1.0:incompatible
272
278
 
273
279
  全部兼容时不会出现这句。
274
280
 
275
- 列表里只留环境提示的前半句,完整内容用 `/doctor why` 看。
281
+ 列表里只留环境提示的前半句,完整内容用 `/doctor why` 看。
282
+
283
+ ## 11 放行一个版本
284
+
285
+ 插件本身没问题、只是 DSH 的版本检查没过时,先放行再装:
286
+
287
+ ```
288
+ /doctor allow dsh-ssh-ops@0.4.0
289
+ ```
290
+
291
+ 必须写清版本。放行之后在插件页点安装即可,声明对齐与兼容环境会自动补上。
292
+
293
+ 界面上也能做这件事:当某个插件「审计说兼容、管理器仍拒装」时,那一行会多出一个按钮。
294
+
295
+ | 按钮 | 作用 |
296
+ | --- | --- |
297
+ | 只授权 | 只放行版本,不安装。放行后自己点安装 |
298
+ | 授权并安装 | 放行并立刻安装 |
299
+ | 重新扫描 | 让 Host 立刻重算一轮审计,不用等下一次定时扫描 |
300
+
301
+ 「只授权」只出现在冲突行上。普通行只有「授权并安装」。
@@ -1,7 +1,7 @@
1
1
  # 软件质量度量报告
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.14.0
4
+ **版本**:0.14.2
5
5
  **度量标准**:GB/T 45717-2025《信息技术 软件测量 软件质量测量 自动化的源代码质量测度》
6
6
  **度量工具**:`tools/quality-measure.mjs`(本仓库自带,可复现)
7
7
 
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "standard": "GB/T 45717-2025 信息技术 软件测量 软件质量测量 自动化的源代码质量测度",
3
- "generatedAt": "2026-10-29T16:27:51.081Z",
3
+ "generatedAt": "2026-10-29T16:33:58.563Z",
4
4
  "scope": {
5
5
  "files": 36,
6
- "totalLines": 5366,
7
- "sourceLines": 3874,
8
- "commentLines": 993
6
+ "totalLines": 5398,
7
+ "sourceLines": 3897,
8
+ "commentLines": 997
9
9
  },
10
10
  "measures": {
11
- "commentDensity": 25.63,
12
- "duplicationPercent": 4.93,
13
- "functionCount": 410,
11
+ "commentDensity": 25.58,
12
+ "duplicationPercent": 4.91,
13
+ "functionCount": 413,
14
14
  "maxComplexity": 10,
15
15
  "maxFunctionLines": 57,
16
16
  "maxFileLines": 500,
17
- "averageComplexity": 3.85
17
+ "averageComplexity": 3.84
18
18
  },
19
19
  "limits": {
20
20
  "maxComplexity": 10,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luolingp/request-doctor",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "自动修复客户端引起的请求失败,并让版本不匹配的 DSH 插件能装上、能跑起来。",
5
5
  "keywords": [
6
6
  "dsh-plugin",