dsh-session-superagent 0.9.70 → 0.9.71

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 CHANGED
@@ -2,6 +2,30 @@
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.71] - 2026-11-02 —— 又一个装死的检查:打包泄漏检测的字符串写错了
6
+
7
+ ### 发现(注入验证翻出来的)
8
+ `npm pack 内容` 的泄漏判断写的是固定字符串 `'npm notice test/'`,
9
+ 而 `npm pack --dry-run` 的实际输出是:
10
+
11
+ ```
12
+ npm notice 2.7kB test/agents-context.test.mjs
13
+ ```
14
+
15
+ **中间夹着文件尺寸**,所以那几条 needle 永远匹配不到 —— 这条检查等于只检查了 `.tgz`。
16
+
17
+ ### 改法
18
+ - 泄漏判断改成**模式匹配**(`/npm notice .*\stest\//` 等 6 条规则);
19
+ - 抽成独立脚本 `scripts/audit-pack.mjs`(preflight 与注入验证共用);
20
+ - 顺带把「临时目录收口」也抽成 `scripts/audit-tmp-dirs.mjs`。
21
+
22
+ ### 效果
23
+ ```
24
+ 注入 test/ 进 files:修前 PASS(漏报)→ 修后 FAIL(含:test/)✅
25
+ verify-gates 运行时间:34 秒 → 22.6 秒(注入不再跑整套 preflight)
26
+ 注入覆盖:20/26 → 22/26;17/17 注入都被检测到
27
+ ```
28
+
5
29
  ## [0.9.70] - 2026-11-02 —— 覆盖率从 15 涨到 20/26,并把"不该注入"的项说清楚
6
30
 
7
31
  ### 做了什么
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: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6
- [![Version](https://img.shields.io/badge/version-0.9.70-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.71-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
7
7
  [![npm](https://img.shields.io/npm/v/dsh-session-superagent.svg)](https://www.npmjs.com/package/dsh-session-superagent)
8
8
  [![dsh](https://img.shields.io/badge/DeepSeek%20Harness-plugin-orange.svg)](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.70'
17
+ const CLIENT_VERSION = '0.9.71'
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.70'
43
+ export const SERVER_VERSION = '0.9.71'
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.70",
3
+ "version": "0.9.71",
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",