dsh-better-display 0.3.6 → 0.3.7
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 +6 -0
- package/docs/official-rendering-bridge.md +4 -0
- package/lib/client.js +348 -294
- package/lib/client.js.map +1 -1
- package/lib/dsh-better-display.js +7 -160
- package/lib/types/client/OfficialContent.d.ts.map +1 -1
- package/lib/types/client/OfficialContent.js +2 -1
- package/lib/types/client/OfficialContent.js.map +1 -1
- package/lib/types/client/Reader.d.ts.map +1 -1
- package/lib/types/client/Reader.js +54 -9
- package/lib/types/client/Reader.js.map +1 -1
- package/lib/types/client/chat-seat.d.ts +3 -0
- package/lib/types/client/chat-seat.d.ts.map +1 -0
- package/lib/types/client/chat-seat.js +9 -0
- package/lib/types/client/chat-seat.js.map +1 -0
- package/package.json +1 -1
- package/src/client/OfficialContent.tsx +2 -1
- package/src/client/Reader.tsx +53 -12
- package/src/client/chat-seat.ts +10 -0
- package/tests/chat-flow-hook.test.ts +13 -0
- package/tsdown.config.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- Restore the official chat seat attributes on Better Display user and steering rows so rewind actions can find durable messages.
|
|
6
|
+
- Render pending inbox steering rows and deduplicate them against observed local submissions.
|
|
7
|
+
|
|
3
8
|
## 0.3.6 — 2026-10-05
|
|
4
9
|
|
|
5
10
|
- Keep a running tool's elapsed clock counting from the call's stamped start instead of the moment the row mounted. Switching sessions and back — or even reloading the page mid-run — now continues the count rather than restarting it at zero; draft-only calls remember their first-seen time per call id until they settle.
|
|
@@ -223,6 +228,7 @@
|
|
|
223
228
|
step-and-hold: it used to advance two lines every ~1.3 seconds no matter how
|
|
224
229
|
fast the text arrived, which is what made the pane look like it was lagging
|
|
225
230
|
behind a fast model.
|
|
231
|
+
|
|
226
232
|
### Host DOM hooks
|
|
227
233
|
|
|
228
234
|
- Keep ChatView's `data-chat-flow=""` hook on the Reader column so skins that hide `[data-composer-seat]` when the scrollport has no chat-flow (maid-atelier, phoebe-atelier, and others) still show the composer in reading view.
|
|
@@ -58,6 +58,10 @@ npm run test:auto-fold
|
|
|
58
58
|
|
|
59
59
|
`build` 先检查兼容基线。Harness 版本、敏感接口、尚未收敛的官方实现或相关注册清单改变时,构建明确要求审查。审查差异并通过功能与视觉测试后,才可运行 `check-harness-compat.mjs --record` 记录新基线。记录本身不构成兼容证明。
|
|
60
60
|
|
|
61
|
+
## rewind 座位兼容
|
|
62
|
+
|
|
63
|
+
Reader 的 user 与 steering 行会同时发布 `data-chat-anchor-key`、`data-chat-flow-key`、`data-chat-node-key` 和 `data-chat-flow-kind`,这些属性是 rewind 用来定位 durable 回退操作的官方 chat 座位契约。排队中的 inbox steering 也会渲染为 `data-pending-steering` 行,并按非文本内容块数量发布附件计数;本地 pending submission 与已落 durable 节点通过 source.rpcId 去重。纯图片消息仍不保证显示 durable 回退箭头,这是 rewind 文本匹配契约的边界。
|
|
64
|
+
|
|
61
65
|
## 后续仍需完成
|
|
62
66
|
|
|
63
67
|
Markdown 定制仍保留逐字动效和 MCP 展示钩子,官方公共组件还没有对应的注入接口。上下文行、部分过程展示和工具摘要也仍有自有实现。本分支先建立官方能力的完整运行路径,后续按视觉基线逐模块收敛这些副本,并拆分 Reader 的阅读策略与动画执行。不能据此承诺所有未来版本零维护,也不承诺任意第三方插件兼容。
|