dsh-session-superagent 0.9.229 → 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,81 @@
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
+
46
+ ## [0.9.230] - 2026-11-05 —— 那条「单行 120」的门禁,量的一直是错的东西
47
+
48
+ ### ① 门禁量的是「首次演练」的短标题
49
+
50
+ `audit-line-length.mjs` 只跑 `first-run.mjs` 的输出,最长 108 字符 → 一直 PASS。
51
+
52
+ 而**真实唤醒消息**里有 **178 / 175 / 156 / 162 / 492** 字符的行 —— 一个都测不到。
53
+
54
+ 新增 `scripts/wake-samples.mjs`:用**真实的纯函数**造 7 种场景(1 条 / 超 batchLimit / 带目标 /
55
+ 带跳过原因 / PR+CI / 150 字标题 / 合并两个守),让门禁量真东西。
56
+
57
+ 改完立刻红:`FAIL 1 行超过上限:178 字符:#55 [open] [超长标题]…`
58
+
59
+ ### ② 修法:按整行反算标题长度
60
+
61
+ 以前标题固定截 200 字符,而 `head` 前面还有 `#55 [open] ` 和后面的 ` — @who` —— 150 字的标题造出 178 字符的行。
62
+
63
+ 现在按「整行不超过 120」**反算**标题可用长度,超了加省略号;第二行(补充信息)同理。
64
+
65
+ ```
66
+ ⑥ 150 字标题 + 长目标 最长行 178 → 120
67
+ ```
68
+
69
+ ### ③ 顺带
70
+
71
+ `safeTitle` 的省略号以前是「硬切」,现在带 `…` —— 客户看得出「这是被截断的」而不是「标题就这么短」。
72
+
73
+ ### 证据
74
+
75
+ ```
76
+ npm test → 374/374(新增:超长标题不超过 120 且带省略号)
77
+ audit-line-length → PASS(7 种真实场景全部 ≤120)
78
+ ```
79
+
5
80
  ## [0.9.229] - 2026-11-05 —— 合并唤醒时「接下来」整段被吃掉,最需要指令的场景没有指令
6
81
 
7
82
  ### ① M2 · 合并多条唤醒后,「接下来」出现 **0 次**
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.229-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)
@@ -146,7 +146,7 @@ Gitee 私有仓库要在「设置 → 凭证」填私人令牌;公开仓库不
146
146
  ## 开发
147
147
 
148
148
  ```sh
149
- npm test # 373 项单测(带离线开关;裸 node --test 会真去 spawn gh,两分半)
149
+ npm test # 374 项单测(带离线开关;裸 node --test 会真去 spawn gh,两分半)
150
150
  ```
151
151
 
152
152
  ### 工具输出:文本给人和 agent,JSON 给程序
@@ -198,7 +198,7 @@ dsh plugin --profile <profile> add dsh-session-superagent@latest
198
198
  ## 验收(不用装宿主也能跑)
199
199
 
200
200
  ```bash
201
- npm test # 373 项单测(带离线开关,约 1.6 秒)
201
+ npm test # 374 项单测(带离线开关,约 1.6 秒)
202
202
  node scripts/ui-audit.mjs # 11 项 UI 指标(写死颜色 / 自造 token / 官方结构采用 …)
203
203
  node scripts/preflight.mjs # 40 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
204
204
  node scripts/render-preview.mjs preview.html # 双主题静态预览,直接浏览器打开
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.229'
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.229'
46
+ export const SERVER_VERSION = '0.9.231'
47
47
  export const inject = ['tools', 'agents', 'webServer']
48
48
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
49
49
  // 本进程启动时刻:用来区分「刚重启还没轮到」与「定时器真的丢了」