@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,564 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Pr as n, f as r, sr as i } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { t as a } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
-
import { t as o } from "./AnimatePresence-Dcw-FOy8.js";
|
|
5
|
-
import { n as s, r as c, t as l } from "./WidgetWrapper-B4H3Fek7.js";
|
|
6
|
-
import { t as u } from "./brush-B_mKhyxG.js";
|
|
7
|
-
import { a as d, i as f, t as p } from "./browser-CbQIH4w2.js";
|
|
8
|
-
import { n as m, t as h } from "./zap-Mb-pbw2X.js";
|
|
9
|
-
import { t as g } from "./clock-CmUbSx_B.js";
|
|
10
|
-
import { t as _ } from "./code-V_0nf5rg.js";
|
|
11
|
-
import { a as v, t as y } from "./JSONDisplay-BFxf5oEu.js";
|
|
12
|
-
import { t as b } from "./folder-open-B3lu2rG_.js";
|
|
13
|
-
import { a as x, i as S, n as C, o as w, r as T, t as E } from "./shared-DaILIQPP.js";
|
|
14
|
-
import { t as D } from "./maximize-BALCV_ep.js";
|
|
15
|
-
import { d as O, t as k } from "./telemetry-DabTAQ8x.js";
|
|
16
|
-
import { c as A, r as j, s as M } from "./react-BajV-X4P.js";
|
|
17
|
-
import { t as N } from "./spinner-jQtC7EBj.js";
|
|
18
|
-
import { n as P } from "./InspectorContext-UjtEbNod.js";
|
|
19
|
-
import { t as F } from "./useConfig-Btmh8wjJ.js";
|
|
20
|
-
import { t as I } from "./useViewHostProps-B6SKeeH9.js";
|
|
21
|
-
//#region src/client/components/resources/ResourceResultDisplay.tsx
|
|
22
|
-
var L = /* @__PURE__ */ e(t(), 1), R = a();
|
|
23
|
-
function z(e) {
|
|
24
|
-
if ("error" in e && e.error && typeof e.error == "string") return e.error;
|
|
25
|
-
if (!("isError" in e && e.isError)) return null;
|
|
26
|
-
if ("contents" in e && Array.isArray(e.contents)) {
|
|
27
|
-
let t = e.contents.filter((e) => "text" in e).map((e) => e.text).filter(Boolean);
|
|
28
|
-
if (t.length > 0) return t.join("\n");
|
|
29
|
-
}
|
|
30
|
-
return "An error occurred";
|
|
31
|
-
}
|
|
32
|
-
function B({ serverId: e, viewId: t, resourceUri: n, toolOutput: r, toolMetadata: i, readResource: a, customProps: o, displayMode: s, onDisplayModeChange: c }) {
|
|
33
|
-
let u = (0, L.useMemo)(() => ({}), []), d = I({
|
|
34
|
-
serverId: e,
|
|
35
|
-
viewId: t,
|
|
36
|
-
resourceUri: n,
|
|
37
|
-
toolName: n,
|
|
38
|
-
toolInput: u,
|
|
39
|
-
toolOutput: r,
|
|
40
|
-
toolMetadata: i,
|
|
41
|
-
readResource: a,
|
|
42
|
-
displayMode: s,
|
|
43
|
-
onDisplayModeChange: c
|
|
44
|
-
});
|
|
45
|
-
if (!d) return /* @__PURE__ */ (0, R.jsx)(l, {
|
|
46
|
-
className: "w-full h-full min-h-[240px]",
|
|
47
|
-
children: /* @__PURE__ */ (0, R.jsx)(N, { className: "size-5" })
|
|
48
|
-
});
|
|
49
|
-
let f = s === "inline" ? "w-full h-full flex items-center justify-center relative p-4 min-h-0" : "w-full h-full relative p-4", p = o ? JSON.stringify(o) : "no-custom-props";
|
|
50
|
-
return /* @__PURE__ */ (0, R.jsx)(l, {
|
|
51
|
-
className: "w-full h-full min-h-[240px]",
|
|
52
|
-
children: /* @__PURE__ */ (0, R.jsx)(j, {
|
|
53
|
-
viewId: t,
|
|
54
|
-
toolName: n,
|
|
55
|
-
toolInput: u,
|
|
56
|
-
toolOutput: r,
|
|
57
|
-
customProps: o,
|
|
58
|
-
className: f,
|
|
59
|
-
...d
|
|
60
|
-
}, p)
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function V({ result: e, isLoading: t, previewMode: r, serverId: a, readResource: o, onTogglePreview: c, onCopy: l, onDownload: p, onFullscreen: m, isCopied: b = !1, selectedResource: x, llmConfig: S }) {
|
|
64
|
-
let [C, w] = (0, L.useState)(null), T = (0, L.useCallback)((e) => {
|
|
65
|
-
w(e);
|
|
66
|
-
}, []), [E, O] = (0, L.useState)("inline"), k = e?.result && "contents" in e.result && Array.isArray(e.result.contents) && e.result.contents[0]?._meta || {}, j = {
|
|
67
|
-
...e?.resourceAnnotations,
|
|
68
|
-
...k
|
|
69
|
-
}, P = (0, L.useMemo)(() => {
|
|
70
|
-
let e = j?.["mcp-use/propsSchema"];
|
|
71
|
-
if (!e) return [];
|
|
72
|
-
let t = e.def?.shape;
|
|
73
|
-
return t ? Object.entries(t).filter(([, e]) => {
|
|
74
|
-
let t = e?.def?.type ?? e?.type;
|
|
75
|
-
return t !== "optional" && t !== "default";
|
|
76
|
-
}).map(([e]) => e) : e.required ?? [];
|
|
77
|
-
}, [j]), F = A(j) ? "mcp-apps" : null, I = e?.result && "contents" in e.result && Array.isArray(e.result.contents) && e.result.contents.some((e) => M(e.mimeType)), V = j?.ui?.resourceUri || k?.ui?.resourceUri || (I ? e.uri : void 0), H = (F === "mcp-apps" || I) && !!V, U = P.length > 0 && !C;
|
|
78
|
-
if (t) return /* @__PURE__ */ (0, R.jsx)("div", {
|
|
79
|
-
className: "flex absolute left-0 top-0 items-center justify-center w-full h-full",
|
|
80
|
-
children: /* @__PURE__ */ (0, R.jsx)(N, { className: "size-5" })
|
|
81
|
-
});
|
|
82
|
-
if (!e) return /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
83
|
-
className: "flex flex-col items-center justify-center h-full p-4 text-center",
|
|
84
|
-
children: [/* @__PURE__ */ (0, R.jsx)("p", {
|
|
85
|
-
className: "text-gray-500 dark:text-gray-400 mb-2",
|
|
86
|
-
children: "Select a resource to view its contents"
|
|
87
|
-
}), /* @__PURE__ */ (0, R.jsx)("p", {
|
|
88
|
-
className: "text-xs text-gray-400 dark:text-gray-500",
|
|
89
|
-
children: "Choose a resource from the list to see its data"
|
|
90
|
-
})]
|
|
91
|
-
});
|
|
92
|
-
let W = e.error || (e.result ? z(e.result) : null);
|
|
93
|
-
return W ? /* @__PURE__ */ (0, R.jsx)("div", {
|
|
94
|
-
className: "p-4",
|
|
95
|
-
children: /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
96
|
-
className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded p-3",
|
|
97
|
-
children: [/* @__PURE__ */ (0, R.jsx)("p", {
|
|
98
|
-
className: "text-red-800 dark:text-red-300 font-medium",
|
|
99
|
-
children: "Error:"
|
|
100
|
-
}), /* @__PURE__ */ (0, R.jsx)("p", {
|
|
101
|
-
className: "text-red-700 dark:text-red-400 text-sm",
|
|
102
|
-
children: W
|
|
103
|
-
})]
|
|
104
|
-
})
|
|
105
|
-
}) : /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
106
|
-
className: "flex flex-col h-full",
|
|
107
|
-
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
|
|
108
|
-
className: "shrink-0 px-4 py-3 border-b border-gray-200 dark:border-zinc-700 flex items-center justify-between",
|
|
109
|
-
children: [/* @__PURE__ */ (0, R.jsxs)("div", {
|
|
110
|
-
className: "flex items-center gap-2",
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ (0, R.jsxs)("div", {
|
|
113
|
-
className: "flex items-center gap-1",
|
|
114
|
-
children: [/* @__PURE__ */ (0, R.jsx)(g, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, R.jsx)("span", {
|
|
115
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
116
|
-
children: new Date(e.timestamp).toLocaleTimeString()
|
|
117
|
-
})]
|
|
118
|
-
}),
|
|
119
|
-
(() => {
|
|
120
|
-
let t = e?.duration ?? e.result?.duration ?? e.result?.metrics?.durationMs;
|
|
121
|
-
return t === void 0 ? null : /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
122
|
-
className: "flex items-center gap-1",
|
|
123
|
-
children: [/* @__PURE__ */ (0, R.jsx)(h, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, R.jsxs)("span", {
|
|
124
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
125
|
-
children: [t, "ms"]
|
|
126
|
-
})]
|
|
127
|
-
});
|
|
128
|
-
})(),
|
|
129
|
-
H && /* @__PURE__ */ (0, R.jsx)(n, {
|
|
130
|
-
variant: "outline",
|
|
131
|
-
className: "text-xs bg-green-50 dark:bg-green-900/20 border-none border-green-200 dark:border-green-800/50 text-green-600 dark:text-green-400",
|
|
132
|
-
children: "MCP Apps"
|
|
133
|
-
})
|
|
134
|
-
]
|
|
135
|
-
}), /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
136
|
-
className: "flex items-center gap-1",
|
|
137
|
-
children: [
|
|
138
|
-
H && /* @__PURE__ */ (0, R.jsxs)(i, {
|
|
139
|
-
variant: "ghost",
|
|
140
|
-
size: "sm",
|
|
141
|
-
onClick: c,
|
|
142
|
-
className: r ? "" : "text-purple-600 dark:text-purple-400",
|
|
143
|
-
children: [r ? /* @__PURE__ */ (0, R.jsx)(_, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ (0, R.jsx)(u, { className: "h-4 w-4 mr-1" }), r ? "JSON" : "Preview"]
|
|
144
|
-
}),
|
|
145
|
-
/* @__PURE__ */ (0, R.jsx)(i, {
|
|
146
|
-
variant: "ghost",
|
|
147
|
-
size: "sm",
|
|
148
|
-
onClick: l,
|
|
149
|
-
children: b ? /* @__PURE__ */ (0, R.jsx)(d, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, R.jsx)(f, { className: "h-4 w-4" })
|
|
150
|
-
}),
|
|
151
|
-
/* @__PURE__ */ (0, R.jsx)(i, {
|
|
152
|
-
variant: "ghost",
|
|
153
|
-
size: "sm",
|
|
154
|
-
onClick: p,
|
|
155
|
-
children: /* @__PURE__ */ (0, R.jsx)(v, { className: "h-4 w-4" })
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ (0, R.jsx)(i, {
|
|
158
|
-
variant: "ghost",
|
|
159
|
-
size: "sm",
|
|
160
|
-
onClick: m,
|
|
161
|
-
children: /* @__PURE__ */ (0, R.jsx)(D, { className: "h-4 w-4" })
|
|
162
|
-
})
|
|
163
|
-
]
|
|
164
|
-
})]
|
|
165
|
-
}), /* @__PURE__ */ (0, R.jsx)("div", {
|
|
166
|
-
className: "flex-1 overflow-y-auto relative",
|
|
167
|
-
children: H && a && o && V ? r ? /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
168
|
-
className: "flex flex-1 h-full relative flex-col min-h-0",
|
|
169
|
-
"data-testid": "resource-widget-preview",
|
|
170
|
-
children: [/* @__PURE__ */ (0, R.jsx)("div", {
|
|
171
|
-
className: "absolute top-2 right-2 z-10 flex items-center gap-2",
|
|
172
|
-
children: /* @__PURE__ */ (0, R.jsx)(s, {
|
|
173
|
-
toolCallId: `resource-${e.timestamp}`,
|
|
174
|
-
displayMode: E,
|
|
175
|
-
onDisplayModeChange: O,
|
|
176
|
-
propsContext: "resource",
|
|
177
|
-
resourceUri: e.uri,
|
|
178
|
-
resourceAnnotations: j,
|
|
179
|
-
llmConfig: S || null,
|
|
180
|
-
resource: x || null,
|
|
181
|
-
onPropsChange: T,
|
|
182
|
-
requiredProps: P.length > 0 && !C ? P : void 0
|
|
183
|
-
})
|
|
184
|
-
}), U ? /* @__PURE__ */ (0, R.jsx)("div", {
|
|
185
|
-
className: "flex items-center justify-center w-full h-full min-h-[200px] rounded-xl border-2 border-dashed border-gray-300 dark:border-zinc-600 bg-gray-50 dark:bg-zinc-800/50 m-4",
|
|
186
|
-
children: /* @__PURE__ */ (0, R.jsx)("p", {
|
|
187
|
-
className: "text-sm text-gray-500 dark:text-gray-400 text-center px-6",
|
|
188
|
-
children: "This widget requires props, set or generate them in the props debugger"
|
|
189
|
-
})
|
|
190
|
-
}) : /* @__PURE__ */ (0, R.jsx)(B, {
|
|
191
|
-
serverId: a,
|
|
192
|
-
viewId: `resource-${e.timestamp}`,
|
|
193
|
-
resourceUri: V,
|
|
194
|
-
toolOutput: e.result,
|
|
195
|
-
toolMetadata: j,
|
|
196
|
-
readResource: o,
|
|
197
|
-
customProps: C || void 0,
|
|
198
|
-
displayMode: E,
|
|
199
|
-
onDisplayModeChange: O
|
|
200
|
-
})]
|
|
201
|
-
}) : /* @__PURE__ */ (0, R.jsx)("div", {
|
|
202
|
-
className: "px-4 pt-4",
|
|
203
|
-
"data-testid": "resource-result-json",
|
|
204
|
-
children: /* @__PURE__ */ (0, R.jsx)(y, {
|
|
205
|
-
data: e.result,
|
|
206
|
-
filename: `resource-${e.uri.replace(/[^a-zA-Z0-9]/g, "-")}-mcp-apps-${Date.now()}.json`
|
|
207
|
-
})
|
|
208
|
-
}) : /* @__PURE__ */ (0, R.jsx)("div", {
|
|
209
|
-
className: "px-4 pt-4",
|
|
210
|
-
"data-testid": "resource-result-json",
|
|
211
|
-
children: /* @__PURE__ */ (0, R.jsx)(y, {
|
|
212
|
-
data: e.result,
|
|
213
|
-
filename: `resource-${e.uri.replace(/[^a-zA-Z0-9]/g, "-")}-${Date.now()}.json`
|
|
214
|
-
})
|
|
215
|
-
})
|
|
216
|
-
})]
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
//#endregion
|
|
220
|
-
//#region src/client/components/resources/ResourcesList.tsx
|
|
221
|
-
function H({ resources: e, selectedResource: t, onResourceSelect: n, focusedIndex: r }) {
|
|
222
|
-
return e.length === 0 ? /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
223
|
-
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
224
|
-
children: [/* @__PURE__ */ (0, R.jsx)(c, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, R.jsx)("p", {
|
|
225
|
-
className: "text-gray-500 dark:text-gray-400",
|
|
226
|
-
children: "No resources available"
|
|
227
|
-
})]
|
|
228
|
-
}) : /* @__PURE__ */ (0, R.jsx)("div", { children: e.map((e, i) => {
|
|
229
|
-
let a = [e.description, e.mimeType && /* @__PURE__ */ (0, R.jsx)("span", {
|
|
230
|
-
className: "font-mono",
|
|
231
|
-
children: e.mimeType
|
|
232
|
-
}, "mime")].filter(Boolean);
|
|
233
|
-
return /* @__PURE__ */ (0, R.jsx)(T, {
|
|
234
|
-
id: `resource-${e.uri}`,
|
|
235
|
-
"data-testid": `resource-item-${e.name}`,
|
|
236
|
-
isSelected: t?.uri === e.uri,
|
|
237
|
-
isFocused: r === i,
|
|
238
|
-
title: e.name,
|
|
239
|
-
description: a.length > 0 ? /* @__PURE__ */ (0, R.jsxs)("span", {
|
|
240
|
-
className: "flex flex-col gap-1",
|
|
241
|
-
children: [e.description && /* @__PURE__ */ (0, R.jsx)("span", { children: e.description }), e.mimeType && /* @__PURE__ */ (0, R.jsx)("span", {
|
|
242
|
-
className: "text-xs text-gray-500 dark:text-gray-500 font-mono",
|
|
243
|
-
children: e.mimeType
|
|
244
|
-
})]
|
|
245
|
-
}) : void 0,
|
|
246
|
-
onClick: () => n(e)
|
|
247
|
-
}, e.uri);
|
|
248
|
-
}) });
|
|
249
|
-
}
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/client/components/ResourcesTab.tsx
|
|
252
|
-
function U({ ref: e, resources: t, readResource: n, serverId: a, isConnected: s, mcpServerUrl: c, refreshResources: l }) {
|
|
253
|
-
let [u, d] = (0, L.useState)(!1), [f, h] = (0, L.useState)(null), { selectedResourceUri: g, setSelectedResourceUri: _ } = P(), { llmConfig: v } = F({ mcpServerUrl: c }), [y, T] = (0, L.useState)(null), [D, A] = (0, L.useState)(!1), [j, M] = (0, L.useState)(""), [N] = (0, L.useState)("resources"), [I, z] = (0, L.useState)(!0), [B, U] = (0, L.useState)(!1), [W, G] = (0, L.useState)(-1), [K, q] = (0, L.useState)(!1), J = (0, L.useRef)(null), Y = (0, L.useRef)(null), [ee, te] = (0, L.useState)(!1), [X, Z] = (0, L.useState)("list");
|
|
254
|
-
(0, L.useEffect)(() => {
|
|
255
|
-
let e = () => {
|
|
256
|
-
te(window.innerWidth < 1024);
|
|
257
|
-
};
|
|
258
|
-
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
259
|
-
}, []), (0, L.useEffect)(() => {
|
|
260
|
-
Z(f ? "detail" : "list");
|
|
261
|
-
}, [f]), (0, L.useImperativeHandle)(e, () => ({
|
|
262
|
-
focusSearch: () => {
|
|
263
|
-
U(!0), setTimeout(() => {
|
|
264
|
-
J.current && J.current.focus();
|
|
265
|
-
}, 0);
|
|
266
|
-
},
|
|
267
|
-
blurSearch: () => {
|
|
268
|
-
M(""), U(!1), J.current && J.current.blur();
|
|
269
|
-
}
|
|
270
|
-
})), (0, L.useEffect)(() => {
|
|
271
|
-
B && J.current && J.current.focus();
|
|
272
|
-
}, [B]);
|
|
273
|
-
let ne = (0, L.useCallback)(() => {
|
|
274
|
-
j.trim() || U(!1);
|
|
275
|
-
}, [j]), re = (0, L.useCallback)(async () => {
|
|
276
|
-
if (l) {
|
|
277
|
-
d(!0);
|
|
278
|
-
try {
|
|
279
|
-
await l();
|
|
280
|
-
} finally {
|
|
281
|
-
d(!1);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}, [l]), Q = (0, L.useMemo)(() => {
|
|
285
|
-
if (!j) return t;
|
|
286
|
-
let e = j.toLowerCase();
|
|
287
|
-
return t.filter((t) => t.name.toLowerCase().includes(e) || t.description?.toLowerCase().includes(e) || t.uri.toLowerCase().includes(e));
|
|
288
|
-
}, [t, j]), $ = (0, L.useCallback)(async (e) => {
|
|
289
|
-
if (h(e), s) {
|
|
290
|
-
A(!0);
|
|
291
|
-
let t = Date.now();
|
|
292
|
-
try {
|
|
293
|
-
let r = await n(e.uri);
|
|
294
|
-
k(new O({
|
|
295
|
-
resourceUri: e.uri,
|
|
296
|
-
serverId: a,
|
|
297
|
-
success: !0
|
|
298
|
-
})).catch(() => {}), T({
|
|
299
|
-
uri: e.uri,
|
|
300
|
-
result: r,
|
|
301
|
-
timestamp: t,
|
|
302
|
-
resourceAnnotations: {
|
|
303
|
-
...e.annotations,
|
|
304
|
-
...e._meta || {}
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
} catch (n) {
|
|
308
|
-
k(new O({
|
|
309
|
-
resourceUri: e.uri,
|
|
310
|
-
serverId: a,
|
|
311
|
-
success: !1,
|
|
312
|
-
error: n instanceof Error ? n.message : "Unknown error"
|
|
313
|
-
})).catch(() => {}), T({
|
|
314
|
-
uri: e.uri,
|
|
315
|
-
result: {
|
|
316
|
-
contents: [],
|
|
317
|
-
_meta: {}
|
|
318
|
-
},
|
|
319
|
-
error: n instanceof Error ? n.message : "Unknown error",
|
|
320
|
-
timestamp: t,
|
|
321
|
-
resourceAnnotations: {
|
|
322
|
-
...e.annotations,
|
|
323
|
-
...e._meta || {}
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
} finally {
|
|
327
|
-
A(!1);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}, [
|
|
331
|
-
n,
|
|
332
|
-
a,
|
|
333
|
-
s
|
|
334
|
-
]);
|
|
335
|
-
(0, L.useEffect)(() => {
|
|
336
|
-
G(-1);
|
|
337
|
-
}, [j, N]), (0, L.useEffect)(() => {
|
|
338
|
-
let e = (e) => {
|
|
339
|
-
let t = e.target;
|
|
340
|
-
if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.contentEditable === "true" || e.metaKey || e.ctrlKey || e.altKey) return;
|
|
341
|
-
let n = Q;
|
|
342
|
-
if (e.key === "ArrowDown") e.preventDefault(), G((e) => {
|
|
343
|
-
let t = e + 1;
|
|
344
|
-
return t >= n.length ? 0 : t;
|
|
345
|
-
});
|
|
346
|
-
else if (e.key === "ArrowUp") e.preventDefault(), G((e) => {
|
|
347
|
-
let t = e - 1;
|
|
348
|
-
return t < 0 ? n.length - 1 : t;
|
|
349
|
-
});
|
|
350
|
-
else if (e.key === "Enter" && W >= 0) {
|
|
351
|
-
e.preventDefault();
|
|
352
|
-
let t = Q[W];
|
|
353
|
-
t && $(t);
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
357
|
-
}, [
|
|
358
|
-
W,
|
|
359
|
-
Q,
|
|
360
|
-
$
|
|
361
|
-
]), (0, L.useEffect)(() => {
|
|
362
|
-
if (W >= 0) {
|
|
363
|
-
let e = `resource-${Q[W]?.uri}`, t = document.getElementById(e);
|
|
364
|
-
t && t.scrollIntoView({
|
|
365
|
-
behavior: "smooth",
|
|
366
|
-
block: "nearest"
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
}, [W, Q]), (0, L.useEffect)(() => {
|
|
370
|
-
if (g && t.length > 0) {
|
|
371
|
-
let e = t.find((e) => e.uri === g);
|
|
372
|
-
e && f?.uri !== e.uri && (_(null), setTimeout(() => {
|
|
373
|
-
$(e);
|
|
374
|
-
let t = document.getElementById(`resource-${e.uri}`);
|
|
375
|
-
t && t.scrollIntoView({
|
|
376
|
-
behavior: "smooth",
|
|
377
|
-
block: "nearest"
|
|
378
|
-
});
|
|
379
|
-
}, 100));
|
|
380
|
-
}
|
|
381
|
-
}, [
|
|
382
|
-
g,
|
|
383
|
-
t,
|
|
384
|
-
f,
|
|
385
|
-
$,
|
|
386
|
-
_
|
|
387
|
-
]), (0, L.useEffect)(() => {
|
|
388
|
-
if (f) {
|
|
389
|
-
let e = t.find((e) => e.uri === f.uri);
|
|
390
|
-
e && e !== f && (e.description !== f.description || e.mimeType !== f.mimeType || e.name !== f.name) && h(e);
|
|
391
|
-
}
|
|
392
|
-
}, [t, f]);
|
|
393
|
-
let ie = (0, L.useCallback)(async () => {
|
|
394
|
-
if (y) try {
|
|
395
|
-
await p(JSON.stringify(y.result, null, 2)), q(!0), setTimeout(() => q(!1), 2e3);
|
|
396
|
-
} catch (e) {
|
|
397
|
-
console.error("[ResourcesTab] Failed to copy result:", e);
|
|
398
|
-
}
|
|
399
|
-
}, [y]), ae = (0, L.useCallback)(() => {
|
|
400
|
-
if (y) try {
|
|
401
|
-
let e = new globalThis.Blob([JSON.stringify(y.result, null, 2)], { type: "application/json" }), t = URL.createObjectURL(e), n = document.createElement("a");
|
|
402
|
-
n.href = t, n.download = `resource-${Date.now()}.json`, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(t);
|
|
403
|
-
} catch (e) {
|
|
404
|
-
console.error("[ResourcesTab] Failed to download result:", e);
|
|
405
|
-
}
|
|
406
|
-
}, [y]), oe = (0, L.useCallback)(async () => {
|
|
407
|
-
if (Y.current) try {
|
|
408
|
-
document.fullscreenElement ? await document.exitFullscreen() : await Y.current.requestFullscreen();
|
|
409
|
-
} catch (e) {
|
|
410
|
-
console.error("[ResourcesTab] Failed to toggle fullscreen:", e);
|
|
411
|
-
}
|
|
412
|
-
}, []);
|
|
413
|
-
return ee ? /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
414
|
-
className: "h-full flex flex-col overflow-hidden relative bg-background",
|
|
415
|
-
children: [X !== "list" && /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
416
|
-
className: "flex items-center gap-2 p-2 border-b shrink-0 bg-background z-10",
|
|
417
|
-
children: [/* @__PURE__ */ (0, R.jsx)(i, {
|
|
418
|
-
variant: "ghost",
|
|
419
|
-
size: "sm",
|
|
420
|
-
onClick: () => {
|
|
421
|
-
h(null), Z("list");
|
|
422
|
-
},
|
|
423
|
-
className: "p-0 h-8 w-8",
|
|
424
|
-
children: /* @__PURE__ */ (0, R.jsx)(m, { className: "h-4 w-4" })
|
|
425
|
-
}), /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
426
|
-
className: "flex items-center text-sm font-medium",
|
|
427
|
-
children: [/* @__PURE__ */ (0, R.jsx)("button", {
|
|
428
|
-
onClick: () => {
|
|
429
|
-
h(null), Z("list");
|
|
430
|
-
},
|
|
431
|
-
className: "text-muted-foreground hover:text-foreground hover:underline cursor-pointer",
|
|
432
|
-
children: "Resources"
|
|
433
|
-
}), X === "detail" && /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)("span", {
|
|
434
|
-
className: "mx-2 text-muted-foreground",
|
|
435
|
-
children: "/"
|
|
436
|
-
}), /* @__PURE__ */ (0, R.jsx)("span", {
|
|
437
|
-
className: "text-foreground",
|
|
438
|
-
children: "Content"
|
|
439
|
-
})] })]
|
|
440
|
-
})]
|
|
441
|
-
}), /* @__PURE__ */ (0, R.jsx)("div", {
|
|
442
|
-
className: "flex-1 relative overflow-hidden",
|
|
443
|
-
children: /* @__PURE__ */ (0, R.jsxs)(o, {
|
|
444
|
-
initial: !1,
|
|
445
|
-
mode: "popLayout",
|
|
446
|
-
children: [X === "list" && /* @__PURE__ */ (0, R.jsx)(r.div, {
|
|
447
|
-
initial: { x: "-100%" },
|
|
448
|
-
animate: { x: 0 },
|
|
449
|
-
exit: { x: "-100%" },
|
|
450
|
-
transition: {
|
|
451
|
-
type: "spring",
|
|
452
|
-
stiffness: 300,
|
|
453
|
-
damping: 30
|
|
454
|
-
},
|
|
455
|
-
className: "absolute inset-0 flex flex-col bg-background z-0",
|
|
456
|
-
children: /* @__PURE__ */ (0, R.jsx)(C, { children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(E, {
|
|
457
|
-
isScrolled: e,
|
|
458
|
-
title: "Resources",
|
|
459
|
-
icon: b,
|
|
460
|
-
count: Q.length,
|
|
461
|
-
isSearchExpanded: B,
|
|
462
|
-
searchQuery: j,
|
|
463
|
-
searchPlaceholder: "Search resources...",
|
|
464
|
-
onSearchExpand: () => U(!0),
|
|
465
|
-
onSearchChange: M,
|
|
466
|
-
onSearchBlur: ne,
|
|
467
|
-
searchInputRef: J,
|
|
468
|
-
onRefresh: l ? re : void 0,
|
|
469
|
-
isRefreshing: u
|
|
470
|
-
}), /* @__PURE__ */ (0, R.jsx)(H, {
|
|
471
|
-
resources: Q,
|
|
472
|
-
selectedResource: f,
|
|
473
|
-
onResourceSelect: $,
|
|
474
|
-
focusedIndex: W
|
|
475
|
-
})] }) })
|
|
476
|
-
}, "list"), X === "detail" && /* @__PURE__ */ (0, R.jsx)(r.div, {
|
|
477
|
-
initial: { x: "100%" },
|
|
478
|
-
animate: { x: 0 },
|
|
479
|
-
exit: { x: "100%" },
|
|
480
|
-
transition: {
|
|
481
|
-
type: "spring",
|
|
482
|
-
stiffness: 300,
|
|
483
|
-
damping: 30
|
|
484
|
-
},
|
|
485
|
-
className: "absolute inset-0 bg-white dark:bg-zinc-900 z-10",
|
|
486
|
-
children: /* @__PURE__ */ (0, R.jsx)("div", {
|
|
487
|
-
ref: Y,
|
|
488
|
-
className: "h-full",
|
|
489
|
-
children: /* @__PURE__ */ (0, R.jsx)(V, {
|
|
490
|
-
result: y,
|
|
491
|
-
isLoading: D,
|
|
492
|
-
previewMode: I,
|
|
493
|
-
serverId: a,
|
|
494
|
-
readResource: n,
|
|
495
|
-
onTogglePreview: () => z(!I),
|
|
496
|
-
onCopy: ie,
|
|
497
|
-
onDownload: ae,
|
|
498
|
-
onFullscreen: oe,
|
|
499
|
-
isCopied: K,
|
|
500
|
-
selectedResource: f,
|
|
501
|
-
llmConfig: v
|
|
502
|
-
})
|
|
503
|
-
})
|
|
504
|
-
}, "detail")]
|
|
505
|
-
})
|
|
506
|
-
})]
|
|
507
|
-
}) : /* @__PURE__ */ (0, R.jsxs)(w, {
|
|
508
|
-
orientation: "horizontal",
|
|
509
|
-
className: "h-full",
|
|
510
|
-
children: [
|
|
511
|
-
/* @__PURE__ */ (0, R.jsx)(x, {
|
|
512
|
-
defaultSize: "33%",
|
|
513
|
-
children: /* @__PURE__ */ (0, R.jsx)("div", {
|
|
514
|
-
className: "flex h-full flex-col overflow-hidden border-r dark:border-zinc-700",
|
|
515
|
-
children: /* @__PURE__ */ (0, R.jsx)(C, { children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(E, {
|
|
516
|
-
isScrolled: e,
|
|
517
|
-
title: "Resources",
|
|
518
|
-
icon: b,
|
|
519
|
-
count: Q.length,
|
|
520
|
-
isSearchExpanded: B,
|
|
521
|
-
searchQuery: j,
|
|
522
|
-
searchPlaceholder: "Search resources...",
|
|
523
|
-
onSearchExpand: () => U(!0),
|
|
524
|
-
onSearchChange: M,
|
|
525
|
-
onSearchBlur: ne,
|
|
526
|
-
searchInputRef: J,
|
|
527
|
-
onRefresh: l ? re : void 0,
|
|
528
|
-
isRefreshing: u
|
|
529
|
-
}), /* @__PURE__ */ (0, R.jsx)(H, {
|
|
530
|
-
resources: Q,
|
|
531
|
-
selectedResource: f,
|
|
532
|
-
onResourceSelect: $,
|
|
533
|
-
focusedIndex: W
|
|
534
|
-
})] }) })
|
|
535
|
-
})
|
|
536
|
-
}),
|
|
537
|
-
/* @__PURE__ */ (0, R.jsx)(S, {}),
|
|
538
|
-
/* @__PURE__ */ (0, R.jsx)(x, {
|
|
539
|
-
defaultSize: "67%",
|
|
540
|
-
children: /* @__PURE__ */ (0, R.jsx)("div", {
|
|
541
|
-
ref: Y,
|
|
542
|
-
className: "h-full bg-white dark:bg-zinc-900",
|
|
543
|
-
children: /* @__PURE__ */ (0, R.jsx)(V, {
|
|
544
|
-
result: y,
|
|
545
|
-
isLoading: D,
|
|
546
|
-
previewMode: I,
|
|
547
|
-
serverId: a,
|
|
548
|
-
readResource: n,
|
|
549
|
-
onTogglePreview: () => z(!I),
|
|
550
|
-
onCopy: ie,
|
|
551
|
-
onDownload: ae,
|
|
552
|
-
onFullscreen: oe,
|
|
553
|
-
isCopied: K,
|
|
554
|
-
selectedResource: f,
|
|
555
|
-
llmConfig: v
|
|
556
|
-
})
|
|
557
|
-
})
|
|
558
|
-
})
|
|
559
|
-
]
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
U.displayName = "ResourcesTab";
|
|
563
|
-
//#endregion
|
|
564
|
-
export { U as ResourcesTab };
|