@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.
- package/README.i18n.yaml +16 -16
- package/README.md +17 -5
- package/README.zh.md +17 -5
- package/lib/client.js +18 -15587
- package/lib/client.js.map +1 -0
- package/lib/types/chat-settings.d.ts.map +1 -0
- package/lib/types/chat-settings.js.map +1 -0
- package/lib/types/client/apply.d.ts.map +1 -0
- package/lib/types/client/apply.js.map +1 -0
- package/lib/types/client/chat/ApprovalCommand.d.ts +4 -3
- package/lib/types/client/chat/ApprovalCommand.d.ts.map +1 -0
- package/lib/types/client/chat/ApprovalCommand.js.map +1 -0
- package/lib/types/client/chat/AssistantMarkdown.d.ts.map +1 -0
- package/lib/types/client/chat/AssistantMarkdown.js.map +1 -0
- package/lib/types/client/chat/AssistantNodeView.d.ts.map +1 -0
- package/lib/types/client/chat/AssistantNodeView.js.map +1 -0
- package/lib/types/client/chat/ChatFlow.d.ts.map +1 -0
- package/lib/types/client/chat/ChatFlow.js.map +1 -0
- package/lib/types/client/chat/ChatGroupSeat.d.ts.map +1 -0
- package/lib/types/client/chat/ChatGroupSeat.js.map +1 -0
- package/lib/types/client/chat/ChatNodeSeat.d.ts.map +1 -0
- package/lib/types/client/chat/ChatNodeSeat.js.map +1 -0
- package/lib/types/client/chat/ChatView.d.ts +1 -1
- package/lib/types/client/chat/ChatView.d.ts.map +1 -0
- package/lib/types/client/chat/ChatView.js.map +1 -0
- package/lib/types/client/chat/CommandNodeView.d.ts.map +1 -0
- package/lib/types/client/chat/CommandNodeView.js.map +1 -0
- package/lib/types/client/chat/CompactionCommandCard.d.ts.map +1 -0
- package/lib/types/client/chat/CompactionCommandCard.js.map +1 -0
- package/lib/types/client/chat/CompactionItem.d.ts.map +1 -0
- package/lib/types/client/chat/CompactionItem.js.map +1 -0
- package/lib/types/client/chat/ContextBody.d.ts.map +1 -0
- package/lib/types/client/chat/ContextBody.js.map +1 -0
- package/lib/types/client/chat/ContextInjectionRow.d.ts.map +1 -0
- package/lib/types/client/chat/ContextInjectionRow.js.map +1 -0
- package/lib/types/client/chat/GenericCommandCard.d.ts.map +1 -0
- package/lib/types/client/chat/GenericCommandCard.js.map +1 -0
- package/lib/types/client/chat/MessageIconActions.d.ts.map +1 -0
- package/lib/types/client/chat/MessageIconActions.js.map +1 -0
- package/lib/types/client/chat/MessageItem.d.ts.map +1 -0
- package/lib/types/client/chat/MessageItem.js.map +1 -0
- package/lib/types/client/chat/QuotaNoticeHost.d.ts.map +1 -0
- package/lib/types/client/chat/QuotaNoticeHost.js.map +1 -0
- package/lib/types/client/chat/ReasoningContent.d.ts.map +1 -0
- package/lib/types/client/chat/ReasoningContent.js.map +1 -0
- package/lib/types/client/chat/ReasoningRow.d.ts.map +1 -0
- package/lib/types/client/chat/ReasoningRow.js.map +1 -0
- package/lib/types/client/chat/RunningStatus.d.ts.map +1 -0
- package/lib/types/client/chat/RunningStatus.js.map +1 -0
- package/lib/types/client/chat/RunningWhaleTail.d.ts.map +1 -0
- package/lib/types/client/chat/RunningWhaleTail.js.map +1 -0
- package/lib/types/client/chat/StatsPills.d.ts.map +1 -0
- package/lib/types/client/chat/StatsPills.js.map +1 -0
- package/lib/types/client/chat/SystemPromptRow.d.ts.map +1 -0
- package/lib/types/client/chat/SystemPromptRow.js.map +1 -0
- package/lib/types/client/chat/TurnNavigator.d.ts.map +1 -0
- package/lib/types/client/chat/TurnNavigator.js.map +1 -0
- package/lib/types/client/chat/TurnProcessNodeView.d.ts.map +1 -0
- package/lib/types/client/chat/TurnProcessNodeView.js.map +1 -0
- package/lib/types/client/chat/TurnTailNodeView.d.ts.map +1 -0
- package/lib/types/client/chat/TurnTailNodeView.js.map +1 -0
- package/lib/types/client/chat/TurnTriggerNodeView.d.ts.map +1 -0
- package/lib/types/client/chat/TurnTriggerNodeView.js.map +1 -0
- package/lib/types/client/chat/TurnUsagePanel.d.ts.map +1 -0
- package/lib/types/client/chat/TurnUsagePanel.js.map +1 -0
- package/lib/types/client/chat/UserContent.d.ts.map +1 -0
- package/lib/types/client/chat/UserContent.js.map +1 -0
- package/lib/types/client/chat/flow-motion.d.ts +2 -0
- package/lib/types/client/chat/flow-motion.d.ts.map +1 -0
- package/lib/types/client/chat/flow-motion.js.map +1 -0
- package/lib/types/client/chat/message-chrome.d.ts.map +1 -0
- package/lib/types/client/chat/message-chrome.js.map +1 -0
- package/lib/types/client/chat/register-node-renderers.d.ts.map +1 -0
- package/lib/types/client/chat/register-node-renderers.js.map +1 -0
- package/lib/types/client/chat/render-entry.d.ts.map +1 -0
- package/lib/types/client/chat/render-entry.js.map +1 -0
- package/lib/types/client/chat/searchable-hidden.d.ts.map +1 -0
- package/lib/types/client/chat/searchable-hidden.js.map +1 -0
- package/lib/types/client/chat/stat-dialog.d.ts +5 -10
- package/lib/types/client/chat/stat-dialog.d.ts.map +1 -0
- package/lib/types/client/chat/stat-dialog.js.map +1 -0
- package/lib/types/client/chat/step-process.d.ts.map +1 -0
- package/lib/types/client/chat/step-process.js.map +1 -0
- package/lib/types/client/chat/text-interaction.d.ts.map +1 -0
- package/lib/types/client/chat/text-interaction.js.map +1 -0
- package/lib/types/client/chat/text-selection.d.ts.map +1 -0
- package/lib/types/client/chat/text-selection.js.map +1 -0
- package/lib/types/client/chat/token-format.d.ts.map +1 -0
- package/lib/types/client/chat/token-format.js.map +1 -0
- package/lib/types/client/chat/turn-assistant.d.ts.map +1 -0
- package/lib/types/client/chat/turn-assistant.js.map +1 -0
- package/lib/types/client/chat/turn-rail-items.d.ts.map +1 -0
- package/lib/types/client/chat/turn-rail-items.js.map +1 -0
- package/lib/types/client/chat/turn-trigger.d.ts +3 -2
- package/lib/types/client/chat/turn-trigger.d.ts.map +1 -0
- package/lib/types/client/chat/turn-trigger.js.map +1 -0
- package/lib/types/client/chat/use-calendar-day.d.ts.map +1 -0
- package/lib/types/client/chat/use-calendar-day.js.map +1 -0
- package/lib/types/client/chat/use-chat-navigation.d.ts +21 -5
- package/lib/types/client/chat/use-chat-navigation.d.ts.map +1 -0
- package/lib/types/client/chat/use-chat-navigation.js.map +1 -0
- package/lib/types/client/chat/use-chat-reading.d.ts.map +1 -0
- package/lib/types/client/chat/use-chat-reading.js.map +1 -0
- package/lib/types/client/chat/use-chat-scroll.d.ts +5 -2
- package/lib/types/client/chat/use-chat-scroll.d.ts.map +1 -0
- package/lib/types/client/chat/use-chat-scroll.js.map +1 -0
- package/lib/types/client/chat/use-chat-viewport.d.ts +53 -0
- package/lib/types/client/chat/use-chat-viewport.d.ts.map +1 -0
- package/lib/types/client/chat/use-chat-viewport.js.map +1 -0
- package/lib/types/client/chat/use-disclosure.d.ts.map +1 -0
- package/lib/types/client/chat/use-disclosure.js.map +1 -0
- package/lib/types/client/chat/use-process-scroll.d.ts.map +1 -0
- package/lib/types/client/chat/use-process-scroll.js.map +1 -0
- package/lib/types/client/chat/use-scroll-follow.d.ts.map +1 -0
- package/lib/types/client/chat/use-scroll-follow.js.map +1 -0
- package/lib/types/client/chat/use-turn-data.d.ts.map +1 -0
- package/lib/types/client/chat/use-turn-data.js.map +1 -0
- package/lib/types/client/contract/assistant-content.d.ts.map +1 -0
- package/lib/types/client/contract/assistant-content.js.map +1 -0
- package/lib/types/client/contract/chat-nodes.d.ts.map +1 -0
- package/lib/types/client/contract/chat-nodes.js.map +1 -0
- package/lib/types/client/contract/chat-visibility.d.ts +2 -2
- package/lib/types/client/contract/chat-visibility.d.ts.map +1 -0
- package/lib/types/client/contract/chat-visibility.js.map +1 -0
- package/lib/types/client/contract/group-tree.d.ts.map +1 -0
- package/lib/types/client/contract/group-tree.js.map +1 -0
- package/lib/types/client/contract/process-groups.d.ts +6 -3
- package/lib/types/client/contract/process-groups.d.ts.map +1 -0
- package/lib/types/client/contract/process-groups.js.map +1 -0
- package/lib/types/client/contract/slots.d.ts +11 -2
- package/lib/types/client/contract/slots.d.ts.map +1 -0
- package/lib/types/client/contract/slots.js.map +1 -0
- package/lib/types/client/contract/snapshot.d.ts.map +1 -0
- package/lib/types/client/contract/snapshot.js.map +1 -0
- package/lib/types/client/contract/store.d.ts.map +1 -0
- package/lib/types/client/contract/store.js.map +1 -0
- package/lib/types/client/contract/turn-metrics.d.ts.map +1 -0
- package/lib/types/client/contract/turn-metrics.js.map +1 -0
- package/lib/types/client/contract/turn-process.d.ts.map +1 -0
- package/lib/types/client/contract/turn-process.js.map +1 -0
- package/lib/types/client/conversation-nodes/assistant.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/assistant.js.map +1 -0
- package/lib/types/client/conversation-nodes/chat-snapshot-builder.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/chat-snapshot-builder.js.map +1 -0
- package/lib/types/client/conversation-nodes/command.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/command.js.map +1 -0
- package/lib/types/client/conversation-nodes/common.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/common.js.map +1 -0
- package/lib/types/client/conversation-nodes/compaction.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/compaction.js.map +1 -0
- package/lib/types/client/conversation-nodes/event-projection.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/event-projection.js.map +1 -0
- package/lib/types/client/conversation-nodes/fallback.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/fallback.js.map +1 -0
- package/lib/types/client/conversation-nodes/group-tree-segments.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/group-tree-segments.js.map +1 -0
- package/lib/types/client/conversation-nodes/inbox.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/inbox.js.map +1 -0
- package/lib/types/client/conversation-nodes/message.d.ts +1 -1
- package/lib/types/client/conversation-nodes/message.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/message.js.map +1 -0
- package/lib/types/client/conversation-nodes/process-activity.d.ts +1 -0
- package/lib/types/client/conversation-nodes/process-activity.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/process-activity.js.map +1 -0
- package/lib/types/client/conversation-nodes/process-groups.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/process-groups.js.map +1 -0
- package/lib/types/client/conversation-nodes/register.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/register.js.map +1 -0
- package/lib/types/client/conversation-nodes/request-prompt.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/request-prompt.js.map +1 -0
- package/lib/types/client/conversation-nodes/retry.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/retry.js.map +1 -0
- package/lib/types/client/conversation-nodes/tool.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/tool.js.map +1 -0
- package/lib/types/client/conversation-nodes/turn-error.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/turn-error.js.map +1 -0
- package/lib/types/client/conversation-nodes/turn-max-tokens.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/turn-max-tokens.js.map +1 -0
- package/lib/types/client/conversation-nodes/turn-navigation.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/turn-navigation.js.map +1 -0
- package/lib/types/client/conversation-nodes/turn-process-presentation.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/turn-process-presentation.js.map +1 -0
- package/lib/types/client/conversation-nodes/turn-process.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/turn-process.js.map +1 -0
- package/lib/types/client/conversation-nodes/turn-tail.d.ts.map +1 -0
- package/lib/types/client/conversation-nodes/turn-tail.js.map +1 -0
- package/lib/types/client/fence/FenceLayers.d.ts +21 -0
- package/lib/types/client/fence/FenceLayers.d.ts.map +1 -0
- package/lib/types/client/fence/FenceLayers.js.map +1 -0
- package/lib/types/client/fence/register.d.ts +10 -0
- package/lib/types/client/fence/register.d.ts.map +1 -0
- package/lib/types/client/fence/register.js.map +1 -0
- package/lib/types/client/file-path.d.ts.map +1 -0
- package/lib/types/client/file-path.js.map +1 -0
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/index.js.map +1 -0
- package/lib/types/client/locale.d.ts +96 -0
- package/lib/types/client/locale.d.ts.map +1 -0
- package/lib/types/client/locale.js.map +1 -0
- package/lib/types/client/markdown-labels.d.ts.map +1 -0
- package/lib/types/client/markdown-labels.js.map +1 -0
- package/lib/types/client/model/conversation-context.d.ts.map +1 -0
- package/lib/types/client/model/conversation-context.js.map +1 -0
- package/lib/types/client/model/steering-history.d.ts.map +1 -0
- package/lib/types/client/model/steering-history.js.map +1 -0
- package/lib/types/client/model/tool-call-tree.d.ts.map +1 -0
- package/lib/types/client/model/tool-call-tree.js.map +1 -0
- package/lib/types/client/performance-usage.d.ts.map +1 -0
- package/lib/types/client/performance-usage.js.map +1 -0
- package/lib/types/client/presentation-policy.d.ts.map +1 -0
- package/lib/types/client/presentation-policy.js.map +1 -0
- package/lib/types/client/reasoning-text.d.ts.map +1 -0
- package/lib/types/client/reasoning-text.js.map +1 -0
- package/lib/types/client/settings/LinkOpeningRow.d.ts.map +1 -0
- package/lib/types/client/settings/LinkOpeningRow.js.map +1 -0
- package/lib/types/client/settings/PerformanceUsageRow.d.ts.map +1 -0
- package/lib/types/client/settings/PerformanceUsageRow.js.map +1 -0
- package/lib/types/client/settings/PreferenceRow.d.ts.map +1 -0
- package/lib/types/client/settings/PreferenceRow.js.map +1 -0
- package/lib/types/client/settings/TranscriptViewRow.d.ts.map +1 -0
- package/lib/types/client/settings/TranscriptViewRow.js.map +1 -0
- package/lib/types/client/stores.d.ts.map +1 -0
- package/lib/types/client/stores.js.map +1 -0
- package/lib/types/client/transcript-view.d.ts.map +1 -0
- package/lib/types/client/transcript-view.js.map +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js.map +1 -0
- package/package.json +47 -44
- package/src/chat-settings.ts +98 -0
- package/src/client/apply.ts +355 -0
- package/src/client/assets/running-whale@2x.png +0 -0
- package/src/client/chat/ApprovalCommand.tsx +42 -0
- package/src/client/chat/AssistantMarkdown.module.css +88 -0
- package/src/client/chat/AssistantMarkdown.tsx +170 -0
- package/src/client/chat/AssistantNodeView.tsx +67 -0
- package/src/client/chat/ChatFlow.tsx +100 -0
- package/src/client/chat/ChatGroupSeat.module.css +166 -0
- package/src/client/chat/ChatGroupSeat.tsx +208 -0
- package/src/client/chat/ChatNodeSeat.tsx +179 -0
- package/src/client/chat/ChatView.module.css +426 -0
- package/src/client/chat/ChatView.tsx +351 -0
- package/src/client/chat/CommandNodeView.tsx +40 -0
- package/src/client/chat/CompactionCommandCard.tsx +26 -0
- package/src/client/chat/CompactionItem.tsx +76 -0
- package/src/client/chat/ContextBody.module.css +161 -0
- package/src/client/chat/ContextBody.tsx +592 -0
- package/src/client/chat/ContextInjectionRow.module.css +68 -0
- package/src/client/chat/ContextInjectionRow.tsx +94 -0
- package/src/client/chat/GenericCommandCard.module.css +49 -0
- package/src/client/chat/GenericCommandCard.tsx +75 -0
- package/src/client/chat/MessageIconActions.module.css +116 -0
- package/src/client/chat/MessageIconActions.tsx +90 -0
- package/src/client/chat/MessageItem.module.css +360 -0
- package/src/client/chat/MessageItem.tsx +410 -0
- package/src/client/chat/QuotaNoticeHost.tsx +27 -0
- package/src/client/chat/ReasoningContent.tsx +26 -0
- package/src/client/chat/ReasoningRow.module.css +77 -0
- package/src/client/chat/ReasoningRow.tsx +112 -0
- package/src/client/chat/RunningStatus.tsx +48 -0
- package/src/client/chat/RunningWhaleTail.tsx +19 -0
- package/src/client/chat/StatsPills.module.css +63 -0
- package/src/client/chat/StatsPills.tsx +348 -0
- package/src/client/chat/SystemPromptRow.tsx +50 -0
- package/src/client/chat/TurnNavigator.module.css +223 -0
- package/src/client/chat/TurnNavigator.tsx +295 -0
- package/src/client/chat/TurnProcessNodeView.module.css +62 -0
- package/src/client/chat/TurnProcessNodeView.tsx +62 -0
- package/src/client/chat/TurnTailNodeView.module.css +12 -0
- package/src/client/chat/TurnTailNodeView.tsx +81 -0
- package/src/client/chat/TurnTriggerNodeView.module.css +50 -0
- package/src/client/chat/TurnTriggerNodeView.tsx +57 -0
- package/src/client/chat/TurnUsagePanel.module.css +79 -0
- package/src/client/chat/TurnUsagePanel.tsx +110 -0
- package/src/client/chat/UserContent.tsx +60 -0
- package/src/client/chat/accessibility.module.css +8 -0
- package/src/client/chat/flow-motion.ts +556 -0
- package/src/client/chat/message-chrome.ts +100 -0
- package/src/client/chat/register-node-renderers.ts +100 -0
- package/src/client/chat/render-entry.ts +16 -0
- package/src/client/chat/searchable-hidden.ts +45 -0
- package/src/client/chat/stat-dialog.module.css +149 -0
- package/src/client/chat/stat-dialog.ts +55 -0
- package/src/client/chat/step-process.ts +28 -0
- package/src/client/chat/text-interaction.ts +298 -0
- package/src/client/chat/text-selection.ts +180 -0
- package/src/client/chat/token-format.ts +98 -0
- package/src/client/chat/turn-assistant.ts +10 -0
- package/src/client/chat/turn-rail-items.ts +89 -0
- package/src/client/chat/turn-trigger.ts +88 -0
- package/src/client/chat/use-calendar-day.ts +25 -0
- package/src/client/chat/use-chat-navigation.ts +309 -0
- package/src/client/chat/use-chat-reading.ts +283 -0
- package/src/client/chat/use-chat-scroll.ts +209 -0
- package/src/client/chat/use-chat-viewport.ts +1130 -0
- package/src/client/chat/use-disclosure.ts +35 -0
- package/src/client/chat/use-process-scroll.ts +88 -0
- package/src/client/chat/use-scroll-follow.ts +182 -0
- package/src/client/chat/use-turn-data.ts +23 -0
- package/src/client/contract/assistant-content.ts +15 -0
- package/src/client/contract/chat-nodes.ts +135 -0
- package/src/client/contract/chat-visibility.ts +20 -0
- package/src/client/contract/group-tree.ts +37 -0
- package/src/client/contract/process-groups.ts +30 -0
- package/src/client/contract/slots.ts +508 -0
- package/src/client/contract/snapshot.ts +171 -0
- package/src/client/contract/store.ts +17 -0
- package/src/client/contract/turn-metrics.ts +43 -0
- package/src/client/contract/turn-process.ts +58 -0
- package/src/client/conversation-nodes/README.i18n.yaml +64 -0
- package/src/client/conversation-nodes/README.md +338 -0
- package/src/client/conversation-nodes/README.zh.md +338 -0
- package/src/client/conversation-nodes/assistant.ts +384 -0
- package/src/client/conversation-nodes/chat-snapshot-builder.ts +1244 -0
- package/src/client/conversation-nodes/command.ts +227 -0
- package/src/client/conversation-nodes/common.ts +83 -0
- package/src/client/conversation-nodes/compaction.ts +65 -0
- package/src/client/conversation-nodes/event-projection.ts +179 -0
- package/src/client/conversation-nodes/fallback.ts +41 -0
- package/src/client/conversation-nodes/group-tree-segments.ts +91 -0
- package/src/client/conversation-nodes/inbox.ts +148 -0
- package/src/client/conversation-nodes/message.ts +182 -0
- package/src/client/conversation-nodes/process-activity.ts +170 -0
- package/src/client/conversation-nodes/process-groups.ts +303 -0
- package/src/client/conversation-nodes/register.ts +38 -0
- package/src/client/conversation-nodes/request-prompt.ts +169 -0
- package/src/client/conversation-nodes/retry.ts +97 -0
- package/src/client/conversation-nodes/tool.ts +371 -0
- package/src/client/conversation-nodes/turn-error.ts +120 -0
- package/src/client/conversation-nodes/turn-max-tokens.ts +82 -0
- package/src/client/conversation-nodes/turn-navigation.ts +97 -0
- package/src/client/conversation-nodes/turn-process-presentation.ts +149 -0
- package/src/client/conversation-nodes/turn-process.ts +374 -0
- package/src/client/conversation-nodes/turn-tail.ts +164 -0
- package/src/client/fence/FenceLayers.tsx +33 -0
- package/src/client/fence/register.ts +22 -0
- package/src/client/file-path.ts +19 -0
- package/src/client/index.ts +69 -0
- package/src/client/locale.ts +1695 -0
- package/src/client/markdown-labels.ts +16 -0
- package/src/client/model/conversation-context.ts +24 -0
- package/src/client/model/steering-history.ts +64 -0
- package/src/client/model/tool-call-tree.ts +204 -0
- package/src/client/performance-usage.ts +34 -0
- package/src/client/presentation-policy.ts +109 -0
- package/src/client/reasoning-text.ts +25 -0
- package/src/client/settings/LinkOpeningRow.tsx +47 -0
- package/src/client/settings/PerformanceUsageRow.tsx +46 -0
- package/src/client/settings/PreferenceRow.module.css +66 -0
- package/src/client/settings/PreferenceRow.tsx +59 -0
- package/src/client/settings/TranscriptViewRow.tsx +93 -0
- package/src/client/stores.ts +62 -0
- package/src/client/transcript-view.ts +81 -0
- package/src/css-modules.d.ts +6 -0
- package/src/index.ts +45 -0
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
/* User messages align their bubble and action row to the right. */
|
|
2
|
+
|
|
3
|
+
.userRow {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-end;
|
|
7
|
+
gap: 6px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.userStack {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: flex-end;
|
|
14
|
+
gap: 8px;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
/* The figma 525px cap held as a share of the width axis (525/748 ≈ 0.702):
|
|
17
|
+
resolves to the original 525px on the default column and widens with a
|
|
18
|
+
dragged or adaptive column. The 748px fallback covers mounts outside the
|
|
19
|
+
conversation column, where the axis variable is absent. */
|
|
20
|
+
max-width: min(calc(var(--dsh-chat-content-width, 748px) * 0.702), 82%);
|
|
21
|
+
}
|
|
22
|
+
.referenceSummary {
|
|
23
|
+
color: var(--dsw-alias-label-tertiary);
|
|
24
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
25
|
+
line-height: calc(18px + var(--dsh-content-font-delta-secondary, 0px));
|
|
26
|
+
}
|
|
27
|
+
.contextRow {
|
|
28
|
+
padding: 2px 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Compaction marker: one 24px row with a context icon at rest and a
|
|
32
|
+
hover/focus disclosure for the summary body. */
|
|
33
|
+
.compactionRow {
|
|
34
|
+
/* The toggle's line, and the band a pinned toggle occupies. The button's
|
|
35
|
+
height and the offset that holds a summary's code banner below that band
|
|
36
|
+
are the same measurement, so both read it from here. */
|
|
37
|
+
--dsh-compaction-header-height: calc(24px + var(--dsh-content-font-delta, 0px));
|
|
38
|
+
padding: 2px 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.compactionButton {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: var(--dsh-compaction-header-height);
|
|
46
|
+
min-width: 0;
|
|
47
|
+
padding: 0;
|
|
48
|
+
border: none;
|
|
49
|
+
border-radius: var(--dsw-radius-sm);
|
|
50
|
+
background: none;
|
|
51
|
+
color: var(--dsw-alias-label-tertiary);
|
|
52
|
+
transition: color 100ms ease;
|
|
53
|
+
font: inherit;
|
|
54
|
+
text-align: left;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* The summary body flows uncapped with the page, so a long checkpoint summary
|
|
58
|
+
carries this toggle off the top of the viewport. Pin it to the conversation
|
|
59
|
+
scroll container's top while the row is open (the body is a sibling rendered
|
|
60
|
+
only when expanded); the base background masks the prose scrolling under it.
|
|
61
|
+
The square corners apply for as long as the row is open, pinned or not: the
|
|
62
|
+
fill is what masks the prose, and rounded corners would leave that prose visible
|
|
63
|
+
in the corners. z-index outranks the markdown code block's own sticky banner
|
|
64
|
+
(z-index 6 in CodeBlock.module.css); that banner itself stops below this
|
|
65
|
+
toggle (rule below), so a summary's fenced code block never puts a control
|
|
66
|
+
inside the toggle's band. */
|
|
67
|
+
.compactionRow:has(.compactionBody) .compactionButton {
|
|
68
|
+
position: sticky;
|
|
69
|
+
top: 0;
|
|
70
|
+
z-index: 7;
|
|
71
|
+
border-radius: 0;
|
|
72
|
+
background: var(--dsw-alias-bg-base);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* A fenced code block in the summary pins its banner at the scrollport top,
|
|
76
|
+
where this pinned toggle already sits, and the toggle's band covers the
|
|
77
|
+
banner's Copy control. Stop the banner below the toggle instead, on the same
|
|
78
|
+
measurement the toggle's own height uses. This rule beats CodeBlock's
|
|
79
|
+
`.bannerWrap { top: 0 }` by specificity (0,2,0 against 0,1,0), not by
|
|
80
|
+
declaration order: the two sheets load in their own packages. */
|
|
81
|
+
.compactionBody :has(> [data-code-block-banner]) {
|
|
82
|
+
top: var(--dsh-compaction-header-height);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Pinned, the toggle needs an opaque hover fill: the default translucent hover
|
|
86
|
+
token below would let the scrolling prose show through the moment the pointer
|
|
87
|
+
lands on the toggle to collapse it. */
|
|
88
|
+
@media (hover: hover) {
|
|
89
|
+
.compactionRow:has(.compactionBody) .compactionButton:hover {
|
|
90
|
+
background: var(--dsw-alias-interactive-bg-hover-solid);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.compactionButton:not(:disabled) {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@media (hover: hover) {
|
|
99
|
+
.compactionButton:hover {
|
|
100
|
+
color: var(--dsw-alias-label-secondary);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.compactionButton:not(:disabled):hover {
|
|
104
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.compactionLeading {
|
|
109
|
+
flex: none;
|
|
110
|
+
display: inline-grid;
|
|
111
|
+
place-items: center;
|
|
112
|
+
width: calc(16px + var(--dsh-content-font-delta, 0px));
|
|
113
|
+
height: calc(16px + var(--dsh-content-font-delta, 0px));
|
|
114
|
+
margin-right: 6px;
|
|
115
|
+
color: inherit;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Same glyph-scaling rule as DisclosureRow's leading: the CSS edge overrides
|
|
119
|
+
the svg attributes so the 14px glyphs follow the font-size delta. */
|
|
120
|
+
.compactionLeading svg {
|
|
121
|
+
width: calc(14px + var(--dsh-content-font-delta, 0px));
|
|
122
|
+
height: calc(14px + var(--dsh-content-font-delta, 0px));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.compactionContextIcon,
|
|
126
|
+
.compactionDisclosureIcon {
|
|
127
|
+
display: inline-flex;
|
|
128
|
+
grid-area: 1 / 1;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.compactionDisclosureIcon {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.compactionButton:not(:disabled):focus-visible .compactionContextIcon {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (hover: hover) {
|
|
142
|
+
.compactionButton:not(:disabled):hover .compactionContextIcon {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.compactionButton:not(:disabled):focus-visible .compactionDisclosureIcon {
|
|
148
|
+
opacity: 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (hover: hover) {
|
|
152
|
+
.compactionButton:not(:disabled):hover .compactionDisclosureIcon {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.compactionTitle {
|
|
158
|
+
flex: none;
|
|
159
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
160
|
+
line-height: calc(24px + var(--dsh-content-font-delta, 0px));
|
|
161
|
+
color: inherit;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.compactionSep {
|
|
165
|
+
flex: none;
|
|
166
|
+
width: 2px;
|
|
167
|
+
height: 2px;
|
|
168
|
+
margin: 0 8px;
|
|
169
|
+
border-radius: 1px;
|
|
170
|
+
background: var(--dsw-alias-label-caption);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.compactionSummary {
|
|
174
|
+
flex: 1 1 auto;
|
|
175
|
+
min-width: 0;
|
|
176
|
+
overflow: hidden;
|
|
177
|
+
color: inherit;
|
|
178
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
179
|
+
line-height: calc(24px + var(--dsh-content-font-delta, 0px));
|
|
180
|
+
text-overflow: ellipsis;
|
|
181
|
+
white-space: nowrap;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.compactionBody {
|
|
185
|
+
/* Indent under the title, which starts at leading (16 + delta) + gap 6. */
|
|
186
|
+
padding: 4px 0 4px calc(22px + var(--dsh-content-font-delta, 0px));
|
|
187
|
+
color: var(--dsw-alias-label-tertiary);
|
|
188
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
189
|
+
line-height: calc(24px + var(--dsh-content-font-delta, 0px));
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.retryRow {
|
|
193
|
+
color: var(--dsw-alias-label-tertiary);
|
|
194
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
195
|
+
line-height: calc(20px + var(--dsh-content-font-delta-secondary, 0px));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.retrySummary {
|
|
199
|
+
display: inline-flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
width: fit-content;
|
|
202
|
+
max-width: 100%;
|
|
203
|
+
padding: 2px 0;
|
|
204
|
+
gap: 7px;
|
|
205
|
+
border-radius: var(--dsw-radius-sm);
|
|
206
|
+
color: inherit;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
list-style: none;
|
|
209
|
+
user-select: none;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.retrySummary::-webkit-details-marker {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.retrySummary::after {
|
|
217
|
+
flex: none;
|
|
218
|
+
width: 6px;
|
|
219
|
+
height: 6px;
|
|
220
|
+
margin-right: 2px;
|
|
221
|
+
border-right: 1.5px solid currentcolor;
|
|
222
|
+
border-bottom: 1.5px solid currentcolor;
|
|
223
|
+
content: '';
|
|
224
|
+
transform: rotate(-45deg);
|
|
225
|
+
transition: transform 120ms ease;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
@media (hover: hover) {
|
|
229
|
+
.retrySummary:hover {
|
|
230
|
+
color: var(--dsw-alias-label-secondary);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@media (prefers-reduced-motion: reduce) {
|
|
235
|
+
.compactionButton {
|
|
236
|
+
transition: none;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.retrySummary:focus-visible {
|
|
241
|
+
outline: 1.5px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
242
|
+
outline-offset: 2px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.retryText {
|
|
246
|
+
min-width: 0;
|
|
247
|
+
overflow-wrap: anywhere;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.retryRow[open] .retrySummary::after {
|
|
251
|
+
transform: rotate(45deg);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.retryDetails {
|
|
255
|
+
display: grid;
|
|
256
|
+
gap: 2px;
|
|
257
|
+
margin-top: 3px;
|
|
258
|
+
padding-left: 14px;
|
|
259
|
+
overflow-wrap: anywhere;
|
|
260
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
261
|
+
line-height: calc(18px + var(--dsh-content-font-delta-secondary, 0px));
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.retryDetailLabel {
|
|
265
|
+
color: var(--dsw-alias-label-secondary);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.turnErrorRow {
|
|
269
|
+
display: grid;
|
|
270
|
+
grid-template-columns: 10px minmax(0, 1fr) auto;
|
|
271
|
+
gap: 8px;
|
|
272
|
+
align-items: start;
|
|
273
|
+
padding: 2px 0;
|
|
274
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
275
|
+
line-height: calc(20px + var(--dsh-content-font-delta-secondary, 0px));
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.turnErrorDot {
|
|
279
|
+
margin-top: 5px;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.turnErrorCopy {
|
|
283
|
+
min-width: 0;
|
|
284
|
+
overflow-wrap: anywhere;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.turnErrorTitle {
|
|
288
|
+
margin-right: 6px;
|
|
289
|
+
color: var(--dsw-alias-state-error-primary);
|
|
290
|
+
font-weight: 600;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.turnErrorMessage {
|
|
294
|
+
color: var(--dsw-alias-label-secondary);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.turnErrorCode {
|
|
298
|
+
color: var(--dsw-alias-label-tertiary);
|
|
299
|
+
font: var(--dsw-font-markdown-code-block-small);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.maxTokensTitle {
|
|
303
|
+
margin-right: 6px;
|
|
304
|
+
color: var(--dsw-alias-state-warn-primary);
|
|
305
|
+
font-weight: 600;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.attachmentRow {
|
|
309
|
+
display: flex;
|
|
310
|
+
flex-wrap: wrap;
|
|
311
|
+
justify-content: flex-end;
|
|
312
|
+
max-width: 100%;
|
|
313
|
+
gap: 8px;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.fileCard {
|
|
317
|
+
display: inline-flex;
|
|
318
|
+
flex: 0 0 240px;
|
|
319
|
+
align-items: center;
|
|
320
|
+
gap: 10px;
|
|
321
|
+
width: 240px;
|
|
322
|
+
min-height: 64px;
|
|
323
|
+
padding: 8px 12px;
|
|
324
|
+
border: 0.5px solid var(--dsw-alias-border-l2);
|
|
325
|
+
border-radius: var(--dsw-radius-lg);
|
|
326
|
+
background: var(--dsw-specific-input-major, transparent);
|
|
327
|
+
box-sizing: border-box;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.fileIcon {
|
|
331
|
+
flex: none;
|
|
332
|
+
width: 28px;
|
|
333
|
+
height: 28px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.fileContent {
|
|
337
|
+
display: flex;
|
|
338
|
+
flex: 1;
|
|
339
|
+
flex-direction: column;
|
|
340
|
+
min-width: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.fileName {
|
|
344
|
+
overflow: hidden;
|
|
345
|
+
white-space: nowrap;
|
|
346
|
+
text-overflow: ellipsis;
|
|
347
|
+
color: var(--dsw-alias-label-primary);
|
|
348
|
+
font-size: 14px;
|
|
349
|
+
font-weight: 500;
|
|
350
|
+
line-height: 22px;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.fileMeta {
|
|
354
|
+
overflow: hidden;
|
|
355
|
+
white-space: nowrap;
|
|
356
|
+
text-overflow: ellipsis;
|
|
357
|
+
color: var(--dsw-alias-label-tertiary);
|
|
358
|
+
font-size: 12px;
|
|
359
|
+
line-height: 15px;
|
|
360
|
+
}
|