dsh-session-superagent 0.9.78 → 0.9.79
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.9.79] - 2026-11-02 —— 工具描述里的承诺必须在对账表里有一行(双向)
|
|
6
|
+
|
|
7
|
+
### 为什么要做
|
|
8
|
+
工具描述是 **agent 读的契约**(`Idempotent per (repo, session)`、`Read-only`、`never returned`),
|
|
9
|
+
`docs/规则对照表.md` 是**人读的对账表** —— 两套文本最容易一边改了另一边没改。
|
|
10
|
+
|
|
11
|
+
### 做法
|
|
12
|
+
`scripts/audit-promises.mjs` 从描述里抽承诺,要求对账表里有对应关键词,**并且反向也查**:
|
|
13
|
+
表里承诺的,描述里必须还写着(否则说明行为被悄悄删了)。
|
|
14
|
+
|
|
15
|
+
### 首跑结果
|
|
16
|
+
对账表缺 4 条:`不再叫醒` / `不回显` / `幂等` / `默认间隔` → 补第 12–16 行。
|
|
17
|
+
|
|
18
|
+
### 验证双向
|
|
19
|
+
- 把 `Idempotent` 从描述里删掉 → `FAIL 表里承诺了但描述里找不到:幂等`(这正是单向检查抓不到的盲区);
|
|
20
|
+
- 还原后 PASS。
|
|
21
|
+
|
|
22
|
+
已接进 `preflight` 第 27 项「工具承诺对照」。
|
|
23
|
+
|
|
5
24
|
## [0.9.78] - 2026-11-02 —— trace 能指名"被冷却期吸收",不再三合一猜
|
|
6
25
|
|
|
7
26
|
### 为什么改
|
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.79'
|
|
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.79'
|
|
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.79",
|
|
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",
|