dsh-session-superagent 0.9.99 → 0.9.100
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 +27 -0
- package/README.md +2 -2
- package/client.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
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.100] - 2026-11-02 —— 304 实测:60 秒 12 次拉取,只有 2 次真的传正文
|
|
6
|
+
|
|
7
|
+
### 为什么要量
|
|
8
|
+
`/state` 早就有 ETag/304,但**从没验证过它是否命中**。面板每 5 秒拉一次,
|
|
9
|
+
如果 ETag 因为某个易变字段永远不命中,那这段代码等于不存在。
|
|
10
|
+
|
|
11
|
+
### 实测(新增用例,模拟真实节奏)
|
|
12
|
+
12 次拉取(第 6 次改了一条守的 cursor):
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
statuses: 200,304,304,304,304,200,304,304,304,304,304,304
|
|
16
|
+
→ 只有 2 次 200,10 次 304
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
按 20 条守 37.8 KB 的正文算:
|
|
20
|
+
| 情况 | 每分钟下载 |
|
|
21
|
+
|---|---|
|
|
22
|
+
| 无 ETag | 12 × 37.8 ≈ **454 KB** |
|
|
23
|
+
| 有 ETag(本实测) | 2 × 37.8 ≈ **76 KB** |
|
|
24
|
+
| 省 | **约 83%** |
|
|
25
|
+
|
|
26
|
+
### 顺带
|
|
27
|
+
把 `/state` 的体积(20 条守 ≤ 50 KB)接进 `preflight`,作为第 30 项「面板请求体积」。
|
|
28
|
+
|
|
29
|
+
### 测试
|
|
30
|
+
新增 1 例:12 次里恰好 2 次 200、其余 304,且累计正文 < 8 KB。合计 **212 例**。
|
|
31
|
+
|
|
5
32
|
## [0.9.99] - 2026-11-02 —— trace 也做「例外优先」:正常两行说完
|
|
6
33
|
|
|
7
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
|
|
|
@@ -121,7 +121,7 @@ dsh plugin install /path/to/dsh-session-superagent
|
|
|
121
121
|
## 开发
|
|
122
122
|
|
|
123
123
|
```sh
|
|
124
|
-
node --test #
|
|
124
|
+
node --test # 212 项单测
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
### 工具输出:文本给人和 agent,JSON 给程序
|
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.
|
|
17
|
+
const CLIENT_VERSION = '0.9.100'
|
|
18
18
|
let BASE = '/session-superagent'
|
|
19
19
|
/**
|
|
20
20
|
* 挑「最新的那个服务端实例」。
|
package/lib/index.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
|
|
41
41
|
export const name = 'dsh-session-superagent'
|
|
42
42
|
/** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
|
|
43
|
-
export const SERVER_VERSION = '0.9.
|
|
43
|
+
export const SERVER_VERSION = '0.9.100'
|
|
44
44
|
export const inject = ['tools', 'agents', 'webServer']
|
|
45
45
|
/** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
|
|
46
46
|
// 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-superagent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.100",
|
|
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",
|