@mcp-use/inspector 20.0.0-beta.1 → 20.0.0-beta.10
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 +7 -18
- package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-D1bZ5_-l.js} +80 -79
- package/dist/cdn/ChatTab-DRn-AnBV.js +6811 -0
- package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-BjF73mGX.js} +74 -73
- package/dist/cdn/ConnectionSettingsForm-CsG61Iyd.js +929 -0
- package/dist/cdn/ConnectionSettingsTab-CTJJK4hj.js +151 -0
- package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-PEmEDvC5.js} +48 -47
- package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-NtUiZclE.js} +26 -26
- package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-BBKCdfmK.js} +2 -22
- package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BJqMz7Ny.js} +23 -23
- package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-DzmTtN1e.js} +21 -20
- package/dist/cdn/{WidgetWrapper-D29YDxIu.js → MCPAppsDebugControls-C5-knSKL.js} +583 -620
- package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-ChbbjFIT.js} +3 -3
- package/dist/cdn/MarkdownRenderer-uUvyteZT.js +3610 -0
- package/dist/cdn/McpAppsViewPanel-Bj-1E9_v.js +56 -0
- package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-B7uebqMV.js} +13 -13
- package/dist/cdn/{OAuthCallback-k3oeLtIC.js → OAuthCallback-Hdtybeu0.js} +3 -3
- package/dist/cdn/PromptsTab-b4UpzPPY.js +902 -0
- package/dist/cdn/{ResourcesTab-KfamsM6-.js → ResourcesTab-BCA0_b8c.js} +106 -124
- package/dist/cdn/{SamplingTab-vcufuK24.js → SamplingTab-CuPYqFyA.js} +43 -42
- package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-BM3VhSLf.js} +14 -14
- package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-Q3n3YRtE.js} +8 -9
- package/dist/cdn/{ToolsTab-DRjcZnpu.js → ToolsTab-4lvUZRQq.js} +671 -693
- package/dist/cdn/{ViewPreview-B_onhcUB.js → ViewPreview-BGClMNvo.js} +5 -4
- package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
- package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
- package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
- package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
- package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
- package/dist/cdn/button-CB4uOoUV.js +2509 -0
- package/dist/cdn/{card-DqjqAq0o.js → card-BA-DQk-G.js} +2 -2
- package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-kwVa4gRX.js} +4 -4
- package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
- package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
- package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
- package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-CJGnC5Ag.js} +165 -165
- package/dist/cdn/{dist-DjXr_YO3.js → dist-CTJnCYmk.js} +1 -1
- package/dist/cdn/{dist-mRDqCgKU.js → dist-dw0FdK5Y.js} +116 -114
- package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
- package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
- package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
- package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
- package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
- package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-B1xWyLr0.js} +113 -201
- package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
- package/dist/cdn/{input-BLxOA7V-.js → input-BCpgLXU1.js} +3039 -3600
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +7797 -7857
- package/dist/cdn/{label-CBvG613A.js → label-A0UGV8FE.js} +8 -8
- package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
- package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
- package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
- package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
- package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
- package/dist/cdn/{not-found-BcNNsTjS.js → not-found-BajFyZpp.js} +4 -6
- package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
- package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
- package/dist/cdn/{react-BxO-uEDZ.js → react-BoOQpLwo.js} +838 -849
- package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
- package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
- package/dist/cdn/{select-BZ_IoKxg.js → select-CCFHjOGk.js} +843 -842
- package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
- package/dist/cdn/{shared-uMiV6Fx1.js → shared-CJVHJhag.js} +35 -35
- package/dist/cdn/sheet-oyq1mIyg.js +2078 -0
- package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
- package/dist/cdn/{spinner-CWcJhIY_.js → spinner-Be1GlSGX.js} +3 -3
- package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
- package/dist/cdn/{switch-DtQOLb9R.js → switch-DHXEA_N5.js} +211 -210
- package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-Dubd6Kj8.js} +259 -258
- package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-C7bt_ifQ.js} +38 -70
- package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-CwmI8_uI.js} +2 -2
- package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
- package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
- package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-Dhnm-7el.js} +3 -3
- package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-DiOY6evp.js} +73 -46
- package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
- package/dist/cdn/{useViewHostProps-Dr6W2ooF.js → useViewHostProps-D1emxC9m.js} +124 -108
- package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
- package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
- package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
- package/dist/cli.js +87 -14
- package/dist/client/auth/manufact-auth.d.ts +3 -1
- package/dist/client/auth/manufact-auth.d.ts.map +1 -1
- package/dist/client/components/ChatTab.d.ts +1 -8
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/ResourcesTab.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/ChatHeader.d.ts +7 -2
- package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
- package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
- package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
- package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
- package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
- package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
- package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
- package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
- package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
- package/dist/client/components/chat/MessageList.d.ts +1 -0
- package/dist/client/components/chat/MessageList.d.ts.map +1 -1
- package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
- package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
- package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
- package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
- package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
- package/dist/client/components/chat/partialToolArgs.d.ts +10 -0
- package/dist/client/components/chat/partialToolArgs.d.ts.map +1 -0
- package/dist/client/components/chat/providerMeta.d.ts +11 -0
- package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
- package/dist/client/components/chat/types.d.ts +1 -0
- package/dist/client/components/chat/types.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessages.d.ts +7 -5
- package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
- package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
- package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
- package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
- package/dist/client/components/chat/useConfig.d.ts +1 -1
- package/dist/client/components/chat/useConfig.d.ts.map +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
- package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
- package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
- package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
- package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
- package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
- package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
- package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
- package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
- package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
- package/dist/client/components/ui/chat-message.d.ts +1 -1
- package/dist/client/components/ui/chat-message.d.ts.map +1 -1
- package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
- package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
- package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
- package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
- package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
- package/dist/client/components/ui/not-found.d.ts.map +1 -1
- package/dist/client/context/InspectorContext.d.ts.map +1 -1
- package/dist/client/context/WidgetDebugContext.d.ts +1 -11
- package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
- package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
- package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts +1 -1
- package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
- package/dist/client/index.js +4202 -3491
- package/dist/client/telemetry/init.d.ts.map +1 -1
- package/dist/client/telemetry/utils.d.ts.map +1 -1
- package/dist/client/utils/servers.d.ts +5 -0
- package/dist/client/utils/servers.d.ts.map +1 -1
- package/dist/server/asset-urls.d.ts +4 -0
- package/dist/server/asset-urls.d.ts.map +1 -1
- package/dist/server/asset-urls.js +7 -3
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +3 -3
- package/dist/server/{chunk-IXYK6ZOY.js → chunk-5XMQ5UJR.js} +2 -2
- package/dist/server/{chunk-KBVKS4J5.js → chunk-H6ZCIKBS.js} +10 -0
- package/dist/server/{chunk-VDUV6LR6.js → chunk-KTPQKADO.js} +75 -5
- package/dist/server/{chunk-Y2GBQOQW.js → chunk-LMLZJR2K.js} +2 -9
- package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
- package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
- package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
- package/dist/server/cli.js +5 -5
- package/dist/server/create-dev-api-app.js +3 -3
- package/dist/server/dev-callback-redirect.d.ts +3 -0
- package/dist/server/dev-callback-redirect.d.ts.map +1 -0
- package/dist/server/dev-callback-redirect.js +18 -0
- package/dist/server/index.js +6 -6
- package/dist/server/middleware.js +6 -6
- package/dist/server/proxy/index.js +1 -1
- package/dist/server/proxy/mcp-proxy.d.ts +2 -0
- package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
- package/dist/server/proxy/mcp-proxy.js +3 -1
- package/dist/server/proxy-routes.js +2 -2
- package/dist/server/server.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.js +3 -3
- package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
- package/dist/web/assets/ChatTab-x6dg7xyx.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-DUwCNYXJ.js +1 -0
- package/dist/web/assets/ElicitationTab-Dk04sjRw.js +1 -0
- package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
- package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
- package/dist/web/assets/MCPAppsDebugControls-Kh10bYHm.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-DCLbW-mz.js → ManufactOAuthCallback-Bq00h5wq.js} +1 -1
- package/dist/web/assets/MarkdownRenderer--ZbJc80m.js +47 -0
- package/dist/web/assets/McpAppsViewPanel-BM7S0O6E.js +1 -0
- package/dist/web/assets/{NotificationsTab-JevzvJTg.js → NotificationsTab-DTcas5xQ.js} +1 -1
- package/dist/web/assets/{OAuthCallback-BjcRxLh5.js → OAuthCallback-CZ5PbMLP.js} +1 -1
- package/dist/web/assets/PromptsTab-Ce9hFDPL.js +15 -0
- package/dist/web/assets/ResourcesTab-CfV_CTOT.js +2 -0
- package/dist/web/assets/SamplingTab-7FoVfzSl.js +1 -0
- package/dist/web/assets/ServerMetadataTab-DfOYnm2P.js +1 -0
- package/dist/web/assets/ToolsTab-CeDM6lbc.js +8 -0
- package/dist/web/assets/ViewPreview-DMpWAByN.js +1 -0
- package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
- package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
- package/dist/web/assets/button-C8Xa2k4x.js +1 -0
- package/dist/web/assets/checkbox-ocTkuPLe.js +1 -0
- package/dist/web/assets/code-B14rVdNt.js +1 -0
- package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
- package/dist/web/assets/dist-D6mojCV5.js +21 -0
- package/dist/web/assets/index-BfmL5fRO.js +499 -0
- package/dist/web/assets/index-bCIH1Sdx.css +1 -0
- package/dist/web/assets/input-C0OQCUZy.js +1 -0
- package/dist/web/assets/{label-B5Q_Zr8M.js → label-CI7JWQOo.js} +1 -1
- package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
- package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
- package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
- package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
- package/dist/web/assets/select-D6jzbLJn.js +1 -0
- package/dist/web/assets/shared-BaJnSpaR.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-C3U3Xswq.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/useConfig-tIq2w5rV.js +1 -0
- package/dist/web/assets/useViewHostProps--1CXsG5i.js +1 -0
- package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
- package/dist/web/index.html +10 -11
- package/package.json +5 -12
- package/dist/cdn/ChatTab-D8uwCHAf.js +0 -13218
- package/dist/cdn/ConnectionSettingsForm-BNS6bOMD.js +0 -873
- package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +0 -145
- package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
- package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
- package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
- package/dist/cdn/pdf-CxFT9FER.js +0 -16291
- package/dist/cdn/popover-C_SSrXT0.js +0 -2005
- package/dist/cdn/sheet-CerCdhxz.js +0 -78
- package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
- package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
- package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
- package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
- package/dist/web/assets/AnimatePresence-CthXziG2.js +0 -9
- package/dist/web/assets/ChatTab-Cy8eyFYI.js +0 -460
- package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +0 -1
- package/dist/web/assets/ElicitationTab-wDKgU1qL.js +0 -1
- package/dist/web/assets/FormContext-Cqc_A12u.js +0 -1
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
- package/dist/web/assets/PromptsTab-DsQVOjKH.js +0 -61
- package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +0 -2
- package/dist/web/assets/SamplingTab-BrcF1zJF.js +0 -1
- package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +0 -1
- package/dist/web/assets/ToolsTab-DJWF7Q_x.js +0 -8
- package/dist/web/assets/ViewPreview-jgeU7bY9.js +0 -1
- package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +0 -34
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
- package/dist/web/assets/checkbox-BA-XURSj.js +0 -1
- package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +0 -131
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/dist-BcAQZluc.js +0 -21
- package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +0 -1
- package/dist/web/assets/index-BjH-Qp85.css +0 -1
- package/dist/web/assets/index-D2UxaT9v.js +0 -475
- package/dist/web/assets/input-CjmxOFr6.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +0 -1
- package/dist/web/assets/pdf-CuwKm9zO.js +0 -54
- package/dist/web/assets/select-C0xlfLAa.js +0 -1
- package/dist/web/assets/shared-DQE60Op-.js +0 -1
- package/dist/web/assets/sheet-7TIkLdpr.js +0 -1
- package/dist/web/assets/tabs-subtle-AkJZvdxS.js +0 -1
- package/dist/web/assets/textarea-Ci09-en6.js +0 -1
- package/dist/web/assets/useConfig-Qglo4xs1.js +0 -1
- package/dist/web/assets/useMCPPrompts-USLYc1I4.js +0 -1
- package/dist/web/assets/useViewHostProps-DXAD1g7g.js +0 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
+
import { d as n, l as r, u as i } from "./input-BCpgLXU1.js";
|
|
3
|
+
import { n as a } from "./createLucideIcon-BONxC1L5.js";
|
|
4
|
+
import { t as o } from "./button-CB4uOoUV.js";
|
|
5
|
+
import { S as s } from "./dialog-CJGnC5Ag.js";
|
|
6
|
+
import { f as c, i as l, l as u, o as d, r as f, t as p, u as m } from "./ConnectionSettingsForm-CsG61Iyd.js";
|
|
7
|
+
import { n as h } from "./dist-CTJnCYmk.js";
|
|
8
|
+
import { t as g } from "./inspector-settings-layout-0VDsjeqb.js";
|
|
9
|
+
import { n as _ } from "./ListTabHeader-DzmTtN1e.js";
|
|
10
|
+
//#region src/client/hooks/useConnectionFormState.ts
|
|
11
|
+
var v = /* @__PURE__ */ e(t(), 1);
|
|
12
|
+
function y(e, t) {
|
|
13
|
+
let [n, r] = (0, v.useState)(""), [i, a] = (0, v.useState)(""), [o, s] = (0, v.useState)("auto"), [p, g] = (0, v.useState)("auto"), [_, y] = (0, v.useState)([]), [b, x] = (0, v.useState)("10000"), [S, C] = (0, v.useState)("True"), [w, T] = (0, v.useState)("60000"), [E, D] = (0, v.useState)(l()), [O, k] = (0, v.useState)(""), [A, j] = (0, v.useState)(""), [M, N] = (0, v.useState)("");
|
|
14
|
+
return (0, v.useEffect)(() => {
|
|
15
|
+
if (!e || !t) return;
|
|
16
|
+
let n = c(e, d(e.id));
|
|
17
|
+
a(n.url), r(n.name || n.url);
|
|
18
|
+
let i = n.proxyConfig?.proxyAddress || (typeof n.autoProxyFallback == "object" ? n.autoProxyFallback.proxyAddress : void 0);
|
|
19
|
+
s(n.connectionMode || "auto"), g(u(n.protocolNegotiation)), D(i || l());
|
|
20
|
+
let o = n.headers || {};
|
|
21
|
+
y(Object.entries(o).map(([e, t], n) => ({
|
|
22
|
+
id: `header-${n}`,
|
|
23
|
+
name: e,
|
|
24
|
+
value: String(t)
|
|
25
|
+
}))), k(n.oauth?.clientId || ""), j(n.oauth?.clientSecret || ""), N(n.oauth?.scope || ""), n.requestTimeout !== void 0 && x(String(n.requestTimeout)), n.resetTimeoutOnProgress !== void 0 && C(n.resetTimeoutOnProgress ? "True" : "False"), n.maxTotalTimeout !== void 0 && T(String(n.maxTotalTimeout));
|
|
26
|
+
}, [e, t]), {
|
|
27
|
+
alias: n,
|
|
28
|
+
setAlias: r,
|
|
29
|
+
url: i,
|
|
30
|
+
setUrl: a,
|
|
31
|
+
connectionMode: o,
|
|
32
|
+
setConnectionMode: s,
|
|
33
|
+
protocolMode: p,
|
|
34
|
+
setProtocolMode: g,
|
|
35
|
+
customHeaders: _,
|
|
36
|
+
setCustomHeaders: y,
|
|
37
|
+
requestTimeout: b,
|
|
38
|
+
setRequestTimeout: x,
|
|
39
|
+
resetTimeoutOnProgress: S,
|
|
40
|
+
setResetTimeoutOnProgress: C,
|
|
41
|
+
maxTotalTimeout: w,
|
|
42
|
+
setMaxTotalTimeout: T,
|
|
43
|
+
proxyAddress: E,
|
|
44
|
+
setProxyAddress: D,
|
|
45
|
+
clientId: O,
|
|
46
|
+
setClientId: k,
|
|
47
|
+
clientSecret: A,
|
|
48
|
+
setClientSecret: j,
|
|
49
|
+
scope: M,
|
|
50
|
+
setScope: N,
|
|
51
|
+
buildConfig: () => {
|
|
52
|
+
if (!i.trim()) return null;
|
|
53
|
+
let e = i.trim();
|
|
54
|
+
try {
|
|
55
|
+
let t = new URL(e);
|
|
56
|
+
if (!(t.protocol === "http:" || t.protocol === "https:")) return h.error("Invalid URL protocol. Please use http:// or https://"), null;
|
|
57
|
+
} catch {
|
|
58
|
+
try {
|
|
59
|
+
let t = `https://${e}`, n = new URL(t);
|
|
60
|
+
if (!(n.protocol === "http:" || n.protocol === "https:")) return h.error("Invalid URL protocol. Please use http:// or https://"), null;
|
|
61
|
+
e = t;
|
|
62
|
+
} catch {
|
|
63
|
+
return h.error("Invalid URL format. Please enter a valid URL."), null;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
let t = _.reduce((e, t) => (t.name && t.value && (e[t.name] = t.value), e), {}), r = o === "proxy" && E.trim() ? {
|
|
67
|
+
proxyAddress: E.trim(),
|
|
68
|
+
headers: t
|
|
69
|
+
} : void 0, a = o === "auto" && E.trim() ? {
|
|
70
|
+
enabled: !0,
|
|
71
|
+
proxyAddress: E.trim()
|
|
72
|
+
} : !1, s = f(O, A, M), c = Number.parseInt(b, 10), l = Number.parseInt(w, 10);
|
|
73
|
+
return {
|
|
74
|
+
url: e,
|
|
75
|
+
name: n.trim() || e,
|
|
76
|
+
transportType: "http",
|
|
77
|
+
connectionMode: o,
|
|
78
|
+
protocolNegotiation: m(p),
|
|
79
|
+
proxyConfig: r,
|
|
80
|
+
headers: Object.keys(t).length > 0 ? t : void 0,
|
|
81
|
+
autoProxyFallback: a,
|
|
82
|
+
...s ? { oauth: s } : {},
|
|
83
|
+
...Number.isFinite(c) ? { requestTimeout: c } : {},
|
|
84
|
+
resetTimeoutOnProgress: S === "True",
|
|
85
|
+
...Number.isFinite(l) ? { maxTotalTimeout: l } : {}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/client/components/ConnectionSettingsTab.tsx
|
|
92
|
+
var b = a();
|
|
93
|
+
function x({ connection: e, onSave: t }) {
|
|
94
|
+
let a = y(e, !0), [c, l] = (0, v.useState)(!1);
|
|
95
|
+
return /* @__PURE__ */ (0, b.jsxs)("div", {
|
|
96
|
+
className: "h-full overflow-y-auto overscroll-none",
|
|
97
|
+
onScroll: (e) => l(e.currentTarget.scrollTop > 0),
|
|
98
|
+
children: [/* @__PURE__ */ (0, b.jsxs)("div", {
|
|
99
|
+
className: `${r(c)} flex flex-row items-center justify-between gap-2 ${i}`,
|
|
100
|
+
children: [/* @__PURE__ */ (0, b.jsxs)("h2", {
|
|
101
|
+
className: `${n} flex items-center gap-1.5`,
|
|
102
|
+
children: [/* @__PURE__ */ (0, b.jsx)(s, {
|
|
103
|
+
className: _,
|
|
104
|
+
"aria-hidden": !0
|
|
105
|
+
}), "Connection Settings"]
|
|
106
|
+
}), /* @__PURE__ */ (0, b.jsx)(o, {
|
|
107
|
+
"data-testid": "connection-form-save-button",
|
|
108
|
+
size: "sm",
|
|
109
|
+
onClick: () => {
|
|
110
|
+
let e = a.buildConfig();
|
|
111
|
+
e && t(e);
|
|
112
|
+
},
|
|
113
|
+
children: "Save"
|
|
114
|
+
})]
|
|
115
|
+
}), /* @__PURE__ */ (0, b.jsx)("div", {
|
|
116
|
+
className: g,
|
|
117
|
+
children: /* @__PURE__ */ (0, b.jsx)(p, {
|
|
118
|
+
alias: a.alias,
|
|
119
|
+
setAlias: a.setAlias,
|
|
120
|
+
url: a.url,
|
|
121
|
+
setUrl: a.setUrl,
|
|
122
|
+
connectionMode: a.connectionMode,
|
|
123
|
+
setConnectionMode: a.setConnectionMode,
|
|
124
|
+
protocolMode: a.protocolMode,
|
|
125
|
+
setProtocolMode: a.setProtocolMode,
|
|
126
|
+
customHeaders: a.customHeaders,
|
|
127
|
+
setCustomHeaders: a.setCustomHeaders,
|
|
128
|
+
requestTimeout: a.requestTimeout,
|
|
129
|
+
setRequestTimeout: a.setRequestTimeout,
|
|
130
|
+
resetTimeoutOnProgress: a.resetTimeoutOnProgress,
|
|
131
|
+
setResetTimeoutOnProgress: a.setResetTimeoutOnProgress,
|
|
132
|
+
maxTotalTimeout: a.maxTotalTimeout,
|
|
133
|
+
setMaxTotalTimeout: a.setMaxTotalTimeout,
|
|
134
|
+
proxyAddress: a.proxyAddress,
|
|
135
|
+
setProxyAddress: a.setProxyAddress,
|
|
136
|
+
clientId: a.clientId,
|
|
137
|
+
setClientId: a.setClientId,
|
|
138
|
+
clientSecret: a.clientSecret,
|
|
139
|
+
setClientSecret: a.setClientSecret,
|
|
140
|
+
scope: a.scope,
|
|
141
|
+
setScope: a.setScope,
|
|
142
|
+
showConnectButton: !1,
|
|
143
|
+
showExportButton: !1,
|
|
144
|
+
inlineSections: !0,
|
|
145
|
+
cardSections: !0
|
|
146
|
+
})
|
|
147
|
+
})]
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
export { x as ConnectionSettingsTab };
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { n as
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
2
|
+
import { a as n, n as r, r as i, sr as a, t as o } from "./input-BCpgLXU1.js";
|
|
3
|
+
import { n as s } from "./createLucideIcon-BONxC1L5.js";
|
|
4
|
+
import { t as c } from "./button-CB4uOoUV.js";
|
|
5
|
+
import { t as l } from "./label-A0UGV8FE.js";
|
|
6
|
+
import { a as u, i as d, r as f, t as p } from "./browser-DG2Z8392.js";
|
|
7
|
+
import { a as m, t as h } from "./JSONDisplay-BJqMz7Ny.js";
|
|
8
|
+
import { t as g } from "./external-link-Bo4lQxr1.js";
|
|
9
|
+
import { a as _, i as v, n as y, o as b, r as x, t as S } from "./shared-CJVHJhag.js";
|
|
10
|
+
import { t as C } from "./maximize-2-DdrB_spi.js";
|
|
11
|
+
import { t as w } from "./square-check-big-C_4wbfwF.js";
|
|
12
|
+
import { t as T } from "./x-EilKPiCX.js";
|
|
13
|
+
import { t as E } from "./not-found-BajFyZpp.js";
|
|
14
|
+
import { n as D } from "./dist-CTJnCYmk.js";
|
|
15
|
+
import { n as O } from "./InspectorContext-BBKCdfmK.js";
|
|
16
|
+
import { t as k } from "./textarea-CwmI8_uI.js";
|
|
17
|
+
import { t as A } from "./checkbox-kwVa4gRX.js";
|
|
17
18
|
import { n as j, t as M } from "./schemaHelpers-DTV38jGq.js";
|
|
18
19
|
//#region src/client/components/elicitation/ElicitationRequestsList.tsx
|
|
19
|
-
var N = /* @__PURE__ */ e(t(), 1), P =
|
|
20
|
-
function F({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex:
|
|
20
|
+
var N = /* @__PURE__ */ e(t(), 1), P = s();
|
|
21
|
+
function F({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex: r, formatRelativeTime: i }) {
|
|
21
22
|
return e.length === 0 ? /* @__PURE__ */ (0, P.jsx)("div", {
|
|
22
23
|
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
23
24
|
children: /* @__PURE__ */ (0, P.jsx)(E, {
|
|
@@ -31,17 +32,17 @@ function F({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex:
|
|
|
31
32
|
id: `elicitation-request-${e.id}`,
|
|
32
33
|
"data-testid": `elicitation-request-item-${o}`,
|
|
33
34
|
isSelected: t?.id === e.id,
|
|
34
|
-
isFocused:
|
|
35
|
+
isFocused: r === o,
|
|
35
36
|
title: /* @__PURE__ */ (0, P.jsxs)("span", {
|
|
36
37
|
className: "flex items-center gap-3",
|
|
37
|
-
children: [e.serverName, /* @__PURE__ */ (0, P.jsx)(
|
|
38
|
+
children: [e.serverName, /* @__PURE__ */ (0, P.jsx)(a, {
|
|
38
39
|
variant: "outline",
|
|
39
40
|
className: s === "url" ? "bg-blue-500/20 text-blue-600 dark:text-blue-400 border-blue-500/50" : "bg-green-500/20 text-green-600 dark:text-green-400 border-green-500/50",
|
|
40
41
|
children: s
|
|
41
42
|
})]
|
|
42
43
|
}),
|
|
43
44
|
description: (() => {
|
|
44
|
-
let t =
|
|
45
|
+
let t = i(e.timestamp), n = [];
|
|
45
46
|
return c && n.push("with schema"), s === "url" && n.push("external action"), t + (n.length > 0 ? ` | ${n.join(", ")}` : "");
|
|
46
47
|
})(),
|
|
47
48
|
onClick: () => n(e)
|
|
@@ -50,7 +51,7 @@ function F({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex:
|
|
|
50
51
|
}
|
|
51
52
|
//#endregion
|
|
52
53
|
//#region src/client/components/elicitation/shared/ElicitationFormFields.tsx
|
|
53
|
-
function I({ request: e, formData: t, onFieldChange: n, idPrefix: r, testIdPrefix: i, fieldContainerClassName: a = "space-y-2", textareaRows:
|
|
54
|
+
function I({ request: e, formData: t, onFieldChange: n, idPrefix: r, testIdPrefix: i, fieldContainerClassName: a = "space-y-2", textareaRows: s = 4, showOuterLabelForBoolean: c = !0, emptyFallback: u }) {
|
|
54
55
|
return /* @__PURE__ */ (0, P.jsx)(P.Fragment, { children: (0, N.useMemo)(() => {
|
|
55
56
|
if (!("requestedSchema" in e.request)) return null;
|
|
56
57
|
let d = e.request.requestedSchema;
|
|
@@ -66,7 +67,7 @@ function I({ request: e, formData: t, onFieldChange: n, idPrefix: r, testIdPrefi
|
|
|
66
67
|
return /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
67
68
|
className: a,
|
|
68
69
|
children: [
|
|
69
|
-
(m !== "boolean" ||
|
|
70
|
+
(m !== "boolean" || c) && /* @__PURE__ */ (0, P.jsxs)(l, {
|
|
70
71
|
htmlFor: w,
|
|
71
72
|
children: [h, f && /* @__PURE__ */ (0, P.jsx)("span", {
|
|
72
73
|
className: "text-red-500 ml-1",
|
|
@@ -87,12 +88,12 @@ function I({ request: e, formData: t, onFieldChange: n, idPrefix: r, testIdPrefi
|
|
|
87
88
|
}), /* @__PURE__ */ (0, P.jsxs)(l, {
|
|
88
89
|
htmlFor: w,
|
|
89
90
|
className: "text-sm font-normal cursor-pointer",
|
|
90
|
-
children: [h, !
|
|
91
|
+
children: [h, !c && f && /* @__PURE__ */ (0, P.jsx)("span", {
|
|
91
92
|
className: "text-red-500 ml-1",
|
|
92
93
|
children: "*"
|
|
93
94
|
})]
|
|
94
95
|
})]
|
|
95
|
-
}) : m === "number" || m === "integer" ? /* @__PURE__ */ (0, P.jsx)(
|
|
96
|
+
}) : m === "number" || m === "integer" ? /* @__PURE__ */ (0, P.jsx)(o, {
|
|
96
97
|
id: w,
|
|
97
98
|
"data-testid": T,
|
|
98
99
|
type: "number",
|
|
@@ -174,8 +175,8 @@ function I({ request: e, formData: t, onFieldChange: n, idPrefix: r, testIdPrefi
|
|
|
174
175
|
value: t[e] || "",
|
|
175
176
|
onChange: (t) => n(e, t.target.value),
|
|
176
177
|
placeholder: d.default || "",
|
|
177
|
-
rows:
|
|
178
|
-
}) : /* @__PURE__ */ (0, P.jsx)(
|
|
178
|
+
rows: s
|
|
179
|
+
}) : /* @__PURE__ */ (0, P.jsx)(o, {
|
|
179
180
|
id: w,
|
|
180
181
|
"data-testid": T,
|
|
181
182
|
type: "text",
|
|
@@ -194,8 +195,8 @@ function I({ request: e, formData: t, onFieldChange: n, idPrefix: r, testIdPrefi
|
|
|
194
195
|
r,
|
|
195
196
|
i,
|
|
196
197
|
a,
|
|
197
|
-
o,
|
|
198
198
|
s,
|
|
199
|
+
c,
|
|
199
200
|
u
|
|
200
201
|
]) });
|
|
201
202
|
}
|
|
@@ -235,7 +236,7 @@ function L(e) {
|
|
|
235
236
|
}
|
|
236
237
|
//#endregion
|
|
237
238
|
//#region src/client/components/elicitation/ElicitationRequestDisplay.tsx
|
|
238
|
-
function R({ request: t, onApprove:
|
|
239
|
+
function R({ request: t, onApprove: o, onReject: s, onClose: f, previewMode: p, onTogglePreview: _, isCopied: v, onCopy: y, onDownload: b, onFullscreen: x }) {
|
|
239
240
|
let { formData: S, setFieldValue: w, getMissingRequiredFields: E, urlCompleted: O, setUrlCompleted: k, mode: j, isFormMode: M, isUrlMode: N } = L(t);
|
|
240
241
|
return t ? /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
241
242
|
className: "flex flex-col h-full",
|
|
@@ -249,7 +250,7 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
249
250
|
className: "font-medium text-gray-900 dark:text-gray-100",
|
|
250
251
|
children: t.serverName
|
|
251
252
|
}),
|
|
252
|
-
/* @__PURE__ */ (0, P.jsx)(
|
|
253
|
+
/* @__PURE__ */ (0, P.jsx)(a, {
|
|
253
254
|
variant: "outline",
|
|
254
255
|
className: N ? "bg-blue-500/20 text-blue-600 dark:text-blue-400 border-blue-500/50" : "bg-green-500/20 text-green-600 dark:text-green-400 border-green-500/50",
|
|
255
256
|
children: j
|
|
@@ -262,8 +263,8 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
262
263
|
}), /* @__PURE__ */ (0, P.jsxs)("div", {
|
|
263
264
|
className: "flex items-center gap-2",
|
|
264
265
|
children: [
|
|
265
|
-
/* @__PURE__ */ (0, P.jsxs)(
|
|
266
|
-
render: /* @__PURE__ */ (0, P.jsx)(
|
|
266
|
+
/* @__PURE__ */ (0, P.jsxs)(r, { children: [/* @__PURE__ */ (0, P.jsx)(n, {
|
|
267
|
+
render: /* @__PURE__ */ (0, P.jsx)(c, {
|
|
267
268
|
variant: "ghost",
|
|
268
269
|
size: "sm",
|
|
269
270
|
onClick: y,
|
|
@@ -271,9 +272,9 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
271
272
|
children: v ? /* @__PURE__ */ (0, P.jsx)(u, { className: "h-4 w-4 text-green-600" }) : /* @__PURE__ */ (0, P.jsx)(d, { className: "h-4 w-4" })
|
|
272
273
|
}),
|
|
273
274
|
nativeButton: !0
|
|
274
|
-
}), /* @__PURE__ */ (0, P.jsx)(
|
|
275
|
-
/* @__PURE__ */ (0, P.jsxs)(
|
|
276
|
-
render: /* @__PURE__ */ (0, P.jsx)(
|
|
275
|
+
}), /* @__PURE__ */ (0, P.jsx)(i, { children: "Copy request" })] }),
|
|
276
|
+
/* @__PURE__ */ (0, P.jsxs)(r, { children: [/* @__PURE__ */ (0, P.jsx)(n, {
|
|
277
|
+
render: /* @__PURE__ */ (0, P.jsx)(c, {
|
|
277
278
|
variant: "ghost",
|
|
278
279
|
size: "sm",
|
|
279
280
|
onClick: b,
|
|
@@ -281,9 +282,9 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
281
282
|
children: /* @__PURE__ */ (0, P.jsx)(m, { className: "h-4 w-4" })
|
|
282
283
|
}),
|
|
283
284
|
nativeButton: !0
|
|
284
|
-
}), /* @__PURE__ */ (0, P.jsx)(
|
|
285
|
-
/* @__PURE__ */ (0, P.jsxs)(
|
|
286
|
-
render: /* @__PURE__ */ (0, P.jsx)(
|
|
285
|
+
}), /* @__PURE__ */ (0, P.jsx)(i, { children: "Download request" })] }),
|
|
286
|
+
/* @__PURE__ */ (0, P.jsxs)(r, { children: [/* @__PURE__ */ (0, P.jsx)(n, {
|
|
287
|
+
render: /* @__PURE__ */ (0, P.jsx)(c, {
|
|
287
288
|
variant: "ghost",
|
|
288
289
|
size: "sm",
|
|
289
290
|
onClick: x,
|
|
@@ -291,8 +292,8 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
291
292
|
children: /* @__PURE__ */ (0, P.jsx)(C, { className: "h-4 w-4" })
|
|
292
293
|
}),
|
|
293
294
|
nativeButton: !0
|
|
294
|
-
}), /* @__PURE__ */ (0, P.jsx)(
|
|
295
|
-
/* @__PURE__ */ (0, P.jsx)(
|
|
295
|
+
}), /* @__PURE__ */ (0, P.jsx)(i, { children: "Fullscreen" })] }),
|
|
296
|
+
/* @__PURE__ */ (0, P.jsx)(c, {
|
|
296
297
|
variant: "ghost",
|
|
297
298
|
size: "sm",
|
|
298
299
|
onClick: f,
|
|
@@ -332,7 +333,7 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
332
333
|
children: [/* @__PURE__ */ (0, P.jsx)("code", {
|
|
333
334
|
className: "flex-1 text-xs font-mono break-all",
|
|
334
335
|
children: t.request.url
|
|
335
|
-
}), /* @__PURE__ */ (0, P.jsxs)(
|
|
336
|
+
}), /* @__PURE__ */ (0, P.jsxs)(c, {
|
|
336
337
|
size: "sm",
|
|
337
338
|
variant: "outline",
|
|
338
339
|
onClick: () => {
|
|
@@ -389,7 +390,7 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
389
390
|
/* @__PURE__ */ (0, P.jsxs)("div", {
|
|
390
391
|
className: "flex gap-2 p-4 border-t dark:border-zinc-700",
|
|
391
392
|
children: [
|
|
392
|
-
/* @__PURE__ */ (0, P.jsx)(
|
|
393
|
+
/* @__PURE__ */ (0, P.jsx)(c, {
|
|
393
394
|
onClick: () => {
|
|
394
395
|
if (t) {
|
|
395
396
|
if (M) {
|
|
@@ -398,11 +399,11 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
398
399
|
D.error("Missing required fields", { description: `Please fill in: ${e.join(", ")}` });
|
|
399
400
|
return;
|
|
400
401
|
}
|
|
401
|
-
|
|
402
|
+
o(t.id, {
|
|
402
403
|
action: "accept",
|
|
403
404
|
content: S
|
|
404
405
|
});
|
|
405
|
-
} else N &&
|
|
406
|
+
} else N && o(t.id, { action: "accept" });
|
|
406
407
|
f(), import("./react-BIs9pQ3H.js").then((t) => /* @__PURE__ */ e(t.t(), 1)).then((e) => {
|
|
407
408
|
let t = D(e.createElement("div", { className: "space-y-3" }, e.createElement("div", null, e.createElement("strong", null, "Elicitation Response Sent"), e.createElement("p", { className: "text-sm text-muted-foreground mt-1" }, "The tool will continue executing.")), e.createElement("div", { className: "flex gap-2" }, e.createElement("button", {
|
|
408
409
|
"data-testid": "elicitation-view-tool-result",
|
|
@@ -420,18 +421,18 @@ function R({ request: t, onApprove: n, onReject: c, onClose: f, previewMode: p,
|
|
|
420
421
|
"data-testid": "elicitation-accept-button",
|
|
421
422
|
children: "Accept"
|
|
422
423
|
}),
|
|
423
|
-
/* @__PURE__ */ (0, P.jsx)(
|
|
424
|
+
/* @__PURE__ */ (0, P.jsx)(c, {
|
|
424
425
|
onClick: () => {
|
|
425
|
-
t && (
|
|
426
|
+
t && (o(t.id, { action: "decline" }), f());
|
|
426
427
|
},
|
|
427
428
|
variant: "outline",
|
|
428
429
|
className: "flex-1",
|
|
429
430
|
"data-testid": "elicitation-decline-button",
|
|
430
431
|
children: "Decline"
|
|
431
432
|
}),
|
|
432
|
-
/* @__PURE__ */ (0, P.jsx)(
|
|
433
|
+
/* @__PURE__ */ (0, P.jsx)(c, {
|
|
433
434
|
onClick: () => {
|
|
434
|
-
t && (
|
|
435
|
+
t && (s(t.id, "User cancelled elicitation request"), f());
|
|
435
436
|
},
|
|
436
437
|
variant: "outline",
|
|
437
438
|
className: "flex-1",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as n, g as r, m as i, s as a, v as o } from "./button-CB4uOoUV.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/useValueChanged.mjs
|
|
4
4
|
var s = /* @__PURE__ */ e(t(), 1);
|
|
5
5
|
function c(e, t) {
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}, [e, i]),
|
|
10
|
-
|
|
6
|
+
let n = s.useRef(e), i = o(t);
|
|
7
|
+
r(() => {
|
|
8
|
+
n.current !== e && i(n.current);
|
|
9
|
+
}, [e, i]), r(() => {
|
|
10
|
+
n.current = e;
|
|
11
11
|
}, [e]);
|
|
12
12
|
}
|
|
13
13
|
//#endregion
|
|
@@ -47,51 +47,51 @@ var l = /*#__PURE__*/ function(e) {
|
|
|
47
47
|
value: "",
|
|
48
48
|
initialValue: null
|
|
49
49
|
},
|
|
50
|
-
setValidityData:
|
|
50
|
+
setValidityData: n,
|
|
51
51
|
disabled: void 0,
|
|
52
52
|
touched: d.touched,
|
|
53
|
-
setTouched:
|
|
53
|
+
setTouched: n,
|
|
54
54
|
dirty: d.dirty,
|
|
55
|
-
setDirty:
|
|
55
|
+
setDirty: n,
|
|
56
56
|
filled: d.filled,
|
|
57
|
-
setFilled:
|
|
57
|
+
setFilled: n,
|
|
58
58
|
focused: d.focused,
|
|
59
|
-
setFocused:
|
|
59
|
+
setFocused: n,
|
|
60
60
|
validate: () => null,
|
|
61
61
|
validationMode: "onSubmit",
|
|
62
62
|
validationDebounceTime: 0,
|
|
63
63
|
shouldValidateOnChange: () => !1,
|
|
64
64
|
state: f,
|
|
65
65
|
markedDirtyRef: { current: !1 },
|
|
66
|
-
registerFieldControl:
|
|
66
|
+
registerFieldControl: n,
|
|
67
67
|
validation: {
|
|
68
68
|
getValidationProps: (e, t = a) => t,
|
|
69
69
|
inputRef: { current: null },
|
|
70
|
-
registerInput:
|
|
70
|
+
registerInput: n,
|
|
71
71
|
commit: async () => {},
|
|
72
|
-
change:
|
|
72
|
+
change: n
|
|
73
73
|
}
|
|
74
74
|
}, h = /*#__PURE__*/ s.createContext(m);
|
|
75
75
|
process.env.NODE_ENV !== "production" && (h.displayName = "FieldRootContext");
|
|
76
76
|
function g(e = !0) {
|
|
77
77
|
let t = s.useContext(h);
|
|
78
|
-
if (t.setValidityData ===
|
|
78
|
+
if (t.setValidityData === n && !e) throw Error(process.env.NODE_ENV === "production" ? i(28) : "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
|
|
79
79
|
return t;
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
82
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/field-register-control/useRegisterFieldControl.mjs
|
|
83
|
-
function _(e, t,
|
|
83
|
+
function _(e, t, n, i, a = !0, o) {
|
|
84
84
|
let { registerFieldControl: c } = g(), l = s.useRef(null);
|
|
85
|
-
l.current ||= Symbol(),
|
|
86
|
-
let
|
|
87
|
-
if (!(!
|
|
85
|
+
l.current ||= Symbol(), r(() => {
|
|
86
|
+
let r = l.current;
|
|
87
|
+
if (!(!r || !a)) return c(r, {
|
|
88
88
|
controlRef: e,
|
|
89
89
|
getValue: i,
|
|
90
90
|
id: t,
|
|
91
91
|
name: o,
|
|
92
|
-
value:
|
|
92
|
+
value: n
|
|
93
93
|
}), () => {
|
|
94
|
-
c(
|
|
94
|
+
c(r, void 0);
|
|
95
95
|
};
|
|
96
96
|
}, [
|
|
97
97
|
e,
|
|
@@ -100,18 +100,18 @@ function _(e, t, r, i, a = !0, o) {
|
|
|
100
100
|
t,
|
|
101
101
|
o,
|
|
102
102
|
c,
|
|
103
|
-
|
|
103
|
+
n
|
|
104
104
|
]);
|
|
105
105
|
}
|
|
106
106
|
//#endregion
|
|
107
107
|
//#region ../../node_modules/.pnpm/@base-ui+react@1.6.0_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/react/internals/labelable-provider/LabelableContext.mjs
|
|
108
108
|
var v = /*#__PURE__*/ s.createContext({
|
|
109
109
|
controlId: void 0,
|
|
110
|
-
registerControlId:
|
|
110
|
+
registerControlId: n,
|
|
111
111
|
labelId: void 0,
|
|
112
|
-
setLabelId:
|
|
112
|
+
setLabelId: n,
|
|
113
113
|
messageIds: [],
|
|
114
|
-
setMessageIds:
|
|
114
|
+
setMessageIds: n,
|
|
115
115
|
getDescriptionProps: (e) => e
|
|
116
116
|
});
|
|
117
117
|
process.env.NODE_ENV !== "production" && (v.displayName = "LabelableContext");
|
|
@@ -123,7 +123,7 @@ function y() {
|
|
|
123
123
|
var b = /*#__PURE__*/ s.createContext({
|
|
124
124
|
formRef: { current: { fields: /* @__PURE__ */ new Map() } },
|
|
125
125
|
errors: {},
|
|
126
|
-
clearErrors:
|
|
126
|
+
clearErrors: n,
|
|
127
127
|
validationMode: "onSubmit",
|
|
128
128
|
submitAttemptedRef: { current: !1 }
|
|
129
129
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n } from "./createLucideIcon-BONxC1L5.js";
|
|
3
3
|
//#region src/client/context/InspectorContext.tsx
|
|
4
4
|
var r = /* @__PURE__ */ e(t(), 1), i = n(), a = (0, r.createContext)(void 0);
|
|
5
5
|
function o({ children: e }) {
|
|
@@ -71,27 +71,7 @@ function o({ children: e }) {
|
|
|
71
71
|
embeddedConfig: t
|
|
72
72
|
}));
|
|
73
73
|
}, []), _ = (0, r.useCallback)((e, t, n) => {
|
|
74
|
-
|
|
75
|
-
method: "POST",
|
|
76
|
-
headers: {
|
|
77
|
-
"Content-Type": "application/json",
|
|
78
|
-
"X-Debug-Session-Id": "831b88"
|
|
79
|
-
},
|
|
80
|
-
body: JSON.stringify({
|
|
81
|
-
sessionId: "831b88",
|
|
82
|
-
location: "InspectorContext.tsx:navigateToItem",
|
|
83
|
-
message: "context navigateToItem",
|
|
84
|
-
data: {
|
|
85
|
-
serverId: e,
|
|
86
|
-
tab: t,
|
|
87
|
-
itemIdentifier: n ?? null,
|
|
88
|
-
selectedToolName: t === "tools" ? n ?? null : null,
|
|
89
|
-
selectedResourceUri: t === "resources" ? n ?? null : null
|
|
90
|
-
},
|
|
91
|
-
timestamp: Date.now(),
|
|
92
|
-
hypothesisId: "H5"
|
|
93
|
-
})
|
|
94
|
-
}).catch(() => {}), console.warn("[InspectorContext] navigateToItem called:", {
|
|
74
|
+
console.warn("[InspectorContext] navigateToItem called:", {
|
|
95
75
|
serverId: e,
|
|
96
76
|
tab: t,
|
|
97
77
|
itemIdentifier: n
|