@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,901 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Pr as n, Rr as r, cr as i, f as a, lr as o, sr as s, t as c, ur as l } from "./input-C2OBd4PJ.js";
|
|
3
|
-
import { t as u } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
-
import { t as d } from "./label-B9Jmm9be.js";
|
|
5
|
-
import { t as ee } from "./AnimatePresence-Dcw-FOy8.js";
|
|
6
|
-
import { a as f, i as p, n as m, r as h, t as g } from "./select-DDdiIPR2.js";
|
|
7
|
-
import { a as _, i as v, t as y } from "./browser-CbQIH4w2.js";
|
|
8
|
-
import { n as b, t as te } from "./zap-Mb-pbw2X.js";
|
|
9
|
-
import { t as x } from "./clock-CmUbSx_B.js";
|
|
10
|
-
import { t as ne } from "./JSONDisplay-BFxf5oEu.js";
|
|
11
|
-
import { a as S, i as C, n as w, o as T, r as E, s as D } from "./shared-DaILIQPP.js";
|
|
12
|
-
import { t as re } from "./history-Csw4rb44.js";
|
|
13
|
-
import { t as O } from "./maximize-BALCV_ep.js";
|
|
14
|
-
import { t as k } from "./message-square-BnxdpJxZ.js";
|
|
15
|
-
import { n as A, t as j } from "./save-Tgil_AJZ.js";
|
|
16
|
-
import { t as M } from "./play-vuZ5PLnI.js";
|
|
17
|
-
import { t as N } from "./trash-2-RwpJY5SL.js";
|
|
18
|
-
import { t as P } from "./not-found-DEtSM_Wd.js";
|
|
19
|
-
import { t as F } from "./spinner-jQtC7EBj.js";
|
|
20
|
-
import { n as ie } from "./InspectorContext-UjtEbNod.js";
|
|
21
|
-
import { n as ae, t as I } from "./MarkdownRenderer-Ba7nA4Ie.js";
|
|
22
|
-
import { t as L } from "./textarea-DSbwcFVt.js";
|
|
23
|
-
import { t as oe } from "./ListTabHeader-Cv-GmtGF.js";
|
|
24
|
-
//#region src/client/components/prompts/PromptInputForm.tsx
|
|
25
|
-
var R = /* @__PURE__ */ e(t(), 1), z = u();
|
|
26
|
-
function B({ selectedPrompt: e, promptArgs: t, onArgChange: n }) {
|
|
27
|
-
let r = e?.arguments || [];
|
|
28
|
-
if (!(r.length > 0)) return /* @__PURE__ */ (0, z.jsx)("div", {
|
|
29
|
-
className: "flex items-center justify-center h-32 text-gray-500 dark:text-gray-400 text-sm",
|
|
30
|
-
children: "No arguments required"
|
|
31
|
-
});
|
|
32
|
-
let i = (e) => {
|
|
33
|
-
let r = e.name, i = t[r], a = typeof i == "string" ? i : JSON.stringify(i);
|
|
34
|
-
return e.type === "boolean" ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
35
|
-
className: "space-y-2",
|
|
36
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsxs)(d, {
|
|
37
|
-
htmlFor: r,
|
|
38
|
-
className: "text-sm font-medium",
|
|
39
|
-
children: [r, e.required && /* @__PURE__ */ (0, z.jsx)("span", {
|
|
40
|
-
className: "text-red-500 ml-1",
|
|
41
|
-
children: "*"
|
|
42
|
-
})]
|
|
43
|
-
}), e.description && /* @__PURE__ */ (0, z.jsx)("p", {
|
|
44
|
-
className: "mt-0.5 text-xs text-gray-500 dark:text-gray-400",
|
|
45
|
-
children: e.description
|
|
46
|
-
})] }), /* @__PURE__ */ (0, z.jsx)("input", {
|
|
47
|
-
id: r,
|
|
48
|
-
type: "checkbox",
|
|
49
|
-
checked: !!i,
|
|
50
|
-
onChange: (e) => n(r, e.target.checked),
|
|
51
|
-
className: "rounded",
|
|
52
|
-
"aria-label": `Toggle ${r}`
|
|
53
|
-
})]
|
|
54
|
-
}, r) : e.type === "number" ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
55
|
-
className: "space-y-2",
|
|
56
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsxs)(d, {
|
|
57
|
-
htmlFor: r,
|
|
58
|
-
className: "text-sm font-medium",
|
|
59
|
-
children: [r, e.required && /* @__PURE__ */ (0, z.jsx)("span", {
|
|
60
|
-
className: "text-red-500 ml-1",
|
|
61
|
-
children: "*"
|
|
62
|
-
})]
|
|
63
|
-
}), e.description && /* @__PURE__ */ (0, z.jsx)("p", {
|
|
64
|
-
className: "mt-0.5 text-xs text-gray-500 dark:text-gray-400",
|
|
65
|
-
children: e.description
|
|
66
|
-
})] }), /* @__PURE__ */ (0, z.jsx)(c, {
|
|
67
|
-
id: r,
|
|
68
|
-
type: "number",
|
|
69
|
-
value: Number(i) || 0,
|
|
70
|
-
onChange: (e) => n(r, Number(e.target.value)),
|
|
71
|
-
placeholder: `Enter ${r}`
|
|
72
|
-
})]
|
|
73
|
-
}, r) : e.type === "array" || e.type === "object" ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
74
|
-
className: "space-y-2",
|
|
75
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsxs)(d, {
|
|
76
|
-
htmlFor: r,
|
|
77
|
-
className: "text-sm font-medium",
|
|
78
|
-
children: [r, e.required && /* @__PURE__ */ (0, z.jsx)("span", {
|
|
79
|
-
className: "text-red-500 ml-1",
|
|
80
|
-
children: "*"
|
|
81
|
-
})]
|
|
82
|
-
}), e.description && /* @__PURE__ */ (0, z.jsx)("p", {
|
|
83
|
-
className: "mt-0.5 text-xs text-gray-500 dark:text-gray-400",
|
|
84
|
-
children: e.description
|
|
85
|
-
})] }), /* @__PURE__ */ (0, z.jsx)(L, {
|
|
86
|
-
id: r,
|
|
87
|
-
value: a,
|
|
88
|
-
onChange: (e) => {
|
|
89
|
-
try {
|
|
90
|
-
n(r, JSON.parse(e.target.value));
|
|
91
|
-
} catch {
|
|
92
|
-
n(r, e.target.value);
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
placeholder: `Enter ${r} as JSON`,
|
|
96
|
-
className: "font-mono text-sm min-h-[100px]"
|
|
97
|
-
})]
|
|
98
|
-
}, r) : /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
99
|
-
className: "space-y-2",
|
|
100
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsxs)(d, {
|
|
101
|
-
htmlFor: r,
|
|
102
|
-
className: "text-sm font-medium",
|
|
103
|
-
children: [r, e.required && /* @__PURE__ */ (0, z.jsx)("span", {
|
|
104
|
-
className: "text-red-500 ml-1",
|
|
105
|
-
children: "*"
|
|
106
|
-
})]
|
|
107
|
-
}), e.description && /* @__PURE__ */ (0, z.jsx)("p", {
|
|
108
|
-
className: "mt-0.5 text-xs text-gray-500 dark:text-gray-400",
|
|
109
|
-
children: e.description
|
|
110
|
-
})] }), /* @__PURE__ */ (0, z.jsx)(c, {
|
|
111
|
-
id: r,
|
|
112
|
-
"data-testid": `prompt-param-${r}`,
|
|
113
|
-
value: a,
|
|
114
|
-
onChange: (e) => n(r, e.target.value),
|
|
115
|
-
placeholder: `Enter ${r}`
|
|
116
|
-
})]
|
|
117
|
-
}, r);
|
|
118
|
-
};
|
|
119
|
-
return /* @__PURE__ */ (0, z.jsx)("div", {
|
|
120
|
-
className: "space-y-4",
|
|
121
|
-
children: r.map((e) => i(e))
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/client/components/prompts/PromptExecutionPanel.tsx
|
|
126
|
-
function se({ selectedPrompt: e, promptArgs: t, isExecuting: n, isConnected: a, onArgChange: c, onExecute: u, onSave: d }) {
|
|
127
|
-
return (0, R.useEffect)(() => {
|
|
128
|
-
let t = (t) => {
|
|
129
|
-
(t.metaKey || t.ctrlKey) && t.key === "Enter" && e && !n && a && (t.preventDefault(), u());
|
|
130
|
-
};
|
|
131
|
-
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
132
|
-
}, [
|
|
133
|
-
e,
|
|
134
|
-
n,
|
|
135
|
-
a,
|
|
136
|
-
u
|
|
137
|
-
]), e ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
138
|
-
className: "flex flex-col h-full",
|
|
139
|
-
children: [/* @__PURE__ */ (0, z.jsx)("div", {
|
|
140
|
-
className: "flex-shrink-0 p-3 sm:p-6 pt-3 pb-4 pr-3",
|
|
141
|
-
children: /* @__PURE__ */ (0, z.jsxs)("div", { children: [/* @__PURE__ */ (0, z.jsxs)("div", {
|
|
142
|
-
className: "flex flex-row items-center justify-between mb-0 gap-2",
|
|
143
|
-
children: [/* @__PURE__ */ (0, z.jsx)("h3", {
|
|
144
|
-
className: "text-base sm:text-lg font-semibold",
|
|
145
|
-
children: e.name
|
|
146
|
-
}), /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
147
|
-
className: "flex gap-2 flex-shrink-0",
|
|
148
|
-
children: [/* @__PURE__ */ (0, z.jsx)(s, {
|
|
149
|
-
onClick: u,
|
|
150
|
-
disabled: n || !a,
|
|
151
|
-
size: "sm",
|
|
152
|
-
className: i,
|
|
153
|
-
"data-testid": "prompt-execute-button",
|
|
154
|
-
children: n ? /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(F, {}), /* @__PURE__ */ (0, z.jsx)("span", {
|
|
155
|
-
className: "hidden sm:inline",
|
|
156
|
-
children: "Executing..."
|
|
157
|
-
})] }) : /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [
|
|
158
|
-
/* @__PURE__ */ (0, z.jsx)(M, {}),
|
|
159
|
-
/* @__PURE__ */ (0, z.jsx)("span", {
|
|
160
|
-
className: "hidden sm:inline",
|
|
161
|
-
children: "Execute"
|
|
162
|
-
}),
|
|
163
|
-
/* @__PURE__ */ (0, z.jsx)("span", {
|
|
164
|
-
className: o,
|
|
165
|
-
children: "⌘↵"
|
|
166
|
-
})
|
|
167
|
-
] })
|
|
168
|
-
}), /* @__PURE__ */ (0, z.jsxs)(s, {
|
|
169
|
-
variant: "outline",
|
|
170
|
-
onClick: d,
|
|
171
|
-
disabled: n,
|
|
172
|
-
size: "sm",
|
|
173
|
-
className: r(l, "gap-2"),
|
|
174
|
-
children: [/* @__PURE__ */ (0, z.jsx)(j, {}), /* @__PURE__ */ (0, z.jsx)("span", {
|
|
175
|
-
className: "hidden sm:inline",
|
|
176
|
-
children: "Save"
|
|
177
|
-
})]
|
|
178
|
-
})]
|
|
179
|
-
})]
|
|
180
|
-
}), e.description && /* @__PURE__ */ (0, z.jsx)("p", {
|
|
181
|
-
className: "text-sm text-gray-600 dark:text-gray-400 leading-relaxed mt-2",
|
|
182
|
-
children: e.description
|
|
183
|
-
})] })
|
|
184
|
-
}), /* @__PURE__ */ (0, z.jsx)("div", {
|
|
185
|
-
className: "flex-1 overflow-y-auto px-3 sm:px-6 pb-4 pr-3",
|
|
186
|
-
children: /* @__PURE__ */ (0, z.jsx)(B, {
|
|
187
|
-
selectedPrompt: e,
|
|
188
|
-
promptArgs: t,
|
|
189
|
-
onArgChange: c
|
|
190
|
-
})
|
|
191
|
-
})]
|
|
192
|
-
}) : /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
193
|
-
className: "flex flex-col items-center justify-center h-full p-4 text-center",
|
|
194
|
-
children: [/* @__PURE__ */ (0, z.jsx)("p", {
|
|
195
|
-
className: "text-gray-500 dark:text-gray-400 mb-2",
|
|
196
|
-
children: "Select a prompt to get started"
|
|
197
|
-
}), /* @__PURE__ */ (0, z.jsx)("p", {
|
|
198
|
-
className: "text-xs text-gray-400 dark:text-gray-500",
|
|
199
|
-
children: "Choose a prompt from the list to view its details and execute it"
|
|
200
|
-
})]
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/client/components/prompts/PromptMessageCard.tsx
|
|
205
|
-
function V(e) {
|
|
206
|
-
switch (e) {
|
|
207
|
-
case "system": return "default";
|
|
208
|
-
case "user": return "outline";
|
|
209
|
-
case "assistant": return "secondary";
|
|
210
|
-
default: return "outline";
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
function H(e) {
|
|
214
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
215
|
-
}
|
|
216
|
-
function U(e) {
|
|
217
|
-
return typeof e == "string" ? e : e.text ? e.text : e.type === "resource" && e.resource?.text ? e.resource.text : e.type === "image" ? `[Image: ${e.mimeType || "unknown type"}]` : JSON.stringify(e, null, 2);
|
|
218
|
-
}
|
|
219
|
-
function W({ message: e, index: t }) {
|
|
220
|
-
let [r, i] = (0, R.useState)(!1);
|
|
221
|
-
return /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
222
|
-
className: "border border-border rounded-lg overflow-hidden bg-white dark:bg-zinc-900",
|
|
223
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
|
|
224
|
-
className: "flex items-center justify-between px-4 py-2 bg-muted/30 border-b border-border",
|
|
225
|
-
children: [/* @__PURE__ */ (0, z.jsx)(n, {
|
|
226
|
-
variant: V(e.role),
|
|
227
|
-
children: H(e.role)
|
|
228
|
-
}), /* @__PURE__ */ (0, z.jsx)(s, {
|
|
229
|
-
variant: "ghost",
|
|
230
|
-
size: "sm",
|
|
231
|
-
onClick: async () => {
|
|
232
|
-
await y(U(e.content)), i(!0), setTimeout(() => i(!1), 2e3);
|
|
233
|
-
},
|
|
234
|
-
className: "h-6 px-2",
|
|
235
|
-
title: "Copy message content",
|
|
236
|
-
children: r ? /* @__PURE__ */ (0, z.jsx)(_, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ (0, z.jsx)(v, { className: "h-3.5 w-3.5" })
|
|
237
|
-
})]
|
|
238
|
-
}), /* @__PURE__ */ (0, z.jsx)("div", {
|
|
239
|
-
className: "px-4 py-3",
|
|
240
|
-
"data-testid": `prompt-message-content-${t}`,
|
|
241
|
-
children: (() => {
|
|
242
|
-
let t = e.content;
|
|
243
|
-
return typeof t == "string" ? /* @__PURE__ */ (0, z.jsx)(I, { content: t }) : t.type === "text" && t.text ? /* @__PURE__ */ (0, z.jsx)(I, { content: t.text }) : t.type === "image" ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
244
|
-
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
245
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("span", {
|
|
246
|
-
className: "font-mono bg-muted px-2 py-1 rounded",
|
|
247
|
-
children: ["Image: ", t.mimeType || "unknown type"]
|
|
248
|
-
}), t.data && /* @__PURE__ */ (0, z.jsx)("img", {
|
|
249
|
-
src: `data:${t.mimeType};base64,${t.data}`,
|
|
250
|
-
alt: "Prompt image",
|
|
251
|
-
className: "max-w-full max-h-[300px] object-contain rounded-lg border border-border mt-2"
|
|
252
|
-
})]
|
|
253
|
-
}) : t.type === "resource" && t.resource ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
254
|
-
className: "space-y-2",
|
|
255
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
|
|
256
|
-
className: "flex items-center gap-2 text-sm",
|
|
257
|
-
children: [/* @__PURE__ */ (0, z.jsx)("span", {
|
|
258
|
-
className: "text-muted-foreground font-medium",
|
|
259
|
-
children: "Resource:"
|
|
260
|
-
}), /* @__PURE__ */ (0, z.jsx)("code", {
|
|
261
|
-
className: "bg-muted px-2 py-0.5 rounded text-xs font-mono",
|
|
262
|
-
children: t.resource.uri
|
|
263
|
-
})]
|
|
264
|
-
}), t.resource.text && /* @__PURE__ */ (0, z.jsx)("div", {
|
|
265
|
-
className: "mt-2",
|
|
266
|
-
children: /* @__PURE__ */ (0, z.jsx)(I, { content: t.resource.text })
|
|
267
|
-
})]
|
|
268
|
-
}) : /* @__PURE__ */ (0, z.jsx)("pre", {
|
|
269
|
-
className: "bg-muted p-3 rounded-lg text-sm overflow-x-auto",
|
|
270
|
-
children: /* @__PURE__ */ (0, z.jsx)("code", { children: JSON.stringify(t, null, 2) })
|
|
271
|
-
});
|
|
272
|
-
})()
|
|
273
|
-
})]
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region src/client/components/prompts/PromptResultDisplay.tsx
|
|
278
|
-
function G(e) {
|
|
279
|
-
let t = Date.now() - e, n = Math.floor(t / 1e3), r = Math.floor(n / 60), i = Math.floor(r / 60), a = Math.floor(i / 24);
|
|
280
|
-
return n < 10 ? "now" : n < 60 ? `${n}s ago` : r < 60 ? `${r}m ago` : i < 24 ? `${i}h ago` : `${a}d ago`;
|
|
281
|
-
}
|
|
282
|
-
function K(e) {
|
|
283
|
-
return "isError" in e && !e.isError ? null : "error" in e && e.error ? String(e.error) : "isError" in e && e.isError ? "An error occurred" : null;
|
|
284
|
-
}
|
|
285
|
-
function ce({ results: e, copiedResult: t, previewMode: n = !0, onCopy: r, onDelete: i, onFullscreen: a, onTogglePreview: o, onMaximize: c, isMaximized: l = !1 }) {
|
|
286
|
-
let [u, d] = (0, R.useState)(0), [ee, y] = (0, R.useState)(""), [b, x] = (0, R.useState)(!0), S = e[0], C = S ? e.filter((e) => e.promptName === S.promptName) : [], w = C[u] || C[0], T = e.findIndex((e) => e === w);
|
|
287
|
-
if ((0, R.useEffect)(() => {
|
|
288
|
-
C.length > 0 && u >= C.length && d(0);
|
|
289
|
-
}, [C.length, u]), (0, R.useEffect)(() => {
|
|
290
|
-
let e = () => {
|
|
291
|
-
w && y(G(w.timestamp));
|
|
292
|
-
};
|
|
293
|
-
e();
|
|
294
|
-
let t = setInterval(e, 1e3);
|
|
295
|
-
return () => clearInterval(t);
|
|
296
|
-
}, [w]), e.length === 0) return /* @__PURE__ */ (0, z.jsx)("div", {
|
|
297
|
-
className: "flex flex-col h-full bg-white dark:bg-black border-t dark:border-zinc-700",
|
|
298
|
-
children: /* @__PURE__ */ (0, z.jsx)("div", {
|
|
299
|
-
className: "flex-1 overflow-y-auto h-full",
|
|
300
|
-
children: /* @__PURE__ */ (0, z.jsx)("div", {
|
|
301
|
-
className: "flex items-center justify-center h-full",
|
|
302
|
-
children: /* @__PURE__ */ (0, z.jsx)("div", {
|
|
303
|
-
className: "text-center",
|
|
304
|
-
children: /* @__PURE__ */ (0, z.jsx)(P, {
|
|
305
|
-
vertical: !0,
|
|
306
|
-
noBorder: !0,
|
|
307
|
-
message: "No Results yet"
|
|
308
|
-
})
|
|
309
|
-
})
|
|
310
|
-
})
|
|
311
|
-
})
|
|
312
|
-
});
|
|
313
|
-
let E = w.error || K(w.result), D = "messages" in w.result && Array.isArray(w.result.messages);
|
|
314
|
-
return /* @__PURE__ */ (0, z.jsx)("div", {
|
|
315
|
-
className: "flex flex-col h-full bg-white dark:bg-black border-t dark:border-zinc-700",
|
|
316
|
-
children: /* @__PURE__ */ (0, z.jsx)("div", {
|
|
317
|
-
className: "flex-1 overflow-y-auto h-full",
|
|
318
|
-
children: /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
319
|
-
className: "space-y-0 flex-1 h-full flex flex-col",
|
|
320
|
-
children: [/* @__PURE__ */ (0, z.jsxs)("div", {
|
|
321
|
-
className: "flex items-center gap-2 px-4 pt-2 border-b border-gray-200 dark:border-zinc-600 pb-2",
|
|
322
|
-
children: [
|
|
323
|
-
/* @__PURE__ */ (0, z.jsx)("h3", {
|
|
324
|
-
className: "text-sm font-medium hidden sm:block",
|
|
325
|
-
children: "Response"
|
|
326
|
-
}),
|
|
327
|
-
w.duration !== void 0 && /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
328
|
-
className: "hidden sm:flex items-center gap-1",
|
|
329
|
-
children: [/* @__PURE__ */ (0, z.jsx)(te, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, z.jsxs)("span", {
|
|
330
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
331
|
-
children: [w.duration, "ms"]
|
|
332
|
-
})]
|
|
333
|
-
}),
|
|
334
|
-
D && /* @__PURE__ */ (0, z.jsx)("div", {
|
|
335
|
-
className: "flex items-center gap-4 sm:ml-4",
|
|
336
|
-
children: /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
337
|
-
className: "flex items-center gap-2",
|
|
338
|
-
children: [
|
|
339
|
-
/* @__PURE__ */ (0, z.jsx)("button", {
|
|
340
|
-
onClick: () => x(!0),
|
|
341
|
-
className: `text-xs font-medium ${b ? "text-black dark:text-white" : "text-zinc-500 dark:text-zinc-400"}`,
|
|
342
|
-
children: "Formatted"
|
|
343
|
-
}),
|
|
344
|
-
/* @__PURE__ */ (0, z.jsx)("span", {
|
|
345
|
-
className: "text-xs text-zinc-400",
|
|
346
|
-
children: "|"
|
|
347
|
-
}),
|
|
348
|
-
/* @__PURE__ */ (0, z.jsx)("button", {
|
|
349
|
-
onClick: () => x(!1),
|
|
350
|
-
className: `text-xs font-medium ${b ? "text-zinc-500 dark:text-zinc-400" : "text-black dark:text-white"}`,
|
|
351
|
-
children: "Raw"
|
|
352
|
-
})
|
|
353
|
-
]
|
|
354
|
-
})
|
|
355
|
-
}),
|
|
356
|
-
/* @__PURE__ */ (0, z.jsxs)("div", {
|
|
357
|
-
className: "ml-auto flex items-center gap-1",
|
|
358
|
-
children: [
|
|
359
|
-
C.length > 1 && /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
360
|
-
className: "flex items-center gap-2 mr-2",
|
|
361
|
-
children: [/* @__PURE__ */ (0, z.jsx)(re, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, z.jsxs)(g, {
|
|
362
|
-
value: u.toString(),
|
|
363
|
-
onValueChange: (e) => d(parseInt(e)),
|
|
364
|
-
children: [/* @__PURE__ */ (0, z.jsx)(p, {
|
|
365
|
-
className: "h-7 w-[120px] text-xs",
|
|
366
|
-
children: /* @__PURE__ */ (0, z.jsx)(f, {})
|
|
367
|
-
}), /* @__PURE__ */ (0, z.jsx)(m, { children: C.map((e, t) => /* @__PURE__ */ (0, z.jsx)(h, {
|
|
368
|
-
value: t.toString(),
|
|
369
|
-
children: t === 0 ? "Latest" : `${t + 1} call ago`
|
|
370
|
-
}, t)) })]
|
|
371
|
-
})]
|
|
372
|
-
}),
|
|
373
|
-
/* @__PURE__ */ (0, z.jsx)("span", {
|
|
374
|
-
className: "text-xs text-gray-500 dark:text-gray-400 mr-2",
|
|
375
|
-
children: ee
|
|
376
|
-
}),
|
|
377
|
-
/* @__PURE__ */ (0, z.jsx)(s, {
|
|
378
|
-
variant: "ghost",
|
|
379
|
-
size: "sm",
|
|
380
|
-
onClick: () => r(T, w.result),
|
|
381
|
-
className: "h-7 w-7 p-0",
|
|
382
|
-
title: "Copy result",
|
|
383
|
-
children: t === T ? /* @__PURE__ */ (0, z.jsx)(_, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, z.jsx)(v, { className: "h-4 w-4" })
|
|
384
|
-
}),
|
|
385
|
-
i && /* @__PURE__ */ (0, z.jsx)(s, {
|
|
386
|
-
variant: "ghost",
|
|
387
|
-
size: "sm",
|
|
388
|
-
onClick: () => i(T),
|
|
389
|
-
className: "h-7 w-7 p-0",
|
|
390
|
-
title: "Delete result",
|
|
391
|
-
children: /* @__PURE__ */ (0, z.jsx)(N, { className: "h-4 w-4" })
|
|
392
|
-
}),
|
|
393
|
-
a && /* @__PURE__ */ (0, z.jsx)(s, {
|
|
394
|
-
variant: "ghost",
|
|
395
|
-
size: "sm",
|
|
396
|
-
onClick: () => a(T),
|
|
397
|
-
className: "h-7 w-7 p-0 sm:hidden",
|
|
398
|
-
title: "Fullscreen",
|
|
399
|
-
children: /* @__PURE__ */ (0, z.jsx)(O, { className: "h-4 w-4" })
|
|
400
|
-
}),
|
|
401
|
-
c && /* @__PURE__ */ (0, z.jsx)(s, {
|
|
402
|
-
variant: "ghost",
|
|
403
|
-
size: "sm",
|
|
404
|
-
onClick: c,
|
|
405
|
-
className: "h-7 w-7 p-0 hidden sm:flex",
|
|
406
|
-
title: l ? "Restore" : "Maximize",
|
|
407
|
-
children: l ? /* @__PURE__ */ (0, z.jsx)(A, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, z.jsx)(O, { className: "h-4 w-4" })
|
|
408
|
-
})
|
|
409
|
-
]
|
|
410
|
-
})
|
|
411
|
-
]
|
|
412
|
-
}), /* @__PURE__ */ (0, z.jsx)("div", {
|
|
413
|
-
className: "flex-1 overflow-y-auto p-4",
|
|
414
|
-
children: E ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
415
|
-
className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded p-3",
|
|
416
|
-
children: [/* @__PURE__ */ (0, z.jsx)("p", {
|
|
417
|
-
className: "text-red-800 dark:text-red-300 font-medium",
|
|
418
|
-
children: "Error:"
|
|
419
|
-
}), /* @__PURE__ */ (0, z.jsx)("p", {
|
|
420
|
-
className: "text-red-700 dark:text-red-400 text-sm",
|
|
421
|
-
children: E
|
|
422
|
-
})]
|
|
423
|
-
}) : b && D ? /* @__PURE__ */ (0, z.jsx)("div", {
|
|
424
|
-
className: "space-y-3",
|
|
425
|
-
children: ("messages" in w.result ? w.result.messages : []).map((e, t) => /* @__PURE__ */ (0, z.jsx)(W, {
|
|
426
|
-
message: e,
|
|
427
|
-
index: t
|
|
428
|
-
}, t))
|
|
429
|
-
}) : /* @__PURE__ */ (0, z.jsx)(ne, {
|
|
430
|
-
data: w.result,
|
|
431
|
-
filename: `prompt-result-${w.promptName}-${Date.now()}.json`
|
|
432
|
-
})
|
|
433
|
-
})]
|
|
434
|
-
})
|
|
435
|
-
})
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
//#endregion
|
|
439
|
-
//#region src/client/components/prompts/PromptsList.tsx
|
|
440
|
-
function le({ prompts: e, selectedPrompt: t, onPromptSelect: r, focusedIndex: i }) {
|
|
441
|
-
return e.length === 0 ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
442
|
-
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
443
|
-
children: [/* @__PURE__ */ (0, z.jsx)(k, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, z.jsx)("p", {
|
|
444
|
-
className: "text-gray-500 dark:text-gray-400",
|
|
445
|
-
children: "No prompts available"
|
|
446
|
-
})]
|
|
447
|
-
}) : /* @__PURE__ */ (0, z.jsx)("div", { children: e.map((e, a) => /* @__PURE__ */ (0, z.jsx)(E, {
|
|
448
|
-
id: `prompt-${e.name}`,
|
|
449
|
-
"data-testid": `prompt-item-${e.name}`,
|
|
450
|
-
isSelected: t?.name === e.name,
|
|
451
|
-
isFocused: i === a,
|
|
452
|
-
title: e.name,
|
|
453
|
-
description: e.description,
|
|
454
|
-
metadata: e.arguments && e.arguments.length > 0 && /* @__PURE__ */ (0, z.jsxs)(n, {
|
|
455
|
-
variant: "outline",
|
|
456
|
-
className: "text-xs border-gray-300 dark:border-zinc-600 text-gray-600 dark:text-gray-400",
|
|
457
|
-
children: [e.arguments.length, " args"]
|
|
458
|
-
}),
|
|
459
|
-
onClick: () => r(e)
|
|
460
|
-
}, e.name)) });
|
|
461
|
-
}
|
|
462
|
-
//#endregion
|
|
463
|
-
//#region src/client/components/prompts/SavedPromptsList.tsx
|
|
464
|
-
function ue({ savedPrompts: e, selectedPrompt: t, onLoadPrompt: n, onDeletePrompt: r, focusedIndex: i }) {
|
|
465
|
-
return e.length === 0 ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
466
|
-
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
467
|
-
children: [
|
|
468
|
-
/* @__PURE__ */ (0, z.jsx)(x, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }),
|
|
469
|
-
/* @__PURE__ */ (0, z.jsx)("p", {
|
|
470
|
-
className: "text-gray-500 dark:text-gray-400",
|
|
471
|
-
children: "No history"
|
|
472
|
-
}),
|
|
473
|
-
/* @__PURE__ */ (0, z.jsx)("p", {
|
|
474
|
-
className: "text-sm text-gray-400 dark:text-gray-500 mt-1",
|
|
475
|
-
children: "Prompts you execute will appear here"
|
|
476
|
-
})
|
|
477
|
-
]
|
|
478
|
-
}) : /* @__PURE__ */ (0, z.jsx)("div", { children: e.map((e, r) => /* @__PURE__ */ (0, z.jsx)(E, {
|
|
479
|
-
id: `saved-prompt-${e.id}`,
|
|
480
|
-
isSelected: t?.id === e.id,
|
|
481
|
-
isFocused: i === r,
|
|
482
|
-
title: e.name,
|
|
483
|
-
description: `${e.promptName} - ${new Date(e.savedAt).toLocaleString()}`,
|
|
484
|
-
onClick: () => n(e)
|
|
485
|
-
}, e.id)) });
|
|
486
|
-
}
|
|
487
|
-
//#endregion
|
|
488
|
-
//#region src/client/components/PromptsTab.tsx
|
|
489
|
-
var de = "mcp-inspector-saved-prompts";
|
|
490
|
-
function q({ ref: e, prompts: t, callPrompt: n, serverId: r, isConnected: i, refreshPrompts: o }) {
|
|
491
|
-
let [c, l] = (0, R.useState)(!1), [u, d] = (0, R.useState)(null), { selectedPromptName: f, setSelectedPromptName: p } = ie(), [m, h] = (0, R.useState)(null), [g, _] = (0, R.useState)("prompts"), [v, te] = (0, R.useState)([]), [ne, E] = (0, R.useState)(!1), [re, O] = (0, R.useState)(""), [A, j] = (0, R.useState)(!1), [M, N] = (0, R.useState)(-1), P = (0, R.useRef)(null), [F, I] = (0, R.useState)(!1), [L, B] = (0, R.useState)("list"), [V, H] = (0, R.useState)(!1), { filteredPrompts: U, selectedPrompt: W, setSelectedPrompt: G, results: K, handleDeleteResult: q, promptArgs: fe, setPromptArgs: pe, isExecuting: J, handlePromptSelect: Y, handleArgChange: me, executeSelectedPrompt: he, searchQuery: X, setSearchQuery: ge } = ae({
|
|
492
|
-
prompts: t,
|
|
493
|
-
callPrompt: n,
|
|
494
|
-
serverId: r
|
|
495
|
-
}), Z = D(), Q = D();
|
|
496
|
-
(0, R.useEffect)(() => {
|
|
497
|
-
let e = () => {
|
|
498
|
-
I(window.innerWidth < 1024);
|
|
499
|
-
};
|
|
500
|
-
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
501
|
-
}, []), (0, R.useEffect)(() => {
|
|
502
|
-
B(W ? "detail" : "list");
|
|
503
|
-
}, [W]), (0, R.useEffect)(() => {
|
|
504
|
-
F && K.length > 0 && !J && B("response");
|
|
505
|
-
}, [
|
|
506
|
-
K,
|
|
507
|
-
J,
|
|
508
|
-
F
|
|
509
|
-
]), (0, R.useImperativeHandle)(e, () => ({
|
|
510
|
-
focusSearch: () => {
|
|
511
|
-
j(!0), setTimeout(() => {
|
|
512
|
-
P.current && P.current.focus();
|
|
513
|
-
}, 0);
|
|
514
|
-
},
|
|
515
|
-
blurSearch: () => {
|
|
516
|
-
ge(""), j(!1), P.current && P.current.blur();
|
|
517
|
-
}
|
|
518
|
-
})), (0, R.useEffect)(() => {
|
|
519
|
-
try {
|
|
520
|
-
let e = localStorage.getItem(de);
|
|
521
|
-
e && te(JSON.parse(e));
|
|
522
|
-
} catch (e) {
|
|
523
|
-
console.error("[PromptsTab] Failed to load saved prompts:", e);
|
|
524
|
-
}
|
|
525
|
-
}, []);
|
|
526
|
-
let _e = (0, R.useCallback)((e) => {
|
|
527
|
-
try {
|
|
528
|
-
localStorage.setItem(de, JSON.stringify(e));
|
|
529
|
-
} catch (e) {
|
|
530
|
-
console.error("[PromptsTab] Failed to save prompts:", e);
|
|
531
|
-
}
|
|
532
|
-
}, []);
|
|
533
|
-
(0, R.useEffect)(() => {
|
|
534
|
-
A && P.current && P.current.focus();
|
|
535
|
-
}, [A]);
|
|
536
|
-
let ve = (0, R.useCallback)(() => {
|
|
537
|
-
X.trim() || j(!1);
|
|
538
|
-
}, [X]), ye = (0, R.useCallback)(async () => {
|
|
539
|
-
if (o) {
|
|
540
|
-
l(!0);
|
|
541
|
-
try {
|
|
542
|
-
await o();
|
|
543
|
-
} finally {
|
|
544
|
-
l(!1);
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}, [o]), $ = (0, R.useCallback)((e) => {
|
|
548
|
-
let n = t.find((t) => t.name === e.promptName);
|
|
549
|
-
n && (G(n), pe(e.args), d(e));
|
|
550
|
-
}, [
|
|
551
|
-
t,
|
|
552
|
-
G,
|
|
553
|
-
pe
|
|
554
|
-
]);
|
|
555
|
-
(0, R.useEffect)(() => {
|
|
556
|
-
N(-1);
|
|
557
|
-
}, [X, g]), (0, R.useEffect)(() => {
|
|
558
|
-
let e = (e) => {
|
|
559
|
-
let t = e.target;
|
|
560
|
-
if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.contentEditable === "true" || e.metaKey || e.ctrlKey || e.altKey) return;
|
|
561
|
-
let n = g === "prompts" ? U : v;
|
|
562
|
-
if (e.key === "ArrowDown") e.preventDefault(), N((e) => {
|
|
563
|
-
let t = e + 1;
|
|
564
|
-
return t >= n.length ? 0 : t;
|
|
565
|
-
});
|
|
566
|
-
else if (e.key === "ArrowUp") e.preventDefault(), N((e) => {
|
|
567
|
-
let t = e - 1;
|
|
568
|
-
return t < 0 ? n.length - 1 : t;
|
|
569
|
-
});
|
|
570
|
-
else if (e.key === "Enter" && M >= 0) if (e.preventDefault(), g === "prompts") {
|
|
571
|
-
let e = U[M];
|
|
572
|
-
e && Y(e);
|
|
573
|
-
} else {
|
|
574
|
-
let e = v[M];
|
|
575
|
-
e && $(e);
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
|
-
return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
|
|
579
|
-
}, [
|
|
580
|
-
M,
|
|
581
|
-
U,
|
|
582
|
-
v,
|
|
583
|
-
g,
|
|
584
|
-
Y,
|
|
585
|
-
$
|
|
586
|
-
]), (0, R.useEffect)(() => {
|
|
587
|
-
if (M >= 0) {
|
|
588
|
-
let e = g === "prompts" ? `prompt-${U[M]?.name}` : `saved-prompt-${v[M]?.id}`, t = document.getElementById(e);
|
|
589
|
-
t && t.scrollIntoView({
|
|
590
|
-
behavior: "smooth",
|
|
591
|
-
block: "nearest"
|
|
592
|
-
});
|
|
593
|
-
}
|
|
594
|
-
}, [
|
|
595
|
-
M,
|
|
596
|
-
U,
|
|
597
|
-
v,
|
|
598
|
-
g
|
|
599
|
-
]), (0, R.useEffect)(() => {
|
|
600
|
-
if (console.warn("[PromptsTab] Auto-selection effect triggered:", {
|
|
601
|
-
selectedPromptName: f,
|
|
602
|
-
promptsCount: t.length,
|
|
603
|
-
currentSelectedPrompt: W?.name
|
|
604
|
-
}), f && t.length > 0) {
|
|
605
|
-
let e = t.find((e) => e.name === f);
|
|
606
|
-
if (console.warn("[PromptsTab] Prompt lookup result:", {
|
|
607
|
-
selectedPromptName: f,
|
|
608
|
-
promptFound: !!e,
|
|
609
|
-
promptName: e?.name,
|
|
610
|
-
shouldSelect: e && W?.name !== e.name
|
|
611
|
-
}), e && W?.name !== e.name) {
|
|
612
|
-
console.warn("[PromptsTab] Selecting prompt:", e.name), p(null);
|
|
613
|
-
let t = setTimeout(() => {
|
|
614
|
-
Y(e);
|
|
615
|
-
let t = document.getElementById(`prompt-${e.name}`);
|
|
616
|
-
t && (console.warn("[PromptsTab] Scrolling to prompt element"), t.scrollIntoView({
|
|
617
|
-
behavior: "smooth",
|
|
618
|
-
block: "nearest"
|
|
619
|
-
}));
|
|
620
|
-
}, 100);
|
|
621
|
-
return () => clearTimeout(t);
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
}, [
|
|
625
|
-
f,
|
|
626
|
-
t,
|
|
627
|
-
W,
|
|
628
|
-
Y,
|
|
629
|
-
p
|
|
630
|
-
]);
|
|
631
|
-
let be = (0, R.useCallback)(async (e, t) => {
|
|
632
|
-
try {
|
|
633
|
-
await y(JSON.stringify(t, null, 2)), h(e), setTimeout(() => h(null), 2e3);
|
|
634
|
-
} catch (e) {
|
|
635
|
-
console.error("[PromptsTab] Failed to copy result:", e);
|
|
636
|
-
}
|
|
637
|
-
}, []), xe = (0, R.useCallback)((e) => {
|
|
638
|
-
if (F) B("response");
|
|
639
|
-
else {
|
|
640
|
-
let t = K[e];
|
|
641
|
-
if (t) {
|
|
642
|
-
let e = window.open("", "_blank", "width=800,height=600");
|
|
643
|
-
if (e) {
|
|
644
|
-
let n = t.result;
|
|
645
|
-
e.document.write(`
|
|
646
|
-
<html>
|
|
647
|
-
<head>
|
|
648
|
-
<title>${t.promptName} Result</title>
|
|
649
|
-
<style>
|
|
650
|
-
body { font-family: monospace; padding: 20px; background: #1e1e1e; color: #d4d4d4; }
|
|
651
|
-
pre { white-space: pre-wrap; word-wrap: break-word; }
|
|
652
|
-
</style>
|
|
653
|
-
</head>
|
|
654
|
-
<body>
|
|
655
|
-
<h2>${t.promptName}</h2>
|
|
656
|
-
<pre>${JSON.stringify(n, null, 2)}</pre>
|
|
657
|
-
</body>
|
|
658
|
-
</html>
|
|
659
|
-
`), e.document.close();
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
}, [F, K]), Se = (0, R.useCallback)(() => {
|
|
664
|
-
V ? (Z.current && Z.current.expand(), Q.current && Q.current.expand(), H(!1)) : (Z.current && Z.current.collapse(), Q.current && Q.current.collapse(), H(!0));
|
|
665
|
-
}, [
|
|
666
|
-
V,
|
|
667
|
-
Z,
|
|
668
|
-
Q
|
|
669
|
-
]), Ce = (0, R.useCallback)(() => {
|
|
670
|
-
W && (O(""), E(!0));
|
|
671
|
-
}, [W]), we = (0, R.useCallback)((e) => {
|
|
672
|
-
_e(v.filter((t) => t.id !== e)), u?.id === e && d(null);
|
|
673
|
-
}, [
|
|
674
|
-
v,
|
|
675
|
-
_e,
|
|
676
|
-
u
|
|
677
|
-
]);
|
|
678
|
-
return F ? /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
679
|
-
className: "h-full flex flex-col overflow-hidden relative bg-background",
|
|
680
|
-
children: [L !== "list" && /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
681
|
-
className: "flex items-center gap-2 p-2 border-b shrink-0 bg-background z-10",
|
|
682
|
-
children: [/* @__PURE__ */ (0, z.jsx)(s, {
|
|
683
|
-
variant: "ghost",
|
|
684
|
-
size: "sm",
|
|
685
|
-
onClick: () => {
|
|
686
|
-
L === "response" ? B("detail") : (G(null), B("list"));
|
|
687
|
-
},
|
|
688
|
-
className: "p-0 h-8 w-8",
|
|
689
|
-
children: /* @__PURE__ */ (0, z.jsx)(b, { className: "h-4 w-4" })
|
|
690
|
-
}), /* @__PURE__ */ (0, z.jsxs)("div", {
|
|
691
|
-
className: "flex items-center text-sm font-medium",
|
|
692
|
-
children: [
|
|
693
|
-
/* @__PURE__ */ (0, z.jsx)("button", {
|
|
694
|
-
onClick: () => {
|
|
695
|
-
G(null), B("list");
|
|
696
|
-
},
|
|
697
|
-
className: "text-muted-foreground hover:text-foreground hover:underline cursor-pointer",
|
|
698
|
-
children: "Prompts"
|
|
699
|
-
}),
|
|
700
|
-
L === "detail" && /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
|
|
701
|
-
className: "mx-2 text-muted-foreground",
|
|
702
|
-
children: "/"
|
|
703
|
-
}), /* @__PURE__ */ (0, z.jsx)("button", {
|
|
704
|
-
onClick: () => {
|
|
705
|
-
B("response");
|
|
706
|
-
},
|
|
707
|
-
className: L === "detail" ? "text-foreground hover:underline" : L === "response" ? "text-muted-foreground hover:text-foreground hover:underline cursor-pointer" : "text-muted-foreground",
|
|
708
|
-
children: "Execute"
|
|
709
|
-
})] }),
|
|
710
|
-
L === "response" && /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)("span", {
|
|
711
|
-
className: "mx-2 text-muted-foreground",
|
|
712
|
-
children: "/"
|
|
713
|
-
}), /* @__PURE__ */ (0, z.jsx)("span", {
|
|
714
|
-
className: "text-foreground",
|
|
715
|
-
children: "Response"
|
|
716
|
-
})] })
|
|
717
|
-
]
|
|
718
|
-
})]
|
|
719
|
-
}), /* @__PURE__ */ (0, z.jsx)("div", {
|
|
720
|
-
className: "flex-1 relative overflow-hidden",
|
|
721
|
-
children: /* @__PURE__ */ (0, z.jsxs)(ee, {
|
|
722
|
-
initial: !1,
|
|
723
|
-
mode: "popLayout",
|
|
724
|
-
children: [
|
|
725
|
-
L === "list" && /* @__PURE__ */ (0, z.jsx)(a.div, {
|
|
726
|
-
initial: { x: "-100%" },
|
|
727
|
-
animate: { x: 0 },
|
|
728
|
-
exit: { x: "-100%" },
|
|
729
|
-
transition: {
|
|
730
|
-
type: "spring",
|
|
731
|
-
stiffness: 300,
|
|
732
|
-
damping: 30
|
|
733
|
-
},
|
|
734
|
-
className: "absolute inset-0 flex flex-col bg-background z-0",
|
|
735
|
-
children: /* @__PURE__ */ (0, z.jsx)(w, { children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(oe, {
|
|
736
|
-
isScrolled: e,
|
|
737
|
-
activeTab: g,
|
|
738
|
-
isSearchExpanded: A,
|
|
739
|
-
searchQuery: X,
|
|
740
|
-
primaryTabName: "prompts",
|
|
741
|
-
secondaryTabName: "saved",
|
|
742
|
-
primaryTabTitle: "Prompts",
|
|
743
|
-
secondaryTabTitle: "History",
|
|
744
|
-
primaryCount: U.length,
|
|
745
|
-
secondaryCount: v.length,
|
|
746
|
-
primaryIcon: k,
|
|
747
|
-
secondaryIcon: x,
|
|
748
|
-
searchPlaceholder: "Search prompts...",
|
|
749
|
-
onSearchExpand: () => j(!0),
|
|
750
|
-
onSearchChange: ge,
|
|
751
|
-
onSearchBlur: ve,
|
|
752
|
-
onTabSwitch: () => _(g === "prompts" ? "saved" : "prompts"),
|
|
753
|
-
searchInputRef: P,
|
|
754
|
-
onRefresh: o ? ye : void 0,
|
|
755
|
-
isRefreshing: c
|
|
756
|
-
}), g === "prompts" ? /* @__PURE__ */ (0, z.jsx)(le, {
|
|
757
|
-
prompts: U,
|
|
758
|
-
selectedPrompt: W,
|
|
759
|
-
onPromptSelect: Y,
|
|
760
|
-
focusedIndex: M
|
|
761
|
-
}) : /* @__PURE__ */ (0, z.jsx)(ue, {
|
|
762
|
-
savedPrompts: v,
|
|
763
|
-
selectedPrompt: u,
|
|
764
|
-
onLoadPrompt: $,
|
|
765
|
-
onDeletePrompt: we,
|
|
766
|
-
focusedIndex: M
|
|
767
|
-
})] }) })
|
|
768
|
-
}, "list"),
|
|
769
|
-
L === "detail" && /* @__PURE__ */ (0, z.jsx)(a.div, {
|
|
770
|
-
initial: { x: "100%" },
|
|
771
|
-
animate: { x: 0 },
|
|
772
|
-
exit: { x: "-100%" },
|
|
773
|
-
transition: {
|
|
774
|
-
type: "spring",
|
|
775
|
-
stiffness: 300,
|
|
776
|
-
damping: 30
|
|
777
|
-
},
|
|
778
|
-
className: "absolute inset-0 bg-background z-10",
|
|
779
|
-
children: /* @__PURE__ */ (0, z.jsx)(se, {
|
|
780
|
-
selectedPrompt: W,
|
|
781
|
-
promptArgs: fe,
|
|
782
|
-
isExecuting: J,
|
|
783
|
-
isConnected: i,
|
|
784
|
-
onArgChange: me,
|
|
785
|
-
onExecute: he,
|
|
786
|
-
onSave: Ce
|
|
787
|
-
})
|
|
788
|
-
}, "detail"),
|
|
789
|
-
L === "response" && /* @__PURE__ */ (0, z.jsx)(a.div, {
|
|
790
|
-
initial: { x: "100%" },
|
|
791
|
-
animate: { x: 0 },
|
|
792
|
-
exit: { x: "100%" },
|
|
793
|
-
transition: {
|
|
794
|
-
type: "spring",
|
|
795
|
-
stiffness: 300,
|
|
796
|
-
damping: 30
|
|
797
|
-
},
|
|
798
|
-
className: "absolute inset-0 bg-background z-20",
|
|
799
|
-
children: /* @__PURE__ */ (0, z.jsx)(ce, {
|
|
800
|
-
results: K,
|
|
801
|
-
copiedResult: m,
|
|
802
|
-
onCopy: be,
|
|
803
|
-
onDelete: q,
|
|
804
|
-
onFullscreen: xe
|
|
805
|
-
})
|
|
806
|
-
}, "response")
|
|
807
|
-
]
|
|
808
|
-
})
|
|
809
|
-
})]
|
|
810
|
-
}) : /* @__PURE__ */ (0, z.jsxs)(T, {
|
|
811
|
-
orientation: "horizontal",
|
|
812
|
-
className: "h-full",
|
|
813
|
-
children: [
|
|
814
|
-
/* @__PURE__ */ (0, z.jsx)(S, {
|
|
815
|
-
id: "left-panel",
|
|
816
|
-
panelRef: Z,
|
|
817
|
-
defaultSize: "33%",
|
|
818
|
-
collapsible: !0,
|
|
819
|
-
className: "flex flex-col h-full relative",
|
|
820
|
-
children: /* @__PURE__ */ (0, z.jsx)("div", {
|
|
821
|
-
className: "flex h-full flex-col overflow-hidden border-r dark:border-zinc-700",
|
|
822
|
-
children: /* @__PURE__ */ (0, z.jsx)(w, { children: (e) => /* @__PURE__ */ (0, z.jsxs)(z.Fragment, { children: [/* @__PURE__ */ (0, z.jsx)(oe, {
|
|
823
|
-
isScrolled: e,
|
|
824
|
-
activeTab: g,
|
|
825
|
-
isSearchExpanded: A,
|
|
826
|
-
searchQuery: X,
|
|
827
|
-
primaryTabName: "prompts",
|
|
828
|
-
secondaryTabName: "saved",
|
|
829
|
-
primaryTabTitle: "Prompts",
|
|
830
|
-
secondaryTabTitle: "History",
|
|
831
|
-
primaryCount: U.length,
|
|
832
|
-
secondaryCount: v.length,
|
|
833
|
-
primaryIcon: k,
|
|
834
|
-
secondaryIcon: x,
|
|
835
|
-
searchPlaceholder: "Search prompts...",
|
|
836
|
-
onSearchExpand: () => j(!0),
|
|
837
|
-
onSearchChange: ge,
|
|
838
|
-
onSearchBlur: ve,
|
|
839
|
-
onTabSwitch: () => _(g === "prompts" ? "saved" : "prompts"),
|
|
840
|
-
searchInputRef: P,
|
|
841
|
-
onRefresh: o ? ye : void 0,
|
|
842
|
-
isRefreshing: c
|
|
843
|
-
}), g === "prompts" ? /* @__PURE__ */ (0, z.jsx)(le, {
|
|
844
|
-
prompts: U,
|
|
845
|
-
selectedPrompt: W,
|
|
846
|
-
onPromptSelect: Y,
|
|
847
|
-
focusedIndex: M
|
|
848
|
-
}) : /* @__PURE__ */ (0, z.jsx)(ue, {
|
|
849
|
-
savedPrompts: v,
|
|
850
|
-
selectedPrompt: u,
|
|
851
|
-
onLoadPrompt: $,
|
|
852
|
-
onDeletePrompt: we,
|
|
853
|
-
focusedIndex: M
|
|
854
|
-
})] }) })
|
|
855
|
-
})
|
|
856
|
-
}),
|
|
857
|
-
/* @__PURE__ */ (0, z.jsx)(C, { withHandle: !0 }),
|
|
858
|
-
/* @__PURE__ */ (0, z.jsx)(S, {
|
|
859
|
-
defaultSize: "67%",
|
|
860
|
-
children: /* @__PURE__ */ (0, z.jsxs)(T, {
|
|
861
|
-
orientation: "vertical",
|
|
862
|
-
children: [
|
|
863
|
-
/* @__PURE__ */ (0, z.jsx)(S, {
|
|
864
|
-
panelRef: Q,
|
|
865
|
-
defaultSize: "40%",
|
|
866
|
-
collapsible: !0,
|
|
867
|
-
children: /* @__PURE__ */ (0, z.jsx)(se, {
|
|
868
|
-
selectedPrompt: W,
|
|
869
|
-
promptArgs: fe,
|
|
870
|
-
isExecuting: J,
|
|
871
|
-
isConnected: i,
|
|
872
|
-
onArgChange: me,
|
|
873
|
-
onExecute: he,
|
|
874
|
-
onSave: Ce
|
|
875
|
-
})
|
|
876
|
-
}),
|
|
877
|
-
/* @__PURE__ */ (0, z.jsx)(C, { withHandle: !0 }),
|
|
878
|
-
/* @__PURE__ */ (0, z.jsx)(S, {
|
|
879
|
-
defaultSize: "60%",
|
|
880
|
-
children: /* @__PURE__ */ (0, z.jsx)("div", {
|
|
881
|
-
className: "flex flex-col h-full",
|
|
882
|
-
children: /* @__PURE__ */ (0, z.jsx)(ce, {
|
|
883
|
-
results: K,
|
|
884
|
-
copiedResult: m,
|
|
885
|
-
onCopy: be,
|
|
886
|
-
onDelete: q,
|
|
887
|
-
onFullscreen: xe,
|
|
888
|
-
onMaximize: Se,
|
|
889
|
-
isMaximized: V
|
|
890
|
-
})
|
|
891
|
-
})
|
|
892
|
-
})
|
|
893
|
-
]
|
|
894
|
-
})
|
|
895
|
-
})
|
|
896
|
-
]
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
q.displayName = "PromptsTab";
|
|
900
|
-
//#endregion
|
|
901
|
-
export { q as PromptsTab };
|