@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,121 @@
|
|
|
1
|
+
import type { DaemonBackgroundTurn, DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { ACPToolCall } from '../../adapters/types';
|
|
3
|
+
export interface TurnOutputFileChange {
|
|
4
|
+
path: string;
|
|
5
|
+
status: 'created' | 'modified';
|
|
6
|
+
toolCallId: string;
|
|
7
|
+
isArtifact: boolean;
|
|
8
|
+
additions?: number;
|
|
9
|
+
deletions?: number;
|
|
10
|
+
diffs: TurnOutputFileDiff[];
|
|
11
|
+
}
|
|
12
|
+
export interface TurnOutputFileDiff {
|
|
13
|
+
oldText: string;
|
|
14
|
+
newText: string;
|
|
15
|
+
fileDiff?: string;
|
|
16
|
+
fullContent?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface TurnOutputScheduledTask {
|
|
19
|
+
id: string;
|
|
20
|
+
toolCallId: string;
|
|
21
|
+
title: string;
|
|
22
|
+
cron: string;
|
|
23
|
+
prompt: string;
|
|
24
|
+
recurring: boolean;
|
|
25
|
+
durable: boolean;
|
|
26
|
+
workspaceId?: string;
|
|
27
|
+
display?: string;
|
|
28
|
+
}
|
|
29
|
+
export type TurnOutputKind = 'file' | 'artifact' | 'scheduled_task';
|
|
30
|
+
export declare const TURN_OUTPUT_KINDS: readonly TurnOutputKind[];
|
|
31
|
+
export declare const TURN_OUTPUT_VISIBLE_LIMIT = 3;
|
|
32
|
+
export declare function visibleTurnOutputs<T>(items: readonly T[], expanded: boolean): readonly T[];
|
|
33
|
+
export type TurnOutputOpenRequest = ({
|
|
34
|
+
id: string;
|
|
35
|
+
kind: 'background_task';
|
|
36
|
+
title: string;
|
|
37
|
+
turnId: string;
|
|
38
|
+
backgroundTurn: DaemonBackgroundTurn;
|
|
39
|
+
workspaceCwd?: string;
|
|
40
|
+
} | {
|
|
41
|
+
id: 'review';
|
|
42
|
+
kind: 'review';
|
|
43
|
+
title: string;
|
|
44
|
+
turnId: string;
|
|
45
|
+
changes: readonly TurnOutputFileChange[];
|
|
46
|
+
selectedPath?: string;
|
|
47
|
+
workspaceCwd?: string;
|
|
48
|
+
workspaceId?: string;
|
|
49
|
+
} | {
|
|
50
|
+
id: 'image';
|
|
51
|
+
kind: 'image';
|
|
52
|
+
title: string;
|
|
53
|
+
turnId: string;
|
|
54
|
+
src: string;
|
|
55
|
+
alt?: string;
|
|
56
|
+
attachmentId?: string;
|
|
57
|
+
} | {
|
|
58
|
+
id: string;
|
|
59
|
+
kind: 'attachment';
|
|
60
|
+
silentUnavailable?: boolean;
|
|
61
|
+
title: string;
|
|
62
|
+
turnId: string;
|
|
63
|
+
mimeType?: string;
|
|
64
|
+
data?: Blob;
|
|
65
|
+
text?: string;
|
|
66
|
+
attachmentId?: string;
|
|
67
|
+
workspacePath?: string;
|
|
68
|
+
workspaceCwd?: string;
|
|
69
|
+
} | {
|
|
70
|
+
id: string;
|
|
71
|
+
kind: 'artifact';
|
|
72
|
+
title: string;
|
|
73
|
+
turnId: string;
|
|
74
|
+
artifactId: string;
|
|
75
|
+
managedId?: string;
|
|
76
|
+
artifact: DaemonSessionArtifact;
|
|
77
|
+
workspaceCwd?: string;
|
|
78
|
+
workspaceId?: string;
|
|
79
|
+
previewContent?: string;
|
|
80
|
+
} | {
|
|
81
|
+
id: string;
|
|
82
|
+
kind: 'scheduled_task';
|
|
83
|
+
title: string;
|
|
84
|
+
turnId: string;
|
|
85
|
+
task: TurnOutputScheduledTask;
|
|
86
|
+
workspaceCwd?: string;
|
|
87
|
+
workspaceId?: string;
|
|
88
|
+
} | {
|
|
89
|
+
id: string;
|
|
90
|
+
kind: 'subagent';
|
|
91
|
+
title: string;
|
|
92
|
+
turnId: string;
|
|
93
|
+
tool: ACPToolCall;
|
|
94
|
+
sessionId: string;
|
|
95
|
+
workspaceCwd?: string;
|
|
96
|
+
}) & {
|
|
97
|
+
/** Session whose transcript produced this output. */
|
|
98
|
+
sourceSessionId?: string;
|
|
99
|
+
};
|
|
100
|
+
interface TurnOutputsProps {
|
|
101
|
+
turnId: string;
|
|
102
|
+
changes: readonly TurnOutputFileChange[];
|
|
103
|
+
artifacts: readonly DaemonSessionArtifact[];
|
|
104
|
+
scheduledTasks: readonly TurnOutputScheduledTask[];
|
|
105
|
+
workspaceCwd?: string;
|
|
106
|
+
onOpenRequest?: (request: TurnOutputOpenRequest) => void;
|
|
107
|
+
onReviewChanges: (changes: readonly TurnOutputFileChange[], selectedPath?: string) => void;
|
|
108
|
+
onOpenArtifact: (artifactId: string, previewContent?: string) => void;
|
|
109
|
+
onOpenScheduledTask: (task: TurnOutputScheduledTask) => void;
|
|
110
|
+
onError?: (error: unknown, fallback: string) => void;
|
|
111
|
+
}
|
|
112
|
+
declare function TurnOutputsComponent({ turnId, changes, artifacts, scheduledTasks, workspaceCwd, onOpenRequest, onReviewChanges, onOpenArtifact, onOpenScheduledTask, onError, }: TurnOutputsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
113
|
+
export declare const TurnOutputs: import("react").MemoExoticComponent<typeof TurnOutputsComponent>;
|
|
114
|
+
export declare function getArtifactPreviewContent(artifact: DaemonSessionArtifact, changes: readonly TurnOutputFileChange[], workspaceCwd?: string): string | undefined;
|
|
115
|
+
export declare function getFileChangePreviewContent(change: TurnOutputFileChange): string | undefined;
|
|
116
|
+
export declare function isRenderedFilePath(value: string): boolean;
|
|
117
|
+
export declare function isDownloadableReviewFilePath(value: string): boolean;
|
|
118
|
+
export declare function canOpenWorkspaceArtifact(artifact: DaemonSessionArtifact): boolean;
|
|
119
|
+
export declare function getWorkspaceArtifactOpenBlockReason(artifact: DaemonSessionArtifact, t: (key: string, vars?: Record<string, string | number>) => string): string | undefined;
|
|
120
|
+
export declare function displayPath(path: string, workspaceCwd?: string): string;
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { DaemonSessionArtifact, DaemonWorkspaceFileBytes } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { DaemonWorkspaceActions } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
3
|
+
export declare function artifactKindLabel(kind: string, workspacePath?: string): string;
|
|
4
|
+
export declare function isOfficeDocumentPath(workspacePath?: string): boolean;
|
|
5
|
+
export declare function isDownloadOnlyWorkspaceArtifact(artifact: {
|
|
6
|
+
kind?: string;
|
|
7
|
+
workspacePath?: string;
|
|
8
|
+
mimeType?: string;
|
|
9
|
+
}): boolean;
|
|
10
|
+
export declare function pathExtension(workspacePath?: string): string;
|
|
11
|
+
export declare function isAudioArtifact(workspacePath?: string, mimeType?: string): boolean;
|
|
12
|
+
export declare function getArtifactFreshnessKey(artifact: Pick<DaemonSessionArtifact, 'status' | 'updatedAt' | 'metadata'>): string;
|
|
13
|
+
export declare function getArtifactTypeLabel(artifact: DaemonSessionArtifact): string;
|
|
14
|
+
export declare function formatArtifactSize(sizeBytes: number | undefined): string;
|
|
15
|
+
export declare function normalizeArtifactMimeType(mimeType?: string): string;
|
|
16
|
+
export declare function getArtifactImageMimeType(artifact: Pick<DaemonSessionArtifact, 'mimeType' | 'workspacePath'>): string | undefined;
|
|
17
|
+
export declare function getImageMimeTypeFromPath(path: string): string | undefined;
|
|
18
|
+
export declare function getReviewDownloadMimeType(value: string): string;
|
|
19
|
+
export declare function readWorkspaceFileAsBlob(readFileBytes: (filePath: string, opts?: {
|
|
20
|
+
offset?: number;
|
|
21
|
+
maxBytes?: number;
|
|
22
|
+
}) => Promise<Pick<DaemonWorkspaceFileBytes, 'contentBase64' | 'offset' | 'returnedBytes' | 'sizeBytes'>>, filePath: string, mimeType: string, options: {
|
|
23
|
+
statFile: (filePath: string) => Promise<{
|
|
24
|
+
sizeBytes: number;
|
|
25
|
+
modifiedMs: number;
|
|
26
|
+
type?: string;
|
|
27
|
+
}>;
|
|
28
|
+
isCancelled?: () => boolean;
|
|
29
|
+
maxBytes?: number;
|
|
30
|
+
}): Promise<Blob>;
|
|
31
|
+
export declare function downloadWorkspaceFile(workspaceActions: Pick<DaemonWorkspaceActions, 'readFileBytes' | 'stat'>, workspacePath: string, mimeType?: string, isCancelled?: () => boolean): Promise<void>;
|
|
32
|
+
export declare function getArtifactLocation(artifact: DaemonSessionArtifact): string;
|
|
33
|
+
export declare function normalizePath(value: string | undefined): string;
|
|
34
|
+
export declare function stripWorkspacePath(path: string, workspaceCwd?: string): string;
|
|
35
|
+
export declare function isSamePath(left: string | undefined, right: string | undefined, workspaceCwd?: string): boolean;
|
|
36
|
+
export declare function artifactPreviewDocument(html: string, title: string): string;
|
|
37
|
+
export declare function withArtifactPreviewCsp(html: string): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { ACPToolCall, Message } from '../../adapters/types';
|
|
3
|
+
import type { TurnOutputFileChange, TurnOutputScheduledTask } from './TurnOutputs';
|
|
4
|
+
export declare function getArtifactsByTurn(messages: readonly Message[], artifacts: readonly DaemonSessionArtifact[], workspaceCwd?: string): ReadonlyMap<string, readonly DaemonSessionArtifact[]>;
|
|
5
|
+
export declare function getFileChangesByTurn(messages: readonly Message[], artifactsByTurn: ReadonlyMap<string, readonly DaemonSessionArtifact[]>, workspaceCwd?: string): ReadonlyMap<string, readonly TurnOutputFileChange[]>;
|
|
6
|
+
export declare function getScheduledTasksByTurn(messages: readonly Message[]): ReadonlyMap<string, readonly TurnOutputScheduledTask[]>;
|
|
7
|
+
export declare function getToolFilePath(tool: ACPToolCall): string | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DaemonCapabilities } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import { type DaemonWorkspaceActions } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
3
|
+
export type ArtifactWorkspaceActions = Pick<DaemonWorkspaceActions, 'readWorkspaceFile' | 'readFileBytes' | 'stat' | 'listScheduledTasks' | 'updateScheduledTask' | 'deleteScheduledTask'>;
|
|
4
|
+
interface ArtifactWorkspaceOwner {
|
|
5
|
+
cwd: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
primary: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface ArtifactWorkspaceTarget {
|
|
10
|
+
workspaceCwd: string;
|
|
11
|
+
workspaceId?: string;
|
|
12
|
+
actions: ArtifactWorkspaceActions;
|
|
13
|
+
}
|
|
14
|
+
export declare function resolveArtifactWorkspaceOwner(capabilities: DaemonCapabilities | undefined, workspaceCwd: string | undefined): ArtifactWorkspaceOwner | undefined;
|
|
15
|
+
export declare function useArtifactWorkspaceTarget(workspaceCwd: string | undefined): ArtifactWorkspaceTarget | undefined;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonChannelInstanceSnapshot, DaemonChannelPairingApprovalResult, DaemonChannelPairingApprovalsSnapshot, DaemonChannelPairingRequestsSnapshot, DaemonChannelPairingRevocationRequest, DaemonChannelPairingRevocationResult, DaemonChannelTypeDescriptor, DaemonChannelUpsertRequest, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
|
|
7
|
+
export interface ChannelEditorDialogProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
descriptor: DaemonChannelTypeDescriptor;
|
|
10
|
+
instance?: DaemonChannelInstanceSnapshot;
|
|
11
|
+
expectedRevision: string;
|
|
12
|
+
existingNames: readonly string[];
|
|
13
|
+
workspaces: readonly DaemonWorkspaceCapability[];
|
|
14
|
+
workspaceCwd: string;
|
|
15
|
+
workspaceLoading?: boolean;
|
|
16
|
+
onWorkspaceChange: (workspaceCwd: string) => void;
|
|
17
|
+
onOpenChange: (open: boolean) => void;
|
|
18
|
+
onSave: (name: string, request: DaemonChannelUpsertRequest) => Promise<unknown>;
|
|
19
|
+
onReload: () => Promise<unknown>;
|
|
20
|
+
listPairingRequests: (name: string) => Promise<DaemonChannelPairingRequestsSnapshot>;
|
|
21
|
+
approvePairingRequest: (name: string, code: string) => Promise<DaemonChannelPairingApprovalResult>;
|
|
22
|
+
listPairingApprovals: (name: string) => Promise<DaemonChannelPairingApprovalsSnapshot>;
|
|
23
|
+
revokePairingApproval: (name: string, request: DaemonChannelPairingRevocationRequest) => Promise<DaemonChannelPairingRevocationResult>;
|
|
24
|
+
}
|
|
25
|
+
export declare function ChannelEditorDialog({ open, descriptor, instance, expectedRevision, existingNames, workspaces, workspaceCwd, workspaceLoading, onWorkspaceChange, onOpenChange, onSave, onReload, listPairingRequests, approvePairingRequest, listPairingApprovals, revokePairingApproval, }: ChannelEditorDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonChannelPairingApprovalResult, DaemonChannelPairingApprovalsSnapshot, DaemonChannelPairingRequestsSnapshot, DaemonChannelPairingRevocationRequest, DaemonChannelPairingRevocationResult } from '@qwen-code/sdk/daemon';
|
|
7
|
+
export interface ChannelPairingRequestsProps {
|
|
8
|
+
channelName: string;
|
|
9
|
+
listRequests: (name: string) => Promise<DaemonChannelPairingRequestsSnapshot>;
|
|
10
|
+
approveRequest: (name: string, code: string) => Promise<DaemonChannelPairingApprovalResult>;
|
|
11
|
+
listApprovals: (name: string) => Promise<DaemonChannelPairingApprovalsSnapshot>;
|
|
12
|
+
revokeApproval: (name: string, request: DaemonChannelPairingRevocationRequest) => Promise<DaemonChannelPairingRevocationResult>;
|
|
13
|
+
staticAllowedUsers?: readonly string[];
|
|
14
|
+
}
|
|
15
|
+
export declare function ChannelPairingRequests({ channelName, listRequests, approveRequest, listApprovals, revokeApproval, staticAllowedUsers, }: ChannelPairingRequestsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { type Ref } from 'react';
|
|
7
|
+
interface ChannelsManagerPageProps {
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
initialFocusRef?: Ref<HTMLHeadingElement>;
|
|
10
|
+
}
|
|
11
|
+
export declare function ChannelsManagerPage({ onClose, initialFocusRef, }: ChannelsManagerPageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonChannelInstanceSnapshot, DaemonChannelSecretUpdate, DaemonChannelTypeDescriptor, DaemonChannelUpsertRequest } from '@qwen-code/sdk/daemon';
|
|
7
|
+
export type ChannelSenderPolicy = 'pairing' | 'open' | '';
|
|
8
|
+
export interface ChannelSecretDraft {
|
|
9
|
+
operation: DaemonChannelSecretUpdate['operation'];
|
|
10
|
+
value?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ChannelEditorDraft {
|
|
13
|
+
name: string;
|
|
14
|
+
values: Record<string, string | boolean>;
|
|
15
|
+
secrets: Record<string, ChannelSecretDraft>;
|
|
16
|
+
senderPolicy: ChannelSenderPolicy;
|
|
17
|
+
allowedGroupIds: string;
|
|
18
|
+
}
|
|
19
|
+
export type ChannelEditorValidationCode = 'required' | 'credential' | 'duplicate' | 'invalid' | 'invalidGroupId' | 'invalidOption' | 'number' | 'outOfRange' | 'policy';
|
|
20
|
+
export type ChannelEditorValidationErrors = Record<string, ChannelEditorValidationCode>;
|
|
21
|
+
export declare function hasDescriptorSenderPolicy(descriptor: DaemonChannelTypeDescriptor): boolean;
|
|
22
|
+
export declare function hasDescriptorGroupPolicy(descriptor: DaemonChannelTypeDescriptor): boolean;
|
|
23
|
+
export declare function createChannelEditorDraft(descriptor: DaemonChannelTypeDescriptor, instance?: DaemonChannelInstanceSnapshot): ChannelEditorDraft;
|
|
24
|
+
export declare function validateChannelEditorDraft(descriptor: DaemonChannelTypeDescriptor, draft: ChannelEditorDraft, existingNames: readonly string[]): ChannelEditorValidationErrors;
|
|
25
|
+
export declare function buildChannelUpsertRequest(descriptor: DaemonChannelTypeDescriptor, draft: ChannelEditorDraft, expectedRevision: string, instance?: DaemonChannelInstanceSnapshot): DaemonChannelUpsertRequest;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonChannelTypeDescriptor } from '@qwen-code/sdk/daemon';
|
|
7
|
+
export declare const PLATFORM_MARKS: Record<string, string>;
|
|
8
|
+
export declare function isSupportedChannelType(type: unknown): type is 'dingtalk' | 'dws' | 'wecom' | 'feishu' | 'github' | 'gitlab';
|
|
9
|
+
export declare function isChannelPlatformAvailable(descriptor: DaemonChannelTypeDescriptor): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SkillInfo } from '../../completions/slashCompletion';
|
|
2
|
+
import type { WebShellComposerTag } from '../../customization';
|
|
3
|
+
import type { AtMentionWorkspaceActions } from '../../hooks/useAtMentionSources';
|
|
4
|
+
export interface AddMenuProps {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
availabilityKey: string;
|
|
7
|
+
addFileAvailable: boolean;
|
|
8
|
+
uploadAvailable: boolean;
|
|
9
|
+
onAddFiles: (files: File[], destination: 'attach' | 'upload') => void;
|
|
10
|
+
onFilePickerCancel: () => void;
|
|
11
|
+
onInsertReference: (tag: WebShellComposerTag) => void;
|
|
12
|
+
onPrependSkill: (invocation: string) => void;
|
|
13
|
+
getWorkspaceActions: () => AtMentionWorkspaceActions | undefined;
|
|
14
|
+
skills: readonly SkillInfo[];
|
|
15
|
+
onSkillsOpenChange?: (open: boolean) => void;
|
|
16
|
+
skillsLoading?: boolean;
|
|
17
|
+
skillsLoadError?: boolean;
|
|
18
|
+
skillsLoaded?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function AddMenu({ disabled, availabilityKey, addFileAvailable, uploadAvailable, onAddFiles, onFilePickerCancel, onInsertReference, onPrependSkill, getWorkspaceActions, skills, onSkillsOpenChange, skillsLoading, skillsLoadError, skillsLoaded, }: AddMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PrependSkillTransaction {
|
|
2
|
+
changes: {
|
|
3
|
+
from: 0;
|
|
4
|
+
to: 0;
|
|
5
|
+
insert: string;
|
|
6
|
+
};
|
|
7
|
+
selection: {
|
|
8
|
+
anchor: number;
|
|
9
|
+
};
|
|
10
|
+
scrollIntoView: true;
|
|
11
|
+
}
|
|
12
|
+
export declare function computePrependSkillTransaction(currentDoc: string, invocation: string): PrependSkillTransaction | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface WorkspacePathSuggestion {
|
|
2
|
+
name: string;
|
|
3
|
+
path: string;
|
|
4
|
+
}
|
|
5
|
+
export interface WorkspacePathSuggestions {
|
|
6
|
+
dir: string;
|
|
7
|
+
sep: string;
|
|
8
|
+
suggestions: WorkspacePathSuggestion[];
|
|
9
|
+
truncated: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface AddWorkspaceDialogProps {
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onAdd: (cwd: string, persist: boolean, displayName?: string) => Promise<void>;
|
|
14
|
+
displayNameEnabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Directory autocomplete backend. When provided, typing an absolute path
|
|
17
|
+
* surfaces matching subdirectories in a listbox under the input.
|
|
18
|
+
*/
|
|
19
|
+
onSuggest?: (prefix: string) => Promise<WorkspacePathSuggestions>;
|
|
20
|
+
onPick?: () => Promise<string | undefined>;
|
|
21
|
+
persistenceSupported?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare function AddWorkspaceDialog({ onClose, onAdd, displayNameEnabled, onSuggest, onPick, persistenceSupported, }: AddWorkspaceDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ApprovalModeDialogProps {
|
|
2
|
+
currentMode: string;
|
|
3
|
+
sessionWorkflowEnabled?: boolean;
|
|
4
|
+
onSelect: (modeId: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function ApprovalModeDialog({ currentMode, onSelect, }: ApprovalModeDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface DeleteSessionDialogProps {
|
|
2
|
+
onDeleted: (sessionIds: string[]) => void;
|
|
3
|
+
onError: (error: unknown) => void;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
workspaceCwd?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function DeleteSessionDialog({ onDeleted, onError, onClose, workspaceCwd, }: DeleteSessionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
type DialogSize = 'sm' | 'md' | 'lg' | 'xl' | 'auto';
|
|
3
|
+
interface DialogShellProps {
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
size?: DialogSize;
|
|
7
|
+
allowFullscreen?: boolean;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const DialogShellIdContext: import("react").Context<object | null>;
|
|
13
|
+
export declare function isTopDialogShellId(shellId: object | null): boolean;
|
|
14
|
+
export declare function DialogShell({ title, subtitle, size, allowFullscreen, dismissible, onClose, children, }: DialogShellProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export type GitDialogView = 'diff' | 'log' | 'prs' | 'commit';
|
|
7
|
+
export declare function GitDialog({ workspaceCwd, gitCwd, initialView, sessionId, resolveSessionForWorkspace, onClose, }: {
|
|
8
|
+
workspaceCwd: string;
|
|
9
|
+
gitCwd?: string;
|
|
10
|
+
initialView: GitDialogView;
|
|
11
|
+
sessionId?: string;
|
|
12
|
+
resolveSessionForWorkspace?: (cwd: string, forceCreate?: boolean) => Promise<string | undefined>;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export declare function GitDiffContent({ workspaceCwd, gitCwd, onSubtitleChange, }: {
|
|
7
|
+
workspaceCwd: string;
|
|
8
|
+
gitCwd?: string;
|
|
9
|
+
onSubtitleChange?: (subtitle: string | undefined) => void;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function GitDiffDialog({ workspaceCwd, onClose, }: {
|
|
12
|
+
workspaceCwd: string;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export declare function GitHubPrsContent({ workspaceCwd, onSubtitleChange, }: {
|
|
7
|
+
workspaceCwd: string;
|
|
8
|
+
onSubtitleChange?: (subtitle: string | undefined) => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
export declare function GitLogContent({ workspaceCwd, gitCwd, onSubtitleChange, }: {
|
|
7
|
+
workspaceCwd: string;
|
|
8
|
+
gitCwd?: string;
|
|
9
|
+
onSubtitleChange?: (subtitle: string | undefined) => void;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function GitLogDialog({ workspaceCwd, onClose, }: {
|
|
12
|
+
workspaceCwd: string;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface GoalEditDialogProps {
|
|
2
|
+
objective: string;
|
|
3
|
+
saving: boolean;
|
|
4
|
+
error?: string | null;
|
|
5
|
+
onSave: (objective: string) => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function GoalEditDialog({ objective, saving, error, onSave, onClose, }: GoalEditDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
interface GoalsDialogProps {
|
|
7
|
+
/** Create a canonical Goal in a brand-new session and switch to it.
|
|
8
|
+
* Return `false` when session setup failed and the error was already shown;
|
|
9
|
+
* throw to render the control failure inline. */
|
|
10
|
+
onCreateGoal: (condition: string) => boolean | void | Promise<boolean | void>;
|
|
11
|
+
/** Open the session driving a goal — its transcript IS the goal's history. */
|
|
12
|
+
onOpenSession: (sessionId: string) => void;
|
|
13
|
+
onError: (error: unknown, fallback: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function GoalsDialog({ onCreateGoal, onOpenSession, onError, }: GoalsDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type ModelDialogMode = 'main' | 'fast' | 'voice' | 'vision' | 'advisor' | 'image';
|
|
2
|
+
interface ModelDialogProps {
|
|
3
|
+
mode?: ModelDialogMode;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
error?: Error;
|
|
6
|
+
onSelect: (modelId: string) => void;
|
|
7
|
+
models?: ModelDialogModel[];
|
|
8
|
+
currentModelId?: string;
|
|
9
|
+
filterModel?: (model: ModelDialogModel) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ModelDialogModel {
|
|
12
|
+
id: string;
|
|
13
|
+
baseModelId?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
authType?: string;
|
|
16
|
+
contextWindow?: number;
|
|
17
|
+
modalities?: {
|
|
18
|
+
image?: boolean;
|
|
19
|
+
pdf?: boolean;
|
|
20
|
+
audio?: boolean;
|
|
21
|
+
video?: boolean;
|
|
22
|
+
};
|
|
23
|
+
baseUrl?: string;
|
|
24
|
+
envKey?: string;
|
|
25
|
+
isRuntime?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function ModelDialog({ mode, loading, error, onSelect, models, currentModelId, filterModel, }: ModelDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface FallbackModelOption {
|
|
2
|
+
/** Base model id persisted in the modelFallbacks setting. */
|
|
3
|
+
baseId: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ModelFallbacksDialogProps {
|
|
7
|
+
models: FallbackModelOption[];
|
|
8
|
+
/** Currently configured fallback base ids, in priority order. */
|
|
9
|
+
current: string[];
|
|
10
|
+
max: number;
|
|
11
|
+
onConfirm: (baseIds: string[]) => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function ModelFallbacksDialog({ models, current, max, onConfirm, onClose, }: ModelFallbacksDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ReleaseSessionDialogProps {
|
|
2
|
+
onReleased: (sessionId: string) => void;
|
|
3
|
+
onError: (error: unknown) => void;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
workspaceCwd?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function ReleaseSessionDialog({ onReleased, onError, onClose, workspaceCwd, }: ReleaseSessionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface ResumeDialogProps {
|
|
2
|
+
onSelect: (sessionId: string) => void;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
workspaceCwd?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ResumeDialog({ onSelect, onClose, workspaceCwd, }: ResumeDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DaemonRewindSnapshotInfo, DaemonTranscriptBlock } from '@qwen-code/sdk/daemon';
|
|
2
|
+
interface RewindDialogProps {
|
|
3
|
+
blocks: readonly DaemonTranscriptBlock[];
|
|
4
|
+
loadSnapshots: () => Promise<{
|
|
5
|
+
snapshots: DaemonRewindSnapshotInfo[];
|
|
6
|
+
}>;
|
|
7
|
+
rewind: (promptId: string) => Promise<void>;
|
|
8
|
+
onError: (error: unknown) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function RewindDialog({ blocks, loadSnapshots, rewind, onError, onClose, }: RewindDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonWorkspaceCapability, DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
7
|
+
interface ScheduledTasksDialogProps {
|
|
8
|
+
/** Manual "run now": execute the task's prompt in its bound session (so it
|
|
9
|
+
* lands in the same transcript as its scheduled runs), or in the current
|
|
10
|
+
* session for an unbound task. The App wiring switches to that session. */
|
|
11
|
+
onRunPrompt: (prompt: string, sessionId: string | null) => void | Promise<void>;
|
|
12
|
+
/** Switch to the chat view with the composer primed to describe a task, so
|
|
13
|
+
* the agent can create it conversationally via its cron_create tool. */
|
|
14
|
+
onCreateViaChat: () => void;
|
|
15
|
+
/** Open a task's bound session — its transcript IS the task's run history.
|
|
16
|
+
* When absent, tasks fall back to the inline fire-timestamp list. */
|
|
17
|
+
onOpenSession?: (sessionId: string) => void;
|
|
18
|
+
/** Registered workspaces on a multi-workspace daemon (from capabilities).
|
|
19
|
+
* When more than one is present the page aggregates every trusted workspace's
|
|
20
|
+
* tasks (each card tagged with its workspace) and the New-task form offers a
|
|
21
|
+
* workspace picker. Absent or a single entry → the plain primary-only view. */
|
|
22
|
+
workspaces?: DaemonWorkspaceCapability[];
|
|
23
|
+
/** Forces all task operations through this workspace's route. */
|
|
24
|
+
lockedWorkspace?: DaemonWorkspaceCapability;
|
|
25
|
+
currentSession?: DaemonSessionSummary;
|
|
26
|
+
currentSessionSchedulingAvailable?: boolean;
|
|
27
|
+
onError: (error: unknown, fallback: string) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare function ScheduledTasksDialog({ onRunPrompt, onCreateViaChat, onOpenSession, workspaces, lockedWorkspace, currentSession, currentSessionSchedulingAvailable, onError, }: ScheduledTasksDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type DaemonSessionSummary } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
3
|
+
interface SessionRowProps {
|
|
4
|
+
session: DaemonSessionSummary;
|
|
5
|
+
/** Roving keyboard/hover highlight. */
|
|
6
|
+
active: boolean;
|
|
7
|
+
/** The user's current session — marks it with the accent bar + ✓. */
|
|
8
|
+
current: boolean;
|
|
9
|
+
/** Confirmed target for a destructive action (release), distinct from cursor. */
|
|
10
|
+
confirmed?: boolean;
|
|
11
|
+
/** Non-actionable row (e.g. the current session, or an inactive one). */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Tooltip shown when `current` (the pseudo-element ✓ can't carry text). */
|
|
14
|
+
currentLabel?: string;
|
|
15
|
+
/** Stable id so the listbox can point `aria-activedescendant` at this row. */
|
|
16
|
+
optionId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* `aria-selected` value. Per WAI-ARIA this marks the chosen value, not the
|
|
19
|
+
* roving highlight (which `aria-activedescendant` conveys) — so it defaults
|
|
20
|
+
* to `current`. Multi-select (delete) passes the checked state and release
|
|
21
|
+
* passes its confirmed target instead.
|
|
22
|
+
*/
|
|
23
|
+
ariaSelected?: boolean;
|
|
24
|
+
/** Leading slot, e.g. a multi-select checkbox. */
|
|
25
|
+
leading?: ReactNode;
|
|
26
|
+
/** Trailing slot in the title row, e.g. a status badge. */
|
|
27
|
+
trailing?: ReactNode;
|
|
28
|
+
/** Test-only selector for the resume dialog's session options. */
|
|
29
|
+
resumeSelector?: boolean;
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Pointer moved over the row (real movement — see useListboxKeyboard). This
|
|
33
|
+
* updates the roving cursor only; callers that separate cursor from confirmed
|
|
34
|
+
* target (e.g. release/rewind) still keep the destructive action behind an
|
|
35
|
+
* explicit Enter/click + button flow.
|
|
36
|
+
*/
|
|
37
|
+
onActivate?: () => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A session list row shared by the resume / delete / release dialogs. Owns the
|
|
41
|
+
* common shell (roving highlight, current marker, disabled state) and the
|
|
42
|
+
* identical metadata line (relative time · client count · active prompt);
|
|
43
|
+
* per-dialog affordances go through the `leading`/`trailing` slots.
|
|
44
|
+
*/
|
|
45
|
+
export declare function SessionRow({ session, active, current, confirmed, disabled, currentLabel, optionId, ariaSelected, leading, trailing, resumeSelector, onClick, onActivate, }: SessionRowProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export {};
|