dsh-session-superagent 0.8.49 → 0.8.50

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,19 @@
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.8.50] - 2026-11-02 —— 双主题预览进「一键命令 + 门禁」
6
+
7
+ 以前 `render-preview.mjs` 是个内部脚本,没人知道它存在;现在:
8
+
9
+ - `pnpm run preview:themes` → 生成 `preview-themes.html`,浏览器直接打开就能看**浅色 + 深色**两套界面;
10
+ - `preflight` 新增第 8 项「双主题预览可渲染」:真的跑一遍脚本,检查输出里有两套主题、≥18 块场景 ——
11
+ 这条命令坏掉就等于失去了离线验收界面的手段,所以值得守。
12
+ - README 新增「验收(不用装宿主也能跑)」小节,把四条命令列出来。
13
+
14
+ ### 为什么值得
15
+ 「某个主题下颜色写死/漏 token」这类问题,单测永远是绿的;只有把两套主题都渲染出来才看得见。
16
+ 它也是给客户看的:任何人跑一条命令就能自查界面,而不用听我一句「已经对齐了」。
17
+
5
18
  ## [0.8.49] - 2026-11-02 —— 故障排查表补齐最近七个真实事故
6
19
 
7
20
  都是这轮迭代里真踩到的,写进 README 的表里,客户/未来的我看一眼能对上号:
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.8.49-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.8.50-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
 
@@ -133,6 +133,18 @@ dsh plugin --profile <profile> add dsh-session-superagent@latest
133
133
  **本机复现不了客户的问题**:`EOF` / 超时 / 代理这类错误取决于客户的网络,本机能访问同一个仓库不代表客户能。
134
134
  遇到这种情况,先按上面的三样收集信息,再判断是环境还是代码。
135
135
 
136
+ ## 验收(不用装宿主也能跑)
137
+
138
+ ```bash
139
+ node --test # 103 例单测
140
+ node scripts/ui-audit.mjs # 11 项 UI 指标(写死颜色 / 自造 token / 官方结构采用 …)
141
+ node scripts/preflight.mjs # 8 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
142
+ node scripts/render-preview.mjs preview.html # 双主题静态预览,直接浏览器打开
143
+ ```
144
+
145
+ `preview.html` 里每个界面都会渲染**浅色 + 深色**两遍(9 个场景 × 2),
146
+ 用来发现「某个主题下颜色写死 / 漏 token」这类问题 —— 这类 bug 在单测里是绿的。
147
+
136
148
  ## 故障排查(都是真实踩过的)
137
149
 
138
150
  | 症状 | 原因 | 处理 |
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.8.49'
17
+ const CLIENT_VERSION = '0.8.50'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
package/lib/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
 
31
31
  export const name = 'dsh-session-superagent'
32
32
  /** 服务端版本:随 package.json 同步(meta 测试守着)。客户端据此挑「最新的那个实例」。 */
33
- export const SERVER_VERSION = '0.8.49'
33
+ export const SERVER_VERSION = '0.8.50'
34
34
  export const inject = ['tools', 'agents', 'webServer']
35
35
 
36
36
  /** 仅供测试:读写状态文件(生产代码不要用)。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-session-superagent",
3
- "version": "0.8.49",
3
+ "version": "0.8.50",
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",
@@ -35,7 +35,8 @@
35
35
  "sync:profile:check": "node scripts/sync-profile.mjs --check",
36
36
  "sync:profile:repair": "node scripts/sync-profile.mjs --repair",
37
37
  "preview": "node scripts/render-preview.mjs",
38
- "preflight": "node scripts/preflight.mjs"
38
+ "preflight": "node scripts/preflight.mjs",
39
+ "preview:themes": "node scripts/render-preview.mjs preview-themes.html"
39
40
  },
40
41
  "keywords": [
41
42
  "dsh",