@mcp-use/inspector 20.0.0-beta.16 → 20.0.0-beta.18
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 +25 -58
- 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 +14 -1440
- package/dist/client/index.d.ts +1399 -50
- package/dist/client/index.js +170 -24320
- package/dist/server/index.d.ts +79 -7
- package/dist/server/index.js +99 -23
- package/package.json +76 -33
- package/dist/cdn/inspector.css +0 -2
- package/dist/cdn/inspector.js +0 -92126
- 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/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 -48
- 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/partialToolArgs.d.ts +0 -10
- package/dist/client/components/chat/partialToolArgs.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 -76
- 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/mcp-apps/McpAppsViewPanel.d.ts +0 -29
- package/dist/client/components/mcp-apps/McpAppsViewPanel.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 -25
- 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-animation-pause.d.ts +0 -14
- package/dist/client/components/ui/mesh-animation-pause.d.ts.map +0 -1
- package/dist/client/components/ui/mesh-gradient-colors.d.ts +0 -6
- package/dist/client/components/ui/mesh-gradient-colors.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 -111
- 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 -14
- 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 -19
- package/dist/client/utils/servers.d.ts.map +0 -1
- package/dist/server/asset-urls.d.ts +0 -15
- package/dist/server/asset-urls.d.ts.map +0 -1
- package/dist/server/asset-urls.js +0 -13
- 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-FHC5ZGMM.js +0 -253
- package/dist/server/chunk-IKTZUWSX.js +0 -0
- package/dist/server/chunk-J4FNYLBF.js +0 -54
- package/dist/server/chunk-JZT7N2BJ.js +0 -58
- 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-QXOCY5ZE.js +0 -72
- package/dist/server/chunk-R5ZEVRE5.js +0 -154
- 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/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/index-BgHcVJO3.js +0 -643
- package/dist/web/assets/index-bCIH1Sdx.css +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 -81
- 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,134 +0,0 @@
|
|
|
1
|
-
import type { LLMConfig, StreamProtocol } from "@/client/components/chat/types";
|
|
2
|
-
import type { ReactNode } from "react";
|
|
3
|
-
export type TabType = "tools" | "prompts" | "resources" | "chat" | "sampling" | "elicitation" | "notifications" | "server-metadata" | "connection-settings";
|
|
4
|
-
/**
|
|
5
|
-
* Configuration injected by a host application when the inspector runs in
|
|
6
|
-
* embedded / hosted mode (e.g. inside inspector.manufact.com or the Vibe IDE).
|
|
7
|
-
*
|
|
8
|
-
* ── Hosted-inspector chat flow ──────────────────────────────────────────────
|
|
9
|
-
* When `chatApiUrl` is set (baked in at build time via VITE_MANUFACT_CHAT_URL),
|
|
10
|
-
* the Chat tab switches from client-side LLM calls to a managed backend:
|
|
11
|
-
*
|
|
12
|
-
* 1. `InspectorProvider` (below) reads VITE_MANUFACT_CHAT_URL and sets
|
|
13
|
-
* `chatApiUrl` and `chatStreamProtocol: "data-stream"`.
|
|
14
|
-
*
|
|
15
|
-
* 2. `LayoutContent` passes these down to `ChatTab` as props; `ChatTab`
|
|
16
|
-
* then passes `useClientSide={false}` to `useChatMessages`.
|
|
17
|
-
*
|
|
18
|
-
* 3. If the user already has their own API key in localStorage, `ChatTab`
|
|
19
|
-
* overrides this with `effectiveClientSide=true` (see forceClientSide
|
|
20
|
-
* logic there), bypassing the backend entirely.
|
|
21
|
-
*
|
|
22
|
-
* 4. The backend endpoint (`/api/v1/inspector/chat/stream`, cloud.mcp-use)
|
|
23
|
-
* requires an OAuth bearer token and meters the user's organization.
|
|
24
|
-
*
|
|
25
|
-
* 5. On a 429 response the frontend offers cloud OAuth sign-in or BYOK.
|
|
26
|
-
*
|
|
27
|
-
* ── Related files ────────────────────────────────────────────────────────────
|
|
28
|
-
* • cloud.mcp-use/src/routes/v1/inspector-chat.ts — rate-limited endpoint
|
|
29
|
-
* • cloud.mcp-use/src/lib/mcp-chat-stream.ts — shared OpenRouter streamer
|
|
30
|
-
* • inspector/src/client/components/ChatTab.tsx — effectiveClientSide logic
|
|
31
|
-
* • inspector/src/client/auth/manufact-auth.ts — cloud OAuth session
|
|
32
|
-
* • inspector/src/client/components/HostedUserMenu.tsx — avatar / authorization
|
|
33
|
-
*/
|
|
34
|
-
export interface EmbeddedConfig {
|
|
35
|
-
backgroundColor?: string;
|
|
36
|
-
padding?: string;
|
|
37
|
-
/** Show only a single tab with no tab bar / header chrome */
|
|
38
|
-
singleTab?: boolean;
|
|
39
|
-
/** Which tabs to show. If omitted, all tabs are visible. */
|
|
40
|
-
visibleTabs?: TabType[];
|
|
41
|
-
/** Override the default tab to open on load */
|
|
42
|
-
defaultTab?: TabType;
|
|
43
|
-
/** Custom API URL for the Chat tab's server-side streaming */
|
|
44
|
-
chatApiUrl?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Wire protocol for the `chatApiUrl` streaming endpoint.
|
|
47
|
-
* - `"sse"` (default): Inspector SSE protocol
|
|
48
|
-
* - `"data-stream"`: Vercel AI SDK data-stream protocol
|
|
49
|
-
*/
|
|
50
|
-
chatStreamProtocol?: StreamProtocol;
|
|
51
|
-
/**
|
|
52
|
-
* Credentials policy for chat fetch requests.
|
|
53
|
-
* Set to `"include"` when the chat endpoint requires session cookies (e.g. when the
|
|
54
|
-
* inspector iframe is on a subdomain that shares cookies with the API).
|
|
55
|
-
*/
|
|
56
|
-
chatCredentials?: RequestCredentials;
|
|
57
|
-
/** Externally-managed LLM config passed to ChatTab (bypasses config UI) */
|
|
58
|
-
managedLlmConfig?: LLMConfig;
|
|
59
|
-
/** Opt in to the Manufact free-tier sign-in / upgrade UI in the chat. */
|
|
60
|
-
chatEnableFreeTierUpgrade?: boolean;
|
|
61
|
-
/** Hide the "Chat" title in the header */
|
|
62
|
-
chatHideTitle?: boolean;
|
|
63
|
-
/** Hide the model badge on the landing form and header */
|
|
64
|
-
chatHideModelBadge?: boolean;
|
|
65
|
-
/** Hide the MCP server URL on the landing form */
|
|
66
|
-
chatHideServerUrl?: boolean;
|
|
67
|
-
/** Hide the API key / provider configuration dialog */
|
|
68
|
-
chatHideConfigButton?: boolean;
|
|
69
|
-
/** Custom label for the clear / new-chat button */
|
|
70
|
-
chatClearButtonLabel?: string;
|
|
71
|
-
/** Hide the icon on the clear / new-chat button */
|
|
72
|
-
chatClearButtonHideIcon?: boolean;
|
|
73
|
-
/** Hide the keyboard shortcut (⌘O) on the clear / new-chat button */
|
|
74
|
-
chatClearButtonHideShortcut?: boolean;
|
|
75
|
-
/** Button variant for the clear / new-chat button (e.g. "secondary", "ghost") */
|
|
76
|
-
chatClearButtonVariant?: "default" | "secondary" | "ghost" | "outline";
|
|
77
|
-
/** Initial quick questions shown below the landing input. */
|
|
78
|
-
chatQuickQuestions?: string[];
|
|
79
|
-
/** Initial followup suggestions shown above input in chat mode. */
|
|
80
|
-
chatFollowups?: string[];
|
|
81
|
-
/** When true, hides the "New Chat" / clear button in the chat header. */
|
|
82
|
-
chatHideClearButton?: boolean;
|
|
83
|
-
/** When true, hides the tool selector (wrench icon) in the chat input. */
|
|
84
|
-
chatHideToolSelector?: boolean;
|
|
85
|
-
/**
|
|
86
|
-
* When true, treat the chat as already connected even when no MCP server is
|
|
87
|
-
* selected. Use this together with `chatApiUrl` when the backend manages the
|
|
88
|
-
* MCP connections and no client-side server URL is required.
|
|
89
|
-
*/
|
|
90
|
-
forceConnected?: boolean;
|
|
91
|
-
}
|
|
92
|
-
interface InspectorState {
|
|
93
|
-
selectedServerId: string | null;
|
|
94
|
-
activeTab: TabType;
|
|
95
|
-
selectedToolName: string | null;
|
|
96
|
-
selectedPromptName: string | null;
|
|
97
|
-
selectedResourceUri: string | null;
|
|
98
|
-
selectedSamplingRequestId: string | null;
|
|
99
|
-
selectedElicitationRequestId: string | null;
|
|
100
|
-
tunnelUrl: string | null;
|
|
101
|
-
isTunnelStarting: boolean;
|
|
102
|
-
isEmbedded: boolean;
|
|
103
|
-
embeddedConfig: EmbeddedConfig;
|
|
104
|
-
}
|
|
105
|
-
interface InspectorContextType extends InspectorState {
|
|
106
|
-
setSelectedServerId: (serverId: string | null) => void;
|
|
107
|
-
setActiveTab: (tab: TabType) => void;
|
|
108
|
-
setSelectedToolName: (toolName: string | null) => void;
|
|
109
|
-
setSelectedPromptName: (promptName: string | null) => void;
|
|
110
|
-
setSelectedResourceUri: (resourceUri: string | null) => void;
|
|
111
|
-
setSelectedSamplingRequestId: (requestId: string | null) => void;
|
|
112
|
-
setSelectedElicitationRequestId: (requestId: string | null) => void;
|
|
113
|
-
setTunnelUrl: (tunnelUrl: string | null) => void;
|
|
114
|
-
setIsTunnelStarting: (starting: boolean) => void;
|
|
115
|
-
setEmbeddedMode: (isEmbedded: boolean, config?: EmbeddedConfig) => void;
|
|
116
|
-
navigateToItem: (serverId: string, tab: TabType, itemIdentifier?: string) => void;
|
|
117
|
-
clearSelection: () => void;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Provides Inspector context and state to descendant components.
|
|
121
|
-
*
|
|
122
|
-
* Initializes and supplies the inspector UI state (selected server, active tab,
|
|
123
|
-
* per-tab selections, tunnel URL, and embedded mode/config) along with updater
|
|
124
|
-
* callbacks and navigation/clearing helpers through React context.
|
|
125
|
-
*
|
|
126
|
-
* @param children - Elements that will receive the Inspector context
|
|
127
|
-
* @returns A context provider element that supplies inspector state and mutator functions to its children
|
|
128
|
-
*/
|
|
129
|
-
export declare function InspectorProvider({ children }: {
|
|
130
|
-
children: ReactNode;
|
|
131
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
132
|
-
export declare function useInspector(): InspectorContextType;
|
|
133
|
-
export {};
|
|
134
|
-
//# sourceMappingURL=InspectorContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InspectorContext.d.ts","sourceRoot":"","sources":["../../../src/client/context/InspectorContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,OAAO,GACf,OAAO,GACP,SAAS,GACT,WAAW,GACX,MAAM,GACN,UAAU,GACV,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,qBAAqB,CAAC;AAE1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,WAAW,cAAc;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC;IACxB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,cAAc,CAAC;IACpC;;;;OAIG;IACH,eAAe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ReactNode } from "react";
|
|
2
|
-
type Theme = "light" | "dark" | "system";
|
|
3
|
-
interface ThemeContextType {
|
|
4
|
-
theme: Theme;
|
|
5
|
-
setTheme: (theme: Theme) => void;
|
|
6
|
-
resolvedTheme: "light" | "dark";
|
|
7
|
-
}
|
|
8
|
-
export declare function useTheme(): ThemeContextType;
|
|
9
|
-
interface ThemeProviderProps {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
defaultTheme?: Theme;
|
|
12
|
-
storageKey?: string;
|
|
13
|
-
forcedTheme?: Theme;
|
|
14
|
-
}
|
|
15
|
-
export declare function ThemeProvider({ children, defaultTheme, storageKey, forcedTheme, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/client/context/ThemeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzC,UAAU,gBAAgB;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,aAAa,EAAE,OAAO,GAAG,MAAM,CAAC;CACjC;AAID,wBAAgB,QAAQ,qBAMvB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,KAAK,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,YAAuB,EACvB,UAAoB,EACpB,WAAW,GACZ,EAAE,kBAAkB,2CA4EpB"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Widget Debug Context
|
|
3
|
-
*
|
|
4
|
-
* Manages debugging state for MCP Apps widgets.
|
|
5
|
-
* Tracks CSP violations, widget state, host context, and playground settings.
|
|
6
|
-
*
|
|
7
|
-
* Follows the same React Context pattern as InspectorContext (not Zustand).
|
|
8
|
-
*/
|
|
9
|
-
import type { ReactNode } from "react";
|
|
10
|
-
type WidgetProtocol = "mcp-apps";
|
|
11
|
-
export interface CspViolation {
|
|
12
|
-
directive: string;
|
|
13
|
-
effectiveDirective: string;
|
|
14
|
-
blockedUri: string;
|
|
15
|
-
sourceFile?: string;
|
|
16
|
-
lineNumber?: number;
|
|
17
|
-
columnNumber?: number;
|
|
18
|
-
timestamp: number;
|
|
19
|
-
originalPolicy?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface WidgetDeclaredCsp {
|
|
22
|
-
connectDomains?: string[];
|
|
23
|
-
resourceDomains?: string[];
|
|
24
|
-
frameDomains?: string[];
|
|
25
|
-
baseUriDomains?: string[];
|
|
26
|
-
}
|
|
27
|
-
interface WidgetInfo {
|
|
28
|
-
toolName: string;
|
|
29
|
-
protocol: WidgetProtocol;
|
|
30
|
-
hostContext?: any;
|
|
31
|
-
cspViolations: CspViolation[];
|
|
32
|
-
declaredCsp?: WidgetDeclaredCsp;
|
|
33
|
-
effectivePolicy?: string;
|
|
34
|
-
modelContext?: {
|
|
35
|
-
content?: any[];
|
|
36
|
-
structuredContent?: Record<string, unknown>;
|
|
37
|
-
};
|
|
38
|
-
widgetState?: any;
|
|
39
|
-
}
|
|
40
|
-
export type DeviceType = "mobile" | "desktop";
|
|
41
|
-
export interface PlaygroundSettings {
|
|
42
|
-
deviceType: DeviceType;
|
|
43
|
-
customViewport: {
|
|
44
|
-
width: number;
|
|
45
|
-
height: number;
|
|
46
|
-
};
|
|
47
|
-
cspMode: "permissive" | "widget-declared";
|
|
48
|
-
displayModeOverride: "inline" | "pip" | "fullscreen" | null;
|
|
49
|
-
capabilities: {
|
|
50
|
-
hover: boolean;
|
|
51
|
-
touch: boolean;
|
|
52
|
-
};
|
|
53
|
-
safeAreaInsets: {
|
|
54
|
-
top: number;
|
|
55
|
-
right: number;
|
|
56
|
-
bottom: number;
|
|
57
|
-
left: number;
|
|
58
|
-
};
|
|
59
|
-
locale: string;
|
|
60
|
-
timeZone: string;
|
|
61
|
-
}
|
|
62
|
-
interface WidgetDebugState {
|
|
63
|
-
activeWidgetId: string | null;
|
|
64
|
-
widgets: Map<string, WidgetInfo>;
|
|
65
|
-
playground: PlaygroundSettings;
|
|
66
|
-
}
|
|
67
|
-
interface WidgetDebugContextType extends WidgetDebugState {
|
|
68
|
-
setActiveWidget: (widgetId: string | null) => void;
|
|
69
|
-
addWidget: (widgetId: string, info: Omit<WidgetInfo, "cspViolations">) => void;
|
|
70
|
-
removeWidget: (widgetId: string) => void;
|
|
71
|
-
getWidget: (widgetId: string) => WidgetInfo | undefined;
|
|
72
|
-
addCspViolation: (widgetId: string, violation: CspViolation) => void;
|
|
73
|
-
clearCspViolations: (widgetId: string) => void;
|
|
74
|
-
setWidgetModelContext: (widgetId: string, context: WidgetInfo["modelContext"]) => void;
|
|
75
|
-
setWidgetState: (widgetId: string, state: any) => void;
|
|
76
|
-
setWidgetDeclaredCsp: (widgetId: string, csp: WidgetDeclaredCsp | undefined, effectivePolicy?: string) => void;
|
|
77
|
-
updatePlaygroundSettings: (settings: Partial<PlaygroundSettings>) => void;
|
|
78
|
-
clearAllWidgets: () => void;
|
|
79
|
-
getAllModelContexts: () => Map<string, WidgetInfo["modelContext"]>;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Provider for widget debugging context
|
|
83
|
-
*
|
|
84
|
-
* Manages widget debug state following the same pattern as InspectorProvider
|
|
85
|
-
*/
|
|
86
|
-
export declare function WidgetDebugProvider({ children }: {
|
|
87
|
-
children: ReactNode;
|
|
88
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
89
|
-
/**
|
|
90
|
-
* Hook to access widget debug context
|
|
91
|
-
*
|
|
92
|
-
* @throws Error if used outside of WidgetDebugProvider
|
|
93
|
-
*/
|
|
94
|
-
export declare function useWidgetDebug(): WidgetDebugContextType;
|
|
95
|
-
/**
|
|
96
|
-
* Device viewport configurations for common devices
|
|
97
|
-
*/
|
|
98
|
-
export declare const DEVICE_VIEWPORT_CONFIGS: {
|
|
99
|
-
readonly mobile: {
|
|
100
|
-
readonly width: 390;
|
|
101
|
-
readonly height: 844;
|
|
102
|
-
readonly name: "iPhone 14";
|
|
103
|
-
};
|
|
104
|
-
readonly desktop: {
|
|
105
|
-
readonly width: 1440;
|
|
106
|
-
readonly height: 900;
|
|
107
|
-
readonly name: "Desktop";
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
export {};
|
|
111
|
-
//# sourceMappingURL=WidgetDebugContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetDebugContext.d.ts","sourceRoot":"","sources":["../../../src/client/context/WidgetDebugContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvC,KAAK,cAAc,GAAG,UAAU,CAAC;AAEjC,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,M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B;;;;;;;;;;;CAG1B,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ItemRect } from "@/client/hooks/use-proximity-hover";
|
|
2
|
-
type Rect = {
|
|
3
|
-
top: number;
|
|
4
|
-
left: number;
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
};
|
|
8
|
-
interface SelBlock extends Rect {
|
|
9
|
-
key: string;
|
|
10
|
-
radii: [number, number, number, number];
|
|
11
|
-
instant: boolean;
|
|
12
|
-
exitInstant: boolean;
|
|
13
|
-
delayCorners: boolean;
|
|
14
|
-
cornerDelay?: number;
|
|
15
|
-
opacity?: number;
|
|
16
|
-
enterFrom?: {
|
|
17
|
-
top: number;
|
|
18
|
-
left: number;
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
radii: [number, number, number, number];
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
type MergeSplitAxis = "x" | "y";
|
|
25
|
-
type Run = {
|
|
26
|
-
start: number;
|
|
27
|
-
end: number;
|
|
28
|
-
id: number;
|
|
29
|
-
};
|
|
30
|
-
export declare function useMergeSplitBlocks(runs: Run[], itemRects: ItemRect[], R: number, axis?: MergeSplitAxis): SelBlock[];
|
|
31
|
-
export declare function SelectionBackgrounds({ blocks, dimmed, }: {
|
|
32
|
-
blocks: SelBlock[];
|
|
33
|
-
dimmed: boolean;
|
|
34
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=use-merge-split.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-merge-split.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-merge-split.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAsBnE,KAAK,IAAI,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AACzE,UAAU,QAAS,SAAQ,IAAI;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,SAAS,CAAC,EAAE;QACV,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;KACzC,CAAC;CACH;AAED,KAAK,cAAc,GAAG,GAAG,GAAG,GAAG,CAAC;AAIhC,KAAK,GAAG,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAkItD,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,GAAG,EAAE,EACX,SAAS,EAAE,QAAQ,EAAE,EACrB,CAAC,EAAE,MAAM,EACT,IAAI,GAAE,cAAoB,GACzB,QAAQ,EAAE,CAiPZ;AAQD,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,MAAM,GACP,EAAE;IACD,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB,2CA4DA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type Dispatch, type RefObject, type SetStateAction } from "react";
|
|
2
|
-
interface ItemRect {
|
|
3
|
-
top: number;
|
|
4
|
-
height: number;
|
|
5
|
-
left: number;
|
|
6
|
-
width: number;
|
|
7
|
-
}
|
|
8
|
-
interface UseProximityHoverOptions {
|
|
9
|
-
axis?: "x" | "y";
|
|
10
|
-
}
|
|
11
|
-
interface UseProximityHoverReturn {
|
|
12
|
-
activeIndex: number | null;
|
|
13
|
-
setActiveIndex: Dispatch<SetStateAction<number | null>>;
|
|
14
|
-
itemRects: ItemRect[];
|
|
15
|
-
sessionRef: RefObject<number>;
|
|
16
|
-
handlers: {
|
|
17
|
-
onMouseMove: (e: React.MouseEvent) => void;
|
|
18
|
-
onMouseEnter: () => void;
|
|
19
|
-
onMouseLeave: () => void;
|
|
20
|
-
};
|
|
21
|
-
registerItem: (index: number, element: HTMLElement | null) => void;
|
|
22
|
-
measureItems: () => void;
|
|
23
|
-
}
|
|
24
|
-
/** Numeric-index proximity hover (ported from fluidfunctionalism.com/r/use-proximity-hover.json). */
|
|
25
|
-
export declare function useProximityHoverIndex<T extends HTMLElement>(containerRef: RefObject<T | null>, options?: UseProximityHoverOptions): UseProximityHoverReturn;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=use-proximity-hover-index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-proximity-hover-index.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-proximity-hover-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,UAAU,QAAQ;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,wBAAwB;IAChC,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CAClB;AAED,UAAU,uBAAuB;IAC/B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACxD,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,EAAE;QACR,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;QAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;QACzB,YAAY,EAAE,MAAM,IAAI,CAAC;KAC1B,CAAC;IACF,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAoFD,qGAAqG;AACrG,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,WAAW,EAC1D,YAAY,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EACjC,OAAO,GAAE,wBAA6B,GACrC,uBAAuB,CAsIzB"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type Dispatch, type RefObject, type SetStateAction } from "react";
|
|
2
|
-
export interface ItemRect {
|
|
3
|
-
top: number;
|
|
4
|
-
height: number;
|
|
5
|
-
left: number;
|
|
6
|
-
width: number;
|
|
7
|
-
}
|
|
8
|
-
interface UseProximityHoverOptions {
|
|
9
|
-
axis?: "x" | "y";
|
|
10
|
-
}
|
|
11
|
-
interface UseProximityHoverReturn {
|
|
12
|
-
activeIndex: number | null;
|
|
13
|
-
setActiveIndex: Dispatch<SetStateAction<number | null>>;
|
|
14
|
-
itemRects: ItemRect[];
|
|
15
|
-
sessionRef: RefObject<number>;
|
|
16
|
-
handlers: {
|
|
17
|
-
onMouseMove: (e: React.MouseEvent) => void;
|
|
18
|
-
onMouseEnter: () => void;
|
|
19
|
-
onMouseLeave: () => void;
|
|
20
|
-
};
|
|
21
|
-
registerItem: (index: number, element: HTMLElement | null) => void;
|
|
22
|
-
measureItems: () => void;
|
|
23
|
-
}
|
|
24
|
-
export declare function useProximityHover<T extends HTMLElement>(containerRef: RefObject<T | null>, options?: UseProximityHoverOptions): UseProximityHoverReturn;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=use-proximity-hover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-proximity-hover.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-proximity-hover.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,wBAAwB;IAChC,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CAClB;AAED,UAAU,uBAAuB;IAC/B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACxD,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAQ,EAAE;QACR,WAAW,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;QAC3C,YAAY,EAAE,MAAM,IAAI,CAAC;QACzB,YAAY,EAAE,MAAM,IAAI,CAAC;KAC1B,CAAC;IACF,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAoFD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,EACrD,YAAY,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EACjC,OAAO,GAAE,wBAA6B,GACrC,uBAAuB,CA2IzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-touch-primary.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-touch-primary.tsx"],"names":[],"mappings":"AASA,wBAAgB,eAAe,YAyB9B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for calculating device viewport dimensions
|
|
3
|
-
*/
|
|
4
|
-
import type { DeviceType } from "../context/WidgetDebugContext";
|
|
5
|
-
interface ViewportDimensions {
|
|
6
|
-
maxWidth: number;
|
|
7
|
-
maxHeight: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Calculate viewport dimensions based on device type
|
|
11
|
-
*/
|
|
12
|
-
export declare function useDeviceViewport(deviceType: DeviceType): ViewportDimensions;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=useDeviceViewport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDeviceViewport.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useDeviceViewport.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAGhE,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,kBAAkB,CAQ5E"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Shared OAuth-backed Manufact identity for hosted Inspector UI. */
|
|
2
|
-
import { useManufactAuth, type ManufactUser } from "@/client/auth/manufact-auth";
|
|
3
|
-
export type HostedUser = ManufactUser;
|
|
4
|
-
/**
|
|
5
|
-
* @param chatApiUrl - Hosted chat endpoint. When undefined/null the hook stays
|
|
6
|
-
* idle (no fetch) — local/BYOK inspector has no Manufact session to probe.
|
|
7
|
-
*/
|
|
8
|
-
export declare function useHostedSession(chatApiUrl: string | null | undefined): ReturnType<typeof useManufactAuth>;
|
|
9
|
-
//# sourceMappingURL=useHostedSession.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHostedSession.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useHostedSession.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,OAAO,EACL,eAAe,EACf,KAAK,YAAY,EAClB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC;AAEtC;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACpC,UAAU,CAAC,OAAO,eAAe,CAAC,CAEpC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface ConsoleLogEntry {
|
|
2
|
-
id: string;
|
|
3
|
-
level: "log" | "error" | "warn" | "info" | "debug" | "trace";
|
|
4
|
-
args: any[];
|
|
5
|
-
timestamp: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
}
|
|
8
|
-
interface UseIframeConsoleOptions {
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
maxLogs?: number;
|
|
11
|
-
proxyToPageConsole?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Hook to manage console logs from iframes
|
|
15
|
-
*/
|
|
16
|
-
export declare function useIframeConsole(options?: UseIframeConsoleOptions): {
|
|
17
|
-
logs: ConsoleLogEntry[];
|
|
18
|
-
addLog: (entry: Omit<ConsoleLogEntry, "id">) => void;
|
|
19
|
-
clearLogs: () => void;
|
|
20
|
-
isOpen: boolean;
|
|
21
|
-
setIsOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=useIframeConsole.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIframeConsole.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useIframeConsole.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IAC7D,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,UAAU,uBAAuB;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;oBAW1D,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC;;;;EAoGtC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
interface KeyboardShortcutHandlers {
|
|
2
|
-
onToolsTab?: () => void;
|
|
3
|
-
onPromptsTab?: () => void;
|
|
4
|
-
onResourcesTab?: () => void;
|
|
5
|
-
onChatTab?: () => void;
|
|
6
|
-
onHome?: () => void;
|
|
7
|
-
onFocusSearch?: () => void;
|
|
8
|
-
onBlurSearch?: () => void;
|
|
9
|
-
onCommandPalette?: () => void;
|
|
10
|
-
onNewChat?: () => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Centralized keyboard shortcuts hook for the Inspector app
|
|
14
|
-
*
|
|
15
|
-
* Shortcuts:
|
|
16
|
-
* - Cmd/Ctrl + K: Open command palette
|
|
17
|
-
* - Cmd/Ctrl + O: Start a new chat
|
|
18
|
-
* - t: Switch to tools tab (when no input focused)
|
|
19
|
-
* - p: Switch to prompts tab (when no input focused)
|
|
20
|
-
* - r: Switch to resources tab (when no input focused)
|
|
21
|
-
* - c: Switch to chat tab (when no input focused)
|
|
22
|
-
* - h: Go to home (when no input focused)
|
|
23
|
-
* - f: Focus search bar on tools/prompts/resources tabs (when no input focused)
|
|
24
|
-
* - Escape: Close command palette / blur focused element
|
|
25
|
-
*/
|
|
26
|
-
export declare function useKeyboardShortcuts(handlers: KeyboardShortcutHandlers): void;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=useKeyboardShortcuts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAEA,UAAU,wBAAwB;IAChC,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,wBAAwB,QAqFtE"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import type { Prompt, GetPromptResult } from "@mcp-use/client/react";
|
|
2
|
-
export interface PromptResult {
|
|
3
|
-
promptName: string;
|
|
4
|
-
args: Record<string, unknown>;
|
|
5
|
-
result: GetPromptResult | {
|
|
6
|
-
error?: string;
|
|
7
|
-
isError?: boolean;
|
|
8
|
-
};
|
|
9
|
-
error?: string;
|
|
10
|
-
timestamp: number;
|
|
11
|
-
duration?: number;
|
|
12
|
-
}
|
|
13
|
-
interface UseMCPPromptsProps {
|
|
14
|
-
prompts: Prompt[];
|
|
15
|
-
callPrompt: (name: string, args?: Record<string, unknown>) => Promise<GetPromptResult>;
|
|
16
|
-
serverId: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Manages prompt selection, execution, and results for an MCP server.
|
|
20
|
-
* Provides filtered prompts, execution state, and result management.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useMCPPrompts({ prompts, callPrompt, serverId, }: UseMCPPromptsProps): {
|
|
23
|
-
filteredPrompts: {
|
|
24
|
-
name: string;
|
|
25
|
-
description?: string | undefined;
|
|
26
|
-
arguments?: {
|
|
27
|
-
name: string;
|
|
28
|
-
description?: string | undefined;
|
|
29
|
-
required?: boolean | undefined;
|
|
30
|
-
}[] | undefined;
|
|
31
|
-
_meta?: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
} | undefined;
|
|
34
|
-
icons?: {
|
|
35
|
-
src: string;
|
|
36
|
-
mimeType?: string | undefined;
|
|
37
|
-
sizes?: string[] | undefined;
|
|
38
|
-
theme?: "dark" | "light" | undefined;
|
|
39
|
-
}[] | undefined;
|
|
40
|
-
title?: string | undefined;
|
|
41
|
-
}[];
|
|
42
|
-
selectedPrompt: {
|
|
43
|
-
name: string;
|
|
44
|
-
description?: string | undefined;
|
|
45
|
-
arguments?: {
|
|
46
|
-
name: string;
|
|
47
|
-
description?: string | undefined;
|
|
48
|
-
required?: boolean | undefined;
|
|
49
|
-
}[] | undefined;
|
|
50
|
-
_meta?: {
|
|
51
|
-
[x: string]: unknown;
|
|
52
|
-
} | undefined;
|
|
53
|
-
icons?: {
|
|
54
|
-
src: string;
|
|
55
|
-
mimeType?: string | undefined;
|
|
56
|
-
sizes?: string[] | undefined;
|
|
57
|
-
theme?: "dark" | "light" | undefined;
|
|
58
|
-
}[] | undefined;
|
|
59
|
-
title?: string | undefined;
|
|
60
|
-
} | null;
|
|
61
|
-
setSelectedPrompt: import("react").Dispatch<import("react").SetStateAction<{
|
|
62
|
-
name: string;
|
|
63
|
-
description?: string | undefined;
|
|
64
|
-
arguments?: {
|
|
65
|
-
name: string;
|
|
66
|
-
description?: string | undefined;
|
|
67
|
-
required?: boolean | undefined;
|
|
68
|
-
}[] | undefined;
|
|
69
|
-
_meta?: {
|
|
70
|
-
[x: string]: unknown;
|
|
71
|
-
} | undefined;
|
|
72
|
-
icons?: {
|
|
73
|
-
src: string;
|
|
74
|
-
mimeType?: string | undefined;
|
|
75
|
-
sizes?: string[] | undefined;
|
|
76
|
-
theme?: "dark" | "light" | undefined;
|
|
77
|
-
}[] | undefined;
|
|
78
|
-
title?: string | undefined;
|
|
79
|
-
} | null>>;
|
|
80
|
-
results: PromptResult[];
|
|
81
|
-
handleDeleteResult: (index: number) => void;
|
|
82
|
-
promptArgs: Record<string, unknown>;
|
|
83
|
-
setPromptArgs: import("react").Dispatch<import("react").SetStateAction<Record<string, unknown>>>;
|
|
84
|
-
isExecuting: boolean;
|
|
85
|
-
handlePromptSelect: (prompt: Prompt) => void;
|
|
86
|
-
handleArgChange: (key: string, value: any) => void;
|
|
87
|
-
executePrompt: (prompt: Prompt, args: Record<string, unknown>) => Promise<void>;
|
|
88
|
-
executeSelectedPrompt: () => Promise<void>;
|
|
89
|
-
searchQuery: string;
|
|
90
|
-
setSearchQuery: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
91
|
-
clearPromptResults: () => void;
|
|
92
|
-
};
|
|
93
|
-
export {};
|
|
94
|
-
//# sourceMappingURL=useMCPPrompts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMCPPrompts.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useMCPPrompts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGrE,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,MAAM,EAAE,eAAe,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,CACV,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC3B,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,UAAU,EACV,QAAQ,GACT,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAoG4B,MAAM;;;;iCAjFL,MAAM;2BAaZ,MAAM,SAAS,GAAG;4BAK3C,MAAM,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;EAsHvD"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for building MCP Apps host context (SEP-1865)
|
|
3
|
-
*/
|
|
4
|
-
import type { McpUiHostContext } from "@mcp-use/client/react";
|
|
5
|
-
import type { Tool } from "@mcp-use/client/react";
|
|
6
|
-
import type { PlaygroundSettings } from "../context/WidgetDebugContext";
|
|
7
|
-
type DisplayMode = "inline" | "pip" | "fullscreen";
|
|
8
|
-
interface HostContextParams {
|
|
9
|
-
theme: "light" | "dark";
|
|
10
|
-
displayMode: DisplayMode;
|
|
11
|
-
maxWidth: number;
|
|
12
|
-
maxHeight: number;
|
|
13
|
-
playground: PlaygroundSettings;
|
|
14
|
-
deviceType: string;
|
|
15
|
-
toolCallId: string;
|
|
16
|
-
toolName: string;
|
|
17
|
-
toolInput?: Record<string, unknown>;
|
|
18
|
-
toolOutput?: unknown;
|
|
19
|
-
toolMetadata?: Record<string, unknown>;
|
|
20
|
-
tool?: Tool;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Build SEP-1865 compliant host context for MCP Apps
|
|
24
|
-
*/
|
|
25
|
-
export declare function useMcpAppsHostContext({ theme, displayMode, maxWidth, maxHeight, playground, deviceType, toolCallId, toolName, toolInput, toolOutput, toolMetadata, tool, }: HostContextParams): McpUiHostContext;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=useMcpAppsHostContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMcpAppsHostContext.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useMcpAppsHostContext.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExE,KAAK,WAAW,GAAG,QAAQ,GAAG,KAAK,GAAG,YAAY,CAAC;AAEnD,UAAU,iBAAiB;IACzB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,IAAI,CAAC,EAAE,IAAI,CAAC;CACb;AA4DD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,WAAW,EACX,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,EACZ,IAAI,GACL,EAAE,iBAAiB,GAAG,gBAAgB,CA2CtC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { Resource } from "@mcp-use/client/react";
|
|
2
|
-
import type { LLMConfig } from "../components/chat/types";
|
|
3
|
-
interface UsePropsLLMProps {
|
|
4
|
-
llmConfig: LLMConfig | null;
|
|
5
|
-
}
|
|
6
|
-
interface GeneratePropsParams {
|
|
7
|
-
resource: Resource;
|
|
8
|
-
resourceAnnotations?: Record<string, unknown>;
|
|
9
|
-
propsSchema?: any;
|
|
10
|
-
}
|
|
11
|
-
interface GeneratedProp {
|
|
12
|
-
key: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function usePropsLLM({ llmConfig }: UsePropsLLMProps): {
|
|
16
|
-
generateProps: ({ resource, resourceAnnotations, propsSchema, }: GeneratePropsParams) => Promise<GeneratedProp[]>;
|
|
17
|
-
isAvailable: boolean;
|
|
18
|
-
};
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=usePropsLLM.d.ts.map
|