@deepseek-ai/dsh-client-ui-chat 0.2.2-alpha.3 → 0.2.2-rc.2

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.
Files changed (355) hide show
  1. package/README.i18n.yaml +16 -16
  2. package/README.md +17 -5
  3. package/README.zh.md +17 -5
  4. package/lib/client.js +18 -15587
  5. package/lib/client.js.map +1 -0
  6. package/lib/types/chat-settings.d.ts.map +1 -0
  7. package/lib/types/chat-settings.js.map +1 -0
  8. package/lib/types/client/apply.d.ts.map +1 -0
  9. package/lib/types/client/apply.js.map +1 -0
  10. package/lib/types/client/chat/ApprovalCommand.d.ts +4 -3
  11. package/lib/types/client/chat/ApprovalCommand.d.ts.map +1 -0
  12. package/lib/types/client/chat/ApprovalCommand.js.map +1 -0
  13. package/lib/types/client/chat/AssistantMarkdown.d.ts.map +1 -0
  14. package/lib/types/client/chat/AssistantMarkdown.js.map +1 -0
  15. package/lib/types/client/chat/AssistantNodeView.d.ts.map +1 -0
  16. package/lib/types/client/chat/AssistantNodeView.js.map +1 -0
  17. package/lib/types/client/chat/ChatFlow.d.ts.map +1 -0
  18. package/lib/types/client/chat/ChatFlow.js.map +1 -0
  19. package/lib/types/client/chat/ChatGroupSeat.d.ts.map +1 -0
  20. package/lib/types/client/chat/ChatGroupSeat.js.map +1 -0
  21. package/lib/types/client/chat/ChatNodeSeat.d.ts.map +1 -0
  22. package/lib/types/client/chat/ChatNodeSeat.js.map +1 -0
  23. package/lib/types/client/chat/ChatView.d.ts +1 -1
  24. package/lib/types/client/chat/ChatView.d.ts.map +1 -0
  25. package/lib/types/client/chat/ChatView.js.map +1 -0
  26. package/lib/types/client/chat/CommandNodeView.d.ts.map +1 -0
  27. package/lib/types/client/chat/CommandNodeView.js.map +1 -0
  28. package/lib/types/client/chat/CompactionCommandCard.d.ts.map +1 -0
  29. package/lib/types/client/chat/CompactionCommandCard.js.map +1 -0
  30. package/lib/types/client/chat/CompactionItem.d.ts.map +1 -0
  31. package/lib/types/client/chat/CompactionItem.js.map +1 -0
  32. package/lib/types/client/chat/ContextBody.d.ts.map +1 -0
  33. package/lib/types/client/chat/ContextBody.js.map +1 -0
  34. package/lib/types/client/chat/ContextInjectionRow.d.ts.map +1 -0
  35. package/lib/types/client/chat/ContextInjectionRow.js.map +1 -0
  36. package/lib/types/client/chat/GenericCommandCard.d.ts.map +1 -0
  37. package/lib/types/client/chat/GenericCommandCard.js.map +1 -0
  38. package/lib/types/client/chat/MessageIconActions.d.ts.map +1 -0
  39. package/lib/types/client/chat/MessageIconActions.js.map +1 -0
  40. package/lib/types/client/chat/MessageItem.d.ts.map +1 -0
  41. package/lib/types/client/chat/MessageItem.js.map +1 -0
  42. package/lib/types/client/chat/QuotaNoticeHost.d.ts.map +1 -0
  43. package/lib/types/client/chat/QuotaNoticeHost.js.map +1 -0
  44. package/lib/types/client/chat/ReasoningContent.d.ts.map +1 -0
  45. package/lib/types/client/chat/ReasoningContent.js.map +1 -0
  46. package/lib/types/client/chat/ReasoningRow.d.ts.map +1 -0
  47. package/lib/types/client/chat/ReasoningRow.js.map +1 -0
  48. package/lib/types/client/chat/RunningStatus.d.ts.map +1 -0
  49. package/lib/types/client/chat/RunningStatus.js.map +1 -0
  50. package/lib/types/client/chat/RunningWhaleTail.d.ts.map +1 -0
  51. package/lib/types/client/chat/RunningWhaleTail.js.map +1 -0
  52. package/lib/types/client/chat/StatsPills.d.ts.map +1 -0
  53. package/lib/types/client/chat/StatsPills.js.map +1 -0
  54. package/lib/types/client/chat/SystemPromptRow.d.ts.map +1 -0
  55. package/lib/types/client/chat/SystemPromptRow.js.map +1 -0
  56. package/lib/types/client/chat/TurnNavigator.d.ts.map +1 -0
  57. package/lib/types/client/chat/TurnNavigator.js.map +1 -0
  58. package/lib/types/client/chat/TurnProcessNodeView.d.ts.map +1 -0
  59. package/lib/types/client/chat/TurnProcessNodeView.js.map +1 -0
  60. package/lib/types/client/chat/TurnTailNodeView.d.ts.map +1 -0
  61. package/lib/types/client/chat/TurnTailNodeView.js.map +1 -0
  62. package/lib/types/client/chat/TurnTriggerNodeView.d.ts.map +1 -0
  63. package/lib/types/client/chat/TurnTriggerNodeView.js.map +1 -0
  64. package/lib/types/client/chat/TurnUsagePanel.d.ts.map +1 -0
  65. package/lib/types/client/chat/TurnUsagePanel.js.map +1 -0
  66. package/lib/types/client/chat/UserContent.d.ts.map +1 -0
  67. package/lib/types/client/chat/UserContent.js.map +1 -0
  68. package/lib/types/client/chat/flow-motion.d.ts +2 -0
  69. package/lib/types/client/chat/flow-motion.d.ts.map +1 -0
  70. package/lib/types/client/chat/flow-motion.js.map +1 -0
  71. package/lib/types/client/chat/message-chrome.d.ts.map +1 -0
  72. package/lib/types/client/chat/message-chrome.js.map +1 -0
  73. package/lib/types/client/chat/register-node-renderers.d.ts.map +1 -0
  74. package/lib/types/client/chat/register-node-renderers.js.map +1 -0
  75. package/lib/types/client/chat/render-entry.d.ts.map +1 -0
  76. package/lib/types/client/chat/render-entry.js.map +1 -0
  77. package/lib/types/client/chat/searchable-hidden.d.ts.map +1 -0
  78. package/lib/types/client/chat/searchable-hidden.js.map +1 -0
  79. package/lib/types/client/chat/stat-dialog.d.ts +5 -10
  80. package/lib/types/client/chat/stat-dialog.d.ts.map +1 -0
  81. package/lib/types/client/chat/stat-dialog.js.map +1 -0
  82. package/lib/types/client/chat/step-process.d.ts.map +1 -0
  83. package/lib/types/client/chat/step-process.js.map +1 -0
  84. package/lib/types/client/chat/text-interaction.d.ts.map +1 -0
  85. package/lib/types/client/chat/text-interaction.js.map +1 -0
  86. package/lib/types/client/chat/text-selection.d.ts.map +1 -0
  87. package/lib/types/client/chat/text-selection.js.map +1 -0
  88. package/lib/types/client/chat/token-format.d.ts.map +1 -0
  89. package/lib/types/client/chat/token-format.js.map +1 -0
  90. package/lib/types/client/chat/turn-assistant.d.ts.map +1 -0
  91. package/lib/types/client/chat/turn-assistant.js.map +1 -0
  92. package/lib/types/client/chat/turn-rail-items.d.ts.map +1 -0
  93. package/lib/types/client/chat/turn-rail-items.js.map +1 -0
  94. package/lib/types/client/chat/turn-trigger.d.ts +3 -2
  95. package/lib/types/client/chat/turn-trigger.d.ts.map +1 -0
  96. package/lib/types/client/chat/turn-trigger.js.map +1 -0
  97. package/lib/types/client/chat/use-calendar-day.d.ts.map +1 -0
  98. package/lib/types/client/chat/use-calendar-day.js.map +1 -0
  99. package/lib/types/client/chat/use-chat-navigation.d.ts +21 -5
  100. package/lib/types/client/chat/use-chat-navigation.d.ts.map +1 -0
  101. package/lib/types/client/chat/use-chat-navigation.js.map +1 -0
  102. package/lib/types/client/chat/use-chat-reading.d.ts.map +1 -0
  103. package/lib/types/client/chat/use-chat-reading.js.map +1 -0
  104. package/lib/types/client/chat/use-chat-scroll.d.ts +5 -2
  105. package/lib/types/client/chat/use-chat-scroll.d.ts.map +1 -0
  106. package/lib/types/client/chat/use-chat-scroll.js.map +1 -0
  107. package/lib/types/client/chat/use-chat-viewport.d.ts +53 -0
  108. package/lib/types/client/chat/use-chat-viewport.d.ts.map +1 -0
  109. package/lib/types/client/chat/use-chat-viewport.js.map +1 -0
  110. package/lib/types/client/chat/use-disclosure.d.ts.map +1 -0
  111. package/lib/types/client/chat/use-disclosure.js.map +1 -0
  112. package/lib/types/client/chat/use-process-scroll.d.ts.map +1 -0
  113. package/lib/types/client/chat/use-process-scroll.js.map +1 -0
  114. package/lib/types/client/chat/use-scroll-follow.d.ts.map +1 -0
  115. package/lib/types/client/chat/use-scroll-follow.js.map +1 -0
  116. package/lib/types/client/chat/use-turn-data.d.ts.map +1 -0
  117. package/lib/types/client/chat/use-turn-data.js.map +1 -0
  118. package/lib/types/client/contract/assistant-content.d.ts.map +1 -0
  119. package/lib/types/client/contract/assistant-content.js.map +1 -0
  120. package/lib/types/client/contract/chat-nodes.d.ts.map +1 -0
  121. package/lib/types/client/contract/chat-nodes.js.map +1 -0
  122. package/lib/types/client/contract/chat-visibility.d.ts +2 -2
  123. package/lib/types/client/contract/chat-visibility.d.ts.map +1 -0
  124. package/lib/types/client/contract/chat-visibility.js.map +1 -0
  125. package/lib/types/client/contract/group-tree.d.ts.map +1 -0
  126. package/lib/types/client/contract/group-tree.js.map +1 -0
  127. package/lib/types/client/contract/process-groups.d.ts +6 -3
  128. package/lib/types/client/contract/process-groups.d.ts.map +1 -0
  129. package/lib/types/client/contract/process-groups.js.map +1 -0
  130. package/lib/types/client/contract/slots.d.ts +11 -2
  131. package/lib/types/client/contract/slots.d.ts.map +1 -0
  132. package/lib/types/client/contract/slots.js.map +1 -0
  133. package/lib/types/client/contract/snapshot.d.ts.map +1 -0
  134. package/lib/types/client/contract/snapshot.js.map +1 -0
  135. package/lib/types/client/contract/store.d.ts.map +1 -0
  136. package/lib/types/client/contract/store.js.map +1 -0
  137. package/lib/types/client/contract/turn-metrics.d.ts.map +1 -0
  138. package/lib/types/client/contract/turn-metrics.js.map +1 -0
  139. package/lib/types/client/contract/turn-process.d.ts.map +1 -0
  140. package/lib/types/client/contract/turn-process.js.map +1 -0
  141. package/lib/types/client/conversation-nodes/assistant.d.ts.map +1 -0
  142. package/lib/types/client/conversation-nodes/assistant.js.map +1 -0
  143. package/lib/types/client/conversation-nodes/chat-snapshot-builder.d.ts.map +1 -0
  144. package/lib/types/client/conversation-nodes/chat-snapshot-builder.js.map +1 -0
  145. package/lib/types/client/conversation-nodes/command.d.ts.map +1 -0
  146. package/lib/types/client/conversation-nodes/command.js.map +1 -0
  147. package/lib/types/client/conversation-nodes/common.d.ts.map +1 -0
  148. package/lib/types/client/conversation-nodes/common.js.map +1 -0
  149. package/lib/types/client/conversation-nodes/compaction.d.ts.map +1 -0
  150. package/lib/types/client/conversation-nodes/compaction.js.map +1 -0
  151. package/lib/types/client/conversation-nodes/event-projection.d.ts.map +1 -0
  152. package/lib/types/client/conversation-nodes/event-projection.js.map +1 -0
  153. package/lib/types/client/conversation-nodes/fallback.d.ts.map +1 -0
  154. package/lib/types/client/conversation-nodes/fallback.js.map +1 -0
  155. package/lib/types/client/conversation-nodes/group-tree-segments.d.ts.map +1 -0
  156. package/lib/types/client/conversation-nodes/group-tree-segments.js.map +1 -0
  157. package/lib/types/client/conversation-nodes/inbox.d.ts.map +1 -0
  158. package/lib/types/client/conversation-nodes/inbox.js.map +1 -0
  159. package/lib/types/client/conversation-nodes/message.d.ts +1 -1
  160. package/lib/types/client/conversation-nodes/message.d.ts.map +1 -0
  161. package/lib/types/client/conversation-nodes/message.js.map +1 -0
  162. package/lib/types/client/conversation-nodes/process-activity.d.ts +1 -0
  163. package/lib/types/client/conversation-nodes/process-activity.d.ts.map +1 -0
  164. package/lib/types/client/conversation-nodes/process-activity.js.map +1 -0
  165. package/lib/types/client/conversation-nodes/process-groups.d.ts.map +1 -0
  166. package/lib/types/client/conversation-nodes/process-groups.js.map +1 -0
  167. package/lib/types/client/conversation-nodes/register.d.ts.map +1 -0
  168. package/lib/types/client/conversation-nodes/register.js.map +1 -0
  169. package/lib/types/client/conversation-nodes/request-prompt.d.ts.map +1 -0
  170. package/lib/types/client/conversation-nodes/request-prompt.js.map +1 -0
  171. package/lib/types/client/conversation-nodes/retry.d.ts.map +1 -0
  172. package/lib/types/client/conversation-nodes/retry.js.map +1 -0
  173. package/lib/types/client/conversation-nodes/tool.d.ts.map +1 -0
  174. package/lib/types/client/conversation-nodes/tool.js.map +1 -0
  175. package/lib/types/client/conversation-nodes/turn-error.d.ts.map +1 -0
  176. package/lib/types/client/conversation-nodes/turn-error.js.map +1 -0
  177. package/lib/types/client/conversation-nodes/turn-max-tokens.d.ts.map +1 -0
  178. package/lib/types/client/conversation-nodes/turn-max-tokens.js.map +1 -0
  179. package/lib/types/client/conversation-nodes/turn-navigation.d.ts.map +1 -0
  180. package/lib/types/client/conversation-nodes/turn-navigation.js.map +1 -0
  181. package/lib/types/client/conversation-nodes/turn-process-presentation.d.ts.map +1 -0
  182. package/lib/types/client/conversation-nodes/turn-process-presentation.js.map +1 -0
  183. package/lib/types/client/conversation-nodes/turn-process.d.ts.map +1 -0
  184. package/lib/types/client/conversation-nodes/turn-process.js.map +1 -0
  185. package/lib/types/client/conversation-nodes/turn-tail.d.ts.map +1 -0
  186. package/lib/types/client/conversation-nodes/turn-tail.js.map +1 -0
  187. package/lib/types/client/fence/FenceLayers.d.ts +21 -0
  188. package/lib/types/client/fence/FenceLayers.d.ts.map +1 -0
  189. package/lib/types/client/fence/FenceLayers.js.map +1 -0
  190. package/lib/types/client/fence/register.d.ts +10 -0
  191. package/lib/types/client/fence/register.d.ts.map +1 -0
  192. package/lib/types/client/fence/register.js.map +1 -0
  193. package/lib/types/client/file-path.d.ts.map +1 -0
  194. package/lib/types/client/file-path.js.map +1 -0
  195. package/lib/types/client/index.d.ts +1 -1
  196. package/lib/types/client/index.d.ts.map +1 -0
  197. package/lib/types/client/index.js.map +1 -0
  198. package/lib/types/client/locale.d.ts +96 -0
  199. package/lib/types/client/locale.d.ts.map +1 -0
  200. package/lib/types/client/locale.js.map +1 -0
  201. package/lib/types/client/markdown-labels.d.ts.map +1 -0
  202. package/lib/types/client/markdown-labels.js.map +1 -0
  203. package/lib/types/client/model/conversation-context.d.ts.map +1 -0
  204. package/lib/types/client/model/conversation-context.js.map +1 -0
  205. package/lib/types/client/model/steering-history.d.ts.map +1 -0
  206. package/lib/types/client/model/steering-history.js.map +1 -0
  207. package/lib/types/client/model/tool-call-tree.d.ts.map +1 -0
  208. package/lib/types/client/model/tool-call-tree.js.map +1 -0
  209. package/lib/types/client/performance-usage.d.ts.map +1 -0
  210. package/lib/types/client/performance-usage.js.map +1 -0
  211. package/lib/types/client/presentation-policy.d.ts.map +1 -0
  212. package/lib/types/client/presentation-policy.js.map +1 -0
  213. package/lib/types/client/reasoning-text.d.ts.map +1 -0
  214. package/lib/types/client/reasoning-text.js.map +1 -0
  215. package/lib/types/client/settings/LinkOpeningRow.d.ts.map +1 -0
  216. package/lib/types/client/settings/LinkOpeningRow.js.map +1 -0
  217. package/lib/types/client/settings/PerformanceUsageRow.d.ts.map +1 -0
  218. package/lib/types/client/settings/PerformanceUsageRow.js.map +1 -0
  219. package/lib/types/client/settings/PreferenceRow.d.ts.map +1 -0
  220. package/lib/types/client/settings/PreferenceRow.js.map +1 -0
  221. package/lib/types/client/settings/TranscriptViewRow.d.ts.map +1 -0
  222. package/lib/types/client/settings/TranscriptViewRow.js.map +1 -0
  223. package/lib/types/client/stores.d.ts.map +1 -0
  224. package/lib/types/client/stores.js.map +1 -0
  225. package/lib/types/client/transcript-view.d.ts.map +1 -0
  226. package/lib/types/client/transcript-view.js.map +1 -0
  227. package/lib/types/index.d.ts.map +1 -0
  228. package/lib/types/index.js.map +1 -0
  229. package/package.json +47 -44
  230. package/src/chat-settings.ts +98 -0
  231. package/src/client/apply.ts +355 -0
  232. package/src/client/assets/running-whale@2x.png +0 -0
  233. package/src/client/chat/ApprovalCommand.tsx +42 -0
  234. package/src/client/chat/AssistantMarkdown.module.css +88 -0
  235. package/src/client/chat/AssistantMarkdown.tsx +170 -0
  236. package/src/client/chat/AssistantNodeView.tsx +67 -0
  237. package/src/client/chat/ChatFlow.tsx +100 -0
  238. package/src/client/chat/ChatGroupSeat.module.css +166 -0
  239. package/src/client/chat/ChatGroupSeat.tsx +208 -0
  240. package/src/client/chat/ChatNodeSeat.tsx +179 -0
  241. package/src/client/chat/ChatView.module.css +426 -0
  242. package/src/client/chat/ChatView.tsx +351 -0
  243. package/src/client/chat/CommandNodeView.tsx +40 -0
  244. package/src/client/chat/CompactionCommandCard.tsx +26 -0
  245. package/src/client/chat/CompactionItem.tsx +76 -0
  246. package/src/client/chat/ContextBody.module.css +161 -0
  247. package/src/client/chat/ContextBody.tsx +592 -0
  248. package/src/client/chat/ContextInjectionRow.module.css +68 -0
  249. package/src/client/chat/ContextInjectionRow.tsx +94 -0
  250. package/src/client/chat/GenericCommandCard.module.css +49 -0
  251. package/src/client/chat/GenericCommandCard.tsx +75 -0
  252. package/src/client/chat/MessageIconActions.module.css +116 -0
  253. package/src/client/chat/MessageIconActions.tsx +90 -0
  254. package/src/client/chat/MessageItem.module.css +360 -0
  255. package/src/client/chat/MessageItem.tsx +410 -0
  256. package/src/client/chat/QuotaNoticeHost.tsx +27 -0
  257. package/src/client/chat/ReasoningContent.tsx +26 -0
  258. package/src/client/chat/ReasoningRow.module.css +77 -0
  259. package/src/client/chat/ReasoningRow.tsx +112 -0
  260. package/src/client/chat/RunningStatus.tsx +48 -0
  261. package/src/client/chat/RunningWhaleTail.tsx +19 -0
  262. package/src/client/chat/StatsPills.module.css +63 -0
  263. package/src/client/chat/StatsPills.tsx +348 -0
  264. package/src/client/chat/SystemPromptRow.tsx +50 -0
  265. package/src/client/chat/TurnNavigator.module.css +223 -0
  266. package/src/client/chat/TurnNavigator.tsx +295 -0
  267. package/src/client/chat/TurnProcessNodeView.module.css +62 -0
  268. package/src/client/chat/TurnProcessNodeView.tsx +62 -0
  269. package/src/client/chat/TurnTailNodeView.module.css +12 -0
  270. package/src/client/chat/TurnTailNodeView.tsx +81 -0
  271. package/src/client/chat/TurnTriggerNodeView.module.css +50 -0
  272. package/src/client/chat/TurnTriggerNodeView.tsx +57 -0
  273. package/src/client/chat/TurnUsagePanel.module.css +79 -0
  274. package/src/client/chat/TurnUsagePanel.tsx +110 -0
  275. package/src/client/chat/UserContent.tsx +60 -0
  276. package/src/client/chat/accessibility.module.css +8 -0
  277. package/src/client/chat/flow-motion.ts +556 -0
  278. package/src/client/chat/message-chrome.ts +100 -0
  279. package/src/client/chat/register-node-renderers.ts +100 -0
  280. package/src/client/chat/render-entry.ts +16 -0
  281. package/src/client/chat/searchable-hidden.ts +45 -0
  282. package/src/client/chat/stat-dialog.module.css +149 -0
  283. package/src/client/chat/stat-dialog.ts +55 -0
  284. package/src/client/chat/step-process.ts +28 -0
  285. package/src/client/chat/text-interaction.ts +298 -0
  286. package/src/client/chat/text-selection.ts +180 -0
  287. package/src/client/chat/token-format.ts +98 -0
  288. package/src/client/chat/turn-assistant.ts +10 -0
  289. package/src/client/chat/turn-rail-items.ts +89 -0
  290. package/src/client/chat/turn-trigger.ts +88 -0
  291. package/src/client/chat/use-calendar-day.ts +25 -0
  292. package/src/client/chat/use-chat-navigation.ts +309 -0
  293. package/src/client/chat/use-chat-reading.ts +283 -0
  294. package/src/client/chat/use-chat-scroll.ts +209 -0
  295. package/src/client/chat/use-chat-viewport.ts +1130 -0
  296. package/src/client/chat/use-disclosure.ts +35 -0
  297. package/src/client/chat/use-process-scroll.ts +88 -0
  298. package/src/client/chat/use-scroll-follow.ts +182 -0
  299. package/src/client/chat/use-turn-data.ts +23 -0
  300. package/src/client/contract/assistant-content.ts +15 -0
  301. package/src/client/contract/chat-nodes.ts +135 -0
  302. package/src/client/contract/chat-visibility.ts +20 -0
  303. package/src/client/contract/group-tree.ts +37 -0
  304. package/src/client/contract/process-groups.ts +30 -0
  305. package/src/client/contract/slots.ts +508 -0
  306. package/src/client/contract/snapshot.ts +171 -0
  307. package/src/client/contract/store.ts +17 -0
  308. package/src/client/contract/turn-metrics.ts +43 -0
  309. package/src/client/contract/turn-process.ts +58 -0
  310. package/src/client/conversation-nodes/README.i18n.yaml +64 -0
  311. package/src/client/conversation-nodes/README.md +338 -0
  312. package/src/client/conversation-nodes/README.zh.md +338 -0
  313. package/src/client/conversation-nodes/assistant.ts +384 -0
  314. package/src/client/conversation-nodes/chat-snapshot-builder.ts +1244 -0
  315. package/src/client/conversation-nodes/command.ts +227 -0
  316. package/src/client/conversation-nodes/common.ts +83 -0
  317. package/src/client/conversation-nodes/compaction.ts +65 -0
  318. package/src/client/conversation-nodes/event-projection.ts +179 -0
  319. package/src/client/conversation-nodes/fallback.ts +41 -0
  320. package/src/client/conversation-nodes/group-tree-segments.ts +91 -0
  321. package/src/client/conversation-nodes/inbox.ts +148 -0
  322. package/src/client/conversation-nodes/message.ts +182 -0
  323. package/src/client/conversation-nodes/process-activity.ts +170 -0
  324. package/src/client/conversation-nodes/process-groups.ts +303 -0
  325. package/src/client/conversation-nodes/register.ts +38 -0
  326. package/src/client/conversation-nodes/request-prompt.ts +169 -0
  327. package/src/client/conversation-nodes/retry.ts +97 -0
  328. package/src/client/conversation-nodes/tool.ts +371 -0
  329. package/src/client/conversation-nodes/turn-error.ts +120 -0
  330. package/src/client/conversation-nodes/turn-max-tokens.ts +82 -0
  331. package/src/client/conversation-nodes/turn-navigation.ts +97 -0
  332. package/src/client/conversation-nodes/turn-process-presentation.ts +149 -0
  333. package/src/client/conversation-nodes/turn-process.ts +374 -0
  334. package/src/client/conversation-nodes/turn-tail.ts +164 -0
  335. package/src/client/fence/FenceLayers.tsx +33 -0
  336. package/src/client/fence/register.ts +22 -0
  337. package/src/client/file-path.ts +19 -0
  338. package/src/client/index.ts +69 -0
  339. package/src/client/locale.ts +1695 -0
  340. package/src/client/markdown-labels.ts +16 -0
  341. package/src/client/model/conversation-context.ts +24 -0
  342. package/src/client/model/steering-history.ts +64 -0
  343. package/src/client/model/tool-call-tree.ts +204 -0
  344. package/src/client/performance-usage.ts +34 -0
  345. package/src/client/presentation-policy.ts +109 -0
  346. package/src/client/reasoning-text.ts +25 -0
  347. package/src/client/settings/LinkOpeningRow.tsx +47 -0
  348. package/src/client/settings/PerformanceUsageRow.tsx +46 -0
  349. package/src/client/settings/PreferenceRow.module.css +66 -0
  350. package/src/client/settings/PreferenceRow.tsx +59 -0
  351. package/src/client/settings/TranscriptViewRow.tsx +93 -0
  352. package/src/client/stores.ts +62 -0
  353. package/src/client/transcript-view.ts +81 -0
  354. package/src/css-modules.d.ts +6 -0
  355. package/src/index.ts +45 -0
