dsh-session-superagent 0.8.85 → 0.8.87

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,43 @@
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.87] - 2026-11-02 —— 离线挂载冒烟:下次重启前先证明"挂得上去"
6
+
7
+ ### 为什么这轮做这个(知识库第 36 条)
8
+ 线上 `/state` 的 `serverVersion` 还是 **0.8.38**,仓库已 0.8.87 —— 下次重启会一口气跳 49 个版本。
9
+ 一次性跨越这么多改动,最该担心的不是某条逻辑,而是**能不能挂上去**:
10
+ 新增文件没同步进 profile、路由撞车、import 写错,任何一种都会让整块功能消失,
11
+ 而真机上只表现为「面板空白 / 工具不见了」。
12
+
13
+ ### 改了什么
14
+ `scripts/smoke-mount.mjs`:造假 ctx → 真 `import` + `apply(ctx)` → 断言 8 条路由一条不少、工具 > 0、无异常。
15
+ ```
16
+ 挂载冒烟 OK:0.8.87,工具 7 个(watch_ack,watch_doctor,github,repo_here,watch_start,watch_status,watch_stop),路由 8 条
17
+ ```
18
+ 已接入 `preflight`(第 9 项检查),每次推送前都会守一次。
19
+
20
+ ### 测试
21
+ - `preflight --fast` 现在 9 项检查,全绿;单测仍 134 例。
22
+
23
+ ## [0.8.86] - 2026-11-02 —— SSE 可行性量完了:不改(并发现线上落后 47 个版本)
24
+
25
+ ### 学到的(知识库第 35 条)
26
+ 本机实测 `/state` 回环往返:
27
+ ```
28
+ 200: 0.002052s / 0.002166s / 0.002003s(空仓 1815 B)
29
+ ```
30
+ 720 次/小时 × 2 ms ≈ **1.44 秒/小时**;0.8.85 之后 ≥99% 已是 304。
31
+
32
+ 改成 SSE 要付出:长连接生命周期、断线重连、与宿主重载的交互(我们被重载坑过两次)、流上鉴权、
33
+ 多面板连接复用 —— 换来的是每小时 1.44 秒。**收益与复杂度严重不成比例,不做。**
34
+
35
+ (0.8.84 减字段 + 0.8.85 条件请求已经吃掉 95% 的空间。)
36
+
37
+ ### 顺带发现(重要,已记进 HANDOFF)
38
+ 线上 `/state` 的 `serverVersion` 是 **0.8.38**,仓库已到 0.8.86 ——
39
+ 服务端改动只有重启宿主才生效,所以最近几十个版本的服务端改进**都还没在真机跑过**。
40
+ 按本机铁律重启由用户执行,我只准备核对步骤。
41
+
5
42
  ## [0.8.85] - 2026-11-02 —— /state 接上 ETag/304:没变化就不重传
6
43
 
7
44
  ### 学到的(知识库第 34 条)
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.85-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.8.87-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
 
@@ -138,7 +138,7 @@ dsh plugin --profile <profile> add dsh-session-superagent@latest
138
138
  ```bash
139
139
  node --test # 103 例单测
140
140
  node scripts/ui-audit.mjs # 11 项 UI 指标(写死颜色 / 自造 token / 官方结构采用 …)
141
- node scripts/preflight.mjs # 8 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
141
+ node scripts/preflight.mjs # 9 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
142
142
  node scripts/render-preview.mjs preview.html # 双主题静态预览,直接浏览器打开
143
143
  ```
144
144
 
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.85'
17
+ const CLIENT_VERSION = '0.8.87'
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.85'
33
+ export const SERVER_VERSION = '0.8.87'
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.85",
3
+ "version": "0.8.87",
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",