dsh-session-superagent 0.9.265 → 0.9.267

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.267] - 2026-11-05 —— 修掉行内编辑透明遮挡,主面板接入 DSH Modal/Toast
6
+
7
+ ### 修复「展开后只能看,不能改」
8
+
9
+ 根因不是 `disabled`:官方 `.dt-open::after` 是整行透明点击层,展开表单被它盖住,
10
+ 点击 input 实际命中标题按钮并触发收起。
11
+
12
+ Chromium 实测:
13
+
14
+ ```text
15
+ 修复前 elementFromPoint → button.dt-open
16
+ 修复后 elementFromPoint → input[type=number]
17
+ ```
18
+
19
+ 修复:`.dt-ticket-body .dt-form { position:relative; z-index:1; }`;
20
+ WatcherForm 外壳改为官方 DraftEditor 的 `form.dt-card + Fields + SaveBar`。
21
+ 预览新增「行内编辑 / 行内编辑(已修改)」两个永久场景,并加点击层回归测试。
22
+
23
+ ### 主面板接入 DSH 原语
24
+
25
+ - `factory(require)` 可选探测 `@deepseek-ai/dsh-client-ui-primitives`;
26
+ - 主面板 ConfirmButton 内部使用 DSH Modal,保留 busy、成功才关闭和错误反馈;
27
+ - orbit 的确认框暂保留 superagent 同源实现,直到 orbit 与 Modal 的焦点/层级策略验收;
28
+ - Toast 使用 keyed DSH Toast + `holdMs=3000` + `onDone(id)` id guard;
29
+ - 老宿主缺少原语时完整回退到原有 Modal/Toast,不影响加载。
30
+
31
+ ### UI 硬约束与适配层
32
+
33
+ `AGENTS.md` 新增「原生 DSH 优先,最小自制」硬约束:先查官方结构树和素材,
34
+ 能直接复用就直接复用,必须适配时只包一层,官方无同物才允许最小 derived 并登记证据。
35
+ 独立 Tooltip 适配增加 capture scroll → remount key 的 scroll-close 和 effect 对称清理。
36
+
37
+ ### 证据
38
+
39
+ ```
40
+ npm test → 500/500
41
+ scripts/ui-audit.mjs → 11/11,100 分
42
+ 对比度 → 浅色 16 组 ≤ 基线 16;深色 13 组 ≤ 基线 13
43
+ ```
44
+
45
+ 真实 WebView 的连续打字、IME 与保存后刷新仍列入走查,不用测试桩冒充真机验收。
46
+
47
+ ## [0.9.266] - 2026-11-05 —— 新增/编辑共用 WatcherForm,宿主原语适配层就位
48
+
49
+ ### 共用表单,不再两套字段
50
+
51
+ 新增 `WatcherForm / Field / Fields / SaveBar` 与统一 schema:
52
+
53
+ - `div.dt-field + label[htmlFor]` 对应唯一 input id,label 内不嵌交互按钮;
54
+ - 高级限额、优先级、隔离保留策略进入 Disclosure,默认收起;
55
+ - 数字字段显式 `type=number / min / max`,optional 空值保持空;
56
+ - 干净无 SaveBar,修改出现,放弃恢复完整打开快照,保存中禁用;
57
+ - 保存仍走 `/watch`,只提交 touched 字段,不改 API。
58
+
59
+ 新增 11 条定向用例 + 8 条独立验收;独立验收还修复了跨 VM realm 的 style 原型误判,未放宽断言。
60
+
61
+ ### DSH 原语薄适配层
62
+
63
+ 新增 `ui-host-primitives.js`:
64
+
65
+ - `createHostUi()`:Modal / Toast / Tooltip 的真实 props 适配;
66
+ - Toast 必须 `key=item.id`,`onDone` 只回传 id,旧回调不能清新通知;
67
+ - `dismissToast()` 纯函数 id guard,无第二套 timer;
68
+ - Tooltip 固定 `top / portal / openOnClick / gap=8`,缺原语显式报错,不自造第三套。
69
+
70
+ 该模块已随包导出,下一批再接入现有调用面;浏览器焦点、计时、scroll-close 仍明确未验。
71
+
72
+ ### 证据
73
+
74
+ ```
75
+ npm test → 486/486(WatcherForm 11 + 独立验收 8 + 宿主适配 8,另含原有全部用例)
76
+ scripts/ui-audit.mjs → 11/11,100 分
77
+ 浅色对比度 → 15 组 ≤ 基线 16;深色 → 12 组 ≤ 基线 13
78
+ ```
79
+
5
80
  ## [0.9.265] - 2026-11-05 —— 确认统一走 Modal,判定日志改 DecisionLine
6
81
 
7
82
  ### ConfirmButton:一次触发,一次确认
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.265-green.svg)](https://github.com/MYCF711/dsh-session-superagent/releases)
6
+ [![Version](https://img.shields.io/badge/version-0.9.267-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 # 459 项单测(带离线开关;裸 node --test 会真去 spawn gh,两分半)
149
+ npm test # 500 项单测(带离线开关;裸 node --test 会真去 spawn gh,两分半)
150
150
  ```
151
151
 
152
152
  ### 工具输出:文本给人和 agent,JSON 给程序
@@ -206,7 +206,7 @@ dsh plugin --profile <profile> add dsh-session-superagent@latest
206
206
 
207
207
 
208
208
  ```bash
209
- npm test # 459 项单测(带离线开关,约 1.6 秒)
209
+ npm test # 500 项单测(带离线开关,约 1.6 秒)
210
210
  node scripts/ui-audit.mjs # 11 项 UI 指标(写死颜色 / 自造 token / 官方结构采用 …)
211
211
  node scripts/preflight.mjs # 41 项门禁(含上面两条,外加 profile 一致性、路由面、包内容)
212
212
  node scripts/render-preview.mjs preview.html # 双主题静态预览,直接浏览器打开