@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
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { t } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
-
import { Rr as n, sr as r } from "./input-BLxOA7V-.js";
|
|
4
|
-
import { _ as i, d as a, f as o, g as s, h as c, m as l, u, v as d } from "./dialog-Dnl-pZsY.js";
|
|
5
|
-
import { t as f } from "./x-C3vRQIYu.js";
|
|
6
|
-
e();
|
|
7
|
-
var p = t();
|
|
8
|
-
function m({ ...e }) {
|
|
9
|
-
return /* @__PURE__ */ (0, p.jsx)(o, {
|
|
10
|
-
"data-slot": "sheet",
|
|
11
|
-
...e
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function h(e) {
|
|
15
|
-
return /* @__PURE__ */ (0, p.jsx)(u, {
|
|
16
|
-
"data-slot": "sheet-trigger",
|
|
17
|
-
...e
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function g({ ...e }) {
|
|
21
|
-
return /* @__PURE__ */ (0, p.jsx)(l, {
|
|
22
|
-
"data-slot": "sheet-portal",
|
|
23
|
-
...e
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function _({ className: e, container: t, ...r }) {
|
|
27
|
-
return /* @__PURE__ */ (0, p.jsx)(d, {
|
|
28
|
-
"data-slot": "sheet-overlay",
|
|
29
|
-
className: n("inset-0 z-50 bg-black/50 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0", t ? "absolute" : "fixed", e),
|
|
30
|
-
...r
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
function v({ className: e, children: t, side: a = "right", showCloseButton: o = !0, container: s, ...l }) {
|
|
34
|
-
return /* @__PURE__ */ (0, p.jsxs)(g, {
|
|
35
|
-
container: s ?? void 0,
|
|
36
|
-
children: [/* @__PURE__ */ (0, p.jsx)(_, { container: s }), /* @__PURE__ */ (0, p.jsxs)(c, {
|
|
37
|
-
"data-slot": "sheet-content",
|
|
38
|
-
"data-side": a,
|
|
39
|
-
className: n("z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm", s ? "absolute" : "fixed", e),
|
|
40
|
-
...l,
|
|
41
|
-
children: [t, o && /* @__PURE__ */ (0, p.jsxs)(i, {
|
|
42
|
-
"data-slot": "sheet-close",
|
|
43
|
-
render: /* @__PURE__ */ (0, p.jsx)(r, {
|
|
44
|
-
variant: "ghost",
|
|
45
|
-
className: "absolute top-4 right-4",
|
|
46
|
-
size: "icon-sm"
|
|
47
|
-
}),
|
|
48
|
-
children: [/* @__PURE__ */ (0, p.jsx)(f, {}), /* @__PURE__ */ (0, p.jsx)("span", {
|
|
49
|
-
className: "sr-only",
|
|
50
|
-
children: "Close"
|
|
51
|
-
})]
|
|
52
|
-
})]
|
|
53
|
-
})]
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
function y({ className: e, ...t }) {
|
|
57
|
-
return /* @__PURE__ */ (0, p.jsx)("div", {
|
|
58
|
-
"data-slot": "sheet-header",
|
|
59
|
-
className: n("flex flex-col gap-1.5 p-4", e),
|
|
60
|
-
...t
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function b({ className: e, ...t }) {
|
|
64
|
-
return /* @__PURE__ */ (0, p.jsx)(a, {
|
|
65
|
-
"data-slot": "sheet-title",
|
|
66
|
-
className: n("font-medium text-foreground", e),
|
|
67
|
-
...t
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function x({ className: e, ...t }) {
|
|
71
|
-
return /* @__PURE__ */ (0, p.jsx)(s, {
|
|
72
|
-
"data-slot": "sheet-description",
|
|
73
|
-
className: n("text-sm text-muted-foreground", e),
|
|
74
|
-
...t
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
export { b as a, y as i, v as n, h as o, x as r, m as t };
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { t as n } from "./jsx-runtime-CIxvMpEo.js";
|
|
3
|
-
import { f as r, w as i } from "./input-BLxOA7V-.js";
|
|
4
|
-
import { t as a } from "./AnimatePresence-B4HhIdgq.js";
|
|
5
|
-
import { n as o } from "./manufact-auth-0TVxpeTA.js";
|
|
6
|
-
//#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/render/dom/viewport/index.mjs
|
|
7
|
-
var s = /* @__PURE__ */ e(t(), 1), c = {
|
|
8
|
-
some: 0,
|
|
9
|
-
all: 1
|
|
10
|
-
};
|
|
11
|
-
function l(e, t, { root: n, margin: r, amount: a = "some" } = {}) {
|
|
12
|
-
let o = i(e), s = /* @__PURE__ */ new WeakMap(), l = new IntersectionObserver((e) => {
|
|
13
|
-
e.forEach((e) => {
|
|
14
|
-
let n = s.get(e.target);
|
|
15
|
-
if (e.isIntersecting !== !!n) if (e.isIntersecting) {
|
|
16
|
-
let n = t(e.target, e);
|
|
17
|
-
typeof n == "function" ? s.set(e.target, n) : l.unobserve(e.target);
|
|
18
|
-
} else typeof n == "function" && (n(e), s.delete(e.target));
|
|
19
|
-
});
|
|
20
|
-
}, {
|
|
21
|
-
root: n,
|
|
22
|
-
rootMargin: r,
|
|
23
|
-
threshold: typeof a == "number" ? a : c[a]
|
|
24
|
-
});
|
|
25
|
-
return o.forEach((e) => l.observe(e)), () => l.disconnect();
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
//#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
|
|
29
|
-
function u(e, { root: t, margin: n, amount: r, once: i = !1, initial: a = !1 } = {}) {
|
|
30
|
-
let [o, c] = (0, s.useState)(a);
|
|
31
|
-
return (0, s.useEffect)(() => {
|
|
32
|
-
if (!e.current || i && o) return;
|
|
33
|
-
let a = () => (c(!0), i ? void 0 : () => c(!1)), s = {
|
|
34
|
-
root: t && t.current || void 0,
|
|
35
|
-
margin: n,
|
|
36
|
-
amount: r
|
|
37
|
-
};
|
|
38
|
-
return l(e.current, a, s);
|
|
39
|
-
}, [
|
|
40
|
-
t,
|
|
41
|
-
e,
|
|
42
|
-
n,
|
|
43
|
-
i,
|
|
44
|
-
r
|
|
45
|
-
]), o;
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/client/components/ui/blur-fade.tsx
|
|
49
|
-
var d = n();
|
|
50
|
-
function f({ children: e, className: t, variant: n, duration: i = .4, delay: o = 0, offset: c = 6, direction: l = "down", inView: f = !1, inViewMargin: p = "-50px", blur: m = "6px", ...h }) {
|
|
51
|
-
let g = (0, s.useRef)(null), _ = u(g, {
|
|
52
|
-
once: !0,
|
|
53
|
-
margin: p
|
|
54
|
-
}), v = !f || _, y = {
|
|
55
|
-
hidden: {
|
|
56
|
-
[l === "left" || l === "right" ? "x" : "y"]: l === "right" || l === "down" ? -c : c,
|
|
57
|
-
opacity: 0,
|
|
58
|
-
filter: `blur(${m})`
|
|
59
|
-
},
|
|
60
|
-
visible: {
|
|
61
|
-
[l === "left" || l === "right" ? "x" : "y"]: 0,
|
|
62
|
-
opacity: 1,
|
|
63
|
-
filter: "blur(0px)"
|
|
64
|
-
}
|
|
65
|
-
}, b = n || y;
|
|
66
|
-
return /* @__PURE__ */ (0, d.jsx)(a, { children: /* @__PURE__ */ (0, d.jsx)(r.div, {
|
|
67
|
-
ref: g,
|
|
68
|
-
initial: "hidden",
|
|
69
|
-
animate: v ? "visible" : "hidden",
|
|
70
|
-
exit: "hidden",
|
|
71
|
-
variants: b,
|
|
72
|
-
transition: {
|
|
73
|
-
delay: .04 + o,
|
|
74
|
-
duration: i,
|
|
75
|
-
ease: "easeOut"
|
|
76
|
-
},
|
|
77
|
-
className: t,
|
|
78
|
-
...h,
|
|
79
|
-
children: e
|
|
80
|
-
}) });
|
|
81
|
-
}
|
|
82
|
-
//#endregion
|
|
83
|
-
//#region src/client/hooks/useKeyboardShortcuts.ts
|
|
84
|
-
function p(e) {
|
|
85
|
-
(0, s.useEffect)(() => {
|
|
86
|
-
let t = (t) => {
|
|
87
|
-
let n = t.target, r = n.tagName === "INPUT" || n.tagName === "TEXTAREA" || n.contentEditable === "true";
|
|
88
|
-
if ((t.metaKey || t.ctrlKey) && t.key === "k") {
|
|
89
|
-
t.preventDefault(), e.onCommandPalette?.();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
if ((t.metaKey || t.ctrlKey) && t.key === "o" && e.onNewChat) {
|
|
93
|
-
t.preventDefault(), e.onNewChat();
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
if (t.key === "Escape") {
|
|
97
|
-
t.preventDefault(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), e.onBlurSearch?.();
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
if (!r && !(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey)) switch (t.key.toLowerCase()) {
|
|
101
|
-
case "t":
|
|
102
|
-
t.preventDefault(), e.onToolsTab?.();
|
|
103
|
-
break;
|
|
104
|
-
case "p":
|
|
105
|
-
t.preventDefault(), e.onPromptsTab?.();
|
|
106
|
-
break;
|
|
107
|
-
case "r":
|
|
108
|
-
t.preventDefault(), e.onResourcesTab?.();
|
|
109
|
-
break;
|
|
110
|
-
case "c":
|
|
111
|
-
t.preventDefault(), e.onChatTab?.();
|
|
112
|
-
break;
|
|
113
|
-
case "h":
|
|
114
|
-
t.preventDefault(), e.onHome?.();
|
|
115
|
-
break;
|
|
116
|
-
case "f":
|
|
117
|
-
t.preventDefault(), e.onFocusSearch?.();
|
|
118
|
-
break;
|
|
119
|
-
default: break;
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
123
|
-
}, [e]);
|
|
124
|
-
}
|
|
125
|
-
//#endregion
|
|
126
|
-
//#region src/client/components/chat/freeTier.ts
|
|
127
|
-
var m = "anthropic/claude-sonnet-4.6";
|
|
128
|
-
function h({ isManaged: e, enableFreeTierUpgrade: t, isAuthenticated: n }) {
|
|
129
|
-
return e && t && !n;
|
|
130
|
-
}
|
|
131
|
-
function g({ isLoopback: e, chatApiUrl: t }) {
|
|
132
|
-
return e && !!t;
|
|
133
|
-
}
|
|
134
|
-
function _(e, t, n = !1, r) {
|
|
135
|
-
let i = e.replace(/\/chat\/stream\/?$/, "/llm");
|
|
136
|
-
return {
|
|
137
|
-
provider: "openai-compatible",
|
|
138
|
-
model: r ?? "anthropic/claude-sonnet-4.6",
|
|
139
|
-
apiKey: t ?? "server-managed",
|
|
140
|
-
baseUrl: i,
|
|
141
|
-
...n ? { credentials: "include" } : {}
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
function v(e) {
|
|
145
|
-
return e ? { Authorization: `Bearer ${e}` } : void 0;
|
|
146
|
-
}
|
|
147
|
-
//#endregion
|
|
148
|
-
//#region src/client/hooks/useHostedSession.ts
|
|
149
|
-
function y(e) {
|
|
150
|
-
return o(e);
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
|
-
export { h as a, f as c, _ as i, m as n, g as o, v as r, p as s, y as t };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { t as n, u as r } from "./telemetry-Ct6pVkM1.js";
|
|
3
|
-
//#region src/client/hooks/useMCPPrompts.ts
|
|
4
|
-
var i = /* @__PURE__ */ e(t(), 1);
|
|
5
|
-
function a({ prompts: e, callPrompt: t, serverId: a }) {
|
|
6
|
-
let [o, s] = (0, i.useState)(null), [c, l] = (0, i.useState)({}), [u, d] = (0, i.useState)([]), [f, p] = (0, i.useState)(!1), [m, h] = (0, i.useState)(""), g = (0, i.useMemo)(() => {
|
|
7
|
-
if (!m.trim()) return e;
|
|
8
|
-
let t = m.toLowerCase();
|
|
9
|
-
return e.filter((e) => e.name.toLowerCase().includes(t) || e.description?.toLowerCase().includes(t));
|
|
10
|
-
}, [e, m]), _ = (0, i.useCallback)((e) => {
|
|
11
|
-
s(e);
|
|
12
|
-
let t = {};
|
|
13
|
-
e.arguments && e.arguments.forEach((e) => {
|
|
14
|
-
t[e.name] = "";
|
|
15
|
-
}), l(t);
|
|
16
|
-
}, []), v = (0, i.useCallback)((e, t) => {
|
|
17
|
-
l((n) => ({
|
|
18
|
-
...n,
|
|
19
|
-
[e]: t
|
|
20
|
-
}));
|
|
21
|
-
}, []), y = (0, i.useCallback)(async (e, i) => {
|
|
22
|
-
if (f) return;
|
|
23
|
-
p(!0);
|
|
24
|
-
let o = Date.now();
|
|
25
|
-
try {
|
|
26
|
-
let s = await t(e.name, i), c = Date.now() - o;
|
|
27
|
-
n(new r({
|
|
28
|
-
promptName: e.name,
|
|
29
|
-
serverId: a,
|
|
30
|
-
success: !0
|
|
31
|
-
})).catch(() => {}), d((t) => [{
|
|
32
|
-
promptName: e.name,
|
|
33
|
-
args: i,
|
|
34
|
-
result: s,
|
|
35
|
-
timestamp: o,
|
|
36
|
-
duration: c
|
|
37
|
-
}, ...t]);
|
|
38
|
-
} catch (t) {
|
|
39
|
-
n(new r({
|
|
40
|
-
promptName: e.name,
|
|
41
|
-
serverId: a,
|
|
42
|
-
success: !1,
|
|
43
|
-
error: t instanceof Error ? t.message : "Unknown error"
|
|
44
|
-
})).catch(() => {});
|
|
45
|
-
let s = t instanceof Error ? t.message : String(t), c = {
|
|
46
|
-
promptName: e.name,
|
|
47
|
-
args: i,
|
|
48
|
-
result: {
|
|
49
|
-
error: s,
|
|
50
|
-
isError: !0
|
|
51
|
-
},
|
|
52
|
-
error: s,
|
|
53
|
-
timestamp: o,
|
|
54
|
-
duration: Date.now() - o
|
|
55
|
-
};
|
|
56
|
-
d((e) => [c, ...e]);
|
|
57
|
-
} finally {
|
|
58
|
-
p(!1);
|
|
59
|
-
}
|
|
60
|
-
}, [
|
|
61
|
-
f,
|
|
62
|
-
t,
|
|
63
|
-
a
|
|
64
|
-
]), b = (0, i.useCallback)((e) => {
|
|
65
|
-
d((t) => t.filter((t, n) => n !== e));
|
|
66
|
-
}, []), x = (0, i.useCallback)(() => {
|
|
67
|
-
d([]);
|
|
68
|
-
}, []);
|
|
69
|
-
return (0, i.useEffect)(() => {
|
|
70
|
-
if (o) {
|
|
71
|
-
let t = e.find((e) => e.name === o.name);
|
|
72
|
-
if (!t) {
|
|
73
|
-
s(null);
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
t !== o && (JSON.stringify(t.arguments) !== JSON.stringify(o.arguments) || t.description !== o.description) && s(t);
|
|
77
|
-
}
|
|
78
|
-
}, [e, o]), {
|
|
79
|
-
filteredPrompts: g,
|
|
80
|
-
selectedPrompt: o,
|
|
81
|
-
setSelectedPrompt: s,
|
|
82
|
-
results: u,
|
|
83
|
-
handleDeleteResult: b,
|
|
84
|
-
promptArgs: c,
|
|
85
|
-
setPromptArgs: l,
|
|
86
|
-
isExecuting: f,
|
|
87
|
-
handlePromptSelect: _,
|
|
88
|
-
handleArgChange: v,
|
|
89
|
-
executePrompt: y,
|
|
90
|
-
executeSelectedPrompt: (0, i.useCallback)(async () => {
|
|
91
|
-
!o || f || y(o, c);
|
|
92
|
-
}, [
|
|
93
|
-
o,
|
|
94
|
-
c,
|
|
95
|
-
f,
|
|
96
|
-
y
|
|
97
|
-
]),
|
|
98
|
-
searchQuery: m,
|
|
99
|
-
setSearchQuery: h,
|
|
100
|
-
clearPromptResults: x
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
//#endregion
|
|
104
|
-
export { a as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"streamdown-code-slim.d.ts","sourceRoot":"","sources":["../../../../src/client/components/chat/streamdown-code-slim.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAqExD,6EAA6E;AAC7E,eAAO,MAAM,QAAQ,EAAE,qBA4CtB,CAAC"}
|