dsh-session-superagent 0.8.91 → 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 +26 -0
- package/README.md +1 -1
- package/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
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
|
+
|
|
5
31
|
## [0.8.91] - 2026-11-02 —— 新客户第一次被叫醒,照着走一遍就行
|
|
6
32
|
|
|
7
33
|
### 学到的(知识库第 40 条)
|
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)
|
|
6
|
-
[](https://github.com/MYCF711/dsh-session-superagent/releases)
|
|
7
7
|
[](https://www.npmjs.com/package/dsh-session-superagent)
|
|
8
8
|
[](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.
|
|
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.
|
|
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.
|
|
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",
|