dsh-session-superagent 0.9.63 → 0.9.65

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/CHANGELOG.md CHANGED
@@ -2,6 +2,51 @@
2
2
 
3
3
  格式参照 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## [0.9.65] - 2026-11-02 —— 门禁自检:注入 4 个错误,确认检查真的会红
6
+
7
+ ### 学到的(知识库第 105 条)
8
+ 变异测试的思路用在门禁上:**给门禁注入缺陷,看它抓不抓**。抓不到的检查就是摆设。
9
+
10
+ ### 做了什么
11
+ `scripts/verify-gates.mjs` 四处注入(try/finally 还原):
12
+ | 注入 | 结果 |
13
+ |---|---|
14
+ | README「N 项单测」改成 9999 | 红 ✅ |
15
+ | 临时写一条 `✅ 9.9.9` | 红 ✅ |
16
+ | 临时写一个断链 | 红 ✅ |
17
+ | 面板文案改一个字 | 红 ✅ |
18
+
19
+ ```
20
+ PASS 4/4 项注入都被检测到(门禁是活的)
21
+ ```
22
+ 已接进 `preflight`(非 `--fast`,第 25 项「门禁自检」)。
23
+
24
+ ### 顺带修掉一个"假红"
25
+ `smoke:observe` 需要真机宿主,本机一直红 9 项 —— 那是**环境不满足**,不是产品问题。
26
+ 现在脚本自带宿主门禁(`DSH_SMOKE_HOST=1`),否则打印 `SKIP` 并退出 0。
27
+
28
+ > 假红和假绿一样有害:前者让人麻木,后者让人误以为安全。
29
+
30
+ ## [0.9.64] - 2026-11-02 —— 错误建议变成机械可查:≤60 字符且必须含动作
31
+
32
+ ### 学到的(知识库第 104 条继续)
33
+ 建议文案会随版本漂移 —— 0.9.62 兜底为空、0.9.63 建议被截断,**两次都是靠人发现**。
34
+ 这次把判据变成脚本。
35
+
36
+ ### 做法
37
+ `scripts/audit-error-hints.mjs`:7 类错误各跑一个样本,逐条检查
38
+ - 长度 **≤ 60 字符**(面板窄,超过就折三行);
39
+ - 必须含可执行动作(跑 / 填 / 等 / 检查 / 确认 / 换 / 贴给),或明确写"不需要手动处理";
40
+ - 分类必须对得上(防止正则改动导致归错类)。
41
+
42
+ 实测:`auth 35 / ratelimit 31 / gateway 43 / nogh 22 / notfound 23 / network 35 / other 50`。
43
+
44
+ ### 验证它会红
45
+ 把 `nogh` 那条临时改成 68 字符 → `FAIL nogh 68 字符`,exit 1;还原后 PASS。
46
+
47
+ ### 门禁
48
+ `preflight --fast` 新增「错误建议」→ 现共 **24** 项;验收清单 26 项每项都有解释。
49
+
5
50
  ## [0.9.63] - 2026-11-02 —— 错误截断不再切掉建议(三处渲染统一拆开)
6
51
 
7
52
  ### 问题
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <img src="assets/icon-180.png" width="88" height="88" alt="">
4
4
 
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6
- [![Version](https://img.shields.io/badge/version-0.9.63-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.65-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
7
7
  [![npm](https://img.shields.io/npm/v/dsh-session-superagent.svg)](https://www.npmjs.com/package/dsh-session-superagent)
8
8
  [![dsh](https://img.shields.io/badge/DeepSeek%20Harness-plugin-orange.svg)](https://github.com/topics/dsh-plugin)
9
9
 
package/client.js CHANGED
@@ -14,7 +14,7 @@ window.__ModuleLoader__.load({
14
14
  const { useCallback, useEffect, useRef, useState } = React
15
15
 
16
16
  // 客户端版本探针:每次模块加载写一次,用来确认浏览器里跑的是哪一版
17
- const CLIENT_VERSION = '0.9.63'
17
+ const CLIENT_VERSION = '0.9.65'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -40,7 +40,7 @@ import {
40
40
 
41
41
  export const name = 'dsh-session-superagent'
42
42
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
43
- export const SERVER_VERSION = '0.9.63'
43
+ export const SERVER_VERSION = '0.9.65'
44
44
  export const inject = ['tools', 'agents', 'webServer']
45
45
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
46
46
  const DEFAULT_SESSION_WAKES = 12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.9.63",
3
+ "version": "0.9.65",
4
4
  "description": "Session-level superagent for DeepSeek Harness: watch a GitHub repository and wake a session when something needs doing. Credentials never reach the model.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",