@qwen-code/web-shell 0.24.1-preview.0

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 (413) hide show
  1. package/README.md +651 -0
  2. package/dist/daemon-react-sdk.js +53 -0
  3. package/dist/index.js +109094 -0
  4. package/dist/sw.js +9 -0
  5. package/dist/toolNames-DgCpmhML.js +17992 -0
  6. package/dist/transcript.js +31609 -0
  7. package/dist/types/App.d.ts +419 -0
  8. package/dist/types/WebShellContexts.d.ts +31 -0
  9. package/dist/types/adapters/localizedMessages.d.ts +24 -0
  10. package/dist/types/adapters/messageTypes.d.ts +194 -0
  11. package/dist/types/adapters/parallelAgentGrouping.d.ts +18 -0
  12. package/dist/types/adapters/promptTypes.d.ts +12 -0
  13. package/dist/types/adapters/toolClassification.d.ts +10 -0
  14. package/dist/types/adapters/transcriptAdapter.d.ts +3 -0
  15. package/dist/types/adapters/transcriptToMessages.d.ts +41 -0
  16. package/dist/types/adapters/types.d.ts +123 -0
  17. package/dist/types/brandContext.d.ts +44 -0
  18. package/dist/types/browser-turn-notifications.d.ts +36 -0
  19. package/dist/types/completions/slashCompletion.d.ts +35 -0
  20. package/dist/types/components/AtMentionPanel.d.ts +13 -0
  21. package/dist/types/components/BranchPickerPopover.d.ts +73 -0
  22. package/dist/types/components/ChatContextHeader.d.ts +18 -0
  23. package/dist/types/components/ChatEditor.d.ts +134 -0
  24. package/dist/types/components/ChatPane.d.ts +93 -0
  25. package/dist/types/components/ContextCompressionFeedback.d.ts +5 -0
  26. package/dist/types/components/ContextUsagePopover.d.ts +10 -0
  27. package/dist/types/components/ErrorBoundary.d.ts +40 -0
  28. package/dist/types/components/FileAttachmentContent.d.ts +4 -0
  29. package/dist/types/components/FileTypeIcon.d.ts +6 -0
  30. package/dist/types/components/GitBranchIndicator.d.ts +66 -0
  31. package/dist/types/components/GitModePopover.d.ts +23 -0
  32. package/dist/types/components/GlobalTurnNavigation.d.ts +16 -0
  33. package/dist/types/components/GoalStatusStrip.d.ts +13 -0
  34. package/dist/types/components/InsightProgress.d.ts +12 -0
  35. package/dist/types/components/InsightReady.d.ts +6 -0
  36. package/dist/types/components/LocalControlQrButton.d.ts +12 -0
  37. package/dist/types/components/LocalFilesControl.d.ts +74 -0
  38. package/dist/types/components/MessageItem.d.ts +43 -0
  39. package/dist/types/components/MessageList.d.ts +222 -0
  40. package/dist/types/components/MessageTimestamp.d.ts +32 -0
  41. package/dist/types/components/ModeIcon.d.ts +3 -0
  42. package/dist/types/components/MonitorIcon.d.ts +2 -0
  43. package/dist/types/components/PaneHeaderActions.d.ts +23 -0
  44. package/dist/types/components/PromptChevron.d.ts +7 -0
  45. package/dist/types/components/QueuedPromptDisplay.d.ts +57 -0
  46. package/dist/types/components/RootErrorFallback.d.ts +21 -0
  47. package/dist/types/components/SessionOverviewPanel.d.ts +46 -0
  48. package/dist/types/components/SessionPrBadge.d.ts +24 -0
  49. package/dist/types/components/SessionPrStateIcon.d.ts +32 -0
  50. package/dist/types/components/SessionRecoveryBanner.d.ts +3 -0
  51. package/dist/types/components/ShadowDomBoundary.d.ts +11 -0
  52. package/dist/types/components/SplitView.d.ts +69 -0
  53. package/dist/types/components/StandaloneAuth.d.ts +17 -0
  54. package/dist/types/components/StatusBar.d.ts +26 -0
  55. package/dist/types/components/StreamingStatus.d.ts +20 -0
  56. package/dist/types/components/Tips.d.ts +1 -0
  57. package/dist/types/components/ToastHost.d.ts +25 -0
  58. package/dist/types/components/TranscriptViewport.d.ts +17 -0
  59. package/dist/types/components/WebShellTranscript.d.ts +38 -0
  60. package/dist/types/components/WelcomeHeader.d.ts +8 -0
  61. package/dist/types/components/WorkspaceIndicator.d.ts +27 -0
  62. package/dist/types/components/WorkspaceSelector.d.ts +29 -0
  63. package/dist/types/components/WorkspaceSessionProvider.d.ts +19 -0
  64. package/dist/types/components/WorkspaceUnavailableState.d.ts +11 -0
  65. package/dist/types/components/agents/AgentCreatePage.d.ts +9 -0
  66. package/dist/types/components/agents/AgentsManagerPage.d.ts +8 -0
  67. package/dist/types/components/agents/agent-tool-options.d.ts +9 -0
  68. package/dist/types/components/agents/agents-manager-logic.d.ts +8 -0
  69. package/dist/types/components/artifacts/AgentWorkflow.d.ts +7 -0
  70. package/dist/types/components/artifacts/ArtifactIcon.d.ts +9 -0
  71. package/dist/types/components/artifacts/ArtifactPanel.d.ts +229 -0
  72. package/dist/types/components/artifacts/CodeReviewArtifactDetail.d.ts +63 -0
  73. package/dist/types/components/artifacts/ContextUsagePanel.d.ts +7 -0
  74. package/dist/types/components/artifacts/LineStats.d.ts +12 -0
  75. package/dist/types/components/artifacts/SideTaskPanel.d.ts +24 -0
  76. package/dist/types/components/artifacts/SubagentDetail.d.ts +14 -0
  77. package/dist/types/components/artifacts/TokenUsagePanel.d.ts +7 -0
  78. package/dist/types/components/artifacts/TurnOutputs.d.ts +121 -0
  79. package/dist/types/components/artifacts/artifactUtils.d.ts +37 -0
  80. package/dist/types/components/artifacts/turnOutputSelectors.d.ts +7 -0
  81. package/dist/types/components/artifacts/useArtifactWorkspaceTarget.d.ts +16 -0
  82. package/dist/types/components/channels/ChannelEditorDialog.d.ts +25 -0
  83. package/dist/types/components/channels/ChannelPairingRequests.d.ts +15 -0
  84. package/dist/types/components/channels/ChannelsManagerPage.d.ts +12 -0
  85. package/dist/types/components/channels/channel-editor-state.d.ts +25 -0
  86. package/dist/types/components/channels/channel-platform.d.ts +9 -0
  87. package/dist/types/components/composer/AddMenu.d.ts +20 -0
  88. package/dist/types/components/composer/prependSkillInvocation.d.ts +12 -0
  89. package/dist/types/components/dialogs/AddWorkspaceDialog.d.ts +24 -0
  90. package/dist/types/components/dialogs/ApprovalModeDialog.d.ts +7 -0
  91. package/dist/types/components/dialogs/DaemonStatusDialog.d.ts +3 -0
  92. package/dist/types/components/dialogs/DeleteSessionDialog.d.ts +8 -0
  93. package/dist/types/components/dialogs/DialogShell.d.ts +15 -0
  94. package/dist/types/components/dialogs/GitDialog.d.ts +14 -0
  95. package/dist/types/components/dialogs/GitDiffDialog.d.ts +14 -0
  96. package/dist/types/components/dialogs/GitHubPrsDialog.d.ts +9 -0
  97. package/dist/types/components/dialogs/GitLogDialog.d.ts +14 -0
  98. package/dist/types/components/dialogs/GoalEditDialog.d.ts +9 -0
  99. package/dist/types/components/dialogs/GoalsDialog.d.ts +16 -0
  100. package/dist/types/components/dialogs/HelpDialog.d.ts +6 -0
  101. package/dist/types/components/dialogs/ModelDialog.d.ts +28 -0
  102. package/dist/types/components/dialogs/ModelFallbacksDialog.d.ts +14 -0
  103. package/dist/types/components/dialogs/ReleaseSessionDialog.d.ts +8 -0
  104. package/dist/types/components/dialogs/ResumeDialog.d.ts +7 -0
  105. package/dist/types/components/dialogs/RewindDialog.d.ts +12 -0
  106. package/dist/types/components/dialogs/ScheduledTasksDialog.d.ts +30 -0
  107. package/dist/types/components/dialogs/SessionRow.d.ts +46 -0
  108. package/dist/types/components/dialogs/SvgLineChart.d.ts +35 -0
  109. package/dist/types/components/dialogs/ThemeDialog.d.ts +8 -0
  110. package/dist/types/components/dialogs/TokenHeatmap.d.ts +18 -0
  111. package/dist/types/components/dialogs/ToolsDialog.d.ts +1 -0
  112. package/dist/types/components/dialogs/UsageDashboardTab.d.ts +13 -0
  113. package/dist/types/components/dialogs/dialogStyles.d.ts +2 -0
  114. package/dist/types/components/dialogs/scheduledTasksSchedule.d.ts +62 -0
  115. package/dist/types/components/extensions/ExtensionsManagerPage.d.ts +9 -0
  116. package/dist/types/components/extensions/extensions-manager-logic.d.ts +3 -0
  117. package/dist/types/components/local-control-api.d.ts +30 -0
  118. package/dist/types/components/mcp/McpManagerPage.d.ts +12 -0
  119. package/dist/types/components/messages/AskUserQuestion.d.ts +18 -0
  120. package/dist/types/components/messages/AssistantMessage.d.ts +40 -0
  121. package/dist/types/components/messages/AuthMessage.d.ts +6 -0
  122. package/dist/types/components/messages/BtwMessage.d.ts +7 -0
  123. package/dist/types/components/messages/ContextUsageMessage.d.ts +9 -0
  124. package/dist/types/components/messages/EnhancedMarkdownTable.d.ts +31 -0
  125. package/dist/types/components/messages/FootnoteCard.d.ts +11 -0
  126. package/dist/types/components/messages/FootnotePreviewContent.d.ts +9 -0
  127. package/dist/types/components/messages/GoalApprovalContent.d.ts +5 -0
  128. package/dist/types/components/messages/GoalStatusMessage.d.ts +15 -0
  129. package/dist/types/components/messages/LinkifiedText.d.ts +8 -0
  130. package/dist/types/components/messages/LocalControlSettingsCard.d.ts +1 -0
  131. package/dist/types/components/messages/Markdown.d.ts +38 -0
  132. package/dist/types/components/messages/MarkdownChartRenderer.d.ts +65 -0
  133. package/dist/types/components/messages/McpApp.d.ts +21 -0
  134. package/dist/types/components/messages/McpStatusMessage.d.ts +22 -0
  135. package/dist/types/components/messages/MemoryMessage.d.ts +9 -0
  136. package/dist/types/components/messages/ModelManagementSection.d.ts +23 -0
  137. package/dist/types/components/messages/PlanExecutionView.d.ts +91 -0
  138. package/dist/types/components/messages/PlanMessage.d.ts +8 -0
  139. package/dist/types/components/messages/QuestionAnswerMessage.d.ts +7 -0
  140. package/dist/types/components/messages/SettingsMessage.d.ts +46 -0
  141. package/dist/types/components/messages/StatsMessage.d.ts +14 -0
  142. package/dist/types/components/messages/StatusMessage.d.ts +18 -0
  143. package/dist/types/components/messages/SystemMessage.d.ts +29 -0
  144. package/dist/types/components/messages/TasksStatusMessage.d.ts +38 -0
  145. package/dist/types/components/messages/TodoView.d.ts +17 -0
  146. package/dist/types/components/messages/ToolApproval.d.ts +28 -0
  147. package/dist/types/components/messages/ToolFilePreviewButton.d.ts +7 -0
  148. package/dist/types/components/messages/ToolGroup.d.ts +50 -0
  149. package/dist/types/components/messages/UserMessage.d.ts +46 -0
  150. package/dist/types/components/messages/UserShellMessage.d.ts +6 -0
  151. package/dist/types/components/messages/WorkflowExecutionView.d.ts +48 -0
  152. package/dist/types/components/messages/agentForest.d.ts +96 -0
  153. package/dist/types/components/messages/codeHighlighter.d.ts +25 -0
  154. package/dist/types/components/messages/rehype-footnote-cards.d.ts +22 -0
  155. package/dist/types/components/messages/toolFormatting.d.ts +63 -0
  156. package/dist/types/components/messages/tools/DiffView.d.ts +5 -0
  157. package/dist/types/components/messages/tools/ParallelAgentsGroup.d.ts +12 -0
  158. package/dist/types/components/messages/tools/SubAgentPanel.d.ts +10 -0
  159. package/dist/types/components/messages/tools/toolDisplay.d.ts +7 -0
  160. package/dist/types/components/panels/EnvironmentPanel.d.ts +45 -0
  161. package/dist/types/components/panels/SourcesSection.d.ts +25 -0
  162. package/dist/types/components/panels/TodoPanel.d.ts +11 -0
  163. package/dist/types/components/plugins/PluginManagerPage.d.ts +8 -0
  164. package/dist/types/components/plugins/manager-page.d.ts +4 -0
  165. package/dist/types/components/preview/SavedWebPreview.d.ts +5 -0
  166. package/dist/types/components/preview/WebPreviewPanel.d.ts +5 -0
  167. package/dist/types/components/preview/web-preview.d.ts +7 -0
  168. package/dist/types/components/sidebar/SessionDetailsTooltip.d.ts +17 -0
  169. package/dist/types/components/sidebar/SessionGroupSection.d.ts +19 -0
  170. package/dist/types/components/sidebar/StandaloneRecents.d.ts +33 -0
  171. package/dist/types/components/sidebar/WebShellSidebar.d.ts +139 -0
  172. package/dist/types/components/sidebar/WorkspaceDetailsTooltip.d.ts +49 -0
  173. package/dist/types/components/sidebar/WorkspaceMenu.d.ts +41 -0
  174. package/dist/types/components/sidebar/WorkspaceRenameDialog.d.ts +18 -0
  175. package/dist/types/components/sidebar/WorkspaceSection.d.ts +112 -0
  176. package/dist/types/components/sidebar/channelSessionGroups.d.ts +7 -0
  177. package/dist/types/components/sidebar/collapsedSessionSections.d.ts +25 -0
  178. package/dist/types/components/sidebar/scheduled-task-session-groups.d.ts +12 -0
  179. package/dist/types/components/sidebar/sessionDetailsCollisionBoundary.d.ts +1 -0
  180. package/dist/types/components/sidebar/sessionSearch.d.ts +28 -0
  181. package/dist/types/components/sidebar/sessionTitleScroll.d.ts +7 -0
  182. package/dist/types/components/sidebar/sidebarToggleShortcut.d.ts +18 -0
  183. package/dist/types/components/sidebar/useSessionContentSearch.d.ts +20 -0
  184. package/dist/types/components/sidebar/useWorkspaceOverview.d.ts +40 -0
  185. package/dist/types/components/sidebar/workspaceExpansion.d.ts +4 -0
  186. package/dist/types/components/sidebar/workspaceOverviewModel.d.ts +123 -0
  187. package/dist/types/components/skills/SkillInstallDialog.d.ts +8 -0
  188. package/dist/types/components/skills/SkillsManagerPage.d.ts +11 -0
  189. package/dist/types/components/skills/skills-manager-logic.d.ts +6 -0
  190. package/dist/types/components/sources/SourceList.d.ts +5 -0
  191. package/dist/types/components/sources/TurnSources.d.ts +5 -0
  192. package/dist/types/components/sources/sourceEntries.d.ts +8 -0
  193. package/dist/types/components/summaryRunId.d.ts +9 -0
  194. package/dist/types/components/terminal/TerminalPanel.d.ts +17 -0
  195. package/dist/types/components/toolbarDropdown.d.ts +39 -0
  196. package/dist/types/components/ui/alert-dialog.d.ts +19 -0
  197. package/dist/types/components/ui/alert.d.ts +10 -0
  198. package/dist/types/components/ui/badge.d.ts +9 -0
  199. package/dist/types/components/ui/breadcrumb.d.ts +11 -0
  200. package/dist/types/components/ui/button.d.ts +11 -0
  201. package/dist/types/components/ui/card.d.ts +11 -0
  202. package/dist/types/components/ui/checkbox.d.ts +4 -0
  203. package/dist/types/components/ui/data-table.d.ts +31 -0
  204. package/dist/types/components/ui/dialog.d.ts +19 -0
  205. package/dist/types/components/ui/drawer.d.ts +16 -0
  206. package/dist/types/components/ui/dropdown-menu.d.ts +29 -0
  207. package/dist/types/components/ui/empty.d.ts +11 -0
  208. package/dist/types/components/ui/field.d.ts +24 -0
  209. package/dist/types/components/ui/input.d.ts +3 -0
  210. package/dist/types/components/ui/label.d.ts +4 -0
  211. package/dist/types/components/ui/management-notice.d.ts +12 -0
  212. package/dist/types/components/ui/popover.d.ts +13 -0
  213. package/dist/types/components/ui/radio-group.d.ts +5 -0
  214. package/dist/types/components/ui/scroll-area.d.ts +5 -0
  215. package/dist/types/components/ui/select.d.ts +16 -0
  216. package/dist/types/components/ui/separator.d.ts +4 -0
  217. package/dist/types/components/ui/skeleton.d.ts +2 -0
  218. package/dist/types/components/ui/spinner.d.ts +2 -0
  219. package/dist/types/components/ui/switch.d.ts +6 -0
  220. package/dist/types/components/ui/table.d.ts +10 -0
  221. package/dist/types/components/ui/tabs.d.ts +13 -0
  222. package/dist/types/components/ui/textarea.d.ts +3 -0
  223. package/dist/types/components/ui/toggle-group.d.ts +10 -0
  224. package/dist/types/components/ui/toggle.d.ts +9 -0
  225. package/dist/types/components/ui/tooltip.d.ts +7 -0
  226. package/dist/types/components/workflow/SessionWorkflowCockpit.d.ts +17 -0
  227. package/dist/types/components/workflow/SessionWorkflowInspector.d.ts +15 -0
  228. package/dist/types/components/workflow/session-workflow-model.d.ts +32 -0
  229. package/dist/types/components/workflows/WorkflowRunsPage.d.ts +6 -0
  230. package/dist/types/components/workspaces/WorkspaceRemovalDialog.d.ts +20 -0
  231. package/dist/types/components/workspaces/WorkspacesOverviewPanel.d.ts +21 -0
  232. package/dist/types/components/workspaces/useWorkspaceRemoval.d.ts +47 -0
  233. package/dist/types/config/daemon.d.ts +41 -0
  234. package/dist/types/config/standalone.d.ts +1 -0
  235. package/dist/types/constants/loadingPhrases.d.ts +4 -0
  236. package/dist/types/constants/localCommands.d.ts +27 -0
  237. package/dist/types/constants/sessions.d.ts +43 -0
  238. package/dist/types/constants/toolNames.d.ts +9 -0
  239. package/dist/types/customization.d.ts +508 -0
  240. package/dist/types/daemon/followupSidechannel.d.ts +11 -0
  241. package/dist/types/daemon/index.d.ts +14 -0
  242. package/dist/types/daemon/midTurnInjectedSidechannel.d.ts +37 -0
  243. package/dist/types/daemon/pendingPromptVersion.d.ts +19 -0
  244. package/dist/types/daemon/session/DaemonSessionProvider.d.ts +45 -0
  245. package/dist/types/daemon/session/actions.d.ts +100 -0
  246. package/dist/types/daemon/session/clientLifecycle.d.ts +21 -0
  247. package/dist/types/daemon/session/httpErrors.d.ts +9 -0
  248. package/dist/types/daemon/session/index.d.ts +15 -0
  249. package/dist/types/daemon/session/live-journal-repair.d.ts +19 -0
  250. package/dist/types/daemon/session/mappers.d.ts +71 -0
  251. package/dist/types/daemon/session/promptContent.d.ts +11 -0
  252. package/dist/types/daemon/session/selectors.d.ts +21 -0
  253. package/dist/types/daemon/session/session-context.d.ts +16 -0
  254. package/dist/types/daemon/session/status.d.ts +12 -0
  255. package/dist/types/daemon/session/transcript-page-table.d.ts +147 -0
  256. package/dist/types/daemon/session/turn-navigation-store.d.ts +117 -0
  257. package/dist/types/daemon/session/turn-notification-context.d.ts +43 -0
  258. package/dist/types/daemon/session/types.d.ts +568 -0
  259. package/dist/types/daemon/timing.d.ts +14 -0
  260. package/dist/types/daemon/useDaemonFollowupSuggestion.d.ts +77 -0
  261. package/dist/types/daemon/useDaemonMidTurnInjected.d.ts +30 -0
  262. package/dist/types/daemon/workspace/DaemonWorkspaceProvider.d.ts +21 -0
  263. package/dist/types/daemon/workspace/actions.d.ts +14 -0
  264. package/dist/types/daemon/workspace/hooks/index.d.ts +21 -0
  265. package/dist/types/daemon/workspace/hooks/useDaemonAgents.d.ts +22 -0
  266. package/dist/types/daemon/workspace/hooks/useDaemonAuth.d.ts +24 -0
  267. package/dist/types/daemon/workspace/hooks/useDaemonChannels.d.ts +33 -0
  268. package/dist/types/daemon/workspace/hooks/useDaemonDiagnostics.d.ts +10 -0
  269. package/dist/types/daemon/workspace/hooks/useDaemonFiles.d.ts +10 -0
  270. package/dist/types/daemon/workspace/hooks/useDaemonGlob.d.ts +8 -0
  271. package/dist/types/daemon/workspace/hooks/useDaemonMcp.d.ts +31 -0
  272. package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +16 -0
  273. package/dist/types/daemon/workspace/hooks/useDaemonProviders.d.ts +20 -0
  274. package/dist/types/daemon/workspace/hooks/useDaemonResource.d.ts +7 -0
  275. package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +48 -0
  276. package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +20 -0
  277. package/dist/types/daemon/workspace/hooks/useDaemonSkills.d.ts +30 -0
  278. package/dist/types/daemon/workspace/hooks/useDaemonStatusReport.d.ts +18 -0
  279. package/dist/types/daemon/workspace/hooks/useDaemonTools.d.ts +16 -0
  280. package/dist/types/daemon/workspace/hooks/useDaemonUsageDashboard.d.ts +27 -0
  281. package/dist/types/daemon/workspace/hooks/useWorkspaceEventReload.d.ts +6 -0
  282. package/dist/types/daemon/workspace/index.d.ts +10 -0
  283. package/dist/types/daemon/workspace/load-ready-skills.d.ts +7 -0
  284. package/dist/types/daemon/workspace/types.d.ts +415 -0
  285. package/dist/types/daemon-react-sdk.d.ts +319 -0
  286. package/dist/types/extensions/inputHighlight.d.ts +10 -0
  287. package/dist/types/hooks/daemonSessionMappers.d.ts +2 -0
  288. package/dist/types/hooks/useAnimationFrameTranscriptBlocks.d.ts +10 -0
  289. package/dist/types/hooks/useAnimationFrameValue.d.ts +1 -0
  290. package/dist/types/hooks/useAtMentionMenu.d.ts +72 -0
  291. package/dist/types/hooks/useAtMentionSources.d.ts +113 -0
  292. package/dist/types/hooks/useBackgroundTasks.d.ts +8 -0
  293. package/dist/types/hooks/useChatNavigationVisible.d.ts +2 -0
  294. package/dist/types/hooks/useComposerCore.d.ts +226 -0
  295. package/dist/types/hooks/useContextUsageControls.d.ts +26 -0
  296. package/dist/types/hooks/useCopiedFlash.d.ts +15 -0
  297. package/dist/types/hooks/useDelayedGlobalKeyDown.d.ts +1 -0
  298. package/dist/types/hooks/useExternalLinkOpener.d.ts +11 -0
  299. package/dist/types/hooks/useFileUpload.d.ts +62 -0
  300. package/dist/types/hooks/useFilterInput.d.ts +27 -0
  301. package/dist/types/hooks/useInputHistory.d.ts +17 -0
  302. package/dist/types/hooks/useIsLargeScreen.d.ts +20 -0
  303. package/dist/types/hooks/useIsTouchComposer.d.ts +36 -0
  304. package/dist/types/hooks/useListboxKeyboard.d.ts +42 -0
  305. package/dist/types/hooks/useMessages.d.ts +20 -0
  306. package/dist/types/hooks/useModelConfigurations.d.ts +11 -0
  307. package/dist/types/hooks/useNewSessionSuggestion.d.ts +26 -0
  308. package/dist/types/hooks/useOtherWorkspaceSessions.d.ts +11 -0
  309. package/dist/types/hooks/usePrefersReducedMotion.d.ts +1 -0
  310. package/dist/types/hooks/useQueuedPrompts.d.ts +74 -0
  311. package/dist/types/hooks/useScopedSessions.d.ts +65 -0
  312. package/dist/types/hooks/useSessionArtifacts.d.ts +10 -0
  313. package/dist/types/hooks/useSessionArtifactsChange.d.ts +12 -0
  314. package/dist/types/hooks/useSessionSources.d.ts +13 -0
  315. package/dist/types/hooks/useShallowMemo.d.ts +2 -0
  316. package/dist/types/hooks/useSharedNow.d.ts +1 -0
  317. package/dist/types/hooks/useStreamingLoadingMetrics.d.ts +19 -0
  318. package/dist/types/hooks/useTranscriptViewport.d.ts +31 -0
  319. package/dist/types/i18n.d.ts +14 -0
  320. package/dist/types/index.d.ts +69 -0
  321. package/dist/types/interactionBlockContext.d.ts +3 -0
  322. package/dist/types/lib/utils.d.ts +2 -0
  323. package/dist/types/live/HotkeySetter.d.ts +16 -0
  324. package/dist/types/live/LiveVoiceButton.d.ts +7 -0
  325. package/dist/types/live/LiveVoiceSettingsCard.d.ts +9 -0
  326. package/dist/types/live/useLiveVoice.d.ts +17 -0
  327. package/dist/types/live/useLiveVoiceSetup.d.ts +19 -0
  328. package/dist/types/local-files/bridge-client.d.ts +207 -0
  329. package/dist/types/local-files/capabilities.d.ts +33 -0
  330. package/dist/types/local-files/directory-handle-store.d.ts +15 -0
  331. package/dist/types/local-files/local-directory.d.ts +130 -0
  332. package/dist/types/local-files/mcp-server.d.ts +57 -0
  333. package/dist/types/local-files/pick-directory.d.ts +49 -0
  334. package/dist/types/local-files/useLocalFilesBridge.d.ts +64 -0
  335. package/dist/types/main.d.ts +6 -0
  336. package/dist/types/mcpAppHostContext.d.ts +1 -0
  337. package/dist/types/midTurnDedup.d.ts +52 -0
  338. package/dist/types/monitorDetailsContext.d.ts +12 -0
  339. package/dist/types/notification-text.d.ts +8 -0
  340. package/dist/types/portalRoot.d.ts +2 -0
  341. package/dist/types/pwa-registration.d.ts +10 -0
  342. package/dist/types/session-catalog/session-catalog-hooks.d.ts +121 -0
  343. package/dist/types/session-catalog/session-catalog-store.d.ts +143 -0
  344. package/dist/types/session-catalog/session-live-state-poll-interval.d.ts +2 -0
  345. package/dist/types/session-catalog/workspace-session-live-state.d.ts +20 -0
  346. package/dist/types/settings.d.ts +70 -0
  347. package/dist/types/shadowDom.d.ts +17 -0
  348. package/dist/types/subagentDetailsContext.d.ts +15 -0
  349. package/dist/types/themeContext.d.ts +12 -0
  350. package/dist/types/transcript.d.ts +33 -0
  351. package/dist/types/transcriptRenderMode.d.ts +5 -0
  352. package/dist/types/utils/ansi.d.ts +9 -0
  353. package/dist/types/utils/askUserPermission.d.ts +13 -0
  354. package/dist/types/utils/base64.d.ts +1 -0
  355. package/dist/types/utils/bounded-map.d.ts +11 -0
  356. package/dist/types/utils/clipboard.d.ts +31 -0
  357. package/dist/types/utils/commandDisplay.d.ts +7 -0
  358. package/dist/types/utils/composerInputState.d.ts +19 -0
  359. package/dist/types/utils/composerModels.d.ts +28 -0
  360. package/dist/types/utils/composerTag.d.ts +42 -0
  361. package/dist/types/utils/composerTasks.d.ts +16 -0
  362. package/dist/types/utils/contextUsage.d.ts +9 -0
  363. package/dist/types/utils/copyCommand.d.ts +18 -0
  364. package/dist/types/utils/cssUrlVar.d.ts +3 -0
  365. package/dist/types/utils/dialogLabels.d.ts +1 -0
  366. package/dist/types/utils/dom.d.ts +2 -0
  367. package/dist/types/utils/errorDetail.d.ts +1 -0
  368. package/dist/types/utils/escapeIntent.d.ts +29 -0
  369. package/dist/types/utils/externalOpen.d.ts +15 -0
  370. package/dist/types/utils/formatDateTime.d.ts +7 -0
  371. package/dist/types/utils/formatRelativeTime.d.ts +4 -0
  372. package/dist/types/utils/formatRuntime.d.ts +1 -0
  373. package/dist/types/utils/formatTokenCount.d.ts +13 -0
  374. package/dist/types/utils/gitModeIntent.d.ts +22 -0
  375. package/dist/types/utils/goalCondition.d.ts +43 -0
  376. package/dist/types/utils/goalControlRequest.d.ts +20 -0
  377. package/dist/types/utils/goalGate.d.ts +39 -0
  378. package/dist/types/utils/imageIngestion.d.ts +47 -0
  379. package/dist/types/utils/largePaste.d.ts +44 -0
  380. package/dist/types/utils/linkify.d.ts +19 -0
  381. package/dist/types/utils/localCommandQueue.d.ts +47 -0
  382. package/dist/types/utils/modelDisplay.d.ts +1 -0
  383. package/dist/types/utils/modelEncoding.d.ts +15 -0
  384. package/dist/types/utils/modelSwitchMessages.d.ts +4 -0
  385. package/dist/types/utils/monitorTasks.d.ts +3 -0
  386. package/dist/types/utils/planMode.d.ts +5 -0
  387. package/dist/types/utils/promptAdmission.d.ts +1 -0
  388. package/dist/types/utils/queueDrain.d.ts +21 -0
  389. package/dist/types/utils/remote-name-skeleton.d.ts +1 -0
  390. package/dist/types/utils/sentinelMessage.d.ts +4 -0
  391. package/dist/types/utils/sessionErrors.d.ts +2 -0
  392. package/dist/types/utils/sessionPath.d.ts +19 -0
  393. package/dist/types/utils/sessionPreparation.d.ts +77 -0
  394. package/dist/types/utils/slash-command-action.d.ts +3 -0
  395. package/dist/types/utils/slashSectionPlan.d.ts +26 -0
  396. package/dist/types/utils/splitUrl.d.ts +37 -0
  397. package/dist/types/utils/standalone-session-routing.d.ts +2 -0
  398. package/dist/types/utils/systemInfo.d.ts +26 -0
  399. package/dist/types/utils/taskActivity.d.ts +18 -0
  400. package/dist/types/utils/timeAgo.d.ts +10 -0
  401. package/dist/types/utils/todos.d.ts +165 -0
  402. package/dist/types/utils/unicodeConfusables.d.ts +1 -0
  403. package/dist/types/utils/unifiedDiff.d.ts +12 -0
  404. package/dist/types/utils/workflowTasks.d.ts +3 -0
  405. package/dist/types/utils/workspace.d.ts +34 -0
  406. package/dist/types/utils/workspaceColor.d.ts +15 -0
  407. package/dist/types/voice/VoiceButton.d.ts +16 -0
  408. package/dist/types/voice/use-voice-workspace-settings.d.ts +13 -0
  409. package/dist/types/voice/useVoiceCapture.d.ts +42 -0
  410. package/dist/types/voice/voice-workspace-target.d.ts +45 -0
  411. package/dist/types/voice/voiceModels.d.ts +23 -0
  412. package/dist/types/workflowDetailsContext.d.ts +11 -0
  413. package/package.json +102 -0
