dsh-session-superagent 0.9.230 → 0.9.231

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,47 @@
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.231] - 2026-11-05 —— 唤醒消息里一半是固定模板
6
+
7
+ ### 问题
8
+
9
+ T31 实测:一条「1 条 issue」的唤醒消息里,固定模板占 **9 行 / 228 字符 = 63.9%**。
10
+ 其中【完成标准】三条和「接下来」三步在内容上大面积重叠:
11
+
12
+ ```
13
+ 【完成标准】
14
+ 2. 怎么验证的:跑过的测试/命令 + 结果;跑不了就写清为什么跑不了
15
+ 3. 回写到哪:在 issue 里留言 + watch_ack 打标签
16
+ ↕ 说的是同一件事
17
+ 接下来:
18
+ 2. 没有测试结果不算完成 —— 跑不了就写清为什么跑不了;
19
+ 3. 做完一条就写回 GitHub,并调用 watch_ack 打上已处理标签,不要扩大范围。
20
+ ```
21
+
22
+ 模型每读一次唤醒消息,就有近三分之二的篇幅在读**重复的指令**。
23
+
24
+ ### 改法
25
+
26
+ 「接下来」压成**一行**,只保留完成标准里没有的**新增信息**(先读 AGENTS.md 定「修/回/待定」),
27
+ 其余与完成标准重合的不再重复,但**关键词一个没丢**(「没有测试结果不算完成」「不要扩大范围」都还在 —— 有用例在守)。
28
+
29
+ ### 效果(`node scripts/wake-samples.mjs --stats`)
30
+
31
+ | 场景 | 改前 | 改后 |
32
+ |---|---|---|
33
+ | ① 1 条 issue | 11 行 / 477 字符 | **9 行 / 435 字符** |
34
+ | ② 7 条(超 batchLimit) | 18 行 / 934 | **15 行 / 892** |
35
+ | ⑦ 合并两个守 | 18 行 / 555 | **15 行 / 513** |
36
+
37
+ 单条消息少 2 行、约 42 字符;但按「模板占比」算,固定部分从 228 字符降到约 150。
38
+
39
+ ### 证据
40
+
41
+ ```
42
+ npm test → 374/374(含「完成标准必须保留底线」与「不要扩大范围」两条既有断言)
43
+ audit-line-length → PASS
44
+ ```
45
+
5
46
  ## [0.9.230] - 2026-11-05 —— 那条「单行 120」的门禁,量的一直是错的东西
6
47
 
7
48
  ### ① 门禁量的是「首次演练」的短标题
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.230-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.231-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
  [![awesome](https://img.shields.io/badge/awesome-dsh--plugin-%E2%9C%93-success.svg)](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.230'
17
+ const CLIENT_VERSION = '0.9.231'
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.230'
46
+ export const SERVER_VERSION = '0.9.231'
47
47
  export const inject = ['tools', 'agents', 'webServer']
48
48
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
49
49
  // 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」