dsh-session-superagent 0.9.52 → 0.9.54
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 +37 -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,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.9.54] - 2026-11-02 —— 演练脚本补上失败路径与"不唤醒"
|
|
6
|
+
|
|
7
|
+
### 学到的(知识库第 73 条继续追加)
|
|
8
|
+
客户最常问"为什么没动静",答案有三种:网络抖动、被限流、会话正忙。
|
|
9
|
+
**这三种以前一条都没演示过。**
|
|
10
|
+
|
|
11
|
+
### 做了什么
|
|
12
|
+
`first-run.mjs` 第 5b 段打印三者的**面板文案与建议**,数据来自真实函数:
|
|
13
|
+
`classifyGhError`(network / ratelimit / notfound)与 `decideWake`(agent busy → 不唤醒)。
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
kind=network 面板显示:GitHub API 请求: EOF 建议:(网络抖动:已按退避自动重试,不需要手动处理)
|
|
17
|
+
kind=ratelimit 面板显示:HTTP 403: API rate limit exceeded…
|
|
18
|
+
· 会话正忙(不在 idle)→ 不唤醒:{"ok":false,"reason":"agent busy (running)"}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
纳入文案快照(50 → 62 行);单行长度仍 ≤ 120。
|
|
22
|
+
|
|
23
|
+
### 为什么关键
|
|
24
|
+
演示里的字符串**不是手写的示例** —— 与真实代码同源。文案一改,快照就变。
|
|
25
|
+
|
|
26
|
+
## [0.9.53] - 2026-11-02 —— 演练脚本补上"有跳过"分支(那个 bug 藏了两小时的原因)
|
|
27
|
+
|
|
28
|
+
### 学到的(知识库第 73 条追加)
|
|
29
|
+
演练脚本如果只跑主路径,它就只是"主路径回放",不是演练。
|
|
30
|
+
|
|
31
|
+
### 做了什么
|
|
32
|
+
`first-run.mjs` 新增第 3b 段:用真实过滤数据(已关闭 × 2、机器人 × 1、已 ack × 1)演示
|
|
33
|
+
"有跳过时的同一条消息",并纳入文案快照(47 → 50 行)。
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
【为什么是这几条】本轮共 7 条变化;按「最近更新」取前 2 条;本轮跳过 4 条(已关闭 × 2、机器人 × 1、已 ack × 1)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 为什么值得
|
|
40
|
+
0.9.52 修的那个"累计冒充本轮"的 bug 之所以藏了很久,就是因为这行**从来没被演练出来过**。
|
|
41
|
+
|
|
5
42
|
## [0.9.52] - 2026-11-02 —— "跳过"那一行原来是累计值,而且不报总数
|
|
6
43
|
|
|
7
44
|
### 发现(两个都是真的)
|
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.9.
|
|
17
|
+
const CLIENT_VERSION = '0.9.54'
|
|
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.54'
|
|
44
44
|
export const inject = ['tools', 'agents', 'webServer']
|
|
45
45
|
/** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
|
|
46
46
|
const DEFAULT_SESSION_WAKES = 12
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-superagent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.54",
|
|
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",
|