@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.
- package/README.md +651 -0
- package/dist/daemon-react-sdk.js +53 -0
- package/dist/index.js +109094 -0
- package/dist/sw.js +9 -0
- package/dist/toolNames-DgCpmhML.js +17992 -0
- package/dist/transcript.js +31609 -0
- package/dist/types/App.d.ts +419 -0
- package/dist/types/WebShellContexts.d.ts +31 -0
- package/dist/types/adapters/localizedMessages.d.ts +24 -0
- package/dist/types/adapters/messageTypes.d.ts +194 -0
- package/dist/types/adapters/parallelAgentGrouping.d.ts +18 -0
- package/dist/types/adapters/promptTypes.d.ts +12 -0
- package/dist/types/adapters/toolClassification.d.ts +10 -0
- package/dist/types/adapters/transcriptAdapter.d.ts +3 -0
- package/dist/types/adapters/transcriptToMessages.d.ts +41 -0
- package/dist/types/adapters/types.d.ts +123 -0
- package/dist/types/brandContext.d.ts +44 -0
- package/dist/types/browser-turn-notifications.d.ts +36 -0
- package/dist/types/completions/slashCompletion.d.ts +35 -0
- package/dist/types/components/AtMentionPanel.d.ts +13 -0
- package/dist/types/components/BranchPickerPopover.d.ts +73 -0
- package/dist/types/components/ChatContextHeader.d.ts +18 -0
- package/dist/types/components/ChatEditor.d.ts +134 -0
- package/dist/types/components/ChatPane.d.ts +93 -0
- package/dist/types/components/ContextCompressionFeedback.d.ts +5 -0
- package/dist/types/components/ContextUsagePopover.d.ts +10 -0
- package/dist/types/components/ErrorBoundary.d.ts +40 -0
- package/dist/types/components/FileAttachmentContent.d.ts +4 -0
- package/dist/types/components/FileTypeIcon.d.ts +6 -0
- package/dist/types/components/GitBranchIndicator.d.ts +66 -0
- package/dist/types/components/GitModePopover.d.ts +23 -0
- package/dist/types/components/GlobalTurnNavigation.d.ts +16 -0
- package/dist/types/components/GoalStatusStrip.d.ts +13 -0
- package/dist/types/components/InsightProgress.d.ts +12 -0
- package/dist/types/components/InsightReady.d.ts +6 -0
- package/dist/types/components/LocalControlQrButton.d.ts +12 -0
- package/dist/types/components/LocalFilesControl.d.ts +74 -0
- package/dist/types/components/MessageItem.d.ts +43 -0
- package/dist/types/components/MessageList.d.ts +222 -0
- package/dist/types/components/MessageTimestamp.d.ts +32 -0
- package/dist/types/components/ModeIcon.d.ts +3 -0
- package/dist/types/components/MonitorIcon.d.ts +2 -0
- package/dist/types/components/PaneHeaderActions.d.ts +23 -0
- package/dist/types/components/PromptChevron.d.ts +7 -0
- package/dist/types/components/QueuedPromptDisplay.d.ts +57 -0
- package/dist/types/components/RootErrorFallback.d.ts +21 -0
- package/dist/types/components/SessionOverviewPanel.d.ts +46 -0
- package/dist/types/components/SessionPrBadge.d.ts +24 -0
- package/dist/types/components/SessionPrStateIcon.d.ts +32 -0
- package/dist/types/components/SessionRecoveryBanner.d.ts +3 -0
- package/dist/types/components/ShadowDomBoundary.d.ts +11 -0
- package/dist/types/components/SplitView.d.ts +69 -0
- package/dist/types/components/StandaloneAuth.d.ts +17 -0
- package/dist/types/components/StatusBar.d.ts +26 -0
- package/dist/types/components/StreamingStatus.d.ts +20 -0
- package/dist/types/components/Tips.d.ts +1 -0
- package/dist/types/components/ToastHost.d.ts +25 -0
- package/dist/types/components/TranscriptViewport.d.ts +17 -0
- package/dist/types/components/WebShellTranscript.d.ts +38 -0
- package/dist/types/components/WelcomeHeader.d.ts +8 -0
- package/dist/types/components/WorkspaceIndicator.d.ts +27 -0
- package/dist/types/components/WorkspaceSelector.d.ts +29 -0
- package/dist/types/components/WorkspaceSessionProvider.d.ts +19 -0
- package/dist/types/components/WorkspaceUnavailableState.d.ts +11 -0
- package/dist/types/components/agents/AgentCreatePage.d.ts +9 -0
- package/dist/types/components/agents/AgentsManagerPage.d.ts +8 -0
- package/dist/types/components/agents/agent-tool-options.d.ts +9 -0
- package/dist/types/components/agents/agents-manager-logic.d.ts +8 -0
- package/dist/types/components/artifacts/AgentWorkflow.d.ts +7 -0
- package/dist/types/components/artifacts/ArtifactIcon.d.ts +9 -0
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +229 -0
- package/dist/types/components/artifacts/CodeReviewArtifactDetail.d.ts +63 -0
- package/dist/types/components/artifacts/ContextUsagePanel.d.ts +7 -0
- package/dist/types/components/artifacts/LineStats.d.ts +12 -0
- package/dist/types/components/artifacts/SideTaskPanel.d.ts +24 -0
- package/dist/types/components/artifacts/SubagentDetail.d.ts +14 -0
- package/dist/types/components/artifacts/TokenUsagePanel.d.ts +7 -0
- package/dist/types/components/artifacts/TurnOutputs.d.ts +121 -0
- package/dist/types/components/artifacts/artifactUtils.d.ts +37 -0
- package/dist/types/components/artifacts/turnOutputSelectors.d.ts +7 -0
- package/dist/types/components/artifacts/useArtifactWorkspaceTarget.d.ts +16 -0
- package/dist/types/components/channels/ChannelEditorDialog.d.ts +25 -0
- package/dist/types/components/channels/ChannelPairingRequests.d.ts +15 -0
- package/dist/types/components/channels/ChannelsManagerPage.d.ts +12 -0
- package/dist/types/components/channels/channel-editor-state.d.ts +25 -0
- package/dist/types/components/channels/channel-platform.d.ts +9 -0
- package/dist/types/components/composer/AddMenu.d.ts +20 -0
- package/dist/types/components/composer/prependSkillInvocation.d.ts +12 -0
- package/dist/types/components/dialogs/AddWorkspaceDialog.d.ts +24 -0
- package/dist/types/components/dialogs/ApprovalModeDialog.d.ts +7 -0
- package/dist/types/components/dialogs/DaemonStatusDialog.d.ts +3 -0
- package/dist/types/components/dialogs/DeleteSessionDialog.d.ts +8 -0
- package/dist/types/components/dialogs/DialogShell.d.ts +15 -0
- package/dist/types/components/dialogs/GitDialog.d.ts +14 -0
- package/dist/types/components/dialogs/GitDiffDialog.d.ts +14 -0
- package/dist/types/components/dialogs/GitHubPrsDialog.d.ts +9 -0
- package/dist/types/components/dialogs/GitLogDialog.d.ts +14 -0
- package/dist/types/components/dialogs/GoalEditDialog.d.ts +9 -0
- package/dist/types/components/dialogs/GoalsDialog.d.ts +16 -0
- package/dist/types/components/dialogs/HelpDialog.d.ts +6 -0
- package/dist/types/components/dialogs/ModelDialog.d.ts +28 -0
- package/dist/types/components/dialogs/ModelFallbacksDialog.d.ts +14 -0
- package/dist/types/components/dialogs/ReleaseSessionDialog.d.ts +8 -0
- package/dist/types/components/dialogs/ResumeDialog.d.ts +7 -0
- package/dist/types/components/dialogs/RewindDialog.d.ts +12 -0
- package/dist/types/components/dialogs/ScheduledTasksDialog.d.ts +30 -0
- package/dist/types/components/dialogs/SessionRow.d.ts +46 -0
- package/dist/types/components/dialogs/SvgLineChart.d.ts +35 -0
- package/dist/types/components/dialogs/ThemeDialog.d.ts +8 -0
- package/dist/types/components/dialogs/TokenHeatmap.d.ts +18 -0
- package/dist/types/components/dialogs/ToolsDialog.d.ts +1 -0
- package/dist/types/components/dialogs/UsageDashboardTab.d.ts +13 -0
- package/dist/types/components/dialogs/dialogStyles.d.ts +2 -0
- package/dist/types/components/dialogs/scheduledTasksSchedule.d.ts +62 -0
- package/dist/types/components/extensions/ExtensionsManagerPage.d.ts +9 -0
- package/dist/types/components/extensions/extensions-manager-logic.d.ts +3 -0
- package/dist/types/components/local-control-api.d.ts +30 -0
- package/dist/types/components/mcp/McpManagerPage.d.ts +12 -0
- package/dist/types/components/messages/AskUserQuestion.d.ts +18 -0
- package/dist/types/components/messages/AssistantMessage.d.ts +40 -0
- package/dist/types/components/messages/AuthMessage.d.ts +6 -0
- package/dist/types/components/messages/BtwMessage.d.ts +7 -0
- package/dist/types/components/messages/ContextUsageMessage.d.ts +9 -0
- package/dist/types/components/messages/EnhancedMarkdownTable.d.ts +31 -0
- package/dist/types/components/messages/FootnoteCard.d.ts +11 -0
- package/dist/types/components/messages/FootnotePreviewContent.d.ts +9 -0
- package/dist/types/components/messages/GoalApprovalContent.d.ts +5 -0
- package/dist/types/components/messages/GoalStatusMessage.d.ts +15 -0
- package/dist/types/components/messages/LinkifiedText.d.ts +8 -0
- package/dist/types/components/messages/LocalControlSettingsCard.d.ts +1 -0
- package/dist/types/components/messages/Markdown.d.ts +38 -0
- package/dist/types/components/messages/MarkdownChartRenderer.d.ts +65 -0
- package/dist/types/components/messages/McpApp.d.ts +21 -0
- package/dist/types/components/messages/McpStatusMessage.d.ts +22 -0
- package/dist/types/components/messages/MemoryMessage.d.ts +9 -0
- package/dist/types/components/messages/ModelManagementSection.d.ts +23 -0
- package/dist/types/components/messages/PlanExecutionView.d.ts +91 -0
- package/dist/types/components/messages/PlanMessage.d.ts +8 -0
- package/dist/types/components/messages/QuestionAnswerMessage.d.ts +7 -0
- package/dist/types/components/messages/SettingsMessage.d.ts +46 -0
- package/dist/types/components/messages/StatsMessage.d.ts +14 -0
- package/dist/types/components/messages/StatusMessage.d.ts +18 -0
- package/dist/types/components/messages/SystemMessage.d.ts +29 -0
- package/dist/types/components/messages/TasksStatusMessage.d.ts +38 -0
- package/dist/types/components/messages/TodoView.d.ts +17 -0
- package/dist/types/components/messages/ToolApproval.d.ts +28 -0
- package/dist/types/components/messages/ToolFilePreviewButton.d.ts +7 -0
- package/dist/types/components/messages/ToolGroup.d.ts +50 -0
- package/dist/types/components/messages/UserMessage.d.ts +46 -0
- package/dist/types/components/messages/UserShellMessage.d.ts +6 -0
- package/dist/types/components/messages/WorkflowExecutionView.d.ts +48 -0
- package/dist/types/components/messages/agentForest.d.ts +96 -0
- package/dist/types/components/messages/codeHighlighter.d.ts +25 -0
- package/dist/types/components/messages/rehype-footnote-cards.d.ts +22 -0
- package/dist/types/components/messages/toolFormatting.d.ts +63 -0
- package/dist/types/components/messages/tools/DiffView.d.ts +5 -0
- package/dist/types/components/messages/tools/ParallelAgentsGroup.d.ts +12 -0
- package/dist/types/components/messages/tools/SubAgentPanel.d.ts +10 -0
- package/dist/types/components/messages/tools/toolDisplay.d.ts +7 -0
- package/dist/types/components/panels/EnvironmentPanel.d.ts +45 -0
- package/dist/types/components/panels/SourcesSection.d.ts +25 -0
- package/dist/types/components/panels/TodoPanel.d.ts +11 -0
- package/dist/types/components/plugins/PluginManagerPage.d.ts +8 -0
- package/dist/types/components/plugins/manager-page.d.ts +4 -0
- package/dist/types/components/preview/SavedWebPreview.d.ts +5 -0
- package/dist/types/components/preview/WebPreviewPanel.d.ts +5 -0
- package/dist/types/components/preview/web-preview.d.ts +7 -0
- package/dist/types/components/sidebar/SessionDetailsTooltip.d.ts +17 -0
- package/dist/types/components/sidebar/SessionGroupSection.d.ts +19 -0
- package/dist/types/components/sidebar/StandaloneRecents.d.ts +33 -0
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +139 -0
- package/dist/types/components/sidebar/WorkspaceDetailsTooltip.d.ts +49 -0
- package/dist/types/components/sidebar/WorkspaceMenu.d.ts +41 -0
- package/dist/types/components/sidebar/WorkspaceRenameDialog.d.ts +18 -0
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +112 -0
- package/dist/types/components/sidebar/channelSessionGroups.d.ts +7 -0
- package/dist/types/components/sidebar/collapsedSessionSections.d.ts +25 -0
- package/dist/types/components/sidebar/scheduled-task-session-groups.d.ts +12 -0
- package/dist/types/components/sidebar/sessionDetailsCollisionBoundary.d.ts +1 -0
- package/dist/types/components/sidebar/sessionSearch.d.ts +28 -0
- package/dist/types/components/sidebar/sessionTitleScroll.d.ts +7 -0
- package/dist/types/components/sidebar/sidebarToggleShortcut.d.ts +18 -0
- package/dist/types/components/sidebar/useSessionContentSearch.d.ts +20 -0
- package/dist/types/components/sidebar/useWorkspaceOverview.d.ts +40 -0
- package/dist/types/components/sidebar/workspaceExpansion.d.ts +4 -0
- package/dist/types/components/sidebar/workspaceOverviewModel.d.ts +123 -0
- package/dist/types/components/skills/SkillInstallDialog.d.ts +8 -0
- package/dist/types/components/skills/SkillsManagerPage.d.ts +11 -0
- package/dist/types/components/skills/skills-manager-logic.d.ts +6 -0
- package/dist/types/components/sources/SourceList.d.ts +5 -0
- package/dist/types/components/sources/TurnSources.d.ts +5 -0
- package/dist/types/components/sources/sourceEntries.d.ts +8 -0
- package/dist/types/components/summaryRunId.d.ts +9 -0
- package/dist/types/components/terminal/TerminalPanel.d.ts +17 -0
- package/dist/types/components/toolbarDropdown.d.ts +39 -0
- package/dist/types/components/ui/alert-dialog.d.ts +19 -0
- package/dist/types/components/ui/alert.d.ts +10 -0
- package/dist/types/components/ui/badge.d.ts +9 -0
- package/dist/types/components/ui/breadcrumb.d.ts +11 -0
- package/dist/types/components/ui/button.d.ts +11 -0
- package/dist/types/components/ui/card.d.ts +11 -0
- package/dist/types/components/ui/checkbox.d.ts +4 -0
- package/dist/types/components/ui/data-table.d.ts +31 -0
- package/dist/types/components/ui/dialog.d.ts +19 -0
- package/dist/types/components/ui/drawer.d.ts +16 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/types/components/ui/empty.d.ts +11 -0
- package/dist/types/components/ui/field.d.ts +24 -0
- package/dist/types/components/ui/input.d.ts +3 -0
- package/dist/types/components/ui/label.d.ts +4 -0
- package/dist/types/components/ui/management-notice.d.ts +12 -0
- package/dist/types/components/ui/popover.d.ts +13 -0
- package/dist/types/components/ui/radio-group.d.ts +5 -0
- package/dist/types/components/ui/scroll-area.d.ts +5 -0
- package/dist/types/components/ui/select.d.ts +16 -0
- package/dist/types/components/ui/separator.d.ts +4 -0
- package/dist/types/components/ui/skeleton.d.ts +2 -0
- package/dist/types/components/ui/spinner.d.ts +2 -0
- package/dist/types/components/ui/switch.d.ts +6 -0
- package/dist/types/components/ui/table.d.ts +10 -0
- package/dist/types/components/ui/tabs.d.ts +13 -0
- package/dist/types/components/ui/textarea.d.ts +3 -0
- package/dist/types/components/ui/toggle-group.d.ts +10 -0
- package/dist/types/components/ui/toggle.d.ts +9 -0
- package/dist/types/components/ui/tooltip.d.ts +7 -0
- package/dist/types/components/workflow/SessionWorkflowCockpit.d.ts +17 -0
- package/dist/types/components/workflow/SessionWorkflowInspector.d.ts +15 -0
- package/dist/types/components/workflow/session-workflow-model.d.ts +32 -0
- package/dist/types/components/workflows/WorkflowRunsPage.d.ts +6 -0
- package/dist/types/components/workspaces/WorkspaceRemovalDialog.d.ts +20 -0
- package/dist/types/components/workspaces/WorkspacesOverviewPanel.d.ts +21 -0
- package/dist/types/components/workspaces/useWorkspaceRemoval.d.ts +47 -0
- package/dist/types/config/daemon.d.ts +41 -0
- package/dist/types/config/standalone.d.ts +1 -0
- package/dist/types/constants/loadingPhrases.d.ts +4 -0
- package/dist/types/constants/localCommands.d.ts +27 -0
- package/dist/types/constants/sessions.d.ts +43 -0
- package/dist/types/constants/toolNames.d.ts +9 -0
- package/dist/types/customization.d.ts +508 -0
- package/dist/types/daemon/followupSidechannel.d.ts +11 -0
- package/dist/types/daemon/index.d.ts +14 -0
- package/dist/types/daemon/midTurnInjectedSidechannel.d.ts +37 -0
- package/dist/types/daemon/pendingPromptVersion.d.ts +19 -0
- package/dist/types/daemon/session/DaemonSessionProvider.d.ts +45 -0
- package/dist/types/daemon/session/actions.d.ts +100 -0
- package/dist/types/daemon/session/clientLifecycle.d.ts +21 -0
- package/dist/types/daemon/session/httpErrors.d.ts +9 -0
- package/dist/types/daemon/session/index.d.ts +15 -0
- package/dist/types/daemon/session/live-journal-repair.d.ts +19 -0
- package/dist/types/daemon/session/mappers.d.ts +71 -0
- package/dist/types/daemon/session/promptContent.d.ts +11 -0
- package/dist/types/daemon/session/selectors.d.ts +21 -0
- package/dist/types/daemon/session/session-context.d.ts +16 -0
- package/dist/types/daemon/session/status.d.ts +12 -0
- package/dist/types/daemon/session/transcript-page-table.d.ts +147 -0
- package/dist/types/daemon/session/turn-navigation-store.d.ts +117 -0
- package/dist/types/daemon/session/turn-notification-context.d.ts +43 -0
- package/dist/types/daemon/session/types.d.ts +568 -0
- package/dist/types/daemon/timing.d.ts +14 -0
- package/dist/types/daemon/useDaemonFollowupSuggestion.d.ts +77 -0
- package/dist/types/daemon/useDaemonMidTurnInjected.d.ts +30 -0
- package/dist/types/daemon/workspace/DaemonWorkspaceProvider.d.ts +21 -0
- package/dist/types/daemon/workspace/actions.d.ts +14 -0
- package/dist/types/daemon/workspace/hooks/index.d.ts +21 -0
- package/dist/types/daemon/workspace/hooks/useDaemonAgents.d.ts +22 -0
- package/dist/types/daemon/workspace/hooks/useDaemonAuth.d.ts +24 -0
- package/dist/types/daemon/workspace/hooks/useDaemonChannels.d.ts +33 -0
- package/dist/types/daemon/workspace/hooks/useDaemonDiagnostics.d.ts +10 -0
- package/dist/types/daemon/workspace/hooks/useDaemonFiles.d.ts +10 -0
- package/dist/types/daemon/workspace/hooks/useDaemonGlob.d.ts +8 -0
- package/dist/types/daemon/workspace/hooks/useDaemonMcp.d.ts +31 -0
- package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +16 -0
- package/dist/types/daemon/workspace/hooks/useDaemonProviders.d.ts +20 -0
- package/dist/types/daemon/workspace/hooks/useDaemonResource.d.ts +7 -0
- package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +48 -0
- package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +20 -0
- package/dist/types/daemon/workspace/hooks/useDaemonSkills.d.ts +30 -0
- package/dist/types/daemon/workspace/hooks/useDaemonStatusReport.d.ts +18 -0
- package/dist/types/daemon/workspace/hooks/useDaemonTools.d.ts +16 -0
- package/dist/types/daemon/workspace/hooks/useDaemonUsageDashboard.d.ts +27 -0
- package/dist/types/daemon/workspace/hooks/useWorkspaceEventReload.d.ts +6 -0
- package/dist/types/daemon/workspace/index.d.ts +10 -0
- package/dist/types/daemon/workspace/load-ready-skills.d.ts +7 -0
- package/dist/types/daemon/workspace/types.d.ts +415 -0
- package/dist/types/daemon-react-sdk.d.ts +319 -0
- package/dist/types/extensions/inputHighlight.d.ts +10 -0
- package/dist/types/hooks/daemonSessionMappers.d.ts +2 -0
- package/dist/types/hooks/useAnimationFrameTranscriptBlocks.d.ts +10 -0
- package/dist/types/hooks/useAnimationFrameValue.d.ts +1 -0
- package/dist/types/hooks/useAtMentionMenu.d.ts +72 -0
- package/dist/types/hooks/useAtMentionSources.d.ts +113 -0
- package/dist/types/hooks/useBackgroundTasks.d.ts +8 -0
- package/dist/types/hooks/useChatNavigationVisible.d.ts +2 -0
- package/dist/types/hooks/useComposerCore.d.ts +226 -0
- package/dist/types/hooks/useContextUsageControls.d.ts +26 -0
- package/dist/types/hooks/useCopiedFlash.d.ts +15 -0
- package/dist/types/hooks/useDelayedGlobalKeyDown.d.ts +1 -0
- package/dist/types/hooks/useExternalLinkOpener.d.ts +11 -0
- package/dist/types/hooks/useFileUpload.d.ts +62 -0
- package/dist/types/hooks/useFilterInput.d.ts +27 -0
- package/dist/types/hooks/useInputHistory.d.ts +17 -0
- package/dist/types/hooks/useIsLargeScreen.d.ts +20 -0
- package/dist/types/hooks/useIsTouchComposer.d.ts +36 -0
- package/dist/types/hooks/useListboxKeyboard.d.ts +42 -0
- package/dist/types/hooks/useMessages.d.ts +20 -0
- package/dist/types/hooks/useModelConfigurations.d.ts +11 -0
- package/dist/types/hooks/useNewSessionSuggestion.d.ts +26 -0
- package/dist/types/hooks/useOtherWorkspaceSessions.d.ts +11 -0
- package/dist/types/hooks/usePrefersReducedMotion.d.ts +1 -0
- package/dist/types/hooks/useQueuedPrompts.d.ts +74 -0
- package/dist/types/hooks/useScopedSessions.d.ts +65 -0
- package/dist/types/hooks/useSessionArtifacts.d.ts +10 -0
- package/dist/types/hooks/useSessionArtifactsChange.d.ts +12 -0
- package/dist/types/hooks/useSessionSources.d.ts +13 -0
- package/dist/types/hooks/useShallowMemo.d.ts +2 -0
- package/dist/types/hooks/useSharedNow.d.ts +1 -0
- package/dist/types/hooks/useStreamingLoadingMetrics.d.ts +19 -0
- package/dist/types/hooks/useTranscriptViewport.d.ts +31 -0
- package/dist/types/i18n.d.ts +14 -0
- package/dist/types/index.d.ts +69 -0
- package/dist/types/interactionBlockContext.d.ts +3 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/live/HotkeySetter.d.ts +16 -0
- package/dist/types/live/LiveVoiceButton.d.ts +7 -0
- package/dist/types/live/LiveVoiceSettingsCard.d.ts +9 -0
- package/dist/types/live/useLiveVoice.d.ts +17 -0
- package/dist/types/live/useLiveVoiceSetup.d.ts +19 -0
- package/dist/types/local-files/bridge-client.d.ts +207 -0
- package/dist/types/local-files/capabilities.d.ts +33 -0
- package/dist/types/local-files/directory-handle-store.d.ts +15 -0
- package/dist/types/local-files/local-directory.d.ts +130 -0
- package/dist/types/local-files/mcp-server.d.ts +57 -0
- package/dist/types/local-files/pick-directory.d.ts +49 -0
- package/dist/types/local-files/useLocalFilesBridge.d.ts +64 -0
- package/dist/types/main.d.ts +6 -0
- package/dist/types/mcpAppHostContext.d.ts +1 -0
- package/dist/types/midTurnDedup.d.ts +52 -0
- package/dist/types/monitorDetailsContext.d.ts +12 -0
- package/dist/types/notification-text.d.ts +8 -0
- package/dist/types/portalRoot.d.ts +2 -0
- package/dist/types/pwa-registration.d.ts +10 -0
- package/dist/types/session-catalog/session-catalog-hooks.d.ts +121 -0
- package/dist/types/session-catalog/session-catalog-store.d.ts +143 -0
- package/dist/types/session-catalog/session-live-state-poll-interval.d.ts +2 -0
- package/dist/types/session-catalog/workspace-session-live-state.d.ts +20 -0
- package/dist/types/settings.d.ts +70 -0
- package/dist/types/shadowDom.d.ts +17 -0
- package/dist/types/subagentDetailsContext.d.ts +15 -0
- package/dist/types/themeContext.d.ts +12 -0
- package/dist/types/transcript.d.ts +33 -0
- package/dist/types/transcriptRenderMode.d.ts +5 -0
- package/dist/types/utils/ansi.d.ts +9 -0
- package/dist/types/utils/askUserPermission.d.ts +13 -0
- package/dist/types/utils/base64.d.ts +1 -0
- package/dist/types/utils/bounded-map.d.ts +11 -0
- package/dist/types/utils/clipboard.d.ts +31 -0
- package/dist/types/utils/commandDisplay.d.ts +7 -0
- package/dist/types/utils/composerInputState.d.ts +19 -0
- package/dist/types/utils/composerModels.d.ts +28 -0
- package/dist/types/utils/composerTag.d.ts +42 -0
- package/dist/types/utils/composerTasks.d.ts +16 -0
- package/dist/types/utils/contextUsage.d.ts +9 -0
- package/dist/types/utils/copyCommand.d.ts +18 -0
- package/dist/types/utils/cssUrlVar.d.ts +3 -0
- package/dist/types/utils/dialogLabels.d.ts +1 -0
- package/dist/types/utils/dom.d.ts +2 -0
- package/dist/types/utils/errorDetail.d.ts +1 -0
- package/dist/types/utils/escapeIntent.d.ts +29 -0
- package/dist/types/utils/externalOpen.d.ts +15 -0
- package/dist/types/utils/formatDateTime.d.ts +7 -0
- package/dist/types/utils/formatRelativeTime.d.ts +4 -0
- package/dist/types/utils/formatRuntime.d.ts +1 -0
- package/dist/types/utils/formatTokenCount.d.ts +13 -0
- package/dist/types/utils/gitModeIntent.d.ts +22 -0
- package/dist/types/utils/goalCondition.d.ts +43 -0
- package/dist/types/utils/goalControlRequest.d.ts +20 -0
- package/dist/types/utils/goalGate.d.ts +39 -0
- package/dist/types/utils/imageIngestion.d.ts +47 -0
- package/dist/types/utils/largePaste.d.ts +44 -0
- package/dist/types/utils/linkify.d.ts +19 -0
- package/dist/types/utils/localCommandQueue.d.ts +47 -0
- package/dist/types/utils/modelDisplay.d.ts +1 -0
- package/dist/types/utils/modelEncoding.d.ts +15 -0
- package/dist/types/utils/modelSwitchMessages.d.ts +4 -0
- package/dist/types/utils/monitorTasks.d.ts +3 -0
- package/dist/types/utils/planMode.d.ts +5 -0
- package/dist/types/utils/promptAdmission.d.ts +1 -0
- package/dist/types/utils/queueDrain.d.ts +21 -0
- package/dist/types/utils/remote-name-skeleton.d.ts +1 -0
- package/dist/types/utils/sentinelMessage.d.ts +4 -0
- package/dist/types/utils/sessionErrors.d.ts +2 -0
- package/dist/types/utils/sessionPath.d.ts +19 -0
- package/dist/types/utils/sessionPreparation.d.ts +77 -0
- package/dist/types/utils/slash-command-action.d.ts +3 -0
- package/dist/types/utils/slashSectionPlan.d.ts +26 -0
- package/dist/types/utils/splitUrl.d.ts +37 -0
- package/dist/types/utils/standalone-session-routing.d.ts +2 -0
- package/dist/types/utils/systemInfo.d.ts +26 -0
- package/dist/types/utils/taskActivity.d.ts +18 -0
- package/dist/types/utils/timeAgo.d.ts +10 -0
- package/dist/types/utils/todos.d.ts +165 -0
- package/dist/types/utils/unicodeConfusables.d.ts +1 -0
- package/dist/types/utils/unifiedDiff.d.ts +12 -0
- package/dist/types/utils/workflowTasks.d.ts +3 -0
- package/dist/types/utils/workspace.d.ts +34 -0
- package/dist/types/utils/workspaceColor.d.ts +15 -0
- package/dist/types/voice/VoiceButton.d.ts +16 -0
- package/dist/types/voice/use-voice-workspace-settings.d.ts +13 -0
- package/dist/types/voice/useVoiceCapture.d.ts +42 -0
- package/dist/types/voice/voice-workspace-target.d.ts +45 -0
- package/dist/types/voice/voiceModels.d.ts +23 -0
- package/dist/types/workflowDetailsContext.d.ts +11 -0
- package/package.json +102 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type ToastTone = 'info' | 'warning' | 'error' | 'success';
|
|
2
|
+
/** Window event that asks the app-level toast host to show a toast. Lets
|
|
3
|
+
* deeply nested components (markdown links, artifact actions) report failures
|
|
4
|
+
* without prop-drilling the toast callback. */
|
|
5
|
+
export declare const TOAST_REQUEST_EVENT = "qwen:toast-request";
|
|
6
|
+
export interface ToastRequestDetail {
|
|
7
|
+
tone: ToastTone;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function requestToast(tone: ToastTone, message: string): void;
|
|
11
|
+
export interface WebShellToast {
|
|
12
|
+
id: string;
|
|
13
|
+
tone: ToastTone;
|
|
14
|
+
message: string;
|
|
15
|
+
/** Epoch ms when the toast auto-dismisses; survives host remounts. */
|
|
16
|
+
dismissAt: number;
|
|
17
|
+
}
|
|
18
|
+
interface ToastHostProps {
|
|
19
|
+
toasts: readonly WebShellToast[];
|
|
20
|
+
onDismiss: (id: string) => void;
|
|
21
|
+
/** Paint above dialog-backdrop-tier surfaces (fullscreen artifact panel). */
|
|
22
|
+
elevated?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare function ToastHost({ toasts, onDismiss, elevated, }: ToastHostProps): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { type MessageListHandle, type MessageListProps } from './MessageList';
|
|
7
|
+
export interface TurnFollowRange {
|
|
8
|
+
start: number;
|
|
9
|
+
end: number;
|
|
10
|
+
current: number;
|
|
11
|
+
}
|
|
12
|
+
export declare function followRangeFromRows(rows: readonly {
|
|
13
|
+
top: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
ordinal?: number;
|
|
16
|
+
}[], viewportTop: number, viewportBottom: number): TurnFollowRange | undefined;
|
|
17
|
+
export declare const TranscriptViewport: import("react").ForwardRefExoticComponent<MessageListProps & import("react").RefAttributes<MessageListHandle>>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import '../styles/globals.css';
|
|
2
|
+
import 'katex/dist/katex.min.css';
|
|
3
|
+
import { type CSSProperties, type ReactElement } from 'react';
|
|
4
|
+
import type { DaemonTranscriptBlock, SessionSource, DaemonSessionAttachmentReference } from '@qwen-code/sdk/daemon';
|
|
5
|
+
import { type AssistantTurnFooterRenderer, type WebShellArtifactCustomization, type ComposerTagRenderer, type MarkdownTableMode, type ToolHeaderExtraRenderer, type UserMessageContentParser, type UserMessageContentRenderer, type WebShellComposerTagIconMap, type WebShellMarkdownCustomization, type WebShellSource, type WebShellSourceReference, type WebShellSourceIconResolver } from '../customization';
|
|
6
|
+
import { type WebShellTheme } from '../themeContext';
|
|
7
|
+
export interface WebShellTranscriptProps {
|
|
8
|
+
blocks: readonly DaemonTranscriptBlock[];
|
|
9
|
+
renderMode?: 'readonly' | 'document';
|
|
10
|
+
theme?: WebShellTheme;
|
|
11
|
+
language?: 'en' | 'zh-CN' | 'zh' | 'zh-cn';
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
chatMaxWidth?: number;
|
|
15
|
+
workspaceCwd?: string;
|
|
16
|
+
compactThinking?: boolean;
|
|
17
|
+
documentExpanded?: boolean;
|
|
18
|
+
collapseCompletedTurns?: boolean;
|
|
19
|
+
markdownTableMode?: MarkdownTableMode;
|
|
20
|
+
virtualScrollThreshold?: number;
|
|
21
|
+
markdown?: WebShellMarkdownCustomization;
|
|
22
|
+
sourceSessionId?: string;
|
|
23
|
+
sources?: readonly SessionSource[];
|
|
24
|
+
sourceAttachments?: readonly DaemonSessionAttachmentReference[];
|
|
25
|
+
sourceReferences?: readonly WebShellSourceReference[];
|
|
26
|
+
getAssistantSourcesIcon?: WebShellSourceIconResolver;
|
|
27
|
+
onSourceOpen?: (source: WebShellSource) => void;
|
|
28
|
+
composerTagIcons?: WebShellComposerTagIconMap;
|
|
29
|
+
renderToolHeaderExtra?: ToolHeaderExtraRenderer;
|
|
30
|
+
artifact?: WebShellArtifactCustomization;
|
|
31
|
+
parseUserMessageContent?: UserMessageContentParser;
|
|
32
|
+
renderUserMessageContent?: UserMessageContentRenderer;
|
|
33
|
+
renderComposerTag?: ComposerTagRenderer;
|
|
34
|
+
renderComposerTagTooltip?: ComposerTagRenderer;
|
|
35
|
+
renderAssistantTurnFooter?: AssistantTurnFooterRenderer;
|
|
36
|
+
mcpAppBaseUrl?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function WebShellTranscript(props: WebShellTranscriptProps): ReactElement;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonSessionGroupPresetColor } from '@qwen-code/sdk/daemon';
|
|
7
|
+
/**
|
|
8
|
+
* A compact, non-interactive chip naming the workspace a split-view pane's
|
|
9
|
+
* session belongs to. Mirrors {@link GitBranchIndicator}; both sit in the
|
|
10
|
+
* composer toolbar. Shown only on a multi-workspace daemon (the pane composer
|
|
11
|
+
* opts into the `workspace` toolbar action) so it's clear which workspace a
|
|
12
|
+
* message goes to. The full cwd stays in a hover tooltip — matching the git
|
|
13
|
+
* branch chip — so it's still discoverable once the name ellipsizes or
|
|
14
|
+
* collapses to an icon on a narrow (split-screen / mobile) composer.
|
|
15
|
+
*
|
|
16
|
+
* A stable per-workspace `color` (same palette as the pane header and the
|
|
17
|
+
* sidebar session-group dots) tints the folder icon and the chip background, so
|
|
18
|
+
* the chip stays distinguishable from other panes' chips even in the icon-only
|
|
19
|
+
* compact state — where every workspace would otherwise show the same folder.
|
|
20
|
+
*/
|
|
21
|
+
export declare function WorkspaceIndicator({ name, title, ariaLabel, color, compact, }: {
|
|
22
|
+
name: string;
|
|
23
|
+
title: string;
|
|
24
|
+
ariaLabel: string;
|
|
25
|
+
color?: DaemonSessionGroupPresetColor;
|
|
26
|
+
compact?: boolean;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface WorkspaceSelectorOption {
|
|
2
|
+
id: string;
|
|
3
|
+
cwd: string;
|
|
4
|
+
label: string;
|
|
5
|
+
primary: boolean;
|
|
6
|
+
trusted: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface WorkspaceSelectorProps {
|
|
9
|
+
workspaces: WorkspaceSelectorOption[];
|
|
10
|
+
selectedWorkspaceCwd?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
busy?: boolean;
|
|
13
|
+
scratchSupported: boolean;
|
|
14
|
+
existingFolderSupported: boolean;
|
|
15
|
+
/** Offer a projectless (standalone) target alongside the workspaces. */
|
|
16
|
+
standaloneSupported?: boolean;
|
|
17
|
+
selectedStandalone?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
onSelectWorkspace: (cwd: string | undefined) => void;
|
|
20
|
+
onSelectStandalone?: () => void;
|
|
21
|
+
onCreateScratch: () => void;
|
|
22
|
+
onOpenExistingFolder: () => void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Composer workspace menu. Capability-gated creation actions and disabled
|
|
26
|
+
* untrusted entries keep presentation aligned with daemon authorization.
|
|
27
|
+
*/
|
|
28
|
+
export declare function WorkspaceSelector({ workspaces, selectedWorkspaceCwd, disabled, busy, scratchSupported, existingFolderSupported, standaloneSupported, selectedStandalone, className, onSelectWorkspace, onSelectStandalone, onCreateScratch, onOpenExistingFolder, }: WorkspaceSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type DaemonProductSessionContext } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
import { type WebShellProps } from '../App';
|
|
3
|
+
import { type WebShellLanguage } from '../i18n';
|
|
4
|
+
import { type WebShellTheme } from '../themeContext';
|
|
5
|
+
interface WorkspaceSessionProviderProps {
|
|
6
|
+
sessionId?: string;
|
|
7
|
+
workspaceId?: string;
|
|
8
|
+
workspaceCwd?: string;
|
|
9
|
+
sessionContext?: DaemonProductSessionContext;
|
|
10
|
+
lockWorkspaceCwd?: string;
|
|
11
|
+
clientId?: string;
|
|
12
|
+
restartSseOnPrompt?: boolean;
|
|
13
|
+
historyPageSize?: number;
|
|
14
|
+
chromeTheme?: WebShellTheme;
|
|
15
|
+
chromeLanguage?: WebShellLanguage;
|
|
16
|
+
webShellProps: WebShellProps;
|
|
17
|
+
}
|
|
18
|
+
export declare function WorkspaceSessionProvider(props: WorkspaceSessionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface WorkspaceUnavailableStateProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
actionLabel?: string;
|
|
6
|
+
onAction?: () => void;
|
|
7
|
+
theme?: 'dark' | 'light';
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function WorkspaceUnavailableState({ title, description, actionLabel, onAction, theme, icon, }: WorkspaceUnavailableStateProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type DaemonWorkspaceAgentDetail } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
interface AgentCreatePageProps {
|
|
3
|
+
initialScope?: 'workspace' | 'global';
|
|
4
|
+
agent?: DaemonWorkspaceAgentDetail;
|
|
5
|
+
onCancel: () => void;
|
|
6
|
+
onCreated: (name: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function AgentCreatePage({ initialScope, agent, onCancel, onCreated, }: AgentCreatePageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { EmbeddedManagerPage } from '../plugins/manager-page';
|
|
2
|
+
interface AgentsManagerPageProps {
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
embedded?: EmbeddedManagerPage;
|
|
5
|
+
initialCreateScope?: 'workspace' | 'global' | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function AgentsManagerPage({ onClose, embedded, initialCreateScope, }: AgentsManagerPageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DaemonWorkspaceMcpToolStatus, DaemonWorkspaceToolStatus } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
export declare function canAddSelection(selection: ReadonlySet<string>, value: string): boolean;
|
|
3
|
+
export declare function selectBuiltInTools(tools: DaemonWorkspaceToolStatus[], mcpTools: Record<string, DaemonWorkspaceMcpToolStatus[]>): DaemonWorkspaceToolStatus[];
|
|
4
|
+
export declare function selectDiscoverableMcpServerNames(servers: Array<{
|
|
5
|
+
name: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
status: string;
|
|
8
|
+
mcpStatus?: 'connected' | 'connecting' | 'disconnected';
|
|
9
|
+
}>): string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DaemonWorkspaceAgentSummary } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
export type AgentLevelFilter = 'all' | DaemonWorkspaceAgentSummary['level'];
|
|
3
|
+
export type AgentSelection = Pick<DaemonWorkspaceAgentSummary, 'name' | 'level'>;
|
|
4
|
+
export declare function filterAgents(agents: readonly DaemonWorkspaceAgentSummary[], query: string, level?: AgentLevelFilter): DaemonWorkspaceAgentSummary[];
|
|
5
|
+
export declare function preserveAgentSelection(selection: AgentSelection | null, agents: readonly DaemonWorkspaceAgentSummary[]): DaemonWorkspaceAgentSummary | null;
|
|
6
|
+
export declare function isOverridden(agent: DaemonWorkspaceAgentSummary, allAgents: readonly DaemonWorkspaceAgentSummary[]): boolean;
|
|
7
|
+
export declare function canModifyAgent(agent: DaemonWorkspaceAgentSummary): boolean;
|
|
8
|
+
export declare function scopeForLevel(level: string): 'workspace' | 'global' | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { EnvironmentAgentTask } from '../panels/EnvironmentPanel';
|
|
2
|
+
export declare function AgentWorkflow({ tasks, loading, error, onOpenAgent, }: {
|
|
3
|
+
tasks: readonly EnvironmentAgentTask[];
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
error?: string;
|
|
6
|
+
onOpenAgent?: (task: EnvironmentAgentTask) => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export type ArtifactIconKind = 'csv' | 'file' | 'html' | 'image' | 'link' | 'md' | 'pdf' | 'spreadsheet' | 'video' | 'word';
|
|
4
|
+
export declare const ARTIFACT_ICON_URLS: Readonly<Record<ArtifactIconKind, string>>;
|
|
5
|
+
export declare function getArtifactIconKind(artifact?: Pick<DaemonSessionArtifact, 'kind' | 'title' | 'workspacePath' | 'url' | 'mimeType'>): ArtifactIconKind;
|
|
6
|
+
export declare function ArtifactIcon({ artifact, className, }: {
|
|
7
|
+
artifact?: DaemonSessionArtifact;
|
|
8
|
+
className?: string;
|
|
9
|
+
}): ReactNode;
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import type { DaemonSessionArtifact, SessionSource, DaemonSessionMonitorTaskStatus, DaemonSessionShellTaskStatus, DaemonSessionTaskStatus } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { ACPToolCall, TodoItem } from '../../adapters/types';
|
|
3
|
+
import type { WebShellRightPanelItem } from '../../customization';
|
|
4
|
+
import { type DaemonSessionOwnerSnapshot, type DaemonSessionActions } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
5
|
+
import { type TurnOutputFileChange, type TurnOutputOpenRequest, type TurnOutputScheduledTask } from './TurnOutputs';
|
|
6
|
+
import type { EnvironmentAgentTask } from '../panels/EnvironmentPanel';
|
|
7
|
+
import type { WebPreviewState } from '../preview/web-preview';
|
|
8
|
+
import type { ContextUsageControls } from '../../hooks/useContextUsageControls';
|
|
9
|
+
export type ImageTabSource = {
|
|
10
|
+
kind: 'attachment';
|
|
11
|
+
attachmentId: string;
|
|
12
|
+
sessionId?: string;
|
|
13
|
+
};
|
|
14
|
+
export type ArtifactPanelTab = (WebPreviewState & {
|
|
15
|
+
id: string;
|
|
16
|
+
kind: 'web_preview';
|
|
17
|
+
title: string;
|
|
18
|
+
}) | {
|
|
19
|
+
id: string;
|
|
20
|
+
kind: 'source';
|
|
21
|
+
title: string;
|
|
22
|
+
source: SessionSource;
|
|
23
|
+
sourceSessionId: string;
|
|
24
|
+
workspaceCwd?: string;
|
|
25
|
+
workspaceId?: string;
|
|
26
|
+
owner: DaemonSessionOwnerSnapshot;
|
|
27
|
+
sessionActions: DaemonSessionActions;
|
|
28
|
+
} | {
|
|
29
|
+
id: string;
|
|
30
|
+
kind: 'review';
|
|
31
|
+
title: string;
|
|
32
|
+
workspaceCwd?: string;
|
|
33
|
+
workspaceId?: string;
|
|
34
|
+
changes?: readonly TurnOutputFileChange[];
|
|
35
|
+
selectedPath?: string;
|
|
36
|
+
sourceTurnId?: string;
|
|
37
|
+
sourceSessionId?: string;
|
|
38
|
+
sourceToolCallIds?: readonly string[];
|
|
39
|
+
} | {
|
|
40
|
+
id: string;
|
|
41
|
+
kind: 'file';
|
|
42
|
+
title: string;
|
|
43
|
+
previewVersion?: number;
|
|
44
|
+
workspacePath: string;
|
|
45
|
+
workspaceCwd?: string;
|
|
46
|
+
workspaceId?: string;
|
|
47
|
+
previewContent?: string;
|
|
48
|
+
previewData?: Blob;
|
|
49
|
+
previewMimeType?: string;
|
|
50
|
+
previewOnly?: boolean;
|
|
51
|
+
sourcePreview?: boolean;
|
|
52
|
+
sourceSessionId?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Set for attachment-backed previews so the tab can re-fetch its bytes
|
|
55
|
+
* after a reload instead of persisting the Blob.
|
|
56
|
+
*/
|
|
57
|
+
attachmentId?: string;
|
|
58
|
+
loadError?: string;
|
|
59
|
+
} | {
|
|
60
|
+
id: string;
|
|
61
|
+
kind: 'artifact';
|
|
62
|
+
title: string;
|
|
63
|
+
artifactId: string;
|
|
64
|
+
workspaceCwd?: string;
|
|
65
|
+
workspaceId?: string;
|
|
66
|
+
sourceSessionId?: string;
|
|
67
|
+
previewContent?: string;
|
|
68
|
+
} | {
|
|
69
|
+
id: string;
|
|
70
|
+
kind: 'scheduled_task';
|
|
71
|
+
title: string;
|
|
72
|
+
task: TurnOutputScheduledTask;
|
|
73
|
+
workspaceCwd?: string;
|
|
74
|
+
workspaceId?: string;
|
|
75
|
+
sourceSessionId?: string;
|
|
76
|
+
} | {
|
|
77
|
+
id: string;
|
|
78
|
+
kind: 'image';
|
|
79
|
+
title: string;
|
|
80
|
+
src: string;
|
|
81
|
+
alt?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Where the image bytes come from, so the tab can be rehydrated after a
|
|
84
|
+
* reload without persisting the data URL itself.
|
|
85
|
+
*/
|
|
86
|
+
source?: ImageTabSource;
|
|
87
|
+
loadError?: string;
|
|
88
|
+
} | {
|
|
89
|
+
id: string;
|
|
90
|
+
kind: 'subagent';
|
|
91
|
+
title: string;
|
|
92
|
+
sessionId: string;
|
|
93
|
+
rootToolCallId: string;
|
|
94
|
+
rootTool: ACPToolCall;
|
|
95
|
+
workspaceCwd?: string;
|
|
96
|
+
} | {
|
|
97
|
+
id: string;
|
|
98
|
+
kind: 'pending';
|
|
99
|
+
title: string;
|
|
100
|
+
targetKind: 'review' | 'artifact' | 'scheduled_task' | 'subagent' | 'monitor' | 'shell';
|
|
101
|
+
sourceSessionId: string;
|
|
102
|
+
sourceTurnId?: string;
|
|
103
|
+
sourceToolCallIds?: readonly string[];
|
|
104
|
+
artifactId?: string;
|
|
105
|
+
selectedPath?: string;
|
|
106
|
+
toolCallId?: string;
|
|
107
|
+
rootToolCallId?: string;
|
|
108
|
+
taskId?: string;
|
|
109
|
+
workspaceCwd?: string;
|
|
110
|
+
workspaceId?: string;
|
|
111
|
+
loadError?: string;
|
|
112
|
+
} | {
|
|
113
|
+
id: string;
|
|
114
|
+
kind: 'monitor';
|
|
115
|
+
title: string;
|
|
116
|
+
task: DaemonSessionMonitorTaskStatus;
|
|
117
|
+
sessionId?: string;
|
|
118
|
+
sessionActions?: DaemonSessionActions;
|
|
119
|
+
} | {
|
|
120
|
+
id: string;
|
|
121
|
+
kind: 'shell';
|
|
122
|
+
title: string;
|
|
123
|
+
task: DaemonSessionShellTaskStatus;
|
|
124
|
+
sessionId?: string;
|
|
125
|
+
sessionActions?: DaemonSessionActions;
|
|
126
|
+
} | {
|
|
127
|
+
id: string;
|
|
128
|
+
kind: 'side_task';
|
|
129
|
+
title: string;
|
|
130
|
+
sessionId?: string;
|
|
131
|
+
parentSessionId: string;
|
|
132
|
+
workspaceCwd?: string;
|
|
133
|
+
nameFromFirstPrompt?: boolean;
|
|
134
|
+
initialPrompt?: string;
|
|
135
|
+
} | {
|
|
136
|
+
id: string;
|
|
137
|
+
kind: 'terminal';
|
|
138
|
+
title: string;
|
|
139
|
+
workspaceCwd?: string;
|
|
140
|
+
initialized?: boolean;
|
|
141
|
+
} | {
|
|
142
|
+
id: string;
|
|
143
|
+
kind: 'token_usage';
|
|
144
|
+
title: string;
|
|
145
|
+
sessionId?: string;
|
|
146
|
+
sessionActions?: DaemonSessionActions;
|
|
147
|
+
closeWithPane?: boolean;
|
|
148
|
+
} | {
|
|
149
|
+
id: string;
|
|
150
|
+
kind: 'context_usage';
|
|
151
|
+
title: string;
|
|
152
|
+
sessionId: string;
|
|
153
|
+
sessionActions?: DaemonSessionActions;
|
|
154
|
+
closeWithPane?: boolean;
|
|
155
|
+
} | {
|
|
156
|
+
id: string;
|
|
157
|
+
kind: 'workflow';
|
|
158
|
+
title: string;
|
|
159
|
+
sessionId?: string;
|
|
160
|
+
};
|
|
161
|
+
export interface SideTaskListItem {
|
|
162
|
+
sessionId: string;
|
|
163
|
+
title: string;
|
|
164
|
+
workspaceCwd?: string;
|
|
165
|
+
updatedAt?: string;
|
|
166
|
+
}
|
|
167
|
+
interface ArtifactPanelProps {
|
|
168
|
+
contextUsageControls?: Readonly<Record<string, ContextUsageControls>>;
|
|
169
|
+
artifacts: readonly DaemonSessionArtifact[];
|
|
170
|
+
tabs: readonly ArtifactPanelTab[];
|
|
171
|
+
activeTabId: string | null;
|
|
172
|
+
reviewChanges: readonly TurnOutputFileChange[];
|
|
173
|
+
selectedReviewPath: string | null;
|
|
174
|
+
panelWidth?: number;
|
|
175
|
+
workspaceCwd?: string;
|
|
176
|
+
loading?: boolean;
|
|
177
|
+
restoring?: boolean;
|
|
178
|
+
error?: string | null;
|
|
179
|
+
onSelectTab: (tabId: string) => void;
|
|
180
|
+
onCloseTab: (tabId: string) => void;
|
|
181
|
+
onOpenFilePreview: (change: TurnOutputFileChange, workspaceCwd?: string, workspaceId?: string) => void;
|
|
182
|
+
latestReviewAvailable?: boolean;
|
|
183
|
+
onOpenLatestReview?: () => void;
|
|
184
|
+
/** Open an interactive terminal tab in this panel (shown as an empty-state action). */
|
|
185
|
+
onOpenTerminal?: () => void;
|
|
186
|
+
onOpenWebPreview?: () => void;
|
|
187
|
+
onWebPreviewChange?: (tabId: string, state: WebPreviewState) => void;
|
|
188
|
+
items?: readonly WebShellRightPanelItem[];
|
|
189
|
+
sideTaskAvailable?: boolean;
|
|
190
|
+
sideTasks?: readonly SideTaskListItem[];
|
|
191
|
+
sideTasksLoading?: boolean;
|
|
192
|
+
onCreateSideTask?: () => void;
|
|
193
|
+
onOpenSideTask?: (sideTask: SideTaskListItem) => void;
|
|
194
|
+
onCreateSideTaskSession?: (tabId: string, parentSessionId: string, title: string) => Promise<{
|
|
195
|
+
sessionId: string;
|
|
196
|
+
displayName?: string;
|
|
197
|
+
}>;
|
|
198
|
+
onSideTaskCreated?: (tabId: string, sessionId: string) => void;
|
|
199
|
+
onSideTaskTitleChange?: (tabId: string, title: string, fromFirstPrompt?: boolean) => void;
|
|
200
|
+
onNestedRightPanelOpen?: (request: TurnOutputOpenRequest) => void;
|
|
201
|
+
onNestedArtifactsChange?: (sessionId: string, artifacts: readonly DaemonSessionArtifact[]) => void;
|
|
202
|
+
onOpenNestedSubagent?: (tool: ACPToolCall, sessionId: string, workspaceCwd?: string) => void;
|
|
203
|
+
agentTasks?: readonly EnvironmentAgentTask[];
|
|
204
|
+
agentTraceLoading?: boolean;
|
|
205
|
+
agentTraceError?: string;
|
|
206
|
+
onOpenWorkflowAgent?: (task: EnvironmentAgentTask) => void;
|
|
207
|
+
onError?: (error: unknown, fallback: string) => void;
|
|
208
|
+
sessionWorkflowEnabled?: boolean;
|
|
209
|
+
workflow?: {
|
|
210
|
+
todos: readonly TodoItem[];
|
|
211
|
+
tools: readonly ACPToolCall[];
|
|
212
|
+
tasks: readonly DaemonSessionTaskStatus[];
|
|
213
|
+
artifacts: readonly DaemonSessionArtifact[];
|
|
214
|
+
selectedTodoId?: string;
|
|
215
|
+
onSelectedTodoIdChange: (todoId: string | undefined) => void;
|
|
216
|
+
onExpandGraph: () => void;
|
|
217
|
+
onOpenSubagent: (tool: ACPToolCall) => void;
|
|
218
|
+
onOpenArtifact?: (artifactId: string) => void;
|
|
219
|
+
canvasMode?: boolean;
|
|
220
|
+
};
|
|
221
|
+
onImageIngestionNotice?: (tone: 'warning' | 'error', message: string) => void;
|
|
222
|
+
deferSubagentMount?: boolean;
|
|
223
|
+
onClose: () => void;
|
|
224
|
+
variant?: 'docked' | 'drawer';
|
|
225
|
+
fullscreen?: boolean;
|
|
226
|
+
onToggleFullscreen?: () => void;
|
|
227
|
+
}
|
|
228
|
+
export declare function ArtifactPanel({ contextUsageControls, artifacts, tabs, activeTabId, reviewChanges, selectedReviewPath, panelWidth, workspaceCwd, loading, restoring, error, onSelectTab, onCloseTab, onOpenFilePreview, latestReviewAvailable, onOpenLatestReview, onOpenTerminal, onOpenWebPreview, onWebPreviewChange, items, sideTaskAvailable, sideTasks, sideTasksLoading, onCreateSideTask, onOpenSideTask, onCreateSideTaskSession, onSideTaskCreated, onSideTaskTitleChange, onNestedRightPanelOpen, onNestedArtifactsChange, onOpenNestedSubagent, agentTasks, agentTraceLoading, agentTraceError, onOpenWorkflowAgent, onError, sessionWorkflowEnabled, workflow, onImageIngestionNotice, deferSubagentMount, onClose, variant, fullscreen, onToggleFullscreen, }: ArtifactPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
229
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ArtifactWorkspaceActions } from './useArtifactWorkspaceTarget';
|
|
2
|
+
declare const SEVERITIES: readonly ["Critical", "Suggestion", "Nice to have"];
|
|
3
|
+
declare const CONFIDENCES: readonly ["high", "low"];
|
|
4
|
+
declare const SOURCES: readonly ["review", "build", "test", "probe", "lint"];
|
|
5
|
+
declare const OUTCOMES: readonly ["fixed", "skipped", "no_change_needed"];
|
|
6
|
+
type Severity = (typeof SEVERITIES)[number];
|
|
7
|
+
type Confidence = (typeof CONFIDENCES)[number];
|
|
8
|
+
type Source = (typeof SOURCES)[number];
|
|
9
|
+
type Outcome = (typeof OUTCOMES)[number];
|
|
10
|
+
interface FindingLocation {
|
|
11
|
+
file: string;
|
|
12
|
+
line?: number;
|
|
13
|
+
anchor?: string;
|
|
14
|
+
}
|
|
15
|
+
interface ReviewFinding {
|
|
16
|
+
id: string;
|
|
17
|
+
severity: Severity;
|
|
18
|
+
confidence: Confidence;
|
|
19
|
+
source: Source;
|
|
20
|
+
summary: string;
|
|
21
|
+
shortSummary: string;
|
|
22
|
+
failureScenario: string;
|
|
23
|
+
/** The executed evidence that settled the verdict, or its `not run` line. */
|
|
24
|
+
witness?: string;
|
|
25
|
+
suggestedFix?: string;
|
|
26
|
+
category?: string;
|
|
27
|
+
locations: FindingLocation[];
|
|
28
|
+
/** Local evidence paths; rendered as workspace images where possible. */
|
|
29
|
+
assetFiles?: string[];
|
|
30
|
+
assets?: string[];
|
|
31
|
+
outcome?: Outcome;
|
|
32
|
+
outcomeNote?: string;
|
|
33
|
+
heldByMeasurement?: {
|
|
34
|
+
file: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
interface ReviewCounts {
|
|
38
|
+
total: number;
|
|
39
|
+
bySeverity: Record<Severity, number>;
|
|
40
|
+
byConfidence: Record<Confidence, number>;
|
|
41
|
+
held: number;
|
|
42
|
+
}
|
|
43
|
+
interface CodeReviewDocument {
|
|
44
|
+
schemaVersion: 1;
|
|
45
|
+
target: string;
|
|
46
|
+
effort: string;
|
|
47
|
+
verdict: {
|
|
48
|
+
event: 'APPROVE' | 'COMMENT' | 'REQUEST_CHANGES';
|
|
49
|
+
verdictLine: string;
|
|
50
|
+
baseEvent: 'APPROVE' | 'COMMENT' | 'REQUEST_CHANGES';
|
|
51
|
+
cappedBy: string[];
|
|
52
|
+
};
|
|
53
|
+
findings: ReviewFinding[];
|
|
54
|
+
counts: ReviewCounts;
|
|
55
|
+
markdownReportPath: string;
|
|
56
|
+
}
|
|
57
|
+
export declare function parseCodeReviewDocument(content: string): CodeReviewDocument;
|
|
58
|
+
export declare function CodeReviewArtifactDetail({ workspacePath, artifactVersion, workspaceActions, }: {
|
|
59
|
+
workspacePath: string;
|
|
60
|
+
artifactVersion?: string;
|
|
61
|
+
workspaceActions: ArtifactWorkspaceActions;
|
|
62
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DaemonSessionActions } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
import type { ContextUsageControls } from '../../hooks/useContextUsageControls';
|
|
3
|
+
export declare function ContextUsagePanel({ sessionActions, sessionId, controls, }: {
|
|
4
|
+
sessionActions?: DaemonSessionActions;
|
|
5
|
+
sessionId: string;
|
|
6
|
+
controls?: Omit<ContextUsageControls, 'captureOwner'>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TurnOutputFileChange } from './TurnOutputs';
|
|
2
|
+
export declare function LineStats({ additions, deletions, className, additionsClassName, deletionsClassName, }: {
|
|
3
|
+
additions: number | undefined;
|
|
4
|
+
deletions: number | undefined;
|
|
5
|
+
className: string;
|
|
6
|
+
additionsClassName: string;
|
|
7
|
+
deletionsClassName: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export declare function sumLineStats(changes: readonly TurnOutputFileChange[]): {
|
|
10
|
+
additions: number;
|
|
11
|
+
deletions: number;
|
|
12
|
+
} | undefined;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TurnOutputOpenRequest } from './TurnOutputs';
|
|
2
|
+
import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
3
|
+
interface SideTaskPanelProps {
|
|
4
|
+
tabId: string;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
parentSessionId: string;
|
|
7
|
+
workspaceCwd?: string;
|
|
8
|
+
title: string;
|
|
9
|
+
shouldNameFromFirstPrompt?: boolean;
|
|
10
|
+
initialPrompt?: string;
|
|
11
|
+
createSession: (tabId: string, parentSessionId: string, title: string) => Promise<{
|
|
12
|
+
sessionId: string;
|
|
13
|
+
displayName?: string;
|
|
14
|
+
}>;
|
|
15
|
+
onCreated: (tabId: string, sessionId: string) => void;
|
|
16
|
+
onTitleChange: (tabId: string, title: string, fromFirstPrompt?: boolean) => void;
|
|
17
|
+
onRightPanelOpen?: (request: TurnOutputOpenRequest) => void;
|
|
18
|
+
onArtifactsChange?: (sessionId: string, artifacts: readonly DaemonSessionArtifact[]) => void;
|
|
19
|
+
onError?: (error: unknown, fallback: string) => void;
|
|
20
|
+
sessionWorkflowEnabled?: boolean;
|
|
21
|
+
onImageIngestionNotice?: (tone: 'warning' | 'error', message: string) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function SideTaskPanel({ tabId, sessionId, parentSessionId, workspaceCwd, title, shouldNameFromFirstPrompt, initialPrompt, createSession, onCreated, onTitleChange, onRightPanelOpen, onArtifactsChange, onError, sessionWorkflowEnabled, onImageIngestionNotice, }: SideTaskPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { ACPToolCall, Message } from '../../adapters/types';
|
|
3
|
+
import type { TurnOutputOpenRequest } from './TurnOutputs';
|
|
4
|
+
export declare function findSubagentRootTool(messages: readonly Message[], rootToolCallId: string): ACPToolCall | undefined;
|
|
5
|
+
export declare function SubagentDetail({ sessionId, rootToolCallId, initialRootTool, workspaceCwd, onRightPanelOpen, onArtifactsChange, onOpenSubagent, onError, }: {
|
|
6
|
+
sessionId: string;
|
|
7
|
+
rootToolCallId: string;
|
|
8
|
+
initialRootTool: ACPToolCall;
|
|
9
|
+
workspaceCwd?: string;
|
|
10
|
+
onRightPanelOpen?: (request: TurnOutputOpenRequest) => void;
|
|
11
|
+
onArtifactsChange?: (sessionId: string, artifacts: readonly DaemonSessionArtifact[]) => void;
|
|
12
|
+
onOpenSubagent?: (tool: ACPToolCall, sessionId: string, workspaceCwd?: string) => void;
|
|
13
|
+
onError?: (error: unknown, fallback: string) => void;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DaemonSessionActions } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
interface TokenUsagePanelProps {
|
|
3
|
+
sessionActions?: DaemonSessionActions;
|
|
4
|
+
sessionId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function TokenUsagePanel({ sessionActions, sessionId, }: TokenUsagePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|