@mcp-use/inspector 20.0.0-beta.6 → 20.0.0-beta.7
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/dist/cdn/{AnimatePresence-Dcw-FOy8.js → AnimatePresence-D1bZ5_-l.js} +79 -78
- package/dist/cdn/{ChatTab-D6J3Gyp7.js → ChatTab-DtUGK07C.js} +1951 -1932
- package/dist/cdn/CheckboxIndicator-BjF73mGX.js +252 -0
- package/dist/cdn/{ConnectionSettingsForm-CWQueI8J.js → ConnectionSettingsForm-CNuMa6jp.js} +202 -202
- package/dist/cdn/{ConnectionSettingsTab-FGyt3QaI.js → ConnectionSettingsTab-qSVQ1aIF.js} +36 -35
- package/dist/cdn/{ElicitationTab-CL1KJ0bz.js → ElicitationTab-PEmEDvC5.js} +47 -46
- package/dist/cdn/{FormContext-tmgN_Vdr.js → FormContext-NtUiZclE.js} +26 -26
- package/dist/cdn/{InspectorContext-UjtEbNod.js → InspectorContext-BBKCdfmK.js} +1 -1
- package/dist/cdn/{JSONDisplay-BFxf5oEu.js → JSONDisplay-BJqMz7Ny.js} +22 -22
- package/dist/cdn/{ListTabHeader-Cv-GmtGF.js → ListTabHeader-DzmTtN1e.js} +20 -19
- package/dist/cdn/{WidgetWrapper-CruwjBOd.js → MCPAppsDebugControls-BpP-Ifap.js} +514 -550
- package/dist/cdn/{ManufactOAuthCallback-B98kSYCj.js → ManufactOAuthCallback-ChbbjFIT.js} +2 -2
- package/dist/cdn/{MarkdownRenderer-gLqUICEd.js → MarkdownRenderer-bX1BrKgI.js} +23 -23
- package/dist/cdn/McpAppsViewPanel-jlsYQ7uS.js +56 -0
- package/dist/cdn/{NotificationsTab-CeImSrhx.js → NotificationsTab-B7uebqMV.js} +21 -21
- package/dist/cdn/{OAuthCallback-Bg2bP-o9.js → OAuthCallback--NZdLoWx.js} +3 -3
- package/dist/cdn/PromptsTab-BlXDcau3.js +902 -0
- package/dist/cdn/{ResourcesTab-CQkKni-P.js → ResourcesTab-D45_JojP.js} +116 -114
- package/dist/cdn/{SamplingTab-D8q-iCMc.js → SamplingTab-r7tImM6L.js} +34 -33
- package/dist/cdn/{ServerMetadataTab-CvrKX8fz.js → ServerMetadataTab-BM3VhSLf.js} +9 -9
- package/dist/cdn/{StatusIcon-D0-ARyOh.js → StatusIcon-Q3n3YRtE.js} +10 -11
- package/dist/cdn/{ToolsTab-6xaVH43x.js → ToolsTab-DOAO8HnS.js} +664 -652
- package/dist/cdn/{ViewPreview-Ohh6JwOn.js → ViewPreview-CBhrVdwx.js} +3 -3
- 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-BA-DQk-G.js +41 -0
- package/dist/cdn/{checkbox-By0FklhG.js → checkbox-kwVa4gRX.js} +7 -7
- 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-BsDpuJd3.js → dialog-CJGnC5Ag.js} +171 -171
- package/dist/cdn/{dist-DaMB0Su9.js → dist-CTJnCYmk.js} +1 -1
- package/dist/cdn/{dist-CXHFvGre.js → dist-SxRsB1iS.js} +3 -3
- 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-DkQOzkvX.js → index-browser-Dm3R1Mfe.js} +1 -1
- package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
- package/dist/cdn/{input-C2OBd4PJ.js → input-BCpgLXU1.js} +2993 -5499
- package/dist/cdn/inspector.css +1 -1
- package/dist/cdn/inspector.js +7106 -7140
- package/dist/cdn/{label-B9Jmm9be.js → label-A0UGV8FE.js} +9 -9
- package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
- 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-DEtSM_Wd.js → not-found-BajFyZpp.js} +9 -11
- package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
- package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
- package/dist/cdn/{react-BLtCruam.js → react-Bl-hSkvn.js} +562 -512
- 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-DDdiIPR2.js → select-CCFHjOGk.js} +808 -807
- package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
- package/dist/cdn/{shared-DaILIQPP.js → shared-CJVHJhag.js} +36 -36
- package/dist/cdn/{sheet-Br_l2kry.js → sheet-oyq1mIyg.js} +620 -619
- package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
- package/dist/cdn/spinner-Be1GlSGX.js +15 -0
- package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
- package/dist/cdn/{switch-C3IyQuid.js → switch-DHXEA_N5.js} +190 -189
- package/dist/cdn/{tabs-subtle-CkdI6Mac.js → tabs-subtle-Dubd6Kj8.js} +269 -268
- package/dist/cdn/{telemetry-C7Ytz2BG.js → telemetry-TwPKZlFf.js} +2 -2
- package/dist/cdn/{textarea-DSbwcFVt.js → textarea-CwmI8_uI.js} +6 -6
- package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
- package/dist/cdn/{useAriaLabelledBy-DqAdnppm.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
- package/dist/cdn/{useCompositeItem-BRqEzYh-.js → useCompositeItem-Dhnm-7el.js} +3 -3
- package/dist/cdn/{useConfig-BW6uQf2m.js → useConfig-leHVjdjl.js} +2 -2
- package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
- package/dist/cdn/{useViewHostProps-CINeSkth.js → useViewHostProps-CDOm2w6u.js} +124 -109
- 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 +1 -1
- package/dist/client/components/ChatTab.d.ts.map +1 -1
- package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
- package/dist/client/components/ToolsTab.d.ts.map +1 -1
- package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
- package/dist/client/components/chat/ToolResultRenderer.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/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.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 +1 -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/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 +2086 -1860
- package/dist/client/utils/servers.d.ts +5 -0
- package/dist/client/utils/servers.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +2 -2
- package/dist/server/{chunk-GBY4WAVP.js → chunk-5GVQGIAX.js} +1 -1
- package/dist/server/{chunk-IFF5T5J4.js → chunk-UZZDBVKF.js} +1 -1
- package/dist/server/{chunk-NUHI6MJ6.js → chunk-VFVFLXKP.js} +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/middleware.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
- package/dist/web/assets/ChatTab-B6ubLbeA.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-Cb2eDgEu.js +1 -0
- package/dist/web/assets/ElicitationTab-CbnCrmu9.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-sRglMhat.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-BRO6TPkZ.js → ManufactOAuthCallback-D4uYGigW.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-gaJFjbtr.js → MarkdownRenderer-Cwxp9fLj.js} +2 -2
- package/dist/web/assets/McpAppsViewPanel-jQYFoZNX.js +1 -0
- package/dist/web/assets/{NotificationsTab-LYcfRjyd.js → NotificationsTab-DuSm762_.js} +1 -1
- package/dist/web/assets/{OAuthCallback-D8UItgTB.js → OAuthCallback-VLHlUe2c.js} +1 -1
- package/dist/web/assets/PromptsTab-DK6XZxR8.js +15 -0
- package/dist/web/assets/ResourcesTab-CUE4MAtJ.js +2 -0
- package/dist/web/assets/SamplingTab-BYNkVCTu.js +1 -0
- package/dist/web/assets/ServerMetadataTab-DWjNFMbq.js +1 -0
- package/dist/web/assets/ToolsTab-BisWWY2p.js +8 -0
- package/dist/web/assets/{ViewPreview--z6jL0Zg.js → ViewPreview-COrmPpRr.js} +1 -1
- 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-B6dtF73d.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-B8sA8Zml.js → dist-9Oy7e0v8.js} +4 -4
- package/dist/web/assets/index-BMaSsizY.js +499 -0
- package/dist/web/assets/index-D7TVTIt9.css +1 -0
- package/dist/web/assets/input-C0OQCUZy.js +1 -0
- package/dist/web/assets/{label-Cdim77Jw.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-CFs9CZfB.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-D2XkWhLL.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/{useConfig-BAsKhUxf.js → useConfig-B6tXvJOb.js} +1 -1
- package/dist/web/assets/useViewHostProps-DZqOwiAm.js +1 -0
- package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
- package/dist/web/index.html +10 -10
- package/package.json +4 -4
- package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
- package/dist/cdn/PromptsTab-C4LuwyWN.js +0 -901
- package/dist/cdn/card-DgiYnSg-.js +0 -41
- package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
- package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
- package/dist/cdn/spinner-jQtC7EBj.js +0 -15
- package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
- package/dist/web/assets/ChatTab-CsBPVCSc.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-DQTXfnl1.js +0 -1
- package/dist/web/assets/ElicitationTab-_FKB7nNG.js +0 -1
- package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
- package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
- package/dist/web/assets/PromptsTab-B2uVMRR2.js +0 -15
- package/dist/web/assets/ResourcesTab-DhOZYPjE.js +0 -2
- package/dist/web/assets/SamplingTab-C-oY2hoi.js +0 -1
- package/dist/web/assets/ServerMetadataTab-BkTxO5KS.js +0 -1
- package/dist/web/assets/ToolsTab-DupHgo7A.js +0 -8
- package/dist/web/assets/WidgetWrapper-CZaEVEw4.js +0 -34
- package/dist/web/assets/checkbox-BQ9mI_6k.js +0 -1
- package/dist/web/assets/code-tME-5H6D.js +0 -1
- package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
- package/dist/web/assets/index-C_fCIJ4C.js +0 -492
- package/dist/web/assets/index-fBX3akc8.css +0 -1
- package/dist/web/assets/input-CLYhA7PK.js +0 -1
- package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
- package/dist/web/assets/select-CJ57-Bor.js +0 -1
- package/dist/web/assets/shared-CCC9rTz4.js +0 -1
- package/dist/web/assets/tabs-subtle-246ABJqx.js +0 -1
- package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
- package/dist/web/assets/useViewHostProps-CV5zBxUb.js +0 -1
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { a as n, n as r, r as i,
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import { a as
|
|
8
|
-
import { a as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
2
|
+
import { a as n, n as r, r as i, t as a } from "./input-BCpgLXU1.js";
|
|
3
|
+
import { n as o } from "./createLucideIcon-BONxC1L5.js";
|
|
4
|
+
import { t as s } from "./button-CB4uOoUV.js";
|
|
5
|
+
import { t as c } from "./label-A0UGV8FE.js";
|
|
6
|
+
import { a as l, i as u, n as d, r as f, t as p } from "./select-CCFHjOGk.js";
|
|
7
|
+
import { a as m, i as h, r as g, t as _ } from "./browser-DG2Z8392.js";
|
|
8
|
+
import { a as v, t as y } from "./JSONDisplay-BJqMz7Ny.js";
|
|
9
|
+
import { a as b, i as ee, n as x, o as S, r as C, t as te } from "./shared-CJVHJhag.js";
|
|
10
|
+
import { t as w } from "./hash-DDs2vE1k.js";
|
|
11
|
+
import { t as T } from "./loader-circle-BKRHJEB7.js";
|
|
12
|
+
import { t as E } from "./maximize-2-DdrB_spi.js";
|
|
13
|
+
import { t as D } from "./sparkles-CxeZpVtX.js";
|
|
14
|
+
import { t as O } from "./trash-2-BhumJAFE.js";
|
|
15
|
+
import { t as k } from "./x-EilKPiCX.js";
|
|
16
|
+
import { t as A } from "./not-found-BajFyZpp.js";
|
|
16
17
|
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-
|
|
18
|
+
import "./react-Bl-hSkvn.js";
|
|
19
|
+
import { n as M } from "./dist-CTJnCYmk.js";
|
|
20
|
+
import { n as N } from "./InspectorContext-BBKCdfmK.js";
|
|
21
|
+
import { a as P } from "./dist-SxRsB1iS.js";
|
|
22
|
+
import { t as F } from "./useConfig-leHVjdjl.js";
|
|
23
|
+
import { t as I } from "./textarea-CwmI8_uI.js";
|
|
23
24
|
//#region src/client/components/sampling/SamplingRequestsList.tsx
|
|
24
|
-
var L = /* @__PURE__ */ e(t(), 1), R =
|
|
25
|
+
var L = /* @__PURE__ */ e(t(), 1), R = o();
|
|
25
26
|
function z({ requests: e, selectedRequest: t, onRequestSelect: n, focusedIndex: r, formatRelativeTime: i }) {
|
|
26
27
|
return e.length === 0 ? /* @__PURE__ */ (0, R.jsx)("div", {
|
|
27
28
|
className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
|
|
@@ -91,7 +92,7 @@ function B({ llmConfig: e }) {
|
|
|
91
92
|
}
|
|
92
93
|
//#endregion
|
|
93
94
|
//#region src/client/components/sampling/SamplingRequestDisplay.tsx
|
|
94
|
-
function V({ request: t, onApprove:
|
|
95
|
+
function V({ request: t, onApprove: o, onReject: g, onClose: _, previewMode: b, onTogglePreview: ee, isCopied: x, onCopy: S, onDownload: C, onFullscreen: te, llmConfig: w }) {
|
|
95
96
|
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
97
|
(0, L.useEffect)(() => {
|
|
97
98
|
t && (P(O === "llm" && w?.model ? w.model : "stub-model"), z("endTurn"), H("assistant"), W("text"), K("positive"), J(""), X("image/png"), Q(null));
|
|
@@ -174,7 +175,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
174
175
|
className: "flex items-center gap-2",
|
|
175
176
|
children: [
|
|
176
177
|
/* @__PURE__ */ (0, R.jsxs)(r, { children: [/* @__PURE__ */ (0, R.jsx)(n, {
|
|
177
|
-
render: /* @__PURE__ */ (0, R.jsx)(
|
|
178
|
+
render: /* @__PURE__ */ (0, R.jsx)(s, {
|
|
178
179
|
variant: "ghost",
|
|
179
180
|
size: "sm",
|
|
180
181
|
onClick: S,
|
|
@@ -184,7 +185,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
184
185
|
nativeButton: !0
|
|
185
186
|
}), /* @__PURE__ */ (0, R.jsx)(i, { children: "Copy request" })] }),
|
|
186
187
|
/* @__PURE__ */ (0, R.jsxs)(r, { children: [/* @__PURE__ */ (0, R.jsx)(n, {
|
|
187
|
-
render: /* @__PURE__ */ (0, R.jsx)(
|
|
188
|
+
render: /* @__PURE__ */ (0, R.jsx)(s, {
|
|
188
189
|
variant: "ghost",
|
|
189
190
|
size: "sm",
|
|
190
191
|
onClick: C,
|
|
@@ -194,7 +195,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
194
195
|
nativeButton: !0
|
|
195
196
|
}), /* @__PURE__ */ (0, R.jsx)(i, { children: "Download request" })] }),
|
|
196
197
|
/* @__PURE__ */ (0, R.jsxs)(r, { children: [/* @__PURE__ */ (0, R.jsx)(n, {
|
|
197
|
-
render: /* @__PURE__ */ (0, R.jsx)(
|
|
198
|
+
render: /* @__PURE__ */ (0, R.jsx)(s, {
|
|
198
199
|
variant: "ghost",
|
|
199
200
|
size: "sm",
|
|
200
201
|
onClick: te,
|
|
@@ -203,7 +204,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
203
204
|
}),
|
|
204
205
|
nativeButton: !0
|
|
205
206
|
}), /* @__PURE__ */ (0, R.jsx)(i, { children: "Fullscreen" })] }),
|
|
206
|
-
/* @__PURE__ */ (0, R.jsx)(
|
|
207
|
+
/* @__PURE__ */ (0, R.jsx)(s, {
|
|
207
208
|
variant: "ghost",
|
|
208
209
|
size: "sm",
|
|
209
210
|
onClick: _,
|
|
@@ -262,7 +263,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
262
263
|
className: "space-y-2 p-3 bg-muted rounded-lg",
|
|
263
264
|
children: [$ ? /* @__PURE__ */ (0, R.jsxs)("div", {
|
|
264
265
|
className: "flex items-center gap-2",
|
|
265
|
-
children: [/* @__PURE__ */ (0, R.jsx)(
|
|
266
|
+
children: [/* @__PURE__ */ (0, R.jsx)(s, {
|
|
266
267
|
onClick: ae,
|
|
267
268
|
disabled: Z,
|
|
268
269
|
size: "sm",
|
|
@@ -297,7 +298,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
297
298
|
children: [/* @__PURE__ */ (0, R.jsx)(c, {
|
|
298
299
|
htmlFor: `model-${t.id}`,
|
|
299
300
|
children: "Model"
|
|
300
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
301
|
+
}), /* @__PURE__ */ (0, R.jsx)(a, {
|
|
301
302
|
id: `model-${t.id}`,
|
|
302
303
|
value: N,
|
|
303
304
|
onChange: (e) => P(e.target.value),
|
|
@@ -311,7 +312,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
311
312
|
children: [/* @__PURE__ */ (0, R.jsx)(c, {
|
|
312
313
|
htmlFor: `stopReason-${t.id}`,
|
|
313
314
|
children: "Stop Reason"
|
|
314
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
315
|
+
}), /* @__PURE__ */ (0, R.jsx)(a, {
|
|
315
316
|
id: `stopReason-${t.id}`,
|
|
316
317
|
value: F,
|
|
317
318
|
onChange: (e) => z(e.target.value),
|
|
@@ -397,7 +398,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
397
398
|
children: [/* @__PURE__ */ (0, R.jsx)(c, {
|
|
398
399
|
htmlFor: `mimeType-${t.id}`,
|
|
399
400
|
children: "MIME Type"
|
|
400
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
401
|
+
}), /* @__PURE__ */ (0, R.jsx)(a, {
|
|
401
402
|
id: `mimeType-${t.id}`,
|
|
402
403
|
value: Y,
|
|
403
404
|
onChange: (e) => X(e.target.value),
|
|
@@ -410,7 +411,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
410
411
|
}),
|
|
411
412
|
/* @__PURE__ */ (0, R.jsxs)("div", {
|
|
412
413
|
className: "flex gap-2 p-4 border-t dark:border-zinc-700",
|
|
413
|
-
children: [/* @__PURE__ */ (0, R.jsx)(
|
|
414
|
+
children: [/* @__PURE__ */ (0, R.jsx)(s, {
|
|
414
415
|
onClick: () => {
|
|
415
416
|
if (!t) return;
|
|
416
417
|
let n = j.CreateMessageResult["~standard"].validate(oe);
|
|
@@ -418,7 +419,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
418
419
|
M.error("Invalid response", { description: `Validation failed: ${n.issues.map((e) => e.message).join(", ")}` });
|
|
419
420
|
return;
|
|
420
421
|
}
|
|
421
|
-
|
|
422
|
+
o(t.id, n.value), _(), import("./react-BIs9pQ3H.js").then((t) => /* @__PURE__ */ e(t.t(), 1)).then((e) => {
|
|
422
423
|
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
424
|
"data-testid": "sampling-view-tool-result",
|
|
424
425
|
className: "px-3 py-1.5 text-xs font-medium rounded-md bg-primary text-primary-foreground hover:bg-primary/90",
|
|
@@ -433,7 +434,7 @@ function V({ request: t, onApprove: s, onReject: g, onClose: _, previewMode: b,
|
|
|
433
434
|
disabled: O === "llm" && Z,
|
|
434
435
|
"data-testid": "sampling-approve-button",
|
|
435
436
|
children: "Approve"
|
|
436
|
-
}), /* @__PURE__ */ (0, R.jsx)(
|
|
437
|
+
}), /* @__PURE__ */ (0, R.jsx)(s, {
|
|
437
438
|
onClick: () => {
|
|
438
439
|
t && (g(t.id, "User rejected sampling request"), _());
|
|
439
440
|
},
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { d as n, l as r, u as i } from "./input-
|
|
3
|
-
import {
|
|
4
|
-
import { t as o } from "./label-
|
|
5
|
-
import { t as s } from "./JSONDisplay-
|
|
6
|
-
import { t as c } from "./info-
|
|
7
|
-
import { n as l, t as u } from "./servers-
|
|
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-
|
|
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 "./label-A0UGV8FE.js";
|
|
5
|
+
import { t as s } from "./JSONDisplay-BJqMz7Ny.js";
|
|
6
|
+
import { t as c } from "./info-BMkB68mB.js";
|
|
7
|
+
import { n as l, t as u } from "./servers-Dd0Vcp81.js";
|
|
8
|
+
import { a as d, i as f, n as p, r as m, t as h } from "./card-BA-DQk-G.js";
|
|
9
|
+
import { n as g, r as _, t as v } from "./tabs-subtle-Dubd6Kj8.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-DzmTtN1e.js";
|
|
12
12
|
//#region src/client/utils/serverMetadata.ts
|
|
13
13
|
function x(e) {
|
|
14
14
|
let t = {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
var a = n("circle-x", [
|
|
1
|
+
import { n as e, t } from "./createLucideIcon-BONxC1L5.js";
|
|
2
|
+
import { U as n } from "./button-CB4uOoUV.js";
|
|
3
|
+
import { a as r } from "./browser-DG2Z8392.js";
|
|
4
|
+
import { t as i } from "./loader-circle-BKRHJEB7.js";
|
|
5
|
+
var a = t("circle-x", [
|
|
7
6
|
["circle", {
|
|
8
7
|
cx: "12",
|
|
9
8
|
cy: "12",
|
|
@@ -18,7 +17,7 @@ var a = n("circle-x", [
|
|
|
18
17
|
d: "m9 9 6 6",
|
|
19
18
|
key: "z0biqf"
|
|
20
19
|
}]
|
|
21
|
-
]), o =
|
|
20
|
+
]), o = t("triangle-alert", [
|
|
22
21
|
["path", {
|
|
23
22
|
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
24
23
|
key: "wmoenq"
|
|
@@ -31,15 +30,15 @@ var a = n("circle-x", [
|
|
|
31
30
|
d: "M12 17h.01",
|
|
32
31
|
key: "p32p05"
|
|
33
32
|
}]
|
|
34
|
-
]), s =
|
|
33
|
+
]), s = e(), c = {
|
|
35
34
|
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
35
|
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
36
|
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
37
|
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
38
|
}, l = "size-4 shrink-0 rounded-full border p-0.5";
|
|
40
|
-
function u({ state:
|
|
41
|
-
let u =
|
|
42
|
-
switch (
|
|
39
|
+
function u({ state: e, className: t }) {
|
|
40
|
+
let u = n(l, c[e], t);
|
|
41
|
+
switch (e) {
|
|
43
42
|
case "success": return /* @__PURE__ */ (0, s.jsx)(r, {
|
|
44
43
|
className: u,
|
|
45
44
|
"aria-hidden": !0
|