dsh-session-superagent 0.9.248 → 0.9.249

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,47 @@
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.249] - 2026-11-05 —— 把「客户实拍」那个 bug 变成一条永久的门禁
6
+
7
+ 0.9.248 修了「设置页左栏点了不换内容」。那一轮修的是**一个地方**;
8
+ 这一轮修的是**这一类**。
9
+
10
+ ### 为什么一个 bug 能活 160 个版本
11
+
12
+ ```js
13
+ node.props.key === settingsSection
14
+ ```
15
+
16
+ 真 React 会把 `key` 从 props 剥掉(它挂在 `element.key` 上),而测试桩把它留在了 props 里。
17
+ **桩比运行时干净,就会掩盖 bug** —— 这不是第一次:
18
+
19
+ | 时间 | 桩里成立、真机不成立 |
20
+ |---|---|
21
+ | T26 | `watcher()` 桩里 `intervalSec: 30` 恒存在、`goal: null` 恒为空、`gh` 不在桩里 |
22
+ | 0.9.248 | `createElement` 保留 `props.key` |
23
+
24
+ ### 新增门禁 `audit-react-semantics.mjs`(已挂进 preflight,第 41 项)
25
+
26
+ 三条判据,全部是「桩里能跑、真机坏」的形状:
27
+
28
+ 1. `client.js` 不许靠 `props.key` 做判断(React 剥掉它);
29
+ 2. `client.js` 不许**改写** props(React 在开发模式下冻结 props);
30
+ 3. 测试桩**必须**按 React 语义剥掉 `key` —— 否则第 1 类 bug 永远测不出来。
31
+
32
+ 扫描前先按行去掉注释(不然解释这个坑的注释自己会被判红)。
33
+
34
+ ### 新增知识库条目
35
+
36
+ `docs/kb/test-harness-must-match-runtime.md` —— 把这次的教训写成了规则:
37
+ **桩要模仿运行时的「坏脾气」,不是模仿它的「好脾气」**。
38
+
39
+ ### 证据
40
+
41
+ ```
42
+ npm test → 387/387
43
+ preflight --fast → React 语义 PASS
44
+ ```
45
+
5
46
  ## [0.9.248] - 2026-11-05 —— 客户实拍:设置页左栏点了不换内容
6
47
 
7
48
  ### 客户看到的
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.248-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.249-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
  [![awesome](https://img.shields.io/badge/awesome-dsh--plugin-%E2%9C%93-success.svg)](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
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.248'
17
+ const CLIENT_VERSION = '0.9.249'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -44,7 +44,7 @@ import {
44
44
 
45
45
  export const name = 'dsh-session-superagent'
46
46
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
47
- export const SERVER_VERSION = '0.9.248'
47
+ export const SERVER_VERSION = '0.9.249'
48
48
  export const inject = ['tools', 'agents', 'webServer']
49
49
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
50
50
  // 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.9.248",
3
+ "version": "0.9.249",
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",