dsh-session-superagent 0.9.68 → 0.9.69

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,29 @@
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.69] - 2026-11-02 —— 查出"写死颜色"指标为什么装死:正则里混进了一个退格符
6
+
7
+ ### 根因(两个叠加)
8
+ 1. `scripts/ui-audit.mjs` 的 hex 正则末尾混进了一个 **0x08 退格符**(`{3,8}`),
9
+ 于是它永远匹配不到任何颜色 —— 指标恒为 0;
10
+ 2. 剔除移植 CSS 用的是 `clientSource.replace(PORTED, '')`,而 `PORTED` 是**解码后**的文本,
11
+ 源码里是转义形式,替换根本不生效 —— 于是移植 CSS 里的 `#000` 会被算成"我们写的"。
12
+
13
+ ### 修法
14
+ - 正则改回 `{3,8}`;
15
+ - 剔除改成**按源码区间切片**(`PORTED_CSS = "` 到 `";`);
16
+ - 顺手把 4 处真的写死颜色换成 token:
17
+ `badgeOn/badgeOff/err/ok` → `var(--dsw-alias-state-success|warn|error-primary)`。
18
+
19
+ ### 结果
20
+ ```
21
+ 修前:写死颜色 0(假的)
22
+ 修后:写死颜色 0(真的)—— 注入一处 hex 立刻变 1 并让 UI 体检变红
23
+ ```
24
+ `verify-gates` 的 UI 注入**恢复并通过** → 覆盖 **15/27**,`suspect` 清空。
25
+
26
+ > 一个 0x08 让这条指标装了不知道多久的死;变异测试是唯一能发现它的办法。
27
+
5
28
  ## [0.9.68] - 2026-11-02 —— 变异测试抓到一条"疑似失明"的指标
6
29
 
7
30
  ### 发生了什么
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.68-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.69-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.68'
17
+ const CLIENT_VERSION = '0.9.69'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
@@ -98,9 +98,9 @@ window.__ModuleLoader__.load({
98
98
  row: { display: 'grid', gridTemplateColumns: '1.4fr 1fr 70px 1.2fr 1.2fr 70px 112px', gap: 10, padding: '7px 0', borderBottom: '1px solid rgba(128,128,128,.18)' },
99
99
  head: { fontWeight: 600, opacity: 0.7, borderBottom: '1px solid rgba(128,128,128,.35)' },
100
100
  mono: { fontFamily: 'ui-monospace, Consolas, monospace', fontSize: 12 },
101
- badgeOn: { color: '#1a7f37' },
102
- badgeOff: { color: '#9a6700' },
103
- err: { color: '#cf222e', fontSize: 12 },
101
+ badgeOn: { color: 'var(--dsw-alias-state-success-primary)' },
102
+ badgeOff: { color: 'var(--dsw-alias-state-warn-primary)' },
103
+ err: { color: 'var(--dsw-alias-state-error-primary)', fontSize: 12 },
104
104
  empty: { opacity: 0.6, marginTop: 12 },
105
105
  foot: { marginTop: 14, opacity: 0.55, fontSize: 12 },
106
106
  card: { border: '1px solid rgba(128,128,128,.25)', borderRadius: 8, padding: '12px 14px', marginBottom: 14 },
@@ -110,7 +110,7 @@ window.__ModuleLoader__.load({
110
110
  input: { flex: 1, minWidth: 180, padding: '5px 8px', borderRadius: 6, border: '1px solid rgba(128,128,128,.4)', background: 'transparent', color: 'inherit', font: 'inherit' },
111
111
  button: { padding: '5px 12px', borderRadius: 6, border: '1px solid rgba(128,128,128,.5)', background: 'rgba(128,128,128,.12)', color: 'inherit', cursor: 'pointer' },
112
112
  tiny: { padding: '2px 8px', fontSize: 11, lineHeight: '16px', borderRadius: 5, border: '1px solid rgba(128,128,128,.45)', background: 'transparent', color: 'inherit', cursor: 'pointer' },
113
- ok: { color: '#1a7f37', fontSize: 12 },
113
+ ok: { color: 'var(--dsw-alias-state-success-primary)', fontSize: 12 },
114
114
  }
115
115
 
116
116
  // ── 移植自官方 dsh-superagent 的设计系统(scripts/port-official-ui.mjs 生成)──
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.68'
43
+ export const SERVER_VERSION = '0.9.69'
44
44
  export const inject = ['tools', 'agents', 'webServer']
45
45
  /** 一条会话每小时最多被唤醒几次(跨所有守累计)。单守上限挡不住多守叠加。 */
46
46
  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.68",
3
+ "version": "0.9.69",
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",