dsh-session-superagent 0.8.90 → 0.8.92

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,53 @@
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.8.92] - 2026-11-02 —— 重启之后怎么确认"新代码真的在跑"
6
+
7
+ ### 背景(这轮的核心事实)
8
+ 线上 `/state` 的 `serverVersion` 是 **0.8.38**,仓库已到 0.8.92。
9
+ 服务端改动只有重启宿主才生效,所以最近 54 个版本的服务端改进**一次都还没在真机跑过**。
10
+
11
+ ### 改了什么
12
+ 新增 `scripts/verify-live.mjs`:一条命令逐项 PASS/FAIL。
13
+
14
+ **重启前在本机实测**:
15
+ ```
16
+ PASS /state 可达 HTTP 200,26ms
17
+ FAIL 版本对齐 线上 0.8.38 ≠ 仓库 0.8.91 —— 需要重启宿主(不是重装)
18
+ FAIL 响应带 ETag 没有 etag 头:这个版本早于 0.8.85
19
+ FAIL 条件请求可用(304) 跳过:没有 ETag
20
+ FAIL /diagnose 可用 HTTP 404
21
+ PASS /update 可用 current=0.8.38 latest=0.8.90
22
+ PASS 守的投影完整 1 条,其中隔离执行 1 条
23
+ ```
24
+ → **4 项 FAIL**,与"线上跑的是老代码"完全吻合。重启后这四项应翻绿。
25
+
26
+ 新增 `docs/真机验证清单.md`:三条命令 + 三个界面动作,每项都写了"没翻绿怎么处理"。
27
+
28
+ ### 说明
29
+ 本版不改变运行时行为(新增脚本与文档);单测 136 例。
30
+
31
+ ## [0.8.91] - 2026-11-02 —— 新客户第一次被叫醒,照着走一遍就行
32
+
33
+ ### 学到的(知识库第 40 条)
34
+ Divio Documentation System 把文档分四类:tutorial / how-to / reference / explanation,
35
+ **它们的写法互相冲突**,用一个文件全做等于三件都做不好。
36
+ <https://docs.divio.com/documentation-system/>
37
+
38
+ 我们原来有 README(reference)、CHANGELOG(开发视角)、`docs/kb`(explanation),
39
+ 缺最影响首次体验的一类:**tutorial**。客户装完了仍不知道"怎么确认它真的在工作"。
40
+
41
+ ### 改了什么
42
+ 新增 `docs/首次唤醒走查.md`:7 步,**每步写清"你应该看到什么"和"没看到时看哪里"**:
43
+ 1. 确认 gh 可用 + token 权限 → 2. 加一条守(先勾仅观察)→ 3. 看它轮询 →
44
+ 4. 制造一次动静 → 5. 判定页确认被判定到 → 6. 关掉仅观察,真的叫醒一次 →
45
+ 7. 处理完 `watch_ack` 打标签。
46
+
47
+ 最后附一页速查表(现象 → 先看哪里)。
48
+
49
+ ### 说明
50
+ 本版只动文档,运行时行为未变。
51
+
5
52
  ## [0.8.90] - 2026-11-02 —— 给使用者写一页"0.9 有什么新变化"
6
53
 
7
54
  ### 学到的(知识库第 39 条)
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.8.90-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.8.92-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.8.90'
17
+ const CLIENT_VERSION = '0.8.92'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
 
31
31
  export const name = 'dsh-session-superagent'
32
32
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
33
- export const SERVER_VERSION = '0.8.90'
33
+ export const SERVER_VERSION = '0.8.92'
34
34
  export const inject = ['tools', 'agents', 'webServer']
35
35
 
36
36
  /** 仅供测试:读写状态文件(生产代码不要用)。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.8.90",
3
+ "version": "0.8.92",
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",