@@ -0,0 +1,93 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type ReactNode } from 'react';
7
+ import { type DaemonSessionActions } from '@qwen-code/web-shell/daemon-react-sdk';
8
+ import { type DaemonSessionArtifact, type DaemonSessionMonitorTaskStatus, type DaemonSessionSummary, type DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
9
+ import { type RegisterContextUsageControls } from '../hooks/useContextUsageControls';
10
+ import type { WebShellSlashCommandHandler } from '../App';
11
+ import type { TurnOutputKind, TurnOutputOpenRequest } from './artifacts/TurnOutputs';
12
+ export interface PaneHeaderActionsInfo {
13
+ sessionId: string;
14
+ workspaceCwd?: string;
15
+ /** The pane's own session actions; lets an action drive session data. */
16
+ sessionActions?: DaemonSessionActions;
17
+ }
18
+ export type PaneHeaderActionsRenderer = (info: PaneHeaderActionsInfo) => ReactNode;
19
+ export interface ChatPaneProps {
20
+ /** Header label; falls back to the session's own display name / id. */
21
+ title?: string;
22
+ /** Session-list metadata for the shared title details. */
23
+ sessionSummary?: DaemonSessionSummary;
24
+ /** Last interacted pane, independent of whether its session is running. */
25
+ isActive?: boolean;
26
+ /** Must be referentially stable; reports pending state and unmount cleanup. */
27
+ onApprovalChange?: (sessionId: string, pending: boolean) => void;
28
+ /**
29
+ * The workspace this pane's session lives in. Passed explicitly by the split
30
+ * view (which knows it per session) and shown as a composer-toolbar chip on a
31
+ * multi-workspace daemon; falls back to the connection's own workspace.
32
+ */
33
+ workspaceCwd?: string;
34
+ /**
35
+ * Extra actions rendered in the pane header, before the built-in
36
+ * maximize/close buttons. Receives this pane's session id (and workspace
37
+ * when known) so the host can scope each control to the right session. When
38
+ * the actions no longer fit beside the title they collapse into a `…`
39
+ * overflow menu.
40
+ *
41
+ * Each child should be a single interactive element (button or link). When
42
+ * collapsed, the overflow menu lists the actions and proxies a click to that
43
+ * element, labelling each item from its accessible name (decorative
44
+ * `aria-hidden` glyphs are ignored). The action instance stays mounted in a
45
+ * hidden, off-pane slot across collapse so its state survives; because that
46
+ * slot is `visibility: hidden`, an action that opens a popover anchored to
47
+ * itself must render the popover through a portal — one rendered as a
48
+ * descendant of the action (or anchored to its bounding box) would be
49
+ * invisible or mispositioned while collapsed.
50
+ */
51
+ renderHeaderActions?: PaneHeaderActionsRenderer;
52
+ onClose?: () => void;
53
+ /**
54
+ * Toggle this pane between maximized (solo, filling the whole split) and the
55
+ * tiled layout. Omitted when only one pane is open — there's nothing to
56
+ * maximize against.
57
+ */
58
+ onToggleMaximize?: () => void;
59
+ /** Whether this pane is currently the maximized (solo) one. */
60
+ isMaximized?: boolean;
61
+ onError?: (error: unknown, fallback: string) => void;
62
+ onImageIngestionNotice?: (tone: 'warning' | 'error', message: string) => void;
63
+ /** Host slash-command callback shared with the main chat composer. */
64
+ onSlashCommand?: WebShellSlashCommandHandler;
65
+ onOpenGoals?: () => void;
66
+ onRightPanelOpen?: (request: TurnOutputOpenRequest) => void;
67
+ onOpenMonitor?: (task: DaemonSessionMonitorTaskStatus, sessionId: string, sessionActions: DaemonSessionActions) => void;
68
+ registerContextUsageControls?: RegisterContextUsageControls;
69
+ onBeforeContextCompress?: (sessionId: string) => void;
70
+ onOpenContextUsage?: (sessionId: string, sessionActions: DaemonSessionActions) => void;
71
+ onPaneArtifactsChange?: (sessionId: string, artifacts: readonly DaemonSessionArtifact[]) => void;
72
+ messageTurnOutputs?: readonly TurnOutputKind[];
73
+ /** Render inside a parent surface that already provides its own frame. */
74
+ embedded?: boolean;
75
+ onFirstPromptAdmitted?: (text: string) => void;
76
+ /** Whether this pane owns Session Catalog turn-completion reconciliation. */
77
+ reportCatalogTurnCompletion?: boolean;
78
+ hidden?: boolean;
79
+ voiceUserRevision?: number;
80
+ voiceWorkspaceRevisions?: Readonly<Record<string, number>>;
81
+ voiceWorkspaces?: readonly DaemonWorkspaceCapability[];
82
+ /** Enable the app-scoped experimental Session Workflow presentation. */
83
+ sessionWorkflowEnabled?: boolean;
84
+ planControlVisible?: boolean;
85
+ }
86
+ /**
87
+ * A self-contained interactive chat, scoped to whichever `DaemonSessionProvider`
88
+ * it is nested under. Rendering N of these (each under its own provider) inside
89
+ * one window is the split view: every pane has its own transcript, streaming
90
+ * state, approvals, and composer, and the browser scopes keyboard focus to the
91
+ * pane the user clicks into — so there is no cross-pane approval arbitration.
92
+ */
93
+ export declare function ChatPane({ title, sessionSummary, isActive, onApprovalChange, workspaceCwd, renderHeaderActions, onClose, onToggleMaximize, isMaximized, onError, onImageIngestionNotice, onSlashCommand, onOpenGoals, onRightPanelOpen, onOpenMonitor, onPaneArtifactsChange, registerContextUsageControls, onBeforeContextCompress, onOpenContextUsage, messageTurnOutputs, embedded, onFirstPromptAdmitted, reportCatalogTurnCompletion, hidden, voiceUserRevision, voiceWorkspaceRevisions, voiceWorkspaces, sessionWorkflowEnabled, planControlVisible, }: ChatPaneProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ContextUsageControls } from '../hooks/useContextUsageControls';
2
+ export declare function ContextCompressionFeedback({ controls, className, }: {
3
+ controls?: Pick<ContextUsageControls, 'compressing' | 'result'>;
4
+ className?: string;
5
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,10 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { ContextUsageControls } from '../hooks/useContextUsageControls';
3
+ export declare function ContextUsagePopover({ tokenCount, contextWindow, controls, onOpenDetails, showSnapshotHint, children, }: {
4
+ tokenCount: number;
5
+ contextWindow: number;
6
+ controls?: Pick<ContextUsageControls, 'canCompress' | 'compressing' | 'result' | 'compress'>;
7
+ onOpenDetails?: () => void;
8
+ showSnapshotHint: boolean;
9
+ children: ReactElement;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,40 @@
1
+ import { Component, type ErrorInfo, type ReactNode } from 'react';
2
+ type FallbackRender = (error: Error, reset: () => void) => ReactNode;
3
+ interface ErrorBoundaryProps {
4
+ children: ReactNode;
5
+ /**
6
+ * Rendered in place of the children once one of them throws. A function form
7
+ * receives the captured error and a `reset` callback that clears the error
8
+ * and re-mounts the children (for an explicit "try again" affordance).
9
+ */
10
+ fallback: ReactNode | FallbackRender;
11
+ /**
12
+ * When any value here changes between renders, the boundary clears its error
13
+ * state and retries. Pass the rendered content's identity (e.g. a message
14
+ * object) so an edited/retried/streamed update recovers on its own instead of
15
+ * staying stuck on the fallback. A stable broken child keeps the fallback and
16
+ * never loops, since unchanged keys never trigger a reset.
17
+ */
18
+ resetKeys?: ReadonlyArray<unknown>;
19
+ /** Identifies the boundary in console diagnostics. */
20
+ label?: string;
21
+ }
22
+ interface ErrorBoundaryState {
23
+ error: Error | null;
24
+ resetKeys: ReadonlyArray<unknown>;
25
+ }
26
+ /**
27
+ * Generic React error boundary. web-shell ships as an embeddable component, so
28
+ * a throw in any one subtree (Markdown, KaTeX, Mermaid, a tool panel) must not
29
+ * white-screen the host page. Wrap risky subtrees with this and supply a
30
+ * graceful fallback.
31
+ */
32
+ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
33
+ state: ErrorBoundaryState;
34
+ static getDerivedStateFromError(error: Error): Partial<ErrorBoundaryState>;
35
+ static getDerivedStateFromProps(props: ErrorBoundaryProps, state: ErrorBoundaryState): Partial<ErrorBoundaryState> | null;
36
+ componentDidCatch(error: Error, info: ErrorInfo): void;
37
+ private readonly reset;
38
+ render(): ReactNode;
39
+ }
40
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare function FileAttachmentContent({ name, mimeType, }: {
2
+ name: string;
3
+ mimeType?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { type LucideIcon } from 'lucide-react';
2
+ import type { ComponentProps } from 'react';
3
+ export declare function FileTypeIcon({ name, mimeType, size, absoluteStrokeWidth, ...props }: ComponentProps<LucideIcon> & {
4
+ name: string;
5
+ mimeType?: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonWorkspaceGitStatus } from '@qwen-code/sdk/daemon';
7
+ import { useI18n } from '../i18n';
8
+ /** Tone of the compact badge dot, by descending severity. */
9
+ type BadgeTone = 'error' | 'warning' | 'accent';
10
+ export interface DerivedStatus {
11
+ detached: boolean;
12
+ staged: number;
13
+ unstaged: number;
14
+ untracked: number;
15
+ conflicted: number;
16
+ ahead: number;
17
+ behind: number;
18
+ stashCount: number;
19
+ operation?: DaemonWorkspaceGitStatus['operation'];
20
+ dirty: boolean;
21
+ }
22
+ /**
23
+ * Normalise a (possibly v1, possibly absent) status into zero-defaulted
24
+ * counters. Shared with the branch picker so both surfaces read the same
25
+ * numbers from the same object.
26
+ */
27
+ export declare function deriveStatus(status?: DaemonWorkspaceGitStatus): DerivedStatus;
28
+ /**
29
+ * True once the daemon has actually computed the enriched (v2) fields;
30
+ * `computedAt` is stamped only on that path, so its absence means the counters
31
+ * above are defaults rather than a clean tree.
32
+ */
33
+ export declare function hasComputedTreeSummary(status?: DaemonWorkspaceGitStatus): boolean;
34
+ /**
35
+ * Severity tone for a status dot. The compact chip's badge and the sidebar
36
+ * details row both read it; null when there is nothing to flag.
37
+ */
38
+ export declare function gitBranchBadgeTone(s: DerivedStatus): BadgeTone | null;
39
+ type TranslateFn = ReturnType<typeof useI18n>['t'];
40
+ export declare function gitStatusPhrases(s: DerivedStatus, t: TranslateFn): string[];
41
+ /**
42
+ * Composed accessible label for a git branch chip, e.g.
43
+ * "Current branch: main — 3 staged, 2 ahead". Shared by the indicator and any
44
+ * wrapper button so the accessible name never drifts from the tooltip phrases.
45
+ */
46
+ export declare function gitBranchAriaLabel(branch: string, status: DaemonWorkspaceGitStatus | undefined, t: TranslateFn): string;
47
+ /**
48
+ * The chip's inner content (icon + branch + status indicators), shared by the
49
+ * interactive {@link GitBranchIndicator} and the toolbar's hidden measurement
50
+ * replica. The replica must render the same indicators or it under-measures the
51
+ * expanded chip, which makes the responsive compact/expanded toggle oscillate.
52
+ */
53
+ export declare function GitBranchChipContent({ branch, status, compact, worktree, }: {
54
+ branch: string;
55
+ status?: DaemonWorkspaceGitStatus;
56
+ compact: boolean;
57
+ worktree?: boolean;
58
+ }): import("react/jsx-runtime").JSX.Element;
59
+ export declare function GitBranchIndicator({ branch, status, compact, onOpenDiff, worktree, }: {
60
+ branch: string;
61
+ status?: DaemonWorkspaceGitStatus;
62
+ compact?: boolean;
63
+ onOpenDiff?: () => void;
64
+ worktree?: boolean;
65
+ }): import("react/jsx-runtime").JSX.Element;
66
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export type SessionGitIntent = {
7
+ mode: 'current';
8
+ } | {
9
+ mode: 'branch';
10
+ name: string;
11
+ } | {
12
+ mode: 'worktree';
13
+ slug?: string;
14
+ };
15
+ export declare function validateBranchName(name: string): boolean;
16
+ interface GitModePopoverProps {
17
+ branch: string;
18
+ compact?: boolean;
19
+ intent: SessionGitIntent;
20
+ onIntentChange: (intent: SessionGitIntent) => void;
21
+ }
22
+ export declare function GitModePopover({ branch, compact, intent, onIntentChange, }: GitModePopoverProps): import("react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonTurnNavigationSnapshot, DaemonTurnNavigationStore } from '../daemon/session/turn-navigation-store';
7
+ export declare function GlobalTurnNavigation({ state, store, follow, onSelect, }: {
8
+ state: DaemonTurnNavigationSnapshot;
9
+ store: DaemonTurnNavigationStore;
10
+ follow?: {
11
+ start: number;
12
+ end: number;
13
+ current: number;
14
+ };
15
+ onSelect: (ordinal: number) => void;
16
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { GoalSnapshotV2 } from '@qwen-code/sdk/daemon';
2
+ import { useI18n } from '../i18n';
3
+ export interface GoalStatusStripProps {
4
+ snapshot: GoalSnapshotV2;
5
+ busy?: boolean;
6
+ onEdit: () => void;
7
+ onPause: () => void;
8
+ onResume: () => void;
9
+ onClear: () => void;
10
+ }
11
+ export declare function getGoalActiveTimeMs(snapshot: GoalSnapshotV2, now: number): number;
12
+ export declare function getGoalTokenLabel(goal: NonNullable<GoalSnapshotV2['goal']>, t: ReturnType<typeof useI18n>['t']): string | undefined;
13
+ export declare function GoalStatusStrip({ snapshot, busy, onEdit, onPause, onResume, onClear, }: GoalStatusStripProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,12 @@
1
+ export interface InsightProgressData {
2
+ stage: string;
3
+ progress: number;
4
+ detail?: string;
5
+ isComplete?: boolean;
6
+ error?: string;
7
+ }
8
+ interface InsightProgressProps {
9
+ progress: InsightProgressData;
10
+ }
11
+ export declare function InsightProgress({ progress }: InsightProgressProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,6 @@
1
+ interface InsightReadyProps {
2
+ path: string;
3
+ onInsightReportOpen?: (path: string) => void;
4
+ }
5
+ export declare function InsightReady({ path, onInsightReportOpen }: InsightReadyProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ interface LocalControlQrButtonProps {
7
+ onOpenSettings: () => void;
8
+ /** Extra classes for the trigger, e.g. to match a host header's action style. */
9
+ className?: string;
10
+ }
11
+ export declare function LocalControlQrButton({ onOpenSettings, className, }: LocalControlQrButtonProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonCapabilities, DaemonClient, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
7
+ import type { AcpWorkspaceSelector } from '../local-files/bridge-client';
8
+ import { type LocalFilesStatus } from '../local-files/useLocalFilesBridge';
9
+ export interface LocalFilesPanelProps {
10
+ status: LocalFilesStatus;
11
+ onConnect: () => void;
12
+ onDisconnect: () => void;
13
+ onOpenInNewTab: () => void;
14
+ }
15
+ /**
16
+ * The popover body, kept prop-driven and free of hooks/portals so the phase →
17
+ * affordance mapping is testable without a Radix portal or a daemon provider.
18
+ */
19
+ export declare function LocalFilesPanel({ status, onConnect, onDisconnect, onOpenInNewTab, }: LocalFilesPanelProps): import("react/jsx-runtime").JSX.Element;
20
+ interface LocalFilesControlProps {
21
+ /**
22
+ * Class for the trigger button. Required, and supplied by the host surface
23
+ * (the sidebar passes its own footer-button class) so the entry matches its
24
+ * neighbours instead of inventing a second button style.
25
+ */
26
+ triggerClassName: string;
27
+ /**
28
+ * The merged workspace list (capabilities snapshot plus a locked workspace
29
+ * registered before the snapshot). The sidebar already holds it; resolving
30
+ * on the bare snapshot alone would collapse a locked workspace's session
31
+ * onto the primary mount.
32
+ */
33
+ workspaces?: readonly DaemonWorkspaceCapability[];
34
+ }
35
+ /**
36
+ * Resolve how a session's bridge must dial, with the same rules voice uses
37
+ * for the eligible cases (primary → legacy `/acp`, trusted secondary →
38
+ * workspace-qualified route). Unlike voice, this surface also needs an
39
+ * explicit "no bridge" outcome: an untrusted or live workspace must withhold
40
+ * the entry instead of collapsing onto the primary mount, and
41
+ * `{ kind: 'pending' }` is reserved for "cannot tell yet" (capabilities
42
+ * snapshot or registry entry not landed). The resolver never returns
43
+ * `undefined`; whether a resolved route may actually be offered also depends
44
+ * on the daemon's client_mcp_over_ws feature gate, which the caller applies
45
+ * separately.
46
+ */
47
+ export type LocalFilesWorkspaceRoute = {
48
+ kind: 'legacy';
49
+ } | {
50
+ kind: 'qualified';
51
+ selector: AcpWorkspaceSelector;
52
+ } | {
53
+ kind: 'none';
54
+ } | {
55
+ kind: 'pending';
56
+ };
57
+ export declare function resolveLocalFilesWorkspaceRoute(options: {
58
+ capabilities: DaemonCapabilities | undefined;
59
+ workspaces?: readonly DaemonWorkspaceCapability[];
60
+ workspaceCwd: string | undefined;
61
+ sessionId: string | undefined;
62
+ }): LocalFilesWorkspaceRoute;
63
+ /**
64
+ * Registration retries must warm the runtime that owns the session: the
65
+ * legacy preheat route is bound to the primary workspace, so a secondary
66
+ * session's cold child would never warm and every attempt would fail.
67
+ */
68
+ export declare function createLocalFilesRewarm(options: {
69
+ client: DaemonClient;
70
+ selector: AcpWorkspaceSelector | undefined;
71
+ preheat: () => Promise<unknown>;
72
+ }): () => Promise<void>;
73
+ export declare function LocalFilesControl({ triggerClassName, workspaces, }: LocalFilesControlProps): import("react/jsx-runtime").JSX.Element;
74
+ export {};
@@ -0,0 +1,43 @@
1
+ import type { Message, PermissionRequest } from '../adapters/types';
2
+ import type { WebShellAssistantTurnFooterRenderInfo, WebShellSource } from '../customization';
3
+ import { type SessionContentGenerator } from './messages/AssistantMessage';
4
+ import type { TurnOutputOpenRequest } from './artifacts/TurnOutputs';
5
+ import type { AttachmentPreviewRequest } from '../adapters/messageTypes';
6
+ interface MessageItemProps {
7
+ message: Message;
8
+ pendingApproval?: PermissionRequest | null;
9
+ /** Run /context detail, exactly like typing it (context-usage panels). */
10
+ onShowContextDetail?: () => void;
11
+ onLocateBackgroundSource?: (messageId: string, callId?: string) => boolean;
12
+ /** Click an uploaded image in a user message to preview it in the right panel. */
13
+ onImagePreview?: (src: string, alt?: string) => void;
14
+ onAttachmentPreview?: (file: AttachmentPreviewRequest) => void;
15
+ onTurnOutputOpen?: (request: TurnOutputOpenRequest) => void;
16
+ onInsightReportOpen?: (path: string) => void;
17
+ workspaceCwd?: string;
18
+ showRetryHint?: boolean;
19
+ onRetryClick?: () => void;
20
+ sendFailed?: boolean;
21
+ onRetrySend?: () => void;
22
+ /**
23
+ * Open the in-place editor for this user message. Return `true` when a host
24
+ * owns the edit lifecycle — then the inline editor stays closed.
25
+ */
26
+ onEditUserMessage?: () => boolean | void;
27
+ /**
28
+ * Send the text the user confirmed in the inline editor. Resolves `false`
29
+ * when the resend was refused or failed; the editor stays open then.
30
+ */
31
+ onSubmitUserMessageEdit?: (content: string) => boolean | void | Promise<boolean | void>;
32
+ onBranchSession?: (branchRecordId?: string) => void | Promise<void>;
33
+ branchRecordId?: string;
34
+ showAssistantActions?: boolean;
35
+ showAssistantBranch?: boolean;
36
+ isLocateFlashing?: boolean;
37
+ assistantTurnFooterInfo?: WebShellAssistantTurnFooterRenderInfo;
38
+ turnSources?: readonly WebShellSource[];
39
+ onSourceOpen?: (source: WebShellSource) => void;
40
+ generateContent?: SessionContentGenerator;
41
+ }
42
+ export declare const MessageItem: import("react").NamedExoticComponent<MessageItemProps>;
43
+ export {};