@mcp-use/inspector 20.0.0-beta.0 → 20.0.0-beta.2
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 +5 -0
- package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-Dcw-FOy8.js} +50 -50
- package/dist/cdn/ChatTab-DBl6dHVH.js +6744 -0
- package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-Bt4IICtv.js} +77 -77
- package/dist/cdn/{ConnectionSettingsForm-iwNW86ZU.js → ConnectionSettingsForm-BFsZpwK4.js} +348 -292
- package/dist/cdn/ConnectionSettingsTab-DDk06dhT.js +150 -0
- package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-CL1KJ0bz.js} +39 -39
- package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-tmgN_Vdr.js} +1 -1
- package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-UjtEbNod.js} +1 -21
- package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BFxf5oEu.js} +18 -18
- package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-Cv-GmtGF.js} +19 -19
- package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-B98kSYCj.js} +1 -1
- package/dist/cdn/MarkdownRenderer-DQflNTGo.js +3610 -0
- package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-CeImSrhx.js} +13 -13
- package/dist/cdn/{OAuthCallback-BxuOVgdb.js → OAuthCallback-C4n2hqKU.js} +1 -1
- package/dist/cdn/PromptsTab-C84YLTSM.js +901 -0
- package/dist/cdn/{ResourcesTab-BczUMFil.js → ResourcesTab-CCa5bIHE.js} +35 -55
- package/dist/cdn/{SamplingTab-6u5s845G.js → SamplingTab-Bt9z8yQ2.js} +35 -35
- package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-CvrKX8fz.js} +12 -12
- package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-D0-ARyOh.js} +6 -6
- package/dist/cdn/{ToolsTab-CUhwP4rZ.js → ToolsTab-v9zgWmM6.js} +103 -137
- package/dist/cdn/{ViewPreview-CxJc1Kht.js → ViewPreview-DsPwZAwO.js} +2 -2
- package/dist/cdn/{WidgetWrapper-BJJtLqMb.js → WidgetWrapper-CwlpDv17.js} +529 -530
- package/dist/cdn/card-DgiYnSg-.js +41 -0
- package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-By0FklhG.js} +6 -6
- package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-BsDpuJd3.js} +151 -151
- package/dist/cdn/{dist-mRDqCgKU.js → dist-B0eL32Gb.js} +114 -113
- package/dist/cdn/{dist-DjXr_YO3.js → dist-DaMB0Su9.js} +1 -1
- package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-QDjRGsPo.js} +1 -1
- package/dist/cdn/{input-BLxOA7V-.js → input-C2OBd4PJ.js} +4787 -2842
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +7424 -7443
- package/dist/cdn/{label-CBvG613A.js → label-B9Jmm9be.js} +10 -10
- package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
- package/dist/cdn/{not-found-BcNNsTjS.js → not-found-DEtSM_Wd.js} +7 -7
- package/dist/cdn/providerMeta-BQIfHuNL.js +379 -0
- package/dist/cdn/{react-yUi9mVK4.js → react-Dn8PWXwP.js} +33 -27
- package/dist/cdn/{select-BZ_IoKxg.js → select-DDdiIPR2.js} +726 -726
- package/dist/cdn/{shared-uMiV6Fx1.js → shared-DaILIQPP.js} +29 -29
- package/dist/cdn/{popover-C_SSrXT0.js → sheet-Br_l2kry.js} +694 -622
- package/dist/cdn/{spinner-CWcJhIY_.js → spinner-jQtC7EBj.js} +5 -5
- package/dist/cdn/{switch-DtQOLb9R.js → switch-C3IyQuid.js} +104 -104
- package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-CkdI6Mac.js} +147 -147
- package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-DGoIGfIS.js} +3 -3
- package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-DSbwcFVt.js} +6 -6
- package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-DqAdnppm.js} +1 -1
- package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-BRqEzYh-.js} +2 -2
- package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-CTb6GZbt.js} +73 -46
- package/dist/cdn/{useViewHostProps-C7vjco2m.js → useViewHostProps-DIIlz3tJ.js} +1 -1
- package/dist/cli.js +141 -25
- 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/ResourcesTab.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/StreamingAssistantContent.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/providerMeta.d.ts +11 -0
- package/dist/client/components/chat/providerMeta.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/shared/MarkdownRenderer.d.ts +2 -1
- package/dist/client/components/shared/MarkdownRenderer.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-tab-background.d.ts +3 -1
- package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
- package/dist/client/context/InspectorContext.d.ts.map +1 -1
- package/dist/client/index.js +2577 -2165
- package/dist/client/telemetry/utils.d.ts.map +1 -1
- package/dist/server/asset-urls.d.ts +18 -0
- package/dist/server/asset-urls.d.ts.map +1 -0
- package/dist/server/asset-urls.js +17 -0
- package/dist/server/cdn-shell.d.ts +3 -3
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +5 -3
- package/dist/server/chunk-H6ZCIKBS.js +63 -0
- package/dist/server/{chunk-ESODOPDD.js → chunk-J4FNYLBF.js} +4 -0
- package/dist/server/{chunk-TPHRVELX.js → chunk-K2DPKTIS.js} +27 -9
- package/dist/server/{chunk-THQ67TSE.js → chunk-LIM6NAUS.js} +2 -9
- package/dist/server/chunk-M5TZA42I.js +54 -0
- package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
- package/dist/server/{chunk-J67FVPHF.js → chunk-R6RQMIXL.js} +2 -2
- 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 +8 -6
- 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/favicon-static.d.ts.map +1 -1
- package/dist/server/favicon-static.js +1 -1
- package/dist/server/index.js +9 -7
- package/dist/server/middleware.js +9 -7
- 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/static-assets.d.ts +5 -0
- package/dist/server/static-assets.d.ts.map +1 -0
- package/dist/server/static-assets.js +9 -0
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.js +3 -3
- package/dist/web/assets/{AnimatePresence-CthXziG2.js → AnimatePresence-C5p0yiY1.js} +2 -2
- package/dist/web/assets/ChatTab-C2FtENBM.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-B2sUjytG.js +1 -0
- package/dist/web/assets/ElicitationTab-DwH08kDC.js +1 -0
- package/dist/web/assets/{FormContext-Cqc_A12u.js → FormContext-DH2caWKO.js} +1 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +1 -0
- package/dist/web/assets/{ManufactOAuthCallback-B-tdkUA2.js → ManufactOAuthCallback-Btu4B6u6.js} +1 -1
- package/dist/web/assets/MarkdownRenderer-DpIEt9wb.js +47 -0
- package/dist/web/assets/{NotificationsTab-BgLjxuos.js → NotificationsTab-CHB8mtSz.js} +1 -1
- package/dist/web/assets/{OAuthCallback-Bp-jLoQs.js → OAuthCallback-DV4MgX4Z.js} +1 -1
- package/dist/web/assets/PromptsTab-0GIapoSs.js +15 -0
- package/dist/web/assets/ResourcesTab-N9xjsI_b.js +2 -0
- package/dist/web/assets/SamplingTab-Dw0vpi4t.js +1 -0
- package/dist/web/assets/ServerMetadataTab-D-eQpLBF.js +1 -0
- package/dist/web/assets/ToolsTab-BMrMJ5JV.js +8 -0
- package/dist/web/assets/ViewPreview-N_cpEO0W.js +1 -0
- package/dist/web/assets/WidgetWrapper-pDgNVq9y.js +34 -0
- package/dist/web/assets/checkbox-CrnXSMh2.js +1 -0
- package/dist/web/assets/dist-CeWSydFI.js +21 -0
- package/dist/web/assets/index-Cfuv_gb3.js +475 -0
- package/dist/web/assets/index-fBX3akc8.css +1 -0
- package/dist/web/assets/input-CLYhA7PK.js +1 -0
- package/dist/web/assets/{label-B5Q_Zr8M.js → label-Cdim77Jw.js} +1 -1
- package/dist/web/assets/select-CJ57-Bor.js +1 -0
- package/dist/web/assets/shared-B1GD9FMm.js +1 -0
- package/dist/web/assets/{tabs-subtle-Dxgism9f.js → tabs-subtle-CG5cjC_N.js} +1 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +1 -0
- package/dist/web/assets/useConfig-BTp15Lle.js +1 -0
- package/dist/web/assets/{useViewHostProps-BgsQ2yYl.js → useViewHostProps-BQlaFC2Q.js} +1 -1
- package/dist/web/index.html +8 -9
- package/package.json +5 -12
- package/dist/cdn/ChatTab-5ya_YTFV.js +0 -13218
- package/dist/cdn/ConnectionSettingsTab-CeK83dxn.js +0 -145
- package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
- package/dist/cdn/card-DqjqAq0o.js +0 -41
- package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
- 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/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/ChatTab-CiAqtqhj.js +0 -460
- package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +0 -1
- package/dist/web/assets/ElicitationTab-B3Eg0_Jm.js +0 -1
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
- package/dist/web/assets/PromptsTab-CA-SZs43.js +0 -61
- package/dist/web/assets/ResourcesTab-DdMIW_af.js +0 -2
- package/dist/web/assets/SamplingTab-DjyDG01W.js +0 -1
- package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +0 -1
- package/dist/web/assets/ToolsTab-BHk8GCmd.js +0 -8
- package/dist/web/assets/ViewPreview-DWtmwzCb.js +0 -1
- package/dist/web/assets/WidgetWrapper-B43lqbld.js +0 -34
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
- package/dist/web/assets/checkbox-_GzEPQic.js +0 -1
- package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.js +0 -131
- package/dist/web/assets/dist-DQjEDTKs.js +0 -21
- package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +0 -1
- package/dist/web/assets/index-Bbn-6QR2.js +0 -475
- package/dist/web/assets/index-BjH-Qp85.css +0 -1
- package/dist/web/assets/input-CjmxOFr6.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-yq1lkD3x.js +0 -1
- package/dist/web/assets/pdf-C3cfS_Ha.js +0 -54
- package/dist/web/assets/select-C0xlfLAa.js +0 -1
- package/dist/web/assets/shared-Dfwy7nyg.js +0 -1
- package/dist/web/assets/sheet-CRPrEqAa.js +0 -1
- package/dist/web/assets/textarea-Ci09-en6.js +0 -1
- package/dist/web/assets/useConfig-b1f_iVFH.js +0 -1
- package/dist/web/assets/useMCPPrompts-CPskz9af.js +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as o } from "./AnimatePresence-
|
|
5
|
-
import { n as s, r as c, t as l } from "./WidgetWrapper-
|
|
2
|
+
import { Pr as n, f as r, sr as i } from "./input-C2OBd4PJ.js";
|
|
3
|
+
import { t as a } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
+
import { t as o } from "./AnimatePresence-Dcw-FOy8.js";
|
|
5
|
+
import { n as s, r as c, t as l } from "./WidgetWrapper-CwlpDv17.js";
|
|
6
6
|
import { t as u } from "./brush-B_mKhyxG.js";
|
|
7
7
|
import { a as d, i as f, t as p } from "./browser-CbQIH4w2.js";
|
|
8
8
|
import { n as m, t as h } from "./zap-Mb-pbw2X.js";
|
|
9
9
|
import { t as g } from "./clock-CmUbSx_B.js";
|
|
10
10
|
import { t as _ } from "./code-V_0nf5rg.js";
|
|
11
|
-
import { a as v, t as y } from "./JSONDisplay-
|
|
11
|
+
import { a as v, t as y } from "./JSONDisplay-BFxf5oEu.js";
|
|
12
12
|
import { t as b } from "./folder-open-B3lu2rG_.js";
|
|
13
|
-
import { a as x, i as S, n as C, o as w, r as T, t as E } from "./shared-
|
|
13
|
+
import { a as x, i as S, n as C, o as w, r as T, t as E } from "./shared-DaILIQPP.js";
|
|
14
14
|
import { t as D } from "./maximize-BALCV_ep.js";
|
|
15
|
-
import { d as O, t as k } from "./telemetry-
|
|
16
|
-
import { c as A, r as j, s as M } from "./react-
|
|
17
|
-
import { t as N } from "./spinner-
|
|
18
|
-
import { n as P } from "./InspectorContext-
|
|
19
|
-
import { t as F } from "./useConfig-
|
|
20
|
-
import { t as I } from "./useViewHostProps-
|
|
15
|
+
import { d as O, t as k } from "./telemetry-DGoIGfIS.js";
|
|
16
|
+
import { c as A, r as j, s as M } from "./react-Dn8PWXwP.js";
|
|
17
|
+
import { t as N } from "./spinner-jQtC7EBj.js";
|
|
18
|
+
import { n as P } from "./InspectorContext-UjtEbNod.js";
|
|
19
|
+
import { t as F } from "./useConfig-CTb6GZbt.js";
|
|
20
|
+
import { t as I } from "./useViewHostProps-DIIlz3tJ.js";
|
|
21
21
|
//#region src/client/components/resources/ResourceResultDisplay.tsx
|
|
22
|
-
var L = /* @__PURE__ */ e(t(), 1), R =
|
|
22
|
+
var L = /* @__PURE__ */ e(t(), 1), R = a();
|
|
23
23
|
function z(e) {
|
|
24
24
|
if ("error" in e && e.error && typeof e.error == "string") return e.error;
|
|
25
25
|
if (!("isError" in e && e.isError)) return null;
|
|
@@ -60,7 +60,7 @@ function B({ serverId: e, viewId: t, resourceUri: n, toolOutput: r, toolMetadata
|
|
|
60
60
|
}, p)
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function V({ result: e, isLoading: t, previewMode:
|
|
63
|
+
function V({ result: e, isLoading: t, previewMode: r, serverId: a, readResource: o, onTogglePreview: c, onCopy: l, onDownload: p, onFullscreen: m, isCopied: b = !1, selectedResource: x, llmConfig: S }) {
|
|
64
64
|
let [C, w] = (0, L.useState)(null), T = (0, L.useCallback)((e) => {
|
|
65
65
|
w(e);
|
|
66
66
|
}, []), [E, O] = (0, L.useState)("inline"), k = e?.result && "contents" in e.result && Array.isArray(e.result.contents) && e.result.contents[0]?._meta || {}, j = {
|
|
@@ -126,7 +126,7 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
|
|
|
126
126
|
})]
|
|
127
127
|
});
|
|
128
128
|
})(),
|
|
129
|
-
H && /* @__PURE__ */ (0, R.jsx)(
|
|
129
|
+
H && /* @__PURE__ */ (0, R.jsx)(n, {
|
|
130
130
|
variant: "outline",
|
|
131
131
|
className: "text-xs bg-green-50 dark:bg-green-900/20 border-none border-green-200 dark:border-green-800/50 text-green-600 dark:text-green-400",
|
|
132
132
|
children: "MCP Apps"
|
|
@@ -135,26 +135,26 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
|
|
|
135
135
|
}), /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
136
136
|
className: "flex items-center gap-1",
|
|
137
137
|
children: [
|
|
138
|
-
H && /* @__PURE__ */ (0, R.jsxs)(
|
|
138
|
+
H && /* @__PURE__ */ (0, R.jsxs)(i, {
|
|
139
139
|
variant: "ghost",
|
|
140
140
|
size: "sm",
|
|
141
141
|
onClick: c,
|
|
142
|
-
className:
|
|
143
|
-
children: [
|
|
142
|
+
className: r ? "" : "text-purple-600 dark:text-purple-400",
|
|
143
|
+
children: [r ? /* @__PURE__ */ (0, R.jsx)(_, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ (0, R.jsx)(u, { className: "h-4 w-4 mr-1" }), r ? "JSON" : "Preview"]
|
|
144
144
|
}),
|
|
145
|
-
/* @__PURE__ */ (0, R.jsx)(
|
|
145
|
+
/* @__PURE__ */ (0, R.jsx)(i, {
|
|
146
146
|
variant: "ghost",
|
|
147
147
|
size: "sm",
|
|
148
148
|
onClick: l,
|
|
149
149
|
children: b ? /* @__PURE__ */ (0, R.jsx)(d, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, R.jsx)(f, { className: "h-4 w-4" })
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */ (0, R.jsx)(
|
|
151
|
+
/* @__PURE__ */ (0, R.jsx)(i, {
|
|
152
152
|
variant: "ghost",
|
|
153
153
|
size: "sm",
|
|
154
154
|
onClick: p,
|
|
155
155
|
children: /* @__PURE__ */ (0, R.jsx)(v, { className: "h-4 w-4" })
|
|
156
156
|
}),
|
|
157
|
-
/* @__PURE__ */ (0, R.jsx)(
|
|
157
|
+
/* @__PURE__ */ (0, R.jsx)(i, {
|
|
158
158
|
variant: "ghost",
|
|
159
159
|
size: "sm",
|
|
160
160
|
onClick: m,
|
|
@@ -164,7 +164,7 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
|
|
|
164
164
|
})]
|
|
165
165
|
}), /* @__PURE__ */ (0, R.jsx)("div", {
|
|
166
166
|
className: "flex-1 overflow-y-auto relative",
|
|
167
|
-
children: H &&
|
|
167
|
+
children: H && a && o && V ? r ? /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
168
168
|
className: "flex flex-1 h-full relative flex-col min-h-0",
|
|
169
169
|
"data-testid": "resource-widget-preview",
|
|
170
170
|
children: [/* @__PURE__ */ (0, R.jsx)("div", {
|
|
@@ -188,7 +188,7 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
|
|
|
188
188
|
children: "This widget requires props, set or generate them in the props debugger"
|
|
189
189
|
})
|
|
190
190
|
}) : /* @__PURE__ */ (0, R.jsx)(B, {
|
|
191
|
-
serverId:
|
|
191
|
+
serverId: a,
|
|
192
192
|
viewId: `resource-${e.timestamp}`,
|
|
193
193
|
resourceUri: V,
|
|
194
194
|
toolOutput: e.result,
|
|
@@ -249,7 +249,7 @@ function H({ resources: e, selectedResource: t, onResourceSelect: n, focusedInde
|
|
|
249
249
|
}
|
|
250
250
|
//#endregion
|
|
251
251
|
//#region src/client/components/ResourcesTab.tsx
|
|
252
|
-
function U({ ref: e, resources: t, readResource: n, serverId:
|
|
252
|
+
function U({ ref: e, resources: t, readResource: n, serverId: a, isConnected: s, mcpServerUrl: c, refreshResources: l }) {
|
|
253
253
|
let [u, d] = (0, L.useState)(!1), [f, h] = (0, L.useState)(null), { selectedResourceUri: g, setSelectedResourceUri: _ } = P(), { llmConfig: v } = F({ mcpServerUrl: c }), [y, T] = (0, L.useState)(null), [D, A] = (0, L.useState)(!1), [j, M] = (0, L.useState)(""), [N] = (0, L.useState)("resources"), [I, z] = (0, L.useState)(!0), [B, U] = (0, L.useState)(!1), [W, G] = (0, L.useState)(-1), [K, q] = (0, L.useState)(!1), J = (0, L.useRef)(null), Y = (0, L.useRef)(null), [ee, te] = (0, L.useState)(!1), [X, Z] = (0, L.useState)("list");
|
|
254
254
|
(0, L.useEffect)(() => {
|
|
255
255
|
let e = () => {
|
|
@@ -290,14 +290,14 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
290
290
|
A(!0);
|
|
291
291
|
let t = Date.now();
|
|
292
292
|
try {
|
|
293
|
-
let
|
|
293
|
+
let r = await n(e.uri);
|
|
294
294
|
k(new O({
|
|
295
295
|
resourceUri: e.uri,
|
|
296
|
-
serverId:
|
|
296
|
+
serverId: a,
|
|
297
297
|
success: !0
|
|
298
298
|
})).catch(() => {}), T({
|
|
299
299
|
uri: e.uri,
|
|
300
|
-
result:
|
|
300
|
+
result: r,
|
|
301
301
|
timestamp: t,
|
|
302
302
|
resourceAnnotations: {
|
|
303
303
|
...e.annotations,
|
|
@@ -307,7 +307,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
307
307
|
} catch (n) {
|
|
308
308
|
k(new O({
|
|
309
309
|
resourceUri: e.uri,
|
|
310
|
-
serverId:
|
|
310
|
+
serverId: a,
|
|
311
311
|
success: !1,
|
|
312
312
|
error: n instanceof Error ? n.message : "Unknown error"
|
|
313
313
|
})).catch(() => {}), T({
|
|
@@ -329,7 +329,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
329
329
|
}
|
|
330
330
|
}, [
|
|
331
331
|
n,
|
|
332
|
-
|
|
332
|
+
a,
|
|
333
333
|
s
|
|
334
334
|
]);
|
|
335
335
|
(0, L.useEffect)(() => {
|
|
@@ -369,27 +369,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
369
369
|
}, [W, Q]), (0, L.useEffect)(() => {
|
|
370
370
|
if (g && t.length > 0) {
|
|
371
371
|
let e = t.find((e) => e.uri === g);
|
|
372
|
-
|
|
373
|
-
method: "POST",
|
|
374
|
-
headers: {
|
|
375
|
-
"Content-Type": "application/json",
|
|
376
|
-
"X-Debug-Session-Id": "831b88"
|
|
377
|
-
},
|
|
378
|
-
body: JSON.stringify({
|
|
379
|
-
sessionId: "831b88",
|
|
380
|
-
location: "ResourcesTab.tsx:auto-select",
|
|
381
|
-
message: "resources auto-select effect",
|
|
382
|
-
data: {
|
|
383
|
-
selectedResourceUri: g,
|
|
384
|
-
resourcesCount: t.length,
|
|
385
|
-
resourceFound: !!e,
|
|
386
|
-
willSelect: !!(e && f?.uri !== e.uri),
|
|
387
|
-
currentSelected: f?.uri ?? null
|
|
388
|
-
},
|
|
389
|
-
timestamp: Date.now(),
|
|
390
|
-
hypothesisId: "H2-compare"
|
|
391
|
-
})
|
|
392
|
-
}).catch(() => {}), e && f?.uri !== e.uri && (_(null), setTimeout(() => {
|
|
372
|
+
e && f?.uri !== e.uri && (_(null), setTimeout(() => {
|
|
393
373
|
$(e);
|
|
394
374
|
let t = document.getElementById(`resource-${e.uri}`);
|
|
395
375
|
t && t.scrollIntoView({
|
|
@@ -434,7 +414,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
434
414
|
className: "h-full flex flex-col overflow-hidden relative bg-background",
|
|
435
415
|
children: [X !== "list" && /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
436
416
|
className: "flex items-center gap-2 p-2 border-b shrink-0 bg-background z-10",
|
|
437
|
-
children: [/* @__PURE__ */ (0, R.jsx)(
|
|
417
|
+
children: [/* @__PURE__ */ (0, R.jsx)(i, {
|
|
438
418
|
variant: "ghost",
|
|
439
419
|
size: "sm",
|
|
440
420
|
onClick: () => {
|
|
@@ -463,7 +443,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
463
443
|
children: /* @__PURE__ */ (0, R.jsxs)(o, {
|
|
464
444
|
initial: !1,
|
|
465
445
|
mode: "popLayout",
|
|
466
|
-
children: [X === "list" && /* @__PURE__ */ (0, R.jsx)(
|
|
446
|
+
children: [X === "list" && /* @__PURE__ */ (0, R.jsx)(r.div, {
|
|
467
447
|
initial: { x: "-100%" },
|
|
468
448
|
animate: { x: 0 },
|
|
469
449
|
exit: { x: "-100%" },
|
|
@@ -493,7 +473,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
493
473
|
onResourceSelect: $,
|
|
494
474
|
focusedIndex: W
|
|
495
475
|
})] }) })
|
|
496
|
-
}, "list"), X === "detail" && /* @__PURE__ */ (0, R.jsx)(
|
|
476
|
+
}, "list"), X === "detail" && /* @__PURE__ */ (0, R.jsx)(r.div, {
|
|
497
477
|
initial: { x: "100%" },
|
|
498
478
|
animate: { x: 0 },
|
|
499
479
|
exit: { x: "100%" },
|
|
@@ -510,7 +490,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
510
490
|
result: y,
|
|
511
491
|
isLoading: D,
|
|
512
492
|
previewMode: I,
|
|
513
|
-
serverId:
|
|
493
|
+
serverId: a,
|
|
514
494
|
readResource: n,
|
|
515
495
|
onTogglePreview: () => z(!I),
|
|
516
496
|
onCopy: ie,
|
|
@@ -564,7 +544,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
|
|
|
564
544
|
result: y,
|
|
565
545
|
isLoading: D,
|
|
566
546
|
previewMode: I,
|
|
567
|
-
serverId:
|
|
547
|
+
serverId: a,
|
|
568
548
|
readResource: n,
|
|
569
549
|
onTogglePreview: () => z(!I),
|
|
570
550
|
onCopy: ie,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as c } from "./label-
|
|
5
|
-
import { a as l, i as u, n as d, r as f, t as p } from "./select-
|
|
2
|
+
import { a as n, n as r, r as i, sr as a, t as o } from "./input-C2OBd4PJ.js";
|
|
3
|
+
import { t as s } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
+
import { t as c } from "./label-B9Jmm9be.js";
|
|
5
|
+
import { a as l, i as u, n as d, r as f, t as p } from "./select-DDdiIPR2.js";
|
|
6
6
|
import { a as m, i as h, r as g, t as _ } from "./browser-CbQIH4w2.js";
|
|
7
|
-
import { a as v, t as y } from "./JSONDisplay-
|
|
8
|
-
import { a as b, i as ee, n as x, o as S, r as C, t as te } from "./shared-
|
|
7
|
+
import { a as v, t as y } from "./JSONDisplay-BFxf5oEu.js";
|
|
8
|
+
import { a as b, i as ee, n as x, o as S, r as C, t as te } from "./shared-DaILIQPP.js";
|
|
9
9
|
import { t as w } from "./hash-BVQnWi7q.js";
|
|
10
10
|
import { t as T } from "./loader-circle-BLy9A_pp.js";
|
|
11
11
|
import { t as E } from "./maximize-2-CH5Lq90B.js";
|
|
12
12
|
import { t as D } from "./sparkles-BntO2rDR.js";
|
|
13
13
|
import { t as O } from "./trash-2-RwpJY5SL.js";
|
|
14
14
|
import { t as k } from "./x-C3vRQIYu.js";
|
|
15
|
-
import { t as A } from "./not-found-
|
|
15
|
+
import { t as A } from "./not-found-DEtSM_Wd.js";
|
|
16
16
|
import { u as j } from "./cfWorker-Bxcs9rNe.js";
|
|
17
|
-
import "./react-
|
|
18
|
-
import { n as M } from "./dist-
|
|
19
|
-
import { n as N } from "./InspectorContext-
|
|
20
|
-
import { a as P } from "./dist-
|
|
21
|
-
import { t as F } from "./useConfig-
|
|
22
|
-
import { t as I } from "./textarea-
|
|
17
|
+
import "./react-Dn8PWXwP.js";
|
|
18
|
+
import { n as M } from "./dist-DaMB0Su9.js";
|
|
19
|
+
import { n as N } from "./InspectorContext-UjtEbNod.js";
|
|
20
|
+
import { a as P } from "./dist-B0eL32Gb.js";
|
|
21
|
+
import { t as F } from "./useConfig-CTb6GZbt.js";
|
|
22
|
+
import { t as I } from "./textarea-DSbwcFVt.js";
|
|
23
23
|
//#region src/client/components/sampling/SamplingRequestsList.tsx
|
|
24
|
-
var L = /* @__PURE__ */ e(t(), 1), R =
|
|
24
|
+
var L = /* @__PURE__ */ e(t(), 1), R = s();
|
|
25
25
|
function z({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex: r, formatRelativeTime: i }) {
|
|
26
26
|
return e.length === 0 ? /* @__PURE__ */ (0, R.jsx)("div", {
|
|
27
27
|
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
@@ -91,7 +91,7 @@ function B({ llmConfig: e }) {
|
|
|
91
91
|
}
|
|
92
92
|
//#endregion
|
|
93
93
|
//#region src/client/components/sampling/SamplingRequestDisplay.tsx
|
|
94
|
-
function V({ request: t, onApprove:
|
|
94
|
+
function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b, onTogglePreview: ee, isCopied: x, onCopy: S, onDownload: C, onFullscreen: te, llmConfig: w }) {
|
|
95
95
|
let [O, A] = (0, L.useState)("manual"), [N, P] = (0, L.useState)("stub-model"), [F, z] = (0, L.useState)("endTurn"), [V, H] = (0, L.useState)("assistant"), [U, W] = (0, L.useState)("text"), [G, K] = (0, L.useState)("positive"), [q, J] = (0, L.useState)(""), [Y, X] = (0, L.useState)("image/png"), [Z, ne] = (0, L.useState)(!1), [re, Q] = (0, L.useState)(null), { generateResponse: ie, isAvailable: $ } = B({ llmConfig: w });
|
|
96
96
|
(0, L.useEffect)(() => {
|
|
97
97
|
t && (P(O === "llm" && w?.model ? w.model : "stub-model"), z("endTurn"), H("assistant"), W("text"), K("positive"), J(""), X("image/png"), Q(null));
|
|
@@ -173,8 +173,8 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
173
173
|
}), /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
174
174
|
className: "flex items-center gap-2",
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */ (0, R.jsxs)(
|
|
177
|
-
render: /* @__PURE__ */ (0, R.jsx)(
|
|
176
|
+
/* @__PURE__ */ (0, R.jsxs)(r, { children: [/* @__PURE__ */ (0, R.jsx)(n, {
|
|
177
|
+
render: /* @__PURE__ */ (0, R.jsx)(a, {
|
|
178
178
|
variant: "ghost",
|
|
179
179
|
size: "sm",
|
|
180
180
|
onClick: S,
|
|
@@ -182,9 +182,9 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
182
182
|
children: x ? /* @__PURE__ */ (0, R.jsx)(m, { className: "h-4 w-4 text-green-600" }) : /* @__PURE__ */ (0, R.jsx)(h, { className: "h-4 w-4" })
|
|
183
183
|
}),
|
|
184
184
|
nativeButton: !0
|
|
185
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
186
|
-
/* @__PURE__ */ (0, R.jsxs)(
|
|
187
|
-
render: /* @__PURE__ */ (0, R.jsx)(
|
|
185
|
+
}), /* @__PURE__ */ (0, R.jsx)(i, { children: "Copy request" })] }),
|
|
186
|
+
/* @__PURE__ */ (0, R.jsxs)(r, { children: [/* @__PURE__ */ (0, R.jsx)(n, {
|
|
187
|
+
render: /* @__PURE__ */ (0, R.jsx)(a, {
|
|
188
188
|
variant: "ghost",
|
|
189
189
|
size: "sm",
|
|
190
190
|
onClick: C,
|
|
@@ -192,9 +192,9 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
192
192
|
children: /* @__PURE__ */ (0, R.jsx)(v, { className: "h-4 w-4" })
|
|
193
193
|
}),
|
|
194
194
|
nativeButton: !0
|
|
195
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
196
|
-
/* @__PURE__ */ (0, R.jsxs)(
|
|
197
|
-
render: /* @__PURE__ */ (0, R.jsx)(
|
|
195
|
+
}), /* @__PURE__ */ (0, R.jsx)(i, { children: "Download request" })] }),
|
|
196
|
+
/* @__PURE__ */ (0, R.jsxs)(r, { children: [/* @__PURE__ */ (0, R.jsx)(n, {
|
|
197
|
+
render: /* @__PURE__ */ (0, R.jsx)(a, {
|
|
198
198
|
variant: "ghost",
|
|
199
199
|
size: "sm",
|
|
200
200
|
onClick: te,
|
|
@@ -202,8 +202,8 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
202
202
|
children: /* @__PURE__ */ (0, R.jsx)(E, { className: "h-4 w-4" })
|
|
203
203
|
}),
|
|
204
204
|
nativeButton: !0
|
|
205
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
206
|
-
/* @__PURE__ */ (0, R.jsx)(
|
|
205
|
+
}), /* @__PURE__ */ (0, R.jsx)(i, { children: "Fullscreen" })] }),
|
|
206
|
+
/* @__PURE__ */ (0, R.jsx)(a, {
|
|
207
207
|
variant: "ghost",
|
|
208
208
|
size: "sm",
|
|
209
209
|
onClick: _,
|
|
@@ -262,7 +262,7 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
262
262
|
className: "space-y-2 p-3 bg-muted rounded-lg",
|
|
263
263
|
children: [$ ? /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
264
264
|
className: "flex items-center gap-2",
|
|
265
|
-
children: [/* @__PURE__ */ (0, R.jsx)(
|
|
265
|
+
children: [/* @__PURE__ */ (0, R.jsx)(a, {
|
|
266
266
|
onClick: ae,
|
|
267
267
|
disabled: Z,
|
|
268
268
|
size: "sm",
|
|
@@ -297,7 +297,7 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
297
297
|
children: [/* @__PURE__ */ (0, R.jsx)(c, {
|
|
298
298
|
htmlFor: `model-${t.id}`,
|
|
299
299
|
children: "Model"
|
|
300
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
300
|
+
}), /* @__PURE__ */ (0, R.jsx)(o, {
|
|
301
301
|
id: `model-${t.id}`,
|
|
302
302
|
value: N,
|
|
303
303
|
onChange: (e) => P(e.target.value),
|
|
@@ -311,7 +311,7 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
311
311
|
children: [/* @__PURE__ */ (0, R.jsx)(c, {
|
|
312
312
|
htmlFor: `stopReason-${t.id}`,
|
|
313
313
|
children: "Stop Reason"
|
|
314
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
314
|
+
}), /* @__PURE__ */ (0, R.jsx)(o, {
|
|
315
315
|
id: `stopReason-${t.id}`,
|
|
316
316
|
value: F,
|
|
317
317
|
onChange: (e) => z(e.target.value),
|
|
@@ -397,7 +397,7 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
397
397
|
children: [/* @__PURE__ */ (0, R.jsx)(c, {
|
|
398
398
|
htmlFor: `mimeType-${t.id}`,
|
|
399
399
|
children: "MIME Type"
|
|
400
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
400
|
+
}), /* @__PURE__ */ (0, R.jsx)(o, {
|
|
401
401
|
id: `mimeType-${t.id}`,
|
|
402
402
|
value: Y,
|
|
403
403
|
onChange: (e) => X(e.target.value),
|
|
@@ -410,15 +410,15 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
410
410
|
}),
|
|
411
411
|
/* @__PURE__ */ (0, R.jsxs)("div", {
|
|
412
412
|
className: "flex gap-2 p-4 border-t dark:border-zinc-700",
|
|
413
|
-
children: [/* @__PURE__ */ (0, R.jsx)(
|
|
413
|
+
children: [/* @__PURE__ */ (0, R.jsx)(a, {
|
|
414
414
|
onClick: () => {
|
|
415
415
|
if (!t) return;
|
|
416
|
-
let
|
|
417
|
-
if (
|
|
418
|
-
M.error("Invalid response", { description: `Validation failed: ${
|
|
416
|
+
let n = j.CreateMessageResult["~standard"].validate(oe);
|
|
417
|
+
if (n.issues) {
|
|
418
|
+
M.error("Invalid response", { description: `Validation failed: ${n.issues.map((e) => e.message).join(", ")}` });
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
|
|
421
|
+
s(t.id, n.value), _(), import("./react-BIs9pQ3H.js").then((t) => /* @__PURE__ */ e(t.t(), 1)).then((e) => {
|
|
422
422
|
let n = M(e.createElement("div", { className: "space-y-3" }, e.createElement("div", null, e.createElement("strong", null, "Sampling 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", {
|
|
423
423
|
"data-testid": "sampling-view-tool-result",
|
|
424
424
|
className: "px-3 py-1.5 text-xs font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -433,7 +433,7 @@ function V({ request: t, onApprove: n, onReject: g, onClose: _, previewMode: b,
|
|
|
433
433
|
disabled: O === "llm" && Z,
|
|
434
434
|
"data-testid": "sampling-approve-button",
|
|
435
435
|
children: "Approve"
|
|
436
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
436
|
+
}), /* @__PURE__ */ (0, R.jsx)(a, {
|
|
437
437
|
onClick: () => {
|
|
438
438
|
t && (g(t.id, "User rejected sampling request"), _());
|
|
439
439
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as o } from "./label-
|
|
5
|
-
import { t as s } from "./JSONDisplay-
|
|
2
|
+
import { d as n, l as r, u as i } from "./input-C2OBd4PJ.js";
|
|
3
|
+
import { t as a } from "./jsx-runtime-CIxvMpEo.js";
|
|
4
|
+
import { t as o } from "./label-B9Jmm9be.js";
|
|
5
|
+
import { t as s } from "./JSONDisplay-BFxf5oEu.js";
|
|
6
6
|
import { t as c } from "./info-CNiOwqkf.js";
|
|
7
7
|
import { n as l, t as u } from "./servers-Dm72iTpY.js";
|
|
8
|
-
import { a as d, i as f, n as p, r as m, t as h } from "./card-
|
|
9
|
-
import { n as g, r as _, t as v } from "./tabs-subtle-
|
|
8
|
+
import { a as d, i as f, n as p, r as m, t as h } from "./card-DgiYnSg-.js";
|
|
9
|
+
import { n as g, r as _, t as v } from "./tabs-subtle-CkdI6Mac.js";
|
|
10
10
|
import { t as y } from "./inspector-settings-layout-0VDsjeqb.js";
|
|
11
|
-
import { n as b } from "./ListTabHeader-
|
|
11
|
+
import { n as b } from "./ListTabHeader-Cv-GmtGF.js";
|
|
12
12
|
//#region src/client/utils/serverMetadata.ts
|
|
13
13
|
function x(e) {
|
|
14
14
|
let t = {};
|
|
@@ -20,7 +20,7 @@ function x(e) {
|
|
|
20
20
|
}
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/client/components/ServerCapabilitiesList.tsx
|
|
23
|
-
var S = /* @__PURE__ */ e(t(), 1), C =
|
|
23
|
+
var S = /* @__PURE__ */ e(t(), 1), C = a();
|
|
24
24
|
function w({ connection: e }) {
|
|
25
25
|
let t = e.capabilities;
|
|
26
26
|
return t && Object.keys(t).length > 0 ? /* @__PURE__ */ (0, C.jsx)("div", {
|
|
@@ -182,18 +182,18 @@ function D({ connection: e, inDialog: t = !1 }) {
|
|
|
182
182
|
//#region src/client/components/ServerMetadataTab.tsx
|
|
183
183
|
var O = "server-metadata";
|
|
184
184
|
function k({ connection: e }) {
|
|
185
|
-
let [t,
|
|
185
|
+
let [t, a] = (0, S.useState)(0), [o, u] = (0, S.useState)(!1), d = x(e);
|
|
186
186
|
return /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
187
187
|
"data-testid": "server-info-modal",
|
|
188
188
|
className: "h-full overflow-y-auto overscroll-none",
|
|
189
189
|
onScroll: (e) => u(e.currentTarget.scrollTop > 0),
|
|
190
190
|
children: [
|
|
191
191
|
/* @__PURE__ */ (0, C.jsx)("div", {
|
|
192
|
-
className: `${
|
|
192
|
+
className: `${r(o)} flex flex-row items-center justify-between gap-2 ${i}`,
|
|
193
193
|
children: /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
194
194
|
className: "flex min-w-0 flex-col gap-2 sm:flex-row sm:items-center sm:gap-4",
|
|
195
195
|
children: [/* @__PURE__ */ (0, C.jsxs)("h2", {
|
|
196
|
-
className: `${
|
|
196
|
+
className: `${n} flex items-center gap-1.5`,
|
|
197
197
|
"data-testid": "server-info-modal-title",
|
|
198
198
|
children: [/* @__PURE__ */ (0, C.jsx)(c, {
|
|
199
199
|
className: b,
|
|
@@ -201,7 +201,7 @@ function k({ connection: e }) {
|
|
|
201
201
|
}), "Server Metadata"]
|
|
202
202
|
}), /* @__PURE__ */ (0, C.jsxs)(v, {
|
|
203
203
|
selectedIndex: t,
|
|
204
|
-
onSelect:
|
|
204
|
+
onSelect: a,
|
|
205
205
|
idPrefix: O,
|
|
206
206
|
className: "shrink-0",
|
|
207
207
|
children: [/* @__PURE__ */ (0, C.jsx)(g, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Rr as e } from "./input-C2OBd4PJ.js";
|
|
2
|
+
import { t } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
3
|
import { t as n } from "./createLucideIcon-C5fZZ6oB.js";
|
|
4
4
|
import { a as r } from "./browser-CbQIH4w2.js";
|
|
5
5
|
import { t as i } from "./loader-circle-BLy9A_pp.js";
|
|
@@ -31,15 +31,15 @@ var a = n("circle-x", [
|
|
|
31
31
|
d: "M12 17h.01",
|
|
32
32
|
key: "p32p05"
|
|
33
33
|
}]
|
|
34
|
-
]), s =
|
|
34
|
+
]), s = t(), c = {
|
|
35
35
|
success: "border-emerald-700/20 bg-emerald-700/10 text-emerald-700 dark:border-emerald-400/30 dark:bg-emerald-400/10 dark:text-emerald-400",
|
|
36
36
|
failed: "border-red-500/20 bg-red-500/10 text-red-500 dark:border-red-400/30 dark:bg-red-400/10 dark:text-red-400",
|
|
37
37
|
warning: "border-amber-700/20 bg-amber-700/10 text-amber-700 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-400",
|
|
38
38
|
loading: "border-purple-500/20 bg-purple-500/10 text-purple-500 dark:border-purple-400/30 dark:bg-purple-400/10 dark:text-purple-400 animate-spin"
|
|
39
39
|
}, l = "size-4 shrink-0 rounded-full border p-0.5";
|
|
40
|
-
function u({ state:
|
|
41
|
-
let u =
|
|
42
|
-
switch (
|
|
40
|
+
function u({ state: t, className: n }) {
|
|
41
|
+
let u = e(l, c[t], n);
|
|
42
|
+
switch (t) {
|
|
43
43
|
case "success": return /* @__PURE__ */ (0, s.jsx)(r, {
|
|
44
44
|
className: u,
|
|
45
45
|
"aria-hidden": !0
|