@deepseek-ai/dsh-client-ui-chat 0.2.3-alpha.2 → 0.2.3-alpha.3
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 +7 -5
- package/README.zh.md +7 -5
- package/lib/client.js +9 -9
- package/lib/client.js.map +1 -1
- package/lib/types/client/apply.js.map +1 -1
- package/lib/types/client/chat/ApprovalCommand.d.ts +1 -1
- package/lib/types/client/chat/ApprovalCommand.d.ts.map +1 -1
- package/lib/types/client/chat/AssistantMarkdown.d.ts +2 -2
- package/lib/types/client/chat/AssistantMarkdown.d.ts.map +1 -1
- package/lib/types/client/chat/AssistantMarkdown.js.map +1 -1
- package/lib/types/client/chat/AssistantNodeView.d.ts +1 -1
- package/lib/types/client/chat/AssistantNodeView.d.ts.map +1 -1
- package/lib/types/client/chat/ChatAside.d.ts +1 -1
- package/lib/types/client/chat/ChatAside.d.ts.map +1 -1
- package/lib/types/client/chat/ChatFlow.d.ts +1 -1
- package/lib/types/client/chat/ChatFlow.d.ts.map +1 -1
- package/lib/types/client/chat/ChatFlow.js.map +1 -1
- package/lib/types/client/chat/ChatGroupSeat.d.ts.map +1 -1
- package/lib/types/client/chat/ChatGroupSeat.js.map +1 -1
- package/lib/types/client/chat/ChatNodeSeat.d.ts +1 -1
- package/lib/types/client/chat/ChatNodeSeat.d.ts.map +1 -1
- package/lib/types/client/chat/ChatNodeSeat.js.map +1 -1
- package/lib/types/client/chat/ChatView.d.ts +1 -1
- package/lib/types/client/chat/ChatView.d.ts.map +1 -1
- package/lib/types/client/chat/ChatView.js.map +1 -1
- package/lib/types/client/chat/CommandNodeView.d.ts +1 -1
- package/lib/types/client/chat/CommandNodeView.d.ts.map +1 -1
- package/lib/types/client/chat/CommandStatusRow.js.map +1 -1
- package/lib/types/client/chat/CompactionItem.js.map +1 -1
- package/lib/types/client/chat/ContextBody.d.ts +11 -1
- package/lib/types/client/chat/ContextBody.d.ts.map +1 -1
- package/lib/types/client/chat/ContextBody.js.map +1 -1
- package/lib/types/client/chat/ContextInjectionRow.js.map +1 -1
- package/lib/types/client/chat/MessageIconActions.js.map +1 -1
- package/lib/types/client/chat/MessageItem.d.ts +2 -2
- package/lib/types/client/chat/MessageItem.d.ts.map +1 -1
- package/lib/types/client/chat/MessageItem.js.map +1 -1
- package/lib/types/client/chat/QuotaNoticeHost.js.map +1 -1
- package/lib/types/client/chat/ReasoningContent.d.ts +1 -1
- package/lib/types/client/chat/ReasoningContent.d.ts.map +1 -1
- package/lib/types/client/chat/ReasoningContent.js.map +1 -1
- package/lib/types/client/chat/ReasoningRow.d.ts +1 -1
- package/lib/types/client/chat/ReasoningRow.d.ts.map +1 -1
- package/lib/types/client/chat/ReasoningRow.js.map +1 -1
- package/lib/types/client/chat/RunningStatus.js.map +1 -1
- package/lib/types/client/chat/StatsPills.d.ts +1 -1
- package/lib/types/client/chat/StatsPills.d.ts.map +1 -1
- package/lib/types/client/chat/StatsPills.js.map +1 -1
- package/lib/types/client/chat/SystemPromptRow.d.ts +7 -3
- package/lib/types/client/chat/SystemPromptRow.d.ts.map +1 -1
- package/lib/types/client/chat/SystemPromptRow.js.map +1 -1
- package/lib/types/client/chat/TurnNavigator.d.ts +1 -1
- package/lib/types/client/chat/TurnNavigator.d.ts.map +1 -1
- package/lib/types/client/chat/TurnProcessNodeView.js.map +1 -1
- package/lib/types/client/chat/TurnTailNodeView.d.ts +1 -1
- package/lib/types/client/chat/TurnTailNodeView.d.ts.map +1 -1
- package/lib/types/client/chat/TurnTriggerNodeView.js.map +1 -1
- package/lib/types/client/chat/TurnUsagePanel.js.map +1 -1
- package/lib/types/client/chat/UserContent.d.ts +1 -1
- package/lib/types/client/chat/UserContent.d.ts.map +1 -1
- package/lib/types/client/chat/UserContent.js.map +1 -1
- package/lib/types/client/chat/flow-motion.d.ts +1 -1
- package/lib/types/client/chat/flow-motion.d.ts.map +1 -1
- package/lib/types/client/chat/flow-motion.js.map +1 -1
- package/lib/types/client/chat/message-chrome.d.ts +1 -1
- package/lib/types/client/chat/message-chrome.d.ts.map +1 -1
- package/lib/types/client/chat/searchable-hidden.d.ts +1 -1
- package/lib/types/client/chat/searchable-hidden.d.ts.map +1 -1
- package/lib/types/client/chat/stat-dialog.d.ts +3 -3
- package/lib/types/client/chat/stat-dialog.d.ts.map +1 -1
- package/lib/types/client/chat/stat-dialog.js.map +1 -1
- package/lib/types/client/chat/step-process.d.ts +18 -1
- package/lib/types/client/chat/step-process.d.ts.map +1 -1
- package/lib/types/client/chat/step-process.js.map +1 -1
- package/lib/types/client/chat/text-interaction.d.ts +1 -1
- package/lib/types/client/chat/text-interaction.d.ts.map +1 -1
- package/lib/types/client/chat/text-interaction.js.map +1 -1
- package/lib/types/client/chat/text-selection.d.ts.map +1 -1
- package/lib/types/client/chat/text-selection.js.map +1 -1
- package/lib/types/client/chat/use-chat-scroll.d.ts +2 -2
- package/lib/types/client/chat/use-chat-scroll.d.ts.map +1 -1
- package/lib/types/client/chat/use-chat-viewport.d.ts +2 -2
- package/lib/types/client/chat/use-chat-viewport.d.ts.map +1 -1
- package/lib/types/client/chat/use-chat-viewport.js.map +1 -1
- package/lib/types/client/chat/use-process-scroll.d.ts +1 -1
- package/lib/types/client/chat/use-process-scroll.d.ts.map +1 -1
- package/lib/types/client/chat/use-process-scroll.js.map +1 -1
- package/lib/types/client/contract/chat-nodes.d.ts +4 -0
- package/lib/types/client/contract/chat-nodes.d.ts.map +1 -1
- package/lib/types/client/contract/chat-nodes.js.map +1 -1
- package/lib/types/client/contract/chat-visibility.d.ts +2 -2
- package/lib/types/client/contract/chat-visibility.js.map +1 -1
- package/lib/types/client/contract/slots.d.ts +15 -5
- package/lib/types/client/contract/slots.d.ts.map +1 -1
- package/lib/types/client/conversation-nodes/request-prompt.d.ts +8 -3
- package/lib/types/client/conversation-nodes/request-prompt.d.ts.map +1 -1
- package/lib/types/client/conversation-nodes/request-prompt.js.map +1 -1
- package/lib/types/client/conversation-nodes/retry.d.ts.map +1 -1
- package/lib/types/client/conversation-nodes/retry.js.map +1 -1
- package/lib/types/client/conversation-nodes/tool.d.ts +18 -3
- package/lib/types/client/conversation-nodes/tool.d.ts.map +1 -1
- package/lib/types/client/conversation-nodes/tool.js.map +1 -1
- package/lib/types/client/fence/FenceLayers.d.ts +1 -1
- package/lib/types/client/fence/FenceLayers.d.ts.map +1 -1
- package/lib/types/client/fence/FenceLayers.js.map +1 -1
- package/lib/types/client/locale.d.ts +96 -0
- package/lib/types/client/locale.d.ts.map +1 -1
- package/lib/types/client/locale.js.map +1 -1
- package/lib/types/client/markdown-labels.d.ts +1 -1
- package/lib/types/client/markdown-labels.d.ts.map +1 -1
- package/lib/types/client/settings/LinkOpeningRow.d.ts +2 -2
- package/lib/types/client/settings/LinkOpeningRow.d.ts.map +1 -1
- package/lib/types/client/settings/PerformanceUsageRow.d.ts +2 -2
- package/lib/types/client/settings/PerformanceUsageRow.d.ts.map +1 -1
- package/lib/types/client/settings/PreferenceRow.js.map +1 -1
- package/lib/types/client/settings/TranscriptViewRow.d.ts +2 -2
- package/lib/types/client/settings/TranscriptViewRow.d.ts.map +1 -1
- package/package.json +46 -46
- package/src/client/apply.ts +9 -9
- package/src/client/chat/ApprovalCommand.tsx +1 -1
- package/src/client/chat/AssistantMarkdown.module.css +10 -16
- package/src/client/chat/AssistantMarkdown.tsx +3 -3
- package/src/client/chat/AssistantNodeView.tsx +1 -1
- package/src/client/chat/ChatAside.tsx +1 -1
- package/src/client/chat/ChatFlow.tsx +2 -2
- package/src/client/chat/ChatGroupSeat.tsx +10 -6
- package/src/client/chat/ChatNodeSeat.tsx +12 -4
- package/src/client/chat/ChatView.module.css +30 -9
- package/src/client/chat/ChatView.tsx +5 -4
- package/src/client/chat/CommandNodeView.tsx +1 -1
- package/src/client/chat/CommandStatusRow.tsx +1 -1
- package/src/client/chat/CompactionItem.tsx +1 -1
- package/src/client/chat/ContextBody.module.css +8 -0
- package/src/client/chat/ContextBody.tsx +32 -2
- package/src/client/chat/ContextInjectionRow.tsx +1 -1
- package/src/client/chat/MessageIconActions.module.css +7 -0
- package/src/client/chat/MessageIconActions.tsx +1 -1
- package/src/client/chat/MessageItem.module.css +40 -48
- package/src/client/chat/MessageItem.tsx +58 -26
- package/src/client/chat/QuotaNoticeHost.tsx +1 -1
- package/src/client/chat/ReasoningContent.tsx +2 -2
- package/src/client/chat/ReasoningRow.tsx +2 -2
- package/src/client/chat/RunningStatus.tsx +1 -1
- package/src/client/chat/StatsPills.tsx +2 -2
- package/src/client/chat/SystemPromptRow.tsx +23 -7
- package/src/client/chat/TurnNavigator.module.css +1 -1
- package/src/client/chat/TurnProcessNodeView.tsx +1 -1
- package/src/client/chat/TurnTailNodeView.tsx +1 -1
- package/src/client/chat/TurnTriggerNodeView.tsx +1 -1
- package/src/client/chat/TurnUsagePanel.tsx +1 -1
- package/src/client/chat/UserContent.tsx +2 -2
- package/src/client/chat/flow-motion.ts +3 -1
- package/src/client/chat/message-chrome.ts +1 -1
- package/src/client/chat/searchable-hidden.ts +1 -1
- package/src/client/chat/stat-dialog.module.css +8 -6
- package/src/client/chat/stat-dialog.ts +5 -5
- package/src/client/chat/step-process.ts +33 -1
- package/src/client/chat/text-interaction.ts +6 -6
- package/src/client/chat/text-selection.ts +13 -10
- package/src/client/chat/use-chat-scroll.ts +2 -2
- package/src/client/chat/use-chat-viewport.ts +12 -11
- package/src/client/chat/use-process-scroll.ts +1 -1
- package/src/client/contract/chat-nodes.ts +4 -0
- package/src/client/contract/chat-visibility.ts +3 -3
- package/src/client/contract/slots.ts +15 -5
- package/src/client/conversation-nodes/README.i18n.yaml +2 -2
- package/src/client/conversation-nodes/README.md +3 -3
- package/src/client/conversation-nodes/README.zh.md +3 -3
- package/src/client/conversation-nodes/request-prompt.ts +16 -6
- package/src/client/conversation-nodes/retry.ts +19 -1
- package/src/client/conversation-nodes/tool.ts +49 -28
- package/src/client/conversation-nodes/turn-process.ts +1 -1
- package/src/client/fence/FenceLayers.tsx +2 -2
- package/src/client/locale.ts +96 -0
- package/src/client/markdown-labels.ts +1 -1
- package/src/client/model/tool-call-tree.ts +1 -1
- package/src/client/settings/LinkOpeningRow.tsx +2 -2
- package/src/client/settings/PerformanceUsageRow.tsx +2 -2
- package/src/client/settings/PreferenceRow.tsx +1 -1
- package/src/client/settings/TranscriptViewRow.tsx +2 -2
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.3-alpha.
|
|
4
|
+
"version": "0.2.3-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -50,56 +50,56 @@
|
|
|
50
50
|
},
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@deepseek-ai/cordis": "~4.2.0-alpha.
|
|
53
|
+
"@deepseek-ai/cordis": "~4.2.0-alpha.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@deepseek-ai/cordis": "~4.2.0-alpha.
|
|
57
|
-
"@deepseek-ai/dsh-agent": "0.2.3-alpha.
|
|
58
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.3-alpha.
|
|
59
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.3-alpha.
|
|
60
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.3-alpha.
|
|
61
|
-
"@deepseek-ai/dsh-api-workspace-files": "0.2.3-alpha.
|
|
62
|
-
"@deepseek-ai/dsh-attachment": "0.2.3-alpha.
|
|
63
|
-
"@deepseek-ai/dsh-brand": "0.2.3-alpha.
|
|
64
|
-
"@deepseek-ai/dsh-client-connection": "0.2.3-alpha.
|
|
65
|
-
"@deepseek-ai/dsh-client-locale": "0.2.3-alpha.
|
|
66
|
-
"@deepseek-ai/dsh-client-store": "0.2.3-alpha.
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-approval": "0.2.3-alpha.
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.3-alpha.
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.3-alpha.
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.3-alpha.
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.3-alpha.
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.3-alpha.
|
|
73
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.3-alpha.
|
|
74
|
-
"@deepseek-ai/dsh-client-ui-session-status": "0.2.3-alpha.
|
|
75
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.3-alpha.
|
|
76
|
-
"@deepseek-ai/dsh-client-ui-sidebar-browser": "0.2.3-alpha.
|
|
77
|
-
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.2.3-alpha.
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.3-alpha.
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.3-alpha.
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-workspace": "0.2.3-alpha.
|
|
81
|
-
"@deepseek-ai/dsh-commands": "0.2.3-alpha.
|
|
82
|
-
"@deepseek-ai/dsh-compaction": "0.2.3-alpha.
|
|
83
|
-
"@deepseek-ai/dsh-llm": "0.2.3-alpha.
|
|
84
|
-
"@deepseek-ai/dsh-llm-retry": "0.2.3-alpha.
|
|
85
|
-
"@deepseek-ai/dsh-session": "0.2.3-alpha.
|
|
86
|
-
"@deepseek-ai/dsh-session-stats": "0.2.3-alpha.
|
|
87
|
-
"@deepseek-ai/dsh-session-turn-outline": "0.2.3-alpha.
|
|
88
|
-
"@deepseek-ai/dsh-subagent": "0.2.3-alpha.
|
|
89
|
-
"@deepseek-ai/dsh-token-meter": "0.2.3-alpha.
|
|
90
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.2.3-alpha.
|
|
91
|
-
"@deepseek-ai/dsh-tool-
|
|
92
|
-
"@deepseek-ai/dsh-util-values": "0.2.3-alpha.
|
|
56
|
+
"@deepseek-ai/cordis": "~4.2.0-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-agent": "0.2.3-alpha.3",
|
|
58
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.3-alpha.3",
|
|
59
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.3-alpha.3",
|
|
60
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.3-alpha.3",
|
|
61
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.2.3-alpha.3",
|
|
62
|
+
"@deepseek-ai/dsh-attachment": "0.2.3-alpha.3",
|
|
63
|
+
"@deepseek-ai/dsh-brand": "0.2.3-alpha.3",
|
|
64
|
+
"@deepseek-ai/dsh-client-connection": "0.2.3-alpha.3",
|
|
65
|
+
"@deepseek-ai/dsh-client-locale": "0.2.3-alpha.3",
|
|
66
|
+
"@deepseek-ai/dsh-client-store": "0.2.3-alpha.3",
|
|
67
|
+
"@deepseek-ai/dsh-client-ui-approval": "0.2.3-alpha.3",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.3-alpha.3",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.3-alpha.3",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.3-alpha.3",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.3-alpha.3",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.3-alpha.3",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.3-alpha.3",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-session-status": "0.2.3-alpha.3",
|
|
75
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.3-alpha.3",
|
|
76
|
+
"@deepseek-ai/dsh-client-ui-sidebar-browser": "0.2.3-alpha.3",
|
|
77
|
+
"@deepseek-ai/dsh-client-ui-sidebar-documentpreview": "0.2.3-alpha.3",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.3-alpha.3",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.3-alpha.3",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-workspace": "0.2.3-alpha.3",
|
|
81
|
+
"@deepseek-ai/dsh-commands": "0.2.3-alpha.3",
|
|
82
|
+
"@deepseek-ai/dsh-compaction": "0.2.3-alpha.3",
|
|
83
|
+
"@deepseek-ai/dsh-llm": "0.2.3-alpha.3",
|
|
84
|
+
"@deepseek-ai/dsh-llm-retry": "0.2.3-alpha.3",
|
|
85
|
+
"@deepseek-ai/dsh-session": "0.2.3-alpha.3",
|
|
86
|
+
"@deepseek-ai/dsh-session-stats": "0.2.3-alpha.3",
|
|
87
|
+
"@deepseek-ai/dsh-session-turn-outline": "0.2.3-alpha.3",
|
|
88
|
+
"@deepseek-ai/dsh-subagent": "0.2.3-alpha.3",
|
|
89
|
+
"@deepseek-ai/dsh-token-meter": "0.2.3-alpha.3",
|
|
90
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.3-alpha.3",
|
|
91
|
+
"@deepseek-ai/dsh-tool-registry-ptc": "0.2.3-alpha.3",
|
|
92
|
+
"@deepseek-ai/dsh-util-values": "0.2.3-alpha.3",
|
|
93
93
|
"@tanstack/react-virtual": "3.14.10",
|
|
94
|
-
"react": "^
|
|
95
|
-
"react-dom": "^
|
|
96
|
-
"@deepseek-ai/dsh-settings": "0.2.3-alpha.
|
|
97
|
-
"@deepseek-ai/dsh-client-product-analytics": "0.2.3-alpha.
|
|
98
|
-
"@deepseek-ai/dsh-client-ui-file-drag": "0.2.3-alpha.
|
|
99
|
-
"@deepseek-ai/dsh-client-ui-context-menu": "0.2.3-alpha.
|
|
94
|
+
"react": "^19.3.1",
|
|
95
|
+
"react-dom": "^19.3.1",
|
|
96
|
+
"@deepseek-ai/dsh-settings": "0.2.3-alpha.3",
|
|
97
|
+
"@deepseek-ai/dsh-client-product-analytics": "0.2.3-alpha.3",
|
|
98
|
+
"@deepseek-ai/dsh-client-ui-file-drag": "0.2.3-alpha.3",
|
|
99
|
+
"@deepseek-ai/dsh-client-ui-context-menu": "0.2.3-alpha.3"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@deepseek-ai/schemastery": "~3.20.0-alpha.
|
|
102
|
+
"@deepseek-ai/schemastery": "~3.20.0-alpha.2"
|
|
103
103
|
},
|
|
104
104
|
"files": [
|
|
105
105
|
"locale/*.json",
|
package/src/client/apply.ts
CHANGED
|
@@ -171,10 +171,10 @@ export function apply(ctx: Context): void {
|
|
|
171
171
|
getSnapshot: () => tabs.get('browser') !== undefined,
|
|
172
172
|
subscribe: listener => tabs.subscribe(listener),
|
|
173
173
|
}
|
|
174
|
-
scope.slots.inject('settings.general.item', () => scope.slots.register({
|
|
175
|
-
name: 'settings.general.item',
|
|
174
|
+
scope.slots.inject('settings.general.group.interaction.item', () => scope.slots.register({
|
|
175
|
+
name: 'settings.general.group.interaction.item',
|
|
176
176
|
id: 'link-opening',
|
|
177
|
-
order:
|
|
177
|
+
order: 10,
|
|
178
178
|
locale: NS,
|
|
179
179
|
inject: (): LinkOpeningRowInjected => ({
|
|
180
180
|
hooks: { linkOpening, browserAvailable },
|
|
@@ -198,8 +198,8 @@ export function apply(ctx: Context): void {
|
|
|
198
198
|
children: { 'conversation.chat.user.images': { kind: 'single', scope: 'session' } },
|
|
199
199
|
}, UserContent)
|
|
200
200
|
|
|
201
|
-
ctx.slots.inject('settings.general.item', () => ctx.slots.register({
|
|
202
|
-
name: 'settings.general.item',
|
|
201
|
+
ctx.slots.inject('settings.general.group.display.item', () => ctx.slots.register({
|
|
202
|
+
name: 'settings.general.group.display.item',
|
|
203
203
|
id: 'performance-usage',
|
|
204
204
|
order: 30,
|
|
205
205
|
locale: NS,
|
|
@@ -209,8 +209,8 @@ export function apply(ctx: Context): void {
|
|
|
209
209
|
}),
|
|
210
210
|
}, PerformanceUsageRow))
|
|
211
211
|
|
|
212
|
-
ctx.slots.inject('settings.general.item', () => ctx.slots.register({
|
|
213
|
-
name: 'settings.general.item',
|
|
212
|
+
ctx.slots.inject('settings.general.group.display.item', () => ctx.slots.register({
|
|
213
|
+
name: 'settings.general.group.display.item',
|
|
214
214
|
id: 'transcript-view',
|
|
215
215
|
order: 12,
|
|
216
216
|
locale: NS,
|
|
@@ -321,9 +321,9 @@ export function apply(ctx: Context): void {
|
|
|
321
321
|
forkAt: (seq) => {
|
|
322
322
|
const turn = [...chat.getSnapshot().timeline.turns.values()].find(turn => turn.end?.seq === seq)
|
|
323
323
|
const messageId = turn?.data.get('turn-tail')?.closing?.finalNode.messageId
|
|
324
|
-
ctx.
|
|
324
|
+
ctx.uiWorkspace.forkSession(sessionId, (childId) => {
|
|
325
325
|
ctx.get('productAnalytics')?.track('branch_session_click', { session_id: childId, parent_session_id: sessionId, ...messageId === undefined ? {} : { parent_message_id: messageId }, click_position: 'footer' })
|
|
326
|
-
} })
|
|
326
|
+
}, { atSeq: seq })
|
|
327
327
|
.then((childId) => { ctx.uiWorkspace.openSession(childId) })
|
|
328
328
|
.catch(() => {
|
|
329
329
|
// Fork or child-title failure leaves the source view unchanged.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Chat-owned approval detail resolving a correlated Tool call's command. */
|
|
2
|
-
import type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
|
|
2
|
+
import type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots/client'
|
|
3
3
|
import type {} from '@deepseek-ai/dsh-client-ui-approval/client'
|
|
4
4
|
import type { ChatNode } from '../contract/chat-nodes.ts'
|
|
5
5
|
|
|
@@ -28,30 +28,24 @@
|
|
|
28
28
|
--dsh-assistant-block-gap: 4px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
/* Wide markdown tables (the renderer's ≥4-column md-table-wide hook)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Percentages resolve against the wrapper's containing block, so a table
|
|
40
|
-
indented inside a list still reaches the same transcript edges. */
|
|
31
|
+
/* Wide markdown tables (the renderer's ≥4-column md-table-wide hook) start
|
|
32
|
+
at their normal x and extend right to the transcript's edge instead of
|
|
33
|
+
clipping at the 748px message column, so the table, its scrollbar and
|
|
34
|
+
its scrolled content all start at the message column's left edge. 100cqw
|
|
35
|
+
(the ChatView scroll container) gives the transcript width.
|
|
36
|
+
`--dsh-table-spare` clamps to zero when the transcript is narrower than
|
|
37
|
+
the message column, so narrow viewports keep the plain in-column scroll.
|
|
38
|
+
A table indented inside a list keeps its indentation. */
|
|
41
39
|
.body :global(.md-table-wide) {
|
|
42
40
|
--dsh-table-spare: max(0px, calc((100cqw - var(--dsh-chat-content-width)) / 2));
|
|
43
|
-
|
|
44
|
-
box-sizing: border-box;
|
|
45
|
-
width: calc(100% + var(--dsh-table-lead) + var(--dsh-table-spare));
|
|
41
|
+
width: calc(100% + var(--dsh-table-spare));
|
|
46
42
|
/* The base .tableScroll caps at the column (max-width: 100%); the breakout
|
|
47
43
|
is exactly the case that must exceed it. */
|
|
48
44
|
max-width: none;
|
|
49
|
-
margin-left: calc(-1 * var(--dsh-table-lead));
|
|
50
|
-
padding-left: var(--dsh-table-lead);
|
|
51
45
|
}
|
|
52
46
|
|
|
53
47
|
/* Only the painted table outranks Conversation's z-index 0 width handle. The
|
|
54
|
-
|
|
48
|
+
scroll wrapper's transparent area right of a fitting table stays below,
|
|
55
49
|
so a fitting four-column table does not disable the surrounding gutter. */
|
|
56
50
|
.body :global(.md-table-wide) > table {
|
|
57
51
|
position: relative;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment, memo, useMemo } from 'react'
|
|
2
2
|
import { fileMediaUrl } from '@deepseek-ai/dsh-util-workspace-path'
|
|
3
|
-
import type { PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots'
|
|
3
|
+
import type { PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots/client'
|
|
4
4
|
import type { ReactNode } from 'react'
|
|
5
|
-
import { JsonBlock, MarkdownText } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
6
|
-
import type { MarkdownFileMentions, MarkdownPathImages } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
5
|
+
import { JsonBlock, MarkdownText } from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
6
|
+
import type { MarkdownFileMentions, MarkdownPathImages } from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
7
7
|
import type { ChatNodeOwnerProps, ChatViewSlotProps, UseDisclosure, UsePresentation, UseGroupAction } from '../contract/slots.ts'
|
|
8
8
|
import type { AssistantBlock } from '../contract/snapshot.ts'
|
|
9
9
|
import { markdownLabels } from '../markdown-labels.ts'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo, useCallback, useMemo } from 'react'
|
|
2
|
-
import type { InjectFace, PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots'
|
|
2
|
+
import type { InjectFace, PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots/client'
|
|
3
3
|
import type { ChatFileMentions, ChatNodeViewProps, PresentationInjected, TurnTailOwnerProps } from '../contract/slots.ts'
|
|
4
4
|
import { AssistantMarkdown } from './AssistantMarkdown.tsx'
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The Chat View's aside layer: one Session-level occupant beside the transcript, which the layer's stylesheet tells the end gutter. */
|
|
2
2
|
import { memo } from 'react'
|
|
3
|
-
import type { PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots'
|
|
3
|
+
import type { PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots/client'
|
|
4
4
|
import css from './ChatView.module.css'
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -27,7 +27,7 @@ export const ChatFlow = memo(function ChatFlow({
|
|
|
27
27
|
entries, pendingInputs, lastInputTurn, deferCollapse,
|
|
28
28
|
useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useConnectionState,
|
|
29
29
|
useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction,
|
|
30
|
-
cwd, openFile, inspectCall, forkAt, loadImage,
|
|
30
|
+
cwd, openFile, inspectCall, inspectRequest, forkAt, loadImage,
|
|
31
31
|
}: ChatFlowSlotProps) {
|
|
32
32
|
const nodeStore = useChat(snapshot => snapshot.nodes)
|
|
33
33
|
const running = useSession(snapshot => snapshot.running)
|
|
@@ -47,7 +47,7 @@ export const ChatFlow = memo(function ChatFlow({
|
|
|
47
47
|
const seatProps = {
|
|
48
48
|
nodeStore, useChatNode, useChatNodeBottom, useChatNodeProcess, usePresentation,
|
|
49
49
|
useStore, actions, renderSlot, t, useGroupAction, deferCollapse,
|
|
50
|
-
cwd, openFile, inspectCall, forkAt, loadImage,
|
|
50
|
+
cwd, openFile, inspectCall, inspectRequest, forkAt, loadImage,
|
|
51
51
|
}
|
|
52
52
|
const rows = entries.map((entry) => {
|
|
53
53
|
switch (entry.kind) {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
IconChevronUpOutlineRegular, IconCodeOutlineRegular, IconContextInjectionOutlineRegular, IconEditOutlineRegular,
|
|
6
6
|
IconGlobeOutlineRegular, IconPlanOutlineRegular, IconQuestionOutlineRegular, IconSearchOutlineRegular, IconSparkleRegular,
|
|
7
7
|
IconThinkOutlineRegular, TextShimmer,
|
|
8
|
-
} from '@deepseek-ai/dsh-client-ui-primitives'
|
|
8
|
+
} from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
9
9
|
import type { GroupKey, NodeReference } from '@deepseek-ai/dsh-client-ui-conversation/client'
|
|
10
10
|
import type { ProcessActivity, RunningProcessActivity } from '../contract/process-groups.ts'
|
|
11
11
|
import type { ChatStoreState } from '../contract/store.ts'
|
|
@@ -14,7 +14,7 @@ import { turnProcessOpen } from '../stores.ts'
|
|
|
14
14
|
import { ChatNodeSeat } from './ChatNodeSeat.tsx'
|
|
15
15
|
import { hiddenOrCollapsing } from './flow-motion.ts'
|
|
16
16
|
import { chatRenderKey } from './render-entry.ts'
|
|
17
|
-
import { processTitle } from './step-process.ts'
|
|
17
|
+
import { processTitle, stepRunsGrouped, thinkingTitle } from './step-process.ts'
|
|
18
18
|
import { useDisclosure } from './use-disclosure.ts'
|
|
19
19
|
import { useProcessScroll } from './use-process-scroll.ts'
|
|
20
20
|
import css from './ChatGroupSeat.module.css'
|
|
@@ -33,6 +33,8 @@ interface LiveProcessTitle {
|
|
|
33
33
|
readonly activity: RunningProcessActivity | 'thinking'
|
|
34
34
|
readonly detail: string
|
|
35
35
|
readonly preparing: boolean
|
|
36
|
+
/** Thinking title composed from the counts when this title was desired; empty while a tool is live. */
|
|
37
|
+
readonly thinking: string
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
const PROCESS_ICONS: Record<ProcessTitleActivity, ReactNode> = {
|
|
@@ -55,6 +57,7 @@ const PROCESS_ICONS: Record<ProcessTitleActivity, ReactNode> = {
|
|
|
55
57
|
|
|
56
58
|
function sameLiveProcessTitle(left: LiveProcessTitle, right: LiveProcessTitle): boolean {
|
|
57
59
|
return left.activity === right.activity && left.detail === right.detail && left.preparing === right.preparing
|
|
60
|
+
&& left.thinking === right.thinking
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
function useStableLiveProcessTitle(desired: LiveProcessTitle, active: boolean): LiveProcessTitle {
|
|
@@ -78,7 +81,7 @@ function useStableLiveProcessTitle(desired: LiveProcessTitle, active: boolean):
|
|
|
78
81
|
}
|
|
79
82
|
const timer = setTimeout(commit, remaining)
|
|
80
83
|
return () => { clearTimeout(timer) }
|
|
81
|
-
}, [active, desired.activity, desired.detail, desired.preparing])
|
|
84
|
+
}, [active, desired.activity, desired.detail, desired.preparing, desired.thinking])
|
|
82
85
|
return active ? displayed : desired
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -105,11 +108,12 @@ const ProcessGroupHeader = memo(function ProcessGroupHeader({ groupKey, useChatG
|
|
|
105
108
|
activity: data?.summary.running ?? 'thinking',
|
|
106
109
|
detail: data?.summary.runningDetail ?? '',
|
|
107
110
|
preparing: data?.summary.preparing === true,
|
|
111
|
+
thinking: data === undefined || data.closed || data.summary.running !== undefined ? '' : thinkingTitle(data.summary, t),
|
|
108
112
|
}, data !== undefined && !data.closed)
|
|
109
113
|
if (data === undefined) return null
|
|
110
114
|
const label = data.closed ? processTitle(data.summary, t)
|
|
111
115
|
: live.preparing ? t(`message.stepProcess.prepare.${live.activity === 'thinking' ? 'tools' : live.activity}`)
|
|
112
|
-
: t(`message.stepProcess.${live.activity}`)
|
|
116
|
+
: live.activity === 'thinking' ? live.thinking : t(`message.stepProcess.${live.activity}`)
|
|
113
117
|
const detail = detailed && !data.closed ? live.detail : ''
|
|
114
118
|
const title = detail === '' ? label : `${label}${t('message.turnProcess.separator')}${detail}`
|
|
115
119
|
const activity = data.closed ? data.summary.counts[0]?.kind ?? 'thinking' : live.activity
|
|
@@ -145,8 +149,8 @@ export const ChatGroupSeat = memo(function ChatGroupSeat({ groupKey, useChatGrou
|
|
|
145
149
|
return location?.kind === 'turn' || location?.kind === 'step' ? location.turn : undefined
|
|
146
150
|
})
|
|
147
151
|
// Detailed keeps the latest completed Turn flat, like a running one, until the next input.
|
|
148
|
-
const grouped = props.usePresentation(policy =>
|
|
149
|
-
|
|
152
|
+
const grouped = props.usePresentation(policy =>
|
|
153
|
+
stepRunsGrouped(policy.stepGrouping, turnLocation?.status === 'open', deferCollapse))
|
|
150
154
|
const reason = turnLocation?.end?.data.reason.kind
|
|
151
155
|
const alwaysOpen = presentation?.turnClosed === false || presentation?.hasInterleavedInput === true
|
|
152
156
|
|| reason === 'aborted' || reason === 'interrupted' || reason === 'error'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo, useCallback, useEffect, useMemo, useState } from 'react'
|
|
2
|
-
import { JsonBlock } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
2
|
+
import { JsonBlock } from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
3
3
|
import { createSnapshotStore } from '@deepseek-ai/dsh-client-store'
|
|
4
4
|
import type { ConversationLocationDataStore, ConversationTurnDataMap } from '@deepseek-ai/dsh-client-ui-conversation/client'
|
|
5
5
|
import type { ChatNodeHookContext, ChatNodeOwnerProps, ChatFlowSlotProps, UsePresentation } from '../contract/slots.ts'
|
|
@@ -10,6 +10,7 @@ import { isAtOrOutside } from '../contract/group-tree.ts'
|
|
|
10
10
|
import { turnProcessAlwaysOpen } from '../contract/turn-process.ts'
|
|
11
11
|
import { turnProcessOpen } from '../stores.ts'
|
|
12
12
|
import { hiddenOrCollapsing } from './flow-motion.ts'
|
|
13
|
+
import { stepRunsGrouped } from './step-process.ts'
|
|
13
14
|
import css from './ChatView.module.css'
|
|
14
15
|
|
|
15
16
|
interface ChatNodeSeatProps extends ChatNodeOwnerProps {
|
|
@@ -49,7 +50,7 @@ function turnOf(node: ChatNode | undefined): number | undefined {
|
|
|
49
50
|
*/
|
|
50
51
|
export const ChatNodeSeat = memo(function ChatNodeSeat({
|
|
51
52
|
nodeKey, groupPart, useChatNode, useChatNodeProcess, usePresentation,
|
|
52
|
-
cwd, openFile, inspectCall, forkAt,
|
|
53
|
+
cwd, openFile, inspectCall, inspectRequest, forkAt,
|
|
53
54
|
loadImage, useStore, actions, renderSlot, t, useChatNodeBottom, deferCollapse, useGroupAction,
|
|
54
55
|
}: ChatNodeSeatProps) {
|
|
55
56
|
const bottom = useChatNodeBottom(nodeKey)
|
|
@@ -129,6 +130,11 @@ export const ChatNodeSeat = memo(function ChatNodeSeat({
|
|
|
129
130
|
disclosureReset.set(disclosureReset.getSnapshot() + 1)
|
|
130
131
|
}
|
|
131
132
|
}, [processMember, processHidden, wrapperRef, disclosureReset])
|
|
133
|
+
const turnOpen = routedNode?.location.kind === 'turn' || routedNode?.location.kind === 'step'
|
|
134
|
+
? routedNode.location.turn.status === 'open'
|
|
135
|
+
: false
|
|
136
|
+
const stepRunsGroupedHere = usePresentation(policy =>
|
|
137
|
+
stepRunsGrouped(policy.stepGrouping, turnOpen, bottom === true && deferCollapse))
|
|
132
138
|
const owner = useMemo<ChatNodeOwnerProps | null>(() => node === undefined
|
|
133
139
|
? null
|
|
134
140
|
: {
|
|
@@ -136,12 +142,14 @@ export const ChatNodeSeat = memo(function ChatNodeSeat({
|
|
|
136
142
|
cwd,
|
|
137
143
|
openFile,
|
|
138
144
|
inspectCall,
|
|
145
|
+
inspectRequest,
|
|
139
146
|
forkAt,
|
|
140
147
|
loadImage,
|
|
141
148
|
turnProcess,
|
|
149
|
+
stepRunsGrouped: stepRunsGroupedHere,
|
|
142
150
|
}, [
|
|
143
|
-
node, groupPart, cwd, openFile, inspectCall, forkAt,
|
|
144
|
-
loadImage, turnProcess,
|
|
151
|
+
node, groupPart, cwd, openFile, inspectCall, inspectRequest, forkAt,
|
|
152
|
+
loadImage, turnProcess, stepRunsGroupedHere,
|
|
145
153
|
])
|
|
146
154
|
if (routedNode === undefined || owner === null) return null
|
|
147
155
|
// Runtime dispatch owns the correlation: every Node's discriminant is the
|
|
@@ -37,24 +37,25 @@
|
|
|
37
37
|
container-type: inline-size;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.scroll
|
|
41
|
-
:global([data-conversation-scroll]):has(.root) {
|
|
40
|
+
.scroll {
|
|
42
41
|
overscroll-behavior-y: none;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
|
-
.root[data-chat-following-tail] .scroll
|
|
46
|
-
:global([data-conversation-scroll]):has(.root[data-chat-following-tail]) {
|
|
44
|
+
.root[data-chat-following-tail] .scroll {
|
|
47
45
|
overflow-anchor: none;
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
/* Inside a Conversation scrollport the root asks that scrollport for the same
|
|
49
|
+
two behaviors with ui-conversation's data-conversation-overscroll and
|
|
50
|
+
data-conversation-scroll-anchor marks, and the transcript grows with it. */
|
|
51
|
+
.frame:is(:global([data-conversation-scroll]) *),
|
|
52
|
+
.root:is(:global([data-conversation-scroll]) *) {
|
|
52
53
|
flex: 0 0 auto;
|
|
53
54
|
min-height: auto;
|
|
54
55
|
height: auto;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
:global([data-conversation-scroll])
|
|
58
|
+
.scroll:is(:global([data-conversation-scroll]) *) {
|
|
58
59
|
/* A host scrollport still owns vertical overflow; horizontal overflow is
|
|
59
60
|
clipped for the same reason as the self-scrolled case above. */
|
|
60
61
|
overflow-x: clip;
|
|
@@ -97,6 +98,26 @@
|
|
|
97
98
|
--dsh-chat-flow-gap: 12px;
|
|
98
99
|
}
|
|
99
100
|
|
|
101
|
+
/* A message bubble below a process row takes the 12px response gap. The
|
|
102
|
+
listed process rows always render content, so none of them is an empty
|
|
103
|
+
Seat. */
|
|
104
|
+
.flowItem[data-chat-flow-kind="question-reply"],
|
|
105
|
+
:is(.column, :global([data-slot="conversation.chat.flow"])) > :is([data-chat-group-key], .flowItem:is([data-chat-flow-kind="compaction"], [data-chat-flow-kind="manual-compaction"], [data-chat-flow-kind="command"], [data-chat-flow-kind="context"], [data-chat-flow-kind="model-retry"], [data-chat-flow-kind="turn-error"], [data-chat-flow-kind="turn-max-tokens"])):not([hidden])
|
|
106
|
+
+ .flowItem[data-chat-flow-kind="user"] {
|
|
107
|
+
--dsh-chat-flow-gap: 12px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Below a message's actions row, whose 28px height separates the two, the
|
|
111
|
+
next question reply or response takes the 4px process gap. These rules
|
|
112
|
+
override the 12px set above and by the response rule; in a folded Turn a
|
|
113
|
+
hidden process group sits between the two rows. */
|
|
114
|
+
:is(.column, :global([data-slot="conversation.chat.flow"])) > :is([data-chat-flow-kind="user"], [data-chat-flow-kind="steering"], [data-chat-flow-kind="question-reply"]) + .flowItem[data-chat-flow-kind="question-reply"],
|
|
115
|
+
:is(.column, :global([data-slot="conversation.chat.flow"])) > :is([data-chat-flow-kind="user"], [data-chat-flow-kind="steering"], [data-chat-flow-kind="question-reply"]) + [hidden] + .flowItem[data-chat-flow-kind="question-reply"],
|
|
116
|
+
:is(.column, :global([data-slot="conversation.chat.flow"])) > [data-chat-flow-kind="question-reply"] + .flowItem[data-chat-group-part="response"],
|
|
117
|
+
:is(.column, :global([data-slot="conversation.chat.flow"])) > [data-chat-flow-kind="question-reply"] + [hidden] + .flowItem[data-chat-group-part="response"] {
|
|
118
|
+
--dsh-chat-flow-gap: 4px;
|
|
119
|
+
}
|
|
120
|
+
|
|
100
121
|
/* Settled-flow identity boundary. It is neutral until it becomes the natural
|
|
101
122
|
measurement/mount unit for a virtualizer without changing the column gap. */
|
|
102
123
|
.flowItem {
|
|
@@ -386,7 +407,7 @@
|
|
|
386
407
|
);
|
|
387
408
|
}
|
|
388
409
|
|
|
389
|
-
:global([data-conversation-scroll])
|
|
410
|
+
.asideSlot:is(:global([data-conversation-scroll]) *) {
|
|
390
411
|
position: sticky;
|
|
391
412
|
}
|
|
392
413
|
|
|
@@ -410,7 +431,7 @@
|
|
|
410
431
|
pointer-events: none;
|
|
411
432
|
}
|
|
412
433
|
|
|
413
|
-
:global([data-conversation-scroll])
|
|
434
|
+
.toBottomSlot:is(:global([data-conversation-scroll]) *) {
|
|
414
435
|
position: sticky;
|
|
415
436
|
/* Clears the sticky composer stack (docks + input card + stats): the live
|
|
416
437
|
height rides --dsh-composer-height (ConversationRoot's seat observer) so
|
|
@@ -10,7 +10,7 @@ import type { PendingSubmission } from '@deepseek-ai/dsh-api-session-controller/
|
|
|
10
10
|
import {
|
|
11
11
|
Button, FenceCodeBlock, IconChevronDownOutlineRegular, MarkdownDelegateProvider, Modal,
|
|
12
12
|
type MarkdownDelegateFenceInfo, type MarkdownMenuTarget,
|
|
13
|
-
} from '@deepseek-ai/dsh-client-ui-primitives'
|
|
13
|
+
} from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
14
14
|
import { isAtOrOutside } from '../contract/group-tree.ts'
|
|
15
15
|
import type { ChatFlowHookContext, ChatViewSlotProps, OpenFileOptions } from '../contract/slots.ts'
|
|
16
16
|
import type { ChatSnapshot } from '../contract/snapshot.ts'
|
|
@@ -65,7 +65,7 @@ const MOTION_TAIL_MS = 800
|
|
|
65
65
|
export function ChatView({
|
|
66
66
|
useSession, useChat, useConversation, useSessions, renderSlot,
|
|
67
67
|
sessionId, openFile, openExternalLink, resolveFilePath, useContextMenu,
|
|
68
|
-
loadOlder, consumeOlder, loadThrough, loadImage, inspectCall, chatScroll, forkAt,
|
|
68
|
+
loadOlder, consumeOlder, loadThrough, loadImage, inspectCall, inspectRequest, chatScroll, forkAt,
|
|
69
69
|
usePresentation, useProjection, useInteractionIds, dispatchInteraction, t, fileDrag,
|
|
70
70
|
}: ChatViewSlotProps) {
|
|
71
71
|
const { getTriggerProps } = useContextMenu()
|
|
@@ -244,7 +244,8 @@ export function ChatView({
|
|
|
244
244
|
/>
|
|
245
245
|
)}
|
|
246
246
|
<ChatAside renderSlot={renderSlot} />
|
|
247
|
-
<div className={css.root} data-chat-following-tail={scroll.followingTail ? '' : undefined}
|
|
247
|
+
<div className={css.root} data-chat-following-tail={scroll.followingTail ? '' : undefined}
|
|
248
|
+
data-conversation-overscroll="none" data-conversation-scroll-anchor={scroll.followingTail ? 'none' : undefined}>
|
|
248
249
|
<div ref={scroll.listRef} className={css.scroll}>
|
|
249
250
|
<div ref={scroll.columnRef} className={css.column} data-chat-flow=""
|
|
250
251
|
data-chat-motion={deferCompletedTurns && scroll.initialized
|
|
@@ -285,7 +286,7 @@ export function ChatView({
|
|
|
285
286
|
>
|
|
286
287
|
{renderSlot('conversation.chat.flow', {
|
|
287
288
|
entries, pendingInputs, lastInputTurn, deferCollapse,
|
|
288
|
-
cwd, openFile: requestOpenFile, inspectCall, forkAt, loadImage,
|
|
289
|
+
cwd, openFile: requestOpenFile, inspectCall, inspectRequest, forkAt, loadImage,
|
|
289
290
|
}, { hookContext: flowContext })}
|
|
290
291
|
</MarkdownDelegateProvider>
|
|
291
292
|
<div ref={interactionSurfaceRef} className={css.textInteraction} data-text-interaction-surface=""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CompactionRowInjected } from './CompactionItem.tsx'
|
|
2
2
|
import { memo, useMemo } from 'react'
|
|
3
|
-
import type { InjectFace, PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots'
|
|
3
|
+
import type { InjectFace, PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots/client'
|
|
4
4
|
import type {
|
|
5
5
|
ChatNodeViewProps, CommandRowOwnerProps,
|
|
6
6
|
} from '../contract/slots.ts'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { memo, useCallback, useMemo, useState } from 'react'
|
|
2
2
|
import type { ChatViewSlotProps } from '../contract/slots.ts'
|
|
3
|
-
import { DisclosureRow, IconApiOutlineRegular, TextShimmer } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
3
|
+
import { DisclosureRow, IconApiOutlineRegular, TextShimmer } from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
4
4
|
import a11yCss from './accessibility.module.css'
|
|
5
5
|
import css from './CommandStatusRow.module.css'
|
|
6
6
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
IconApiOutlineRegular,
|
|
6
6
|
IconChevronRightOutlineRegular,
|
|
7
7
|
Tooltip,
|
|
8
|
-
} from '@deepseek-ai/dsh-client-ui-primitives'
|
|
8
|
+
} from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
9
9
|
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store'
|
|
10
10
|
import type { ChatViewSlotProps } from '../contract/slots.ts'
|
|
11
11
|
import type { CompactionSummaryNode } from '../contract/snapshot.ts'
|
|
@@ -127,6 +127,14 @@
|
|
|
127
127
|
overflow-wrap: anywhere;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
/* system update: a notice the message attaches to one source, above that source's text. */
|
|
131
|
+
.sectionNotice {
|
|
132
|
+
margin: 0;
|
|
133
|
+
color: var(--dsw-alias-label-caption);
|
|
134
|
+
white-space: pre-wrap;
|
|
135
|
+
overflow-wrap: anywhere;
|
|
136
|
+
}
|
|
137
|
+
|
|
130
138
|
/* relay: who sent this, above what they said. */
|
|
131
139
|
.relaySender {
|
|
132
140
|
margin: 0 0 6px;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
// even when this UI version has never seen its producer.
|
|
6
6
|
|
|
7
7
|
import type { ReactNode } from 'react'
|
|
8
|
-
import { JsonBlock } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
8
|
+
import { JsonBlock } from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
9
9
|
import type { ChatViewSlotProps } from '../contract/slots.ts'
|
|
10
10
|
import type { ContextMessageNode } from '../contract/snapshot.ts'
|
|
11
|
-
import type { KnownContextForm } from '@deepseek-ai/dsh-client-ui-conversation/client'
|
|
11
|
+
import type { KnownContextForm, SystemMessageSections } from '@deepseek-ai/dsh-client-ui-conversation/client'
|
|
12
12
|
import css from './ContextBody.module.css'
|
|
13
13
|
|
|
14
14
|
/** Model-facing text stays bounded at the disclosure, not at the producer. */
|
|
@@ -410,6 +410,36 @@ export function SnapshotBody({ content, source, t }: {
|
|
|
410
410
|
)
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
+
/**
|
|
414
|
+
* One incremental system message split by the sources it names, in the order the model read them:
|
|
415
|
+
* what each source did, the notices attached to it, then the text the message carries for it.
|
|
416
|
+
* @param props - Section-attributed reading of the message and the locale seat.
|
|
417
|
+
* @returns The system update body.
|
|
418
|
+
*/
|
|
419
|
+
export function SystemSectionsBody({ message, t }: { message: SystemMessageSections; t: Translate }): ReactNode {
|
|
420
|
+
return (
|
|
421
|
+
<>
|
|
422
|
+
{message.reset && (
|
|
423
|
+
<p className={css.catalogNotice} data-system-reset>{t('message.systemPromptReset')}</p>
|
|
424
|
+
)}
|
|
425
|
+
{message.notices.map((notice, index) => (
|
|
426
|
+
<p key={index} className={css.catalogNotice} data-system-notice>{boundedText(notice, t)}</p>
|
|
427
|
+
))}
|
|
428
|
+
<dl className={css.sections} data-system-sections>
|
|
429
|
+
{message.changes.map(change => (
|
|
430
|
+
<div key={change.name} className={css.section} data-system-section={change.change}>
|
|
431
|
+
<dt className={css.sectionName}>{t(`message.systemSection.${change.change}`, { name: change.name })}</dt>
|
|
432
|
+
{change.notices.map((notice, index) => (
|
|
433
|
+
<dd key={index} className={css.sectionNotice} data-system-notice>{boundedText(notice, t)}</dd>
|
|
434
|
+
))}
|
|
435
|
+
{change.text !== '' && <dd className={css.sectionText}>{boundedText(change.text, t)}</dd>}
|
|
436
|
+
</div>
|
|
437
|
+
))}
|
|
438
|
+
</dl>
|
|
439
|
+
</>
|
|
440
|
+
)
|
|
441
|
+
}
|
|
442
|
+
|
|
413
443
|
/**
|
|
414
444
|
* `notice` form: what just happened, with the model-facing text beneath it.
|
|
415
445
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from 'react'
|
|
2
2
|
import type { ChatViewSlotProps } from '../contract/slots.ts'
|
|
3
|
-
import { DisclosureRow, IconBrowseOutlineRegular, IconContextInjectionOutlineRegular, ReferenceIconRegular } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
3
|
+
import { DisclosureRow, IconBrowseOutlineRegular, IconContextInjectionOutlineRegular, ReferenceIconRegular } from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
4
4
|
import type { ContextMessageNode } from '../contract/snapshot.ts'
|
|
5
5
|
import { contextBody } from './ContextBody.tsx'
|
|
6
6
|
import css from './ContextInjectionRow.module.css'
|
|
@@ -58,6 +58,13 @@
|
|
|
58
58
|
):focus-within .actions {
|
|
59
59
|
opacity: 1;
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
/* A slot entry marks an action in progress with data-action-ongoing, such as
|
|
63
|
+
a reply being read aloud. Its row stays revealed so the action can be
|
|
64
|
+
stopped without hovering the row first. */
|
|
65
|
+
[data-actions-reveal='hover'] .actions:has([data-action-ongoing]) {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
61
68
|
}
|
|
62
69
|
|
|
63
70
|
.action {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useId, type ReactNode } from 'react'
|
|
5
5
|
import {
|
|
6
6
|
IconBranchOutlineRegular, IconCheckOutlineRegular, IconCopyOutlineRegular, Tooltip, useClipboardCopy,
|
|
7
|
-
} from '@deepseek-ai/dsh-client-ui-primitives'
|
|
7
|
+
} from '@deepseek-ai/dsh-client-ui-primitives/client'
|
|
8
8
|
import type { ChatViewSlotProps } from '../contract/slots.ts'
|
|
9
9
|
import { formatMessageClock } from './message-chrome.ts'
|
|
10
10
|
import { useCalendarDay } from './use-calendar-day.ts'
|