@mcp-use/inspector 20.0.0-beta.6 → 20.0.0-beta.8
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-C-Ysv6Zf.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-CK_6n3T9.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-DSGYL32k.js +902 -0
- package/dist/cdn/{ResourcesTab-CQkKni-P.js → ResourcesTab-d3wxN7xC.js} +116 -114
- package/dist/cdn/{SamplingTab-D8q-iCMc.js → SamplingTab-DETdWNJk.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-BMcnfEWg.js} +665 -653
- 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-DjQn_Xm9.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-B_adtnP1.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 +61 -2
- 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 +2087 -1861
- package/dist/client/utils/servers.d.ts +5 -0
- package/dist/client/utils/servers.d.ts.map +1 -1
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +2 -2
- package/dist/server/{chunk-GBY4WAVP.js → chunk-BD3ROXCC.js} +1 -1
- package/dist/server/{chunk-NUHI6MJ6.js → chunk-BPXKTFQ5.js} +1 -1
- package/dist/server/{chunk-IFF5T5J4.js → chunk-XTVIGRTB.js} +61 -2
- 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-DxD-KLW_.js +18 -0
- package/dist/web/assets/ConnectionSettingsTab-pO6p0U0f.js +1 -0
- package/dist/web/assets/ElicitationTab-o5_z6gqe.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-CZW1uZdH.js +34 -0
- package/dist/web/assets/{ManufactOAuthCallback-BRO6TPkZ.js → ManufactOAuthCallback-BnWhf5bW.js} +1 -1
- package/dist/web/assets/{MarkdownRenderer-gaJFjbtr.js → MarkdownRenderer-gUUHRIm1.js} +2 -2
- package/dist/web/assets/McpAppsViewPanel-CDJDb4t-.js +1 -0
- package/dist/web/assets/{NotificationsTab-LYcfRjyd.js → NotificationsTab-CkJ5E_sR.js} +1 -1
- package/dist/web/assets/{OAuthCallback-D8UItgTB.js → OAuthCallback-Dv_mFcua.js} +1 -1
- package/dist/web/assets/PromptsTab-CLwWFf6d.js +15 -0
- package/dist/web/assets/ResourcesTab-B8cnuq-m.js +2 -0
- package/dist/web/assets/SamplingTab-BjYHYRHX.js +1 -0
- package/dist/web/assets/ServerMetadataTab-CPlclbb7.js +1 -0
- package/dist/web/assets/ToolsTab-BSSwvp4Q.js +8 -0
- package/dist/web/assets/{ViewPreview--z6jL0Zg.js → ViewPreview-C_LJdgt9.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-BuuDhnpk.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-C39gcmyH.js} +4 -4
- package/dist/web/assets/index-CyvvaDNR.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-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-Chk1rURG.js +1 -0
- package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
- package/dist/web/assets/tabs-subtle-CK4nucyB.js +1 -0
- package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
- package/dist/web/assets/{useConfig-BAsKhUxf.js → useConfig-CgQbKjVT.js} +1 -1
- package/dist/web/assets/useViewHostProps-DFI7Ywo7.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 +2 -2
- 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,41 +0,0 @@
|
|
|
1
|
-
import { Rr as e } from "./input-C2OBd4PJ.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
-
//#region src/client/components/ui/card.tsx
|
|
4
|
-
var n = t();
|
|
5
|
-
function r({ className: t, ...r }) {
|
|
6
|
-
return /* @__PURE__ */ (0, n.jsx)("div", {
|
|
7
|
-
"data-slot": "card",
|
|
8
|
-
className: e("flex flex-col gap-6 rounded-xl border border-border bg-transparent py-6 text-card-foreground", t),
|
|
9
|
-
...r
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function i({ className: t, ...r }) {
|
|
13
|
-
return /* @__PURE__ */ (0, n.jsx)("div", {
|
|
14
|
-
"data-slot": "card-header",
|
|
15
|
-
className: e("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]", t),
|
|
16
|
-
...r
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function a({ className: t, ...r }) {
|
|
20
|
-
return /* @__PURE__ */ (0, n.jsx)("div", {
|
|
21
|
-
"data-slot": "card-title",
|
|
22
|
-
className: e("font-semibold leading-none", t),
|
|
23
|
-
...r
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function o({ className: t, ...r }) {
|
|
27
|
-
return /* @__PURE__ */ (0, n.jsx)("div", {
|
|
28
|
-
"data-slot": "card-description",
|
|
29
|
-
className: e("text-sm text-muted-foreground", t),
|
|
30
|
-
...r
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function s({ className: t, ...r }) {
|
|
34
|
-
return /* @__PURE__ */ (0, n.jsx)("div", {
|
|
35
|
-
"data-slot": "card-content",
|
|
36
|
-
className: e("px-6", t),
|
|
37
|
-
...r
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { a, i, s as n, o as r, r as t };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/lucide-react@0.562.0_react@19.2.4/node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
3
|
-
var n = /* @__PURE__ */ e(t()), r = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), i = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), a = (e) => {
|
|
4
|
-
let t = i(e);
|
|
5
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
6
|
-
}, o = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), s = (e) => {
|
|
7
|
-
for (let t in e) if (t.startsWith("aria-") || t === "role" || t === "title") return !0;
|
|
8
|
-
}, c = {
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
width: 24,
|
|
11
|
-
height: 24,
|
|
12
|
-
viewBox: "0 0 24 24",
|
|
13
|
-
fill: "none",
|
|
14
|
-
stroke: "currentColor",
|
|
15
|
-
strokeWidth: 2,
|
|
16
|
-
strokeLinecap: "round",
|
|
17
|
-
strokeLinejoin: "round"
|
|
18
|
-
}, l = (0, n.forwardRef)(({ color: e = "currentColor", size: t = 24, strokeWidth: r = 2, absoluteStrokeWidth: i, className: a = "", children: l, iconNode: u, ...d }, f) => (0, n.createElement)("svg", {
|
|
19
|
-
ref: f,
|
|
20
|
-
...c,
|
|
21
|
-
width: t,
|
|
22
|
-
height: t,
|
|
23
|
-
stroke: e,
|
|
24
|
-
strokeWidth: i ? Number(r) * 24 / Number(t) : r,
|
|
25
|
-
className: o("lucide", a),
|
|
26
|
-
...!l && !s(d) && { "aria-hidden": "true" },
|
|
27
|
-
...d
|
|
28
|
-
}, [...u.map(([e, t]) => (0, n.createElement)(e, t)), ...Array.isArray(l) ? l : [l]])), u = (e, t) => {
|
|
29
|
-
let i = (0, n.forwardRef)(({ className: i, ...s }, c) => (0, n.createElement)(l, {
|
|
30
|
-
ref: c,
|
|
31
|
-
iconNode: t,
|
|
32
|
-
className: o(`lucide-${r(a(e))}`, `lucide-${e}`, i),
|
|
33
|
-
...s
|
|
34
|
-
}));
|
|
35
|
-
return i.displayName = a(e), i;
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { u as t };
|
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { Rr as n, f as r, w 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 { t as s } from "./createLucideIcon-C5fZZ6oB.js";
|
|
6
|
-
import { A as c } from "./dialog-BsDpuJd3.js";
|
|
7
|
-
import { n as l } from "./manufact-auth-BQMHhbLV.js";
|
|
8
|
-
import { s as u } from "./WidgetDebugContext-D4usL_MA.js";
|
|
9
|
-
var d = s("key", [
|
|
10
|
-
["path", {
|
|
11
|
-
d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",
|
|
12
|
-
key: "g0fldk"
|
|
13
|
-
}],
|
|
14
|
-
["path", {
|
|
15
|
-
d: "m21 2-9.6 9.6",
|
|
16
|
-
key: "1j0ho8"
|
|
17
|
-
}],
|
|
18
|
-
["circle", {
|
|
19
|
-
cx: "7.5",
|
|
20
|
-
cy: "15.5",
|
|
21
|
-
r: "5.5",
|
|
22
|
-
key: "yqb3hr"
|
|
23
|
-
}]
|
|
24
|
-
]), f = /* @__PURE__ */ e(t(), 1), p = {
|
|
25
|
-
some: 0,
|
|
26
|
-
all: 1
|
|
27
|
-
};
|
|
28
|
-
function m(e, t, { root: n, margin: r, amount: a = "some" } = {}) {
|
|
29
|
-
let o = i(e), s = /* @__PURE__ */ new WeakMap(), c = new IntersectionObserver((e) => {
|
|
30
|
-
e.forEach((e) => {
|
|
31
|
-
let n = s.get(e.target);
|
|
32
|
-
if (e.isIntersecting !== !!n) if (e.isIntersecting) {
|
|
33
|
-
let n = t(e.target, e);
|
|
34
|
-
typeof n == "function" ? s.set(e.target, n) : c.unobserve(e.target);
|
|
35
|
-
} else typeof n == "function" && (n(e), s.delete(e.target));
|
|
36
|
-
});
|
|
37
|
-
}, {
|
|
38
|
-
root: n,
|
|
39
|
-
rootMargin: r,
|
|
40
|
-
threshold: typeof a == "number" ? a : p[a]
|
|
41
|
-
});
|
|
42
|
-
return o.forEach((e) => c.observe(e)), () => c.disconnect();
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.42.2_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-in-view.mjs
|
|
46
|
-
function h(e, { root: t, margin: n, amount: r, once: i = !1, initial: a = !1 } = {}) {
|
|
47
|
-
let [o, s] = (0, f.useState)(a);
|
|
48
|
-
return (0, f.useEffect)(() => {
|
|
49
|
-
if (!e.current || i && o) return;
|
|
50
|
-
let a = () => (s(!0), i ? void 0 : () => s(!1)), c = {
|
|
51
|
-
root: t && t.current || void 0,
|
|
52
|
-
margin: n,
|
|
53
|
-
amount: r
|
|
54
|
-
};
|
|
55
|
-
return m(e.current, a, c);
|
|
56
|
-
}, [
|
|
57
|
-
t,
|
|
58
|
-
e,
|
|
59
|
-
n,
|
|
60
|
-
i,
|
|
61
|
-
r
|
|
62
|
-
]), o;
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/client/components/ui/MeshGradientCanvas.tsx
|
|
66
|
-
var g = a(), _ = "#version 300 es\nin vec4 a_position;\nout vec2 v_objectUV;\nvoid main(){\n gl_Position=a_position;\n v_objectUV=a_position.xy*0.5+0.5;\n}", v = "#version 300 es\nprecision mediump float;\nuniform float u_time;\nuniform vec4 u_colors[4];\nuniform float u_colorsCount;\nuniform float u_distortion;\nuniform float u_swirl;\nuniform float u_grainMixer;\nuniform float u_grainOverlay;\nin vec2 v_objectUV;\nout vec4 fragColor;\nvec2 rotate(vec2 uv,float th){return mat2(cos(th),sin(th),-sin(th),cos(th))*uv;}\nfloat hash21(vec2 p){\n p=fract(p*vec2(0.3183099,0.3678794))+0.1;\n p+=dot(p,p+19.19);\n return fract(p.x*p.y);\n}\nfloat valueNoise(vec2 st){\n vec2 i=floor(st);vec2 f=fract(st);\n float a=hash21(i),b=hash21(i+vec2(1.,0.)),c=hash21(i+vec2(0.,1.)),d=hash21(i+vec2(1.,1.));\n vec2 u=f*f*(3.-2.*f);\n return mix(mix(a,b,u.x),mix(c,d,u.x),u.y);\n}\nvec2 getPosition(int i,float t){\n float a=float(i)*.37,b=.6+fract(float(i)/3.)*.9,c=.8+fract(float(i+1)/4.);\n float x=sin(t*b+a),y=cos(t*c+a*1.5);\n return .5+.5*vec2(x,y);\n}\nvoid main(){\n vec2 uv=v_objectUV;uv+=.5;\n vec2 grainUV=uv*1000.;\n float grain=valueNoise(grainUV);\n float mixerGrain=.4*u_grainMixer*(grain-.5);\n float t=.5*(u_time+41.5);\n float radius=smoothstep(0.,1.,length(uv-.5));\n float center=1.-radius;\n for(float i=1.;i<=2.;i++){\n uv.x+=u_distortion*center/i*sin(t+i*.4*smoothstep(0.,1.,uv.y))*cos(.2*t+i*2.4*smoothstep(0.,1.,uv.y));\n uv.y+=u_distortion*center/i*cos(t+i*2.*smoothstep(0.,1.,uv.x));\n }\n vec2 uvR=uv-vec2(.5);\n float angle=3.*u_swirl*radius;\n uvR=rotate(uvR,-angle);uvR+=vec2(.5);\n vec3 color=vec3(0.);float opacity=0.,totalWeight=0.;\n for(int i=0;i<4;i++){\n if(i>=int(u_colorsCount))break;\n vec2 pos=getPosition(i,t)+mixerGrain;\n vec3 cf=u_colors[i].rgb*u_colors[i].a;\n float opacityF=u_colors[i].a;\n float dist=length(uvR-pos);\n dist=pow(dist,3.5);\n float w=1./(dist+1e-3);\n color+=cf*w;opacity+=opacityF*w;totalWeight+=w;\n }\n color/=max(1e-4,totalWeight);\n opacity/=max(1e-4,totalWeight);\n float grainO=valueNoise(rotate(grainUV,1.)+vec2(3.));\n grainO=mix(grainO,valueNoise(rotate(grainUV,2.)+vec2(-1.)),.5);\n grainO=pow(grainO,1.3);\n float grainOV=grainO*2.-1.;\n vec3 grainOC=vec3(step(0.,grainOV));\n float grainOS=u_grainOverlay*abs(grainOV);\n grainOS=pow(grainOS,.8);\n color=mix(color,grainOC,.35*grainOS);\n opacity+=.5*grainOS;\n fragColor=vec4(color,clamp(opacity,0.,1.));\n}";
|
|
67
|
-
function y(e) {
|
|
68
|
-
return [
|
|
69
|
-
parseInt(e.slice(1, 3), 16) / 255,
|
|
70
|
-
parseInt(e.slice(3, 5), 16) / 255,
|
|
71
|
-
parseInt(e.slice(5, 7), 16) / 255,
|
|
72
|
-
1
|
|
73
|
-
];
|
|
74
|
-
}
|
|
75
|
-
function b({ className: e, colors: t = [
|
|
76
|
-
"#e0eaff",
|
|
77
|
-
"#f9ffbd",
|
|
78
|
-
"#dedede",
|
|
79
|
-
"#ffffff"
|
|
80
|
-
], distortion: n = .8, swirl: r = .1, grainMixer: i = 0, grainOverlay: a = .2, speed: o = 1 }) {
|
|
81
|
-
let s = (0, f.useRef)(null), c = (0, f.useRef)(null), l = (0, f.useRef)({
|
|
82
|
-
colors: t,
|
|
83
|
-
distortion: n,
|
|
84
|
-
swirl: r,
|
|
85
|
-
grainMixer: i,
|
|
86
|
-
grainOverlay: a,
|
|
87
|
-
speed: o
|
|
88
|
-
});
|
|
89
|
-
return l.current = {
|
|
90
|
-
colors: t,
|
|
91
|
-
distortion: n,
|
|
92
|
-
swirl: r,
|
|
93
|
-
grainMixer: i,
|
|
94
|
-
grainOverlay: a,
|
|
95
|
-
speed: o
|
|
96
|
-
}, (0, f.useEffect)(() => {
|
|
97
|
-
let e = s.current, t = c.current;
|
|
98
|
-
if (!e || !t) return;
|
|
99
|
-
let n = e.getContext("webgl2");
|
|
100
|
-
if (!n) return;
|
|
101
|
-
let r = (e, t) => {
|
|
102
|
-
let r = n.createShader(e);
|
|
103
|
-
return r ? (n.shaderSource(r, t), n.compileShader(r), n.getShaderParameter(r, n.COMPILE_STATUS) ? r : (console.error(n.getShaderInfoLog(r)), null)) : null;
|
|
104
|
-
}, i = r(n.VERTEX_SHADER, _), a = r(n.FRAGMENT_SHADER, v);
|
|
105
|
-
if (!i || !a) return;
|
|
106
|
-
let o = n.createProgram();
|
|
107
|
-
if (!o) return;
|
|
108
|
-
if (n.attachShader(o, i), n.attachShader(o, a), n.linkProgram(o), !n.getProgramParameter(o, n.LINK_STATUS)) {
|
|
109
|
-
console.error(n.getProgramInfoLog(o));
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
n.useProgram(o);
|
|
113
|
-
let u = n.getAttribLocation(o, "a_position"), d = n.createBuffer();
|
|
114
|
-
n.bindBuffer(n.ARRAY_BUFFER, d), n.bufferData(n.ARRAY_BUFFER, new Float32Array([
|
|
115
|
-
-1,
|
|
116
|
-
-1,
|
|
117
|
-
1,
|
|
118
|
-
-1,
|
|
119
|
-
-1,
|
|
120
|
-
1,
|
|
121
|
-
-1,
|
|
122
|
-
1,
|
|
123
|
-
1,
|
|
124
|
-
-1,
|
|
125
|
-
1,
|
|
126
|
-
1
|
|
127
|
-
]), n.STATIC_DRAW), n.enableVertexAttribArray(u), n.vertexAttribPointer(u, 2, n.FLOAT, !1, 0, 0);
|
|
128
|
-
let f = n.getUniformLocation(o, "u_time"), p = [
|
|
129
|
-
0,
|
|
130
|
-
1,
|
|
131
|
-
2,
|
|
132
|
-
3
|
|
133
|
-
].map((e) => n.getUniformLocation(o, `u_colors[${e}]`)), m = n.getUniformLocation(o, "u_colorsCount"), h = n.getUniformLocation(o, "u_distortion"), g = n.getUniformLocation(o, "u_swirl"), b = n.getUniformLocation(o, "u_grainMixer"), x = n.getUniformLocation(o, "u_grainOverlay"), S = 0, C = 0, w = () => {
|
|
134
|
-
let r = Math.min(2, window.devicePixelRatio || 1);
|
|
135
|
-
e.width = Math.floor(t.clientWidth * r), e.height = Math.floor(t.clientHeight * r), n.viewport(0, 0, e.width, e.height);
|
|
136
|
-
}, T = () => {
|
|
137
|
-
if (document.hidden) {
|
|
138
|
-
C = requestAnimationFrame(T);
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
let { colors: e, distortion: t, swirl: r, grainMixer: i, grainOverlay: a, speed: o } = l.current, s = e.map(y);
|
|
142
|
-
S += .016 * o, n.uniform1f(f, S);
|
|
143
|
-
for (let e = 0; e < 4; e++) {
|
|
144
|
-
let t = p[e];
|
|
145
|
-
t && n.uniform4fv(t, s[e] ?? [
|
|
146
|
-
1,
|
|
147
|
-
1,
|
|
148
|
-
1,
|
|
149
|
-
1
|
|
150
|
-
]);
|
|
151
|
-
}
|
|
152
|
-
n.uniform1f(m, s.length), n.uniform1f(h, t), n.uniform1f(g, r), n.uniform1f(b, i), n.uniform1f(x, a), n.drawArrays(n.TRIANGLES, 0, 6), C = requestAnimationFrame(T);
|
|
153
|
-
};
|
|
154
|
-
w();
|
|
155
|
-
let E = new ResizeObserver(w);
|
|
156
|
-
return E.observe(t), T(), () => {
|
|
157
|
-
cancelAnimationFrame(C), E.disconnect();
|
|
158
|
-
};
|
|
159
|
-
}, []), /* @__PURE__ */ (0, g.jsx)("div", {
|
|
160
|
-
ref: c,
|
|
161
|
-
className: e,
|
|
162
|
-
children: /* @__PURE__ */ (0, g.jsx)("canvas", {
|
|
163
|
-
ref: s,
|
|
164
|
-
className: "h-full w-full",
|
|
165
|
-
"aria-hidden": !0
|
|
166
|
-
})
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
//#endregion
|
|
170
|
-
//#region src/client/components/ui/blur-fade.tsx
|
|
171
|
-
function x({ children: e, className: t, variant: n, duration: i = .4, delay: a = 0, offset: s = 6, direction: c = "down", inView: l = !1, inViewMargin: u = "-50px", blur: d = "6px", ...p }) {
|
|
172
|
-
let m = (0, f.useRef)(null), _ = h(m, {
|
|
173
|
-
once: !0,
|
|
174
|
-
margin: u
|
|
175
|
-
}), v = !l || _, y = {
|
|
176
|
-
hidden: {
|
|
177
|
-
[c === "left" || c === "right" ? "x" : "y"]: c === "right" || c === "down" ? -s : s,
|
|
178
|
-
opacity: 0,
|
|
179
|
-
filter: `blur(${d})`
|
|
180
|
-
},
|
|
181
|
-
visible: {
|
|
182
|
-
[c === "left" || c === "right" ? "x" : "y"]: 0,
|
|
183
|
-
opacity: 1,
|
|
184
|
-
filter: "blur(0px)"
|
|
185
|
-
}
|
|
186
|
-
}, b = n || y;
|
|
187
|
-
return /* @__PURE__ */ (0, g.jsx)(o, { children: /* @__PURE__ */ (0, g.jsx)(r.div, {
|
|
188
|
-
ref: m,
|
|
189
|
-
initial: "hidden",
|
|
190
|
-
animate: v ? "visible" : "hidden",
|
|
191
|
-
exit: "hidden",
|
|
192
|
-
variants: b,
|
|
193
|
-
transition: {
|
|
194
|
-
delay: .04 + a,
|
|
195
|
-
duration: i,
|
|
196
|
-
ease: "easeOut"
|
|
197
|
-
},
|
|
198
|
-
className: t,
|
|
199
|
-
...p,
|
|
200
|
-
children: e
|
|
201
|
-
}) });
|
|
202
|
-
}
|
|
203
|
-
//#endregion
|
|
204
|
-
//#region src/client/hooks/useKeyboardShortcuts.ts
|
|
205
|
-
function S(e) {
|
|
206
|
-
(0, f.useEffect)(() => {
|
|
207
|
-
let t = (t) => {
|
|
208
|
-
let n = t.target, r = n.tagName === "INPUT" || n.tagName === "TEXTAREA" || n.contentEditable === "true";
|
|
209
|
-
if ((t.metaKey || t.ctrlKey) && t.key === "k") {
|
|
210
|
-
t.preventDefault(), e.onCommandPalette?.();
|
|
211
|
-
return;
|
|
212
|
-
}
|
|
213
|
-
if ((t.metaKey || t.ctrlKey) && t.key === "o" && e.onNewChat) {
|
|
214
|
-
t.preventDefault(), e.onNewChat();
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
if (t.key === "Escape") {
|
|
218
|
-
t.preventDefault(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), e.onBlurSearch?.();
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
if (!r && !(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey)) switch (t.key.toLowerCase()) {
|
|
222
|
-
case "t":
|
|
223
|
-
t.preventDefault(), e.onToolsTab?.();
|
|
224
|
-
break;
|
|
225
|
-
case "p":
|
|
226
|
-
t.preventDefault(), e.onPromptsTab?.();
|
|
227
|
-
break;
|
|
228
|
-
case "r":
|
|
229
|
-
t.preventDefault(), e.onResourcesTab?.();
|
|
230
|
-
break;
|
|
231
|
-
case "c":
|
|
232
|
-
t.preventDefault(), e.onChatTab?.();
|
|
233
|
-
break;
|
|
234
|
-
case "h":
|
|
235
|
-
t.preventDefault(), e.onHome?.();
|
|
236
|
-
break;
|
|
237
|
-
case "f":
|
|
238
|
-
t.preventDefault(), e.onFocusSearch?.();
|
|
239
|
-
break;
|
|
240
|
-
default: break;
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
244
|
-
}, [e]);
|
|
245
|
-
}
|
|
246
|
-
//#endregion
|
|
247
|
-
//#region src/client/hooks/useHostedSession.ts
|
|
248
|
-
function C(e) {
|
|
249
|
-
return l(e);
|
|
250
|
-
}
|
|
251
|
-
//#endregion
|
|
252
|
-
//#region src/client/components/chat/providerMeta.tsx
|
|
253
|
-
var w = "https://cdn.mcp-use.com/mcpuse_logo_circle_dark.svg";
|
|
254
|
-
function T({ symbolSize: e = 14, className: t, textClassName: r }) {
|
|
255
|
-
return /* @__PURE__ */ (0, g.jsxs)("span", {
|
|
256
|
-
className: n("inline-flex items-center gap-1.5", t),
|
|
257
|
-
children: [/* @__PURE__ */ (0, g.jsx)(E, { size: e }), /* @__PURE__ */ (0, g.jsx)("span", {
|
|
258
|
-
className: n("font-medium leading-none text-black [font-family:var(--font-family-outfit)]", r),
|
|
259
|
-
children: "Manufact"
|
|
260
|
-
})]
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
function E({ size: e = 14, className: t }) {
|
|
264
|
-
return /* @__PURE__ */ (0, g.jsxs)("svg", {
|
|
265
|
-
width: e,
|
|
266
|
-
height: e,
|
|
267
|
-
viewBox: "0 0 480 480",
|
|
268
|
-
"aria-hidden": !0,
|
|
269
|
-
className: n("block shrink-0", t),
|
|
270
|
-
children: [
|
|
271
|
-
/* @__PURE__ */ (0, g.jsx)("path", {
|
|
272
|
-
d: "M101.7 0 C157.9 0 203.4 45.7 203.4 102.1 C203.4 126.6 202.1 152.1 212.2 174.3 L219.8 191 C233.8 221.8 258.5 246.4 289.2 260.5 L303.5 267 C326.5 277.5 353 275.8 378.3 275.8 C434.5 275.8 480 321.5 480 377.9 C480 434.3 434.5 480 378.3 480 C322.1 480 276.6 434.3 276.6 377.9 C276.6 354.2 277.7 329.6 267.8 308 L259.8 290.3 C245.7 259.5 221 234.8 190.2 220.7 L173 212.9 C151 202.9 125.8 204.2 101.7 204.2 C45.5 204.2 0 158.5 0 102.1 C0 45.7 45.5 0 101.7 0 Z",
|
|
273
|
-
fill: "currentColor"
|
|
274
|
-
}),
|
|
275
|
-
/* @__PURE__ */ (0, g.jsx)("circle", {
|
|
276
|
-
cx: "96.4",
|
|
277
|
-
cy: "383.6",
|
|
278
|
-
r: "96.4",
|
|
279
|
-
fill: "currentColor"
|
|
280
|
-
}),
|
|
281
|
-
/* @__PURE__ */ (0, g.jsx)("circle", {
|
|
282
|
-
cx: "383.6",
|
|
283
|
-
cy: "96.4",
|
|
284
|
-
r: "96.4",
|
|
285
|
-
fill: "currentColor"
|
|
286
|
-
})
|
|
287
|
-
]
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
var D = "data:image/svg+xml,%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22%2394A3B8%22%20stroke%3D%22%2394A3B8%22%3E%3Cg%3E%3Cpath%20fill%3D%22none%22%20d%3D%22M3%20248.945C18%20248.945%2076%20236%20106%20219C136%20202%20136%20202%20198%20158C276.497%20102.293%20332%20120.945%20423%20120.945%22%20stroke-width%3D%2290%22%2F%3E%3Cpath%20d%3D%22M511%20121.5L357.25%20210.268L357.25%2032.7324L511%20121.5Z%22%2F%3E%3Cpath%20fill%3D%22none%22%20d%3D%22M0%20249C15%20249%2073%20261.945%20103%20278.945C133%20295.945%20133%20295.945%20195%20339.945C273.497%20395.652%20329%20377%20420%20377%22%20stroke-width%3D%2290%22%2F%3E%3Cpath%20d%3D%22M508%20376.445L354.25%20287.678L354.25%20465.213L508%20376.445Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E", O = {
|
|
291
|
-
openai: "OpenAI",
|
|
292
|
-
anthropic: "Anthropic",
|
|
293
|
-
google: "Google"
|
|
294
|
-
};
|
|
295
|
-
function k(e) {
|
|
296
|
-
let t = e.split("/")[0]?.toLowerCase();
|
|
297
|
-
return t === "openai" || t === "anthropic" || t === "google" ? t : "openrouter";
|
|
298
|
-
}
|
|
299
|
-
function A(e, t) {
|
|
300
|
-
let n = e.trim(), r = O[t];
|
|
301
|
-
if (r) {
|
|
302
|
-
let e = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), t = RegExp(`^${e}\\s*:\\s*`, "i"), i = n.replace(t, "").trim();
|
|
303
|
-
if (i.length > 0) return i;
|
|
304
|
-
}
|
|
305
|
-
let i = n.indexOf(": ");
|
|
306
|
-
return i > 0 && i < 48 ? n.slice(i + 2).trim() : n;
|
|
307
|
-
}
|
|
308
|
-
function j({ provider: e, model: t, displayName: r, mode: i = "byok", className: a, ...o }) {
|
|
309
|
-
let s = r ?? t, l = i === "managed" && e === "openai-compatible" ? k(t) : e;
|
|
310
|
-
return /* @__PURE__ */ (0, g.jsxs)("button", {
|
|
311
|
-
type: "button",
|
|
312
|
-
className: n("inline-flex items-center gap-1.5 min-w-0 border-0 bg-transparent p-1", "font-mono text-[11px] text-muted-foreground cursor-pointer", "hover:text-foreground transition-colors", "rounded-md outline-none focus-visible:ring-1 focus-visible:ring-ring", a),
|
|
313
|
-
...o,
|
|
314
|
-
children: [
|
|
315
|
-
i === "managed" ? /* @__PURE__ */ (0, g.jsx)("img", {
|
|
316
|
-
src: w,
|
|
317
|
-
alt: "Manufact",
|
|
318
|
-
className: "h-3.5 w-3.5 shrink-0 rounded-full object-cover"
|
|
319
|
-
}) : /* @__PURE__ */ (0, g.jsx)(d, {
|
|
320
|
-
className: "size-3 shrink-0 opacity-70",
|
|
321
|
-
"aria-hidden": !0
|
|
322
|
-
}),
|
|
323
|
-
/* @__PURE__ */ (0, g.jsx)(P, {
|
|
324
|
-
provider: l,
|
|
325
|
-
className: "shrink-0"
|
|
326
|
-
}),
|
|
327
|
-
/* @__PURE__ */ (0, g.jsx)("span", {
|
|
328
|
-
className: "whitespace-nowrap",
|
|
329
|
-
children: s
|
|
330
|
-
}),
|
|
331
|
-
/* @__PURE__ */ (0, g.jsx)(c, {
|
|
332
|
-
className: "size-3 shrink-0 opacity-60",
|
|
333
|
-
"aria-hidden": !0
|
|
334
|
-
})
|
|
335
|
-
]
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
function M(e) {
|
|
339
|
-
switch (e) {
|
|
340
|
-
case "openai": return "OpenAI";
|
|
341
|
-
case "openai-compatible": return "OpenAI Compatible";
|
|
342
|
-
case "anthropic": return "Anthropic";
|
|
343
|
-
case "google": return "Google";
|
|
344
|
-
case "openrouter": return "OpenRouter";
|
|
345
|
-
case "ollama": return "Ollama";
|
|
346
|
-
default: return e;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
function N(e, t) {
|
|
350
|
-
switch (e) {
|
|
351
|
-
case "openai":
|
|
352
|
-
case "anthropic":
|
|
353
|
-
case "google": return `https://inspector-cdn.mcp-use.com/providers/${e}.png`;
|
|
354
|
-
case "ollama": return `https://inspector-cdn.mcp-use.com/providers/${t === "dark" ? "ollama_dark" : "ollama_light"}.png`;
|
|
355
|
-
case "openrouter": return D;
|
|
356
|
-
case "openai-compatible": return null;
|
|
357
|
-
default: return null;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function P({ provider: e, className: t }) {
|
|
361
|
-
let { resolvedTheme: r } = u();
|
|
362
|
-
if (e === "openai-compatible") return null;
|
|
363
|
-
let i = N(e, r);
|
|
364
|
-
if (i) {
|
|
365
|
-
let r = e === "ollama" ? "h-3.5 w-3.5 object-contain" : "h-4 w-4 rounded-full object-cover";
|
|
366
|
-
return /* @__PURE__ */ (0, g.jsx)("img", {
|
|
367
|
-
src: i,
|
|
368
|
-
alt: M(e),
|
|
369
|
-
className: n(r, t)
|
|
370
|
-
});
|
|
371
|
-
}
|
|
372
|
-
return /* @__PURE__ */ (0, g.jsx)("div", {
|
|
373
|
-
"aria-label": M(e),
|
|
374
|
-
className: n("flex h-4 w-4 items-center justify-center rounded-full bg-neutral-900 text-[9px] font-semibold text-white dark:bg-neutral-100 dark:text-neutral-900", t),
|
|
375
|
-
children: M(e).charAt(0)
|
|
376
|
-
});
|
|
377
|
-
}
|
|
378
|
-
//#endregion
|
|
379
|
-
export { A as a, S as c, d, P as i, x as l, T as n, M as o, j as r, C as s, E as t, b as u };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Rr as e } from "./input-C2OBd4PJ.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
-
import { t as n } from "./loader-circle-BLy9A_pp.js";
|
|
4
|
-
//#region src/client/components/ui/spinner.tsx
|
|
5
|
-
var r = t();
|
|
6
|
-
function i({ className: t, ...i }) {
|
|
7
|
-
return /* @__PURE__ */ (0, r.jsx)(n, {
|
|
8
|
-
role: "status",
|
|
9
|
-
"aria-label": "Loading",
|
|
10
|
-
className: e("size-4 animate-spin", t),
|
|
11
|
-
...i
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { i as t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{s as e,t}from"./react-CU_d2d5K.js";import{C as n,Cr as r,H as i,Sr as a,U as o,V as s,W as c,kr as l,m as u,p as d,wr as f}from"./input-CLYhA7PK.js";import{t as p}from"./jsx-runtime-Cjj9sGSy.js";var m=e(t(),1),h=m.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function g(){return m.useContext(h)}var _=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function v(e={}){let{label:t,metadata:n,textRef:r,indexGuessBehavior:i,index:o}=e,{register:s,unregister:c,subscribeMapChange:l,elementsRef:u,labelsRef:d,nextIndexRef:f}=g(),p=m.useRef(-1),[h,v]=m.useState(o??(i===_.GuessFromOrder?()=>{if(p.current===-1){let e=f.current;f.current+=1,p.current=e}return p.current}:-1)),y=m.useRef(null),b=m.useCallback(e=>{if(y.current=e,h!==-1&&e!==null&&(u.current[h]=e,d)){let n=t!==void 0;d.current[h]=n?t:r?.current?.textContent??e.textContent}},[h,u,d,t,r]);return a(()=>{if(o!=null)return;let e=y.current;if(e)return s(e,n),()=>{c(e)}},[o,s,c,n]),a(()=>{if(o==null)return l(e=>{let t=y.current?e.get(y.current)?.index:null;t!=null&&v(t)})},[o,l,v]),{ref:b,index:h}}var y=`ArrowUp`,b=`ArrowDown`,x=`ArrowLeft`,S=`ArrowRight`,C=`Home`,w=new Set([x,S]),T=new Set([x,S,C,`End`]),E=new Set([y,b]),D=new Set([y,b,C,`End`]),O=new Set([...w,...E]),k=new Set([...O,C,`End`]),A=`Shift`,j=new Set([A,`Control`,`Alt`,`Meta`]);function M(e){return l(e)&&e.tagName===`INPUT`}function N(e){return!!(M(e)&&e.selectionStart!=null||l(e)&&e.tagName===`TEXTAREA`)}function P(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=F(e,t,`left`),a=I(e),o=I(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=F(e,t,`top`),r=I(e),i=I(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function F(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function I(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var L=p();function R(e){let{children:t,elementsRef:n,labelsRef:i,onMapChange:o}=e,s=r(o),c=m.useRef(0),l=f(B).current,u=f(z).current,[d,p]=m.useState(0),g=m.useRef(d),_=r((e,t)=>{u.set(e,t??null),g.current+=1,p(g.current)}),v=r(e=>{u.delete(e),g.current+=1,p(g.current)}),y=m.useMemo(()=>{let e=new Map;return Array.from(u.keys()).filter(e=>e.isConnected).sort(V).forEach((t,n)=>{let r=u.get(t)??{};e.set(t,{...r,index:n})}),e},[u,d]);a(()=>{if(typeof MutationObserver!=`function`||y.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(g.current+=1,p(g.current))});return y.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[y]),a(()=>{g.current===d&&(n.current.length!==y.size&&(n.current.length=y.size),i&&i.current.length!==y.size&&(i.current.length=y.size),c.current=y.size),s(y)},[s,y,n,i,d]),a(()=>()=>{n.current=[]},[n]),a(()=>()=>{i&&(i.current=[])},[i]);let b=r(e=>(l.add(e),()=>{l.delete(e)}));a(()=>{l.forEach(e=>e(y))},[l,y]);let x=m.useMemo(()=>({register:_,unregister:v,subscribeMapChange:b,elementsRef:n,labelsRef:i,nextIndexRef:c}),[_,v,b,n,i,c]);return(0,L.jsx)(h.Provider,{value:x,children:t})}function z(){return new Map}function B(){return new Set}function V(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function H(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function U(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function W(...e){return t=>{let n=!1,r=e.map(e=>{let r=U(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():U(e[t],null)}}}}function G(...e){return m.useCallback(W(...e),e)}var K=class extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(n(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,r=n(e)&&e.offsetWidth||0,i=n(e)&&e.offsetHeight||0,a=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(a.height),o.width=parseFloat(a.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left,o.bottom=i-o.height-o.top,o.direction=a.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function q({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,m.useId)(),s=(0,m.useRef)(null),c=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,m.useContext)(u),d=G(s,e.props?.ref??e?.ref);return(0,m.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${o}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${e}px !important;
|
|
5
|
-
height: ${u}px !important;
|
|
6
|
-
${_}px !important;
|
|
7
|
-
${v}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,L.jsx)(K,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:m.cloneElement(e,{ref:d})})}var J=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:c,mode:l,anchorX:u,anchorY:d,root:f})=>{let p=o(Y),h=(0,m.useId)(),g=(0,m.useRef)(n),_=(0,m.useRef)(r);i(()=>{g.current=n,_.current=r});let v=!0,y=(0,m.useMemo)(()=>(v=!1,{id:h,initial:t,isPresent:n,custom:a,onExitComplete:e=>{p.set(e,!0);for(let e of p.values())if(!e)return;r&&r()},register:e=>(p.set(e,!1),()=>{p.delete(e),!g.current&&!p.size&&_.current?.()})}),[n,p,r]);return c&&v&&(y={...y}),(0,m.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[n]),m.useEffect(()=>{!n&&!p.size&&r&&r()},[n]),e=(0,L.jsx)(q,{pop:l===`popLayout`,isPresent:n,anchorX:u,anchorY:d,root:f,children:e}),(0,L.jsx)(s.Provider,{value:y,children:e})};function Y(){return new Map}var X=e=>e.key||``;function Z(e){let t=[];return m.Children.forEach(e,e=>{(0,m.isValidElement)(e)&&t.push(e)}),t}var Q=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s=`sync`,propagate:l=!1,anchorX:u=`left`,anchorY:f=`top`,root:p})=>{let[h,g]=d(l),_=(0,m.useMemo)(()=>Z(e),[e]),v=l&&!h?[]:_.map(X),y=(0,m.useRef)(!0),b=(0,m.useRef)(_),x=o(()=>new Map),S=(0,m.useRef)(new Set),[C,w]=(0,m.useState)(_),[T,E]=(0,m.useState)(_);i(()=>{y.current=!1,b.current=_;for(let e=0;e<T.length;e++){let t=X(T[e]);v.includes(t)?(x.delete(t),S.current.delete(t)):x.get(t)!==!0&&x.set(t,!1)}},[T,v.length,v.join(`-`)]);let D=[];if(_!==C){let e=[..._];for(let t=0;t<T.length;t++){let n=T[t],r=X(n);v.includes(r)||(e.splice(t,0,n),D.push(n))}return s===`wait`&&D.length&&(e=D),E(Z(e)),w(_),null}let{forceRender:O}=(0,m.useContext)(c);return(0,L.jsx)(L.Fragment,{children:T.map(e=>{let i=X(e),o=l&&!h?!1:_===T||v.includes(i);return(0,L.jsx)(J,{isPresent:o,initial:!y.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:p,onExitComplete:o?void 0:()=>{if(S.current.has(i))return;if(x.has(i))S.current.add(i),x.set(i,!0);else return;let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(O?.(),E(b.current),l&&g?.(),r&&r())},anchorX:u,anchorY:f,children:e},i)})})};export{N as _,O as a,v as b,y as c,w as d,T as f,D as g,E as h,b as i,k as l,A as m,H as n,x as o,j as p,R as r,S as s,Q as t,C as u,P as v,_ as y};
|