@mcp-use/inspector 20.0.0-beta.5 → 20.0.0-beta.50
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 +31 -78
- package/dist/app/inspector.css.gz +0 -0
- package/dist/app/inspector.js.gz +0 -0
- package/dist/app/providers/anthropic.png +0 -0
- package/dist/app/providers/google.png +0 -0
- package/dist/app/providers/openai.png +0 -0
- package/dist/cli.js +332 -1384
- package/dist/client/index.d.ts +1405 -50
- package/dist/client/index.js +165 -24019
- package/dist/server/index.d.ts +79 -7
- package/dist/server/index.js +370 -22
- package/package.json +77 -35
- package/dist/cdn/AnimatePresence-Dcw-FOy8.js +0 -393
- package/dist/cdn/ChatTab-B255lH5i.js +0 -6744
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/ConnectionSettingsForm-DF-NS58d.js +0 -929
- package/dist/cdn/ConnectionSettingsTab-dI-Cqe79.js +0 -150
- package/dist/cdn/ElicitationTab-CL1KJ0bz.js +0 -654
- package/dist/cdn/FormContext-tmgN_Vdr.js +0 -135
- package/dist/cdn/InspectorContext-UjtEbNod.js +0 -123
- package/dist/cdn/JSONDisplay-BFxf5oEu.js +0 -324
- package/dist/cdn/ListTabHeader-Cv-GmtGF.js +0 -88
- package/dist/cdn/ManufactOAuthCallback-B98kSYCj.js +0 -31
- package/dist/cdn/MarkdownRenderer-Ba7nA4Ie.js +0 -3610
- package/dist/cdn/NotificationsTab-CeImSrhx.js +0 -290
- package/dist/cdn/OAuthCallback-Blc2Asxc.js +0 -58
- package/dist/cdn/PromptsTab-BYKnY7Rp.js +0 -901
- package/dist/cdn/ResourcesTab-BGualKW-.js +0 -564
- package/dist/cdn/SamplingTab-BeZBUeni.js +0 -658
- package/dist/cdn/ServerMetadataTab-CvrKX8fz.js +0 -244
- package/dist/cdn/StatusIcon-D0-ARyOh.js +0 -66
- package/dist/cdn/ToolsTab-j6n4O_3s.js +0 -2033
- package/dist/cdn/ViewPreview-DihyG6Qd.js +0 -238
- package/dist/cdn/WidgetDebugContext-D4usL_MA.js +0 -324
- package/dist/cdn/WidgetWrapper-B4H3Fek7.js +0 -2210
- package/dist/cdn/basePath-B8HuhIMu.js +0 -25
- package/dist/cdn/bell-CGjAO_0s.js +0 -10
- package/dist/cdn/browser-CbQIH4w2.js +0 -42
- package/dist/cdn/brush-B_mKhyxG.js +0 -17
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
- package/dist/cdn/checkbox-By0FklhG.js +0 -20
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
- package/dist/cdn/clock-CmUbSx_B.js +0 -12
- package/dist/cdn/code-V_0nf5rg.js +0 -10
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/dialog-BsDpuJd3.js +0 -1028
- package/dist/cdn/dist-DaMB0Su9.js +0 -616
- package/dist/cdn/dist-DbX5yidW.js +0 -2306
- package/dist/cdn/external-link-CjmfT6rW.js +0 -17
- package/dist/cdn/eye-B7H96av8.js +0 -29
- package/dist/cdn/folder-open-B3lu2rG_.js +0 -7
- package/dist/cdn/hash-BVQnWi7q.js +0 -33
- package/dist/cdn/history-Csw4rb44.js +0 -17
- package/dist/cdn/index-browser-DkQOzkvX.js +0 -1934
- package/dist/cdn/info-CNiOwqkf.js +0 -19
- package/dist/cdn/input-C2OBd4PJ.js +0 -12160
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
- package/dist/cdn/inspector.css +0 -2
- package/dist/cdn/inspector.js +0 -24523
- package/dist/cdn/jsx-runtime-CIxvMpEo.js +0 -180
- package/dist/cdn/label-B9Jmm9be.js +0 -60
- package/dist/cdn/loader-circle-BLy9A_pp.js +0 -7
- package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
- package/dist/cdn/maximize-2-CH5Lq90B.js +0 -21
- package/dist/cdn/maximize-BALCV_ep.js +0 -21
- package/dist/cdn/message-square-BnxdpJxZ.js +0 -7
- package/dist/cdn/not-found-DEtSM_Wd.js +0 -34
- package/dist/cdn/play-vuZ5PLnI.js +0 -7
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/providers/anthropic.png +0 -0
- package/dist/cdn/providers/google.png +0 -0
- package/dist/cdn/providers/openai.png +0 -0
- package/dist/cdn/react-BIs9pQ3H.js +0 -926
- package/dist/cdn/react-BajV-X4P.js +0 -5425
- package/dist/cdn/refresh-cw-BXY-Pa0U.js +0 -21
- package/dist/cdn/save-Tgil_AJZ.js +0 -34
- package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
- package/dist/cdn/select-DDdiIPR2.js +0 -2594
- package/dist/cdn/servers-Dm72iTpY.js +0 -26
- package/dist/cdn/shared-DaILIQPP.js +0 -1700
- package/dist/cdn/sheet-Br_l2kry.js +0 -2077
- package/dist/cdn/sparkles-BntO2rDR.js +0 -23
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/cdn/square-check-big-BvwQ17Bl.js +0 -10
- package/dist/cdn/switch-C3IyQuid.js +0 -664
- package/dist/cdn/tabs-subtle-CkdI6Mac.js +0 -787
- package/dist/cdn/telemetry-DabTAQ8x.js +0 -240
- package/dist/cdn/textarea-DSbwcFVt.js +0 -14
- package/dist/cdn/trash-2-RwpJY5SL.js +0 -25
- package/dist/cdn/useAriaLabelledBy-DqAdnppm.js +0 -29
- package/dist/cdn/useCompositeItem-BRqEzYh-.js +0 -26
- package/dist/cdn/useConfig-Btmh8wjJ.js +0 -235
- package/dist/cdn/useSavedRequests-Ci2I919u.js +0 -51
- package/dist/cdn/useViewHostProps-B6SKeeH9.js +0 -349
- package/dist/cdn/wrench-DzGmCfnb.js +0 -7
- package/dist/cdn/x-C3vRQIYu.js +0 -10
- package/dist/cdn/zap-Mb-pbw2X.js +0 -10
- package/dist/client/auth/manufact-auth.d.ts +0 -32
- package/dist/client/auth/manufact-auth.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryHeader.d.ts +0 -4
- package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryPanel.d.ts +0 -28
- package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +0 -1
- package/dist/client/chat-history/ChatHistoryRail.d.ts +0 -5
- package/dist/client/chat-history/ChatHistoryRail.d.ts.map +0 -1
- package/dist/client/chat-history/ChatList.d.ts +0 -18
- package/dist/client/chat-history/ChatList.d.ts.map +0 -1
- package/dist/client/chat-history/ChatTitleReveal.d.ts +0 -10
- package/dist/client/chat-history/ChatTitleReveal.d.ts.map +0 -1
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +0 -13
- package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +0 -1
- package/dist/client/chat-history/chat-title.d.ts +0 -10
- package/dist/client/chat-history/chat-title.d.ts.map +0 -1
- package/dist/client/chat-history/providers/local-storage.d.ts +0 -21
- package/dist/client/chat-history/providers/local-storage.d.ts.map +0 -1
- package/dist/client/chat-history/types.d.ts +0 -39
- package/dist/client/chat-history/types.d.ts.map +0 -1
- package/dist/client/chat-history/useChatHistory.d.ts +0 -20
- package/dist/client/chat-history/useChatHistory.d.ts.map +0 -1
- package/dist/client/chat-history/useChatTitleGeneration.d.ts +0 -17
- package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +0 -1
- package/dist/client/components/AddToClientDropdown.d.ts +0 -52
- package/dist/client/components/AddToClientDropdown.d.ts.map +0 -1
- package/dist/client/components/ChatTab.d.ts +0 -98
- package/dist/client/components/ChatTab.d.ts.map +0 -1
- package/dist/client/components/IframeConsole.d.ts +0 -7
- package/dist/client/components/IframeConsole.d.ts.map +0 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts +0 -19
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +0 -1
- package/dist/client/components/PromptsTab.d.ts +0 -34
- package/dist/client/components/PromptsTab.d.ts.map +0 -1
- package/dist/client/components/ResourcesTab.d.ts +0 -31
- package/dist/client/components/ResourcesTab.d.ts.map +0 -1
- package/dist/client/components/ToolsTab.d.ts +0 -39
- package/dist/client/components/ToolsTab.d.ts.map +0 -1
- package/dist/client/components/chat/AssistantMessage.d.ts +0 -10
- package/dist/client/components/chat/AssistantMessage.d.ts.map +0 -1
- package/dist/client/components/chat/ChatHeader.d.ts +0 -70
- package/dist/client/components/chat/ChatHeader.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInput.d.ts +0 -29
- package/dist/client/components/chat/ChatInput.d.ts.map +0 -1
- package/dist/client/components/chat/ChatInputArea.d.ts +0 -65
- package/dist/client/components/chat/ChatInputArea.d.ts.map +0 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +0 -15
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +0 -1
- package/dist/client/components/chat/ChatManagedNotice.d.ts +0 -10
- package/dist/client/components/chat/ChatManagedNotice.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +0 -1
- package/dist/client/components/chat/ChatScrollTopFade.d.ts +0 -7
- package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +0 -1
- package/dist/client/components/chat/ChatTraceView.d.ts +0 -7
- package/dist/client/components/chat/ChatTraceView.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts +0 -42
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +0 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +0 -6
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +0 -1
- package/dist/client/components/chat/CopyButton.d.ts +0 -10
- package/dist/client/components/chat/CopyButton.d.ts.map +0 -1
- package/dist/client/components/chat/FloatingChatElicitation.d.ts +0 -10
- package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +0 -1
- package/dist/client/components/chat/McpReconnectBanner.d.ts +0 -10
- package/dist/client/components/chat/McpReconnectBanner.d.ts.map +0 -1
- package/dist/client/components/chat/MessageList.d.ts +0 -47
- package/dist/client/components/chat/MessageList.d.ts.map +0 -1
- package/dist/client/components/chat/MessageMetaActions.d.ts +0 -7
- package/dist/client/components/chat/MessageMetaActions.d.ts.map +0 -1
- package/dist/client/components/chat/PromptResultsList.d.ts +0 -8
- package/dist/client/components/chat/PromptResultsList.d.ts.map +0 -1
- package/dist/client/components/chat/PromptsDropdown.d.ts +0 -11
- package/dist/client/components/chat/PromptsDropdown.d.ts.map +0 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts +0 -7
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +0 -1
- package/dist/client/components/chat/SystemPromptButton.d.ts +0 -11
- package/dist/client/components/chat/SystemPromptButton.d.ts.map +0 -1
- package/dist/client/components/chat/ToolCallDisplay.d.ts +0 -10
- package/dist/client/components/chat/ToolCallDisplay.d.ts.map +0 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts +0 -15
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +0 -1
- package/dist/client/components/chat/ToolSelector.d.ts +0 -13
- package/dist/client/components/chat/ToolSelector.d.ts.map +0 -1
- package/dist/client/components/chat/UserMessage.d.ts +0 -10
- package/dist/client/components/chat/UserMessage.d.ts.map +0 -1
- package/dist/client/components/chat/chat-bar-styles.d.ts +0 -6
- package/dist/client/components/chat/chat-bar-styles.d.ts.map +0 -1
- package/dist/client/components/chat/chatModeStorage.d.ts +0 -11
- package/dist/client/components/chat/chatModeStorage.d.ts.map +0 -1
- package/dist/client/components/chat/conversion.d.ts +0 -19
- package/dist/client/components/chat/conversion.d.ts.map +0 -1
- package/dist/client/components/chat/freeTier.d.ts +0 -32
- package/dist/client/components/chat/freeTier.d.ts.map +0 -1
- package/dist/client/components/chat/managedChatNotice.d.ts +0 -16
- package/dist/client/components/chat/managedChatNotice.d.ts.map +0 -1
- package/dist/client/components/chat/providerMeta.d.ts +0 -27
- package/dist/client/components/chat/providerMeta.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/local-storage.d.ts +0 -5
- package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/types.d.ts +0 -8
- package/dist/client/components/chat/system-prompt/types.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +0 -3
- package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +0 -1
- package/dist/client/components/chat/system-prompt-default.d.ts +0 -2
- package/dist/client/components/chat/system-prompt-default.d.ts.map +0 -1
- package/dist/client/components/chat/trace.d.ts +0 -84
- package/dist/client/components/chat/trace.d.ts.map +0 -1
- package/dist/client/components/chat/types.d.ts +0 -75
- package/dist/client/components/chat/types.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessages.d.ts +0 -76
- package/dist/client/components/chat/useChatMessages.d.ts.map +0 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +0 -43
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +0 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +0 -14
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +0 -1
- package/dist/client/components/chat/useConfig.d.ts +0 -24
- package/dist/client/components/chat/useConfig.d.ts.map +0 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +0 -14
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +0 -1
- package/dist/client/components/chat/useManagedCloudModel.d.ts +0 -14
- package/dist/client/components/chat/useManagedCloudModel.d.ts.map +0 -1
- package/dist/client/components/chat/utils.d.ts +0 -11
- package/dist/client/components/chat/utils.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +0 -12
- package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +0 -9
- package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +0 -1
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts +0 -8
- package/dist/client/components/elicitation/shared/schemaHelpers.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts +0 -13
- package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptInputForm.d.ts +0 -9
- package/dist/client/components/prompts/PromptInputForm.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptMessageCard.d.ts +0 -29
- package/dist/client/components/prompts/PromptMessageCard.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptResultDisplay.d.ts +0 -34
- package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +0 -1
- package/dist/client/components/prompts/PromptsList.d.ts +0 -10
- package/dist/client/components/prompts/PromptsList.d.ts.map +0 -1
- package/dist/client/components/prompts/SavedPromptsList.d.ts +0 -19
- package/dist/client/components/prompts/SavedPromptsList.d.ts.map +0 -1
- package/dist/client/components/resources/PropsConfigDialog.d.ts +0 -16
- package/dist/client/components/resources/PropsConfigDialog.d.ts.map +0 -1
- package/dist/client/components/resources/ResourceResultDisplay.d.ts +0 -30
- package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +0 -1
- package/dist/client/components/resources/ResourcesList.d.ts +0 -10
- package/dist/client/components/resources/ResourcesList.d.ts.map +0 -1
- package/dist/client/components/shared/CollapsibleJSON.d.ts +0 -6
- package/dist/client/components/shared/CollapsibleJSON.d.ts.map +0 -1
- package/dist/client/components/shared/InspectorScrollArea.d.ts +0 -9
- package/dist/client/components/shared/InspectorScrollArea.d.ts.map +0 -1
- package/dist/client/components/shared/JSONDisplay.d.ts +0 -12
- package/dist/client/components/shared/JSONDisplay.d.ts.map +0 -1
- package/dist/client/components/shared/ListItem.d.ts +0 -24
- package/dist/client/components/shared/ListItem.d.ts.map +0 -1
- package/dist/client/components/shared/ListTabHeader.d.ts +0 -47
- package/dist/client/components/shared/ListTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts +0 -15
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +0 -1
- package/dist/client/components/shared/SchemaFormField.d.ts +0 -12
- package/dist/client/components/shared/SchemaFormField.d.ts.map +0 -1
- package/dist/client/components/shared/SearchTabHeader.d.ts +0 -28
- package/dist/client/components/shared/SearchTabHeader.d.ts.map +0 -1
- package/dist/client/components/shared/StatusIcon.d.ts +0 -12
- package/dist/client/components/shared/StatusIcon.d.ts.map +0 -1
- package/dist/client/components/shared/index.d.ts +0 -7
- package/dist/client/components/shared/index.d.ts.map +0 -1
- package/dist/client/components/tools/SaveRequestDialog.d.ts +0 -11
- package/dist/client/components/tools/SaveRequestDialog.d.ts.map +0 -1
- package/dist/client/components/tools/SavedRequestsList.d.ts +0 -19
- package/dist/client/components/tools/SavedRequestsList.d.ts.map +0 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts +0 -20
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +0 -1
- package/dist/client/components/tools/ToolInputForm.d.ts +0 -14
- package/dist/client/components/tools/ToolInputForm.d.ts.map +0 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -24
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +0 -1
- package/dist/client/components/tools/ToolsList.d.ts +0 -10
- package/dist/client/components/tools/ToolsList.d.ts.map +0 -1
- package/dist/client/components/tools/schema-utils.d.ts +0 -13
- package/dist/client/components/tools/schema-utils.d.ts.map +0 -1
- package/dist/client/components/tools/useToolExecution.d.ts +0 -26
- package/dist/client/components/tools/useToolExecution.d.ts.map +0 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts +0 -35
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +0 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts +0 -13
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +0 -1
- package/dist/client/components/ui/WidgetWrapper.d.ts +0 -12
- package/dist/client/components/ui/WidgetWrapper.d.ts.map +0 -1
- package/dist/client/components/ui/alert-dialog.d.ts +0 -15
- package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/client/components/ui/ask-user-questions.d.ts +0 -80
- package/dist/client/components/ui/ask-user-questions.d.ts.map +0 -1
- package/dist/client/components/ui/badge.d.ts +0 -34
- package/dist/client/components/ui/badge.d.ts.map +0 -1
- package/dist/client/components/ui/blur-fade.d.ts +0 -25
- package/dist/client/components/ui/blur-fade.d.ts.map +0 -1
- package/dist/client/components/ui/button.d.ts +0 -34
- package/dist/client/components/ui/button.d.ts.map +0 -1
- package/dist/client/components/ui/chat-message.d.ts +0 -23
- package/dist/client/components/ui/chat-message.d.ts.map +0 -1
- package/dist/client/components/ui/checkbox.d.ts +0 -4
- package/dist/client/components/ui/checkbox.d.ts.map +0 -1
- package/dist/client/components/ui/client-icons.d.ts +0 -20
- package/dist/client/components/ui/client-icons.d.ts.map +0 -1
- package/dist/client/components/ui/command.d.ts +0 -17
- package/dist/client/components/ui/command.d.ts.map +0 -1
- package/dist/client/components/ui/dialog.d.ts +0 -37
- package/dist/client/components/ui/dialog.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +0 -25
- package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown.d.ts +0 -30
- package/dist/client/components/ui/dropdown.d.ts.map +0 -1
- package/dist/client/components/ui/file-thumbnail.d.ts +0 -9
- package/dist/client/components/ui/file-thumbnail.d.ts.map +0 -1
- package/dist/client/components/ui/input.d.ts +0 -4
- package/dist/client/components/ui/input.d.ts.map +0 -1
- package/dist/client/components/ui/kbd.d.ts +0 -3
- package/dist/client/components/ui/kbd.d.ts.map +0 -1
- package/dist/client/components/ui/label.d.ts +0 -4
- package/dist/client/components/ui/label.d.ts.map +0 -1
- package/dist/client/components/ui/menu-item.d.ts +0 -52
- package/dist/client/components/ui/menu-item.d.ts.map +0 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts +0 -12
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +0 -1
- package/dist/client/components/ui/not-found.d.ts +0 -9
- package/dist/client/components/ui/not-found.d.ts.map +0 -1
- package/dist/client/components/ui/popover.d.ts +0 -6
- package/dist/client/components/ui/popover.d.ts.map +0 -1
- package/dist/client/components/ui/resizable.d.ts +0 -10
- package/dist/client/components/ui/resizable.d.ts.map +0 -1
- package/dist/client/components/ui/scroll-area.d.ts +0 -4
- package/dist/client/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/client/components/ui/select.d.ts +0 -52
- package/dist/client/components/ui/select.d.ts.map +0 -1
- package/dist/client/components/ui/sheet.d.ts +0 -14
- package/dist/client/components/ui/sheet.d.ts.map +0 -1
- package/dist/client/components/ui/skeleton.d.ts +0 -4
- package/dist/client/components/ui/skeleton.d.ts.map +0 -1
- package/dist/client/components/ui/spinner.d.ts +0 -3
- package/dist/client/components/ui/spinner.d.ts.map +0 -1
- package/dist/client/components/ui/switch.d.ts +0 -22
- package/dist/client/components/ui/switch.d.ts.map +0 -1
- package/dist/client/components/ui/table.d.ts +0 -9
- package/dist/client/components/ui/table.d.ts.map +0 -1
- package/dist/client/components/ui/tabs-subtle.d.ts +0 -25
- package/dist/client/components/ui/tabs-subtle.d.ts.map +0 -1
- package/dist/client/components/ui/text-shimmer.d.ts +0 -11
- package/dist/client/components/ui/text-shimmer.d.ts.map +0 -1
- package/dist/client/components/ui/textarea.d.ts +0 -4
- package/dist/client/components/ui/textarea.d.ts.map +0 -1
- package/dist/client/components/ui/tooltip.d.ts +0 -43
- package/dist/client/components/ui/tooltip.d.ts.map +0 -1
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts +0 -19
- package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts.map +0 -1
- package/dist/client/console-log-bus.d.ts +0 -24
- package/dist/client/console-log-bus.d.ts.map +0 -1
- package/dist/client/constants/debug-options.d.ts +0 -16
- package/dist/client/constants/debug-options.d.ts.map +0 -1
- package/dist/client/context/InspectorContext.d.ts +0 -134
- package/dist/client/context/InspectorContext.d.ts.map +0 -1
- package/dist/client/context/ThemeContext.d.ts +0 -17
- package/dist/client/context/ThemeContext.d.ts.map +0 -1
- package/dist/client/context/WidgetDebugContext.d.ts +0 -121
- package/dist/client/context/WidgetDebugContext.d.ts.map +0 -1
- package/dist/client/hooks/use-merge-split.d.ts +0 -36
- package/dist/client/hooks/use-merge-split.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover-index.d.ts +0 -27
- package/dist/client/hooks/use-proximity-hover-index.d.ts.map +0 -1
- package/dist/client/hooks/use-proximity-hover.d.ts +0 -26
- package/dist/client/hooks/use-proximity-hover.d.ts.map +0 -1
- package/dist/client/hooks/use-touch-primary.d.ts +0 -2
- package/dist/client/hooks/use-touch-primary.d.ts.map +0 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +0 -18
- package/dist/client/hooks/useDeviceViewport.d.ts.map +0 -1
- package/dist/client/hooks/useHostedSession.d.ts +0 -9
- package/dist/client/hooks/useHostedSession.d.ts.map +0 -1
- package/dist/client/hooks/useIframeConsole.d.ts +0 -24
- package/dist/client/hooks/useIframeConsole.d.ts.map +0 -1
- package/dist/client/hooks/useKeyboardShortcuts.d.ts +0 -28
- package/dist/client/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/client/hooks/useMCPPrompts.d.ts +0 -94
- package/dist/client/hooks/useMCPPrompts.d.ts.map +0 -1
- package/dist/client/hooks/useMcpAppsHostContext.d.ts +0 -27
- package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +0 -1
- package/dist/client/hooks/usePropsLLM.d.ts +0 -20
- package/dist/client/hooks/usePropsLLM.d.ts.map +0 -1
- package/dist/client/hooks/useResourceProps.d.ts +0 -14
- package/dist/client/hooks/useResourceProps.d.ts.map +0 -1
- package/dist/client/hooks/useSavedRequests.d.ts +0 -6
- package/dist/client/hooks/useSavedRequests.d.ts.map +0 -1
- package/dist/client/hooks/useViewHostProps.d.ts +0 -19
- package/dist/client/hooks/useViewHostProps.d.ts.map +0 -1
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/lib/elevated.d.ts +0 -28
- package/dist/client/lib/elevated.d.ts.map +0 -1
- package/dist/client/lib/font-weight.d.ts +0 -10
- package/dist/client/lib/font-weight.d.ts.map +0 -1
- package/dist/client/lib/icon-context.d.ts +0 -15
- package/dist/client/lib/icon-context.d.ts.map +0 -1
- package/dist/client/lib/shape-context.d.ts +0 -21
- package/dist/client/lib/shape-context.d.ts.map +0 -1
- package/dist/client/lib/springs.d.ts +0 -32
- package/dist/client/lib/springs.d.ts.map +0 -1
- package/dist/client/lib/surface-classes.d.ts +0 -2
- package/dist/client/lib/surface-classes.d.ts.map +0 -1
- package/dist/client/lib/surface-context.d.ts +0 -7
- package/dist/client/lib/surface-context.d.ts.map +0 -1
- package/dist/client/lib/utils.d.ts +0 -3
- package/dist/client/lib/utils.d.ts.map +0 -1
- package/dist/client/mcp-apps/csp.d.ts +0 -26
- package/dist/client/mcp-apps/csp.d.ts.map +0 -1
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +0 -17
- package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +0 -1
- package/dist/client/mcp-apps/logging-transport.d.ts +0 -13
- package/dist/client/mcp-apps/logging-transport.d.ts.map +0 -1
- package/dist/client/rpc-traffic-coalesce.d.ts +0 -7
- package/dist/client/rpc-traffic-coalesce.d.ts.map +0 -1
- package/dist/client/rpc-traffic-store.d.ts +0 -37
- package/dist/client/rpc-traffic-store.d.ts.map +0 -1
- package/dist/client/telemetry/capture.d.ts +0 -7
- package/dist/client/telemetry/capture.d.ts.map +0 -1
- package/dist/client/telemetry/events.d.ts +0 -168
- package/dist/client/telemetry/events.d.ts.map +0 -1
- package/dist/client/telemetry/index.d.ts +0 -5
- package/dist/client/telemetry/index.d.ts.map +0 -1
- package/dist/client/telemetry/init.d.ts +0 -2
- package/dist/client/telemetry/init.d.ts.map +0 -1
- package/dist/client/telemetry/utils.d.ts +0 -7
- package/dist/client/telemetry/utils.d.ts.map +0 -1
- package/dist/client/types/message-content-block.d.ts +0 -19
- package/dist/client/types/message-content-block.d.ts.map +0 -1
- package/dist/client/types/pending-requests.d.ts +0 -17
- package/dist/client/types/pending-requests.d.ts.map +0 -1
- package/dist/client/utils/basePath.d.ts +0 -34
- package/dist/client/utils/basePath.d.ts.map +0 -1
- package/dist/client/utils/browser.d.ts +0 -5
- package/dist/client/utils/browser.d.ts.map +0 -1
- package/dist/client/utils/format.d.ts +0 -4
- package/dist/client/utils/format.d.ts.map +0 -1
- package/dist/client/utils/highlightJson.d.ts +0 -11
- package/dist/client/utils/highlightJson.d.ts.map +0 -1
- package/dist/client/utils/jsonUtils.d.ts +0 -24
- package/dist/client/utils/jsonUtils.d.ts.map +0 -1
- package/dist/client/utils/mcpClientUtils.d.ts +0 -131
- package/dist/client/utils/mcpClientUtils.d.ts.map +0 -1
- package/dist/client/utils/servers.d.ts +0 -14
- package/dist/client/utils/servers.d.ts.map +0 -1
- package/dist/server/asset-urls.d.ts +0 -18
- package/dist/server/asset-urls.d.ts.map +0 -1
- package/dist/server/asset-urls.js +0 -17
- package/dist/server/cdn-shell.d.ts +0 -18
- package/dist/server/cdn-shell.d.ts.map +0 -1
- package/dist/server/cdn-shell.js +0 -12
- package/dist/server/chunk-DSTNUYWX.js +0 -148
- package/dist/server/chunk-H6ZCIKBS.js +0 -63
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/chunk-J4FNYLBF.js +0 -54
- package/dist/server/chunk-K2F2AJOI.js +0 -619
- package/dist/server/chunk-KD7K27XK.js +0 -77
- package/dist/server/chunk-M5TZA42I.js +0 -54
- package/dist/server/chunk-OWR2BIBW.js +0 -40
- package/dist/server/chunk-PKBMQBKP.js +0 -7
- package/dist/server/chunk-SQ4XNMLT.js +0 -72
- package/dist/server/chunk-UJLXHNQP.js +0 -43
- package/dist/server/chunk-WFT4JHYI.js +0 -24
- package/dist/server/chunk-XCNS5CIW.js +0 -199
- package/dist/server/chunk-ZCGLU5T7.js +0 -156
- package/dist/server/cli.d.ts +0 -3
- package/dist/server/cli.d.ts.map +0 -1
- package/dist/server/cli.js +0 -141
- package/dist/server/create-dev-api-app.d.ts +0 -4
- package/dist/server/create-dev-api-app.d.ts.map +0 -1
- package/dist/server/create-dev-api-app.js +0 -11
- package/dist/server/dev-callback-redirect.d.ts +0 -3
- package/dist/server/dev-callback-redirect.d.ts.map +0 -1
- package/dist/server/dev-callback-redirect.js +0 -18
- package/dist/server/favicon-links.d.ts +0 -12
- package/dist/server/favicon-links.d.ts.map +0 -1
- package/dist/server/favicon-links.js +0 -11
- package/dist/server/favicon-static.d.ts +0 -4
- package/dist/server/favicon-static.d.ts.map +0 -1
- package/dist/server/favicon-static.js +0 -8
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/middleware.d.ts +0 -40
- package/dist/server/middleware.d.ts.map +0 -1
- package/dist/server/middleware.js +0 -17
- package/dist/server/proxy/index.d.ts +0 -3
- package/dist/server/proxy/index.d.ts.map +0 -1
- package/dist/server/proxy/index.js +0 -12
- package/dist/server/proxy/mcp-proxy.d.ts +0 -101
- package/dist/server/proxy/mcp-proxy.d.ts.map +0 -1
- package/dist/server/proxy/mcp-proxy.js +0 -10
- package/dist/server/proxy/oauth-proxy.d.ts +0 -26
- package/dist/server/proxy/oauth-proxy.d.ts.map +0 -1
- package/dist/server/proxy/oauth-proxy.js +0 -9
- package/dist/server/proxy-routes.d.ts +0 -16
- package/dist/server/proxy-routes.d.ts.map +0 -1
- package/dist/server/proxy-routes.js +0 -10
- package/dist/server/rpc-log-bus.d.ts +0 -17
- package/dist/server/rpc-log-bus.d.ts.map +0 -1
- package/dist/server/rpc-log-bus.js +0 -77
- package/dist/server/server.d.ts +0 -15
- package/dist/server/server.d.ts.map +0 -1
- package/dist/server/server.js +0 -66
- package/dist/server/static-assets.d.ts +0 -5
- package/dist/server/static-assets.d.ts.map +0 -1
- package/dist/server/static-assets.js +0 -9
- package/dist/server/utils.d.ts +0 -33
- package/dist/server/utils.d.ts.map +0 -1
- package/dist/server/utils.js +0 -17
- package/dist/server/version.d.ts +0 -7
- package/dist/server/version.d.ts.map +0 -1
- package/dist/server/version.js +0 -9
- package/dist/server/vite-dev-api-plugin.d.ts +0 -4
- package/dist/server/vite-dev-api-plugin.d.ts.map +0 -1
- package/dist/server/vite-dev-api-plugin.js +0 -30
- package/dist/web/apple-touch-icon.png +0 -0
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-BCobuZDc.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-BjGkLwVu.js +0 -1
- package/dist/web/assets/ElicitationTab-D3ZUKHND.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/ManufactOAuthCallback-CS3ydSZg.js +0 -1
- package/dist/web/assets/MarkdownRenderer-BeeBfQhv.js +0 -47
- package/dist/web/assets/NotificationsTab-Uj0_DrmK.js +0 -1
- package/dist/web/assets/OAuthCallback-C0ljgCiw.js +0 -1
- package/dist/web/assets/PromptsTab-Bns2u0G-.js +0 -15
- package/dist/web/assets/ResourcesTab-CO24312V.js +0 -2
- package/dist/web/assets/SamplingTab-7gtN7FwU.js +0 -1
- package/dist/web/assets/ServerMetadataTab-CQwqYSjL.js +0 -1
- package/dist/web/assets/ToolsTab-bDdRxI1b.js +0 -8
- package/dist/web/assets/ViewPreview-Ba1Ec5uA.js +0 -1
- package/dist/web/assets/WidgetWrapper-CYHfzrtb.js +0 -34
- package/dist/web/assets/brush--0LobUi4.js +0 -1
- package/dist/web/assets/checkbox-CzBkaNKa.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/dist-C5JjLJN9.js +0 -21
- package/dist/web/assets/index-TQ5V7cM9.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/label-Cdim77Jw.js +0 -1
- package/dist/web/assets/maximize-2-BTT9QQU9.js +0 -1
- package/dist/web/assets/maximize-_O55kFcr.js +0 -1
- package/dist/web/assets/react-CU_d2d5K.js +0 -1
- package/dist/web/assets/refresh-cw-C9wQl8_d.js +0 -1
- package/dist/web/assets/save-B-MsgxX9.js +0 -1
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-BF0rJNdE.js +0 -1
- package/dist/web/assets/sparkles-2OAsc1aP.js +0 -1
- package/dist/web/assets/tabs-subtle-6D79T1xd.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useConfig-BAgALiZg.js +0 -1
- package/dist/web/assets/useViewHostProps-BYitt_6K.js +0 -1
- package/dist/web/assets/zap-Du2Uc5pa.js +0 -1
- package/dist/web/favicon-96x96.png +0 -0
- package/dist/web/favicon-black.svg +0 -5
- package/dist/web/favicon-white.svg +0 -5
- package/dist/web/favicon.ico +0 -0
- package/dist/web/favicon.svg +0 -5
- package/dist/web/index.html +0 -89
- package/dist/web/providers/anthropic.png +0 -0
- package/dist/web/providers/google.png +0 -0
- package/dist/web/providers/openai.png +0 -0
- package/dist/web/site.webmanifest +0 -21
- package/dist/web/web-app-manifest-192x192.png +0 -0
- package/dist/web/web-app-manifest-512x512.png +0 -0
- /package/dist/{cdn → app}/apple-touch-icon.png +0 -0
- /package/dist/{cdn → app}/favicon-96x96.png +0 -0
- /package/dist/{cdn → app}/favicon-black.svg +0 -0
- /package/dist/{cdn → app}/favicon-white.svg +0 -0
- /package/dist/{cdn → app}/favicon.ico +0 -0
- /package/dist/{cdn → app}/favicon.svg +0 -0
- /package/dist/{cdn → app}/site.webmanifest +0 -0
- /package/dist/{cdn → app}/web-app-manifest-192x192.png +0 -0
- /package/dist/{cdn → app}/web-app-manifest-512x512.png +0 -0
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { sr as n } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { t as r } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
-
import { t as i } from "./bell-CGjAO_0s.js";
|
|
5
|
-
import { t as a } from "./brush-B_mKhyxG.js";
|
|
6
|
-
import { a as o, i as s, r as c, t as l } from "./browser-CbQIH4w2.js";
|
|
7
|
-
import { t as u } from "./clock-CmUbSx_B.js";
|
|
8
|
-
import { t as d } from "./code-V_0nf5rg.js";
|
|
9
|
-
import { a as f, t as p } from "./JSONDisplay-BFxf5oEu.js";
|
|
10
|
-
import { a as m, i as h, n as g, o as _, r as v, t as y } from "./shared-DaILIQPP.js";
|
|
11
|
-
import { t as b } from "./maximize-BALCV_ep.js";
|
|
12
|
-
import { t as x } from "./trash-2-RwpJY5SL.js";
|
|
13
|
-
import { t as S } from "./x-C3vRQIYu.js";
|
|
14
|
-
import { t as C } from "./not-found-DEtSM_Wd.js";
|
|
15
|
-
//#region src/client/components/notifications/NotificationsList.tsx
|
|
16
|
-
var w = /* @__PURE__ */ e(t(), 1), T = r();
|
|
17
|
-
function E({ notifications: e, selectedNotification: t, onNotificationSelect: n, focusedIndex: r, formatRelativeTime: i }) {
|
|
18
|
-
return e.length === 0 ? /* @__PURE__ */ (0, T.jsx)("div", {
|
|
19
|
-
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
20
|
-
children: /* @__PURE__ */ (0, T.jsx)(C, {
|
|
21
|
-
vertical: !0,
|
|
22
|
-
noBorder: !0,
|
|
23
|
-
message: "No notifications yet"
|
|
24
|
-
})
|
|
25
|
-
}) : /* @__PURE__ */ (0, T.jsx)("div", { children: e.map((e, a) => /* @__PURE__ */ (0, T.jsx)(v, {
|
|
26
|
-
id: `notification-${e.id}`,
|
|
27
|
-
isSelected: t?.id === e.id,
|
|
28
|
-
isFocused: r === a,
|
|
29
|
-
title: /* @__PURE__ */ (0, T.jsxs)("span", {
|
|
30
|
-
className: "flex items-center gap-3",
|
|
31
|
-
children: [e.method, !e.read && /* @__PURE__ */ (0, T.jsx)("span", { className: "size-1.5 block rounded-full bg-orange-500" })]
|
|
32
|
-
}),
|
|
33
|
-
description: (() => {
|
|
34
|
-
let t = i(e.timestamp), n = e.params && Object.keys(e.params).length > 0 ? Object.keys(e.params).length : 0;
|
|
35
|
-
return t + (n > 0 ? ` | ${n} param${n > 1 ? "s" : ""}` : "");
|
|
36
|
-
})(),
|
|
37
|
-
onClick: () => n(e)
|
|
38
|
-
}, e.id)) });
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/client/components/notifications/NotificationResultDisplay.tsx
|
|
42
|
-
function D({ notification: e, previewMode: t, onTogglePreview: r, onCopy: c, onDownload: l, onFullscreen: m, isCopied: h = !1, onClose: g }) {
|
|
43
|
-
return e ? /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
44
|
-
className: "flex flex-col h-full",
|
|
45
|
-
children: [/* @__PURE__ */ (0, T.jsxs)("div", {
|
|
46
|
-
className: "flex-shrink-0 px-4 py-3 border-b border-gray-200 dark:border-zinc-700 flex items-center justify-between",
|
|
47
|
-
children: [/* @__PURE__ */ (0, T.jsxs)("div", {
|
|
48
|
-
className: "flex items-center gap-2",
|
|
49
|
-
children: [/* @__PURE__ */ (0, T.jsxs)("div", {
|
|
50
|
-
className: "flex items-center gap-1",
|
|
51
|
-
children: [/* @__PURE__ */ (0, T.jsx)(u, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, T.jsx)("span", {
|
|
52
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
53
|
-
children: new Date(e.timestamp).toLocaleTimeString()
|
|
54
|
-
})]
|
|
55
|
-
}), /* @__PURE__ */ (0, T.jsx)("span", {
|
|
56
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
57
|
-
children: e.formatRelativeTime(e.timestamp)
|
|
58
|
-
})]
|
|
59
|
-
}), /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
60
|
-
className: "flex items-center gap-1",
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ (0, T.jsxs)(n, {
|
|
63
|
-
variant: "ghost",
|
|
64
|
-
size: "sm",
|
|
65
|
-
onClick: r,
|
|
66
|
-
className: t ? "" : "text-purple-600 dark:text-purple-400",
|
|
67
|
-
children: [t ? /* @__PURE__ */ (0, T.jsx)(d, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ (0, T.jsx)(a, { className: "h-4 w-4 mr-1" }), t ? "JSON" : "Formatted"]
|
|
68
|
-
}),
|
|
69
|
-
/* @__PURE__ */ (0, T.jsx)(n, {
|
|
70
|
-
variant: "ghost",
|
|
71
|
-
size: "sm",
|
|
72
|
-
onClick: c,
|
|
73
|
-
children: h ? /* @__PURE__ */ (0, T.jsx)(o, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, T.jsx)(s, { className: "h-4 w-4" })
|
|
74
|
-
}),
|
|
75
|
-
/* @__PURE__ */ (0, T.jsx)(n, {
|
|
76
|
-
variant: "ghost",
|
|
77
|
-
size: "sm",
|
|
78
|
-
onClick: l,
|
|
79
|
-
children: /* @__PURE__ */ (0, T.jsx)(f, { className: "h-4 w-4" })
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ (0, T.jsx)(n, {
|
|
82
|
-
variant: "ghost",
|
|
83
|
-
size: "sm",
|
|
84
|
-
onClick: m,
|
|
85
|
-
children: /* @__PURE__ */ (0, T.jsx)(b, { className: "h-4 w-4" })
|
|
86
|
-
}),
|
|
87
|
-
g && /* @__PURE__ */ (0, T.jsx)(n, {
|
|
88
|
-
variant: "ghost",
|
|
89
|
-
size: "sm",
|
|
90
|
-
onClick: g,
|
|
91
|
-
children: /* @__PURE__ */ (0, T.jsx)(S, { className: "h-4 w-4" })
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
})]
|
|
95
|
-
}), /* @__PURE__ */ (0, T.jsx)("div", {
|
|
96
|
-
className: "flex-1 overflow-y-auto",
|
|
97
|
-
children: /* @__PURE__ */ (0, T.jsx)("div", {
|
|
98
|
-
className: "px-4 pt-4",
|
|
99
|
-
children: /* @__PURE__ */ (0, T.jsx)(p, {
|
|
100
|
-
data: {
|
|
101
|
-
method: e.method,
|
|
102
|
-
timestamp: e.timestamp,
|
|
103
|
-
read: e.read,
|
|
104
|
-
params: e.params
|
|
105
|
-
},
|
|
106
|
-
filename: `notification-${e.method.replace(/[^a-zA-Z0-9]/g, "-")}-${Date.now()}.json`
|
|
107
|
-
})
|
|
108
|
-
})
|
|
109
|
-
})]
|
|
110
|
-
}) : /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
111
|
-
className: "flex flex-col items-center justify-center h-full p-4 text-center",
|
|
112
|
-
children: [/* @__PURE__ */ (0, T.jsx)(i, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, T.jsx)("p", {
|
|
113
|
-
className: "text-gray-500 dark:text-gray-400",
|
|
114
|
-
children: "Select a notification to view details"
|
|
115
|
-
})]
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/client/components/NotificationsTab.tsx
|
|
120
|
-
function O({ notifications: e, unreadCount: t, markNotificationRead: n, markAllNotificationsRead: r, clearNotifications: a, serverId: o, isConnected: s }) {
|
|
121
|
-
let [u, d] = (0, w.useState)(null), [f, p] = (0, w.useState)(""), [v, b] = (0, w.useState)(-1), [S, C] = (0, w.useState)(!0), [O, k] = (0, w.useState)(!1), [A, j] = (0, w.useState)(!0), [M, N] = (0, w.useState)(!1), P = (0, w.useRef)(null), F = (0, w.useRef)(null), I = (0, w.useRef)(null), L = (0, w.useRef)(!1);
|
|
122
|
-
(0, w.useEffect)(() => {
|
|
123
|
-
S && e.length > 0 && P.current && !L.current && (P.current.scrollTop = 0);
|
|
124
|
-
}, [e.length, S]), (0, w.useEffect)(() => {
|
|
125
|
-
let e = P.current;
|
|
126
|
-
if (!e) return;
|
|
127
|
-
let t = () => {
|
|
128
|
-
e.scrollTop > 0 && (L.current = !0, C(!1));
|
|
129
|
-
};
|
|
130
|
-
return e.addEventListener("scroll", t), () => e.removeEventListener("scroll", t);
|
|
131
|
-
}, []), (0, w.useEffect)(() => {
|
|
132
|
-
e.length === 0 && (L.current = !1, C(!0));
|
|
133
|
-
}, [e.length]), (0, w.useEffect)(() => {
|
|
134
|
-
u && !u.read && n(u.id);
|
|
135
|
-
}, [u, n]), (0, w.useEffect)(() => {
|
|
136
|
-
O && I.current && I.current.focus();
|
|
137
|
-
}, [O]);
|
|
138
|
-
let R = (0, w.useCallback)(() => {
|
|
139
|
-
f.trim() || k(!1);
|
|
140
|
-
}, [f]), z = (0, w.useMemo)(() => {
|
|
141
|
-
if (!f.trim()) return e;
|
|
142
|
-
let t = f.toLowerCase();
|
|
143
|
-
return e.filter((e) => e.method.toLowerCase().includes(t) || JSON.stringify(e.params || {}).toLowerCase().includes(t));
|
|
144
|
-
}, [e, f]);
|
|
145
|
-
(0, w.useEffect)(() => {
|
|
146
|
-
b(-1);
|
|
147
|
-
}, [f]), (0, w.useEffect)(() => {
|
|
148
|
-
let e = (e) => {
|
|
149
|
-
let t = e.target;
|
|
150
|
-
if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.contentEditable === "true" || e.metaKey || e.ctrlKey || e.altKey) return;
|
|
151
|
-
let n = z;
|
|
152
|
-
if (e.key === "ArrowDown") e.preventDefault(), b((e) => {
|
|
153
|
-
let t = e + 1;
|
|
154
|
-
return t >= n.length ? 0 : t;
|
|
155
|
-
});
|
|
156
|
-
else if (e.key === "ArrowUp") e.preventDefault(), b((e) => {
|
|
157
|
-
let t = e - 1;
|
|
158
|
-
return t < 0 ? n.length - 1 : t;
|
|
159
|
-
});
|
|
160
|
-
else if (e.key === "Enter" && v >= 0) {
|
|
161
|
-
e.preventDefault();
|
|
162
|
-
let t = z[v];
|
|
163
|
-
t && B(t);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
167
|
-
}, [v, z]), (0, w.useEffect)(() => {
|
|
168
|
-
if (v >= 0) {
|
|
169
|
-
let e = `notification-${z[v]?.id}`, t = document.getElementById(e);
|
|
170
|
-
t && t.scrollIntoView({
|
|
171
|
-
behavior: "smooth",
|
|
172
|
-
block: "nearest"
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
}, [v, z]);
|
|
176
|
-
let B = (0, w.useCallback)((e) => {
|
|
177
|
-
d(e);
|
|
178
|
-
}, []), V = (0, w.useCallback)(() => {
|
|
179
|
-
window.confirm("Are you sure you want to clear all notifications? This cannot be undone.") && (a(), d(null));
|
|
180
|
-
}, [a]), H = (0, w.useCallback)(async () => {
|
|
181
|
-
if (u) try {
|
|
182
|
-
await l(JSON.stringify({
|
|
183
|
-
method: u.method,
|
|
184
|
-
timestamp: u.timestamp,
|
|
185
|
-
read: u.read,
|
|
186
|
-
params: u.params
|
|
187
|
-
}, null, 2)), N(!0), setTimeout(() => N(!1), 2e3);
|
|
188
|
-
} catch (e) {
|
|
189
|
-
console.error("[NotificationsTab] Failed to copy notification:", e);
|
|
190
|
-
}
|
|
191
|
-
}, [u]), U = (0, w.useCallback)(() => {
|
|
192
|
-
if (u) try {
|
|
193
|
-
let e = new globalThis.Blob([JSON.stringify({
|
|
194
|
-
method: u.method,
|
|
195
|
-
timestamp: u.timestamp,
|
|
196
|
-
read: u.read,
|
|
197
|
-
params: u.params
|
|
198
|
-
}, null, 2)], { type: "application/json" }), t = URL.createObjectURL(e), n = document.createElement("a");
|
|
199
|
-
n.href = t, n.download = `notification-${Date.now()}.json`, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(t);
|
|
200
|
-
} catch (e) {
|
|
201
|
-
console.error("[NotificationsTab] Failed to download notification:", e);
|
|
202
|
-
}
|
|
203
|
-
}, [u]), W = (0, w.useCallback)(async () => {
|
|
204
|
-
if (F.current) try {
|
|
205
|
-
document.fullscreenElement ? await document.exitFullscreen() : await F.current.requestFullscreen();
|
|
206
|
-
} catch (e) {
|
|
207
|
-
console.error("[NotificationsTab] Failed to toggle fullscreen:", e);
|
|
208
|
-
}
|
|
209
|
-
}, []), G = u ? {
|
|
210
|
-
method: u.method,
|
|
211
|
-
params: u.params,
|
|
212
|
-
timestamp: u.timestamp,
|
|
213
|
-
read: u.read,
|
|
214
|
-
formatRelativeTime: c
|
|
215
|
-
} : null;
|
|
216
|
-
return s ? /* @__PURE__ */ (0, T.jsxs)(_, {
|
|
217
|
-
orientation: "horizontal",
|
|
218
|
-
className: "h-full",
|
|
219
|
-
children: [
|
|
220
|
-
/* @__PURE__ */ (0, T.jsx)(m, {
|
|
221
|
-
defaultSize: 40,
|
|
222
|
-
minSize: 30,
|
|
223
|
-
children: /* @__PURE__ */ (0, T.jsx)(_, {
|
|
224
|
-
orientation: "vertical",
|
|
225
|
-
className: "h-full border-r dark:border-zinc-700",
|
|
226
|
-
children: /* @__PURE__ */ (0, T.jsx)(m, {
|
|
227
|
-
defaultSize: 75,
|
|
228
|
-
minSize: 30,
|
|
229
|
-
className: "h-full overflow-hidden",
|
|
230
|
-
children: /* @__PURE__ */ (0, T.jsx)(g, {
|
|
231
|
-
scrollRef: P,
|
|
232
|
-
children: (t) => /* @__PURE__ */ (0, T.jsxs)(T.Fragment, { children: [/* @__PURE__ */ (0, T.jsx)(y, {
|
|
233
|
-
isScrolled: t,
|
|
234
|
-
title: "Notifications",
|
|
235
|
-
icon: i,
|
|
236
|
-
count: z.length,
|
|
237
|
-
isSearchExpanded: O,
|
|
238
|
-
searchQuery: f,
|
|
239
|
-
searchPlaceholder: "Search notifications...",
|
|
240
|
-
onSearchExpand: () => k(!0),
|
|
241
|
-
onSearchChange: p,
|
|
242
|
-
onSearchBlur: R,
|
|
243
|
-
bulkAction: {
|
|
244
|
-
icon: x,
|
|
245
|
-
label: "Clear all",
|
|
246
|
-
onClick: V,
|
|
247
|
-
disabled: e.length === 0
|
|
248
|
-
},
|
|
249
|
-
searchInputRef: I
|
|
250
|
-
}), /* @__PURE__ */ (0, T.jsx)(E, {
|
|
251
|
-
notifications: z,
|
|
252
|
-
selectedNotification: u,
|
|
253
|
-
onNotificationSelect: B,
|
|
254
|
-
focusedIndex: v,
|
|
255
|
-
formatRelativeTime: c
|
|
256
|
-
})] })
|
|
257
|
-
})
|
|
258
|
-
})
|
|
259
|
-
})
|
|
260
|
-
}),
|
|
261
|
-
/* @__PURE__ */ (0, T.jsx)(h, {}),
|
|
262
|
-
/* @__PURE__ */ (0, T.jsx)(m, {
|
|
263
|
-
defaultSize: 60,
|
|
264
|
-
minSize: 40,
|
|
265
|
-
children: /* @__PURE__ */ (0, T.jsx)("div", {
|
|
266
|
-
ref: F,
|
|
267
|
-
className: "h-full bg-white dark:bg-zinc-900",
|
|
268
|
-
children: /* @__PURE__ */ (0, T.jsx)(D, {
|
|
269
|
-
notification: G,
|
|
270
|
-
previewMode: A,
|
|
271
|
-
onTogglePreview: () => j(!A),
|
|
272
|
-
onCopy: H,
|
|
273
|
-
onDownload: U,
|
|
274
|
-
onFullscreen: W,
|
|
275
|
-
onClose: () => d(null),
|
|
276
|
-
isCopied: M
|
|
277
|
-
})
|
|
278
|
-
})
|
|
279
|
-
})
|
|
280
|
-
]
|
|
281
|
-
}) : /* @__PURE__ */ (0, T.jsxs)("div", {
|
|
282
|
-
className: "flex flex-col items-center justify-center h-full p-4 text-center",
|
|
283
|
-
children: [/* @__PURE__ */ (0, T.jsx)(i, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, T.jsx)("p", {
|
|
284
|
-
className: "text-gray-500 dark:text-gray-400",
|
|
285
|
-
children: "Not connected to server"
|
|
286
|
-
})]
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
//#endregion
|
|
290
|
-
export { O as NotificationsTab };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
-
import { t as r } from "./loader-circle-BLy9A_pp.js";
|
|
4
|
-
import { l as i } from "./react-BajV-X4P.js";
|
|
5
|
-
//#region src/client/components/OAuthCallback.tsx
|
|
6
|
-
var a = /* @__PURE__ */ e(t(), 1), o = n();
|
|
7
|
-
function s() {
|
|
8
|
-
let [e, t] = (0, a.useState)("processing"), [n, s] = (0, a.useState)("");
|
|
9
|
-
return (0, a.useEffect)(() => {
|
|
10
|
-
console.log("[OAuthCallback] Component mounted, handling authorization..."), console.log("[OAuthCallback] Current URL:", window.location.href), i().then(() => {
|
|
11
|
-
console.log("[OAuthCallback] Authorization successful"), t("success");
|
|
12
|
-
}).catch((e) => {
|
|
13
|
-
console.error("[OAuthCallback] Authorization failed:", e), t("error"), s(e instanceof Error ? e.message : String(e));
|
|
14
|
-
});
|
|
15
|
-
}, []), e === "processing" ? /* @__PURE__ */ (0, o.jsx)("div", {
|
|
16
|
-
className: "h-screen w-full flex items-center justify-center bg-white dark:bg-zinc-900",
|
|
17
|
-
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
18
|
-
className: "flex flex-col items-center gap-4",
|
|
19
|
-
children: [/* @__PURE__ */ (0, o.jsx)(r, { className: "h-8 w-8 animate-spin text-zinc-600 dark:text-zinc-400" }), /* @__PURE__ */ (0, o.jsx)("p", {
|
|
20
|
-
className: "text-sm text-zinc-600 dark:text-zinc-400",
|
|
21
|
-
children: "Completing authentication..."
|
|
22
|
-
})]
|
|
23
|
-
})
|
|
24
|
-
}) : e === "error" ? /* @__PURE__ */ (0, o.jsx)("div", {
|
|
25
|
-
className: "h-screen w-full flex items-center justify-center bg-white dark:bg-zinc-900",
|
|
26
|
-
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
27
|
-
className: "max-w-md p-6",
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ (0, o.jsx)("h1", {
|
|
30
|
-
className: "text-xl font-semibold text-red-600 dark:text-red-400 mb-2",
|
|
31
|
-
children: "Authentication Error"
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ (0, o.jsx)("p", {
|
|
34
|
-
className: "text-sm text-zinc-600 dark:text-zinc-400 mb-4",
|
|
35
|
-
children: n
|
|
36
|
-
}),
|
|
37
|
-
/* @__PURE__ */ (0, o.jsx)("p", {
|
|
38
|
-
className: "text-xs text-zinc-500 dark:text-zinc-500",
|
|
39
|
-
children: "You can close this window and try again."
|
|
40
|
-
})
|
|
41
|
-
]
|
|
42
|
-
})
|
|
43
|
-
}) : /* @__PURE__ */ (0, o.jsx)("div", {
|
|
44
|
-
className: "h-screen w-full flex items-center justify-center bg-white dark:bg-zinc-900",
|
|
45
|
-
children: /* @__PURE__ */ (0, o.jsxs)("div", {
|
|
46
|
-
className: "max-w-md p-6",
|
|
47
|
-
children: [/* @__PURE__ */ (0, o.jsx)("h1", {
|
|
48
|
-
className: "text-xl font-semibold text-green-600 dark:text-green-400 mb-2",
|
|
49
|
-
children: "Authentication Successful!"
|
|
50
|
-
}), /* @__PURE__ */ (0, o.jsx)("p", {
|
|
51
|
-
className: "text-sm text-zinc-600 dark:text-zinc-400",
|
|
52
|
-
children: "Redirecting you back..."
|
|
53
|
-
})]
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
//#endregion
|
|
58
|
-
export { s as OAuthCallback };
|