@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,112 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { DaemonClient, DaemonSessionGroupCatalog } from '@qwen-code/sdk/daemon';
|
|
3
|
+
import type { DaemonSessionGroup, DaemonSessionSummary, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
|
|
4
|
+
import { type WorkspaceOverviewItem, type WorkspaceOverviewSnapshot, type WorkspaceSessionStats } from './workspaceOverviewModel';
|
|
5
|
+
export declare function isAbsolutePath(cwd: string): boolean;
|
|
6
|
+
export interface WorkspaceHeaderActionsContext {
|
|
7
|
+
overview: WorkspaceOverviewSnapshot | undefined;
|
|
8
|
+
/** Current branch from the git poll; null/undefined when not a git repo or not polled. */
|
|
9
|
+
gitBranch: string | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
interface WorkspaceSectionProps {
|
|
12
|
+
workspace: DaemonWorkspaceCapability;
|
|
13
|
+
renderHeader?: (expanded: boolean) => ReactNode;
|
|
14
|
+
client: DaemonClient;
|
|
15
|
+
reloadToken: number;
|
|
16
|
+
untrustedLabel: string;
|
|
17
|
+
readOnlyLabel: string;
|
|
18
|
+
trustToOpenLabel: string;
|
|
19
|
+
noSessionsLabel: string;
|
|
20
|
+
loadErrorLabel: string;
|
|
21
|
+
organizationEnabled: boolean;
|
|
22
|
+
sessionCatalogRequestsEnabled?: boolean;
|
|
23
|
+
sessionGroupCatalog?: DaemonSessionGroupCatalog;
|
|
24
|
+
sessionLiveStateEnabled?: boolean;
|
|
25
|
+
sourceType?: string;
|
|
26
|
+
channelGroupingEnabled?: boolean;
|
|
27
|
+
ungroupedLabel: string;
|
|
28
|
+
searchQuery?: string;
|
|
29
|
+
expanded?: boolean;
|
|
30
|
+
autoExpandKey?: string;
|
|
31
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
32
|
+
renderSessions?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Render one session row. The sidebar passes its shared `renderSessionRow`
|
|
35
|
+
* so per-workspace sessions match the single-workspace list exactly — same
|
|
36
|
+
* type scale, hover actions (pin, archive, export, more…), and states —
|
|
37
|
+
* instead of a bespoke, feature-poor row. `options.searchSnippet` carries
|
|
38
|
+
* the content-search excerpt for sessions matched on message text.
|
|
39
|
+
*/
|
|
40
|
+
renderSession: (session: DaemonSessionSummary, options?: {
|
|
41
|
+
searchSnippet?: string | undefined;
|
|
42
|
+
}) => ReactNode;
|
|
43
|
+
mapSession?: (session: DaemonSessionSummary) => DaemonSessionSummary;
|
|
44
|
+
showSessionDetails?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Hover-revealed actions at the right edge of the folder header. Receives
|
|
47
|
+
* the workspace's overview snapshot — undefined until the first fetch or
|
|
48
|
+
* when the overview is disabled; the last fetched one while its consumers
|
|
49
|
+
* are closed — so a menu can show counts, and the polled git branch
|
|
50
|
+
* so git-only actions can be withheld from non-git workspaces.
|
|
51
|
+
*/
|
|
52
|
+
headerActions?: (visible: boolean, context: WorkspaceHeaderActionsContext) => ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Show a details popover on hover with the full path, git branch, session
|
|
55
|
+
* counts and facet counts (MCP, skills, …). Off by default so embedders
|
|
56
|
+
* that render their own header keep today's layout. Facets are fetched
|
|
57
|
+
* only while the details or header menu is open and the workspace is trusted.
|
|
58
|
+
*/
|
|
59
|
+
overviewEnabled?: boolean;
|
|
60
|
+
overviewItems?: readonly WorkspaceOverviewItem[];
|
|
61
|
+
/** Whether the header menu is consuming workspace metadata. */
|
|
62
|
+
overviewMenuOpen?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* A header action reads the polled git branch (the worktree entry), so the
|
|
65
|
+
* poll runs while the menu is open. Off when no consumer
|
|
66
|
+
* of `gitBranch` is wired.
|
|
67
|
+
*/
|
|
68
|
+
gitBranchWanted?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Session counts for the hover popover. The primary workspace's sessions
|
|
71
|
+
* are listed by the sidebar itself, so it passes them in; other workspaces
|
|
72
|
+
* count their own catalog page. `null` means the parent owns the counts
|
|
73
|
+
* but has no page yet (a source switch in flight): show none rather than
|
|
74
|
+
* the previous source's numbers.
|
|
75
|
+
*/
|
|
76
|
+
sessionStats?: WorkspaceSessionStats | null;
|
|
77
|
+
onRenameGroup?: (group: DaemonSessionGroup, workspaceCwd: string) => void;
|
|
78
|
+
onDeleteGroup?: (group: DaemonSessionGroup, workspaceCwd: string) => void;
|
|
79
|
+
renameGroupLabel?: string;
|
|
80
|
+
deleteGroupLabel?: string;
|
|
81
|
+
groupActionsDisabled?: boolean;
|
|
82
|
+
excludePinned?: boolean;
|
|
83
|
+
limitSessions?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the sidebar-level Pinned section renders this session. Pinned
|
|
86
|
+
* rows have one owner: a pinned content-search ghost is kept in this
|
|
87
|
+
* list only when the Pinned section does not carry it.
|
|
88
|
+
*/
|
|
89
|
+
isPinnedSectionMember?: (session: DaemonSessionSummary) => boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Open the workspace folder in the daemon host's file manager. Wired only
|
|
92
|
+
* when the daemon advertises `workspace_local_open` and the client is on
|
|
93
|
+
* the same machine; the hover popover's path row shows the button then.
|
|
94
|
+
*/
|
|
95
|
+
onOpenPathLocally?: (cwd: string) => Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Open a terminal at the workspace path on the daemon host. Wired only
|
|
98
|
+
* when the daemon advertises `workspace_local_terminal` and the client is
|
|
99
|
+
* on the same machine.
|
|
100
|
+
*/
|
|
101
|
+
onOpenTerminalLocally?: (cwd: string) => Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Open the working-tree Changes dialog for this workspace. When wired, the
|
|
104
|
+
* hover popover's branch row becomes the trigger for that workspace's Git
|
|
105
|
+
* picker; without it the row stays a plain-text summary.
|
|
106
|
+
*/
|
|
107
|
+
onOpenGitDiff?: (workspaceCwd: string) => void;
|
|
108
|
+
/** Commit entry for the same picker; the row still opens without it. */
|
|
109
|
+
onOpenCommit?: (workspaceCwd: string) => void;
|
|
110
|
+
}
|
|
111
|
+
export declare function WorkspaceSection({ workspace, renderHeader, client, reloadToken, untrustedLabel, readOnlyLabel, trustToOpenLabel, noSessionsLabel, loadErrorLabel, organizationEnabled, sessionCatalogRequestsEnabled, sessionGroupCatalog, sessionLiveStateEnabled, sourceType, channelGroupingEnabled, ungroupedLabel, searchQuery, expanded: controlledExpanded, autoExpandKey, onExpandedChange, renderSessions, renderSession, mapSession, showSessionDetails, headerActions, overviewEnabled, overviewMenuOpen, overviewItems, gitBranchWanted, sessionStats, onRenameGroup, onDeleteGroup, renameGroupLabel, deleteGroupLabel, groupActionsDisabled, excludePinned, limitSessions, isPinnedSectionMember, onOpenPathLocally, onOpenTerminalLocally, onOpenGitDiff, onOpenCommit, }: WorkspaceSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DaemonChannelInstanceSnapshot, DaemonChannelTypeCatalog, DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
+
export interface ChannelSessionGroup {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
sessions: DaemonSessionSummary[];
|
|
6
|
+
}
|
|
7
|
+
export declare function groupSessionsByChannelType(sessions: readonly DaemonSessionSummary[], catalog: DaemonChannelTypeCatalog, instances: Readonly<Record<string, DaemonChannelInstanceSnapshot>>, otherLabel: string): ChannelSessionGroup[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared localStorage helpers for Web Shell session-organization collapse
|
|
3
|
+
* state. Primary sidebar and per-workspace sections both write into one app
|
|
4
|
+
* key so preferences survive reload without competing overwrites.
|
|
5
|
+
*
|
|
6
|
+
* Id conventions:
|
|
7
|
+
* - Primary catalog: `group:<id>`, `recent`, `color:<name>`,
|
|
8
|
+
* `scheduled-task:<taskId>`, `channel-type:<type>`
|
|
9
|
+
* - Workspace-scoped: `ws:<workspaceId>|group:<id>` (including automatic
|
|
10
|
+
* scheduled-task ids), `ws:<workspaceId>|ungrouped`
|
|
11
|
+
*/
|
|
12
|
+
export declare const COLLAPSED_SESSION_SECTIONS_STORAGE_KEY = "qwen-code-web-shell-collapsed-session-groups";
|
|
13
|
+
export declare function isPrimaryCollapsedSectionId(id: string): boolean;
|
|
14
|
+
export declare function workspaceGroupSectionId(workspaceId: string, groupId: string): string;
|
|
15
|
+
export declare function workspaceUngroupedSectionId(workspaceId: string): string;
|
|
16
|
+
export declare function isWorkspaceCollapsedSectionId(workspaceId: string, id: string): boolean;
|
|
17
|
+
export declare function readCollapsedSessionSectionIds(): Set<string>;
|
|
18
|
+
export declare function writeCollapsedSessionSectionIds(ids: ReadonlySet<string>): void;
|
|
19
|
+
/**
|
|
20
|
+
* Replace one owner's subset of collapsed ids while preserving other owners
|
|
21
|
+
* (primary vs per-workspace), so parallel writers do not clobber each other.
|
|
22
|
+
*/
|
|
23
|
+
export declare function replaceOwnedCollapsedSessionSectionIds(ownedIds: ReadonlySet<string>, isOwned: (id: string) => boolean): void;
|
|
24
|
+
export declare function readWorkspaceCollapsedGroupIds(workspaceId: string): Set<string>;
|
|
25
|
+
export declare function writeWorkspaceCollapsedGroupIds(workspaceId: string, localIds: ReadonlySet<string>): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
+
export interface ScheduledTaskSessionGroupIdentity {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ScheduledTaskSessionSection {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
sessions: DaemonSessionSummary[];
|
|
10
|
+
}
|
|
11
|
+
export declare function getScheduledTaskSessionGroup(session: DaemonSessionSummary): ScheduledTaskSessionGroupIdentity | undefined;
|
|
12
|
+
export declare function collectScheduledTaskSession(sections: Map<string, ScheduledTaskSessionSection>, session: DaemonSessionSummary): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function resolveSessionDetailsCollisionBoundary(anchor: HTMLElement | null): HTMLElement | null;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
7
|
+
export declare function sessionMatchesGitQuery(session: DaemonSessionSummary, query: string): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The sidebar's session-source scope: the "channel" tab lists only
|
|
10
|
+
* channel-source sessions, the "default" tab lists unattributed (legacy)
|
|
11
|
+
* and default/Qwen Live tasks, and no filter lists everything.
|
|
12
|
+
*/
|
|
13
|
+
export declare function sessionMatchesSource(session: DaemonSessionSummary, source: string | undefined): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Merges daemon transcript-content search hits into the local title/id/git
|
|
16
|
+
* matches, in place of the previously duplicated inline merges in
|
|
17
|
+
* WebShellSidebar and WorkspaceSection. Local matches come first (catalog
|
|
18
|
+
* order), then content hits in server (recency) order. Hits the loaded
|
|
19
|
+
* catalog carries keep their catalog entry — it holds the live state the
|
|
20
|
+
* persisted-only search summary lacks; `seen` dedupes sessions matched by
|
|
21
|
+
* both paths; uncatalogued ("ghost") hits are dropped when they fall
|
|
22
|
+
* outside the `source` scope, and pass through `mapSession` (the
|
|
23
|
+
* optimistic-pin overlay) like every other rendered session.
|
|
24
|
+
*/
|
|
25
|
+
export declare function mergeSessionContentHits(scopedSessions: readonly DaemonSessionSummary[], localMatches: readonly DaemonSessionSummary[], hits: ReadonlyMap<string, {
|
|
26
|
+
session: DaemonSessionSummary;
|
|
27
|
+
snippet: string;
|
|
28
|
+
}>, source: string | undefined, mapSession?: (session: DaemonSessionSummary) => DaemonSessionSummary): DaemonSessionSummary[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Measures the title inside `row` and refreshes the hover-scroll CSS
|
|
3
|
+
* variables plus the overflow flag that gates the right-edge fade mask.
|
|
4
|
+
* Rows call this on every pointer entry so a renamed or resized label never
|
|
5
|
+
* animates with a stale distance.
|
|
6
|
+
*/
|
|
7
|
+
export declare function measureSessionTitleScroll(row: HTMLElement): void;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Cmd+B (macOS) / Ctrl+B toggles the session sidebar (#5074), mirroring the
|
|
8
|
+
* convention editors like VS Code use. Plain modifier+B only: Shift/Alt
|
|
9
|
+
* variants stay available to the browser and other bindings, and
|
|
10
|
+
* Cmd+Ctrl combined presses are rejected as ambiguous.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isSidebarToggleShortcut(event: {
|
|
13
|
+
key: string;
|
|
14
|
+
metaKey: boolean;
|
|
15
|
+
ctrlKey: boolean;
|
|
16
|
+
altKey: boolean;
|
|
17
|
+
shiftKey: boolean;
|
|
18
|
+
}): boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonClient, DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
7
|
+
export interface SessionContentSearchHit {
|
|
8
|
+
session: DaemonSessionSummary;
|
|
9
|
+
snippet: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Debounced conversation-content search behind the sidebar session search
|
|
13
|
+
* box. Local title/id/git matching stays the client-side fast path; this
|
|
14
|
+
* hook asks the daemon to scan persisted transcripts and returns the hits —
|
|
15
|
+
* including sessions not yet loaded into the catalog, with a snippet of the
|
|
16
|
+
* matched message — keyed by session id in server (recency) order. Any
|
|
17
|
+
* request failure (including a 404 from a daemon too old to serve the
|
|
18
|
+
* route) degrades to local-only filtering.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useSessionContentSearch(client: DaemonClient | undefined, workspaceCwd: string | undefined, query: string, invalidationKey?: number | string): ReadonlyMap<string, SessionContentSearchHit>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonClient } from '@qwen-code/sdk/daemon';
|
|
7
|
+
import { type WorkspaceOverviewItem, type WorkspaceOverviewSnapshot } from './workspaceOverviewModel';
|
|
8
|
+
/**
|
|
9
|
+
* Overview facets change on the order of minutes (a server reconnects, a
|
|
10
|
+
* skill is installed); the git chip already polls at 60s. 30s keeps a
|
|
11
|
+
* reconnect visible within one glance without turning N expanded workspaces
|
|
12
|
+
* into a request storm.
|
|
13
|
+
*/
|
|
14
|
+
export declare const WORKSPACE_OVERVIEW_POLL_MS = 30000;
|
|
15
|
+
/**
|
|
16
|
+
* A facet keeps its last known value across this many consecutive rounds
|
|
17
|
+
* that did not answer for it, then reads as unavailable. Three rounds is a
|
|
18
|
+
* blip's worth (about 90 s at the default cadence), not a rollback's.
|
|
19
|
+
*/
|
|
20
|
+
export declare const WORKSPACE_OVERVIEW_MAX_MISSES = 3;
|
|
21
|
+
export interface UseWorkspaceOverviewOptions {
|
|
22
|
+
/** Fetch only while true; false clears the snapshot and stops polling. */
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
items?: readonly WorkspaceOverviewItem[];
|
|
25
|
+
/** Bump to force a refetch (the sidebar's reload token). */
|
|
26
|
+
reloadToken?: number;
|
|
27
|
+
pollIntervalMs?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface WorkspaceOverviewResult {
|
|
30
|
+
overview: WorkspaceOverviewSnapshot | undefined;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Fetch every requested facet for one workspace. Facets fail independently:
|
|
34
|
+
* a daemon that predates one of the routes, or a transient error on one call,
|
|
35
|
+
* leaves that facet `undefined` and the others intact. Calls are deferred to
|
|
36
|
+
* a microtask so a client whose handle lacks a method (older SDK, test
|
|
37
|
+
* double) rejects instead of throwing synchronously out of the hook.
|
|
38
|
+
*/
|
|
39
|
+
export declare function fetchWorkspaceOverview(client: DaemonClient, workspaceCwd: string, items: ReadonlySet<WorkspaceOverviewItem>): Promise<WorkspaceOverviewSnapshot>;
|
|
40
|
+
export declare function useWorkspaceOverview(client: DaemonClient, workspaceCwd: string | undefined, { enabled, items, reloadToken, pollIntervalMs, }: UseWorkspaceOverviewOptions): WorkspaceOverviewResult;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function hasWorkspaceExpansionPreference(id: string): boolean;
|
|
2
|
+
export declare function readWorkspaceExpanded(id: string): boolean;
|
|
3
|
+
export declare function writeWorkspaceExpanded(id: string, expanded: boolean): void;
|
|
4
|
+
export declare function migrateWorkspaceExpansionPreference(previousId: string, nextId: string): void;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonChannelsSnapshot, DaemonMcpDiscoveryState, DaemonSessionSummary, DaemonWorkspaceHooksStatus, DaemonWorkspaceMcpStatus, DaemonWorkspaceMemoryStatus, DaemonWorkspaceSkillsStatus, WorkspaceExtensionProjection } from '@qwen-code/sdk/daemon';
|
|
7
|
+
import type { useI18n } from '../../i18n';
|
|
8
|
+
type Translate = ReturnType<typeof useI18n>['t'];
|
|
9
|
+
/**
|
|
10
|
+
* Facets the sidebar can summarize per workspace. Each maps to one
|
|
11
|
+
* workspace-qualified daemon route; the order here is the chip order.
|
|
12
|
+
*/
|
|
13
|
+
export declare const WORKSPACE_OVERVIEW_ITEMS: readonly ["mcp", "skills", "extensions", "channels", "context", "hooks"];
|
|
14
|
+
export type WorkspaceOverviewItem = (typeof WORKSPACE_OVERVIEW_ITEMS)[number];
|
|
15
|
+
/** Hooks are opt-in: most workspaces have none and the chip would only add noise. */
|
|
16
|
+
export declare const DEFAULT_WORKSPACE_OVERVIEW_ITEMS: readonly WorkspaceOverviewItem[];
|
|
17
|
+
/** Management pages a workspace row can open for itself. */
|
|
18
|
+
export type WorkspaceManagementTarget = 'mcp' | 'skills' | 'extensions' | 'channels' | 'settings';
|
|
19
|
+
export interface WorkspaceSessionStats {
|
|
20
|
+
/** Sessions in the list the stats were computed from. */
|
|
21
|
+
total: number;
|
|
22
|
+
/** Sessions with a prompt in flight. */
|
|
23
|
+
running: number;
|
|
24
|
+
/** Sessions blocked on the user (permission, question, other interaction). */
|
|
25
|
+
attention: number;
|
|
26
|
+
/** The list was one page of a longer catalog, so `total` is a lower bound. */
|
|
27
|
+
truncated: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare function summarizeSessions(sessions: readonly DaemonSessionSummary[], truncated?: boolean): WorkspaceSessionStats;
|
|
30
|
+
/**
|
|
31
|
+
* MCP, skills, context files and hooks are discovered by the workspace's ACP
|
|
32
|
+
* child. While no child is live the daemon answers with an idle placeholder
|
|
33
|
+
* (`initialized: false`, empty lists); that placeholder must render as
|
|
34
|
+
* "unknown", never as zero.
|
|
35
|
+
*/
|
|
36
|
+
export interface WorkspaceMcpSummary {
|
|
37
|
+
initialized: boolean;
|
|
38
|
+
discoveryState?: DaemonMcpDiscoveryState;
|
|
39
|
+
configured: number;
|
|
40
|
+
connected: number;
|
|
41
|
+
/** Enabled servers the runtime reports as errored. */
|
|
42
|
+
failed: number;
|
|
43
|
+
disabled: number;
|
|
44
|
+
}
|
|
45
|
+
export declare function summarizeMcp(status: DaemonWorkspaceMcpStatus): WorkspaceMcpSummary;
|
|
46
|
+
export interface WorkspaceSkillsSummary {
|
|
47
|
+
initialized: boolean;
|
|
48
|
+
total: number;
|
|
49
|
+
enabled: number;
|
|
50
|
+
}
|
|
51
|
+
export declare function summarizeSkills(status: DaemonWorkspaceSkillsStatus): WorkspaceSkillsSummary;
|
|
52
|
+
export interface WorkspaceExtensionsSummary {
|
|
53
|
+
total: number;
|
|
54
|
+
active: number;
|
|
55
|
+
}
|
|
56
|
+
export declare function summarizeExtensions(projection: WorkspaceExtensionProjection): WorkspaceExtensionsSummary;
|
|
57
|
+
export interface WorkspaceChannelsSummary {
|
|
58
|
+
configured: number;
|
|
59
|
+
/** Instances whose worker is connected (fully or partially). */
|
|
60
|
+
connected: number;
|
|
61
|
+
failed: number;
|
|
62
|
+
}
|
|
63
|
+
export declare function summarizeChannels(snapshot: DaemonChannelsSnapshot): WorkspaceChannelsSummary;
|
|
64
|
+
/**
|
|
65
|
+
* Context files are read from disk by the daemon itself (no ACP child), so
|
|
66
|
+
* the route always answers definitively: `initialized: false` is its way of
|
|
67
|
+
* saying no context file exists, and renders as a count of 0.
|
|
68
|
+
*/
|
|
69
|
+
export interface WorkspaceContextSummary {
|
|
70
|
+
initialized: boolean;
|
|
71
|
+
fileCount: number;
|
|
72
|
+
ruleCount: number;
|
|
73
|
+
}
|
|
74
|
+
export declare function summarizeContext(status: DaemonWorkspaceMemoryStatus): WorkspaceContextSummary;
|
|
75
|
+
export interface WorkspaceHooksSummary {
|
|
76
|
+
initialized: boolean;
|
|
77
|
+
count: number;
|
|
78
|
+
disabled: boolean;
|
|
79
|
+
}
|
|
80
|
+
export declare function summarizeHooks(status: DaemonWorkspaceHooksStatus): WorkspaceHooksSummary;
|
|
81
|
+
/**
|
|
82
|
+
* One workspace's facet summaries. A facet is `undefined` when it was not
|
|
83
|
+
* requested or its fetch failed (older daemon without the route, network
|
|
84
|
+
* blip); the hook keeps the previous value of a facet across a transient
|
|
85
|
+
* failure so a chip does not blank for a whole poll interval.
|
|
86
|
+
*/
|
|
87
|
+
export interface WorkspaceOverviewSnapshot {
|
|
88
|
+
mcp?: WorkspaceMcpSummary;
|
|
89
|
+
skills?: WorkspaceSkillsSummary;
|
|
90
|
+
extensions?: WorkspaceExtensionsSummary;
|
|
91
|
+
channels?: WorkspaceChannelsSummary;
|
|
92
|
+
context?: WorkspaceContextSummary;
|
|
93
|
+
hooks?: WorkspaceHooksSummary;
|
|
94
|
+
fetchedAt: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Facets the workspace's ACP child discovers, which stay unknown until it
|
|
98
|
+
* reports; extensions, channels and context files are answered by the daemon
|
|
99
|
+
* itself and are known as soon as the route responds.
|
|
100
|
+
*/
|
|
101
|
+
export declare function isRuntimeDiscoveredFacet(item: WorkspaceOverviewItem): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Whether a facet carries a countable value. Runtime-discovered facets are
|
|
104
|
+
* unknown until the ACP child reports `initialized`; the rest are known as
|
|
105
|
+
* soon as the daemon answers.
|
|
106
|
+
*/
|
|
107
|
+
export declare function isOverviewFacetKnown(snapshot: WorkspaceOverviewSnapshot | undefined, item: WorkspaceOverviewItem): boolean;
|
|
108
|
+
/** Facets that warrant the warning tone on their chip. */
|
|
109
|
+
export declare function overviewFacetHasIssue(snapshot: WorkspaceOverviewSnapshot | undefined, item: WorkspaceOverviewItem): boolean;
|
|
110
|
+
/** Remove facets whose carry-over has expired, keeping everything else. */
|
|
111
|
+
export declare function dropExpiredFacets(snapshot: WorkspaceOverviewSnapshot, expired: ReadonlySet<WorkspaceOverviewItem>): WorkspaceOverviewSnapshot;
|
|
112
|
+
/**
|
|
113
|
+
* Merge a fresh snapshot over the previous one, keeping a facet's last known
|
|
114
|
+
* value when the new round did not answer for it — unless the facet is in
|
|
115
|
+
* `expired`: a route that keeps failing (an older daemon after a rollback)
|
|
116
|
+
* must eventually show as unavailable instead of a frozen count.
|
|
117
|
+
*/
|
|
118
|
+
export declare function mergeOverviewSnapshots(previous: WorkspaceOverviewSnapshot | undefined, next: WorkspaceOverviewSnapshot, requested: ReadonlySet<WorkspaceOverviewItem>, expired?: ReadonlySet<WorkspaceOverviewItem>): WorkspaceOverviewSnapshot;
|
|
119
|
+
/** The short value printed for a facet, or `undefined` while it is unknown. */
|
|
120
|
+
export declare function formatOverviewValue(snapshot: WorkspaceOverviewSnapshot | undefined, item: WorkspaceOverviewItem): string | undefined;
|
|
121
|
+
/** The long form of a facet's value, used as the tooltip row's title. */
|
|
122
|
+
export declare function overviewDetail(t: Translate, snapshot: WorkspaceOverviewSnapshot, item: WorkspaceOverviewItem): string;
|
|
123
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DaemonSkillInstallRequest } from '@qwen-code/sdk/daemon';
|
|
2
|
+
interface SkillInstallDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
onInstall: (request: DaemonSkillInstallRequest) => Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
export declare function SkillInstallDialog({ open, onOpenChange, onInstall, }: SkillInstallDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { EmbeddedManagerPage } from '../plugins/manager-page';
|
|
3
|
+
interface SkillsManagerPageProps {
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onUseSkill: (name: string) => void;
|
|
6
|
+
embedded?: EmbeddedManagerPage;
|
|
7
|
+
workspaceCwd?: string;
|
|
8
|
+
workspaceControl?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare function SkillsManagerPage({ onClose, onUseSkill, embedded, workspaceCwd, workspaceControl, }: SkillsManagerPageProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { DaemonWorkspaceSkillStatus } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
export type SkillLevelFilter = 'all' | DaemonWorkspaceSkillStatus['level'];
|
|
3
|
+
export type SkillStatusFilter = 'all' | 'enabled' | 'disabled';
|
|
4
|
+
export declare function skillExtensionLabel(skill: DaemonWorkspaceSkillStatus): string;
|
|
5
|
+
export declare function filterSkills(skills: readonly DaemonWorkspaceSkillStatus[], query: string, level?: SkillLevelFilter, status?: SkillStatusFilter): DaemonWorkspaceSkillStatus[];
|
|
6
|
+
export declare function preserveSkillSelection(name: string | null, skills: readonly DaemonWorkspaceSkillStatus[]): string | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DaemonSessionAttachmentReference, SessionSource } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { WebShellSource, WebShellSourceReference } from '../../customization';
|
|
3
|
+
import type { Message } from '../../adapters/types';
|
|
4
|
+
export declare function sourceKey(entry: WebShellSource): string;
|
|
5
|
+
export declare function sourceTitle(entry: WebShellSource): string;
|
|
6
|
+
export declare function sourceLocation(entry: WebShellSource): string;
|
|
7
|
+
export declare function getSourceEntries(sources: readonly SessionSource[], attachments: readonly DaemonSessionAttachmentReference[]): WebShellSource[];
|
|
8
|
+
export declare function getSourcesByTurn(messages: readonly Message[], entries: readonly WebShellSource[], workspaceCwd: string | undefined, sessionId: string | undefined, references?: readonly WebShellSourceReference[]): ReadonlyMap<string, readonly WebShellSource[]>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Synthetic ids for compact-mode aggregated tool runs.
|
|
3
|
+
* `mergeCompactToolGroups` builds them via `summaryRunId`; render paths detect
|
|
4
|
+
* them through the shared predicate so the prefix scheme lives in one place.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SUMMARY_RUN_ID_PREFIX = "summary-";
|
|
7
|
+
export declare const summaryRunId: (firstMemberId: string) => string;
|
|
8
|
+
export declare const isSummaryRunId: (id: string) => boolean;
|
|
9
|
+
export declare const summaryRunFirstMemberId: (id: string) => string | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import '@xterm/xterm/css/xterm.css';
|
|
7
|
+
interface TerminalPanelProps {
|
|
8
|
+
/** Stable id shared with the backend PTY session; reconnects reuse it. */
|
|
9
|
+
terminalId: string;
|
|
10
|
+
cwd?: string;
|
|
11
|
+
active?: boolean;
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function releaseWebTerminal(terminalId: string): void;
|
|
15
|
+
export declare function releaseDetachedWebTerminal(baseUrl: string, terminalId: string, cwd?: string): void;
|
|
16
|
+
export declare function TerminalPanel({ terminalId, cwd, active, enabled, }: TerminalPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface ToolbarDropdownItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
searchText?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function filterToolbarDropdownItems<T extends ToolbarDropdownItem>(items: readonly T[], query: string): T[];
|
|
7
|
+
export declare function getToolbarItemVisibility({ availableWidth, items, }: {
|
|
8
|
+
availableWidth: number;
|
|
9
|
+
items: ReadonlyArray<{
|
|
10
|
+
id: string;
|
|
11
|
+
expansionWidth: number;
|
|
12
|
+
ready?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
}): Record<string, boolean>;
|
|
15
|
+
export declare function getToolbarItemVisibilityWithHysteresis({ availableWidth, items, currentVisibility, expansionMargin, }: {
|
|
16
|
+
availableWidth: number;
|
|
17
|
+
items: ReadonlyArray<{
|
|
18
|
+
id: string;
|
|
19
|
+
expansionWidth: number;
|
|
20
|
+
ready?: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
currentVisibility: Readonly<Record<string, boolean>>;
|
|
23
|
+
expansionMargin: number;
|
|
24
|
+
}): Record<string, boolean>;
|
|
25
|
+
export declare function getToolbarExpansionBudget({ toolbarWidth, leadingWidth, rightWidth, currentExpansionWidth, gap, }: {
|
|
26
|
+
toolbarWidth: number;
|
|
27
|
+
leadingWidth: number;
|
|
28
|
+
rightWidth: number;
|
|
29
|
+
currentExpansionWidth: number;
|
|
30
|
+
gap: number;
|
|
31
|
+
}): number;
|
|
32
|
+
export declare function resolveToolbarModelLabel({ currentModelLabel, lastConfirmedModelLabel, }: {
|
|
33
|
+
currentModelLabel: string;
|
|
34
|
+
lastConfirmedModelLabel: string;
|
|
35
|
+
}): {
|
|
36
|
+
modelLabel: string;
|
|
37
|
+
modelLabelReady: boolean;
|
|
38
|
+
nextConfirmedModelLabel: string;
|
|
39
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
|
|
3
|
+
import { Button } from '@/components/ui/button';
|
|
4
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function AlertDialogPortal({ container, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
type AlertDialogContentProps = React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
9
|
+
size?: 'default' | 'sm' | 'middle';
|
|
10
|
+
};
|
|
11
|
+
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const alertVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "success" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function AlertAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Alert, AlertTitle, AlertDescription, AlertAction };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
declare function Breadcrumb({ className, ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
type ButtonProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
declare function Card({ className, size, ...props }: React.ComponentProps<'div'> & {
|
|
3
|
+
size?: 'default' | 'sm';
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Checkbox as CheckboxPrimitive } from 'radix-ui';
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
export { Checkbox };
|