dsh-session-superagent 0.9.25 → 0.9.26

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,26 @@
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.26] - 2026-11-02 —— 客户会读到的文字有了快照,改动必须是有意的
6
+
7
+ ### 做法
8
+ `scripts/first-run.mjs` 新增两个模式:
9
+ - `--write`:把当前输出写成 `docs/示例-唤醒消息.md`(44 行,含唤醒消息原文);
10
+ - `--check`:与快照比对,不一致则退出码 1 并提示"确认没问题后 --write 更新示例"。
11
+
12
+ 实测验证有效(临时把 `【为什么是这几条】` 改成别的字样):
13
+ ```
14
+ 提示 客户会读到的文字有变化:约 1 行不同
15
+ exit=1
16
+ ```
17
+
18
+ ### 为什么做成门禁而不是"提醒"
19
+ 文案是**客户唯一能读到的产品**。改文案必须是显式决定 ——
20
+ 一旦快照对不上,就必须在同一轮里跑 `--write` 并看 diff,避免"顺手改了措辞"却没人注意。
21
+
22
+ ### 门禁
23
+ `preflight --fast` 第 **12** 项:`PASS 文案快照 示例与当前实现一致(44 行)`
24
+
5
25
  ## [0.9.25] - 2026-11-02 —— 首次演练脚本一跑,就抓到唤醒消息里的重复条目
6
26
 
7
27
  ### 新增:`scripts/first-run.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: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6
- [![Version](https://img.shields.io/badge/version-0.9.25-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.26-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.25'
17
+ const CLIENT_VERSION = '0.9.26'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -34,7 +34,7 @@ import {
34
34
 
35
35
  export const name = 'dsh-session-superagent'
36
36
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
37
- export const SERVER_VERSION = '0.9.25'
37
+ export const SERVER_VERSION = '0.9.26'
38
38
  export const inject = ['tools', 'agents', 'webServer']
39
39
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
40
40
  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.25",
3
+ "version": "0.9.26",
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",