@deepseek-ai/dsh-client-ui-chat 0.2.0-rc.2 → 0.2.1-alpha.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.
- package/README.i18n.yaml +6 -6
- package/README.md +3 -3
- package/README.zh.md +3 -3
- package/lib/client.js +960 -204
- package/lib/types/client/chat/StatsPills.d.ts +11 -4
- package/lib/types/client/chat/stat-dialog.d.ts +1 -3
- package/lib/types/client/contract/snapshot.d.ts +2 -2
- package/lib/types/client/conversation-nodes/process-activity.d.ts +0 -1
- package/lib/types/client/conversation-nodes/tool.d.ts +2 -1
- package/lib/types/client/index.d.ts +1 -1
- package/package.json +40 -40
- package/lib/types/client/conversation-nodes/partial.d.ts +0 -34
package/README.i18n.yaml
CHANGED
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
en: 2157fcd6b0d100b5
|
|
25
25
|
zh: 9e865ac3953ebe30
|
|
26
26
|
/deepseek-ai-dsh-client-ui-chat/turn-token-usage:
|
|
27
|
-
en:
|
|
28
|
-
zh:
|
|
27
|
+
en: 14343dd14e493f4b
|
|
28
|
+
zh: 7cc7a25d05ea798f
|
|
29
29
|
/deepseek-ai-dsh-client-ui-chat/completed-turn-footer:
|
|
30
30
|
en: b4cd36e7ab91281e
|
|
31
31
|
zh: 8ccf412b9dde61d5
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
en: 0ca3e8c4eab1ca78
|
|
34
34
|
zh: 1a1c71bab151eb7d
|
|
35
35
|
/deepseek-ai-dsh-client-ui-chat/grouped-rendering:
|
|
36
|
-
en:
|
|
37
|
-
zh:
|
|
36
|
+
en: bb4661cd2b435e2b
|
|
37
|
+
zh: bde68d03839f7da8
|
|
38
38
|
/deepseek-ai-dsh-client-ui-chat/scroll-ownership:
|
|
39
39
|
en: 69b021c5a5d8b5a7
|
|
40
40
|
zh: 091ae7986c7a8a20
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
en: 811787a5d2feaa90
|
|
49
49
|
zh: 3f1697bbc1fc7691
|
|
50
50
|
/deepseek-ai-dsh-client-ui-chat/known-limitations-and-deferred-work/dev-note:
|
|
51
|
-
en:
|
|
52
|
-
zh:
|
|
51
|
+
en: e67f633dc6fe7773
|
|
52
|
+
zh: e88aeb617ffb74ea
|
package/README.md
CHANGED
|
@@ -60,6 +60,8 @@ A completed Turn shows an expandable usage row only when the loaded window inclu
|
|
|
60
60
|
|
|
61
61
|
Settings → General → Performance & usage appears after Send behavior while busy and before Session Log upload, and stores `ui-chat.performanceUsage` as `detailed` (default) or `compact`. Compact shows only available output speed and cache-hit percentage beneath the composer, without interactive statistic dialogs or per-Turn usage. Detailed exposes session statistics and per-Turn token usage. Neither mode shows elapsed time in the completed-turn footer. The preference changes presentation only; accounting and Session events remain intact.
|
|
62
62
|
|
|
63
|
+
The composer statistics are two `conversation.composer.dock` list entries: `activity` (order 0, turn and step counts and output speed, with LLM time, tool time, and TTFT) and `usage` (order 1, token total and cache hit). Another plugin replaces one pill by registering the same id and the same `order`; the dock orders rows by `order`, while a lower `priority` picks the replacement: a dynamic plugin receives one automatically, and a statically composed plugin passes it explicitly. A new id adds a pill. Each pill carries its id in `data-composer-stat`. An open pill dialog closes on Escape or on a pointerdown or click outside it, so activating another pill by pointer or keyboard swaps dialogs instead of stacking them.
|
|
64
|
+
|
|
63
65
|
On non-loopback browsers, the preference remains process-local because the settings scope cannot persist writes. Explicit selections update every consumer immediately; accepted Host settings reconcile the live value on loopback browsers.
|
|
64
66
|
|
|
65
67
|
Preference menus restore focus to their trigger without scrolling before publishing a new selection.
|
|
@@ -91,7 +93,7 @@ Chat registers its process Group Definition through `uiConversation.groups`. Rea
|
|
|
91
93
|
|
|
92
94
|
`groupPart` selects reasoning or response in the Assistant renderer without copying Node payloads. A Tool node owns its preparing, dispatched, and result stages under one callId. Each part has a distinct DOM anchor for reading-position restoration; Turn navigation addresses the original Node key and lands on its first visible part. Group sources, member parents, and keys survive display-mode changes and newly loaded prefixes that extend an intact group. The source Node Store remains the only Node-data owner, and a replaced Builder rebinds keyed subscriptions without remounting seats. Mode changes retain size observers and reuse the Turn-state selector.
|
|
93
95
|
|
|
94
|
-
Live tool deltas share reasoning's frame-batched publication; durable calls and results publish immediately. Repeated
|
|
96
|
+
Live tool deltas share reasoning's frame-batched publication; durable calls and results publish immediately. Repeated deltas retain the Tool node when observed argument answers, the anchor, location, and visibility are unchanged. The Definition supplies the same lazy argument reader to tool rows and group detail, without tool-specific registration.
|
|
95
97
|
|
|
96
98
|
The process group uses a stable `div` layout box, a scroll body, and an uncapped content box that reports growth inside the body. Business styles must adapt spacing within and across groups, including hidden or empty members and the answer-spacing exception. CSS variables do not belong in the Group Definition.
|
|
97
99
|
|
|
@@ -180,5 +182,3 @@ None; Chat presentation does not assemble or mutate provider requests.
|
|
|
180
182
|
None.
|
|
181
183
|
|
|
182
184
|
</details>
|
|
183
|
-
|
|
184
|
-
**Runtime invariant:** No companion is published. Conversation and Slot registration enforce Chat target consistency.
|
package/README.zh.md
CHANGED
|
@@ -60,6 +60,8 @@ Assistant 尝试结束且没有可见消息时,Chat 隐藏已发布的 Node,
|
|
|
60
60
|
|
|
61
61
|
设置 → 通用设置 → 性能与用量位于繁忙时的发送行为之后、Session Log 上传之前,将 `ui-chat.performanceUsage` 保存为 `detailed`(默认)或 `compact`。简洁模式仅在输入框下方显示可用的输出速度和缓存命中率,不显示统计交互卡片或每轮用量。详细模式提供会话统计和每轮 token 用量。两种模式的已完成轮次页脚均不显示耗时。该偏好仅影响展示,记账和 Session 事件保持完整。
|
|
62
62
|
|
|
63
|
+
输入框统计信息由两个 `conversation.composer.dock` 列表条目组成:`activity`(order 0,轮次数、步骤数与输出速度,以及 LLM 耗时、工具耗时与 TTFT)和 `usage`(order 1,token 总量与缓存命中)。其他插件以相同的 id 和相同的 `order` 注册即可替换某个胶囊;dock 按 `order` 排列各行,更低的 `priority` 决定由替换者渲染:动态插件会自动获得,静态组合的插件需显式传入。以新 id 注册则新增胶囊。每个胶囊在 `data-composer-stat` 中携带其 id。按下 Escape,或在已打开的对话框之外发生 pointerdown 或点击时,该对话框会关闭,因此用指针或键盘激活另一个胶囊会切换对话框,而不会叠加两个。
|
|
64
|
+
|
|
63
65
|
在非回环地址浏览器中,设置作用域无法持久化写入,因此该偏好仅在当前进程内生效。明确选择会立即更新所有使用方;回环地址浏览器收到 Host 已接受的设置后会同步当前值。
|
|
64
66
|
|
|
65
67
|
偏好菜单在发布新选择之前,先将焦点还给触发按钮,且不引起滚动。
|
|
@@ -91,7 +93,7 @@ Chat 通过 `uiConversation.groups` 注册过程 Group Definition。React 通过
|
|
|
91
93
|
|
|
92
94
|
`groupPart` 在 Assistant 渲染器中选择推理或回复,不复制 Node 载荷。同一个 callId 的准备、派发与结果阶段由 Tool 节点自己拥有。每个部分有独立的 DOM 锚点用于恢复阅读位置;轮次导航使用原 Node key,落到它的第一个可见部分。展示模式切换以及为完整旧组补入更早成员时,保留组来源、成员父级及 key。原 Node Store 仍是唯一节点数据所有者,替换 Builder 时重新绑定按键订阅,不重挂载容器。模式变化保留尺寸观察器,并复用整轮状态选择器。
|
|
93
95
|
|
|
94
|
-
实时工具 delta
|
|
96
|
+
实时工具 delta 与推理共用按帧合并的发布节奏;持久调用和结果立即发布。当已读取参数的答案、锚点、位置及可见性均未变化时,重复 delta 保持 Tool 节点不变。Definition 向工具行和分组详情提供同一个懒计算参数读器,无需按工具注册。
|
|
95
97
|
|
|
96
98
|
过程组使用稳定的 `div` 布局盒子、滚动正文及不限高的内容盒子,后者报告正文内部的内容增长。业务样式必须适配组内及组边界间距,处理隐藏或空成员以及回答前的间距特例。CSS 变量不属于 Group Definition。
|
|
97
99
|
|
|
@@ -180,5 +182,3 @@ Chat 会在历史前插与 renderer 重新挂载时恢复语义锚点,并且
|
|
|
180
182
|
无。
|
|
181
183
|
|
|
182
184
|
</details>
|
|
183
|
-
|
|
184
|
-
**运行时不变式:** 不发布伴生入口。Conversation 与 slot 注册已经强制 Chat target 一致。
|