dsh-session-superagent 0.9.81 → 0.9.82
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 +23 -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,29 @@
|
|
|
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.82] - 2026-11-02 —— 跳过必须可见:skip 要带原因,用例体内不许静默 return
|
|
6
|
+
|
|
7
|
+
### 为什么
|
|
8
|
+
`{ skip: process.platform !== 'win32' }` 在非 Windows 机器上只输出一个 `skip`,
|
|
9
|
+
**不说明为什么** —— 看日志的人无法判断"是环境不满足,还是有人偷懒"。
|
|
10
|
+
更隐蔽的是用例体内的 `if (…) return`:**显示通过,其实一行断言都没跑**。
|
|
11
|
+
|
|
12
|
+
### 做法
|
|
13
|
+
`scripts/audit-test-skips.mjs`:
|
|
14
|
+
1. `skip` 的值必须是三元里带字符串的写法 `? '原因' : false`;
|
|
15
|
+
2. 扫描用例体内的裸 `return`(当前 0 处)。
|
|
16
|
+
|
|
17
|
+
### 首跑就抓到自己一次
|
|
18
|
+
第一版判据写成"值里含引号就算有原因",而 `process.platform !== 'win32'` 里也有引号 →
|
|
19
|
+
**假 PASS**。改成必须匹配 `? '…'` 才生效,立刻抓到 `secrets-acl.test.mjs:12`。
|
|
20
|
+
|
|
21
|
+
### 现状
|
|
22
|
+
```
|
|
23
|
+
PASS 跳过可见性 skip 都有原因,无用例体内 return
|
|
24
|
+
node --test → 195/195,skipped 0
|
|
25
|
+
```
|
|
26
|
+
已接进 `preflight`(第 28 项)。
|
|
27
|
+
|
|
5
28
|
## [0.9.81] - 2026-11-02 —— scripts/ 的临时文件也纳入收口(并且这次判据是真的生效)
|
|
6
29
|
|
|
7
30
|
### 做了什么
|
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.82'
|
|
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.82'
|
|
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.82",
|
|
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",
|