dsh-session-superagent 0.9.218 → 0.9.219
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 +36 -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,42 @@
|
|
|
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.219] - 2026-11-05 —— 又修掉 3 条「改坏了还是绿」的审计脚本
|
|
6
|
+
|
|
7
|
+
### ① `audit-line-length.mjs`:空输出 = 通过
|
|
8
|
+
|
|
9
|
+
`first-run.mjs` 一行都不输出时,`''.split('\n')` 得到 **1 行 0 字符** → 「没有超限」→ PASS。
|
|
10
|
+
脚本坏了、被改成一字不打印,门禁照样绿。
|
|
11
|
+
|
|
12
|
+
现在加了下限:至少 5 行有效内容,否则红 —— **空输出不等于合规**。
|
|
13
|
+
|
|
14
|
+
### ② `audit-test-skips.mjs`:换行写就看不见
|
|
15
|
+
|
|
16
|
+
以前逐行匹配 `{ skip: … }`,要求 `{ skip:` 与 `}` **同一行**;`return;` 带分号也认不出。
|
|
17
|
+
|
|
18
|
+
改成整块跨行匹配(`[^}]*`),`return` 允许尾随分号。这条规则是「跳过必须说为什么」,
|
|
19
|
+
一旦有人的写法绕过它,规则就形同虚设。
|
|
20
|
+
|
|
21
|
+
### ③ `audit-kb-claims.mjs`:`✅` 与版本号必须同行
|
|
22
|
+
|
|
23
|
+
`[^\n]*?` 明确排除换行 —— 而知识库里「✅ 已落地」换行再写版本号很常见,那样**一条都查不到**。
|
|
24
|
+
|
|
25
|
+
现在允许跨行,但只跨到**下一个空行**为止(最多 200 字符),避免把下一段的版本号算进来。
|
|
26
|
+
|
|
27
|
+
### 未修(登记)
|
|
28
|
+
|
|
29
|
+
`check-docs.mjs`(只认「文字](目标」这一种写法,自动链接 `<path>` 与引用式链接 失明)、
|
|
30
|
+
`audit-claims-consistency`(只查 5 份文档)、`audit-duplicate-copy`(只认单引号)、
|
|
31
|
+
`audit-readme-tests`(只看第一处)、`audit-tmp-dirs`(只认一种拼写)、
|
|
32
|
+
`audit-syntax`(清单写死 6 个文件)—— 下一轮继续。
|
|
33
|
+
|
|
34
|
+
### 证据
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
node --test → 368/368
|
|
38
|
+
preflight --fast → 全部通过(38 项)
|
|
39
|
+
```
|
|
40
|
+
|
|
5
41
|
## [0.9.218] - 2026-11-05 —— 门禁自己会骗人:14 个审计脚本存在假阴性
|
|
6
42
|
|
|
7
43
|
### ① 最严重的一条:`audit-glossary.mjs` 永远不会红
|
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
|
[](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin)
|
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.219'
|
|
18
18
|
let BASE = '/session-superagent'
|
|
19
19
|
/**
|
|
20
20
|
* 挑「最新的那个服务端实例」。
|
package/lib/index.js
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
|
|
44
44
|
export const name = 'dsh-session-superagent'
|
|
45
45
|
/** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
|
|
46
|
-
export const SERVER_VERSION = '0.9.
|
|
46
|
+
export const SERVER_VERSION = '0.9.219'
|
|
47
47
|
export const inject = ['tools', 'agents', 'webServer']
|
|
48
48
|
/** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
|
|
49
49
|
// 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-session-superagent",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.219",
|
|
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",
|