@deepseek-ai/dsh-client-ui-chat 0.2.2-alpha.2 → 0.2.2-rc.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 +10 -10
- package/README.md +8 -2
- package/README.zh.md +8 -2
- package/lib/client.js +147 -31
- package/lib/types/client/chat/AssistantNodeView.d.ts +10 -3
- package/lib/types/client/chat/ChatFlow.d.ts +1 -1
- package/lib/types/client/chat/ChatNodeSeat.d.ts +1 -1
- package/lib/types/client/chat/ChatView.d.ts +1 -1
- package/lib/types/client/chat/ReasoningContent.d.ts +1 -1
- package/lib/types/client/chat/ReasoningRow.d.ts +3 -3
- package/lib/types/client/contract/slots.d.ts +21 -12
- package/lib/types/client/conversation-nodes/assistant.d.ts +2 -0
- package/lib/types/client/conversation-nodes/request-prompt.d.ts +2 -0
- package/lib/types/client/file-path.d.ts +11 -0
- package/lib/types/client/reasoning-text.d.ts +8 -0
- package/package.json +45 -43
package/README.i18n.yaml
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
en: 41cd21266011d571
|
|
16
16
|
zh: 3172d1a2acbb27b7
|
|
17
17
|
/deepseek-ai-dsh-client-ui-chat/reference-previews:
|
|
18
|
-
en:
|
|
19
|
-
zh:
|
|
18
|
+
en: 9386791a9e5efa00
|
|
19
|
+
zh: 7cb9f3bbc42319d6
|
|
20
20
|
/deepseek-ai-dsh-client-ui-chat/hidden-chat-rows:
|
|
21
|
-
en:
|
|
22
|
-
zh:
|
|
21
|
+
en: b0c4e6711d69d2f8
|
|
22
|
+
zh: 09add0ea1a243922
|
|
23
23
|
/deepseek-ai-dsh-client-ui-chat/command-and-failure-rows:
|
|
24
|
-
en:
|
|
25
|
-
zh:
|
|
24
|
+
en: be90c24392fb021b
|
|
25
|
+
zh: 992b8745b385f9ab
|
|
26
26
|
/deepseek-ai-dsh-client-ui-chat/turn-token-usage:
|
|
27
27
|
en: cfdfe3d99d3f4e09
|
|
28
28
|
zh: 9330bad3d3f7a689
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
en: b0d806604bc17006
|
|
34
34
|
zh: 18dabe5dc2d0d419
|
|
35
35
|
/deepseek-ai-dsh-client-ui-chat/grouped-rendering:
|
|
36
|
-
en:
|
|
37
|
-
zh:
|
|
36
|
+
en: b1630d93a52f483e
|
|
37
|
+
zh: 59cb81ca50ecffc4
|
|
38
38
|
/deepseek-ai-dsh-client-ui-chat/scroll-ownership:
|
|
39
|
-
en:
|
|
40
|
-
zh:
|
|
39
|
+
en: dd4e69828096c3a0
|
|
40
|
+
zh: 2a9bc370f44efcd7
|
|
41
41
|
/deepseek-ai-dsh-client-ui-chat/model-experience:
|
|
42
42
|
en: c17b4dd43a61c569
|
|
43
43
|
zh: f7414309810c3a08
|
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Image drag actions arrive through the image entry’s inject face from [ui-file-
|
|
|
37
37
|
|
|
38
38
|
Sent generic-file attachments retain the draft's [file-card radius](../../../docs/ui-radius.md#radius-scale).
|
|
39
39
|
|
|
40
|
-
`ChatView` supplies file and HTTP(S) navigation through the existing `MarkdownDelegateProvider` around its node list, passing `requestOpenFile`, `openExternalLink`, and `fileImages` directly. Its file opener retains Chat's failure feedback and retry handling. Assistant Markdown file links open in the right Sidebar after the message settles, including references to unmodified files. Relative paths resolve in the viewed Session's workspace; absolute paths retain the same Session's filesystem access.
|
|
40
|
+
`ChatView` supplies file and HTTP(S) navigation through the existing `MarkdownDelegateProvider` around its node list, passing `requestOpenFile`, `openExternalLink`, and `fileImages` directly. Its file opener retains Chat's failure feedback and retry handling. Assistant Markdown file links open in the right Sidebar after the message settles, including references to unmodified files. Relative paths resolve in the viewed Session's workspace; absolute paths retain the same Session's filesystem access. [Supported Markdown line references](../ui-primitives/README.md#rendering-agent-output) navigate to the first specified line and reuse an existing file tab. Missing files show the preview's error state.
|
|
41
41
|
|
|
42
42
|
Native message images use separate user and output positions. The `conversation.chat.user.content` Factory declares `conversation.chat.user.images`, which `UserContent` renders; the Assistant node registration declares `conversation.chat.message.images`, which `AssistantMarkdown` renders. Both receive image sources, the authorized `loadImage`, and layout options through explicit props. Their official `MessageImages` entries call the shared root-scoped `conversation.images.content` Factory. Each position can be replaced independently without duplicating the gallery implementation.
|
|
43
43
|
|
|
@@ -58,11 +58,15 @@ Chat omits system-prompt, ordinary Context injection, and `permission` command r
|
|
|
58
58
|
|
|
59
59
|
When an Assistant attempt retires without a visible message, Chat hides its already-published Node instead of removing its key. A retry in the same Step reuses that key when visible content returns. This also applies when the loaded window lacks the Step start.
|
|
60
60
|
|
|
61
|
+
Text and reasoning contribute to Assistant visibility only when they contain a non-whitespace character. Streaming appends reuse each block's visibility; block replacement and finalized messages recalculate it while preserving the original text.
|
|
62
|
+
|
|
61
63
|
<a id="command-and-failure-rows"></a>
|
|
62
64
|
## Command and failure rows
|
|
63
65
|
|
|
64
66
|
Generic command rows retain the ordinary command glyph in every lifecycle state; failure remains explicit through the row state and summary. Every terminal Turn failure renders its inline red-dot row; a quota failure's row states the neutral `message.failure.quota` copy instead of the provider message. The transient notice for a newly appended `QUOTA` or `ACCOUNT_QUOTA` comes from this package's frame-wide entry in `shell.overlay`, which outlives the Chat panel: it offers the one live notice to the `shell.quota-notice` chain and falls back to its own warning Toast, while an entry that claims the code replaces that fallback. Only Sessions this Client has bound and materialized publish; quota failures in Sessions it never opened do not. A newer notice replaces the current one unless a claiming entry retains it with `keepOpen()`: that call returns a release the caller owns and must run on unmount, any live hold keeps the claiming entry mounted and drops later notices, and releasing resumes later notices without replaying the dropped ones. The fallback Toast has no deferral of its own: while the Desktop account's opaque native Platform page covers the document, it still runs underneath and its display timer may elapse unseen, dismissing the notice itself, so only the persistent failure row remains. A release drops only its own hold, so one that runs after a dismissal or a newer hold leaves that newer hold intact. Dismissal and sign-out clear every hold, and dropped notices are not queued while their persistent failure rows still render. History replacement and pagination never publish a notice. Intermediate retries do not create a terminal row; output-token limits use the amber warning dot. A Turn that restart recovery closed as `interrupted` renders a localized stopped row stating that the DSH process exited mid-Turn, without a code chip, and its process summary reads Stopped.
|
|
65
67
|
|
|
68
|
+
Chat adapts Markdown targets at `MarkdownDelegateProvider.getTriggerProps`. The assistant-node Slot obtains `useContextMenu` directly and passes a file-path adapter to the optional mention service; intermediate flow and node owners carry no menu callbacks. Paths resolve against the originating Session’s current working directory when the gesture begins. Menus retain that captured path and line even if focus changes. Undeclared plugin links keep native behavior.
|
|
69
|
+
|
|
66
70
|
-----
|
|
67
71
|
|
|
68
72
|
<a id="turn-token-usage"></a>
|
|
@@ -123,7 +127,7 @@ Scroll-edge fades initialize when `ResizeObserver` reports the open group's layo
|
|
|
123
127
|
|
|
124
128
|
Each group owns local `useDisclosure` state that survives mode changes while its component stays mounted.
|
|
125
129
|
|
|
126
|
-
The session-scoped `conversation.chat.reasoning.body` single Slot offers the original
|
|
130
|
+
The session-scoped `conversation.chat.reasoning.body` single Slot offers the original `rawText`, display-ready `text`, and streaming state only when its body is expanded. Its official entry registers at priority 100 and calls the `conversation.chat.reasoning.content` Factory. A replacement uses a lower priority number and may call that same Factory with original or derived text. The root-scoped Factory requires no Session and fixes compact typography. Its optional `labels` accepts complete `MarkdownLabels` unchanged; omission uses Chat's localized defaults. The host supplies no inline fallback or plugin action state. Display extensions must preserve access to the untranslated text and own their controls inside their Body wrapper. Extensions do not replace the reasoning preview or its disclosure policy. The [reasoning display rules](src/client/conversation-nodes/README.md#display-modes) define which blocks produce rows.
|
|
127
131
|
|
|
128
132
|
The Chat-node slot injects a reset-bound `useDisclosure` Hook for reasoning and tools. Intermediate renderers forward it without subscribing; each invocation owns independent open state. Source callbacks retain their receiver and stable identity. When an enclosing Turn actually hides a process member, its seat resets those disclosures without replacing component keys or changing the Hook reference. Display-mode changes preserve their open state.
|
|
129
133
|
|
|
@@ -184,6 +188,8 @@ The Chat view detects selection and context-menu gestures on business nodes mark
|
|
|
184
188
|
|
|
185
189
|
`ctx.uiConversation.interactions` dispatches eligible gestures to plugin registrations and supplies their component to the Chat view. The action surface is absolutely positioned inside the existing Chat column, above the composer seat and its dock. Its wrapper preserves the component's outer stroke and shadow; components own internal scrolling. Scrolling the selection outside that visible region temporarily hides the surface; returning restores it. Chat owns viewport visibility, placement, outside pointer presses, Escape, new selections, source invalidation, and disposal; explicit dismissal preserves browser selection and layout changes do not reopen the surface. [Message quotes](../../session/message-quotes/README.md) owns quotation eligibility and insertion.
|
|
186
190
|
|
|
191
|
+
Markdown files, links, images, reference chips, and tool-file controls forward explicit right-click targets to [ui-context-menu](../ui-context-menu/README.md). File targets retain their working directory and line; ordinary link clicks retain the configured opening preference.
|
|
192
|
+
|
|
187
193
|
<a id="model-experience"></a>
|
|
188
194
|
## Model Experience
|
|
189
195
|
|
package/README.zh.md
CHANGED
|
@@ -37,7 +37,7 @@ kind: "package-reference"
|
|
|
37
37
|
|
|
38
38
|
已发送的普通文件附件保留草稿中的[文件卡片圆角](../../../docs/ui-radius.zh.md#radius-scale)。
|
|
39
39
|
|
|
40
|
-
`ChatView` 通过节点列表外围既有的 `MarkdownDelegateProvider` 提供文件及 HTTP(S) 导航,直接传入 `requestOpenFile`、`openExternalLink` 和 `fileImages`。文件打开动作保留 Chat 的失败反馈与重试处理。Assistant Markdown 文件链接在消息落定后可于右侧栏打开,包括未修改文件的引用。相对路径基于当前查看的 Session 工作区解析;绝对路径仍使用同一 Session
|
|
40
|
+
`ChatView` 通过节点列表外围既有的 `MarkdownDelegateProvider` 提供文件及 HTTP(S) 导航,直接传入 `requestOpenFile`、`openExternalLink` 和 `fileImages`。文件打开动作保留 Chat 的失败反馈与重试处理。Assistant Markdown 文件链接在消息落定后可于右侧栏打开,包括未修改文件的引用。相对路径基于当前查看的 Session 工作区解析;绝对路径仍使用同一 Session 的文件系统访问。[支持的 Markdown 行号引用](../ui-primitives/README.zh.md#rendering-agent-output)定位到指定起始行,并复用现有文件标签。文件缺失时显示预览错误状态。
|
|
41
41
|
|
|
42
42
|
原生消息图片使用独立的用户与输出位置。`conversation.chat.user.content` Factory 声明 `conversation.chat.user.images`,由 `UserContent` 渲染;Assistant 节点注册声明 `conversation.chat.message.images`,由 `AssistantMarkdown` 渲染。两者通过显式 props 接收图片来源、授权 `loadImage` 和布局参数。官方 `MessageImages` 条目调用共享的 root 作用域 `conversation.images.content` Factory。每个位置均可独立替换,无需复制画廊实现。
|
|
43
43
|
|
|
@@ -58,11 +58,15 @@ Chat 在所有工作步骤展示模式下都不显示系统提示词行、普通
|
|
|
58
58
|
|
|
59
59
|
Assistant 尝试结束且没有可见消息时,Chat 隐藏已发布的 Node,不移除其 key。同一 Step 的重试再次产生可见内容时,复用该 key。已加载窗口缺少 Step 起点时也遵循此规则。
|
|
60
60
|
|
|
61
|
+
只有包含非空白字符的文本和推理块才计入 Assistant 的可见内容。流式追加复用每个块的可见状态;块替换和最终消息重新计算可见性,同时保留原始文本。
|
|
62
|
+
|
|
61
63
|
<a id="command-and-failure-rows"></a>
|
|
62
64
|
## 指令与失败行
|
|
63
65
|
|
|
64
66
|
通用指令行在所有生命周期状态中都保留普通指令图标;失败仍通过行状态与摘要表达。每个终止轮次都渲染自己的红点行;欠费失败的行使用中立的 `message.failure.quota` 文案,而不是提供方消息。新追加的 `QUOTA` 或 `ACCOUNT_QUOTA` 产生的瞬时提示来自本包注册在 `shell.overlay` 的全局条目,它不随 Chat 面板消失:该条目把唯一一条实时提示交给 `shell.quota-notice` 链,并在无人接管时回退到自己的警告 Toast,接管该错误码的条目会替换该回退。只有本 Client 已绑定并已物化的 Session 会发布提示;它从未打开的 Session 中的欠费不会发布。更新的提示会替换当前提示,除非认领条目用 `keepOpen()` 保持住当前提示:该调用返回一个由调用方持有、必须在卸载时调用的释放函数,只要存在保持,认领条目就继续挂载,后续提示被丢弃,释放后恢复后续提示但不重放已丢弃的提示。回退 Toast 自身没有延后策略:当 Desktop 账号的不透明原生 Platform 页盖住本页时,它仍会在下方运行,其显示计时器可能在不可见时走完并自行撤下提示,因此只留下持久化失败行。释放只移除自己的保持,因此它在关闭或更新的保持之后执行时不会影响更新的保持。关闭与退出登录会清空所有保持;被丢弃的提示不排队,其对应的持久化失败行仍会渲染。历史替换和分页不会发布提示。中间重试不会创建终止行;输出 token 上限使用琥珀色警告点。重启恢复以 `interrupted` 结束的轮次会渲染本地化的停止行,说明 DSH 进程在轮次中途退出,不显示代码标签,其过程摘要显示“已停止”。
|
|
65
67
|
|
|
68
|
+
Chat 在 `MarkdownDelegateProvider.getTriggerProps` 接入处适配 Markdown 目标。助手节点 Slot 直接获取 `useContextMenu`,向可选的文件引用服务传入路径适配函数;消息流和节点中间层不再携带菜单回调。手势发生时按原始 Session 的当前工作目录解析路径,菜单保留捕获的路径和行号,不受焦点变化影响。未声明的插件链接保留原生行为。
|
|
69
|
+
|
|
66
70
|
-----
|
|
67
71
|
|
|
68
72
|
<a id="turn-token-usage"></a>
|
|
@@ -123,7 +127,7 @@ Chat Builder 按节点发布 `bottomSource`:节点可见且属于已加载的
|
|
|
123
127
|
|
|
124
128
|
每个组拥有本地 `useDisclosure` 状态,组件保持挂载时,模式切换保留该状态。
|
|
125
129
|
|
|
126
|
-
Session 作用域的 `conversation.chat.reasoning.body` single Slot
|
|
130
|
+
Session 作用域的 `conversation.chat.reasoning.body` single Slot 仅在思考正文展开时提供原始文本 `rawText`、显示文本 `text` 和流式状态。官方条目以优先级 100 注册,并调用 `conversation.chat.reasoning.content` Factory。替换项使用更小的优先级数值,可向同一个 Factory 传入原文或派生显示文本。root 作用域的 Factory 不要求 Session,并固定使用紧凑排版。其可选 `labels` 原样接受完整的 `MarkdownLabels`,省略时使用 Chat 的默认本地化文案。宿主不提供内联 fallback 或插件操作状态。显示扩展必须保留查看未翻译文本的能力,并在自己的 Body 包装内维护控件。扩展不替换思考预览或展开策略。哪些块生成思考行由[思考展示规则](src/client/conversation-nodes/README.zh.md#display-modes)定义。
|
|
127
131
|
|
|
128
132
|
Chat 节点 slot 为推理与工具注入绑定重置来源的 `useDisclosure` 钩子。中间 renderer 只透传、不订阅,每次调用拥有独立展开状态。来源回调保留接收对象及稳定引用。外层轮次实际隐藏过程成员时,所在节点重置这些开合状态,不替换组件 key,也不改变钩子引用。展示模式切换保留展开状态。
|
|
129
133
|
|
|
@@ -184,6 +188,8 @@ Chat view 在标记了 `data-text-interaction-source` 的业务节点上检测
|
|
|
184
188
|
|
|
185
189
|
`ctx.uiConversation.interactions` 将有效手势分发给插件注册项,并把对应组件交给 Chat view。操作展示位置在已有 Chat 列内绝对定位,限制在 composer seat 及其 dock 上方。外层容器保留组件的外描边与阴影,内部滚动由组件负责。选区滚出该可见范围时暂时隐藏操作,滚回后恢复。Chat 负责视口可见性、定位、外部指针按下、Escape、新选区、来源失效与卸载清理;主动关闭保留浏览器选区,布局变化不会重新打开操作。[Message quotes](../../session/message-quotes/README.zh.md) 负责引用的接管条件和插入。
|
|
186
190
|
|
|
191
|
+
Markdown 文件、链接、图片、引用 chip 和工具文件控件将明确的右键目标转发给 [ui-context-menu](../ui-context-menu/README.zh.md)。文件目标保留工作目录和行号;普通链接点击仍遵循配置的打开偏好。
|
|
192
|
+
|
|
187
193
|
<a id="model-experience"></a>
|
|
188
194
|
## 模型体验
|
|
189
195
|
|
package/lib/client.js
CHANGED
|
@@ -171,6 +171,21 @@ window.__ModuleLoader__.load({
|
|
|
171
171
|
}) ?? null;
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
|
+
//#region lib/types/client/file-path.js
|
|
175
|
+
/**
|
|
176
|
+
* Bind path resolution to the originating Session without capturing its current directory.
|
|
177
|
+
* @param ctx - Chat plugin context.
|
|
178
|
+
* @param sessionId - Original Session identity.
|
|
179
|
+
* @returns Resolver using the live working directory, falling back to the workspace root.
|
|
180
|
+
*/
|
|
181
|
+
function sessionFilePath(ctx, sessionId) {
|
|
182
|
+
return (path) => {
|
|
183
|
+
const cwd = ctx.sessions.list.getSnapshot().byId[sessionId]?.cwd;
|
|
184
|
+
const current = ctx.sessions.binding(sessionId)?.session.projections.faceOf("workingDirectory").getSnapshot();
|
|
185
|
+
return resolveWorkspacePath(current ?? cwd, path);
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
//#endregion
|
|
174
189
|
//#region lib/types/client/contract/group-tree.js
|
|
175
190
|
const DEPTH = {
|
|
176
191
|
exchange: 0,
|
|
@@ -3433,7 +3448,41 @@ window.__ModuleLoader__.load({
|
|
|
3433
3448
|
* The chat view slot entry: pure component over the composed props; each
|
|
3434
3449
|
* ordered business Node crosses the keyed renderer seat.
|
|
3435
3450
|
*/
|
|
3436
|
-
function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile, openExternalLink, loadOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt,
|
|
3451
|
+
function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile, openExternalLink, resolveFilePath, useContextMenu, loadOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt, usePresentation, useProjection, useInteractionIds, dispatchInteraction, t, fileDrag }) {
|
|
3452
|
+
const { getTriggerProps } = useContextMenu();
|
|
3453
|
+
const getMarkdownTriggerProps = (0, react.useCallback)((target) => getTriggerProps(() => {
|
|
3454
|
+
switch (target.kind) {
|
|
3455
|
+
case "file": return {
|
|
3456
|
+
kind: "file",
|
|
3457
|
+
value: {
|
|
3458
|
+
sessionId,
|
|
3459
|
+
path: resolveFilePath(target.path),
|
|
3460
|
+
...target.line === void 0 ? {} : { line: target.line }
|
|
3461
|
+
}
|
|
3462
|
+
};
|
|
3463
|
+
case "url": return {
|
|
3464
|
+
kind: "url",
|
|
3465
|
+
value: {
|
|
3466
|
+
sessionId,
|
|
3467
|
+
url: target.url
|
|
3468
|
+
}
|
|
3469
|
+
};
|
|
3470
|
+
case "image": return {
|
|
3471
|
+
kind: "image",
|
|
3472
|
+
value: {
|
|
3473
|
+
sessionId,
|
|
3474
|
+
url: target.url,
|
|
3475
|
+
...target.name === void 0 ? {} : { name: target.name },
|
|
3476
|
+
...target.mediaType === void 0 ? {} : { mediaType: target.mediaType },
|
|
3477
|
+
...target.path === void 0 ? {} : { path: resolveFilePath(target.path) }
|
|
3478
|
+
}
|
|
3479
|
+
};
|
|
3480
|
+
}
|
|
3481
|
+
}), [
|
|
3482
|
+
getTriggerProps,
|
|
3483
|
+
resolveFilePath,
|
|
3484
|
+
sessionId
|
|
3485
|
+
]);
|
|
3437
3486
|
const order = useChat((s) => s.order);
|
|
3438
3487
|
const groupedEntries = useConversation((snapshot) => snapshot.views.grouped("chat")?.entries);
|
|
3439
3488
|
const entries = (0, react.useMemo)(() => groupedEntries ?? order.map((key) => ({
|
|
@@ -3610,6 +3659,7 @@ window.__ModuleLoader__.load({
|
|
|
3610
3659
|
})
|
|
3611
3660
|
}),
|
|
3612
3661
|
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MarkdownDelegateProvider, {
|
|
3662
|
+
getTriggerProps: getMarkdownTriggerProps,
|
|
3613
3663
|
openFile: requestOpenFile,
|
|
3614
3664
|
openExternalLink,
|
|
3615
3665
|
fileImages,
|
|
@@ -3622,8 +3672,7 @@ window.__ModuleLoader__.load({
|
|
|
3622
3672
|
openFile: requestOpenFile,
|
|
3623
3673
|
inspectCall,
|
|
3624
3674
|
forkAt,
|
|
3625
|
-
loadImage
|
|
3626
|
-
fileMentions
|
|
3675
|
+
loadImage
|
|
3627
3676
|
}, { hookContext: flowContext })
|
|
3628
3677
|
}),
|
|
3629
3678
|
(0, react_jsx_runtime.jsx)("div", {
|
|
@@ -4439,7 +4488,7 @@ window.__ModuleLoader__.load({
|
|
|
4439
4488
|
* Policy reads select this seat's own conclusion, so a mode change re-renders
|
|
4440
4489
|
* only seats whose visibility actually changes.
|
|
4441
4490
|
*/
|
|
4442
|
-
const ChatNodeSeat = (0, react.memo)(function ChatNodeSeat({ nodeKey, groupPart, useChatNode, useChatNodeProcess, usePresentation, cwd, openFile, inspectCall, forkAt, loadImage,
|
|
4491
|
+
const ChatNodeSeat = (0, react.memo)(function ChatNodeSeat({ nodeKey, groupPart, useChatNode, useChatNodeProcess, usePresentation, cwd, openFile, inspectCall, forkAt, loadImage, useStore, actions, renderSlot, t, useChatNodeBottom, deferCollapse, useGroupAction }) {
|
|
4443
4492
|
const bottom = useChatNodeBottom(nodeKey);
|
|
4444
4493
|
const node = useChatNode(nodeKey);
|
|
4445
4494
|
const routedNode = node;
|
|
@@ -4512,7 +4561,6 @@ window.__ModuleLoader__.load({
|
|
|
4512
4561
|
inspectCall,
|
|
4513
4562
|
forkAt,
|
|
4514
4563
|
loadImage,
|
|
4515
|
-
fileMentions,
|
|
4516
4564
|
turnProcess
|
|
4517
4565
|
}, [
|
|
4518
4566
|
node,
|
|
@@ -4522,7 +4570,6 @@ window.__ModuleLoader__.load({
|
|
|
4522
4570
|
inspectCall,
|
|
4523
4571
|
forkAt,
|
|
4524
4572
|
loadImage,
|
|
4525
|
-
fileMentions,
|
|
4526
4573
|
turnProcess
|
|
4527
4574
|
]);
|
|
4528
4575
|
if (routedNode === void 0 || owner === null) return null;
|
|
@@ -6393,7 +6440,7 @@ window.__ModuleLoader__.load({
|
|
|
6393
6440
|
return isLocalSubmission(item) && item.placement === "transcript";
|
|
6394
6441
|
}
|
|
6395
6442
|
/** Render the flow without adding a DOM parent or changing keyed row positions. */
|
|
6396
|
-
const ChatFlow = (0, react.memo)(function ChatFlow({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useConnectionState, useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile, inspectCall, forkAt, loadImage
|
|
6443
|
+
const ChatFlow = (0, react.memo)(function ChatFlow({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useConnectionState, useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile, inspectCall, forkAt, loadImage }) {
|
|
6397
6444
|
const nodeStore = useChat((snapshot) => snapshot.nodes);
|
|
6398
6445
|
const running = useSession((snapshot) => snapshot.running);
|
|
6399
6446
|
const disconnected = useConnectionState((state) => state === "disconnected" || state === "connecting");
|
|
@@ -6423,8 +6470,7 @@ window.__ModuleLoader__.load({
|
|
|
6423
6470
|
openFile,
|
|
6424
6471
|
inspectCall,
|
|
6425
6472
|
forkAt,
|
|
6426
|
-
loadImage
|
|
6427
|
-
fileMentions
|
|
6473
|
+
loadImage
|
|
6428
6474
|
};
|
|
6429
6475
|
const rows = entries.map((entry) => {
|
|
6430
6476
|
switch (entry.kind) {
|
|
@@ -8070,6 +8116,29 @@ window.__ModuleLoader__.load({
|
|
|
8070
8116
|
"clock.ymd": "{y}-{m}-{d}"
|
|
8071
8117
|
};
|
|
8072
8118
|
//#endregion
|
|
8119
|
+
//#region lib/types/client/reasoning-text.js
|
|
8120
|
+
/** Display text preparation for model reasoning. */
|
|
8121
|
+
/**
|
|
8122
|
+
* Prepare complete or streaming reasoning for display.
|
|
8123
|
+
* @param text - original complete or streaming reasoning.
|
|
8124
|
+
* @returns display text, or empty text when no displayable content is available.
|
|
8125
|
+
*/
|
|
8126
|
+
function reasoningText(text) {
|
|
8127
|
+
if (text[0] !== "<") return text;
|
|
8128
|
+
/* v8 ignore start -- Custom rendering behavior is outside unit coverage. */
|
|
8129
|
+
const opening = "<signature>";
|
|
8130
|
+
if (opening.startsWith(text)) return "";
|
|
8131
|
+
if (!text.startsWith(opening)) return text;
|
|
8132
|
+
const end = text.indexOf("</signature>", 11);
|
|
8133
|
+
if (end === -1) return "";
|
|
8134
|
+
let start = end + 12;
|
|
8135
|
+
while (start < text.length) if (text[start] === "\n") start++;
|
|
8136
|
+
else if (text[start] === "\r" && text[start + 1] === "\n") start += 2;
|
|
8137
|
+
else break;
|
|
8138
|
+
return text.slice(start);
|
|
8139
|
+
/* v8 ignore stop */
|
|
8140
|
+
}
|
|
8141
|
+
//#endregion
|
|
8073
8142
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/ReasoningRow.module.css.mjs
|
|
8074
8143
|
const css$9 = ".lcKema_root{flex-direction:column;display:flex}.lcKema_root:not([data-expanded]){contain:size layout;height:calc(24px + var(--dsh-content-font-delta,0px))}.lcKema_row{overflow:hidden}.lcKema_root[data-expanded] [data-open] [data-disclosure-header]{z-index:1;background:var(--dsw-alias-bg-base);position:sticky;top:0}.lcKema_leading{flex-shrink:0}.lcKema_title{font-weight:400}.lcKema_separator{background:var(--dsw-alias-label-caption);border-radius:1px;flex:none;width:2px;height:2px;margin:0 8px}.lcKema_summary{min-width:0;font-size:var(--dsh-content-font-size-secondary,13px);line-height:calc(20px + var(--dsh-content-font-delta-secondary,0px));white-space:nowrap;flex:auto;overflow:hidden}.lcKema_summaryText{text-overflow:ellipsis;display:block;overflow:hidden}.lcKema_summary[data-streaming]{mask-image:linear-gradient(90deg,#000 calc(100% - 48px),#0000)}.lcKema_summary[data-streaming] .lcKema_summaryText{text-overflow:clip;overflow:visible}.lcKema_root:not([data-preview]) .lcKema_separator,.lcKema_root:not([data-preview]) .lcKema_summary{display:none}.lcKema_thinkBody{padding:4px 0 4px calc(22px + var(--dsh-content-font-delta,0px));min-width:0}";
|
|
8075
8144
|
const tagId$9 = "@deepseek-ai/dsh-client-ui-chat/ReasoningRow.module.css";
|
|
@@ -8119,7 +8188,7 @@ window.__ModuleLoader__.load({
|
|
|
8119
8188
|
* collapsed summary omits double-asterisk markers; expanded content renders
|
|
8120
8189
|
* the complete Markdown with secondary typography. A streaming preview advances
|
|
8121
8190
|
* when a paragraph's first line completes. Mode changes toggle CSS display without unmounting
|
|
8122
|
-
* collapsed summaries.
|
|
8191
|
+
* collapsed summaries. The Body Slot receives both original and display-ready text.
|
|
8123
8192
|
* @param props.text - complete or streaming reasoning text.
|
|
8124
8193
|
* @param props.running - whether this block is the streaming tail.
|
|
8125
8194
|
* @param props.usePresentation - live display-policy selector for this reasoning row.
|
|
@@ -8128,8 +8197,15 @@ window.__ModuleLoader__.load({
|
|
|
8128
8197
|
* @param props.t - conversation locale seat for the disclosure and running status.
|
|
8129
8198
|
* @returns the reasoning disclosure.
|
|
8130
8199
|
*/
|
|
8131
|
-
const ReasoningRow = (0, react.memo)(function ReasoningRow({ text, running, textInteractionSource = false, usePresentation, useDisclosure, renderSlot, t }) {
|
|
8200
|
+
const ReasoningRow = (0, react.memo)(function ReasoningRow({ text: rawText, running, textInteractionSource = false, usePresentation, useDisclosure, renderSlot, t }) {
|
|
8132
8201
|
const { expanded, toggle } = useDisclosure();
|
|
8202
|
+
const { text, hidden } = (0, react.useMemo)(() => {
|
|
8203
|
+
const text = reasoningText(rawText);
|
|
8204
|
+
return {
|
|
8205
|
+
text,
|
|
8206
|
+
hidden: text !== rawText && text.trim() === ""
|
|
8207
|
+
};
|
|
8208
|
+
}, [rawText]);
|
|
8133
8209
|
const summaryText = running ? latestCompletedParagraphFirstLine(text) : firstLine(text);
|
|
8134
8210
|
const summary = (0, react.useMemo)(() => summaryText.replaceAll("**", ""), [summaryText]);
|
|
8135
8211
|
const preview = usePresentation((policy) => !expanded && summary !== "" && (running || policy.settledReasoningPreview));
|
|
@@ -8149,6 +8225,7 @@ window.__ModuleLoader__.load({
|
|
|
8149
8225
|
className: ReasoningRow_module_css_default.thinkBody,
|
|
8150
8226
|
"data-text-interaction-source": textInteractionSource && !running ? "" : void 0,
|
|
8151
8227
|
children: renderSlot("conversation.chat.reasoning.body", {
|
|
8228
|
+
rawText,
|
|
8152
8229
|
text,
|
|
8153
8230
|
running
|
|
8154
8231
|
})
|
|
@@ -8156,9 +8233,11 @@ window.__ModuleLoader__.load({
|
|
|
8156
8233
|
expanded,
|
|
8157
8234
|
renderSlot,
|
|
8158
8235
|
running,
|
|
8236
|
+
rawText,
|
|
8159
8237
|
text,
|
|
8160
8238
|
textInteractionSource
|
|
8161
8239
|
]);
|
|
8240
|
+
if (hidden) return null;
|
|
8162
8241
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
8163
8242
|
className: ReasoningRow_module_css_default.root,
|
|
8164
8243
|
"data-variant": "think",
|
|
@@ -8311,7 +8390,19 @@ window.__ModuleLoader__.load({
|
|
|
8311
8390
|
//#endregion
|
|
8312
8391
|
//#region lib/types/client/chat/AssistantNodeView.js
|
|
8313
8392
|
/** Streaming, settled, and interrupted Assistant states share one keyed renderer instance. */
|
|
8314
|
-
const AssistantNodeView = (0, react.memo)(function AssistantNodeView({ node, groupPart, useDisclosure, useGroupAction, useTurnData, turnProcess, openFile, loadImage, fileMentions, usePresentation, renderSlot, t }) {
|
|
8393
|
+
const AssistantNodeView = (0, react.memo)(function AssistantNodeView({ node, groupPart, useDisclosure, useGroupAction, useTurnData, turnProcess, openFile, loadImage, fileMentions, usePresentation, renderSlot, t, sessionId, useContextMenu, resolveFilePath }) {
|
|
8394
|
+
const { getTriggerProps } = useContextMenu();
|
|
8395
|
+
const getFileTriggerProps = (0, react.useCallback)((path) => getTriggerProps(() => ({
|
|
8396
|
+
kind: "file",
|
|
8397
|
+
value: {
|
|
8398
|
+
sessionId,
|
|
8399
|
+
path: resolveFilePath(path)
|
|
8400
|
+
}
|
|
8401
|
+
})), [
|
|
8402
|
+
getTriggerProps,
|
|
8403
|
+
sessionId,
|
|
8404
|
+
resolveFilePath
|
|
8405
|
+
]);
|
|
8315
8406
|
const data = node.data;
|
|
8316
8407
|
const turn = node.location.kind === "turn" || node.location.kind === "step" ? node.location.turn : void 0;
|
|
8317
8408
|
const tail = useTurnData("turn-tail");
|
|
@@ -8329,7 +8420,11 @@ window.__ModuleLoader__.load({
|
|
|
8329
8420
|
tail,
|
|
8330
8421
|
turn
|
|
8331
8422
|
]);
|
|
8332
|
-
const mentions = (0, react.useMemo)(() => owner === void 0 ? void 0 : fileMentions(owner), [
|
|
8423
|
+
const mentions = (0, react.useMemo)(() => owner === void 0 ? void 0 : fileMentions(owner, getFileTriggerProps), [
|
|
8424
|
+
fileMentions,
|
|
8425
|
+
owner,
|
|
8426
|
+
getFileTriggerProps
|
|
8427
|
+
]);
|
|
8333
8428
|
const keepReplies = usePresentation((policy) => policy.foldedReplies === "all");
|
|
8334
8429
|
const reasoningHidden = turnProcess !== void 0 && turnProcess.foldable && (keepReplies ? groupPart !== "reasoning" : turnProcess.spec.answerStep === data.step && turnProcess.spec.inlineReasoning) && !turnProcess.open;
|
|
8335
8430
|
const revealProcess = (0, react.useCallback)(() => {
|
|
@@ -8515,7 +8610,7 @@ window.__ModuleLoader__.load({
|
|
|
8515
8610
|
});
|
|
8516
8611
|
/**
|
|
8517
8612
|
* Render the default Body through the same Factory available to third-party wrappers.
|
|
8518
|
-
* @param props -
|
|
8613
|
+
* @param props - display-ready reasoning and the framework's Factory renderer.
|
|
8519
8614
|
* @returns an occurrence of the official reasoning Content Factory.
|
|
8520
8615
|
*/
|
|
8521
8616
|
function DefaultReasoningBody({ text, running, renderFactorySlot }) {
|
|
@@ -8784,7 +8879,7 @@ window.__ModuleLoader__.load({
|
|
|
8784
8879
|
};
|
|
8785
8880
|
//#endregion
|
|
8786
8881
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-chat/src/client/chat/stat-dialog.module.css.mjs
|
|
8787
|
-
const css$4 = ".bRhRbq_panel{z-index:1100;box-sizing:border-box;
|
|
8882
|
+
const css$4 = ".bRhRbq_panel{z-index:1100;box-sizing:border-box;width:max-content;min-width:min(300px, calc(100vw - 24px), var(--dsh-anchored-max-width,100vw));max-width:min(440px, calc(100vw - 24px), var(--dsh-anchored-max-width,100vw));border-radius:var(--dsw-radius-lg);background:var(--dsw-specific-menu);backdrop-filter:var(--dsw-menu-backdrop-filter);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);box-shadow:var(--dsw-elevation-prominent);color:var(--dsw-alias-label-secondary);cursor:default;max-height:var(--dsh-anchored-max-height,none);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border:0;padding:16px;font-size:12px;line-height:18px;position:fixed;overflow:hidden auto}.bRhRbq_title{color:var(--dsw-alias-label-primary);justify-content:space-between;gap:16px;margin-bottom:8px;font-weight:500;display:flex}.bRhRbq_titleRule{border-top:.5px solid var(--dsw-alias-border-l2);margin-bottom:10px}.bRhRbq_titleValue{font-variant-numeric:tabular-nums}.bRhRbq_titleLabel{align-items:center;gap:6px;min-width:0;display:inline-flex}.bRhRbq_titleLabel svg{flex:none;width:14px;height:14px}.bRhRbq_details{color:var(--dsw-alias-label-tertiary);grid-template-columns:minmax(76px,auto) minmax(0,1fr);gap:6px 16px;margin:0;display:grid}.bRhRbq_details dt,.bRhRbq_details dd{min-width:0;margin:0}.bRhRbq_details dd{color:var(--dsw-alias-label-secondary);font-variant-numeric:tabular-nums;text-align:right}.bRhRbq_details .bRhRbq_route{overflow-wrap:anywhere}.bRhRbq_reasoning{color:var(--dsw-alias-label-tertiary);white-space:nowrap}";
|
|
8788
8883
|
const tagId$4 = "@deepseek-ai/dsh-client-ui-chat/stat-dialog.module.css";
|
|
8789
8884
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
8790
8885
|
const tag = document.createElement("style");
|
|
@@ -9184,7 +9279,11 @@ window.__ModuleLoader__.load({
|
|
|
9184
9279
|
scope: "session"
|
|
9185
9280
|
}
|
|
9186
9281
|
},
|
|
9187
|
-
inject: () => ({
|
|
9282
|
+
inject: (sessionId) => ({
|
|
9283
|
+
hooks: { presentation },
|
|
9284
|
+
resolveFilePath: sessionFilePath(ctx, sessionId),
|
|
9285
|
+
fileMentions: (owner, getFileTriggerProps) => ctx.get("chatFileMentions")?.forClosing(owner, sessionId, getFileTriggerProps)
|
|
9286
|
+
})
|
|
9188
9287
|
}, AssistantNodeView));
|
|
9189
9288
|
ctx.slots.inject("conversation.chat.node", () => ctx.slots.register({
|
|
9190
9289
|
name: "conversation.chat.node",
|
|
@@ -9879,6 +9978,7 @@ window.__ModuleLoader__.load({
|
|
|
9879
9978
|
turn,
|
|
9880
9979
|
step,
|
|
9881
9980
|
blocks: [],
|
|
9981
|
+
visibleByIndex: [],
|
|
9882
9982
|
visibleBlocks: 0,
|
|
9883
9983
|
firstVisibleSeq: void 0,
|
|
9884
9984
|
firstVisibleTime: void 0,
|
|
@@ -9895,11 +9995,6 @@ window.__ModuleLoader__.load({
|
|
|
9895
9995
|
if (block.kind === "text" || block.kind === "reasoning") return block.text.trim() !== "";
|
|
9896
9996
|
return true;
|
|
9897
9997
|
}
|
|
9898
|
-
function countVisibleBlocks(blocks) {
|
|
9899
|
-
let count = 0;
|
|
9900
|
-
for (const block of blocks) if (blockIsVisible(block)) count++;
|
|
9901
|
-
return count;
|
|
9902
|
-
}
|
|
9903
9998
|
function hasVisibleContent(blocks) {
|
|
9904
9999
|
return blocks.some(blockIsVisible);
|
|
9905
10000
|
}
|
|
@@ -9923,36 +10018,40 @@ window.__ModuleLoader__.load({
|
|
|
9923
10018
|
const blocks = [...state.blocks];
|
|
9924
10019
|
let changedIndex = -1;
|
|
9925
10020
|
let previousVisible = false;
|
|
10021
|
+
let nextVisible = false;
|
|
9926
10022
|
switch (chunk.type) {
|
|
9927
10023
|
case "block-start":
|
|
9928
10024
|
changedIndex = chunk.index;
|
|
9929
|
-
previousVisible =
|
|
10025
|
+
previousVisible = state.visibleByIndex[chunk.index] === true;
|
|
9930
10026
|
blocks[chunk.index] = emptyAssistantBlock(chunk.blockType);
|
|
10027
|
+
nextVisible = blockIsVisible(blocks[chunk.index]);
|
|
9931
10028
|
break;
|
|
9932
10029
|
case "text-delta": {
|
|
9933
10030
|
const previous = blocks[chunk.index];
|
|
9934
10031
|
changedIndex = chunk.index;
|
|
9935
|
-
previousVisible =
|
|
10032
|
+
previousVisible = state.visibleByIndex[chunk.index] === true;
|
|
9936
10033
|
blocks[chunk.index] = {
|
|
9937
10034
|
kind: "text",
|
|
9938
10035
|
text: (previous?.kind === "text" ? previous.text : "") + chunk.text
|
|
9939
10036
|
};
|
|
10037
|
+
nextVisible = previous?.kind === "text" && previousVisible || chunk.text.trim() !== "";
|
|
9940
10038
|
break;
|
|
9941
10039
|
}
|
|
9942
10040
|
case "reasoning-delta": {
|
|
9943
10041
|
const previous = blocks[chunk.index];
|
|
9944
10042
|
changedIndex = chunk.index;
|
|
9945
|
-
previousVisible =
|
|
10043
|
+
previousVisible = state.visibleByIndex[chunk.index] === true;
|
|
9946
10044
|
blocks[chunk.index] = {
|
|
9947
10045
|
kind: "reasoning",
|
|
9948
10046
|
text: (previous?.kind === "reasoning" ? previous.text : "") + chunk.text
|
|
9949
10047
|
};
|
|
10048
|
+
nextVisible = previous?.kind === "reasoning" && previousVisible || chunk.text.trim() !== "";
|
|
9950
10049
|
break;
|
|
9951
10050
|
}
|
|
9952
10051
|
case "tool-call-delta": {
|
|
9953
10052
|
const previous = blocks[chunk.index];
|
|
9954
10053
|
changedIndex = chunk.index;
|
|
9955
|
-
previousVisible =
|
|
10054
|
+
previousVisible = state.visibleByIndex[chunk.index] === true;
|
|
9956
10055
|
blocks[chunk.index] = {
|
|
9957
10056
|
kind: "tool-call",
|
|
9958
10057
|
callId: (previous?.kind === "tool-call" ? previous.callId : "") || String(chunk.id),
|
|
@@ -9963,8 +10062,9 @@ window.__ModuleLoader__.load({
|
|
|
9963
10062
|
}
|
|
9964
10063
|
case "block-end":
|
|
9965
10064
|
changedIndex = chunk.index;
|
|
9966
|
-
previousVisible =
|
|
10065
|
+
previousVisible = state.visibleByIndex[chunk.index] === true;
|
|
9967
10066
|
blocks[chunk.index] = toAssistantBlock(chunk.block);
|
|
10067
|
+
nextVisible = blockIsVisible(blocks[chunk.index]);
|
|
9968
10068
|
break;
|
|
9969
10069
|
case "usage": return {
|
|
9970
10070
|
...state,
|
|
@@ -9972,11 +10072,18 @@ window.__ModuleLoader__.load({
|
|
|
9972
10072
|
};
|
|
9973
10073
|
default: return state;
|
|
9974
10074
|
}
|
|
9975
|
-
const visibleBlocks = state.visibleBlocks - Number(previousVisible) + Number(
|
|
10075
|
+
const visibleBlocks = state.visibleBlocks - Number(previousVisible) + Number(nextVisible);
|
|
10076
|
+
let visibleByIndex = state.visibleByIndex;
|
|
10077
|
+
if (previousVisible !== nextVisible) {
|
|
10078
|
+
const next = [...visibleByIndex];
|
|
10079
|
+
next[changedIndex] = nextVisible;
|
|
10080
|
+
visibleByIndex = next;
|
|
10081
|
+
}
|
|
9976
10082
|
const firstToken = isTokenDelta(chunk);
|
|
9977
10083
|
return {
|
|
9978
10084
|
...state,
|
|
9979
10085
|
blocks,
|
|
10086
|
+
visibleByIndex,
|
|
9980
10087
|
visibleBlocks,
|
|
9981
10088
|
...visibleBlocks > 0 && state.firstVisibleSeq === void 0 ? {
|
|
9982
10089
|
firstVisibleSeq: seq,
|
|
@@ -9987,10 +10094,12 @@ window.__ModuleLoader__.load({
|
|
|
9987
10094
|
}
|
|
9988
10095
|
function settleMessage(state, match, event) {
|
|
9989
10096
|
const blocks = toAssistantBlocks(event.data.message.content);
|
|
10097
|
+
const visibleByIndex = blocks.map(blockIsVisible);
|
|
9990
10098
|
return {
|
|
9991
10099
|
...state,
|
|
9992
10100
|
blocks,
|
|
9993
|
-
|
|
10101
|
+
visibleByIndex,
|
|
10102
|
+
visibleBlocks: visibleByIndex.reduce((count, visible) => count + Number(visible), 0),
|
|
9994
10103
|
final: match,
|
|
9995
10104
|
usage: event.data.usage
|
|
9996
10105
|
};
|
|
@@ -11939,6 +12048,8 @@ window.__ModuleLoader__.load({
|
|
|
11939
12048
|
* their step's input; in-history updates stay at their own positions. The
|
|
11940
12049
|
* request-prompt Definition owns replacement and later-series cards. Positional
|
|
11941
12050
|
* replacements advance the effective prompt without changing historical cards.
|
|
12051
|
+
* A published node becomes `hidden` under the same key while a prepended replacement
|
|
12052
|
+
* leaves its prompt order unknown, and `visible` again once older history resolves it.
|
|
11942
12053
|
* @param inspect - Pure surface interpretation supplied by uiConversation.
|
|
11943
12054
|
* @returns The Chat system-prompt Definition.
|
|
11944
12055
|
*/
|
|
@@ -11957,7 +12068,11 @@ window.__ModuleLoader__.load({
|
|
|
11957
12068
|
update: (context) => context.state,
|
|
11958
12069
|
buildViewNode: (context) => {
|
|
11959
12070
|
const state = context.state?.introduced;
|
|
11960
|
-
if (state === void 0 || state.text === "" || context.start?.event.type !== "system/message" || context.start.event.surfaceOp !== "append")
|
|
12071
|
+
if (state === void 0 || state.text === "" || context.start?.event.type !== "system/message" || context.start.event.surfaceOp !== "append") {
|
|
12072
|
+
const current = context.current.get("chat");
|
|
12073
|
+
if (current?.kind !== "system-prompt") return null;
|
|
12074
|
+
return chatNode(context, "system-prompt", current.anchorSeq, current.data, { visibility: "hidden" });
|
|
12075
|
+
}
|
|
11961
12076
|
return chatNode(context, "system-prompt", state.update ? state.seq : requestPromptAnchor(context.start, void 0, true), {
|
|
11962
12077
|
text: state.text,
|
|
11963
12078
|
...state.update ? { update: true } : {}
|
|
@@ -13236,6 +13351,7 @@ window.__ModuleLoader__.load({
|
|
|
13236
13351
|
}
|
|
13237
13352
|
//#endregion
|
|
13238
13353
|
//#region lib/types/client/conversation-nodes/process-activity.js
|
|
13354
|
+
/** Tool-category and live-detail interpretation owned by Chat grouping. */
|
|
13239
13355
|
function activity(name) {
|
|
13240
13356
|
if (name === "read") return "read";
|
|
13241
13357
|
if (name === "read_image") return "readImage";
|
|
@@ -13345,7 +13461,7 @@ window.__ModuleLoader__.load({
|
|
|
13345
13461
|
for (let blockIndex = node.data.blocks.length - 1; blockIndex >= 0; blockIndex--) {
|
|
13346
13462
|
const block = node.data.blocks[blockIndex];
|
|
13347
13463
|
if (block?.kind !== "reasoning") continue;
|
|
13348
|
-
const paragraphs = block.text.split(/\r?\n[\t ]*\r?\n/);
|
|
13464
|
+
const paragraphs = reasoningText(block.text).split(/\r?\n[\t ]*\r?\n/);
|
|
13349
13465
|
for (let paragraphIndex = paragraphs.length - 1; paragraphIndex >= 0; paragraphIndex--) {
|
|
13350
13466
|
const detail = normalizeLiveToolDetail(paragraphs[paragraphIndex]?.replaceAll("**", ""));
|
|
13351
13467
|
if (detail !== "") return detail;
|
|
@@ -15371,7 +15487,6 @@ window.__ModuleLoader__.load({
|
|
|
15371
15487
|
interactionIds: ctx.uiConversation.interactions
|
|
15372
15488
|
},
|
|
15373
15489
|
dispatchInteraction: (gesture) => ctx.uiConversation.interactions.dispatch(sessionId, gesture),
|
|
15374
|
-
fileMentions: (owner) => ctx.get("chatFileMentions")?.forClosing(owner, sessionId),
|
|
15375
15490
|
openFile: async (path, options) => {
|
|
15376
15491
|
const cwd = ctx.sessions.list.getSnapshot().byId[sessionId]?.cwd;
|
|
15377
15492
|
const url = fileAddressFor(sessionId, cwd, resolveWorkspacePath(session.projections.faceOf("workingDirectory").getSnapshot() ?? void 0, path));
|
|
@@ -15379,6 +15494,7 @@ window.__ModuleLoader__.load({
|
|
|
15379
15494
|
else ctx.sidebarRight.openResource(url, { params: { line: options.line } });
|
|
15380
15495
|
await Promise.resolve();
|
|
15381
15496
|
},
|
|
15497
|
+
resolveFilePath: sessionFilePath(ctx, sessionId),
|
|
15382
15498
|
openExternalLink: (url) => {
|
|
15383
15499
|
if (linkOpening.getSnapshot() === "sidebar" && ctx.get("sidebarRightTabs")?.get("browser") !== void 0) ctx.sidebarRight.openTab("browser", { params: { url } });
|
|
15384
15500
|
else window.open(url, "_blank", "noopener,noreferrer");
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { InjectFace, PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
-
import type { ChatNodeViewProps, PresentationInjected } from '../contract/slots.ts';
|
|
3
|
-
|
|
2
|
+
import type { ChatFileMentions, ChatNodeViewProps, PresentationInjected, TurnTailOwnerProps } from '../contract/slots.ts';
|
|
3
|
+
/** Business readers owned by the assistant renderer's existing Slot registration. */
|
|
4
|
+
export interface AssistantNodeInjected extends PresentationInjected {
|
|
5
|
+
/** Resolve against the live Session directory. @param path - Recorded path. @returns Host path. */
|
|
6
|
+
resolveFilePath: (path: string) => string;
|
|
7
|
+
/** Resolve closing-Turn mentions with the supplied ordinary file gesture callback. */
|
|
8
|
+
fileMentions: (owner: TurnTailOwnerProps, getFileTriggerProps: NonNullable<Parameters<ChatFileMentions['forClosing']>[2]>) => ReturnType<ChatFileMentions['forClosing']>;
|
|
9
|
+
}
|
|
10
|
+
type AssistantNodeViewProps = ChatNodeViewProps<'assistant-step'> & InjectFace<AssistantNodeInjected> & PropsRenderSlots<'conversation.chat.reasoning.body' | 'conversation.chat.message.images'>;
|
|
4
11
|
/** Streaming, settled, and interrupted Assistant states share one keyed renderer instance. */
|
|
5
|
-
export declare const AssistantNodeView: import("react").MemoExoticComponent<({ node, groupPart, useDisclosure, useGroupAction, useTurnData, turnProcess, openFile, loadImage, fileMentions, usePresentation, renderSlot, t, }: AssistantNodeViewProps) => import("react").JSX.Element>;
|
|
12
|
+
export declare const AssistantNodeView: import("react").MemoExoticComponent<({ node, groupPart, useDisclosure, useGroupAction, useTurnData, turnProcess, openFile, loadImage, fileMentions, usePresentation, renderSlot, t, sessionId, useContextMenu, resolveFilePath, }: AssistantNodeViewProps) => import("react").JSX.Element>;
|
|
6
13
|
export {};
|
|
7
14
|
//# sourceMappingURL=AssistantNodeView.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ChatFlowSlotProps } from '../contract/slots.ts';
|
|
2
2
|
/** Render the flow without adding a DOM parent or changing keyed row positions. */
|
|
3
|
-
export declare const ChatFlow: import("react").MemoExoticComponent<({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useConnectionState, useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile, inspectCall, forkAt, loadImage,
|
|
3
|
+
export declare const ChatFlow: import("react").MemoExoticComponent<({ entries, pendingInputs, lastInputTurn, deferCollapse, useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useConnectionState, useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction, cwd, openFile, inspectCall, forkAt, loadImage, }: ChatFlowSlotProps) => import("react").JSX.Element[]>;
|
|
4
4
|
//# sourceMappingURL=ChatFlow.d.ts.map
|
|
@@ -20,6 +20,6 @@ interface ChatNodeSeatProps extends ChatNodeOwnerProps {
|
|
|
20
20
|
* Policy reads select this seat's own conclusion, so a mode change re-renders
|
|
21
21
|
* only seats whose visibility actually changes.
|
|
22
22
|
*/
|
|
23
|
-
export declare const ChatNodeSeat: import("react").MemoExoticComponent<({ nodeKey, groupPart, useChatNode, useChatNodeProcess, usePresentation, cwd, openFile, inspectCall, forkAt, loadImage,
|
|
23
|
+
export declare const ChatNodeSeat: import("react").MemoExoticComponent<({ nodeKey, groupPart, useChatNode, useChatNodeProcess, usePresentation, cwd, openFile, inspectCall, forkAt, loadImage, useStore, actions, renderSlot, t, useChatNodeBottom, deferCollapse, useGroupAction, }: ChatNodeSeatProps) => import("react").JSX.Element | null>;
|
|
24
24
|
export {};
|
|
25
25
|
//# sourceMappingURL=ChatNodeSeat.d.ts.map
|
|
@@ -3,5 +3,5 @@ import type { ChatViewSlotProps } from '../contract/slots.ts';
|
|
|
3
3
|
* The chat view slot entry: pure component over the composed props; each
|
|
4
4
|
* ordered business Node crosses the keyed renderer seat.
|
|
5
5
|
*/
|
|
6
|
-
export declare function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile, openExternalLink, loadOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt,
|
|
6
|
+
export declare function ChatView({ useSession, useChat, useConversation, useSessions, renderSlot, sessionId, openFile, openExternalLink, resolveFilePath, useContextMenu, loadOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt, usePresentation, useProjection, useInteractionIds, dispatchInteraction, t, fileDrag, }: ChatViewSlotProps): import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=ChatView.d.ts.map
|
|
@@ -8,7 +8,7 @@ type ReasoningBodyProps = PropsRuntime<'conversation.chat.reasoning.body'> & Pro
|
|
|
8
8
|
export declare const ReasoningContent: import("react").MemoExoticComponent<({ text, running, labels, t }: FactoryComponentPropsOf<"conversation.chat.reasoning.content">) => import("react").JSX.Element>;
|
|
9
9
|
/**
|
|
10
10
|
* Render the default Body through the same Factory available to third-party wrappers.
|
|
11
|
-
* @param props -
|
|
11
|
+
* @param props - display-ready reasoning and the framework's Factory renderer.
|
|
12
12
|
* @returns an occurrence of the official reasoning Content Factory.
|
|
13
13
|
*/
|
|
14
14
|
export declare function DefaultReasoningBody({ text, running, renderFactorySlot }: ReasoningBodyProps): import("react").ReactNode;
|
|
@@ -5,7 +5,7 @@ import type { ChatViewSlotProps, UseDisclosure, UsePresentation } from '../contr
|
|
|
5
5
|
* collapsed summary omits double-asterisk markers; expanded content renders
|
|
6
6
|
* the complete Markdown with secondary typography. A streaming preview advances
|
|
7
7
|
* when a paragraph's first line completes. Mode changes toggle CSS display without unmounting
|
|
8
|
-
* collapsed summaries.
|
|
8
|
+
* collapsed summaries. The Body Slot receives both original and display-ready text.
|
|
9
9
|
* @param props.text - complete or streaming reasoning text.
|
|
10
10
|
* @param props.running - whether this block is the streaming tail.
|
|
11
11
|
* @param props.usePresentation - live display-policy selector for this reasoning row.
|
|
@@ -14,12 +14,12 @@ import type { ChatViewSlotProps, UseDisclosure, UsePresentation } from '../contr
|
|
|
14
14
|
* @param props.t - conversation locale seat for the disclosure and running status.
|
|
15
15
|
* @returns the reasoning disclosure.
|
|
16
16
|
*/
|
|
17
|
-
export declare const ReasoningRow: import("react").MemoExoticComponent<({ text, running, textInteractionSource, usePresentation, useDisclosure, renderSlot, t, }: {
|
|
17
|
+
export declare const ReasoningRow: import("react").MemoExoticComponent<({ text: rawText, running, textInteractionSource, usePresentation, useDisclosure, renderSlot, t, }: {
|
|
18
18
|
text: string;
|
|
19
19
|
running: boolean;
|
|
20
20
|
textInteractionSource?: boolean;
|
|
21
21
|
useDisclosure: UseDisclosure;
|
|
22
22
|
usePresentation: UsePresentation;
|
|
23
23
|
t: ChatViewSlotProps["t"];
|
|
24
|
-
} & Pick<PropsRenderSlots<"conversation.chat.reasoning.body">, "renderSlot">) => import("react").JSX.Element>;
|
|
24
|
+
} & Pick<PropsRenderSlots<"conversation.chat.reasoning.body">, "renderSlot">) => import("react").JSX.Element | null>;
|
|
25
25
|
//# sourceMappingURL=ReasoningRow.d.ts.map
|
|
@@ -9,7 +9,9 @@ import type { CommandNode, CompactionSummaryNode, ConversationLocationDataStore,
|
|
|
9
9
|
import type { HostObservable, InjectFace, KeyedSnapshotSelectorHook, PropsLocale, PropsRenderSlots, PropsRuntime, PropsRenderFactories, PropsStore, SlotHookFactory, SnapshotSelectorHook } from '@deepseek-ai/dsh-client-ui-slots';
|
|
10
10
|
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store';
|
|
11
11
|
import type { ConnectionStateSource } from '@deepseek-ai/dsh-client-connection/client';
|
|
12
|
-
import type { MarkdownFileMentions, MarkdownLabels } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
12
|
+
import type { FileDragActions, MarkdownFileMentions, MarkdownLabels } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
13
|
+
import type { ContextMenuTriggerProps } from '@deepseek-ai/dsh-client-ui-context-menu/client';
|
|
14
|
+
import type { ChatKey } from '../locale.ts';
|
|
13
15
|
import type { createChatStore } from '../stores.ts';
|
|
14
16
|
import type { ChatPresentationPolicy } from '../presentation-policy.ts';
|
|
15
17
|
import type { FlowMotionRows } from '../chat/flow-motion.ts';
|
|
@@ -54,15 +56,21 @@ export interface QuotaNoticeState {
|
|
|
54
56
|
/** Per-publication sequence; the host keys its surface by it. */
|
|
55
57
|
seq: number;
|
|
56
58
|
}
|
|
57
|
-
/** Original
|
|
59
|
+
/** Original and display-ready reasoning offered to the expanded Body Slot. */
|
|
58
60
|
export interface ReasoningBodyOwnerProps {
|
|
59
|
-
/** Complete or streaming
|
|
61
|
+
/** Complete or streaming model output. */
|
|
62
|
+
readonly rawText: string;
|
|
63
|
+
/** Reasoning text prepared for display. */
|
|
60
64
|
readonly text: string;
|
|
61
65
|
/** Whether the reasoning tail is still streaming. */
|
|
62
66
|
readonly running: boolean;
|
|
63
67
|
}
|
|
64
68
|
/** Session-independent original or derived display input to the Content Factory. */
|
|
65
|
-
export interface ReasoningContentInput
|
|
69
|
+
export interface ReasoningContentInput {
|
|
70
|
+
/** Caller-selected Markdown. */
|
|
71
|
+
readonly text: string;
|
|
72
|
+
/** Whether the supplied text is still streaming. */
|
|
73
|
+
readonly running: boolean;
|
|
66
74
|
/** Localized Markdown controls, used unchanged when supplied; omission uses Chat's defaults. */
|
|
67
75
|
readonly labels?: MarkdownLabels;
|
|
68
76
|
}
|
|
@@ -104,9 +112,10 @@ export interface ChatFileMentions {
|
|
|
104
112
|
* Resolve prose links for one closing Turn.
|
|
105
113
|
* @param owner - closing-Turn identity and file opener.
|
|
106
114
|
* @param sessionId - viewed Session, including when history is inherited from a fork.
|
|
115
|
+
* @param getFileTriggerProps - ordinary gesture binding for a resolved file path.
|
|
107
116
|
* @returns link resolver when available.
|
|
108
117
|
*/
|
|
109
|
-
forClosing(owner: TurnTailOwnerProps, sessionId: SessionId): MarkdownFileMentions | undefined;
|
|
118
|
+
forClosing(owner: TurnTailOwnerProps, sessionId: SessionId, getFileTriggerProps?: (path: string) => ContextMenuTriggerProps): MarkdownFileMentions | undefined;
|
|
110
119
|
}
|
|
111
120
|
declare module '@deepseek-ai/cordis' {
|
|
112
121
|
interface Context {
|
|
@@ -188,7 +197,6 @@ export interface ChatNodeOwnerProps {
|
|
|
188
197
|
forkAt: (seq: number) => void;
|
|
189
198
|
/** Session-authorized image loader supplied by the Chat view. */
|
|
190
199
|
loadImage: MessageImageLoader;
|
|
191
|
-
fileMentions: (owner: TurnTailOwnerProps) => MarkdownFileMentions | undefined;
|
|
192
200
|
/** Turn-process state when this Node belongs to a projected Turn. */
|
|
193
201
|
turnProcess?: TurnProcessOwnerProps | undefined;
|
|
194
202
|
}
|
|
@@ -258,7 +266,9 @@ export interface PerformanceUsageInjected {
|
|
|
258
266
|
/** Business callbacks injected into the Chat view. */
|
|
259
267
|
export interface ChatViewInjected {
|
|
260
268
|
/** File preparation and failure callbacks owned by the file-drag plugin. */
|
|
261
|
-
readonly fileDrag:
|
|
269
|
+
readonly fileDrag: FileDragActions;
|
|
270
|
+
/** Resolve the reference against this Session and its current path base when the gesture begins. */
|
|
271
|
+
resolveFilePath: (path: string) => string;
|
|
262
272
|
/** Dispatch one gesture to the Conversation plugin registry. */
|
|
263
273
|
dispatchInteraction: (gesture: TextInteractionGesture) => string | null;
|
|
264
274
|
hooks: {
|
|
@@ -289,7 +299,6 @@ export interface ChatViewInjected {
|
|
|
289
299
|
read: () => ChatScrollPosition | null;
|
|
290
300
|
};
|
|
291
301
|
forkAt: (seq: number) => void;
|
|
292
|
-
fileMentions: (owner: TurnTailOwnerProps) => MarkdownFileMentions | undefined;
|
|
293
302
|
}
|
|
294
303
|
/** Session-owned node sources shared with the view, plus the flow's connection state. */
|
|
295
304
|
export type ChatFlowDataInjected = Pick<ChatViewInjected, 'keyedHooks'> & {
|
|
@@ -299,7 +308,7 @@ export type ChatFlowDataInjected = Pick<ChatViewInjected, 'keyedHooks'> & {
|
|
|
299
308
|
};
|
|
300
309
|
};
|
|
301
310
|
/** Ordered rows and reconciled local echoes rendered inside one Chat viewport. */
|
|
302
|
-
export interface ChatFlowOwnerProps extends Pick<ChatNodeOwnerProps, 'cwd' | 'openFile' | 'inspectCall' | 'forkAt' | 'loadImage'
|
|
311
|
+
export interface ChatFlowOwnerProps extends Pick<ChatNodeOwnerProps, 'cwd' | 'openFile' | 'inspectCall' | 'forkAt' | 'loadImage'> {
|
|
303
312
|
readonly entries: readonly RenderEntry[];
|
|
304
313
|
readonly pendingInputs: readonly (PendingSubmission | InboxState['next-step'][number])[];
|
|
305
314
|
readonly lastInputTurn: number | undefined;
|
|
@@ -318,7 +327,7 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
|
318
327
|
}
|
|
319
328
|
interface LocaleNamespaceMap {
|
|
320
329
|
/** Chat target, transcript node, statistics, and details copy. */
|
|
321
|
-
chat:
|
|
330
|
+
chat: ChatKey;
|
|
322
331
|
}
|
|
323
332
|
interface SlotFactoryMap {
|
|
324
333
|
/** Prepared user text, attachments, and references inside a caller-owned message row. */
|
|
@@ -410,9 +419,9 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
|
410
419
|
owner: CommandRowOwnerProps;
|
|
411
420
|
};
|
|
412
421
|
/**
|
|
413
|
-
* Expanded reasoning body with
|
|
422
|
+
* Expanded reasoning body with raw and display-ready text. The official entry
|
|
414
423
|
* has priority 100 and calls the reasoning Content Factory; smaller priority
|
|
415
|
-
* values replace it. Contributions must preserve access to
|
|
424
|
+
* values replace it. Contributions must preserve access to untranslated display text.
|
|
416
425
|
*/
|
|
417
426
|
'conversation.chat.reasoning.body': {
|
|
418
427
|
kind: 'single';
|
|
@@ -17,6 +17,8 @@ interface AssistantState {
|
|
|
17
17
|
readonly turn: number;
|
|
18
18
|
readonly step: number;
|
|
19
19
|
readonly blocks: readonly (AssistantBlock | undefined)[];
|
|
20
|
+
/** Missing indices are invisible; same-kind appends preserve already-visible blocks. */
|
|
21
|
+
readonly visibleByIndex: readonly boolean[];
|
|
20
22
|
readonly visibleBlocks: number;
|
|
21
23
|
readonly firstVisibleSeq: number | undefined;
|
|
22
24
|
readonly firstVisibleTime: number | undefined;
|
|
@@ -23,6 +23,8 @@ interface RequestPromptState extends ReturnType<RequestPromptInspector> {
|
|
|
23
23
|
* their step's input; in-history updates stay at their own positions. The
|
|
24
24
|
* request-prompt Definition owns replacement and later-series cards. Positional
|
|
25
25
|
* replacements advance the effective prompt without changing historical cards.
|
|
26
|
+
* A published node becomes `hidden` under the same key while a prepended replacement
|
|
27
|
+
* leaves its prompt order unknown, and `visible` again once older history resolves it.
|
|
26
28
|
* @param inspect - Pure surface interpretation supplied by uiConversation.
|
|
27
29
|
* @returns The Chat system-prompt Definition.
|
|
28
30
|
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Gesture-time path resolution for Chat-owned file references. */
|
|
2
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
3
|
+
import type { SessionId } from '@deepseek-ai/dsh-session/types';
|
|
4
|
+
/**
|
|
5
|
+
* Bind path resolution to the originating Session without capturing its current directory.
|
|
6
|
+
* @param ctx - Chat plugin context.
|
|
7
|
+
* @param sessionId - Original Session identity.
|
|
8
|
+
* @returns Resolver using the live working directory, falling back to the workspace root.
|
|
9
|
+
*/
|
|
10
|
+
export declare function sessionFilePath(ctx: Context, sessionId: SessionId): (path: string) => string;
|
|
11
|
+
//# sourceMappingURL=file-path.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Display text preparation for model reasoning. */
|
|
2
|
+
/**
|
|
3
|
+
* Prepare complete or streaming reasoning for display.
|
|
4
|
+
* @param text - original complete or streaming reasoning.
|
|
5
|
+
* @returns display text, or empty text when no displayable content is available.
|
|
6
|
+
*/
|
|
7
|
+
export declare function reasoningText(text: string): string;
|
|
8
|
+
//# sourceMappingURL=reasoning-text.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-chat",
|
|
3
3
|
"description": "Chat Conversation target, node definitions, renderers, and details surface",
|
|
4
|
-
"version": "0.2.2-
|
|
4
|
+
"version": "0.2.2-rc.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -42,61 +42,63 @@
|
|
|
42
42
|
"@deepseek-ai/dsh-client-ui-settings",
|
|
43
43
|
"@deepseek-ai/dsh-client-ui-sidebar-right",
|
|
44
44
|
"@deepseek-ai/dsh-client-ui-workspace",
|
|
45
|
-
"@deepseek-ai/dsh-client-ui-file-drag"
|
|
45
|
+
"@deepseek-ai/dsh-client-ui-file-drag",
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-context-menu"
|
|
46
47
|
],
|
|
47
48
|
"platform": "web"
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
"license": "MIT",
|
|
51
52
|
"peerDependencies": {
|
|
52
|
-
"@deepseek-ai/cordis": "~4.0
|
|
53
|
+
"@deepseek-ai/cordis": "~4.1.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@deepseek-ai/cordis": "~4.0
|
|
56
|
-
"@deepseek-ai/dsh-agent": "0.2.2-
|
|
57
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.2-
|
|
58
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.2-
|
|
59
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.2-
|
|
60
|
-
"@deepseek-ai/dsh-api-workspace-files": "0.2.2-
|
|
61
|
-
"@deepseek-ai/dsh-attachment": "0.2.2-
|
|
62
|
-
"@deepseek-ai/dsh-brand": "0.2.2-
|
|
63
|
-
"@deepseek-ai/dsh-client-connection": "0.2.2-
|
|
64
|
-
"@deepseek-ai/dsh-client-locale": "0.2.2-
|
|
65
|
-
"@deepseek-ai/dsh-client-store": "0.2.2-
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-approval": "0.2.2-
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.2-
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.2-
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.2-
|
|
73
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-sidebar-browser": "0.2.2-
|
|
75
|
-
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.2.2-
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.2-
|
|
77
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.2-
|
|
79
|
-
"@deepseek-ai/dsh-commands": "0.2.2-
|
|
80
|
-
"@deepseek-ai/dsh-compaction": "0.2.2-
|
|
81
|
-
"@deepseek-ai/dsh-llm": "0.2.2-
|
|
82
|
-
"@deepseek-ai/dsh-llm-retry": "0.2.2-
|
|
83
|
-
"@deepseek-ai/dsh-session": "0.2.2-
|
|
84
|
-
"@deepseek-ai/dsh-session-stats": "0.2.2-
|
|
85
|
-
"@deepseek-ai/dsh-session-turn-outline": "0.2.2-
|
|
86
|
-
"@deepseek-ai/dsh-subagent": "0.2.2-
|
|
87
|
-
"@deepseek-ai/dsh-token-meter": "0.2.2-
|
|
88
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-
|
|
89
|
-
"@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-
|
|
90
|
-
"@deepseek-ai/dsh-util-values": "0.2.2-
|
|
56
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
57
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.1",
|
|
58
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.2-rc.1",
|
|
59
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.1",
|
|
60
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.2-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.2.2-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-brand": "0.2.2-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-approval": "0.2.2-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.2-rc.1",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.2-rc.1",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.1",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
|
|
75
|
+
"@deepseek-ai/dsh-client-ui-sidebar-browser": "0.2.2-rc.1",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.2.2-rc.1",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.2-rc.1",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.2-rc.1",
|
|
80
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.1",
|
|
81
|
+
"@deepseek-ai/dsh-compaction": "0.2.2-rc.1",
|
|
82
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.1",
|
|
83
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.2-rc.1",
|
|
84
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.1",
|
|
85
|
+
"@deepseek-ai/dsh-session-stats": "0.2.2-rc.1",
|
|
86
|
+
"@deepseek-ai/dsh-session-turn-outline": "0.2.2-rc.1",
|
|
87
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.1",
|
|
88
|
+
"@deepseek-ai/dsh-token-meter": "0.2.2-rc.1",
|
|
89
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-rc.1",
|
|
90
|
+
"@deepseek-ai/dsh-tool-executor-ptc": "0.2.2-rc.1",
|
|
91
|
+
"@deepseek-ai/dsh-util-values": "0.2.2-rc.1",
|
|
91
92
|
"@tanstack/react-virtual": "3.14.10",
|
|
92
93
|
"react": "^18.2.0",
|
|
93
94
|
"react-dom": "^18.2.0",
|
|
94
|
-
"@deepseek-ai/dsh-settings": "0.2.2-
|
|
95
|
-
"@deepseek-ai/dsh-client-product-analytics": "0.2.2-
|
|
96
|
-
"@deepseek-ai/dsh-client-ui-file-drag": "0.2.2-
|
|
95
|
+
"@deepseek-ai/dsh-settings": "0.2.2-rc.1",
|
|
96
|
+
"@deepseek-ai/dsh-client-product-analytics": "0.2.2-rc.1",
|
|
97
|
+
"@deepseek-ai/dsh-client-ui-file-drag": "0.2.2-rc.1",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-context-menu": "0.2.2-rc.1"
|
|
97
99
|
},
|
|
98
100
|
"dependencies": {
|
|
99
|
-
"@deepseek-ai/schemastery": "~3.
|
|
101
|
+
"@deepseek-ai/schemastery": "~3.19.0"
|
|
100
102
|
},
|
|
101
103
|
"files": [
|
|
102
104
|
"locale/*.json",
|