dsh-session-superagent 0.9.101 → 0.9.102
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 +30 -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,36 @@
|
|
|
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.102] - 2026-11-02 —— npm 包里少了文件会"装上但不工作",现在会红
|
|
6
|
+
|
|
7
|
+
### 查了什么
|
|
8
|
+
`npm pack` 一共 14 个文件,其中 **7 个是运行必需的**(插件不挂载、或面板空白都可能是漏了某个文件):
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
lib/index.js lib/watch.js lib/gh-format.js lib/redact.js lib/body.js
|
|
12
|
+
client.js cordis.patch.yml
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
历史上真踩过一次:`lib/body.js` 没进 profile 的链路,插件整体不挂载。
|
|
16
|
+
|
|
17
|
+
### 改法
|
|
18
|
+
`scripts/audit-pack.mjs` 除了查"不该进包的东西",现在也查"**该进包的**":
|
|
19
|
+
```
|
|
20
|
+
REQUIRED = ['lib/index.js', 'lib/watch.js', 'lib/gh-format.js', 'lib/redact.js', 'lib/body.js',
|
|
21
|
+
'client.js', 'cordis.patch.yml', 'package.json', 'README.md', 'LICENSE']
|
|
22
|
+
```
|
|
23
|
+
缺任何一个就 `FAIL …(缺:lib/body.js)`。
|
|
24
|
+
|
|
25
|
+
### 验证
|
|
26
|
+
把 `lib` 目录改成逐个列、故意漏掉 `lib/body.js`:
|
|
27
|
+
```
|
|
28
|
+
FAIL npm pack 内容 13 个文件(缺:lib/body.js) exit=1
|
|
29
|
+
```
|
|
30
|
+
还原后 `PASS … 14 个文件 exit=0`。
|
|
31
|
+
|
|
32
|
+
(顺带发现:`LICENSE` / `README` / `package.json` 是 npm **强制包含**的,`files` 里删了也还在 ——
|
|
33
|
+
所以注入验证只能用 `lib/body.js` 这类文件。)
|
|
34
|
+
|
|
5
35
|
## [0.9.101] - 2026-11-02 —— README 的说法接进门禁(8 组对照)
|
|
6
36
|
|
|
7
37
|
### 为什么
|
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.102'
|
|
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.102'
|
|
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.102",
|
|
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",
|