dsh-session-superagent 0.8.85 → 0.8.86
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 +19 -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,25 @@
|
|
|
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.86] - 2026-11-02 —— SSE 可行性量完了:不改(并发现线上落后 47 个版本)
|
|
6
|
+
|
|
7
|
+
### 学到的(知识库第 35 条)
|
|
8
|
+
本机实测 `/state` 回环往返:
|
|
9
|
+
```
|
|
10
|
+
200: 0.002052s / 0.002166s / 0.002003s(空仓 1815 B)
|
|
11
|
+
```
|
|
12
|
+
720 次/小时 × 2 ms ≈ **1.44 秒/小时**;0.8.85 之后 ≥99% 已是 304。
|
|
13
|
+
|
|
14
|
+
改成 SSE 要付出:长连接生命周期、断线重连、与宿主重载的交互(我们被重载坑过两次)、流上鉴权、
|
|
15
|
+
多面板连接复用 —— 换来的是每小时 1.44 秒。**收益与复杂度严重不成比例,不做。**
|
|
16
|
+
|
|
17
|
+
(0.8.84 减字段 + 0.8.85 条件请求已经吃掉 95% 的空间。)
|
|
18
|
+
|
|
19
|
+
### 顺带发现(重要,已记进 HANDOFF)
|
|
20
|
+
线上 `/state` 的 `serverVersion` 是 **0.8.38**,仓库已到 0.8.86 ——
|
|
21
|
+
服务端改动只有重启宿主才生效,所以最近几十个版本的服务端改进**都还没在真机跑过**。
|
|
22
|
+
按本机铁律重启由用户执行,我只准备核对步骤。
|
|
23
|
+
|
|
5
24
|
## [0.8.85] - 2026-11-02 —— /state 接上 ETag/304:没变化就不重传
|
|
6
25
|
|
|
7
26
|
### 学到的(知识库第 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)
|
|
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.86'
|
|
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.86'
|
|
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.86",
|
|
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",
|