@@ -0,0 +1,88 @@
1
+ /* Assistant flow body: full-width narration (figma 16/28 scaled 0.875 → 14/24
2
+ with the markdown token ladder), block gap 16. The Settings font-size
3
+ preference rides the body-published axis: size follows
4
+ --dsh-content-font-size and the line height keeps the 10px leading via the
5
+ shared px delta. IconActions sit below the body with an explicit 16px top
6
+ margin (figma 43:32997) — separate from the body's internal gap so the
7
+ footer spacing stays fixed when the body is a single block. */
8
+
9
+ .root {
10
+ display: flex;
11
+ flex-direction: column;
12
+ font-size: var(--dsh-content-font-size, 14px);
13
+ line-height: calc(24px + var(--dsh-content-font-delta, 0px));
14
+ color: var(--dsw-alias-label-primary);
15
+ }
16
+
17
+ .body {
18
+ --dsh-assistant-block-gap: 16px;
19
+ display: flex;
20
+ flex-direction: column;
21
+ gap: var(--dsh-assistant-block-gap);
22
+ }
23
+
24
+ /* A step-group reasoning part (its Chat seat carries data-chat-group-part)
25
+ holds only reasoning rows, which are process rows: they sit 4px apart, like
26
+ rows of different steps. */
27
+ :global([data-chat-group-part="reasoning"]) .body {
28
+ --dsh-assistant-block-gap: 4px;
29
+ }
30
+
31
+ /* Wide markdown tables (the renderer's ≥4-column md-table-wide hook) span
32
+ the whole transcript width instead of clipping at the 748px message
33
+ column, while the table content keeps starting at its normal x (the lead
34
+ padding compensates the negative margin) — deepsuite chat TableWrapper
35
+ parity, with 100cqw (the ChatView scroll container) standing in for its
36
+ JS-measured --dsl-virtual-list-width. `--dsh-table-spare` clamps to zero
37
+ when the transcript is narrower than the message column, so narrow
38
+ viewports keep the plain in-column scroll with no sideways shift.
39
+ Percentages resolve against the wrapper's containing block, so a table
40
+ indented inside a list still reaches the same transcript edges. */
41
+ .body :global(.md-table-wide) {
42
+ --dsh-table-spare: max(0px, calc((100cqw - var(--dsh-chat-content-width)) / 2));
43
+ --dsh-table-lead: calc(var(--dsh-table-spare) + min(var(--dsh-chat-content-width), 100cqw) - 100%);
44
+ box-sizing: border-box;
45
+ width: calc(100% + var(--dsh-table-lead) + var(--dsh-table-spare));
46
+ /* The base .tableScroll caps at the column (max-width: 100%); the breakout
47
+ is exactly the case that must exceed it. */
48
+ max-width: none;
49
+ margin-left: calc(-1 * var(--dsh-table-lead));
50
+ padding-left: var(--dsh-table-lead);
51
+ }
52
+
53
+ /* Only the painted table outranks Conversation's z-index 0 width handle. The
54
+ full-width scroll wrapper and its transparent alignment padding stay below,
55
+ so a fitting four-column table does not disable the surrounding gutter. */
56
+ .body :global(.md-table-wide) > table {
57
+ position: relative;
58
+ z-index: 1;
59
+ }
60
+
61
+ /* hidden="until-found" keeps a zero-height reasoning box in flex layout, and
62
+ so does the class-less wrapper of a reasoning block whose row renders
63
+ nothing (signature-only reasoning has no display text). Cancel the one gap
64
+ each box would otherwise leave. */
65
+ .body > [data-turn-process-inline][hidden],
66
+ .body > :empty:not([class]) {
67
+ margin-bottom: calc(-1 * var(--dsh-assistant-block-gap));
68
+ }
69
+
70
+ /* Interrupted-turn terminal marker: quiet inline tag, no animation. Fixed
71
+ size like the small/code token variants — 11px is dense secondary text
72
+ that would fall to an illegible 9px at the 12px floor. */
73
+ .stopped {
74
+ align-self: flex-start;
75
+ padding: 0 6px;
76
+ border-radius: var(--dsw-radius-sm);
77
+ background: var(--dsw-alias-interactive-bg-hover);
78
+ color: var(--dsw-alias-label-tertiary);
79
+ font-size: 11px;
80
+ line-height: 18px;
81
+ }
82
+
83
+ /* Finalized footer offset (figma 43:32997); chrome lives in MessageIconActions. */
84
+ .actions {
85
+ margin-top: 16px;
86
+ /* Optical align with the 28px action hit targets. */
87
+ margin-left: -6px;
88
+ }
@@ -0,0 +1,170 @@
1
+ import { Fragment, memo, useMemo } from 'react'
2
+ import { fileMediaUrl } from '@deepseek-ai/dsh-util-workspace-path'
3
+ import type { PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots'
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'
7
+ import type { ChatNodeOwnerProps, ChatViewSlotProps, UseDisclosure, UsePresentation, UseGroupAction } from '../contract/slots.ts'
8
+ import type { AssistantBlock } from '../contract/snapshot.ts'
9
+ import { markdownLabels } from '../markdown-labels.ts'
10
+ import { ReasoningRow } from './ReasoningRow.tsx'
11
+ import css from './AssistantMarkdown.module.css'
12
+
13
+ /**
14
+ * Standalone fallback for image destinations (query/fragment suffixes are ignored).
15
+ * Chat fileImages resolves decoded file references against cwd; pathImages also
16
+ * serves this component outside that provider and accepts legacy image URL suffixes.
17
+ * Resolve an authored absolute image path against the document's file API.
18
+ * @param base - canonical `document.baseURI` at render time.
19
+ * @param value - authored Markdown destination; URL escapes are decoded once.
20
+ * @returns an absolute Web or Desktop file-API URL, or undefined for unsupported
21
+ * protocols and non-local paths.
22
+ */
23
+ export function localPathMediaUrl(base: string, value: string): string | undefined {
24
+ let path: string
25
+ try { path = decodeURIComponent(value.split(/[?#]/u)[0] ?? '') }
26
+ catch { return undefined } // Malformed URL escapes cannot identify a file.
27
+ return fileMediaUrl(base, path)
28
+ }
29
+
30
+ export interface AssistantMarkdownProps extends
31
+ Pick<PropsRenderSlots<'conversation.chat.reasoning.body' | 'conversation.chat.message.images'>, 'renderSlot'>,
32
+ Pick<ChatNodeOwnerProps, 'loadImage'> {
33
+ /** Render only the requested business portion, preserving original block indexes. */
34
+ groupPart?: string | undefined
35
+ /** Stable Hook forwarded to each independently expandable reasoning block. */
36
+ useDisclosure: UseDisclosure
37
+ blocks: readonly AssistantBlock[]
38
+ streaming: boolean
39
+ /** Only finalized durable Assistant messages supply selection sources. */
40
+ textInteractionSource?: boolean
41
+ /** Frozen partial of an aborted turn: rendered with a stopped marker. */
42
+ interrupted?: boolean | undefined
43
+ /** Hide reasoning that belongs to the Turn-level process disclosure. */
44
+ reasoningHidden?: boolean | undefined
45
+ /** Process hiding bound by the node slot to its current viewport. */
46
+ useGroupAction: UseGroupAction
47
+ /** Live display policy for reasoning summaries. */
48
+ usePresentation: UsePresentation
49
+ /** Reveal the disclosure that hides this reasoning. */
50
+ revealProcess?: (() => void) | undefined
51
+ /** Resolved prose file mentions for this Assistant's closing turn. */
52
+ mentions?: MarkdownFileMentions | undefined
53
+ /** The owning view's locale seat, passed down as a plain prop. */
54
+ t: ChatViewSlotProps['t']
55
+ }
56
+
57
+ /** Renders non-blank reasoning blocks as independent disclosures alongside the response. */
58
+ export const AssistantMarkdown = memo(function AssistantMarkdown({
59
+ blocks, streaming, textInteractionSource = false, interrupted, loadImage, groupPart, useDisclosure,
60
+ reasoningHidden = false, usePresentation, revealProcess, mentions, renderSlot, useGroupAction, t,
61
+ }: AssistantMarkdownProps) {
62
+ // Stable per locale revision (t identity changes on switch): a fresh object
63
+ // per render would rebuild MarkdownText's component table every chunk.
64
+ const labels = useMemo(() => markdownLabels(t), [t])
65
+ // MarkdownText memoizes its vocabulary; keep its identity stable across renders.
66
+ const pathImages = useMemo<MarkdownPathImages>(() => {
67
+ return { resolve: value => localPathMediaUrl(document.baseURI, value) }
68
+ }, [])
69
+ const last = blocks.length - 1
70
+ // Tool-call heads render as tool rows in the chat view's grouping pass, so
71
+ // a node that is only those heads (or empty) would paint an empty root
72
+ // between tool groups — skip the shell unless something visible remains.
73
+ const hasVisible = streaming
74
+ || interrupted === true
75
+ || blocks.some(block => block.kind !== 'tool-call')
76
+ if (!hasVisible) return null
77
+ const rendered: ReactNode[] = []
78
+ for (let i = 0; i < blocks.length; i++) {
79
+ const block = blocks[i]
80
+ if (block === undefined) continue
81
+ if (groupPart === 'reasoning' && block.kind !== 'reasoning') continue
82
+ if (groupPart === 'response' && block.kind === 'reasoning') continue
83
+ switch (block.kind) {
84
+ case 'text':
85
+ rendered.push(
86
+ <MarkdownText
87
+ key={i}
88
+ text={block.text}
89
+ streaming={streaming}
90
+ labels={labels}
91
+ fileMentions={mentions}
92
+ pathImages={pathImages}
93
+ textInteractionSource={textInteractionSource}
94
+ />,
95
+ )
96
+ break
97
+ case 'reasoning':
98
+ if (block.text.trim() === '') break
99
+ rendered.push(
100
+ <ProcessReasoning
101
+ key={i}
102
+ hidden={reasoningHidden}
103
+ reveal={revealProcess}
104
+ useGroupAction={useGroupAction}
105
+ >
106
+ <ReasoningRow text={block.text} running={streaming && i === last} usePresentation={usePresentation}
107
+ useDisclosure={useDisclosure} renderSlot={renderSlot} textInteractionSource={textInteractionSource} t={t} />
108
+ </ProcessReasoning>,
109
+ )
110
+ break
111
+ case 'image': {
112
+ // Consecutive image blocks share one gallery so several images tile
113
+ // into rows instead of each opening a one-image group of its own.
114
+ // Keyed by the group's FIRST block index: a streaming append that
115
+ // extends the group then only grows `images` instead of remounting
116
+ // the gallery under a shifted key.
117
+ const start = i
118
+ const group = [block]
119
+ while (i + 1 < blocks.length) {
120
+ const next = blocks[i + 1]
121
+ if (next === undefined || next.kind !== 'image') break
122
+ group.push(next)
123
+ i += 1
124
+ }
125
+ rendered.push(
126
+ <Fragment key={start}>
127
+ {renderSlot('conversation.chat.message.images', {
128
+ images: group.map(({ attachment }) => ({ attachment })), loadImage, align: 'start',
129
+ })}
130
+ </Fragment>,
131
+ )
132
+ break
133
+ }
134
+ // Grouped into tool rows by ChatView; hasVisible above skips an empty shell.
135
+ case 'tool-call':
136
+ break
137
+ default:
138
+ rendered.push(
139
+ <JsonBlock
140
+ key={i}
141
+ label={t('message.unknownBlock')}
142
+ payload={block.block}
143
+ truncatedLabel={total => t('json.truncated', { total })}
144
+ />,
145
+ )
146
+ }
147
+ }
148
+ return (
149
+ <div className={css.root} data-streaming={streaming || undefined}>
150
+ <div className={css.body}>
151
+ {rendered}
152
+ {interrupted && (groupPart === undefined || groupPart === 'response'
153
+ || !blocks.some(block => block.kind !== 'reasoning' && block.kind !== 'tool-call'))
154
+ && <span className={css.stopped}>{t('message.stopped')}</span>}
155
+ </div>
156
+ </div>
157
+ )
158
+ })
159
+
160
+ function ProcessReasoning({ hidden, reveal, useGroupAction, children }: {
161
+ hidden: boolean
162
+ reveal?: (() => void) | undefined
163
+ useGroupAction: UseGroupAction
164
+ children: ReactNode
165
+ }) {
166
+ const ref = useGroupAction(hidden, reveal ?? NOOP)
167
+ return <div ref={ref} data-turn-process-inline={hidden || undefined}>{children}</div>
168
+ }
169
+
170
+ const NOOP = (): void => {}
@@ -0,0 +1,67 @@
1
+ import { memo, useCallback, useMemo } from 'react'
2
+ import type { InjectFace, PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots'
3
+ import type { ChatFileMentions, ChatNodeViewProps, PresentationInjected, TurnTailOwnerProps } from '../contract/slots.ts'
4
+ import { AssistantMarkdown } from './AssistantMarkdown.tsx'
5
+
6
+ /** Business readers owned by the assistant renderer's existing Slot registration. */
7
+ export interface AssistantNodeInjected extends PresentationInjected {
8
+ /** Resolve against the live Session directory. @param path - Recorded path. @returns Host path. */
9
+ resolveFilePath: (path: string) => string
10
+ /** Resolve closing-Turn mentions with the supplied ordinary file gesture callback. */
11
+ fileMentions: (owner: TurnTailOwnerProps, getFileTriggerProps: NonNullable<Parameters<ChatFileMentions['forClosing']>[2]>) => ReturnType<ChatFileMentions['forClosing']>
12
+ }
13
+
14
+ type AssistantNodeViewProps = ChatNodeViewProps<'assistant-step'> & InjectFace<AssistantNodeInjected>
15
+ & PropsRenderSlots<'conversation.chat.reasoning.body' | 'conversation.chat.message.images'>
16
+
17
+ /** Streaming, settled, and interrupted Assistant states share one keyed renderer instance. */
18
+ export const AssistantNodeView = memo(function AssistantNodeView({
19
+ node, groupPart, useDisclosure, useGroupAction, useTurnData, turnProcess, openFile, loadImage, fileMentions,
20
+ usePresentation, renderSlot, t, sessionId, useContextMenu, resolveFilePath,
21
+ }: AssistantNodeViewProps) {
22
+ const { getTriggerProps } = useContextMenu()
23
+ const getFileTriggerProps = useCallback((path: string) => getTriggerProps(() => ({
24
+ kind: 'file', value: { sessionId, path: resolveFilePath(path) },
25
+ })), [getTriggerProps, sessionId, resolveFilePath])
26
+ const data = node.data
27
+ const turn = node.location.kind === 'turn' || node.location.kind === 'step'
28
+ ? node.location.turn
29
+ : undefined
30
+ const tail = useTurnData('turn-tail')
31
+ const owner = useMemo<TurnTailOwnerProps | undefined>(() => {
32
+ if (turn?.status !== 'closed' || data.finalNode === undefined) return undefined
33
+ if (tail?.closing?.finalNode.seq !== data.finalNode.seq) return undefined
34
+ return { turn, seq: data.finalNode.seq, openFile }
35
+ }, [data.finalNode, openFile, tail, turn])
36
+ const mentions = useMemo(
37
+ () => owner === undefined ? undefined : fileMentions(owner, getFileTriggerProps),
38
+ [fileMentions, owner, getFileTriggerProps],
39
+ )
40
+ const keepReplies = usePresentation(policy => policy.foldedReplies === 'all')
41
+ // A kept reply row stays visible while the folded Turn hides its inline reasoning.
42
+ const reasoningHidden = turnProcess !== undefined
43
+ && turnProcess.foldable
44
+ && (keepReplies
45
+ ? groupPart !== 'reasoning'
46
+ : turnProcess.spec.answerStep === data.step && turnProcess.spec.inlineReasoning)
47
+ && !turnProcess.open
48
+ const revealProcess = useCallback(() => { turnProcess?.setOpen(true) }, [turnProcess])
49
+ return (
50
+ <AssistantMarkdown
51
+ blocks={data.blocks}
52
+ groupPart={groupPart}
53
+ useDisclosure={useDisclosure}
54
+ streaming={data.status === 'running'}
55
+ textInteractionSource={data.status === 'settled' && data.finalNode?.messageId !== undefined}
56
+ interrupted={data.status === 'interrupted'}
57
+ loadImage={loadImage}
58
+ reasoningHidden={reasoningHidden}
59
+ useGroupAction={useGroupAction}
60
+ usePresentation={usePresentation}
61
+ renderSlot={renderSlot}
62
+ revealProcess={revealProcess}
63
+ mentions={mentions}
64
+ t={t}
65
+ />
66
+ )
67
+ })
@@ -0,0 +1,100 @@
1
+ /** Ordered Chat rows, local echoes, and running status share the flow slot's parent. */
2
+ import { memo, type ReactElement } from 'react'
3
+ import type { PendingSubmission } from '@deepseek-ai/dsh-api-session-controller/client'
4
+ import { assertNever } from '@deepseek-ai/dsh-util-values'
5
+ import type { ChatFlowSlotProps } from '../contract/slots.ts'
6
+ import { ChatNodeSeat } from './ChatNodeSeat.tsx'
7
+ import { ChatGroupSeat } from './ChatGroupSeat.tsx'
8
+ import { PendingSteeringBubble, PendingSubmissionBubble } from './MessageItem.tsx'
9
+ import { chatRenderKey } from './render-entry.ts'
10
+ import { RunningStatus } from './RunningStatus.tsx'
11
+
12
+ /** A local submission echo, or a Host-pending steering item without a local submission. */
13
+ type PendingInput = ChatFlowSlotProps['pendingInputs'][number]
14
+
15
+ /** Whether the echo is a local submission rather than a Host-pending steering item. */
16
+ function isLocalSubmission(item: PendingInput): item is PendingSubmission {
17
+ return 'requestId' in item
18
+ }
19
+
20
+ /** Whether the echo is a local submission that opens a new Turn. */
21
+ function isTranscriptEcho(item: PendingInput): boolean {
22
+ return isLocalSubmission(item) && item.placement === 'transcript'
23
+ }
24
+
25
+ /** Render the flow without adding a DOM parent or changing keyed row positions. */
26
+ export const ChatFlow = memo(function ChatFlow({
27
+ entries, pendingInputs, lastInputTurn, deferCollapse,
28
+ useSession, useChat, useChatNode, useChatNodeBottom, useChatNodeProcess, useChatGroup, usePresentation, useConnectionState,
29
+ useStore, actions, renderSlot, renderFactorySlot, t, useGroupAction, useGroupHeaderAction,
30
+ cwd, openFile, inspectCall, forkAt, loadImage,
31
+ }: ChatFlowSlotProps) {
32
+ const nodeStore = useChat(snapshot => snapshot.nodes)
33
+ const running = useSession(snapshot => snapshot.running)
34
+ const disconnected = useConnectionState(state => state === 'disconnected' || state === 'connecting')
35
+ const latestTurnAnchor = useChat(snapshot => snapshot.navigation.items().at(-1)?.anchorKey)
36
+ const runningStartTime = useChatNode(latestTurnAnchor ?? '', (node) => {
37
+ const location = node?.location
38
+ return location?.kind === 'turn' || location?.kind === 'step'
39
+ ? location.turn.status === 'open' ? location.turn.start?.time : undefined
40
+ : undefined
41
+ })
42
+ const latestTurnOpen = useChatNode(latestTurnAnchor ?? '', (node) => {
43
+ const location = node?.location
44
+ return (location?.kind === 'turn' || location?.kind === 'step') && location.turn.status === 'open'
45
+ })
46
+ const holding = !running && latestTurnOpen
47
+ const seatProps = {
48
+ nodeStore, useChatNode, useChatNodeBottom, useChatNodeProcess, usePresentation,
49
+ useStore, actions, renderSlot, t, useGroupAction, deferCollapse,
50
+ cwd, openFile, inspectCall, forkAt, loadImage,
51
+ }
52
+ const rows = entries.map((entry) => {
53
+ switch (entry.kind) {
54
+ case 'node':
55
+ return <ChatNodeSeat {...seatProps} key={chatRenderKey(entry)} nodeKey={entry.key}
56
+ {...entry.groupPart === undefined ? {} : { groupPart: entry.groupPart }} />
57
+ case 'group':
58
+ return <ChatGroupSeat {...seatProps} key={chatRenderKey(entry)} groupKey={entry.key}
59
+ useChatGroup={useChatGroup} useGroupHeaderAction={useGroupHeaderAction} />
60
+ default:
61
+ return assertNever(entry)
62
+ }
63
+ })
64
+ // Transcript echoes open the running Turn and precede the status; steering
65
+ // and Inbox echoes follow it, so the status stays on the running Turn's tail.
66
+ // The first transcript echo opens the next Turn, whose first claim takes the
67
+ // steering already pending ahead of it before that prompt; those echoes lead
68
+ // the same Turn in claim order.
69
+ const firstTranscript = pendingInputs.findIndex(isTranscriptEcho)
70
+ const leadingRows: ReactElement[] = []
71
+ const openingRows: ReactElement[] = []
72
+ const pendingRows: ReactElement[] = []
73
+ for (const [index, item] of pendingInputs.entries()) {
74
+ const row = isLocalSubmission(item)
75
+ ? <PendingSubmissionBubble key={item.requestId} submission={item}
76
+ loadImage={loadImage} renderFactorySlot={renderFactorySlot} t={t} />
77
+ : <PendingSteeringBubble key={item.id} content={item.content}
78
+ loadImage={loadImage} renderFactorySlot={renderFactorySlot} t={t} />
79
+ if (index <= firstTranscript) leadingRows.push(row)
80
+ else if (isTranscriptEcho(item)) openingRows.push(row)
81
+ else pendingRows.push(row)
82
+ }
83
+ const tail = entries.at(-1)
84
+ const node = tail?.kind === 'node' ? nodeStore.get(tail.key) : undefined
85
+ // An empty opening control follows the echoes that lead its Turn.
86
+ // All rows share this keyed list so inserting the control keeps the echoes mounted.
87
+ if (node?.kind === 'turn-process' && node.location.kind === 'turn'
88
+ && node.location.turn.status === 'open' && node.location.turn.turn !== lastInputTurn) {
89
+ rows.splice(rows.length - 1, 0, ...leadingRows.splice(0))
90
+ }
91
+ // Rows enter before the keyed status and echoes after it, so React never moves its DOM node. The
92
+ // running bit and the Turn's end arrive separately: after the bit clears, an open latest Turn keeps
93
+ // the status slot (hidden) until its actions row takes the slot in the same commit.
94
+ return [
95
+ ...rows, ...leadingRows, ...openingRows,
96
+ ...running || holding ? [<RunningStatus key="running" startTime={runningStartTime} paused={disconnected}
97
+ holding={holding} t={t} />] : [],
98
+ ...pendingRows,
99
+ ]
100
+ })
@@ -0,0 +1,166 @@
1
+ .root {
2
+ min-width: 0;
3
+ }
4
+
5
+ .title {
6
+ display: flex;
7
+ max-width: 100%;
8
+ align-items: center;
9
+ gap: 6px;
10
+ padding: 0;
11
+ border: 0;
12
+ background: none;
13
+ color: var(--dsw-alias-label-tertiary);
14
+ font: inherit;
15
+ font-size: var(--dsh-content-font-size, 14px);
16
+ /* One process-row height, so a header fills the slot the running status keeps for it. */
17
+ line-height: calc(24px + var(--dsh-content-font-delta, 0px));
18
+ text-align: left;
19
+ cursor: pointer;
20
+ transition: color 100ms ease;
21
+ }
22
+
23
+ @media (hover: hover) {
24
+ .title:hover {
25
+ color: var(--dsw-alias-label-secondary);
26
+ }
27
+ }
28
+
29
+ /* The leading box and its glyph ride the body font-size delta so the icon
30
+ keeps its optical share of the row at every Settings size. */
31
+ .leading {
32
+ position: relative;
33
+ flex: none;
34
+ display: inline-flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ width: calc(16px + var(--dsh-content-font-delta, 0px));
38
+ height: calc(16px + var(--dsh-content-font-delta, 0px));
39
+ color: inherit;
40
+ }
41
+
42
+ .leading svg {
43
+ width: calc(14px + var(--dsh-content-font-delta, 0px));
44
+ height: calc(14px + var(--dsh-content-font-delta, 0px));
45
+ }
46
+
47
+ .leading svg[width="16"] {
48
+ width: calc(16px + var(--dsh-content-font-delta, 0px));
49
+ height: calc(16px + var(--dsh-content-font-delta, 0px));
50
+ }
51
+
52
+ .activityIcon,
53
+ .chevron {
54
+ position: absolute;
55
+ inset: 0;
56
+ display: inline-flex;
57
+ align-items: center;
58
+ justify-content: center;
59
+ transition: opacity 100ms ease;
60
+ }
61
+
62
+ .activityIcon {
63
+ opacity: 1;
64
+ }
65
+
66
+ .chevron {
67
+ opacity: 0;
68
+ }
69
+
70
+ .title:focus-visible .activityIcon {
71
+ opacity: 0;
72
+ }
73
+
74
+ @media (hover: hover) {
75
+ .title:hover .activityIcon {
76
+ opacity: 0;
77
+ }
78
+ }
79
+
80
+ .title:focus-visible .chevron {
81
+ opacity: 1;
82
+ }
83
+
84
+ @media (hover: hover) {
85
+ .title:hover .chevron {
86
+ opacity: 1;
87
+ }
88
+ }
89
+
90
+ .title[aria-expanded="true"] .activityIcon {
91
+ opacity: 0;
92
+ }
93
+
94
+ .title[aria-expanded="true"] .chevron {
95
+ opacity: 1;
96
+ }
97
+
98
+ .title[aria-expanded="true"] {
99
+ padding-bottom: 8px;
100
+ }
101
+
102
+ .body {
103
+ --dsh-chat-flow-gap: 4px;
104
+ max-height: min(400px, 50vh);
105
+ overflow-y: auto;
106
+ overscroll-behavior-y: auto;
107
+ scrollbar-gutter: stable;
108
+ }
109
+
110
+ .label {
111
+ min-width: 0;
112
+ overflow: hidden;
113
+ text-overflow: ellipsis;
114
+ white-space: nowrap;
115
+ }
116
+
117
+ .fadeTop {
118
+ mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 100%);
119
+ }
120
+
121
+ .fadeBottom {
122
+ mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 24px), transparent 100%);
123
+ }
124
+
125
+ .fadeTop.fadeBottom {
126
+ mask-image: linear-gradient(
127
+ to bottom,
128
+ transparent 0,
129
+ #000 24px,
130
+ #000 calc(100% - 24px),
131
+ transparent 100%
132
+ );
133
+ }
134
+
135
+ @media (prefers-reduced-motion: reduce) {
136
+ .title,
137
+ .activityIcon,
138
+ .chevron {
139
+ transition: none;
140
+ }
141
+ }
142
+
143
+ .content {
144
+ display: flex;
145
+ flex-direction: column;
146
+ }
147
+ .content > * { flex-shrink: 0; }
148
+ .content > :not([hidden]):not(:empty) ~ :not([hidden]):not(:empty) {
149
+ margin-top: var(--dsh-chat-flow-gap, 4px);
150
+ }
151
+ .expandedBody {
152
+ max-height: none;
153
+ overflow: visible;
154
+ scrollbar-gutter: auto;
155
+ }
156
+
157
+ /* Member spacing changes share the closing body's timing. */
158
+ :global([data-chat-motion]) .content > :not([data-chat-motion]) {
159
+ transition: margin-top 160ms cubic-bezier(0.4, 0, 0.2, 1);
160
+ }
161
+
162
+ @media (prefers-reduced-motion: reduce) {
163
+ :global([data-chat-motion]) .content > :not([data-chat-motion]) {
164
+ transition: none;
165
+ }
166
+ }