@mcp-use/inspector 20.0.0-beta.5 → 20.0.0-beta.51
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,180 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
3
|
-
var n = /* @__PURE__ */ e(((e) => {
|
|
4
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
5
|
-
function r(e, n, r) {
|
|
6
|
-
var i = null;
|
|
7
|
-
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
8
|
-
else r = n;
|
|
9
|
-
return n = r.ref, {
|
|
10
|
-
$$typeof: t,
|
|
11
|
-
type: e,
|
|
12
|
-
key: i,
|
|
13
|
-
ref: n === void 0 ? null : n,
|
|
14
|
-
props: r
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
18
|
-
})), r = /* @__PURE__ */ e(((e) => {
|
|
19
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
20
|
-
function n(e) {
|
|
21
|
-
if (e == null) return null;
|
|
22
|
-
if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
|
|
23
|
-
if (typeof e == "string") return e;
|
|
24
|
-
switch (e) {
|
|
25
|
-
case v: return "Fragment";
|
|
26
|
-
case b: return "Profiler";
|
|
27
|
-
case y: return "StrictMode";
|
|
28
|
-
case w: return "Suspense";
|
|
29
|
-
case T: return "SuspenseList";
|
|
30
|
-
case O: return "Activity";
|
|
31
|
-
}
|
|
32
|
-
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
33
|
-
case _: return "Portal";
|
|
34
|
-
case S: return e.displayName || "Context";
|
|
35
|
-
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
36
|
-
case C:
|
|
37
|
-
var t = e.render;
|
|
38
|
-
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
39
|
-
case E: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
|
|
40
|
-
case D:
|
|
41
|
-
t = e._payload, e = e._init;
|
|
42
|
-
try {
|
|
43
|
-
return n(e(t));
|
|
44
|
-
} catch {}
|
|
45
|
-
}
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
function r(e) {
|
|
49
|
-
return "" + e;
|
|
50
|
-
}
|
|
51
|
-
function i(e) {
|
|
52
|
-
try {
|
|
53
|
-
r(e);
|
|
54
|
-
var t = !1;
|
|
55
|
-
} catch {
|
|
56
|
-
t = !0;
|
|
57
|
-
}
|
|
58
|
-
if (t) {
|
|
59
|
-
t = console;
|
|
60
|
-
var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
61
|
-
return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function a(e) {
|
|
65
|
-
if (e === v) return "<>";
|
|
66
|
-
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
67
|
-
try {
|
|
68
|
-
var t = n(e);
|
|
69
|
-
return t ? "<" + t + ">" : "<...>";
|
|
70
|
-
} catch {
|
|
71
|
-
return "<...>";
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function o() {
|
|
75
|
-
var e = A.A;
|
|
76
|
-
return e === null ? null : e.getOwner();
|
|
77
|
-
}
|
|
78
|
-
function s() {
|
|
79
|
-
return Error("react-stack-top-frame");
|
|
80
|
-
}
|
|
81
|
-
function c(e) {
|
|
82
|
-
if (j.call(e, "key")) {
|
|
83
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
84
|
-
if (t && t.isReactWarning) return !1;
|
|
85
|
-
}
|
|
86
|
-
return e.key !== void 0;
|
|
87
|
-
}
|
|
88
|
-
function l(e, t) {
|
|
89
|
-
function n() {
|
|
90
|
-
P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
91
|
-
}
|
|
92
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
93
|
-
get: n,
|
|
94
|
-
configurable: !0
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function u() {
|
|
98
|
-
var e = n(this.type);
|
|
99
|
-
return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
100
|
-
}
|
|
101
|
-
function d(e, t, n, r, i, a) {
|
|
102
|
-
var o = n.ref;
|
|
103
|
-
return e = {
|
|
104
|
-
$$typeof: g,
|
|
105
|
-
type: e,
|
|
106
|
-
key: t,
|
|
107
|
-
props: n,
|
|
108
|
-
_owner: r
|
|
109
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
110
|
-
enumerable: !1,
|
|
111
|
-
value: null
|
|
112
|
-
}) : Object.defineProperty(e, "ref", {
|
|
113
|
-
enumerable: !1,
|
|
114
|
-
get: u
|
|
115
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
116
|
-
configurable: !1,
|
|
117
|
-
enumerable: !1,
|
|
118
|
-
writable: !0,
|
|
119
|
-
value: 0
|
|
120
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
121
|
-
configurable: !1,
|
|
122
|
-
enumerable: !1,
|
|
123
|
-
writable: !0,
|
|
124
|
-
value: null
|
|
125
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
126
|
-
configurable: !1,
|
|
127
|
-
enumerable: !1,
|
|
128
|
-
writable: !0,
|
|
129
|
-
value: i
|
|
130
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
131
|
-
configurable: !1,
|
|
132
|
-
enumerable: !1,
|
|
133
|
-
writable: !0,
|
|
134
|
-
value: a
|
|
135
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
136
|
-
}
|
|
137
|
-
function f(e, t, r, a, s, u) {
|
|
138
|
-
var f = t.children;
|
|
139
|
-
if (f !== void 0) if (a) if (M(f)) {
|
|
140
|
-
for (a = 0; a < f.length; a++) p(f[a]);
|
|
141
|
-
Object.freeze && Object.freeze(f);
|
|
142
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
143
|
-
else p(f);
|
|
144
|
-
if (j.call(t, "key")) {
|
|
145
|
-
f = n(e);
|
|
146
|
-
var m = Object.keys(t).filter(function(e) {
|
|
147
|
-
return e !== "key";
|
|
148
|
-
});
|
|
149
|
-
a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
|
|
150
|
-
}
|
|
151
|
-
if (f = null, r !== void 0 && (i(r), f = "" + r), c(t) && (i(t.key), f = "" + t.key), "key" in t) for (var h in r = {}, t) h !== "key" && (r[h] = t[h]);
|
|
152
|
-
else r = t;
|
|
153
|
-
return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
|
|
154
|
-
}
|
|
155
|
-
function p(e) {
|
|
156
|
-
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
157
|
-
}
|
|
158
|
-
function m(e) {
|
|
159
|
-
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
160
|
-
}
|
|
161
|
-
var h = t(), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
162
|
-
return null;
|
|
163
|
-
};
|
|
164
|
-
h = { react_stack_bottom_frame: function(e) {
|
|
165
|
-
return e();
|
|
166
|
-
} };
|
|
167
|
-
var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
|
|
168
|
-
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
169
|
-
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
170
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
171
|
-
}, e.jsxs = function(e, t, n) {
|
|
172
|
-
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
173
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
174
|
-
};
|
|
175
|
-
})();
|
|
176
|
-
})), i = /* @__PURE__ */ e(((e, t) => {
|
|
177
|
-
process.env.NODE_ENV === "production" ? t.exports = n() : t.exports = r();
|
|
178
|
-
}));
|
|
179
|
-
//#endregion
|
|
180
|
-
export { i as t };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Cr as n, Rr as r } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { t as i } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
-
//#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/useControlled.mjs
|
|
5
|
-
var a = /* @__PURE__ */ e(t(), 1);
|
|
6
|
-
function o({ controlled: e, default: t, name: r, state: i = "value" }) {
|
|
7
|
-
let { current: o } = a.useRef(e !== void 0), [c, l] = a.useState(t), u = o ? e : c;
|
|
8
|
-
if (process.env.NODE_ENV !== "production") {
|
|
9
|
-
a.useEffect(() => {
|
|
10
|
-
o !== (e !== void 0) && n([
|
|
11
|
-
`A component is changing the ${o ? "" : "un"}controlled ${i} state of ${r} to be ${o ? "un" : ""}controlled.`,
|
|
12
|
-
"Elements should not switch from uncontrolled to controlled (or vice versa).",
|
|
13
|
-
`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,
|
|
14
|
-
"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
|
|
15
|
-
"More info: https://fb.me/react-controlled-components"
|
|
16
|
-
].join("\n"));
|
|
17
|
-
}, [
|
|
18
|
-
i,
|
|
19
|
-
r,
|
|
20
|
-
e
|
|
21
|
-
]);
|
|
22
|
-
let { current: c } = a.useRef(t);
|
|
23
|
-
a.useEffect(() => {
|
|
24
|
-
!o && s(c) !== s(t) && n([`A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"));
|
|
25
|
-
}, [t]);
|
|
26
|
-
}
|
|
27
|
-
return [u, a.useCallback((e) => {
|
|
28
|
-
o || l(e);
|
|
29
|
-
}, [])];
|
|
30
|
-
}
|
|
31
|
-
function s(e) {
|
|
32
|
-
let t = 0, n = /* @__PURE__ */ new WeakMap();
|
|
33
|
-
try {
|
|
34
|
-
return JSON.stringify(e, function(e, r) {
|
|
35
|
-
if (!(e === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
|
|
36
|
-
if (typeof r == "bigint") return `__bigint__:${r}`;
|
|
37
|
-
if (typeof r == "object" && r) {
|
|
38
|
-
let e = n.get(r);
|
|
39
|
-
if (e !== void 0) return `__object__:${e}`;
|
|
40
|
-
n.set(r, t), t += 1;
|
|
41
|
-
}
|
|
42
|
-
return r;
|
|
43
|
-
}
|
|
44
|
-
}) ?? `__top__:${typeof e}`;
|
|
45
|
-
} catch {
|
|
46
|
-
return "__unserializable__";
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/client/components/ui/label.tsx
|
|
51
|
-
var c = i();
|
|
52
|
-
function l({ className: e, ...t }) {
|
|
53
|
-
return /* @__PURE__ */ (0, c.jsx)("label", {
|
|
54
|
-
"data-slot": "label",
|
|
55
|
-
className: r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
56
|
-
...t
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
//#endregion
|
|
60
|
-
export { o as n, l as t };
|
|
@@ -1,423 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { n } from "./basePath-B8HuhIMu.js";
|
|
3
|
-
//#region src/client/auth/manufact-auth.ts
|
|
4
|
-
var r = /* @__PURE__ */ e(t(), 1), i = "openid profile email offline_access", a = "mcp-inspector:manufact-auth", o = "manufact:session-changed", s = {
|
|
5
|
-
loaded: !0,
|
|
6
|
-
authorizing: !1,
|
|
7
|
-
accessToken: null,
|
|
8
|
-
user: null,
|
|
9
|
-
mode: null
|
|
10
|
-
}, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = null, p = !1;
|
|
11
|
-
typeof window < "u" && window.addEventListener("message", (e) => {
|
|
12
|
-
if (e.data?.type !== "manufact:invalidate-oauth-client") return;
|
|
13
|
-
for (let e of c.keys()) h()?.removeItem(x(e, "client"));
|
|
14
|
-
let t = f;
|
|
15
|
-
!t || p || (p = !0, U(t, { isRetry: !0 }).finally(() => {
|
|
16
|
-
p = !1;
|
|
17
|
-
}));
|
|
18
|
-
});
|
|
19
|
-
function m(e) {
|
|
20
|
-
let t = c.get(e);
|
|
21
|
-
if (t) return t;
|
|
22
|
-
let n = {
|
|
23
|
-
...s,
|
|
24
|
-
loaded: !1
|
|
25
|
-
};
|
|
26
|
-
return c.set(e, n), n;
|
|
27
|
-
}
|
|
28
|
-
function h() {
|
|
29
|
-
return typeof window > "u" ? null : window.localStorage;
|
|
30
|
-
}
|
|
31
|
-
function g(e) {
|
|
32
|
-
return new URL(e).origin;
|
|
33
|
-
}
|
|
34
|
-
function _(e, t) {
|
|
35
|
-
let n = new URL(e), r = new URL(t), i = new Set(["localhost", "127.0.0.1"]);
|
|
36
|
-
return i.has(n.hostname) && i.has(r.hostname) ? n.origin === r.origin : (n.hostname === "manufact.com" || n.hostname.endsWith(".manufact.com")) && (r.hostname === "manufact.com" || r.hostname.endsWith(".manufact.com"));
|
|
37
|
-
}
|
|
38
|
-
function v(e) {
|
|
39
|
-
let t = window.__MANUFACT_LOGIN_URL__;
|
|
40
|
-
if (t) return new URL(t).origin;
|
|
41
|
-
let n = new URL(e);
|
|
42
|
-
return n.hostname === "localhost" || n.hostname === "127.0.0.1" ? `${n.protocol}//${n.hostname}:3000` : `${n.protocol}//manufact.com`;
|
|
43
|
-
}
|
|
44
|
-
function y(e) {
|
|
45
|
-
return `${v(e)}/login`;
|
|
46
|
-
}
|
|
47
|
-
function b(e) {
|
|
48
|
-
return `${v(e)}/auth/embedded-sign-out`;
|
|
49
|
-
}
|
|
50
|
-
function x(e, t) {
|
|
51
|
-
return `${a}:${t}:${e}`;
|
|
52
|
-
}
|
|
53
|
-
function S(e) {
|
|
54
|
-
return h()?.getItem(x(e, "skip-session")) === "1";
|
|
55
|
-
}
|
|
56
|
-
function C(e, t) {
|
|
57
|
-
let n = x(e, "skip-session");
|
|
58
|
-
t ? h()?.setItem(n, "1") : h()?.removeItem(n);
|
|
59
|
-
}
|
|
60
|
-
function w(e) {
|
|
61
|
-
return `${a}:state:${e}`;
|
|
62
|
-
}
|
|
63
|
-
function T(e) {
|
|
64
|
-
let t = h()?.getItem(e);
|
|
65
|
-
if (!t) return null;
|
|
66
|
-
try {
|
|
67
|
-
return JSON.parse(t);
|
|
68
|
-
} catch {
|
|
69
|
-
return h()?.removeItem(e), null;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function E(e, t) {
|
|
73
|
-
h()?.setItem(e, JSON.stringify(t));
|
|
74
|
-
}
|
|
75
|
-
function D(e, t) {
|
|
76
|
-
c.set(e, {
|
|
77
|
-
...c.get(e) ?? s,
|
|
78
|
-
...t
|
|
79
|
-
}), l.forEach((e) => e()), window.dispatchEvent(new CustomEvent(o));
|
|
80
|
-
}
|
|
81
|
-
function O(e) {
|
|
82
|
-
let t = "";
|
|
83
|
-
return e.forEach((e) => {
|
|
84
|
-
t += String.fromCharCode(e);
|
|
85
|
-
}), btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
86
|
-
}
|
|
87
|
-
function k(e = 32) {
|
|
88
|
-
let t = new Uint8Array(e);
|
|
89
|
-
return crypto.getRandomValues(t), O(t);
|
|
90
|
-
}
|
|
91
|
-
async function A(e) {
|
|
92
|
-
let t = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(e));
|
|
93
|
-
return O(new Uint8Array(t));
|
|
94
|
-
}
|
|
95
|
-
async function j(e) {
|
|
96
|
-
let t = await fetch(`${e}/api/auth/.well-known/openid-configuration`);
|
|
97
|
-
if (!t.ok) throw Error("Manufact OAuth discovery failed");
|
|
98
|
-
return await t.json();
|
|
99
|
-
}
|
|
100
|
-
function M() {
|
|
101
|
-
return `${window.location.origin}${n()}/auth/callback`;
|
|
102
|
-
}
|
|
103
|
-
function N(e) {
|
|
104
|
-
return e === "localhost" || e === "127.0.0.1";
|
|
105
|
-
}
|
|
106
|
-
function P(e) {
|
|
107
|
-
try {
|
|
108
|
-
let t = new URL(e).hostname, n = typeof window < "u" ? new URL(window.location.href).hostname : "";
|
|
109
|
-
return N(t) && N(n);
|
|
110
|
-
} catch {
|
|
111
|
-
return !1;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
async function F(e, t, n) {
|
|
115
|
-
let r = new URL(`${e}/api/auth/oauth2/authorize`);
|
|
116
|
-
r.searchParams.set("response_type", "code"), r.searchParams.set("client_id", t), r.searchParams.set("redirect_uri", n), r.searchParams.set("scope", i), r.searchParams.set("code_challenge", await A(k(32))), r.searchParams.set("code_challenge_method", "S256"), r.searchParams.set("state", "client-probe"), r.searchParams.set("prompt", "none");
|
|
117
|
-
try {
|
|
118
|
-
let e = await fetch(r.toString(), {
|
|
119
|
-
method: "GET",
|
|
120
|
-
redirect: "manual",
|
|
121
|
-
credentials: "include"
|
|
122
|
-
}), t = e.headers.get("location") ?? "";
|
|
123
|
-
return t.includes("/auth/error") && t.includes("invalid_client") ? !1 : e.status >= 300 && e.status < 400 || e.type === "opaqueredirect" ? !!t && !t.includes("/auth/error") : !0;
|
|
124
|
-
} catch {
|
|
125
|
-
return !1;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
async function I(e, t) {
|
|
129
|
-
let n = M(), r = x(e, "client"), a = T(r), o = P(e);
|
|
130
|
-
if (!o && a?.client_id && a.redirect_uri === n) {
|
|
131
|
-
if (await F(e, a.client_id, n)) return a;
|
|
132
|
-
h()?.removeItem(r);
|
|
133
|
-
} else o && a?.client_id && h()?.removeItem(r);
|
|
134
|
-
if (!t.registration_endpoint) throw Error("Manufact OAuth registration is unavailable");
|
|
135
|
-
let s = await fetch(t.registration_endpoint, {
|
|
136
|
-
method: "POST",
|
|
137
|
-
headers: { "Content-Type": "application/json" },
|
|
138
|
-
body: JSON.stringify({
|
|
139
|
-
client_name: "mcp-use Inspector",
|
|
140
|
-
redirect_uris: [n],
|
|
141
|
-
grant_types: ["authorization_code", "refresh_token"],
|
|
142
|
-
response_types: ["code"],
|
|
143
|
-
token_endpoint_auth_method: "none",
|
|
144
|
-
scope: i
|
|
145
|
-
})
|
|
146
|
-
});
|
|
147
|
-
if (!s.ok) throw Error("Could not register Inspector with Manufact");
|
|
148
|
-
let c = await s.json();
|
|
149
|
-
if (!c.client_id) throw Error("Manufact returned no OAuth client ID");
|
|
150
|
-
let l = {
|
|
151
|
-
...c,
|
|
152
|
-
redirect_uri: n
|
|
153
|
-
};
|
|
154
|
-
return E(r, l), l;
|
|
155
|
-
}
|
|
156
|
-
async function L(e, t) {
|
|
157
|
-
let n = await fetch(e, {
|
|
158
|
-
method: "POST",
|
|
159
|
-
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
160
|
-
body: new URLSearchParams(t)
|
|
161
|
-
}), r = await n.json().catch(() => ({}));
|
|
162
|
-
if (!n.ok || !r.access_token) throw Error(r.error_description ?? "Manufact token exchange failed");
|
|
163
|
-
return {
|
|
164
|
-
access_token: r.access_token,
|
|
165
|
-
refresh_token: r.refresh_token,
|
|
166
|
-
token_type: r.token_type,
|
|
167
|
-
expires_at: Date.now() + (r.expires_in ?? 3600) * 1e3
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
async function R(e, t) {
|
|
171
|
-
if (!t.refresh_token) return null;
|
|
172
|
-
let n = d.get(e);
|
|
173
|
-
if (n) return n;
|
|
174
|
-
let r = (async () => {
|
|
175
|
-
try {
|
|
176
|
-
let n = await j(e), r = T(x(e, "client"));
|
|
177
|
-
if (!r?.client_id) return null;
|
|
178
|
-
let i = await L(n.token_endpoint, {
|
|
179
|
-
grant_type: "refresh_token",
|
|
180
|
-
refresh_token: t.refresh_token,
|
|
181
|
-
client_id: r.client_id
|
|
182
|
-
}), a = {
|
|
183
|
-
...i,
|
|
184
|
-
refresh_token: i.refresh_token ?? t.refresh_token
|
|
185
|
-
};
|
|
186
|
-
return E(x(e, "tokens"), a), a;
|
|
187
|
-
} catch {
|
|
188
|
-
return h()?.removeItem(x(e, "tokens")), null;
|
|
189
|
-
} finally {
|
|
190
|
-
d.delete(e);
|
|
191
|
-
}
|
|
192
|
-
})();
|
|
193
|
-
return d.set(e, r), r;
|
|
194
|
-
}
|
|
195
|
-
async function z(e) {
|
|
196
|
-
let t = T(x(e, "tokens"));
|
|
197
|
-
return t?.access_token ? t.expires_at > Date.now() + 3e4 ? t : R(e, t) : null;
|
|
198
|
-
}
|
|
199
|
-
async function B(e, t) {
|
|
200
|
-
let n = await j(e);
|
|
201
|
-
if (!n.userinfo_endpoint) return null;
|
|
202
|
-
let r = await fetch(n.userinfo_endpoint, { headers: { Authorization: `Bearer ${t}` } });
|
|
203
|
-
if (!r.ok) return null;
|
|
204
|
-
let i = await r.json();
|
|
205
|
-
return i.sub ? {
|
|
206
|
-
id: i.sub,
|
|
207
|
-
name: i.name,
|
|
208
|
-
email: i.email,
|
|
209
|
-
image: i.picture
|
|
210
|
-
} : null;
|
|
211
|
-
}
|
|
212
|
-
async function V(e) {
|
|
213
|
-
try {
|
|
214
|
-
let t = await fetch(`${e}/api/auth/get-session`, { credentials: "include" });
|
|
215
|
-
return t.ok ? (await t.json())?.user ?? null : null;
|
|
216
|
-
} catch {
|
|
217
|
-
return null;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
async function H(e) {
|
|
221
|
-
let t = u.get(e);
|
|
222
|
-
if (t) return t;
|
|
223
|
-
c.set(e, {
|
|
224
|
-
...c.get(e) ?? s,
|
|
225
|
-
loaded: !1
|
|
226
|
-
});
|
|
227
|
-
let n = (async () => {
|
|
228
|
-
try {
|
|
229
|
-
let t = _(typeof window < "u" ? window.location.href : e, e), n = S(e), r = await z(e), i = r ? await B(e, r.access_token) : null;
|
|
230
|
-
if (i && r) {
|
|
231
|
-
C(e, !1), D(e, {
|
|
232
|
-
loaded: !0,
|
|
233
|
-
accessToken: r.access_token,
|
|
234
|
-
user: i,
|
|
235
|
-
mode: "oauth"
|
|
236
|
-
});
|
|
237
|
-
return;
|
|
238
|
-
}
|
|
239
|
-
r && !i && h()?.removeItem(x(e, "tokens"));
|
|
240
|
-
let a = t && !n ? await V(e) : null;
|
|
241
|
-
if (a) {
|
|
242
|
-
D(e, {
|
|
243
|
-
loaded: !0,
|
|
244
|
-
accessToken: null,
|
|
245
|
-
user: a,
|
|
246
|
-
mode: "session"
|
|
247
|
-
});
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
D(e, {
|
|
251
|
-
loaded: !0,
|
|
252
|
-
accessToken: null,
|
|
253
|
-
user: null,
|
|
254
|
-
mode: null
|
|
255
|
-
});
|
|
256
|
-
} catch {
|
|
257
|
-
D(e, {
|
|
258
|
-
loaded: !0,
|
|
259
|
-
accessToken: null,
|
|
260
|
-
user: null,
|
|
261
|
-
mode: null
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
})().finally(() => u.delete(e));
|
|
265
|
-
return u.set(e, n), n;
|
|
266
|
-
}
|
|
267
|
-
async function U(e, t) {
|
|
268
|
-
let n = g(e);
|
|
269
|
-
f = e, C(n, !1);
|
|
270
|
-
let r = window.open("", "manufact-oauth", "width=600,height=700,resizable=yes,scrollbars=yes");
|
|
271
|
-
if (!r) throw Error("Allow popups to sign in with Manufact");
|
|
272
|
-
if (D(n, { authorizing: !0 }), _(window.location.href, n)) {
|
|
273
|
-
r.location.href = y(n);
|
|
274
|
-
let e = window.setInterval(async () => {
|
|
275
|
-
if (r.closed) {
|
|
276
|
-
window.clearInterval(e), D(n, { authorizing: !1 });
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
let t = await V(n);
|
|
280
|
-
t && (window.clearInterval(e), r.close(), D(n, {
|
|
281
|
-
loaded: !0,
|
|
282
|
-
authorizing: !1,
|
|
283
|
-
accessToken: null,
|
|
284
|
-
user: t,
|
|
285
|
-
mode: "session"
|
|
286
|
-
}));
|
|
287
|
-
}, 1e3);
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
try {
|
|
291
|
-
let e = await j(n), t = await I(n, e), a = k(64), o = k(), s = M();
|
|
292
|
-
E(w(o), {
|
|
293
|
-
authOrigin: n,
|
|
294
|
-
clientId: t.client_id,
|
|
295
|
-
redirectUri: s,
|
|
296
|
-
codeVerifier: a,
|
|
297
|
-
expiresAt: Date.now() + 600 * 1e3
|
|
298
|
-
});
|
|
299
|
-
let c = new URL(e.authorization_endpoint);
|
|
300
|
-
c.searchParams.set("response_type", "code"), c.searchParams.set("client_id", t.client_id), c.searchParams.set("redirect_uri", s), c.searchParams.set("scope", i), c.searchParams.set("state", o), c.searchParams.set("code_challenge", await A(a)), c.searchParams.set("code_challenge_method", "S256"), c.searchParams.set("prompt", "consent"), r.location.href = c.toString();
|
|
301
|
-
let l = window.setInterval(() => {
|
|
302
|
-
r.closed && (window.clearInterval(l), H(n).finally(() => D(n, { authorizing: !1 })));
|
|
303
|
-
}, 500);
|
|
304
|
-
} catch (e) {
|
|
305
|
-
throw r.close(), D(n, { authorizing: !1 }), e;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
async function W(e = new URL(window.location.href)) {
|
|
309
|
-
let t = e.searchParams.get("state"), n = e.searchParams.get("code"), r = e.searchParams.get("error_description") ?? e.searchParams.get("error");
|
|
310
|
-
if (r) throw Error(r);
|
|
311
|
-
if (!t || !n) throw Error("Missing OAuth code or state");
|
|
312
|
-
let i = w(t), a = T(i);
|
|
313
|
-
if (h()?.removeItem(i), !a || a.expiresAt < Date.now()) throw Error("OAuth state is invalid or expired");
|
|
314
|
-
let o = await L((await j(a.authOrigin)).token_endpoint, {
|
|
315
|
-
grant_type: "authorization_code",
|
|
316
|
-
code: n,
|
|
317
|
-
redirect_uri: a.redirectUri,
|
|
318
|
-
client_id: a.clientId,
|
|
319
|
-
code_verifier: a.codeVerifier
|
|
320
|
-
});
|
|
321
|
-
E(x(a.authOrigin, "tokens"), o), C(a.authOrigin, !1);
|
|
322
|
-
let s = await B(a.authOrigin, o.access_token);
|
|
323
|
-
D(a.authOrigin, {
|
|
324
|
-
loaded: !0,
|
|
325
|
-
authorizing: !1,
|
|
326
|
-
accessToken: o.access_token,
|
|
327
|
-
user: s,
|
|
328
|
-
mode: "oauth"
|
|
329
|
-
}), window.opener?.postMessage({
|
|
330
|
-
type: "manufact:oauth-complete",
|
|
331
|
-
authOrigin: a.authOrigin
|
|
332
|
-
}, window.location.origin);
|
|
333
|
-
}
|
|
334
|
-
function G(e) {
|
|
335
|
-
let t = g(e);
|
|
336
|
-
h()?.removeItem(x(t, "tokens")), D(t, {
|
|
337
|
-
loaded: !0,
|
|
338
|
-
authorizing: !1,
|
|
339
|
-
accessToken: null,
|
|
340
|
-
user: null,
|
|
341
|
-
mode: null
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
async function K(e) {
|
|
345
|
-
let t = T(x(e, "tokens")), n = T(x(e, "client")), r = t?.refresh_token ?? t?.access_token;
|
|
346
|
-
if (!n?.client_id || !r) return null;
|
|
347
|
-
try {
|
|
348
|
-
let i = (await j(e)).revocation_endpoint ?? `${e}/api/auth/oauth2/revoke`;
|
|
349
|
-
return (await fetch(i, {
|
|
350
|
-
method: "POST",
|
|
351
|
-
headers: { "Content-Type": "application/x-www-form-urlencoded" },
|
|
352
|
-
body: new URLSearchParams({
|
|
353
|
-
client_id: n.client_id,
|
|
354
|
-
token: r,
|
|
355
|
-
token_type_hint: t?.refresh_token ? "refresh_token" : "access_token"
|
|
356
|
-
})
|
|
357
|
-
})).status;
|
|
358
|
-
} catch {
|
|
359
|
-
return -1;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
async function q(e) {
|
|
363
|
-
let t = v(e), n = window.open(b(e), "manufact-sign-out", "width=420,height=320");
|
|
364
|
-
return n ? new Promise((r) => {
|
|
365
|
-
let i = !1, a = (e) => {
|
|
366
|
-
i || (i = !0, window.clearTimeout(o), window.clearInterval(c), window.removeEventListener("message", s), r(e));
|
|
367
|
-
}, o = window.setTimeout(() => {
|
|
368
|
-
a({
|
|
369
|
-
attempted: !0,
|
|
370
|
-
signOutOk: !1,
|
|
371
|
-
signOutStatus: null
|
|
372
|
-
});
|
|
373
|
-
}, 3e4), s = (e) => {
|
|
374
|
-
e.origin === t && e.data?.type === "manufact:sign-out-complete" && a({
|
|
375
|
-
attempted: !0,
|
|
376
|
-
signOutOk: !0,
|
|
377
|
-
signOutStatus: 200
|
|
378
|
-
});
|
|
379
|
-
}, c = window.setInterval(() => {
|
|
380
|
-
n.closed && V(e).then((e) => {
|
|
381
|
-
a({
|
|
382
|
-
attempted: !0,
|
|
383
|
-
signOutOk: !e,
|
|
384
|
-
signOutStatus: e ? 401 : 200
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
}, 500);
|
|
388
|
-
window.addEventListener("message", s);
|
|
389
|
-
}) : {
|
|
390
|
-
attempted: !0,
|
|
391
|
-
signOutOk: !1,
|
|
392
|
-
signOutStatus: null
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
async function J(e, t) {
|
|
396
|
-
let n = g(e), r = !!T(x(n, "tokens"))?.access_token;
|
|
397
|
-
t === "oauth" || r ? (await K(n), C(n, !0)) : t === "session" && (await q(n), C(n, !1)), G(e);
|
|
398
|
-
}
|
|
399
|
-
function Y(e) {
|
|
400
|
-
let t = e ? g(e) : null, n = (0, r.useSyncExternalStore)((0, r.useCallback)((e) => (l.add(e), () => l.delete(e)), []), (0, r.useCallback)(() => t ? m(t) : s, [t]), () => s);
|
|
401
|
-
return (0, r.useEffect)(() => {
|
|
402
|
-
if (!t) return;
|
|
403
|
-
H(t);
|
|
404
|
-
let e = (e) => {
|
|
405
|
-
e.origin === window.location.origin && e.data?.type === "manufact:oauth-complete" && e.data.authOrigin === t && H(t).finally(() => D(t, { authorizing: !1 }));
|
|
406
|
-
}, n = (e) => {
|
|
407
|
-
e.key !== x(t, "tokens") || !e.newValue || H(t).finally(() => D(t, { authorizing: !1 }));
|
|
408
|
-
};
|
|
409
|
-
return window.addEventListener("message", e), window.addEventListener("storage", n), () => {
|
|
410
|
-
window.removeEventListener("message", e), window.removeEventListener("storage", n);
|
|
411
|
-
};
|
|
412
|
-
}, [t]), {
|
|
413
|
-
...n,
|
|
414
|
-
authorize: (0, r.useCallback)(async () => {
|
|
415
|
-
e && await U(e);
|
|
416
|
-
}, [e]),
|
|
417
|
-
logout: (0, r.useCallback)(async () => {
|
|
418
|
-
e && await J(e, n.mode);
|
|
419
|
-
}, [e, n.mode])
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
//#endregion
|
|
423
|
-
export { Y as n, W as t };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
|
|
2
|
-
var t = e("maximize-2", [
|
|
3
|
-
["path", {
|
|
4
|
-
d: "M15 3h6v6",
|
|
5
|
-
key: "1q9fwt"
|
|
6
|
-
}],
|
|
7
|
-
["path", {
|
|
8
|
-
d: "m21 3-7 7",
|
|
9
|
-
key: "1l2asr"
|
|
10
|
-
}],
|
|
11
|
-
["path", {
|
|
12
|
-
d: "m3 21 7-7",
|
|
13
|
-
key: "tjx5ai"
|
|
14
|
-
}],
|
|
15
|
-
["path", {
|
|
16
|
-
d: "M9 21H3v-6",
|
|
17
|
-
key: "wtvkvv"
|
|
18
|
-
}]
|
|
19
|
-
]);
|
|
20
|
-
//#endregion
|
|
21
|
-
export { t };
|