@mcp-use/inspector 20.0.0-beta.1 → 20.0.0-beta.3
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-BS5Tlm2y.js +6744 -0
- package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-Bt4IICtv.js} +77 -77
- package/dist/cdn/{ConnectionSettingsForm-BNS6bOMD.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-_aYcof42.js +3610 -0
- package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-CeImSrhx.js} +13 -13
- package/dist/cdn/{OAuthCallback-k3oeLtIC.js → OAuthCallback-C4n2hqKU.js} +1 -1
- package/dist/cdn/PromptsTab-BajHFLa3.js +901 -0
- package/dist/cdn/{ResourcesTab-KfamsM6-.js → ResourcesTab-BgeMlTdR.js} +35 -55
- package/dist/cdn/{SamplingTab-vcufuK24.js → SamplingTab-CnJB229N.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-DRjcZnpu.js → ToolsTab-ACLxPxR6.js} +103 -137
- package/dist/cdn/{ViewPreview-B_onhcUB.js → ViewPreview-DsPwZAwO.js} +2 -2
- package/dist/cdn/{WidgetWrapper-D29YDxIu.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 +7419 -7445
- 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-BxO-uEDZ.js → react-Dn8PWXwP.js} +1 -1
- 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-gHF-tMli.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-BWcNCqwi.js} +73 -46
- package/dist/cdn/{useViewHostProps-Dr6W2ooF.js → useViewHostProps-DIIlz3tJ.js} +1 -1
- package/dist/cli.js +27 -13
- 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 +4 -0
- package/dist/server/asset-urls.d.ts.map +1 -1
- package/dist/server/asset-urls.js +7 -3
- package/dist/server/cdn-shell.d.ts.map +1 -1
- package/dist/server/cdn-shell.js +3 -3
- package/dist/server/{chunk-KBVKS4J5.js → chunk-H6ZCIKBS.js} +10 -0
- package/dist/server/{chunk-Y2GBQOQW.js → chunk-H7UBATRR.js} +2 -9
- package/dist/server/{chunk-VDUV6LR6.js → chunk-HGPQON3P.js} +15 -4
- package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
- package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
- package/dist/server/{chunk-IXYK6ZOY.js → chunk-W3PVQLOP.js} +2 -2
- package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
- package/dist/server/cli.js +5 -5
- package/dist/server/create-dev-api-app.js +3 -3
- package/dist/server/dev-callback-redirect.d.ts +3 -0
- package/dist/server/dev-callback-redirect.d.ts.map +1 -0
- package/dist/server/dev-callback-redirect.js +18 -0
- package/dist/server/index.js +6 -6
- package/dist/server/middleware.js +6 -6
- package/dist/server/proxy/index.js +1 -1
- package/dist/server/proxy/mcp-proxy.d.ts +2 -0
- package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
- package/dist/server/proxy/mcp-proxy.js +3 -1
- package/dist/server/proxy-routes.js +2 -2
- package/dist/server/server.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/server/vite-dev-api-plugin.js +3 -3
- package/dist/web/assets/{AnimatePresence-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-DCLbW-mz.js → ManufactOAuthCallback-Btu4B6u6.js} +1 -1
- package/dist/web/assets/MarkdownRenderer-DpIEt9wb.js +47 -0
- package/dist/web/assets/{NotificationsTab-JevzvJTg.js → NotificationsTab-CHB8mtSz.js} +1 -1
- package/dist/web/assets/{OAuthCallback-BjcRxLh5.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-AkJZvdxS.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-DXAD1g7g.js → useViewHostProps-BQlaFC2Q.js} +1 -1
- package/dist/web/index.html +8 -9
- package/package.json +5 -12
- package/dist/cdn/ChatTab-D8uwCHAf.js +0 -13218
- package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +0 -145
- package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
- package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
- package/dist/cdn/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-Cy8eyFYI.js +0 -460
- package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +0 -1
- package/dist/web/assets/ElicitationTab-wDKgU1qL.js +0 -1
- package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
- package/dist/web/assets/PromptsTab-DsQVOjKH.js +0 -61
- package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +0 -2
- package/dist/web/assets/SamplingTab-BrcF1zJF.js +0 -1
- package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +0 -1
- package/dist/web/assets/ToolsTab-DJWF7Q_x.js +0 -8
- package/dist/web/assets/ViewPreview-jgeU7bY9.js +0 -1
- package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +0 -34
- package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
- package/dist/web/assets/checkbox-BA-XURSj.js +0 -1
- package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +0 -131
- package/dist/web/assets/dist-BcAQZluc.js +0 -21
- package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +0 -1
- package/dist/web/assets/index-BjH-Qp85.css +0 -1
- package/dist/web/assets/index-D2UxaT9v.js +0 -475
- package/dist/web/assets/input-CjmxOFr6.js +0 -1
- package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +0 -1
- package/dist/web/assets/pdf-CuwKm9zO.js +0 -54
- package/dist/web/assets/select-C0xlfLAa.js +0 -1
- package/dist/web/assets/shared-DQE60Op-.js +0 -1
- package/dist/web/assets/sheet-7TIkLdpr.js +0 -1
- package/dist/web/assets/textarea-Ci09-en6.js +0 -1
- package/dist/web/assets/useConfig-Qglo4xs1.js +0 -1
- package/dist/web/assets/useMCPPrompts-USLYc1I4.js +0 -1
|
@@ -0,0 +1,379 @@
|
|
|
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 };
|