dsh-scroll-piano 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,9 +18,9 @@
18
18
  |---|---|
19
19
  | `13:input-message<uuid>` | 用户消息 → 角色显示「你」 |
20
20
  | `14:assistant-stepN:M` | AI 消息 → 角色显示「AI」 |
21
- | `12:turn-processN` / `["process",…]` / `9:turn-tailN` | 过程 / 工具调用 / 轮次尾,**不预览** |
21
+ | `12:turn-processN` / `["process",…]` / `9:turn-tailN` | 过程 / 工具调用 / 轮次尾,**跳过**(此时显示离鼠标最近的那条消息,不弹占位文案) |
22
22
 
23
- 滑动时取鼠标纵坐标 y 落在哪条子元素的 `getBoundingClientRect()` 里,`innerText` 取正文(去掉末尾 `HH:MM` 时间戳),显示在气泡里。**只认这些 `data-*` 属性**——容器类名(`icaHSq_flowItem`、`ST7X_W_scrollBody`)都带 hash,不碰。
23
+ 滑动时按鼠标纵坐标 y 找**包含 y 的那条**(落在过程/工具块上则取**距离最近的那条**消息),`getBoundingClientRect()` 实时判定、`innerText` 取正文(去掉末尾 `HH:MM` 时间戳),显示在气泡里。**只认这些 `data-*` 属性**——容器类名(`icaHSq_flowItem`、`ST7X_W_scrollBody`)都带 hash,不碰。
24
24
 
25
25
  ## 触发区为什么按坐标而不是抓 DOM
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-scroll-piano",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "滚动钢琴:鼠标滑过 DSH 右侧边缘的滚动条竖条时,按纵向位置发出钢琴音(越高音越高,特雷门琴式)。",
5
5
  "type": "module",
6
6
  "license": "MIT",