@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,319 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Daemon React bindings owned by `@qwen-code/web-shell`.
|
|
8
|
+
*
|
|
9
|
+
* React bindings for the Qwen Code daemon process.
|
|
10
|
+
* Provides context Providers, hooks, types, and constants
|
|
11
|
+
* for building UIs that connect to and interact with the daemon.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* import {
|
|
16
|
+
* DaemonSessionProvider,
|
|
17
|
+
* DaemonWorkspaceProvider,
|
|
18
|
+
* useConnection,
|
|
19
|
+
* useStreamingState,
|
|
20
|
+
* } from '@qwen-code/web-shell';
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Wraps children with session-level daemon context.
|
|
25
|
+
* Manages a single conversation session: transcript, streaming state,
|
|
26
|
+
* prompt submission, and permission handling.
|
|
27
|
+
*/
|
|
28
|
+
export { DaemonSessionProvider } from './daemon/index.js';
|
|
29
|
+
/**
|
|
30
|
+
* Default transcript block-count window applied by `DaemonSessionProvider`
|
|
31
|
+
* when no `maxBlocks` prop is given. Exported so UI surfaces can reference
|
|
32
|
+
* the provider default instead of hard-coding a copy that can drift.
|
|
33
|
+
*/
|
|
34
|
+
export { DEFAULT_MAX_BLOCKS as DAEMON_SESSION_DEFAULT_MAX_BLOCKS } from './daemon/session/index.js';
|
|
35
|
+
/**
|
|
36
|
+
* Wraps children with workspace-level daemon context.
|
|
37
|
+
* Provides access to cross-session resources: tools, skills, MCP servers,
|
|
38
|
+
* memory, agents, and file system operations.
|
|
39
|
+
*/
|
|
40
|
+
export { DaemonWorkspaceProvider } from './daemon/index.js';
|
|
41
|
+
/** Send prompts, cancel requests, and submit permission responses. */
|
|
42
|
+
export { useDaemonActions as useActions } from './daemon/index.js';
|
|
43
|
+
/** Connection status, capabilities, and model info. */
|
|
44
|
+
export { useDaemonConnection as useConnection } from './daemon/index.js';
|
|
45
|
+
/** Current session metadata (id, model, approval mode). */
|
|
46
|
+
export { useDaemonSession as useSession } from './daemon/index.js';
|
|
47
|
+
/** Classified session notices for host-owned UI such as toast or banners. */
|
|
48
|
+
export { useDaemonSessionNotices as useSessionNotices } from './daemon/index.js';
|
|
49
|
+
export { useDaemonSessionOwnerGuard } from './daemon/index.js';
|
|
50
|
+
/** Streaming state: `'idle' | 'thinking' | 'responding'`. */
|
|
51
|
+
export { useDaemonStreamingState as useStreamingState } from './daemon/index.js';
|
|
52
|
+
/** All unresolved permission requests in the current transcript. */
|
|
53
|
+
export { useDaemonPendingPermissions as usePendingPermissions } from './daemon/index.js';
|
|
54
|
+
/** The currently active (most relevant) todo list. */
|
|
55
|
+
export { useDaemonActiveTodoList as useActiveTodoList } from './daemon/index.js';
|
|
56
|
+
/** List and inspect configured agents. */
|
|
57
|
+
export { useDaemonAgents as useAgents } from './daemon/index.js';
|
|
58
|
+
/** Authentication state for the daemon connection. */
|
|
59
|
+
export { useDaemonAuth as useAuth } from './daemon/index.js';
|
|
60
|
+
/** Channel catalog, configuration, lifecycle, and pairing management. */
|
|
61
|
+
export { useDaemonChannels as useChannels } from './daemon/index.js';
|
|
62
|
+
/** Language diagnostics (errors, warnings) from the workspace. */
|
|
63
|
+
export { useDaemonDiagnostics as useDiagnostics } from './daemon/index.js';
|
|
64
|
+
/** Workspace file operations: glob, read, write, edit, stat, listDirectory. */
|
|
65
|
+
export { useDaemonFiles as useFiles } from './daemon/index.js';
|
|
66
|
+
/** Run glob queries against the workspace file system. */
|
|
67
|
+
export { useDaemonGlob as useGlob } from './daemon/index.js';
|
|
68
|
+
/** MCP server status, tools, and management operations. */
|
|
69
|
+
export { useDaemonMcp as useMcp } from './daemon/index.js';
|
|
70
|
+
/** Memory files (CLAUDE.md etc.) stored in the workspace. */
|
|
71
|
+
export { useDaemonMemory as useMemory } from './daemon/index.js';
|
|
72
|
+
/** Generic SWR-style resource fetcher for daemon REST endpoints. */
|
|
73
|
+
export { useDaemonResource as useResource } from './daemon/index.js';
|
|
74
|
+
/**
|
|
75
|
+
* List daemon sessions (workspace-level). Switch/new/release actions require
|
|
76
|
+
* a nested `DaemonSessionProvider` — they are `undefined` without one.
|
|
77
|
+
*/
|
|
78
|
+
export { useDaemonSessions as useSessions } from './daemon/index.js';
|
|
79
|
+
/** Available slash-command skills. */
|
|
80
|
+
export { useDaemonSkills as useSkills } from './daemon/index.js';
|
|
81
|
+
/** Consolidated daemon status report (`GET /daemon/status`). */
|
|
82
|
+
export { useDaemonStatusReport as useStatusReport } from './daemon/index.js';
|
|
83
|
+
/** Options for `useStatusReport` (detail level + resource load flags). */
|
|
84
|
+
export type { DaemonStatusReportOptions as StatusReportOptions } from './daemon/index.js';
|
|
85
|
+
/** Aggregate token-usage dashboard (`GET /usage/dashboard`). */
|
|
86
|
+
export { useDaemonUsageDashboard as useUsageDashboard } from './daemon/index.js';
|
|
87
|
+
/** Options for `useUsageDashboard` (heatmap window + resource load flags). */
|
|
88
|
+
export type { DaemonUsageDashboardOptions as UsageDashboardOptions } from './daemon/index.js';
|
|
89
|
+
/** Registered tools and their configuration. */
|
|
90
|
+
export { useDaemonTools as useTools } from './daemon/index.js';
|
|
91
|
+
/** Workspace settings (read/write). */
|
|
92
|
+
export { useDaemonSettings as useSettings } from './daemon/index.js';
|
|
93
|
+
export { useDaemonProviders as useProviders } from './daemon/index.js';
|
|
94
|
+
/** Workspace context value (file ops, directory listing). */
|
|
95
|
+
export { useDaemonWorkspace as useWorkspace } from './daemon/index.js';
|
|
96
|
+
/** Workspace-level actions (create session, switch model, etc.). */
|
|
97
|
+
export { useDaemonWorkspaceActions as useWorkspaceActions } from './daemon/index.js';
|
|
98
|
+
/** Like `useWorkspace()` but returns null when outside a WorkspaceProvider. */
|
|
99
|
+
export { useOptionalDaemonWorkspace as useOptionalWorkspace } from './daemon/index.js';
|
|
100
|
+
/** Workspace-level event signals (memory/agents/tools/settings/mcp/extensions version counters). */
|
|
101
|
+
export { useDaemonWorkspaceEventSignals as useWorkspaceEventSignals } from './daemon/index.js';
|
|
102
|
+
/** Raw transcript blocks from the SSE stream. For custom message conversion. */
|
|
103
|
+
export { useDaemonTranscriptBlocks as useTranscriptBlocks } from './daemon/session/index.js';
|
|
104
|
+
/** Load older persisted transcript pages for the active session. */
|
|
105
|
+
export { useDaemonTranscriptHistory as useTranscriptHistory } from './daemon/session/index.js';
|
|
106
|
+
/** Full transcript state including block index and progress tracking. */
|
|
107
|
+
export { useDaemonTranscriptState as useTranscriptState } from './daemon/session/index.js';
|
|
108
|
+
/** Direct access to the transcript store (subscribe, getSnapshot). */
|
|
109
|
+
export { useDaemonTranscriptStore as useTranscriptStore } from './daemon/session/index.js';
|
|
110
|
+
/** Headless session-wide turn metadata and historical-page state. */
|
|
111
|
+
export { useDaemonTurnNavigationState as useTurnNavigationState } from './daemon/session/index.js';
|
|
112
|
+
/** Direct access to the session-wide turn navigation external store. */
|
|
113
|
+
export { useDaemonTurnNavigationStore as useTurnNavigationStore } from './daemon/session/index.js';
|
|
114
|
+
/** Low-level prompt lifecycle status (queued, streaming, idle). */
|
|
115
|
+
export { useDaemonPromptStatus as usePromptStatus } from './daemon/session/index.js';
|
|
116
|
+
/** Server-pushed prompt follow-up suggestions for daemon-backed UIs. */
|
|
117
|
+
export { useDaemonFollowupSuggestion } from './daemon/index.js';
|
|
118
|
+
/** Notifies when the daemon drains browser-queued messages into the running turn. */
|
|
119
|
+
export { useDaemonMidTurnInjected } from './daemon/index.js';
|
|
120
|
+
/** Notifies when the daemon's pending prompt queue changes (added/started/completed). */
|
|
121
|
+
export { getPendingPromptVersion, getPendingPromptEvents, consumePendingPromptEvents, subscribePendingPromptEvents, subscribePendingPromptVersion, } from './daemon/index.js';
|
|
122
|
+
/** Ordered list of approval modes for cycling: `['auto', 'suggest', 'ask']`. */
|
|
123
|
+
export { DAEMON_APPROVAL_MODES } from './daemon/index.js';
|
|
124
|
+
/** HTTP statuses that mean the requested daemon session no longer exists. */
|
|
125
|
+
export { isMissingSessionHttpStatus } from './daemon/index.js';
|
|
126
|
+
/** Canonical Agent (sub-agent) tool name + predicate for permission UIs. */
|
|
127
|
+
export { AGENT_TOOL_NAME, isAgentTool } from './constants/toolNames.js';
|
|
128
|
+
export type {
|
|
129
|
+
/** Full connection state: status, session id, models, context, capabilities. */
|
|
130
|
+
DaemonConnectionState,
|
|
131
|
+
/** Connection lifecycle: `'idle' | 'connecting' | 'connected' | 'disconnected' | 'error'`. */
|
|
132
|
+
DaemonConnectionStatus,
|
|
133
|
+
/** Latest main-conversation token usage reported by the daemon. */
|
|
134
|
+
DaemonTokenUsage,
|
|
135
|
+
/** Model descriptor: id, display label, context window size. */
|
|
136
|
+
DaemonModelInfo,
|
|
137
|
+
/** Explicit workspace, standalone, or Live product session context. */
|
|
138
|
+
DaemonProductSessionContext,
|
|
139
|
+
/** Standalone working-directory and create-recovery state. */
|
|
140
|
+
DaemonStandaloneConnectionState,
|
|
141
|
+
/** Classified notice category for host-owned UI routing. */
|
|
142
|
+
DaemonNoticeCategory,
|
|
143
|
+
/** Fine-grained operation associated with a session notice. */
|
|
144
|
+
DaemonNoticeOperation,
|
|
145
|
+
/** Notice severity. */
|
|
146
|
+
DaemonNoticeSeverity,
|
|
147
|
+
/** Slash-command descriptor with name, description, and argument hint. */
|
|
148
|
+
DaemonCommandInfo,
|
|
149
|
+
/** All session-level actions: prompt, cancel, permission, model, session management. */
|
|
150
|
+
DaemonSessionActions,
|
|
151
|
+
/** Internal session context value (store + connection + actions). */
|
|
152
|
+
DaemonSessionContextValue,
|
|
153
|
+
/** Structured session notice emitted outside the transcript. */
|
|
154
|
+
DaemonSessionNotice,
|
|
155
|
+
/** Props accepted by `<DaemonSessionProvider>`. */
|
|
156
|
+
DaemonSessionProviderProps, DaemonTranscriptHistory, DaemonProvisionalTurn, DaemonSelectedTurnState, DaemonTurnIndexPage, DaemonTurnLocation, DaemonTurnNavigationError, DaemonTurnNavigationSnapshot, DaemonTurnNavigationStore, HistoricalTranscriptPage, HistoricalTranscriptRange, TranscriptBoundary,
|
|
157
|
+
/** Streaming lifecycle: `'idle' | 'waiting' | 'responding' | 'thinking'`. */
|
|
158
|
+
DaemonStreamingState,
|
|
159
|
+
/** Prompt submission status: `'idle' | 'waiting' | 'streaming'`. */
|
|
160
|
+
DaemonPromptStatus, DaemonReasoningControls,
|
|
161
|
+
/** Hook return value for daemon follow-up suggestions. */
|
|
162
|
+
UseDaemonFollowupSuggestionReturn,
|
|
163
|
+
/** Image attachment (base64 data + MIME type) for prompt submission. */
|
|
164
|
+
DaemonPromptImage,
|
|
165
|
+
/** Text file attachment (name + text content) for prompt submission. */
|
|
166
|
+
DaemonPromptFile,
|
|
167
|
+
/** Permission approval level: `'plan' | 'default' | 'auto-edit' | 'auto' | 'yolo'`. */
|
|
168
|
+
DaemonApprovalMode, DaemonAuthProviderBaseUrlOption, DaemonAuthProviderCatalog, DaemonAuthProviderDescriptor, DaemonAuthProviderInstallRequest, DaemonAuthProviderInstallResult, DaemonModelProviderRuntimeSyncResult, DaemonAuthProviderModel, DaemonContextCategoryBreakdown, DaemonContextMemoryDetail, DaemonContextSkillDetail, DaemonContextToolDetail, DaemonSessionContextUsage, DaemonSessionContextUsageStatus, DaemonSessionOwnerGuard, DaemonSessionOwnerSnapshot,
|
|
169
|
+
/** Per-model API and token metrics within a stats response. */
|
|
170
|
+
DaemonSessionStatsModelMetrics,
|
|
171
|
+
/** Per-subagent token metrics within a stats response. */
|
|
172
|
+
DaemonSessionStatsSource,
|
|
173
|
+
/** Structured session statistics from `GET /session/:id/stats`. */
|
|
174
|
+
DaemonSessionStatsStatus,
|
|
175
|
+
/** Per-tool call count, success/fail, and duration within a stats response. */
|
|
176
|
+
DaemonSessionStatsToolByName,
|
|
177
|
+
/** Options for pending prompt queue actions scoped to a session. */
|
|
178
|
+
PendingPromptActionOptions,
|
|
179
|
+
/** Options for `sendPrompt()`: optimistic message, image attachments. */
|
|
180
|
+
SendPromptOptions,
|
|
181
|
+
/** Options for non-blocking `submitPrompt()`. */
|
|
182
|
+
SubmitPromptOptions,
|
|
183
|
+
/** Result of non-blocking `submitPrompt()`: the daemon-assigned promptId. */
|
|
184
|
+
SubmitPromptResult, } from './daemon/index.js';
|
|
185
|
+
export type {
|
|
186
|
+
/** Single item in a todo list: id, content, status, priority. */
|
|
187
|
+
DaemonTodoItem,
|
|
188
|
+
/** Complete todo list: title, items, associated tool call block. */
|
|
189
|
+
DaemonTodoList,
|
|
190
|
+
/** Todo priority level: `'low' | 'medium' | 'high'`. */
|
|
191
|
+
DaemonTodoPriority,
|
|
192
|
+
/** Todo item status: `'pending' | 'in_progress' | 'completed'`. */
|
|
193
|
+
DaemonTodoStatus, } from './daemon/index.js';
|
|
194
|
+
export type {
|
|
195
|
+
/** All workspace-level actions: MCP, tools, memory, agents, files, auth. */
|
|
196
|
+
DaemonWorkspaceActions, DaemonChannelPairingActions, DaemonChannelsResource,
|
|
197
|
+
/** Internal workspace context value (client + actions + status + error). */
|
|
198
|
+
DaemonWorkspaceContextValue,
|
|
199
|
+
/** Props accepted by `<DaemonWorkspaceProvider>`. */
|
|
200
|
+
DaemonWorkspaceProviderProps,
|
|
201
|
+
/** Workspace connection lifecycle: `'idle' | 'connecting' | 'connected' | 'error'`. */
|
|
202
|
+
DaemonWorkspaceStatus,
|
|
203
|
+
/** Options for resource hooks: `{ autoLoad?, enabled? }`. */
|
|
204
|
+
DaemonResourceOptions,
|
|
205
|
+
/** Resource fetch result: `{ data, loading, error, reload() }`. */
|
|
206
|
+
ResourceResult,
|
|
207
|
+
/** Resource state snapshot: `{ data, loading, error }`. */
|
|
208
|
+
ResourceState, } from './daemon/index.js';
|
|
209
|
+
export type {
|
|
210
|
+
/** Single entry in a directory listing: name, kind, ignored status. */
|
|
211
|
+
DaemonDirectoryEntry,
|
|
212
|
+
/** Full directory listing: path, entries array, truncation flag. */
|
|
213
|
+
DaemonDirectoryListing,
|
|
214
|
+
/** File metadata: path, type, size, modification time. */
|
|
215
|
+
DaemonFileStat,
|
|
216
|
+
/** Options for glob queries: maxResults, includeIgnored, cwd. */
|
|
217
|
+
DaemonGlobOptions,
|
|
218
|
+
/** Glob match result containing matched file paths. */
|
|
219
|
+
DaemonGlobResult,
|
|
220
|
+
/** One session's active `/goal`, as listed workspace-wide by the daemon. */
|
|
221
|
+
DaemonGoal,
|
|
222
|
+
/** The `GET /goals` payload: the goals plus a count of unreachable sessions. */
|
|
223
|
+
DaemonGoalList,
|
|
224
|
+
/** A durable scheduled task (cron) as returned by the daemon. */
|
|
225
|
+
DaemonScheduledTask,
|
|
226
|
+
/** One recorded fire in a scheduled task's run history. */
|
|
227
|
+
DaemonScheduledTaskRun,
|
|
228
|
+
/** Request body for creating a scheduled task. */
|
|
229
|
+
DaemonCreateScheduledTaskRequest,
|
|
230
|
+
/** Partial-update body for a scheduled task. */
|
|
231
|
+
DaemonUpdateScheduledTaskRequest,
|
|
232
|
+
/** Memory file scope: `'workspace' | 'global'`. */
|
|
233
|
+
DaemonContextFileScope, } from './daemon/index.js';
|
|
234
|
+
export type {
|
|
235
|
+
/** Session list entry: id, title, timestamps, client count, active prompt flag. */
|
|
236
|
+
DaemonSessionSummary,
|
|
237
|
+
/** Daemon status report envelope from `GET /daemon/status`. */
|
|
238
|
+
DaemonStatusReport,
|
|
239
|
+
/** Status report detail level: `'summary' | 'full'`. */
|
|
240
|
+
DaemonStatusReportDetail,
|
|
241
|
+
/** One triage finding in the daemon status rollup. */
|
|
242
|
+
DaemonStatusReportIssue,
|
|
243
|
+
/** Overall daemon health rollup: `'ok' | 'warning' | 'error'`. */
|
|
244
|
+
DaemonStatusReportLevel,
|
|
245
|
+
/** Per-section workspace diagnostics in a `detail=full` report. */
|
|
246
|
+
DaemonStatusReportSection,
|
|
247
|
+
/** Per-session diagnostics row in a `detail=full` report. */
|
|
248
|
+
DaemonStatusReportSession,
|
|
249
|
+
/** One time-bucketed sample in the Daemon Status metrics series (charts). */
|
|
250
|
+
DaemonMetricsSeriesBucket,
|
|
251
|
+
/** Usage-dashboard summary window: `today` | `week` (7D) | `month` (30D). */
|
|
252
|
+
DaemonUsageRange,
|
|
253
|
+
/** Aggregate token-usage dashboard payload (`GET /usage/dashboard`). */
|
|
254
|
+
DaemonUsageDashboard,
|
|
255
|
+
/** Flattened summary totals in the usage dashboard. */
|
|
256
|
+
DaemonUsageDashboardTotals,
|
|
257
|
+
/** One model's token share of the range. */
|
|
258
|
+
DaemonUsageModelShare,
|
|
259
|
+
/** One skill's invocation count over the range. */
|
|
260
|
+
DaemonUsageSkillCall,
|
|
261
|
+
/** One day's tokens + sessions for the daily charts. */
|
|
262
|
+
DaemonUsageDailyPoint,
|
|
263
|
+
/** One heatmap cell: tokens (intensity) + cache-read rate. */
|
|
264
|
+
DaemonUsageHeatmapDay,
|
|
265
|
+
/** Full agent detail including system prompt, tools, and run config. */
|
|
266
|
+
DaemonWorkspaceAgentDetail,
|
|
267
|
+
/** Agent list entry: name, description, level, model, builtin flag. */
|
|
268
|
+
DaemonWorkspaceAgentSummary, DaemonWorkspaceGenerationEvent,
|
|
269
|
+
/** MCP server status: name, transport, connection state, disabled reason. */
|
|
270
|
+
DaemonWorkspaceMcpServerStatus,
|
|
271
|
+
/** Single MCP tool: name, description, JSON schema, validity. */
|
|
272
|
+
DaemonWorkspaceMcpToolStatus,
|
|
273
|
+
/** All tools from a single MCP server. */
|
|
274
|
+
DaemonWorkspaceMcpToolsStatus,
|
|
275
|
+
/** Single MCP resource: uri, name, title, mime type, size, description. */
|
|
276
|
+
DaemonWorkspaceMcpResourceStatus,
|
|
277
|
+
/** All resources from a single MCP server. */
|
|
278
|
+
DaemonWorkspaceMcpResourcesStatus,
|
|
279
|
+
/** Memory file entry: path, scope, byte size. */
|
|
280
|
+
DaemonWorkspaceMemoryFile,
|
|
281
|
+
/** Skill status: name, description, level, model-invocable flag. */
|
|
282
|
+
DaemonWorkspaceSkillStatus,
|
|
283
|
+
/** Registered tool: name, displayName, description, enabled flag. */
|
|
284
|
+
DaemonWorkspaceToolStatus,
|
|
285
|
+
/** Individual setting descriptor returned by GET /workspace/settings. */
|
|
286
|
+
DaemonSettingDescriptor,
|
|
287
|
+
/** Full settings response including schema, values, and warnings. */
|
|
288
|
+
DaemonWorkspaceSettingsStatus,
|
|
289
|
+
/** Result of POST /workspace/settings. */
|
|
290
|
+
DaemonSettingUpdateResult,
|
|
291
|
+
/** Configured model providers returned by GET /workspace/providers. */
|
|
292
|
+
DaemonWorkspaceProvidersStatus, DaemonWorkspaceProviderStatus, DaemonWorkspaceProviderModel, DaemonChannelConfigFieldKind, DaemonChannelConfigFieldDescriptor, DaemonChannelConfigValueFieldDescriptor, DaemonChannelConfigPlainValueFieldDescriptor, DaemonChannelConfigEnumFieldDescriptor, DaemonChannelConfigNumberFieldDescriptor, DaemonChannelConfigObjectFieldDescriptor, DaemonChannelConfigNestedFieldDescriptor, DaemonChannelTypeDescriptor, DaemonChannelTypeCatalog, DaemonChannelRuntimeState, DaemonChannelSecretState, DaemonChannelInstanceSnapshot, DaemonChannelsSnapshot, DaemonChannelSecretUpdate, DaemonRevisionRequest, DaemonChannelUpsertRequest, DaemonChannelStartupRequest, DaemonChannelMutationResult, DaemonChannelPairingRequest, DaemonChannelPairingSubject, DaemonChannelPairingRequestsSnapshot, DaemonChannelPairingApprovalRequest, DaemonChannelPairingApprovalResult, DaemonChannelPairingApprovalsSnapshot, DaemonChannelPairingRevocationRequest, DaemonChannelPairingRevocationResult,
|
|
293
|
+
/** Request/result for DELETE /workspace/models. */
|
|
294
|
+
DaemonModelDeleteRequest, DaemonModelDeleteResult, } from './daemon/index.js';
|
|
295
|
+
export type {
|
|
296
|
+
/** Shell output block: stdout/stderr text stream. */
|
|
297
|
+
DaemonShellTranscriptBlock,
|
|
298
|
+
/** Status/error/debug informational block. */
|
|
299
|
+
DaemonStatusTranscriptBlock,
|
|
300
|
+
/** User, assistant, or thought text block (may be streaming). */
|
|
301
|
+
DaemonTextTranscriptBlock,
|
|
302
|
+
/** Tool invocation block with preview, content, locations. */
|
|
303
|
+
DaemonToolTranscriptBlock,
|
|
304
|
+
/** Discriminated union of all transcript block types. */
|
|
305
|
+
DaemonTranscriptBlock,
|
|
306
|
+
/** Block kind tag: `'user' | 'assistant' | 'thought' | 'tool' | 'shell' | 'permission' | 'status' | 'error' | 'debug'`. */
|
|
307
|
+
DaemonTranscriptBlockKind,
|
|
308
|
+
/** Interactive question block (ask_user_question tool preview). */
|
|
309
|
+
DaemonTranscriptQuestion,
|
|
310
|
+
/** Single option within a transcript question. */
|
|
311
|
+
DaemonTranscriptQuestionOption,
|
|
312
|
+
/** Configuration for the transcript reducer: maxBlocks, initial timestamp. */
|
|
313
|
+
DaemonTranscriptReducerOptions,
|
|
314
|
+
/** Non-chat side state: current tool call, approval mode, progress, resync. */
|
|
315
|
+
DaemonTranscriptSidechannelState,
|
|
316
|
+
/** Full transcript snapshot: blocks array, indexes, active IDs, sidechannel. */
|
|
317
|
+
DaemonTranscriptState,
|
|
318
|
+
/** External store interface: getSnapshot, subscribe, dispatch, reset. */
|
|
319
|
+
DaemonTranscriptStore, } from '@qwen-code/sdk/daemon';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ViewPlugin, EditorView } from '@codemirror/view';
|
|
2
|
+
import type { DecorationSet, ViewUpdate } from '@codemirror/view';
|
|
3
|
+
import type { CommandInfo } from '../adapters/types';
|
|
4
|
+
import type { WebShellLanguage } from '../i18n';
|
|
5
|
+
export declare function buildInputHighlightDecorations(view: EditorView, getCommands: () => CommandInfo[], getLanguage: () => WebShellLanguage): DecorationSet;
|
|
6
|
+
export declare function inputHighlight(getCommands?: () => CommandInfo[], getLanguage?: () => WebShellLanguage): ViewPlugin<{
|
|
7
|
+
decorations: DecorationSet;
|
|
8
|
+
update(update: ViewUpdate): void;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
export declare const inputHighlightTheme: import("@codemirror/state").Extension;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DaemonTranscriptBlock, DaemonTranscriptBlockChangeSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
+
interface AnimationFrameTranscriptSnapshot {
|
|
3
|
+
blocks: readonly DaemonTranscriptBlock[];
|
|
4
|
+
blockChangeSummary?: DaemonTranscriptBlockChangeSummary;
|
|
5
|
+
}
|
|
6
|
+
interface AnimationFrameTranscriptSnapshotOptions {
|
|
7
|
+
structuralOnly?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function useAnimationFrameTranscriptSnapshot(options?: AnimationFrameTranscriptSnapshotOptions): AnimationFrameTranscriptSnapshot;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useAnimationFrameValue<T>(value: T): T;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { RefObject, ReactNode } from 'react';
|
|
2
|
+
import type { StateEffect } from '@codemirror/state';
|
|
3
|
+
import type { EditorView } from '@codemirror/view';
|
|
4
|
+
import type { WebShellAtProvider, WebShellAtProviderTab, WebShellBuiltinAtProvidersConfig, WebShellComposerTag } from '../customization';
|
|
5
|
+
import type { AtMentionItem, AtMentionWorkspaceActions } from './useAtMentionSources';
|
|
6
|
+
export { FILE_PROVIDER_ID, MCP_RESOURCES_PROVIDER_ID, fileReferenceInsertText, sanitizeDisplayText, } from './useAtMentionSources';
|
|
7
|
+
export type { AtMentionItem, AtMentionWorkspaceActions, } from './useAtMentionSources';
|
|
8
|
+
export interface AtMentionProviderView {
|
|
9
|
+
id: string;
|
|
10
|
+
provider: WebShellAtProvider;
|
|
11
|
+
label: ReactNode;
|
|
12
|
+
textValue: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
tabs?: readonly WebShellAtProviderTab[];
|
|
15
|
+
selectedTabId?: string;
|
|
16
|
+
renderItem?: WebShellAtProvider['renderItem'];
|
|
17
|
+
}
|
|
18
|
+
export interface AtMentionMenuState {
|
|
19
|
+
from: number;
|
|
20
|
+
to: number;
|
|
21
|
+
query: string;
|
|
22
|
+
level: 'categories' | 'items';
|
|
23
|
+
selectedProviderId?: string;
|
|
24
|
+
selectedIndex: number;
|
|
25
|
+
providers: AtMentionProviderView[];
|
|
26
|
+
items: AtMentionItem[];
|
|
27
|
+
loading: boolean;
|
|
28
|
+
itemMode?: 'default' | 'mcpServers' | 'mcpResources';
|
|
29
|
+
mcpServerName?: string;
|
|
30
|
+
fileDirectory?: string;
|
|
31
|
+
inputMode?: 'search' | 'context';
|
|
32
|
+
validateMcpServer?: boolean;
|
|
33
|
+
tabs?: readonly WebShellAtProviderTab[];
|
|
34
|
+
selectedTabId?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface UseAtMentionMenuOptions {
|
|
37
|
+
viewRef: RefObject<EditorView | null>;
|
|
38
|
+
disabledRef: RefObject<boolean>;
|
|
39
|
+
shellModeRef: RefObject<boolean>;
|
|
40
|
+
workspaceActionsRef: RefObject<AtMentionWorkspaceActions | undefined>;
|
|
41
|
+
workspaceKey?: string;
|
|
42
|
+
builtinProviders?: WebShellBuiltinAtProvidersConfig;
|
|
43
|
+
providers?: readonly WebShellAtProvider[];
|
|
44
|
+
createInlineTagEffect?: (range: {
|
|
45
|
+
from: number;
|
|
46
|
+
to: number;
|
|
47
|
+
tag: WebShellComposerTag;
|
|
48
|
+
}) => StateEffect<unknown>;
|
|
49
|
+
/**
|
|
50
|
+
* Invoked when the user selects the synthetic "Upload file" item in the
|
|
51
|
+
* file provider. Receives the directory currently being browsed and a
|
|
52
|
+
* callback that re-inserts the mention query removed before the picker
|
|
53
|
+
* opened — call it when the picker closes without an upload so the typed
|
|
54
|
+
* text is not lost. When absent (upload unsupported), the item is hidden.
|
|
55
|
+
*/
|
|
56
|
+
onUploadRequest?: (targetDir: string, restoreQuery?: () => void) => void;
|
|
57
|
+
}
|
|
58
|
+
export declare function useAtMentionMenu({ viewRef, disabledRef, shellModeRef, workspaceActionsRef, workspaceKey, builtinProviders, providers, createInlineTagEffect, onUploadRequest, }: UseAtMentionMenuOptions): {
|
|
59
|
+
state: AtMentionMenuState | null;
|
|
60
|
+
close: (options?: {
|
|
61
|
+
preserveProviderSelection?: boolean;
|
|
62
|
+
}) => void;
|
|
63
|
+
closeIfOpen: () => false | "closed" | "categories";
|
|
64
|
+
refreshForView: (view: EditorView | null) => boolean;
|
|
65
|
+
moveSelection: (direction: "up" | "down") => boolean;
|
|
66
|
+
select: (index: number) => boolean;
|
|
67
|
+
accept: (index?: number) => boolean;
|
|
68
|
+
enterCategory: (index?: number) => boolean;
|
|
69
|
+
selectTab: (tabId: string) => boolean;
|
|
70
|
+
backToCategories: () => false | "items" | "categories";
|
|
71
|
+
updateSearch: (query: string) => boolean;
|
|
72
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { WebShellAtItem, WebShellAtProvider, WebShellBuiltinAtProviderId, WebShellComposerTag } from '../customization';
|
|
2
|
+
type GlobWorkspaceFn = (pattern: string, opts?: {
|
|
3
|
+
maxResults?: number;
|
|
4
|
+
signal?: AbortSignal;
|
|
5
|
+
}) => Promise<{
|
|
6
|
+
matches: string[];
|
|
7
|
+
}>;
|
|
8
|
+
interface ExtensionEntry {
|
|
9
|
+
name: string;
|
|
10
|
+
displayName?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}
|
|
14
|
+
type LoadExtensionsStatusFn = () => Promise<{
|
|
15
|
+
extensions: ExtensionEntry[];
|
|
16
|
+
}>;
|
|
17
|
+
interface DirectoryEntry {
|
|
18
|
+
name: string;
|
|
19
|
+
kind: 'file' | 'directory' | 'symlink' | 'other';
|
|
20
|
+
ignored: boolean;
|
|
21
|
+
}
|
|
22
|
+
type ListDirectoryFn = (dirPath: string, options?: {
|
|
23
|
+
signal?: AbortSignal;
|
|
24
|
+
}) => Promise<{
|
|
25
|
+
kind: 'list';
|
|
26
|
+
path: string;
|
|
27
|
+
entries: DirectoryEntry[];
|
|
28
|
+
truncated: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
interface McpServerEntry {
|
|
31
|
+
kind: 'mcp_server';
|
|
32
|
+
name: string;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
mcpStatus?: string;
|
|
35
|
+
resourceCount?: number;
|
|
36
|
+
description?: string;
|
|
37
|
+
}
|
|
38
|
+
type LoadMcpStatusFn = () => Promise<{
|
|
39
|
+
servers: McpServerEntry[];
|
|
40
|
+
}>;
|
|
41
|
+
type LoadMcpResourcesFn = (serverName: string, options?: {
|
|
42
|
+
signal?: AbortSignal;
|
|
43
|
+
}) => Promise<{
|
|
44
|
+
resources: Array<{
|
|
45
|
+
uri: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
title?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
mimeType?: string;
|
|
50
|
+
size?: number;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
type DirectoryListing = Awaited<ReturnType<ListDirectoryFn>>;
|
|
54
|
+
type GlobWorkspaceResult = Awaited<ReturnType<GlobWorkspaceFn>>;
|
|
55
|
+
type ExtensionsStatus = Awaited<ReturnType<LoadExtensionsStatusFn>>;
|
|
56
|
+
export type McpStatus = Awaited<ReturnType<LoadMcpStatusFn>>;
|
|
57
|
+
type McpResources = Awaited<ReturnType<LoadMcpResourcesFn>>;
|
|
58
|
+
export interface BuiltinProviderCache {
|
|
59
|
+
directories: Map<string, Promise<DirectoryListing>>;
|
|
60
|
+
globResults: Map<string, Promise<GlobWorkspaceResult>>;
|
|
61
|
+
extensionsStatus?: Promise<ExtensionsStatus>;
|
|
62
|
+
mcpStatus?: Promise<McpStatus>;
|
|
63
|
+
mcpResources: Map<string, Promise<McpResources>>;
|
|
64
|
+
}
|
|
65
|
+
export declare function createBuiltinProviderCache(): BuiltinProviderCache;
|
|
66
|
+
export declare function getCached<K, V>(cache: Map<K, Promise<V>>, key: K, load: () => Promise<V>): Promise<V>;
|
|
67
|
+
export interface AtMentionWorkspaceActions {
|
|
68
|
+
globWorkspace?: GlobWorkspaceFn;
|
|
69
|
+
loadExtensionsStatus?: LoadExtensionsStatusFn;
|
|
70
|
+
listDirectory?: ListDirectoryFn;
|
|
71
|
+
loadMcpStatus?: LoadMcpStatusFn;
|
|
72
|
+
loadMcpResources?: LoadMcpResourcesFn;
|
|
73
|
+
}
|
|
74
|
+
export interface AtMentionItem extends WebShellAtItem {
|
|
75
|
+
kind?: 'insert' | 'directory' | 'mcp-server' | 'upload';
|
|
76
|
+
fileKind?: DirectoryEntry['kind'];
|
|
77
|
+
targetPath?: string;
|
|
78
|
+
serverName?: string;
|
|
79
|
+
}
|
|
80
|
+
export declare const ITEM_LIMIT = 50;
|
|
81
|
+
export declare const FILE_ROOT_ITEM_LIMIT: number;
|
|
82
|
+
export declare const FILE_PROVIDER_ID = "files";
|
|
83
|
+
export declare const EXTENSIONS_PROVIDER_ID = "extensions";
|
|
84
|
+
export declare const MCP_RESOURCES_PROVIDER_ID = "mcp-resources";
|
|
85
|
+
export declare const BUILTIN_PROVIDER_IDS: readonly WebShellBuiltinAtProviderId[];
|
|
86
|
+
export declare const SAFE_DISPLAY_FALLBACK = "[invalid]";
|
|
87
|
+
export declare function normalizeDirectoryPath(path: string): string;
|
|
88
|
+
export declare function escapeGlobQuery(query: string): string;
|
|
89
|
+
export declare function fileSearchGlobPattern(query: string): string;
|
|
90
|
+
export declare function matchesQuery(query: string, ...values: Array<string | undefined>): boolean;
|
|
91
|
+
export declare function escapeAtReferenceText(ref: string): string;
|
|
92
|
+
export declare function unescapeAtReferenceText(ref: string): string;
|
|
93
|
+
export declare function splitFileQuery(query: string, fallbackDir: string): {
|
|
94
|
+
dirPath: string;
|
|
95
|
+
entryQuery: string;
|
|
96
|
+
};
|
|
97
|
+
export declare function sanitizeDisplayText(raw: string): string | undefined;
|
|
98
|
+
export declare function sanitizeInsertText(raw: string): string;
|
|
99
|
+
/**
|
|
100
|
+
* Build the composer insert text for a workspace file reference, e.g.
|
|
101
|
+
* `@path/to/file `. Shared by the @ file provider and the file-upload flow so
|
|
102
|
+
* both escape identically (filenames with spaces / non-ASCII / `%` are common).
|
|
103
|
+
*/
|
|
104
|
+
export declare function fileReferenceInsertText(filePath: string): string;
|
|
105
|
+
export declare function safeDisplayText(raw: string | undefined): string;
|
|
106
|
+
export declare function sanitizeAtMentionItem(item: AtMentionItem, options?: {
|
|
107
|
+
customProvider?: boolean;
|
|
108
|
+
}): AtMentionItem;
|
|
109
|
+
export declare function createComposerTagForItem(providerId: string | undefined, item: AtMentionItem, insert: string): WebShellComposerTag | null;
|
|
110
|
+
export declare function createFileProvider(getActions: () => AtMentionWorkspaceActions | undefined, getCurrentDir: () => string, getCache: () => BuiltinProviderCache, label: string, description: string, getUploadItem: () => AtMentionItem | null, browseDirectories?: boolean): WebShellAtProvider;
|
|
111
|
+
export declare function createExtensionProvider(getActions: () => AtMentionWorkspaceActions | undefined, getCache: () => BuiltinProviderCache, label: string, description: string): WebShellAtProvider;
|
|
112
|
+
export declare function createMcpResourcesProvider(getActions: () => AtMentionWorkspaceActions | undefined, getCache: () => BuiltinProviderCache, label: string, description: string, formatResourceCount: (count: number) => string): WebShellAtProvider;
|
|
113
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
|
|
2
|
+
export declare function useBackgroundTasks(sessionId: string | undefined, taskActivityKey: string,
|
|
3
|
+
/**
|
|
4
|
+
* Whether any background task tool call is still running. Passed in as a
|
|
5
|
+
* fact rather than re-parsed out of `taskActivityKey`, whose rendering is
|
|
6
|
+
* not injective (callId is unconstrained text).
|
|
7
|
+
*/
|
|
8
|
+
taskActivityActive: boolean, connected: boolean, refreshTrigger?: number, workflowsEnabled?: boolean): DaemonSessionTaskWithWorkflowStatus[];
|