dsh-request-doctor 0.12.5 → 0.12.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
4
  **产品标识**:request-doctor
5
- **版本**:0.12.5
5
+ **版本**:0.12.6
6
6
 
7
7
  ---
8
8
 
@@ -1,7 +1,7 @@
1
1
  # 软件设计说明
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.12.5
4
+ **版本**:0.12.6
5
5
  **编制依据**:GB/T 8567-2006《计算机软件文档编制规范》6.2
6
6
 
7
7
  ---
@@ -1,7 +1,7 @@
1
1
  # 软件测试报告
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.12.5
4
+ **版本**:0.12.6
5
5
  **编制依据**:GB/T 8567-2006《计算机软件文档编制规范》6.6;GB/T 8566-2007 验证与确认过程
6
6
 
7
7
  ---
@@ -62,8 +62,8 @@
62
62
  | `test/client-half.test.mjs` | 5 | 客户端半:模块身份、注入声明、apply 注册、组件能渲染 |
63
63
  | `test/diagnostics.test.mjs` | 3 | 快照可选写入:不配置不写盘、突发合并、坏路径不致命 |
64
64
  | `test/restart-notice.test.mjs` | 3 |
65
- | `test/verdict-report.test.mjs` | 18 | why 与 list:判定、理由、环境、自动扫描、分组排序 | 缺导出判为需要重启;其它失败不误判;多次累积不覆盖 |
66
- | **合计** | **179** | **全部通过** |
65
+ | `test/verdict-report.test.mjs` | 19 | why 与 list:判定、理由、环境摘要、自动扫描、分组排序 | 缺导出判为需要重启;其它失败不误判;多次累积不覆盖 |
66
+ | **合计** | **180** | **全部通过** |
67
67
 
68
68
  执行结果:
69
69
 
@@ -213,4 +213,4 @@
213
213
 
214
214
  ### 7.2 分文件执行结果
215
215
 
216
- 31 个测试文件逐个单独执行,每个都有用例且全部通过,不存在因导入失败而静默跳过的文件。用例数分布:compat.test.mjs 17、plugin.test.mjs 15、compat-env.test.mjs 14、classify.test.mjs 13,其余按职能分散,合计 179。
216
+ 31 个测试文件逐个单独执行,每个都有用例且全部通过,不存在因导入失败而静默跳过的文件。用例数分布:compat.test.mjs 17、plugin.test.mjs 15、compat-env.test.mjs 14、classify.test.mjs 13,其余按职能分散,合计 180。
@@ -1,7 +1,7 @@
1
1
  # 软件安装部署说明
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.12.5
4
+ **版本**:0.12.6
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.12.5
4
+ **版本**:0.12.6
5
5
  **编制依据**:GB/T 8567-2006《计算机软件文档编制规范》6.5
6
6
 
7
7
  ---
@@ -223,7 +223,7 @@ dsh-hyper-tools@0.1.0:incompatible
223
223
  已审计 3 个插件:
224
224
 
225
225
  需要处理 1 个:
226
- dsh-hyper-tools incompatible 真实旧版本 3 个(需重启):@deepseek…
226
+ dsh-hyper-tools incompatible 真实旧版本 3 个(需重启)
227
227
 
228
228
  可以直接用 2 个:
229
229
  dsh-fast-mode compatible
@@ -1,7 +1,7 @@
1
1
  # 软件质量度量报告
2
2
 
3
3
  **产品名称**:request-doctor(请求急救员)
4
- **版本**:0.12.5
4
+ **版本**:0.12.6
5
5
  **度量标准**:GB/T 45717-2025《信息技术 软件测量 软件质量测量 自动化的源代码质量测度》
6
6
  **度量工具**:`tools/quality-measure.mjs`(本仓库自带,可复现)
7
7
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "standard": "GB/T 45717-2025 信息技术 软件测量 软件质量测量 自动化的源代码质量测度",
3
- "generatedAt": "2026-10-29T15:36:30.169Z",
3
+ "generatedAt": "2026-10-29T15:40:53.188Z",
4
4
  "scope": {
5
5
  "files": 31,
6
- "totalLines": 5128,
6
+ "totalLines": 5131,
7
7
  "sourceLines": 3720,
8
- "commentLines": 936
8
+ "commentLines": 939
9
9
  },
10
10
  "measures": {
11
- "commentDensity": 25.16,
11
+ "commentDensity": 25.24,
12
12
  "duplicationPercent": 4.94,
13
13
  "functionCount": 387,
14
14
  "maxComplexity": 10,
@@ -96,12 +96,15 @@ function pushGroup(lines, title, items, width) {
96
96
  // 一行:名字对齐,后面跟判定和环境提示。
97
97
  function rowOf(item, width) {
98
98
  const name = item.name.padEnd(width);
99
- const where = item.environment === undefined ? '' : ` ${firstClause(item.environment)}`;
99
+ const where = item.environment === undefined ? '' : ` ${shortEnvironment(item.environment)}`;
100
100
  return `${name} ${item.verdict}${where}`;
101
101
  }
102
102
 
103
- // 长句在列表里只留前半句,完整内容留给 why。
104
- function firstClause(text) {
105
- const cut = text.split(';')[0];
106
- return cut.length > 24 ? `${cut.slice(0, 24)}…` : cut;
103
+ // 列表里只用环境的摘要:把包名列表整段丢掉,超长再截。
104
+ //
105
+ // 「真实旧版本 3 个(需重启):@deepseek…」把冒号和半截包名挤在一起,读起来别扭;
106
+ // 包名列表留给 /doctor why 输出。
107
+ export function shortEnvironment(text) {
108
+ const head = text.split(':')[0].split(';')[0];
109
+ return head.length > 30 ? `${head.slice(0, 30)}…` : head;
107
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-request-doctor",
3
- "version": "0.12.5",
3
+ "version": "0.12.6",
4
4
  "description": "自动修复客户端引起的请求失败,并让版本不匹配的 DSH 插件能装上、能跑起来。",
5
5
  "keywords": [
6
6
  "dsh-plugin",