@deepseek-ai/dsh-client-ui-chat 0.1.3-alpha.2 → 0.1.5-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 +2 -2
- package/README.md +3 -5
- package/README.zh.md +3 -3
- package/lib/client.js +433 -398
- package/lib/types/client/chat/AssistantMarkdown.d.ts +11 -0
- package/lib/types/client/chat/ChatNodeSeat.d.ts +1 -1
- package/lib/types/client/chat/ReasoningRow.d.ts +3 -1
- package/lib/types/client/chat/{StatsLine.d.ts → StatsPills.d.ts} +3 -3
- package/lib/types/client/chat/SystemPromptRow.d.ts +6 -3
- package/lib/types/client/chat/stat-dialog.d.ts +22 -0
- package/lib/types/client/contract/slots.d.ts +9 -27
- package/lib/types/client/contract/snapshot.d.ts +1 -1
- package/lib/types/client/contract/store.d.ts +1 -9
- package/lib/types/client/conversation-nodes/request-prompt.d.ts +18 -4
- package/lib/types/client/conversation-nodes/tool.d.ts +1 -1
- package/lib/types/client/index.d.ts +2 -2
- package/lib/types/client/locale.d.ts +14 -28
- package/lib/types/client/model/tool-call-tree.d.ts +2 -2
- package/lib/types/client/stores.d.ts +3 -4
- package/package.json +32 -28
- package/lib/types/client/details/DetailsPanel.d.ts +0 -4
- package/lib/types/client/details/tool-node-reader.d.ts +0 -9
package/README.i18n.yaml
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/client/ui-chat/README.md
|
|
5
|
-
README.md:
|
|
6
|
-
README.zh.md:
|
|
5
|
+
README.md: b5a837f927b483a1f72e8282032fce29683bc237
|
|
6
|
+
README.zh.md: f6b8018434251e46875bfd5cc0b0a242cdf2a439
|
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Browser Chat target that renders Session conversation nodes,
|
|
2
|
+
description: "Browser Chat target that renders Session conversation nodes, historical images, actions, localization, and scroll state."
|
|
3
3
|
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
# @deepseek-ai/dsh-client-ui-chat
|
|
@@ -8,7 +8,7 @@ English | [中文](README.zh.md)
|
|
|
8
8
|
|
|
9
9
|
## Summary
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Use this package to render a browser chat from recorded Session conversations, including historical images, localized actions, and restored scroll position. Compact display folds completed-turn process rows while keeping the final answer and independently useful context visible; packed historical Assistant runs remain collapsed. Local transcript and steering submissions appear immediately, remain in their original surface, and disappear atomically when authoritative Session records arrive, while queued submissions stay outside Chat. The package does not assemble or modify model requests.
|
|
12
12
|
|
|
13
13
|
## Table of Contents
|
|
14
14
|
|
|
@@ -25,9 +25,7 @@ The browser Chat target for Conversation assembly. It registers Chat event defin
|
|
|
25
25
|
<a id="system-prompt-row"></a>
|
|
26
26
|
## System prompt row
|
|
27
27
|
|
|
28
|
-
Chat shows a collapsed `System prompt` row for a non-empty initial request, explicit message-series start,
|
|
29
|
-
|
|
30
|
-
-----
|
|
28
|
+
Each nonempty appended `system/message` owns a collapsed prompt row, including a complete prompt at the start of a headerless window; the same-step header does not duplicate it. Chat also shows a collapsed `System prompt` row for a non-empty initial request, explicit message-series start, or `system/message` surface node replacement whose text differs, reading the last nonempty surviving system node in surface order at the `request/header`; a non-initial request whose preceding header is outside the loaded history window also shows one. A resume repeats the row even when its system text is unchanged, including after pagination supplies the preceding header and system node; same-series config-only or tool-only changes, tool steps, and retries create no repetition, and a `system/message` event is never rendered as a transcript message. The row appears before that request's user messages, matching the provider envelope, and expands to the exact model-visible text with its original line breaks. A request whose system node is empty or outside the loaded window creates no row until the page holding the node arrives.
|
|
31
29
|
|
|
32
30
|
<a id="turn-token-usage"></a>
|
|
33
31
|
## Turn token usage
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "渲染 Session
|
|
2
|
+
description: "渲染 Session 对话节点、历史图片、操作、本地化和滚动状态的浏览器 Chat target。"
|
|
3
3
|
kind: "package-reference"
|
|
4
4
|
---
|
|
5
5
|
# @deepseek-ai/dsh-client-ui-chat
|
|
@@ -8,7 +8,7 @@ kind: "package-reference"
|
|
|
8
8
|
|
|
9
9
|
## 概述
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
使用本包可在浏览器中渲染已记录的 Session 对话,包括历史图片、本地化操作和滚动位置恢复。紧凑显示会收起已完成轮次的过程行,同时保持最终答案和独立有用的上下文可见;已打包的历史 Assistant 连续消息保持收起。本地 transcript 与 steering 提交会立即显示并保留在原区域,在权威 Session 记录到达时原子地消失,而 queued 提交始终不进入 Chat。本包不组装或修改模型请求。
|
|
12
12
|
|
|
13
13
|
## 目录
|
|
14
14
|
|
|
@@ -25,7 +25,7 @@ Conversation 组装的浏览器 Chat target。本包注册 Chat event definition
|
|
|
25
25
|
<a id="system-prompt-row"></a>
|
|
26
26
|
## 系统提示词行
|
|
27
27
|
|
|
28
|
-
Chat
|
|
28
|
+
每个非空追加的 `system/message` 都拥有一行折叠提示词,包括无 header 窗口起点的完整提示词;同一步骤的 header 不会重复它。Chat 也会为非空的初始请求、显式消息序列起点、文本发生变化的 `system/message` surface 节点替换(文本读取自 `request/header` 处 surface 顺序中最后一个非空存活系统节点),或前序 header 尚未进入已加载历史窗口的非初始请求显示一行默认折叠的`系统提示词`。即使系统文本未变,resume 也会重复该行,包括分页补齐前序 header 和系统节点后;同一序列内仅配置或仅工具变化、工具步骤与重试不会重复,且 `system/message` 事件绝不会渲染为对话消息。该行位于请求的用户消息之前,与提供方 envelope 顺序一致;展开后显示保留原始换行的精确模型可见文本。系统节点为空或位于已加载窗口之外的请求不创建该行,直到包含该节点的分页到达。
|
|
29
29
|
|
|
30
30
|
-----
|
|
31
31
|
|