@mcp-use/inspector 20.0.0-beta.5 → 20.0.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/cdn/{AnimatePresence-Dcw-FOy8.js → AnimatePresence-D1bZ5_-l.js} +79 -78
  2. package/dist/cdn/{ChatTab-B255lH5i.js → ChatTab-DtUGK07C.js} +1628 -1561
  3. package/dist/cdn/CheckboxIndicator-BjF73mGX.js +252 -0
  4. package/dist/cdn/{ConnectionSettingsForm-DF-NS58d.js → ConnectionSettingsForm-CNuMa6jp.js} +202 -202
  5. package/dist/cdn/{ConnectionSettingsTab-dI-Cqe79.js → ConnectionSettingsTab-qSVQ1aIF.js} +36 -35
  6. package/dist/cdn/{ElicitationTab-CL1KJ0bz.js → ElicitationTab-PEmEDvC5.js} +47 -46
  7. package/dist/cdn/{FormContext-tmgN_Vdr.js → FormContext-NtUiZclE.js} +26 -26
  8. package/dist/cdn/{InspectorContext-UjtEbNod.js → InspectorContext-BBKCdfmK.js} +1 -1
  9. package/dist/cdn/{JSONDisplay-BFxf5oEu.js → JSONDisplay-BJqMz7Ny.js} +22 -22
  10. package/dist/cdn/{ListTabHeader-Cv-GmtGF.js → ListTabHeader-DzmTtN1e.js} +20 -19
  11. package/dist/cdn/{WidgetWrapper-B4H3Fek7.js → MCPAppsDebugControls-BpP-Ifap.js} +514 -550
  12. package/dist/cdn/{ManufactOAuthCallback-B98kSYCj.js → ManufactOAuthCallback-ChbbjFIT.js} +2 -2
  13. package/dist/cdn/{MarkdownRenderer-Ba7nA4Ie.js → MarkdownRenderer-bX1BrKgI.js} +23 -23
  14. package/dist/cdn/McpAppsViewPanel-jlsYQ7uS.js +56 -0
  15. package/dist/cdn/{NotificationsTab-CeImSrhx.js → NotificationsTab-B7uebqMV.js} +21 -21
  16. package/dist/cdn/{OAuthCallback-Blc2Asxc.js → OAuthCallback--NZdLoWx.js} +3 -3
  17. package/dist/cdn/PromptsTab-BlXDcau3.js +902 -0
  18. package/dist/cdn/{ResourcesTab-BGualKW-.js → ResourcesTab-D45_JojP.js} +116 -114
  19. package/dist/cdn/{SamplingTab-BeZBUeni.js → SamplingTab-r7tImM6L.js} +34 -33
  20. package/dist/cdn/{ServerMetadataTab-CvrKX8fz.js → ServerMetadataTab-BM3VhSLf.js} +9 -9
  21. package/dist/cdn/{StatusIcon-D0-ARyOh.js → StatusIcon-Q3n3YRtE.js} +10 -11
  22. package/dist/cdn/{ToolsTab-j6n4O_3s.js → ToolsTab-DOAO8HnS.js} +664 -652
  23. package/dist/cdn/{ViewPreview-DihyG6Qd.js → ViewPreview-CBhrVdwx.js} +3 -3
  24. package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
  25. package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
  26. package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
  27. package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
  28. package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
  29. package/dist/cdn/button-CB4uOoUV.js +2509 -0
  30. package/dist/cdn/card-BA-DQk-G.js +41 -0
  31. package/dist/cdn/{checkbox-By0FklhG.js → checkbox-kwVa4gRX.js} +7 -7
  32. package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
  33. package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
  34. package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
  35. package/dist/cdn/{dialog-BsDpuJd3.js → dialog-CJGnC5Ag.js} +171 -171
  36. package/dist/cdn/{dist-DaMB0Su9.js → dist-CTJnCYmk.js} +1 -1
  37. package/dist/cdn/{dist-DbX5yidW.js → dist-SxRsB1iS.js} +5 -4
  38. package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
  39. package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
  40. package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
  41. package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
  42. package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
  43. package/dist/cdn/{index-browser-DkQOzkvX.js → index-browser-Dm3R1Mfe.js} +1 -1
  44. package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
  45. package/dist/cdn/{input-C2OBd4PJ.js → input-BCpgLXU1.js} +2993 -5499
  46. package/dist/cdn/inspector.css +1 -1
  47. package/dist/cdn/inspector.js +7106 -7140
  48. package/dist/cdn/{label-B9Jmm9be.js → label-A0UGV8FE.js} +9 -9
  49. package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
  50. package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
  51. package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
  52. package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
  53. package/dist/cdn/{not-found-DEtSM_Wd.js → not-found-BajFyZpp.js} +9 -11
  54. package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
  55. package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
  56. package/dist/cdn/{react-BajV-X4P.js → react-Bl-hSkvn.js} +628 -571
  57. package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
  58. package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
  59. package/dist/cdn/{select-DDdiIPR2.js → select-CCFHjOGk.js} +808 -807
  60. package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
  61. package/dist/cdn/{shared-DaILIQPP.js → shared-CJVHJhag.js} +36 -36
  62. package/dist/cdn/{sheet-Br_l2kry.js → sheet-oyq1mIyg.js} +620 -619
  63. package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
  64. package/dist/cdn/spinner-Be1GlSGX.js +15 -0
  65. package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
  66. package/dist/cdn/{switch-C3IyQuid.js → switch-DHXEA_N5.js} +190 -189
  67. package/dist/cdn/{tabs-subtle-CkdI6Mac.js → tabs-subtle-Dubd6Kj8.js} +269 -268
  68. package/dist/cdn/{telemetry-DabTAQ8x.js → telemetry-TwPKZlFf.js} +2 -2
  69. package/dist/cdn/{textarea-DSbwcFVt.js → textarea-CwmI8_uI.js} +6 -6
  70. package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
  71. package/dist/cdn/{useAriaLabelledBy-DqAdnppm.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
  72. package/dist/cdn/{useCompositeItem-BRqEzYh-.js → useCompositeItem-Dhnm-7el.js} +3 -3
  73. package/dist/cdn/{useConfig-Btmh8wjJ.js → useConfig-leHVjdjl.js} +2 -2
  74. package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
  75. package/dist/cdn/{useViewHostProps-B6SKeeH9.js → useViewHostProps-CDOm2w6u.js} +124 -109
  76. package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
  77. package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
  78. package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
  79. package/dist/cli.js +1 -1
  80. package/dist/client/components/ChatTab.d.ts.map +1 -1
  81. package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
  82. package/dist/client/components/ToolsTab.d.ts.map +1 -1
  83. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  84. package/dist/client/components/chat/MessageList.d.ts +1 -0
  85. package/dist/client/components/chat/MessageList.d.ts.map +1 -1
  86. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
  87. package/dist/client/components/chat/partialToolArgs.d.ts +10 -0
  88. package/dist/client/components/chat/partialToolArgs.d.ts.map +1 -0
  89. package/dist/client/components/chat/types.d.ts +1 -0
  90. package/dist/client/components/chat/types.d.ts.map +1 -1
  91. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  92. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  93. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
  94. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
  95. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
  96. package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
  97. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
  98. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
  99. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -1
  100. package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
  101. package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
  102. package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
  103. package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
  104. package/dist/client/components/ui/mesh-tab-background.d.ts +1 -1
  105. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
  106. package/dist/client/components/ui/not-found.d.ts.map +1 -1
  107. package/dist/client/context/WidgetDebugContext.d.ts +1 -11
  108. package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
  109. package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
  110. package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
  111. package/dist/client/hooks/useViewHostProps.d.ts +1 -1
  112. package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
  113. package/dist/client/index.js +2238 -1935
  114. package/dist/client/utils/servers.d.ts +5 -0
  115. package/dist/client/utils/servers.d.ts.map +1 -1
  116. package/dist/server/cdn-shell.js +2 -2
  117. package/dist/server/{chunk-ZCGLU5T7.js → chunk-5GVQGIAX.js} +1 -1
  118. package/dist/server/{chunk-DSTNUYWX.js → chunk-UZZDBVKF.js} +1 -1
  119. package/dist/server/{chunk-SQ4XNMLT.js → chunk-VFVFLXKP.js} +1 -1
  120. package/dist/server/cli.js +2 -2
  121. package/dist/server/index.js +3 -3
  122. package/dist/server/middleware.js +3 -3
  123. package/dist/server/version.js +1 -1
  124. package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
  125. package/dist/web/assets/ChatTab-B6ubLbeA.js +18 -0
  126. package/dist/web/assets/ConnectionSettingsTab-Cb2eDgEu.js +1 -0
  127. package/dist/web/assets/ElicitationTab-CbnCrmu9.js +1 -0
  128. package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
  129. package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
  130. package/dist/web/assets/MCPAppsDebugControls-sRglMhat.js +34 -0
  131. package/dist/web/assets/{ManufactOAuthCallback-CS3ydSZg.js → ManufactOAuthCallback-D4uYGigW.js} +1 -1
  132. package/dist/web/assets/{MarkdownRenderer-BeeBfQhv.js → MarkdownRenderer-Cwxp9fLj.js} +2 -2
  133. package/dist/web/assets/McpAppsViewPanel-jQYFoZNX.js +1 -0
  134. package/dist/web/assets/{NotificationsTab-Uj0_DrmK.js → NotificationsTab-DuSm762_.js} +1 -1
  135. package/dist/web/assets/{OAuthCallback-C0ljgCiw.js → OAuthCallback-VLHlUe2c.js} +1 -1
  136. package/dist/web/assets/PromptsTab-DK6XZxR8.js +15 -0
  137. package/dist/web/assets/ResourcesTab-CUE4MAtJ.js +2 -0
  138. package/dist/web/assets/SamplingTab-BYNkVCTu.js +1 -0
  139. package/dist/web/assets/ServerMetadataTab-DWjNFMbq.js +1 -0
  140. package/dist/web/assets/ToolsTab-BisWWY2p.js +8 -0
  141. package/dist/web/assets/{ViewPreview-Ba1Ec5uA.js → ViewPreview-COrmPpRr.js} +1 -1
  142. package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
  143. package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
  144. package/dist/web/assets/button-C8Xa2k4x.js +1 -0
  145. package/dist/web/assets/checkbox-B6dtF73d.js +1 -0
  146. package/dist/web/assets/code-B14rVdNt.js +1 -0
  147. package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
  148. package/dist/web/assets/{dist-C5JjLJN9.js → dist-9Oy7e0v8.js} +5 -5
  149. package/dist/web/assets/index-BMaSsizY.js +499 -0
  150. package/dist/web/assets/index-D7TVTIt9.css +1 -0
  151. package/dist/web/assets/input-C0OQCUZy.js +1 -0
  152. package/dist/web/assets/{label-Cdim77Jw.js → label-CI7JWQOo.js} +1 -1
  153. package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
  154. package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
  155. package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
  156. package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
  157. package/dist/web/assets/select-D6jzbLJn.js +1 -0
  158. package/dist/web/assets/shared-CFs9CZfB.js +1 -0
  159. package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
  160. package/dist/web/assets/tabs-subtle-D2XkWhLL.js +1 -0
  161. package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
  162. package/dist/web/assets/{useConfig-BAgALiZg.js → useConfig-B6tXvJOb.js} +1 -1
  163. package/dist/web/assets/useViewHostProps-DZqOwiAm.js +1 -0
  164. package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
  165. package/dist/web/index.html +10 -10
  166. package/package.json +4 -4
  167. package/dist/cdn/CheckboxIndicator-Bt4IICtv.js +0 -251
  168. package/dist/cdn/PromptsTab-BYKnY7Rp.js +0 -901
  169. package/dist/cdn/card-DgiYnSg-.js +0 -41
  170. package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
  171. package/dist/cdn/providerMeta-BQIfHuNL.js +0 -379
  172. package/dist/cdn/spinner-jQtC7EBj.js +0 -15
  173. package/dist/web/assets/AnimatePresence-C5p0yiY1.js +0 -9
  174. package/dist/web/assets/ChatTab-BCobuZDc.js +0 -18
  175. package/dist/web/assets/ConnectionSettingsTab-BjGkLwVu.js +0 -1
  176. package/dist/web/assets/ElicitationTab-D3ZUKHND.js +0 -1
  177. package/dist/web/assets/FormContext-DH2caWKO.js +0 -1
  178. package/dist/web/assets/ListTabHeader-R17w_JsB.js +0 -1
  179. package/dist/web/assets/PromptsTab-Bns2u0G-.js +0 -15
  180. package/dist/web/assets/ResourcesTab-CO24312V.js +0 -2
  181. package/dist/web/assets/SamplingTab-7gtN7FwU.js +0 -1
  182. package/dist/web/assets/ServerMetadataTab-CQwqYSjL.js +0 -1
  183. package/dist/web/assets/ToolsTab-bDdRxI1b.js +0 -8
  184. package/dist/web/assets/WidgetWrapper-CYHfzrtb.js +0 -34
  185. package/dist/web/assets/checkbox-CzBkaNKa.js +0 -1
  186. package/dist/web/assets/code-tME-5H6D.js +0 -1
  187. package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
  188. package/dist/web/assets/index-TQ5V7cM9.js +0 -492
  189. package/dist/web/assets/index-fBX3akc8.css +0 -1
  190. package/dist/web/assets/input-CLYhA7PK.js +0 -1
  191. package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
  192. package/dist/web/assets/select-CJ57-Bor.js +0 -1
  193. package/dist/web/assets/shared-BF0rJNdE.js +0 -1
  194. package/dist/web/assets/tabs-subtle-6D79T1xd.js +0 -1
  195. package/dist/web/assets/textarea-DLAmNVf_.js +0 -1
  196. package/dist/web/assets/useViewHostProps-BYitt_6K.js +0 -1
@@ -1,27 +1,27 @@
1
1
  import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { Cr as n, Rr as r } from "./input-C2OBd4PJ.js";
3
- import { t as i } from "./jsx-runtime-CIxvMpEo.js";
2
+ import { n } from "./createLucideIcon-BONxC1L5.js";
3
+ import { U as r, _ as i } from "./button-CB4uOoUV.js";
4
4
  //#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/useControlled.mjs
5
5
  var a = /* @__PURE__ */ e(t(), 1);
6
- function o({ controlled: e, default: t, name: r, state: i = "value" }) {
6
+ function o({ controlled: e, default: t, name: n, state: r = "value" }) {
7
7
  let { current: o } = a.useRef(e !== void 0), [c, l] = a.useState(t), u = o ? e : c;
8
8
  if (process.env.NODE_ENV !== "production") {
9
9
  a.useEffect(() => {
10
- o !== (e !== void 0) && n([
11
- `A component is changing the ${o ? "" : "un"}controlled ${i} state of ${r} to be ${o ? "un" : ""}controlled.`,
10
+ o !== (e !== void 0) && i([
11
+ `A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`,
12
12
  "Elements should not switch from uncontrolled to controlled (or vice versa).",
13
- `Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,
13
+ `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,
14
14
  "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
15
15
  "More info: https://fb.me/react-controlled-components"
16
16
  ].join("\n"));
17
17
  }, [
18
- i,
19
18
  r,
19
+ n,
20
20
  e
21
21
  ]);
22
22
  let { current: c } = a.useRef(t);
23
23
  a.useEffect(() => {
24
- !o && s(c) !== s(t) && n([`A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join("\n"));
24
+ !o && s(c) !== s(t) && i([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"));
25
25
  }, [t]);
26
26
  }
27
27
  return [u, a.useCallback((e) => {
@@ -48,7 +48,7 @@ function s(e) {
48
48
  }
49
49
  //#endregion
50
50
  //#region src/client/components/ui/label.tsx
51
- var c = i();
51
+ var c = n();
52
52
  function l({ className: e, ...t }) {
53
53
  return /* @__PURE__ */ (0, c.jsx)("label", {
54
54
  "data-slot": "label",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("loader-circle", [["path", {
3
3
  d: "M21 12a9 9 0 1 1-6.219-8.56",
4
4
  key: "13zald"
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("maximize-2", [
3
3
  ["path", {
4
4
  d: "M15 3h6v6",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("maximize", [
3
3
  ["path", {
4
4
  d: "M8 3H5a2 2 0 0 0-2 2v3",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("message-square", [["path", {
3
3
  d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
4
4
  key: "18887p"
@@ -1,20 +1,18 @@
1
- import { Rr as e } from "./input-C2OBd4PJ.js";
2
- import { t } from "./jsx-runtime-CIxvMpEo.js";
1
+ import { n as e } from "./createLucideIcon-BONxC1L5.js";
2
+ import { U as t } from "./button-CB4uOoUV.js";
3
3
  //#region src/client/components/ui/not-found.tsx
4
- var n = t();
5
- function r({ message: t, className: r = "", vertical: i, noBorder: a }) {
4
+ var n = e();
5
+ function r({ message: e, className: r = "", vertical: i, noBorder: a }) {
6
6
  return /* @__PURE__ */ (0, n.jsx)("div", {
7
- className: e(`mt-2 rounded-md p-6 ${r}`, !a && "border"),
7
+ className: t(`mt-2 rounded-md p-6 ${r}`, !a && "border"),
8
8
  children: /* @__PURE__ */ (0, n.jsxs)("p", {
9
- className: e("text-sm text-muted-foreground flex items-center gap-4", i && "flex-col"),
9
+ className: t("text-sm text-muted-foreground flex items-center gap-4", i && "flex-col"),
10
10
  children: [/* @__PURE__ */ (0, n.jsxs)("svg", {
11
- width: "40",
12
- height: "40",
13
11
  viewBox: "-6 -6 512 512",
14
12
  xmlns: "http://www.w3.org/2000/svg",
15
- className: "flex-shrink-0 stroke-black dark:stroke-white",
13
+ className: "size-14 shrink-0 stroke-black dark:stroke-white",
16
14
  fill: "none",
17
- strokeWidth: "4",
15
+ strokeWidth: "4.8",
18
16
  strokeLinecap: "round",
19
17
  strokeLinejoin: "round",
20
18
  children: [
@@ -26,7 +24,7 @@ function r({ message: t, className: r = "", vertical: i, noBorder: a }) {
26
24
  }),
27
25
  /* @__PURE__ */ (0, n.jsx)("path", { d: "M500 100.426C500 155.889 455.037 200.851 399.574 200.851C344.11 200.851 299.148 155.889 299.148 100.426C299.148 44.962 344.11 0 399.574 0C455.037 0 500 44.962 500 100.426Z" })
28
26
  ]
29
- }), t]
27
+ }), e]
30
28
  })
31
29
  });
32
30
  }
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("play", [["path", {
3
3
  d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
4
4
  key: "10ikf1"
@@ -0,0 +1,436 @@
1
+ import { s as e, t } from "./react-BIs9pQ3H.js";
2
+ import { a as n, f as r, n as i, r as a, w as o } from "./input-BCpgLXU1.js";
3
+ import { n as s, t as c } from "./createLucideIcon-BONxC1L5.js";
4
+ import { U as l } from "./button-CB4uOoUV.js";
5
+ import { t as u } from "./AnimatePresence-D1bZ5_-l.js";
6
+ import { A as d } from "./dialog-CJGnC5Ag.js";
7
+ import { t as f } from "./play-B1leulYf.js";
8
+ import { n as p } from "./manufact-auth-BQMHhbLV.js";
9
+ import { s as m } from "./WidgetDebugContext-B6yoOVVV.js";
10
+ var h = c("key", [
11
+ ["path", {
12
+ 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",
13
+ key: "g0fldk"
14
+ }],
15
+ ["path", {
16
+ d: "m21 2-9.6 9.6",
17
+ key: "1j0ho8"
18
+ }],
19
+ ["circle", {
20
+ cx: "7.5",
21
+ cy: "15.5",
22
+ r: "5.5",
23
+ key: "yqb3hr"
24
+ }]
25
+ ]), g = c("square", [["rect", {
26
+ width: "18",
27
+ height: "18",
28
+ x: "3",
29
+ y: "3",
30
+ rx: "2",
31
+ key: "afitv7"
32
+ }]]), _ = /* @__PURE__ */ e(t(), 1), v = {
33
+ some: 0,
34
+ all: 1
35
+ };
36
+ function y(e, t, { root: n, margin: r, amount: i = "some" } = {}) {
37
+ let a = o(e), s = /* @__PURE__ */ new WeakMap(), c = new IntersectionObserver((e) => {
38
+ e.forEach((e) => {
39
+ let n = s.get(e.target);
40
+ if (e.isIntersecting !== !!n) if (e.isIntersecting) {
41
+ let n = t(e.target, e);
42
+ typeof n == "function" ? s.set(e.target, n) : c.unobserve(e.target);
43
+ } else typeof n == "function" && (n(e), s.delete(e.target));
44
+ });
45
+ }, {
46
+ root: n,
47
+ rootMargin: r,
48
+ threshold: typeof i == "number" ? i : v[i]
49
+ });
50
+ return a.forEach((e) => c.observe(e)), () => c.disconnect();
51
+ }
52
+ //#endregion
53
+ //#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
54
+ function b(e, { root: t, margin: n, amount: r, once: i = !1, initial: a = !1 } = {}) {
55
+ let [o, s] = (0, _.useState)(a);
56
+ return (0, _.useEffect)(() => {
57
+ if (!e.current || i && o) return;
58
+ let a = () => (s(!0), i ? void 0 : () => s(!1)), c = {
59
+ root: t && t.current || void 0,
60
+ margin: n,
61
+ amount: r
62
+ };
63
+ return y(e.current, a, c);
64
+ }, [
65
+ t,
66
+ e,
67
+ n,
68
+ i,
69
+ r
70
+ ]), o;
71
+ }
72
+ //#endregion
73
+ //#region src/client/components/ui/MeshGradientCanvas.tsx
74
+ var x = s(), S = "#version 300 es\nprecision mediump float;\nin vec4 a_position;\nuniform vec2 u_resolution;\nout vec2 v_objectUV;\nvoid main(){\n gl_Position=a_position;\n // paper-design object UV: fit=contain, fixedRatio=1, origin=(0.5,0.5)\n // Keeps the swirl vortex circular on non-square canvases.\n vec2 uv=a_position.xy*0.5;\n float box=min(u_resolution.x,u_resolution.y);\n vec2 scale=box>0.0?u_resolution/box:vec2(1.);\n v_objectUV=uv*scale;\n}", C = "#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}";
75
+ function w(e) {
76
+ return [
77
+ parseInt(e.slice(1, 3), 16) / 255,
78
+ parseInt(e.slice(3, 5), 16) / 255,
79
+ parseInt(e.slice(5, 7), 16) / 255,
80
+ 1
81
+ ];
82
+ }
83
+ function T({ className: e, colors: t = [
84
+ "#e0eaff",
85
+ "#f9ffbd",
86
+ "#dedede",
87
+ "#ffffff"
88
+ ], distortion: n = .8, swirl: r = .1, grainMixer: i = 0, grainOverlay: a = .2, speed: o = 1 }) {
89
+ let s = (0, _.useRef)(null), c = (0, _.useRef)(null), l = (0, _.useRef)({
90
+ colors: t,
91
+ distortion: n,
92
+ swirl: r,
93
+ grainMixer: i,
94
+ grainOverlay: a,
95
+ speed: o
96
+ });
97
+ return l.current = {
98
+ colors: t,
99
+ distortion: n,
100
+ swirl: r,
101
+ grainMixer: i,
102
+ grainOverlay: a,
103
+ speed: o
104
+ }, (0, _.useEffect)(() => {
105
+ let e = s.current, t = c.current;
106
+ if (!e || !t) return;
107
+ let n = e.getContext("webgl2");
108
+ if (!n) return;
109
+ let r = (e, t) => {
110
+ let r = n.createShader(e);
111
+ return r ? (n.shaderSource(r, t), n.compileShader(r), n.getShaderParameter(r, n.COMPILE_STATUS) ? r : (console.error(n.getShaderInfoLog(r)), null)) : null;
112
+ }, i = r(n.VERTEX_SHADER, S), a = r(n.FRAGMENT_SHADER, C);
113
+ if (!i || !a) return;
114
+ let o = n.createProgram();
115
+ if (!o) return;
116
+ if (n.attachShader(o, i), n.attachShader(o, a), n.linkProgram(o), !n.getProgramParameter(o, n.LINK_STATUS)) {
117
+ console.error(n.getProgramInfoLog(o));
118
+ return;
119
+ }
120
+ n.useProgram(o);
121
+ let u = n.getAttribLocation(o, "a_position"), d = n.createBuffer();
122
+ n.bindBuffer(n.ARRAY_BUFFER, d), n.bufferData(n.ARRAY_BUFFER, new Float32Array([
123
+ -1,
124
+ -1,
125
+ 1,
126
+ -1,
127
+ -1,
128
+ 1,
129
+ -1,
130
+ 1,
131
+ 1,
132
+ -1,
133
+ 1,
134
+ 1
135
+ ]), n.STATIC_DRAW), n.enableVertexAttribArray(u), n.vertexAttribPointer(u, 2, n.FLOAT, !1, 0, 0);
136
+ let f = n.getUniformLocation(o, "u_time"), p = n.getUniformLocation(o, "u_resolution"), m = [
137
+ 0,
138
+ 1,
139
+ 2,
140
+ 3
141
+ ].map((e) => n.getUniformLocation(o, `u_colors[${e}]`)), h = n.getUniformLocation(o, "u_colorsCount"), g = n.getUniformLocation(o, "u_distortion"), _ = n.getUniformLocation(o, "u_swirl"), v = n.getUniformLocation(o, "u_grainMixer"), y = n.getUniformLocation(o, "u_grainOverlay"), b = 0, x = performance.now(), T = 0, E = () => {
142
+ let r = Math.min(2, window.devicePixelRatio || 1);
143
+ e.width = Math.floor(t.clientWidth * r), e.height = Math.floor(t.clientHeight * r), n.viewport(0, 0, e.width, e.height);
144
+ }, D = (t) => {
145
+ if (document.hidden) {
146
+ x = t, T = requestAnimationFrame(D);
147
+ return;
148
+ }
149
+ let { colors: r, distortion: i, swirl: a, grainMixer: o, grainOverlay: s, speed: c } = l.current, u = t - x;
150
+ x = t, b += u * c;
151
+ let d = r.map(w);
152
+ n.uniform1f(f, b * .001), n.uniform2f(p, e.width, e.height);
153
+ for (let e = 0; e < 4; e++) {
154
+ let t = m[e];
155
+ t && n.uniform4fv(t, d[e] ?? [
156
+ 1,
157
+ 1,
158
+ 1,
159
+ 1
160
+ ]);
161
+ }
162
+ n.uniform1f(h, d.length), n.uniform1f(g, i), n.uniform1f(_, a), n.uniform1f(v, o), n.uniform1f(y, s), n.drawArrays(n.TRIANGLES, 0, 6), T = requestAnimationFrame(D);
163
+ };
164
+ E();
165
+ let O = new ResizeObserver(E);
166
+ return O.observe(t), T = requestAnimationFrame(D), () => {
167
+ cancelAnimationFrame(T), O.disconnect();
168
+ };
169
+ }, []), /* @__PURE__ */ (0, x.jsx)("div", {
170
+ ref: c,
171
+ className: e,
172
+ children: /* @__PURE__ */ (0, x.jsx)("canvas", {
173
+ ref: s,
174
+ className: "h-full w-full",
175
+ "aria-hidden": !0
176
+ })
177
+ });
178
+ }
179
+ //#endregion
180
+ //#region src/client/components/ui/mesh-animation-pause.tsx
181
+ var E = "mcp-inspector-connect-panel-mesh-animation-paused", D = "mcp-inspector-chat-mesh-animation-paused";
182
+ function O(e) {
183
+ try {
184
+ return localStorage.getItem(e) === "true";
185
+ } catch {
186
+ return !1;
187
+ }
188
+ }
189
+ function k(e) {
190
+ let [t, n] = (0, _.useState)(() => O(e));
191
+ return {
192
+ paused: t,
193
+ toggle: (0, _.useCallback)(() => {
194
+ n((t) => {
195
+ let n = !t;
196
+ try {
197
+ localStorage.setItem(e, n ? "true" : "false");
198
+ } catch {}
199
+ return n;
200
+ });
201
+ }, [e])
202
+ };
203
+ }
204
+ var A = "z-50 flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-zinc-500/60 bg-transparent text-zinc-600 transition-colors hover:border-zinc-500 hover:text-zinc-800 dark:border-zinc-500/50 dark:text-zinc-400 dark:hover:border-zinc-400 dark:hover:text-zinc-200";
205
+ function j({ paused: e, onToggle: t, className: r }) {
206
+ return /* @__PURE__ */ (0, x.jsxs)(i, { children: [/* @__PURE__ */ (0, x.jsx)(n, {
207
+ render: /* @__PURE__ */ (0, x.jsx)("button", {
208
+ type: "button",
209
+ onClick: t,
210
+ "aria-label": e ? "Resume animation" : "Pause animation",
211
+ className: l(A, r),
212
+ children: e ? /* @__PURE__ */ (0, x.jsx)(f, {
213
+ className: "ml-px h-3 w-3",
214
+ fill: "currentColor"
215
+ }) : /* @__PURE__ */ (0, x.jsx)(g, {
216
+ className: "h-2.5 w-2.5",
217
+ fill: "currentColor"
218
+ })
219
+ }),
220
+ nativeButton: !0
221
+ }), /* @__PURE__ */ (0, x.jsx)(a, {
222
+ side: "left",
223
+ children: /* @__PURE__ */ (0, x.jsx)("p", { children: e ? "Resume animation" : "Pause animation" })
224
+ })] });
225
+ }
226
+ //#endregion
227
+ //#region src/client/components/ui/blur-fade.tsx
228
+ function M({ children: e, className: t, variant: n, duration: i = .4, delay: a = 0, offset: o = 6, direction: s = "down", inView: c = !1, inViewMargin: l = "-50px", blur: d = "6px", ...f }) {
229
+ let p = (0, _.useRef)(null), m = b(p, {
230
+ once: !0,
231
+ margin: l
232
+ }), h = !c || m, g = {
233
+ hidden: {
234
+ [s === "left" || s === "right" ? "x" : "y"]: s === "right" || s === "down" ? -o : o,
235
+ opacity: 0,
236
+ filter: `blur(${d})`
237
+ },
238
+ visible: {
239
+ [s === "left" || s === "right" ? "x" : "y"]: 0,
240
+ opacity: 1,
241
+ filter: "blur(0px)"
242
+ }
243
+ }, v = n || g;
244
+ return /* @__PURE__ */ (0, x.jsx)(u, { children: /* @__PURE__ */ (0, x.jsx)(r.div, {
245
+ ref: p,
246
+ initial: "hidden",
247
+ animate: h ? "visible" : "hidden",
248
+ exit: "hidden",
249
+ variants: v,
250
+ transition: {
251
+ delay: .04 + a,
252
+ duration: i,
253
+ ease: "easeOut"
254
+ },
255
+ className: t,
256
+ ...f,
257
+ children: e
258
+ }) });
259
+ }
260
+ //#endregion
261
+ //#region src/client/hooks/useKeyboardShortcuts.ts
262
+ function N(e) {
263
+ (0, _.useEffect)(() => {
264
+ let t = (t) => {
265
+ let n = t.target, r = n.tagName === "INPUT" || n.tagName === "TEXTAREA" || n.contentEditable === "true";
266
+ if ((t.metaKey || t.ctrlKey) && t.key === "k") {
267
+ t.preventDefault(), e.onCommandPalette?.();
268
+ return;
269
+ }
270
+ if ((t.metaKey || t.ctrlKey) && t.key === "o" && e.onNewChat) {
271
+ t.preventDefault(), e.onNewChat();
272
+ return;
273
+ }
274
+ if (t.key === "Escape") {
275
+ t.preventDefault(), document.activeElement instanceof HTMLElement && document.activeElement.blur(), e.onBlurSearch?.();
276
+ return;
277
+ }
278
+ if (!r && !(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey)) switch (t.key.toLowerCase()) {
279
+ case "t":
280
+ t.preventDefault(), e.onToolsTab?.();
281
+ break;
282
+ case "p":
283
+ t.preventDefault(), e.onPromptsTab?.();
284
+ break;
285
+ case "r":
286
+ t.preventDefault(), e.onResourcesTab?.();
287
+ break;
288
+ case "c":
289
+ t.preventDefault(), e.onChatTab?.();
290
+ break;
291
+ case "h":
292
+ t.preventDefault(), e.onHome?.();
293
+ break;
294
+ case "f":
295
+ t.preventDefault(), e.onFocusSearch?.();
296
+ break;
297
+ default: break;
298
+ }
299
+ };
300
+ return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
301
+ }, [e]);
302
+ }
303
+ //#endregion
304
+ //#region src/client/hooks/useHostedSession.ts
305
+ function P(e) {
306
+ return p(e);
307
+ }
308
+ //#endregion
309
+ //#region src/client/components/chat/providerMeta.tsx
310
+ var F = "https://cdn.mcp-use.com/mcpuse_logo_circle_dark.svg";
311
+ function I({ symbolSize: e = 14, className: t, textClassName: n }) {
312
+ return /* @__PURE__ */ (0, x.jsxs)("span", {
313
+ className: l("inline-flex items-center gap-1.5", t),
314
+ children: [/* @__PURE__ */ (0, x.jsx)(L, { size: e }), /* @__PURE__ */ (0, x.jsx)("span", {
315
+ className: l("font-medium leading-none text-black [font-family:var(--font-family-outfit)]", n),
316
+ children: "Manufact"
317
+ })]
318
+ });
319
+ }
320
+ function L({ size: e = 14, className: t }) {
321
+ return /* @__PURE__ */ (0, x.jsxs)("svg", {
322
+ width: e,
323
+ height: e,
324
+ viewBox: "0 0 480 480",
325
+ "aria-hidden": !0,
326
+ className: l("block shrink-0", t),
327
+ children: [
328
+ /* @__PURE__ */ (0, x.jsx)("path", {
329
+ 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",
330
+ fill: "currentColor"
331
+ }),
332
+ /* @__PURE__ */ (0, x.jsx)("circle", {
333
+ cx: "96.4",
334
+ cy: "383.6",
335
+ r: "96.4",
336
+ fill: "currentColor"
337
+ }),
338
+ /* @__PURE__ */ (0, x.jsx)("circle", {
339
+ cx: "383.6",
340
+ cy: "96.4",
341
+ r: "96.4",
342
+ fill: "currentColor"
343
+ })
344
+ ]
345
+ });
346
+ }
347
+ var R = "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", z = {
348
+ openai: "OpenAI",
349
+ anthropic: "Anthropic",
350
+ google: "Google"
351
+ };
352
+ function B(e) {
353
+ let t = e.split("/")[0]?.toLowerCase();
354
+ return t === "openai" || t === "anthropic" || t === "google" ? t : "openrouter";
355
+ }
356
+ function V(e, t) {
357
+ let n = e.trim(), r = z[t];
358
+ if (r) {
359
+ let e = r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), t = RegExp(`^${e}\\s*:\\s*`, "i"), i = n.replace(t, "").trim();
360
+ if (i.length > 0) return i;
361
+ }
362
+ let i = n.indexOf(": ");
363
+ return i > 0 && i < 48 ? n.slice(i + 2).trim() : n;
364
+ }
365
+ function H({ provider: e, model: t, displayName: n, mode: r = "byok", className: i, ...a }) {
366
+ let o = n ?? t, s = r === "managed" && e === "openai-compatible" ? B(t) : e;
367
+ return /* @__PURE__ */ (0, x.jsxs)("button", {
368
+ type: "button",
369
+ className: l("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", i),
370
+ ...a,
371
+ children: [
372
+ r === "managed" ? /* @__PURE__ */ (0, x.jsx)("img", {
373
+ src: F,
374
+ alt: "Manufact",
375
+ className: "h-3.5 w-3.5 shrink-0 rounded-full object-cover"
376
+ }) : /* @__PURE__ */ (0, x.jsx)(h, {
377
+ className: "size-3 shrink-0 opacity-70",
378
+ "aria-hidden": !0
379
+ }),
380
+ /* @__PURE__ */ (0, x.jsx)(G, {
381
+ provider: s,
382
+ className: "shrink-0"
383
+ }),
384
+ /* @__PURE__ */ (0, x.jsx)("span", {
385
+ className: "whitespace-nowrap",
386
+ children: o
387
+ }),
388
+ /* @__PURE__ */ (0, x.jsx)(d, {
389
+ className: "size-3 shrink-0 opacity-60",
390
+ "aria-hidden": !0
391
+ })
392
+ ]
393
+ });
394
+ }
395
+ function U(e) {
396
+ switch (e) {
397
+ case "openai": return "OpenAI";
398
+ case "openai-compatible": return "OpenAI Compatible";
399
+ case "anthropic": return "Anthropic";
400
+ case "google": return "Google";
401
+ case "openrouter": return "OpenRouter";
402
+ case "ollama": return "Ollama";
403
+ default: return e;
404
+ }
405
+ }
406
+ function W(e, t) {
407
+ switch (e) {
408
+ case "openai":
409
+ case "anthropic":
410
+ case "google": return `https://inspector-cdn.mcp-use.com/providers/${e}.png`;
411
+ case "ollama": return `https://inspector-cdn.mcp-use.com/providers/${t === "dark" ? "ollama_dark" : "ollama_light"}.png`;
412
+ case "openrouter": return R;
413
+ case "openai-compatible": return null;
414
+ default: return null;
415
+ }
416
+ }
417
+ function G({ provider: e, className: t }) {
418
+ let { resolvedTheme: n } = m();
419
+ if (e === "openai-compatible") return null;
420
+ let r = W(e, n);
421
+ if (r) {
422
+ let n = e === "ollama" ? "h-3.5 w-3.5 object-contain" : "h-4 w-4 rounded-full object-cover";
423
+ return /* @__PURE__ */ (0, x.jsx)("img", {
424
+ src: r,
425
+ alt: U(e),
426
+ className: l(n, t)
427
+ });
428
+ }
429
+ return /* @__PURE__ */ (0, x.jsx)("div", {
430
+ "aria-label": U(e),
431
+ className: l("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),
432
+ children: U(e).charAt(0)
433
+ });
434
+ }
435
+ //#endregion
436
+ export { V as a, N as c, E as d, j as f, h as g, g as h, G as i, M as l, T as m, I as n, U as o, k as p, H as r, P as s, L as t, D as u };