@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,63 @@
1
+ import type { ACPToolCall } from '../../adapters/types';
2
+ export { isActiveToolStatus } from '../../adapters/toolClassification';
3
+ /**
4
+ * Internal-tool-name → display-name lookup. This is a standalone copy of
5
+ * core's `ToolDisplayNames` (mapped to wire names, as the CLI's shared
6
+ * `tool-display-map.ts` does): the web-shell is a browser bundle and
7
+ * intentionally does not depend on `@qwen-code/qwen-code-core`, so the map
8
+ * can't be imported. Keep the canonical tool entries in sync with core's
9
+ * `ToolDisplayNames`; the extra lowercase ACP aliases below (bash, read,
10
+ * write, …) are web-shell-only conveniences with no core equivalent.
11
+ */
12
+ export declare const TOOL_DISPLAY_NAMES: Record<string, string>;
13
+ export declare function sanitizeControlChars(text: string): string;
14
+ export declare function formatToolDisplayName(toolName: string): string;
15
+ /**
16
+ * Locale-aware tool display name for chat-stream badges. Looks up the
17
+ * `toolName.<wire_name>` i18n key; when the active language has no entry the
18
+ * translator returns the key verbatim, in which case we fall back to the
19
+ * English {@link formatToolDisplayName}. Pass the `t` from `useI18n()`.
20
+ */
21
+ export declare function localizeToolDisplayName(toolName: string, t: (key: string, vars?: Record<string, string | number>) => string): string;
22
+ export declare function isAskUserQuestionToolName(toolName: string): boolean;
23
+ export declare function isCompletedAskUserQuestion(tool: ACPToolCall): boolean;
24
+ export declare function getQuestionAnswerResult(tool: ACPToolCall): {
25
+ text: string;
26
+ answers: Array<{
27
+ question: string;
28
+ answer: string;
29
+ }>;
30
+ } | null;
31
+ export declare function truncateText(text: string, max: number): string;
32
+ export declare function getToolDescription(tool: ACPToolCall, workspaceCwd?: string): string;
33
+ export declare function getToolSummaryDescription(tool: ACPToolCall, workspaceCwd?: string): string;
34
+ export declare function getShellToolSemanticDescription(tool: ACPToolCall): string;
35
+ export declare function extractText(tool: ACPToolCall): string | null;
36
+ export declare function getToolResultSummary(tool: ACPToolCall): string;
37
+ /**
38
+ * Like every other is*ToolName helper, normalizes case so callers can pass
39
+ * the raw wire name. One predicate on purpose: ToolGroup gates the detail
40
+ * view, the ToolLine route and the collapsed keep-mounted behaviour on
41
+ * this, and three hand-inlined copies could diverge on a rename with no
42
+ * compile error — routing would then disagree with mounting.
43
+ */
44
+ export declare function isWorkflowToolName(name: string): boolean;
45
+ export declare function isShellToolName(name: string): boolean;
46
+ export declare function isSkillToolName(name: string): boolean;
47
+ export declare function toolContainsCallId(tool: ACPToolCall, toolCallId: string): boolean;
48
+ export declare function getTaskExecutionRecord(rawOutput: unknown): Record<string, unknown> | undefined;
49
+ export declare function getAgentCancellationReason(agent: ACPToolCall): string;
50
+ export declare function isAgentCancelled(agent: ACPToolCall): boolean;
51
+ export declare function getSubagentDetailsUnavailableReason(agent: ACPToolCall): string | undefined;
52
+ export declare function getAgentDisplayStatus(agent: ACPToolCall): ACPToolCall['status'];
53
+ export declare function formatTokenCount(tokens: number): string;
54
+ export declare function getAgentType(agent: ACPToolCall): string;
55
+ export declare function isDefaultAgentType(agentType: string): boolean;
56
+ /**
57
+ * Locale-aware agent type display name. Looks up `agentType.<name>`
58
+ * (case-insensitive) via the translator; falls back to the raw name
59
+ * for user-defined agents that have no i18n entry.
60
+ */
61
+ export declare function localizeAgentTypeName(agentType: string, t: (key: string, vars?: Record<string, string | number>) => string): string;
62
+ export declare function getAgentDescription(agent: ACPToolCall): string;
63
+ export declare function getAgentCurrentToolHint(agent: ACPToolCall, t: (key: string, vars?: Record<string, string | number>) => string): string;
@@ -0,0 +1,5 @@
1
+ interface DiffViewProps {
2
+ diff: string;
3
+ }
4
+ export declare const DiffView: import("react").NamedExoticComponent<DiffViewProps>;
5
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { ACPToolCall, PermissionRequest } from '../../../adapters/types';
2
+ interface ParallelAgentsGroupProps {
3
+ agents: ACPToolCall[];
4
+ autoManageExpansion?: boolean;
5
+ automaticCollapseDelayMs?: number;
6
+ deferAutomaticCollapse?: boolean;
7
+ expandActiveWhenLive?: boolean;
8
+ onAutomaticExpansionChange?: (expanded: boolean) => void;
9
+ pendingApproval?: PermissionRequest | null;
10
+ }
11
+ export declare function ParallelAgentsGroup({ agents, autoManageExpansion, automaticCollapseDelayMs, deferAutomaticCollapse, expandActiveWhenLive, onAutomaticExpansionChange, pendingApproval, }: ParallelAgentsGroupProps): import("react/jsx-runtime").JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ACPToolCall, PermissionRequest } from '../../../adapters/types';
2
+ interface SubAgentPanelProps {
3
+ tool: ACPToolCall;
4
+ approval?: PermissionRequest | null;
5
+ defaultExpanded?: boolean;
6
+ hideHeader?: boolean;
7
+ inline?: boolean;
8
+ }
9
+ export declare function SubAgentPanel({ tool, approval, defaultExpanded, hideHeader, inline, }: SubAgentPanelProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ export { formatToolDisplayName, localizeToolDisplayName, truncateText, } from '../toolFormatting';
2
+ export declare function StatusIcon({ status }: {
3
+ status: string;
4
+ }): import("react/jsx-runtime").JSX.Element | null;
5
+ export declare function formatElapsed(start?: number, end?: number): string;
6
+ export declare function formatDurationMs(ms?: number): string;
7
+ export declare function formatLiveElapsed(ms: number): string;
@@ -0,0 +1,45 @@
1
+ import type { DaemonSessionAgentTaskStatus, DaemonSessionAttachmentReference, DaemonSessionArtifact, DaemonSessionTaskWithWorkflowStatus, DaemonWorkspaceGitStatus } from '@qwen-code/sdk/daemon';
2
+ import type { WebShellEnvironmentPanelItem } from '../../customization';
3
+ import type { AttachmentPreviewRequest } from '../../adapters/messageTypes';
4
+ import type { ImageTabSource } from '../artifacts/ArtifactPanel';
5
+ import { type SourcesState } from './SourcesSection';
6
+ import type { SessionSource } from '@qwen-code/sdk/daemon';
7
+ interface EnvironmentPanelProps {
8
+ sources?: SourcesState;
9
+ onOpenSource?: (source: SessionSource) => void;
10
+ retrySourceRegistration?: () => Promise<void>;
11
+ floating?: boolean;
12
+ hidden?: boolean;
13
+ workspaceCwd?: string;
14
+ gitWorkspaceCwd?: string;
15
+ gitCwd?: string;
16
+ branch?: string;
17
+ gitStatus?: DaemonWorkspaceGitStatus;
18
+ tasks: readonly DaemonSessionTaskWithWorkflowStatus[];
19
+ agentTasks?: readonly EnvironmentAgentTask[];
20
+ attachments?: readonly DaemonSessionAttachmentReference[];
21
+ attachmentsLoading?: boolean;
22
+ attachmentsError?: string;
23
+ onRetryAttachments?: () => void;
24
+ artifacts?: readonly DaemonSessionArtifact[];
25
+ artifactsLoading?: boolean;
26
+ items?: readonly WebShellEnvironmentPanelItem[];
27
+ onOpenGitDiff?: () => void;
28
+ onOpenGitCommit?: () => void;
29
+ onOpenAgent?: (task: DaemonSessionAgentTaskStatus) => void;
30
+ onOpenAgentWorkflow?: () => void;
31
+ onOpenTask: (task: DaemonSessionTaskWithWorkflowStatus) => void;
32
+ /** Resolve an attachment to a displayable `data:` URL. */
33
+ onReadImage?: (attachmentId: string) => Promise<string>;
34
+ onImagePreview?: (src: string, alt?: string, source?: ImageTabSource) => void;
35
+ onAttachmentPreview?: (file: AttachmentPreviewRequest) => void;
36
+ onAttachmentPreviewError?: (error: unknown) => void;
37
+ onOpenArtifact?: (artifactId: string) => void;
38
+ onDismiss?: () => void;
39
+ }
40
+ export type EnvironmentAgentTask = DaemonSessionAgentTaskStatus & {
41
+ color?: string;
42
+ lineageState?: 'complete' | 'orphaned' | 'cycle';
43
+ };
44
+ export declare function EnvironmentPanel({ sources, onOpenSource, retrySourceRegistration, floating, hidden, workspaceCwd, gitWorkspaceCwd, gitCwd, branch, gitStatus, tasks, agentTasks, attachments, attachmentsLoading, attachmentsError, onRetryAttachments, artifacts, artifactsLoading, items, onOpenGitDiff, onOpenGitCommit, onOpenAgent, onOpenAgentWorkflow, onOpenTask, onReadImage, onImagePreview, onAttachmentPreview, onAttachmentPreviewError, onOpenArtifact, onDismiss, }: EnvironmentPanelProps): import("react/jsx-runtime").JSX.Element;
45
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { DaemonSessionAttachmentReference, SessionSource } from '@qwen-code/sdk/daemon';
2
+ import type { useSessionSources } from '../../hooks/useSessionSources';
3
+ import type { WebShellSource } from '../../customization';
4
+ import type { AttachmentPreviewRequest } from '../../adapters/messageTypes';
5
+ import type { ImageTabSource } from '../artifacts/ArtifactPanel';
6
+ export type SourcesState = ReturnType<typeof useSessionSources>;
7
+ interface SourcesSectionProps {
8
+ hidden?: boolean;
9
+ state?: SourcesState;
10
+ attachments?: readonly DaemonSessionAttachmentReference[];
11
+ attachmentsLoading?: boolean;
12
+ attachmentsError?: string;
13
+ onRetryAttachments?: () => void;
14
+ onOpen?: (source: SessionSource) => void;
15
+ retryRegistration?: () => Promise<void>;
16
+ onDialogOpenChange?: (open: boolean) => void;
17
+ onReadImage?: (attachmentId: string) => Promise<string>;
18
+ onImagePreview?: (src: string, alt?: string, source?: ImageTabSource) => void;
19
+ onAttachmentPreview?: (file: AttachmentPreviewRequest) => void;
20
+ onAttachmentPreviewError?: (error: unknown) => void;
21
+ }
22
+ export declare function SourcesSection({ hidden, state, attachments, attachmentsLoading, attachmentsError, onRetryAttachments, onOpen, retryRegistration, onDialogOpenChange, onReadImage, onImagePreview, onAttachmentPreview, onAttachmentPreviewError, }: SourcesSectionProps): import("react/jsx-runtime").JSX.Element | null;
23
+ export declare function sourceLocation(source: SessionSource): string;
24
+ export declare function openSourceEntry(entry: WebShellSource, actions: Pick<SourcesSectionProps, 'onOpen' | 'onReadImage' | 'onImagePreview' | 'onAttachmentPreview' | 'onAttachmentPreviewError'>): void;
25
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { TodoItem } from '../../adapters/types';
2
+ import type { WebShellBottomStatusItem } from '../../customization';
3
+ interface TodoPanelProps {
4
+ todos: TodoItem[];
5
+ title?: string;
6
+ statusItems?: readonly WebShellBottomStatusItem[];
7
+ hasLiveActivity?: boolean;
8
+ onOpen?: () => void;
9
+ }
10
+ export declare const TodoPanel: import("react").NamedExoticComponent<TodoPanelProps>;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import { type Ref } from 'react';
2
+ interface PluginManagerPageProps {
3
+ onClose: () => void;
4
+ onUseSkill: (name: string) => void;
5
+ initialFocusRef?: Ref<HTMLButtonElement>;
6
+ }
7
+ export declare function PluginManagerPage({ onClose, onUseSkill, initialFocusRef, }: PluginManagerPageProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface EmbeddedManagerPage {
2
+ onRoot: () => void;
3
+ onDetailChange: (open: boolean) => void;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { type DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
2
+ export declare function SavedWebPreview({ artifact, sourceSessionId, }: {
3
+ artifact: DaemonSessionArtifact;
4
+ sourceSessionId?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { type WebPreviewState } from './web-preview';
2
+ export declare function WebPreviewPanel({ state, onChange, }: {
3
+ state: WebPreviewState;
4
+ onChange: (state: WebPreviewState) => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export interface WebPreviewState {
2
+ url: string;
3
+ viewport: 'desktop' | 'mobile';
4
+ }
5
+ export declare function parseWebPreviewUrl(input: string, shellUrl: string, daemonUrl: string): URL | undefined;
6
+ export declare function escapeAttribute(value: string): string;
7
+ export declare function webPreviewDocument(url: URL, title: string): string;
@@ -0,0 +1,17 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
3
+ interface SessionDetailsTooltipProps {
4
+ session: DaemonSessionSummary;
5
+ label: string;
6
+ time: string;
7
+ completedUnread: boolean;
8
+ workspaceLabel?: string;
9
+ openOnClick?: boolean;
10
+ ownerToken?: string;
11
+ open?: boolean;
12
+ onOpenChange?: (open: boolean) => void;
13
+ side?: 'right' | 'bottom';
14
+ children: ReactElement;
15
+ }
16
+ export declare function SessionDetailsTooltip({ session, label, time, completedUnread, workspaceLabel, openOnClick, ownerToken, open: controlledOpen, onOpenChange, side, children, }: SessionDetailsTooltipProps): import("react/jsx-runtime").JSX.Element;
17
+ export {};
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { DaemonSessionGroupColor } from '@qwen-code/sdk/daemon';
3
+ export interface SessionGroupSectionProps {
4
+ id: string;
5
+ label: string;
6
+ count: number;
7
+ expanded: boolean;
8
+ color?: DaemonSessionGroupColor;
9
+ icon?: ReactNode;
10
+ children: ReactNode;
11
+ onToggle: () => void;
12
+ onRename?: () => void;
13
+ onDelete?: () => void;
14
+ renameLabel?: string;
15
+ deleteLabel?: string;
16
+ actionsDisabled?: boolean;
17
+ limitSessions?: boolean;
18
+ }
19
+ export declare function SessionGroupSection({ label, count, expanded, color, icon, children, onToggle, onRename, onDelete, renameLabel, deleteLabel, actionsDisabled, limitSessions, }: SessionGroupSectionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,33 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type DaemonSessionArchiveState, type DaemonStandaloneSessionSummary } from '@qwen-code/sdk/daemon';
3
+ interface StandaloneRecentsProps {
4
+ archiveState: DaemonSessionArchiveState;
5
+ currentSessionId?: string;
6
+ currentSessionReady?: boolean;
7
+ refreshKey?: number;
8
+ searchQuery?: string;
9
+ onNewSession?: () => void;
10
+ renderSession: (session: DaemonStandaloneSessionSummary, options: {
11
+ active: boolean;
12
+ busy: boolean;
13
+ isArchived: boolean;
14
+ onOpen: () => void;
15
+ onRename: () => void;
16
+ onExport: () => void;
17
+ onArchive?: () => void;
18
+ onUnarchive?: () => void;
19
+ onDelete: () => void;
20
+ }) => ReactNode;
21
+ onLoadSession: (sessionId: string) => Promise<void> | void;
22
+ onRenameSession?: (sessionId: string, displayName: string) => void;
23
+ onMutated?: () => void;
24
+ onStatusChange?: (status: {
25
+ count: number;
26
+ loading: boolean;
27
+ error: boolean;
28
+ }) => void;
29
+ onError: (error: unknown, fallback: string) => void;
30
+ onNotice: (message: string) => void;
31
+ }
32
+ export declare function StandaloneRecents({ archiveState, currentSessionId, currentSessionReady, refreshKey, searchQuery, onNewSession, renderSession, onLoadSession, onRenameSession, onMutated, onStatusChange, onError, onNotice, }: StandaloneRecentsProps): import("react/jsx-runtime").JSX.Element | null;
33
+ export {};
@@ -0,0 +1,139 @@
1
+ import { type ReactNode } from 'react';
2
+ import { type DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
3
+ import { type WebShellTheme } from '../../themeContext';
4
+ import { type WorkspaceManagementTarget, type WorkspaceOverviewItem } from './workspaceOverviewModel';
5
+ export type WebShellSidebarFooterItem = 'settings' | 'version' | 'theme' | 'sessionsOverview' | 'workspacesOverview' | 'splitView' | 'daemonStatus' | 'localFiles' | 'collapse';
6
+ export interface WebShellSidebarBranding {
7
+ /** Replace the complete top branding row. */
8
+ render?: () => ReactNode;
9
+ /** Hide the branding row in the compact drawer. Defaults to true. */
10
+ hideWhenCompact?: boolean;
11
+ }
12
+ export interface WebShellSidebarLockedWorkspace {
13
+ /** Replace the locked workspace row content while preserving its built-in behavior. */
14
+ render?: (workspace: DaemonWorkspaceCapability, state: {
15
+ expanded: boolean;
16
+ }) => ReactNode;
17
+ }
18
+ export type WebShellSidebarPrimaryNavItem = 'newTask' | 'plugins' | 'channels' | 'scheduledTasks' | 'workflows' | 'goals';
19
+ export interface WebShellSidebarPrimaryNavOptions {
20
+ /** Built-in primary nav entries to show. Defaults to all. */
21
+ items?: readonly WebShellSidebarPrimaryNavItem[];
22
+ /** Additional custom content rendered after the built-in nav buttons. */
23
+ render?: () => ReactNode;
24
+ }
25
+ export interface WebShellSidebarFooterOptions {
26
+ /** Built-in footer entries to expose. Entries use the canonical footer order. */
27
+ items?: readonly WebShellSidebarFooterItem[];
28
+ /** Additional custom content rendered before the built-in footer items (left side). */
29
+ render?: () => ReactNode;
30
+ }
31
+ export type WebShellSidebarSessionActionItem = 'details' | 'rename' | 'group' | 'export' | 'delete' | 'pin' | 'archive';
32
+ /** Subset of action items that have working inline (hover-button) handlers. */
33
+ export type WebShellSidebarSessionInlineActionItem = 'pin' | 'rename' | 'export' | 'delete';
34
+ export interface WebShellSidebarSessionActionsOptions {
35
+ /** Session action items to show. Defaults to all. */
36
+ items?: readonly WebShellSidebarSessionActionItem[];
37
+ /**
38
+ * Which items appear as inline buttons (on hover). Defaults to ['pin'];
39
+ * archive stays in the dropdown so a stray click on the hover slot cannot
40
+ * archive a session.
41
+ * Only items that also pass their built-in visibility condition are rendered.
42
+ * Only items with working inline handlers are accepted
43
+ * (details/group/archive are dropdown-only).
44
+ */
45
+ inlineItems?: readonly WebShellSidebarSessionInlineActionItem[];
46
+ }
47
+ export declare const DEFAULT_SESSION_ACTION_ITEMS: readonly WebShellSidebarSessionActionItem[];
48
+ export interface WebShellSidebarWorkspaceOverviewOptions {
49
+ /**
50
+ * Facet chips under an expanded workspace row. Defaults to every facet
51
+ * except hooks.
52
+ */
53
+ items?: readonly WorkspaceOverviewItem[];
54
+ }
55
+ export type { WorkspaceManagementTarget, WorkspaceOverviewItem };
56
+ interface WebShellSidebarProps {
57
+ collapsed: boolean;
58
+ onCollapsedChange: (collapsed: boolean) => void;
59
+ onOpenSettings: () => void;
60
+ onOpenPlugins: () => void;
61
+ onOpenChannels: () => void;
62
+ onOpenDaemonStatus: () => void;
63
+ onOpenScheduledTasks: () => void;
64
+ onOpenWorkflows: () => void;
65
+ onOpenGoals: () => void;
66
+ onOpenSessions: () => void;
67
+ /**
68
+ * Whether to offer the Session Overview entry point. The table handles
69
+ * narrow widths, so the entry point can be offered at every viewport size.
70
+ */
71
+ canOpenSessionsOverview?: boolean;
72
+ /** Opens the Workspaces overview panel (table of registered workspaces). */
73
+ onOpenWorkspacesOverview?: () => void;
74
+ onOpenSplitView: () => void;
75
+ /** Whether to offer the in-window split view (large screens only). */
76
+ canOpenSplitView?: boolean;
77
+ onNewSession: (workspaceCwd?: string) => Promise<boolean> | boolean;
78
+ onNewStandaloneSession?: () => Promise<boolean> | boolean;
79
+ onLoadSession: (sessionId: string, workspaceCwd?: string) => Promise<void> | void;
80
+ onSelectCurrentSession?: () => void;
81
+ onSessionRenameConfirmed?: (workspaceCwd: string | undefined, sessionId: string, displayName: string) => void;
82
+ onSessionsDeleted?: (sessionIds: string[]) => void;
83
+ onError: (error: unknown, fallback: string) => void;
84
+ theme: WebShellTheme;
85
+ onThemeChange: (theme: WebShellTheme) => void;
86
+ mobileOpen?: boolean;
87
+ onMobileClose?: () => void;
88
+ /**
89
+ * Phase 4: workspace cwd picked for the next new session (undefined =
90
+ * primary). Only meaningful on multi-workspace daemons.
91
+ */
92
+ selectedWorkspaceCwd?: string;
93
+ onSelectWorkspace?: (workspaceCwd: string | undefined) => void;
94
+ /**
95
+ * Open the working-tree Changes dialog for a workspace. Forwarded to each
96
+ * trusted workspace's hover details, where the branch row fires it from the
97
+ * workspace's Git picker. Omit it and the row stays a plain-text summary.
98
+ */
99
+ onOpenGitDiff?: (workspaceCwd: string) => void;
100
+ /** Commit entry for the same picker; the row still opens without it. */
101
+ onOpenCommit?: (workspaceCwd: string) => void;
102
+ /**
103
+ * Opens the shared App-owned Add Workspace dialog. Omit this callback when
104
+ * registration is unavailable; locked workspaces hide the action separately.
105
+ */
106
+ onOpenAddWorkspace?: () => void;
107
+ workspaces?: DaemonWorkspaceCapability[];
108
+ lockedWorkspaceCwd?: string;
109
+ lockedWorkspace?: WebShellSidebarLockedWorkspace;
110
+ branding?: false | WebShellSidebarBranding;
111
+ primaryNav?: WebShellSidebarPrimaryNavOptions;
112
+ /** Whether to show the Tasks/Channels session-source switch. Defaults to true. */
113
+ showSessionSourceSwitch?: boolean;
114
+ /** Whether to show daemon-owned Live conversations. Defaults to false. */
115
+ showLive?: boolean;
116
+ /** Whether to hide the "Projects" header row (with search and add workspace). Defaults to false (shown). */
117
+ hideProjectHeader?: boolean;
118
+ /** Customize which action buttons appear on session rows. */
119
+ sessionActions?: WebShellSidebarSessionActionsOptions;
120
+ footer?: false | WebShellSidebarFooterOptions;
121
+ /**
122
+ * Session counts, full path and facet chips on workspace rows. Pass `false`
123
+ * to keep the plain folder headers.
124
+ */
125
+ workspaceOverview?: false | WebShellSidebarWorkspaceOverviewOptions;
126
+ /**
127
+ * Open a management page (MCP, skills, …) for a workspace. Offered on the
128
+ * daemon's primary workspace only: the management pages read the
129
+ * connection's bound workspace, so another workspace's row cannot open its
130
+ * own view yet (#10399, layer B1).
131
+ */
132
+ onOpenWorkspaceManagement?: (target: WorkspaceManagementTarget, workspaceCwd: string) => void;
133
+ /** Start a new session that works in an isolated git worktree. */
134
+ onNewWorktreeSession?: (workspaceCwd?: string) => Promise<boolean> | boolean | void;
135
+ projectFeaturesEnabled?: boolean;
136
+ onLoadStandaloneSession?: (sessionId: string) => Promise<void> | void;
137
+ onStandaloneNotice?: (message: string) => void;
138
+ }
139
+ export declare function WebShellSidebar({ collapsed, onCollapsedChange, onOpenSettings, onOpenPlugins, onOpenChannels, onOpenDaemonStatus, onOpenScheduledTasks, onOpenWorkflows, onOpenGoals, onOpenSessions, canOpenSessionsOverview, onOpenWorkspacesOverview, onOpenSplitView, canOpenSplitView, onNewSession, onNewStandaloneSession, onLoadSession, onSelectCurrentSession, onSessionRenameConfirmed, onSessionsDeleted, onError, theme, onThemeChange, mobileOpen, onMobileClose, selectedWorkspaceCwd, onSelectWorkspace, onOpenGitDiff, onOpenCommit, onOpenAddWorkspace, workspaces: providedWorkspaces, lockedWorkspaceCwd, lockedWorkspace: lockedWorkspaceOptions, branding, primaryNav: primaryNavOptions, showSessionSourceSwitch, showLive, hideProjectHeader, sessionActions: sessionActionsOptions, footer, workspaceOverview, onOpenWorkspaceManagement, onNewWorktreeSession, projectFeaturesEnabled, onLoadStandaloneSession, onStandaloneNotice, }: WebShellSidebarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,49 @@
1
+ import type { DaemonWorkspaceGitStatus } from '@qwen-code/sdk/daemon';
2
+ import { type ReactElement } from 'react';
3
+ import { type WorkspaceOverviewItem, type WorkspaceOverviewSnapshot, type WorkspaceSessionStats } from './workspaceOverviewModel';
4
+ interface WorkspaceDetailsTooltipProps {
5
+ label: string;
6
+ /** Real filesystem path; undefined for a synthetic fallback workspace. */
7
+ cwd?: string;
8
+ branch?: string | null;
9
+ gitStatus?: DaemonWorkspaceGitStatus;
10
+ /** Session counts lifted out of the header into this popover. */
11
+ sessions?: WorkspaceSessionStats;
12
+ overview: WorkspaceOverviewSnapshot | undefined;
13
+ items: readonly WorkspaceOverviewItem[];
14
+ /**
15
+ * Open the workspace folder in the daemon host's file manager. Only wired
16
+ * when the daemon advertises `workspace_local_open` and the browser is on
17
+ * the same machine; rejects when the host could not open it.
18
+ */
19
+ onOpenPathLocally?: () => Promise<void>;
20
+ /**
21
+ * Open a terminal at the workspace path on the daemon host. Only wired
22
+ * when the daemon advertises `workspace_local_terminal` and the browser is
23
+ * on the same machine; rejects when the host could not open it.
24
+ */
25
+ onOpenTerminalLocally?: () => Promise<void>;
26
+ /**
27
+ * Interactive Git for this workspace's branch row. Wired only for trusted
28
+ * workspaces with a real cwd and a known branch; a row without it keeps the
29
+ * plain-text summary the demand-loading pass left behind.
30
+ */
31
+ gitActions?: {
32
+ workspaceCwd: string;
33
+ onOpenDiff: () => void;
34
+ onOpenCommit?: () => void;
35
+ onStatusRefreshed: (status: DaemonWorkspaceGitStatus) => void;
36
+ /** A checkout creates no SSE event, so the row must re-read the branch. */
37
+ onBranchChanged: () => void;
38
+ };
39
+ onOpenChange?: (open: boolean) => void;
40
+ children: ReactElement;
41
+ }
42
+ /**
43
+ * Hover details for a workspace header row: full path, git branch and the
44
+ * facet counts that used to sit as chips under the expanded row. The popover
45
+ * takes no persistent space, so known facets show even when their count is
46
+ * zero; only unknown (unreported) facets stay hidden.
47
+ */
48
+ export declare function WorkspaceDetailsTooltip({ label, cwd, branch, gitStatus, sessions, overview, items, onOpenPathLocally, onOpenTerminalLocally, gitActions, onOpenChange, children, }: WorkspaceDetailsTooltipProps): import("react/jsx-runtime").JSX.Element;
49
+ export {};
@@ -0,0 +1,41 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Qwen
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type ComponentProps, type CSSProperties } from 'react';
7
+ import type { DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
8
+ import { DropdownMenuContent } from '../ui/dropdown-menu';
9
+ import { type WorkspaceManagementTarget, type WorkspaceOverviewSnapshot } from './workspaceOverviewModel';
10
+ /**
11
+ * Every action is optional: the sidebar passes only what the workspace's
12
+ * trust, lock and registration state allows, and the menu lays out whatever
13
+ * it gets. An empty action set renders nothing.
14
+ */
15
+ export interface WorkspaceMenuActions {
16
+ rename?: () => void;
17
+ copyPath?: () => void;
18
+ openFolder?: () => void;
19
+ openTerminal?: () => void;
20
+ newSession?: () => void;
21
+ newWorktreeSession?: () => void;
22
+ openManagement?: (target: WorkspaceManagementTarget) => void;
23
+ reload?: () => void;
24
+ remove?: () => void;
25
+ }
26
+ type ContentProps = ComponentProps<typeof DropdownMenuContent>;
27
+ export interface WorkspaceMenuProps {
28
+ workspace: DaemonWorkspaceCapability;
29
+ actions: WorkspaceMenuActions;
30
+ /** Live counts shown next to the management entries. */
31
+ overview?: WorkspaceOverviewSnapshot;
32
+ disabled?: boolean;
33
+ triggerClassName?: string;
34
+ contentStyle?: CSSProperties;
35
+ onOpenChange?: (open: boolean) => void;
36
+ onPointerDownOutside?: ContentProps['onPointerDownOutside'];
37
+ onCloseAutoFocus?: ContentProps['onCloseAutoFocus'];
38
+ }
39
+ export declare function hasWorkspaceMenuActions(actions: WorkspaceMenuActions): boolean;
40
+ export declare function WorkspaceMenu({ workspace, actions, overview, disabled, triggerClassName, contentStyle, onOpenChange, onPointerDownOutside, onCloseAutoFocus, }: WorkspaceMenuProps): import("react/jsx-runtime").JSX.Element | null;
41
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Qwen
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
7
+ /** Mirrors MAX_WORKSPACE_DISPLAY_NAME_LENGTH in the daemon's registration store. */
8
+ export declare const WORKSPACE_DISPLAY_NAME_MAX_LENGTH = 256;
9
+ export declare function isWorkspaceDisplayNameValid(name: string): boolean;
10
+ interface WorkspaceRenameDialogProps {
11
+ workspace: DaemonWorkspaceCapability;
12
+ busy: boolean;
13
+ /** `null` clears the display name so the folder name shows again. */
14
+ onSubmit: (displayName: string | null) => void;
15
+ onClose: () => void;
16
+ }
17
+ export declare function WorkspaceRenameDialog({ workspace, busy, onSubmit, onClose, }: WorkspaceRenameDialogProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};