dsh-session-superagent 0.8.40 → 0.8.41

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,31 @@
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.41] - 2026-11-02 —— UI 不再靠肉眼验收:七项指标 + 首次 100 分
6
+
7
+ 用户的原话:「你的 UI 真的完美了吗?要做到 DSH 的原生 UI 一样」。肉眼点一遍既慢又漏,
8
+ 所以先把**能数的东西**抽出来:新增 `scripts/ui-audit.mjs`(不需要宿主,量源码),
9
+ 并接进 `preflight`,以后每次推送都会跑。
10
+
11
+ ### 首次体检抓出三处真问题(已修)
12
+ | 指标 | 修前 | 修后 |
13
+ |---|---|---|
14
+ | 可点但不可键盘操作的裸 div | 1(弹层遮罩) | **0**(`role="presentation"`) |
15
+ | 图标按钮缺可读名字 | 2(行内「编辑」「暂停/恢复」) | **0**(补 `label`) |
16
+ | 空态分支 | 用 `dt-empty` 查不到 | 改按 `length === 0` 数,**10 处** |
17
+
18
+ ### 七项指标(当前全绿)
19
+ ```
20
+ 可点裸 div 0 · focus-visible 15 · 写死颜色 0 · 图标按钮缺名字 0
21
+ 空态分支 10 · 裸 button/Btn 8/15 · 自造类死代码 0 → 100 分
22
+ ```
23
+
24
+ 指标不是空转:新增指标时都写了**负例**(故意造一个没名字的按钮,确认抓得到)。
25
+
26
+ ### 新增文档
27
+ `docs/optimization-plan.md`:指标表 + 下一批目标(换掉 8 个裸 button、间距节奏、空态结构、
28
+ 双主题实拍、键盘走查)。定时任务的提示词也改成按这张表挑活。
29
+
5
30
  ## [0.8.40] - 2026-11-02 —— 时段外不要谎报「主理中」
6
31
 
7
32
  用户截图指出一处不诚实:一条设了活跃时段 `09:00-23:00` 的主理鱼,
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.40-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.8.41-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.8.40'
17
+ const CLIENT_VERSION = '0.8.41'
18
18
  let BASE = '/session-superagent'
19
19
  /**
20
20
  * 挑「最新的那个服务端实例」。
@@ -260,7 +260,7 @@ window.__ModuleLoader__.load({
260
260
  if (!open) return null
261
261
  // class 必须与移植来的官方 CSS 对齐:dt-modal-root / dt-modal-mask / dt-modal-header
262
262
  return h('div', { className: 'dt-modal-root' },
263
- h('div', { className: 'dt-modal-mask', onClick: onClose }),
263
+ h('div', { className: 'dt-modal-mask', role: 'presentation', onClick: onClose }),
264
264
  h('div', {
265
265
  className: 'dt-modal', role: 'dialog', 'aria-modal': 'true',
266
266
  'aria-label': typeof title === 'string' ? title : undefined,
@@ -865,7 +865,7 @@ window.__ModuleLoader__.load({
865
865
  backoffText(watcher) ? h(Tag, { tone: 'warning' }, backoffText(watcher)) : null)),
866
866
  h('div', { className: 'dt-row-actions' },
867
867
  h(Btn, {
868
- size: 'sm', variant: 'ghost', icon: h(Icon, { name: 'settings' }),
868
+ size: 'sm', variant: 'ghost', icon: h(Icon, { name: 'settings' }), label: '编辑',
869
869
  onClick: () => {
870
870
  setEditing(editing === key ? null : key)
871
871
  setDraft({
@@ -886,6 +886,7 @@ window.__ModuleLoader__.load({
886
886
  h(Btn, {
887
887
  size: 'sm', variant: 'ghost',
888
888
  icon: h(Icon, { name: watcher.enabled ? 'pause' : 'play' }),
889
+ label: watcher.enabled ? '暂停' : '恢复',
889
890
  onClick: () => act(watcher, watcher.enabled ? 'pause' : 'resume'),
890
891
  }, watcher.enabled ? '暂停' : '恢复'),
891
892
  h(ConfirmBtn, {
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.40'
33
+ export const SERVER_VERSION = '0.8.41'
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.40",
3
+ "version": "0.8.41",
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",