dsh-session-superagent 0.9.107 → 0.9.108

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.108] - 2026-11-02 —— `--fast` 到底少跑了什么:现在有一份生成出来的对照表
6
+
7
+ ### 问题
8
+ `--fast` 快,但"快在哪"没人说得清。跳过 `门禁自检` 意味着**不再验证其它检查还活着** ——
9
+ 这是可以接受的取舍,但必须写在纸上,否则"fast 全绿"会被当成"可以提交"。
10
+
11
+ ### 做法
12
+ - `scripts/preflight-modes.mjs`:**单一事实来源**(跳过哪两项、为什么、风险是什么);
13
+ - `scripts/render-preflight-modes.mjs`:从清单生成 `docs/preflight-modes.md`,带 `--write/--check`;
14
+ - `preflight` 新增第 34 项「模式差异文档」:文档与清单不一致就红(0.1 秒成本)。
15
+
16
+ ### 文档长这样
17
+ | 模式 | 用途 | 约耗时 |
18
+ |---|---|---|
19
+ | 全量 | 提交前 / 发布前 | 约 30 秒 |
20
+ | `--fast` | 边改边跑 | 约 12 秒 |
21
+
22
+ | 跳过的检查 | 为什么跳过 | 跳过后的风险 |
23
+ |---|---|---|
24
+ | 门禁自检 | 要 21 次注入,约 4 秒 | 不会发现"某条检查已经装死" |
25
+ | 冒烟 smoke:observe | 需要真机宿主 | 不会发现真机上的观察模式失效 |
26
+
27
+ 并写明:**`--fast` 全绿不代表可以提交。**
28
+
5
29
  ## [0.9.107] - 2026-11-02 —— 全量 preflight 从 84 秒压到 28 秒
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.107-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.108-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.107'
17
+ const CLIENT_VERSION = '0.9.108'
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.107'
43
+ export const SERVER_VERSION = '0.9.108'
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.107",
3
+ "version": "0.9.108",
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",