@mcp-use/inspector 20.0.0-beta.0 → 20.0.0-beta.2

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 (204) hide show
  1. package/README.md +5 -0
  2. package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-Dcw-FOy8.js} +50 -50
  3. package/dist/cdn/ChatTab-DBl6dHVH.js +6744 -0
  4. package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-Bt4IICtv.js} +77 -77
  5. package/dist/cdn/{ConnectionSettingsForm-iwNW86ZU.js → ConnectionSettingsForm-BFsZpwK4.js} +348 -292
  6. package/dist/cdn/ConnectionSettingsTab-DDk06dhT.js +150 -0
  7. package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-CL1KJ0bz.js} +39 -39
  8. package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-tmgN_Vdr.js} +1 -1
  9. package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-UjtEbNod.js} +1 -21
  10. package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BFxf5oEu.js} +18 -18
  11. package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-Cv-GmtGF.js} +19 -19
  12. package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-B98kSYCj.js} +1 -1
  13. package/dist/cdn/MarkdownRenderer-DQflNTGo.js +3610 -0
  14. package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-CeImSrhx.js} +13 -13
  15. package/dist/cdn/{OAuthCallback-BxuOVgdb.js → OAuthCallback-C4n2hqKU.js} +1 -1
  16. package/dist/cdn/PromptsTab-C84YLTSM.js +901 -0
  17. package/dist/cdn/{ResourcesTab-BczUMFil.js → ResourcesTab-CCa5bIHE.js} +35 -55
  18. package/dist/cdn/{SamplingTab-6u5s845G.js → SamplingTab-Bt9z8yQ2.js} +35 -35
  19. package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-CvrKX8fz.js} +12 -12
  20. package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-D0-ARyOh.js} +6 -6
  21. package/dist/cdn/{ToolsTab-CUhwP4rZ.js → ToolsTab-v9zgWmM6.js} +103 -137
  22. package/dist/cdn/{ViewPreview-CxJc1Kht.js → ViewPreview-DsPwZAwO.js} +2 -2
  23. package/dist/cdn/{WidgetWrapper-BJJtLqMb.js → WidgetWrapper-CwlpDv17.js} +529 -530
  24. package/dist/cdn/card-DgiYnSg-.js +41 -0
  25. package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-By0FklhG.js} +6 -6
  26. package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-BsDpuJd3.js} +151 -151
  27. package/dist/cdn/{dist-mRDqCgKU.js → dist-B0eL32Gb.js} +114 -113
  28. package/dist/cdn/{dist-DjXr_YO3.js → dist-DaMB0Su9.js} +1 -1
  29. package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-QDjRGsPo.js} +1 -1
  30. package/dist/cdn/{input-BLxOA7V-.js → input-C2OBd4PJ.js} +4787 -2842
  31. package/dist/cdn/inspector.css +1 -1
  32. package/dist/cdn/inspector.js +7424 -7443
  33. package/dist/cdn/{label-CBvG613A.js → label-B9Jmm9be.js} +10 -10
  34. package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
  35. package/dist/cdn/{not-found-BcNNsTjS.js → not-found-DEtSM_Wd.js} +7 -7
  36. package/dist/cdn/providerMeta-BQIfHuNL.js +379 -0
  37. package/dist/cdn/{react-yUi9mVK4.js → react-Dn8PWXwP.js} +33 -27
  38. package/dist/cdn/{select-BZ_IoKxg.js → select-DDdiIPR2.js} +726 -726
  39. package/dist/cdn/{shared-uMiV6Fx1.js → shared-DaILIQPP.js} +29 -29
  40. package/dist/cdn/{popover-C_SSrXT0.js → sheet-Br_l2kry.js} +694 -622
  41. package/dist/cdn/{spinner-CWcJhIY_.js → spinner-jQtC7EBj.js} +5 -5
  42. package/dist/cdn/{switch-DtQOLb9R.js → switch-C3IyQuid.js} +104 -104
  43. package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-CkdI6Mac.js} +147 -147
  44. package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-DGoIGfIS.js} +3 -3
  45. package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-DSbwcFVt.js} +6 -6
  46. package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-DqAdnppm.js} +1 -1
  47. package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-BRqEzYh-.js} +2 -2
  48. package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-CTb6GZbt.js} +73 -46
  49. package/dist/cdn/{useViewHostProps-C7vjco2m.js → useViewHostProps-DIIlz3tJ.js} +1 -1
  50. package/dist/cli.js +141 -25
  51. package/dist/client/auth/manufact-auth.d.ts +3 -1
  52. package/dist/client/auth/manufact-auth.d.ts.map +1 -1
  53. package/dist/client/components/ChatTab.d.ts +1 -8
  54. package/dist/client/components/ChatTab.d.ts.map +1 -1
  55. package/dist/client/components/ResourcesTab.d.ts.map +1 -1
  56. package/dist/client/components/chat/ChatHeader.d.ts +7 -2
  57. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  58. package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
  59. package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
  60. package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
  61. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
  62. package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
  63. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
  64. package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
  65. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  66. package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
  67. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
  68. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
  69. package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
  70. package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
  71. package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
  72. package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
  73. package/dist/client/components/chat/providerMeta.d.ts +11 -0
  74. package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
  75. package/dist/client/components/chat/useChatMessages.d.ts +7 -5
  76. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  77. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
  78. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  79. package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
  80. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
  81. package/dist/client/components/chat/useConfig.d.ts +1 -1
  82. package/dist/client/components/chat/useConfig.d.ts.map +1 -1
  83. package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
  84. package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
  85. package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
  86. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
  87. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
  88. package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
  89. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
  90. package/dist/client/components/ui/chat-message.d.ts +1 -1
  91. package/dist/client/components/ui/chat-message.d.ts.map +1 -1
  92. package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
  93. package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
  94. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
  95. package/dist/client/context/InspectorContext.d.ts.map +1 -1
  96. package/dist/client/index.js +2577 -2165
  97. package/dist/client/telemetry/utils.d.ts.map +1 -1
  98. package/dist/server/asset-urls.d.ts +18 -0
  99. package/dist/server/asset-urls.d.ts.map +1 -0
  100. package/dist/server/asset-urls.js +17 -0
  101. package/dist/server/cdn-shell.d.ts +3 -3
  102. package/dist/server/cdn-shell.d.ts.map +1 -1
  103. package/dist/server/cdn-shell.js +5 -3
  104. package/dist/server/chunk-H6ZCIKBS.js +63 -0
  105. package/dist/server/{chunk-ESODOPDD.js → chunk-J4FNYLBF.js} +4 -0
  106. package/dist/server/{chunk-TPHRVELX.js → chunk-K2DPKTIS.js} +27 -9
  107. package/dist/server/{chunk-THQ67TSE.js → chunk-LIM6NAUS.js} +2 -9
  108. package/dist/server/chunk-M5TZA42I.js +54 -0
  109. package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
  110. package/dist/server/{chunk-J67FVPHF.js → chunk-R6RQMIXL.js} +2 -2
  111. package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
  112. package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
  113. package/dist/server/cli.js +8 -6
  114. package/dist/server/create-dev-api-app.js +3 -3
  115. package/dist/server/dev-callback-redirect.d.ts +3 -0
  116. package/dist/server/dev-callback-redirect.d.ts.map +1 -0
  117. package/dist/server/dev-callback-redirect.js +18 -0
  118. package/dist/server/favicon-static.d.ts.map +1 -1
  119. package/dist/server/favicon-static.js +1 -1
  120. package/dist/server/index.js +9 -7
  121. package/dist/server/middleware.js +9 -7
  122. package/dist/server/proxy/index.js +1 -1
  123. package/dist/server/proxy/mcp-proxy.d.ts +2 -0
  124. package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
  125. package/dist/server/proxy/mcp-proxy.js +3 -1
  126. package/dist/server/proxy-routes.js +2 -2
  127. package/dist/server/server.js +3 -3
  128. package/dist/server/static-assets.d.ts +5 -0
  129. package/dist/server/static-assets.d.ts.map +1 -0
  130. package/dist/server/static-assets.js +9 -0
  131. package/dist/server/version.js +1 -1
  132. package/dist/server/vite-dev-api-plugin.js +3 -3
  133. package/dist/web/assets/{AnimatePresence-CthXziG2.js → AnimatePresence-C5p0yiY1.js} +2 -2
  134. package/dist/web/assets/ChatTab-C2FtENBM.js +18 -0
  135. package/dist/web/assets/ConnectionSettingsTab-B2sUjytG.js +1 -0
  136. package/dist/web/assets/ElicitationTab-DwH08kDC.js +1 -0
  137. package/dist/web/assets/{FormContext-Cqc_A12u.js → FormContext-DH2caWKO.js} +1 -1
  138. package/dist/web/assets/ListTabHeader-R17w_JsB.js +1 -0
  139. package/dist/web/assets/{ManufactOAuthCallback-B-tdkUA2.js → ManufactOAuthCallback-Btu4B6u6.js} +1 -1
  140. package/dist/web/assets/MarkdownRenderer-DpIEt9wb.js +47 -0
  141. package/dist/web/assets/{NotificationsTab-BgLjxuos.js → NotificationsTab-CHB8mtSz.js} +1 -1
  142. package/dist/web/assets/{OAuthCallback-Bp-jLoQs.js → OAuthCallback-DV4MgX4Z.js} +1 -1
  143. package/dist/web/assets/PromptsTab-0GIapoSs.js +15 -0
  144. package/dist/web/assets/ResourcesTab-N9xjsI_b.js +2 -0
  145. package/dist/web/assets/SamplingTab-Dw0vpi4t.js +1 -0
  146. package/dist/web/assets/ServerMetadataTab-D-eQpLBF.js +1 -0
  147. package/dist/web/assets/ToolsTab-BMrMJ5JV.js +8 -0
  148. package/dist/web/assets/ViewPreview-N_cpEO0W.js +1 -0
  149. package/dist/web/assets/WidgetWrapper-pDgNVq9y.js +34 -0
  150. package/dist/web/assets/checkbox-CrnXSMh2.js +1 -0
  151. package/dist/web/assets/dist-CeWSydFI.js +21 -0
  152. package/dist/web/assets/index-Cfuv_gb3.js +475 -0
  153. package/dist/web/assets/index-fBX3akc8.css +1 -0
  154. package/dist/web/assets/input-CLYhA7PK.js +1 -0
  155. package/dist/web/assets/{label-B5Q_Zr8M.js → label-Cdim77Jw.js} +1 -1
  156. package/dist/web/assets/select-CJ57-Bor.js +1 -0
  157. package/dist/web/assets/shared-B1GD9FMm.js +1 -0
  158. package/dist/web/assets/{tabs-subtle-Dxgism9f.js → tabs-subtle-CG5cjC_N.js} +1 -1
  159. package/dist/web/assets/textarea-DLAmNVf_.js +1 -0
  160. package/dist/web/assets/useConfig-BTp15Lle.js +1 -0
  161. package/dist/web/assets/{useViewHostProps-BgsQ2yYl.js → useViewHostProps-BQlaFC2Q.js} +1 -1
  162. package/dist/web/index.html +8 -9
  163. package/package.json +5 -12
  164. package/dist/cdn/ChatTab-5ya_YTFV.js +0 -13218
  165. package/dist/cdn/ConnectionSettingsTab-CeK83dxn.js +0 -145
  166. package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
  167. package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
  168. package/dist/cdn/card-DqjqAq0o.js +0 -41
  169. package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
  170. package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
  171. package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
  172. package/dist/cdn/pdf-CxFT9FER.js +0 -16291
  173. package/dist/cdn/sheet-CerCdhxz.js +0 -78
  174. package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
  175. package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
  176. package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
  177. package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
  178. package/dist/web/assets/ChatTab-CiAqtqhj.js +0 -460
  179. package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +0 -1
  180. package/dist/web/assets/ElicitationTab-B3Eg0_Jm.js +0 -1
  181. package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
  182. package/dist/web/assets/PromptsTab-CA-SZs43.js +0 -61
  183. package/dist/web/assets/ResourcesTab-DdMIW_af.js +0 -2
  184. package/dist/web/assets/SamplingTab-DjyDG01W.js +0 -1
  185. package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +0 -1
  186. package/dist/web/assets/ToolsTab-BHk8GCmd.js +0 -8
  187. package/dist/web/assets/ViewPreview-DWtmwzCb.js +0 -1
  188. package/dist/web/assets/WidgetWrapper-B43lqbld.js +0 -34
  189. package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
  190. package/dist/web/assets/checkbox-_GzEPQic.js +0 -1
  191. package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.js +0 -131
  192. package/dist/web/assets/dist-DQjEDTKs.js +0 -21
  193. package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +0 -1
  194. package/dist/web/assets/index-Bbn-6QR2.js +0 -475
  195. package/dist/web/assets/index-BjH-Qp85.css +0 -1
  196. package/dist/web/assets/input-CjmxOFr6.js +0 -1
  197. package/dist/web/assets/mermaid-GHXKKRXX-yq1lkD3x.js +0 -1
  198. package/dist/web/assets/pdf-C3cfS_Ha.js +0 -54
  199. package/dist/web/assets/select-C0xlfLAa.js +0 -1
  200. package/dist/web/assets/shared-Dfwy7nyg.js +0 -1
  201. package/dist/web/assets/sheet-CRPrEqAa.js +0 -1
  202. package/dist/web/assets/textarea-Ci09-en6.js +0 -1
  203. package/dist/web/assets/useConfig-b1f_iVFH.js +0 -1
  204. package/dist/web/assets/useMCPPrompts-CPskz9af.js +0 -1
@@ -1,17 +1,17 @@
1
1
  import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { t as n } from "./jsx-runtime-CIxvMpEo.js";
3
- import { Pr as r, Rr as i, a, cr as o, f as s, n as c, r as l, sr as u, t as d, ur as f } from "./input-BLxOA7V-.js";
4
- import { t as p } from "./label-CBvG613A.js";
5
- import { t as m } from "./AnimatePresence-B4HhIdgq.js";
6
- import { a as h, i as g, n as _, r as v, t as y } from "./select-BZ_IoKxg.js";
2
+ import { Pr as n, Rr as r, a as i, cr as a, f as o, n as s, r as c, sr as l, t as u, ur as d } from "./input-C2OBd4PJ.js";
3
+ import { t as f } from "./jsx-runtime-CIxvMpEo.js";
4
+ import { t as p } from "./label-B9Jmm9be.js";
5
+ import { t as m } from "./AnimatePresence-Dcw-FOy8.js";
6
+ import { a as h, i as g, n as _, r as v, t as y } from "./select-DDdiIPR2.js";
7
7
  import { t as b } from "./createLucideIcon-C5fZZ6oB.js";
8
- import { A as x, _ as S, c as C, d as w, g as T, h as E, m as D, n as O, o as k, p as A, r as j, s as M, t as ee, v as N } from "./dialog-Dnl-pZsY.js";
9
- import { n as P, r as F, t as I } from "./WidgetWrapper-BJJtLqMb.js";
8
+ import { A as x, _ as S, c as C, d as w, g as T, h as E, m as D, n as O, o as k, p as A, r as j, s as M, t as ee, v as N } from "./dialog-BsDpuJd3.js";
9
+ import { n as P, r as F, t as I } from "./WidgetWrapper-CwlpDv17.js";
10
10
  import { a as L, i as R, t as z } from "./browser-CbQIH4w2.js";
11
11
  import { n as B, t as te } from "./zap-Mb-pbw2X.js";
12
12
  import { t as V } from "./code-V_0nf5rg.js";
13
- import { t as H } from "./JSONDisplay-D3RcyO9z.js";
14
- import { a as U, i as ne, n as W, o as re, r as G, s as ie } from "./shared-uMiV6Fx1.js";
13
+ import { t as H } from "./JSONDisplay-BFxf5oEu.js";
14
+ import { a as U, i as ne, n as W, o as re, r as G, s as ie } from "./shared-DaILIQPP.js";
15
15
  import { t as K } from "./history-Csw4rb44.js";
16
16
  import { t as ae } from "./maximize-BALCV_ep.js";
17
17
  import { n as oe, t as se } from "./save-Tgil_AJZ.js";
@@ -20,21 +20,21 @@ import { t as q } from "./play-vuZ5PLnI.js";
20
20
  import { t as ue } from "./trash-2-RwpJY5SL.js";
21
21
  import { t as de } from "./wrench-DzGmCfnb.js";
22
22
  import { t as fe } from "./x-C3vRQIYu.js";
23
- import { t as J } from "./switch-DtQOLb9R.js";
24
- import { t as pe } from "./not-found-BcNNsTjS.js";
25
- import { _ as me, t as he, v as ge } from "./telemetry-Ct6pVkM1.js";
26
- import { c as _e, o as ve, r as ye } from "./react-yUi9mVK4.js";
27
- import { n as be } from "./dist-DjXr_YO3.js";
28
- import { t as Y } from "./spinner-CWcJhIY_.js";
29
- import { n as xe } from "./InspectorContext-DzXtgyTx.js";
30
- import { t as Se } from "./textarea-Bj-CT7hC.js";
31
- import { t as Ce } from "./useViewHostProps-C7vjco2m.js";
32
- import { t as we } from "./ListTabHeader-8lULn-90.js";
23
+ import { t as J } from "./switch-C3IyQuid.js";
24
+ import { t as pe } from "./not-found-DEtSM_Wd.js";
25
+ import { _ as me, t as he, v as ge } from "./telemetry-DGoIGfIS.js";
26
+ import { c as _e, o as ve, r as ye } from "./react-Dn8PWXwP.js";
27
+ import { n as be } from "./dist-DaMB0Su9.js";
28
+ import { t as Y } from "./spinner-jQtC7EBj.js";
29
+ import { n as xe } from "./InspectorContext-UjtEbNod.js";
30
+ import { t as Se } from "./textarea-DSbwcFVt.js";
31
+ import { t as Ce } from "./useViewHostProps-DIIlz3tJ.js";
32
+ import { t as we } from "./ListTabHeader-Cv-GmtGF.js";
33
33
  var Te = b("chevron-up", [["path", {
34
34
  d: "m18 15-6-6-6 6",
35
35
  key: "153udz"
36
- }]]), X = /* @__PURE__ */ e(t(), 1), Z = n();
37
- function Ee({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteRequest: r, focusedIndex: i }) {
36
+ }]]), X = /* @__PURE__ */ e(t(), 1), Z = f();
37
+ function Ee({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteRequest: r, focusedIndex: a }) {
38
38
  if (e.length === 0) return /* @__PURE__ */ (0, Z.jsxs)("div", {
39
39
  className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
40
40
  children: [
@@ -52,12 +52,12 @@ function Ee({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteRe
52
52
  let o = (e, t) => {
53
53
  e.stopPropagation(), t();
54
54
  };
55
- return /* @__PURE__ */ (0, Z.jsx)("div", { children: e.map((e, s) => /* @__PURE__ */ (0, Z.jsxs)("div", {
55
+ return /* @__PURE__ */ (0, Z.jsx)("div", { children: e.map((e, u) => /* @__PURE__ */ (0, Z.jsxs)("div", {
56
56
  className: "relative group",
57
57
  children: [/* @__PURE__ */ (0, Z.jsx)(G, {
58
58
  id: `saved-${e.id}`,
59
59
  isSelected: t?.id === e.id,
60
- isFocused: i === s,
60
+ isFocused: a === u,
61
61
  title: e.name,
62
62
  description: e.toolName,
63
63
  metadata: /* @__PURE__ */ (0, Z.jsx)("div", {
@@ -70,8 +70,8 @@ function Ee({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteRe
70
70
  onClick: () => n(e)
71
71
  }), /* @__PURE__ */ (0, Z.jsx)("div", {
72
72
  className: "absolute top-1/2 right-2 -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity z-10",
73
- children: /* @__PURE__ */ (0, Z.jsxs)(c, { children: [/* @__PURE__ */ (0, Z.jsx)(a, {
74
- render: /* @__PURE__ */ (0, Z.jsx)(u, {
73
+ children: /* @__PURE__ */ (0, Z.jsxs)(s, { children: [/* @__PURE__ */ (0, Z.jsx)(i, {
74
+ render: /* @__PURE__ */ (0, Z.jsx)(l, {
75
75
  variant: "secondary",
76
76
  size: "sm",
77
77
  onClick: (t) => o(t, () => r(e.id)),
@@ -79,7 +79,7 @@ function Ee({ savedRequests: e, selectedRequest: t, onLoadRequest: n, onDeleteRe
79
79
  children: /* @__PURE__ */ (0, Z.jsx)(ue, { className: "h-4 w-4" })
80
80
  }),
81
81
  nativeButton: !0
82
- }), /* @__PURE__ */ (0, Z.jsx)(l, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Delete saved request" }) })] })
82
+ }), /* @__PURE__ */ (0, Z.jsx)(c, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Delete saved request" }) })] })
83
83
  })]
84
84
  }, e.id)) });
85
85
  }
@@ -100,7 +100,7 @@ function De({ isOpen: e, requestName: t, defaultPlaceholder: n, onRequestNameCha
100
100
  children: [/* @__PURE__ */ (0, Z.jsxs)("div", { children: [/* @__PURE__ */ (0, Z.jsx)(p, {
101
101
  htmlFor: "request-name",
102
102
  children: "Request Name (optional)"
103
- }), /* @__PURE__ */ (0, Z.jsx)(d, {
103
+ }), /* @__PURE__ */ (0, Z.jsx)(u, {
104
104
  id: "request-name",
105
105
  value: t,
106
106
  onChange: (e) => r(e.target.value),
@@ -112,11 +112,11 @@ function De({ isOpen: e, requestName: t, defaultPlaceholder: n, onRequestNameCha
112
112
  autoFocus: !0
113
113
  })] }), /* @__PURE__ */ (0, Z.jsxs)("div", {
114
114
  className: "flex justify-end gap-2",
115
- children: [/* @__PURE__ */ (0, Z.jsx)(u, {
115
+ children: [/* @__PURE__ */ (0, Z.jsx)(l, {
116
116
  variant: "outline",
117
117
  onClick: a,
118
118
  children: "Cancel"
119
- }), /* @__PURE__ */ (0, Z.jsxs)(u, {
119
+ }), /* @__PURE__ */ (0, Z.jsxs)(l, {
120
120
  onClick: i,
121
121
  children: [/* @__PURE__ */ (0, Z.jsx)(se, { className: "h-4 w-4 mr-2" }), "Save"]
122
122
  })]
@@ -251,13 +251,13 @@ function Fe(e) {
251
251
  //#endregion
252
252
  //#region src/client/components/tools/ToolInputForm.tsx
253
253
  function Ie({ selectedTool: e, toolArgs: t, onArgChange: n, onBulkPaste: r, autoFilledFields: i, setFields: a, sendEmptyFields: o, onToggleEmpty: s }) {
254
- let c = e?.inputSchema?.properties || {}, l = e?.inputSchema?.required || [], u = Object.keys(c).length > 0, f = async (e, t) => {
254
+ let c = e?.inputSchema?.properties || {}, l = e?.inputSchema?.required || [], d = Object.keys(c).length > 0, f = async (e, t) => {
255
255
  r && await r(e.clipboardData.getData("text"), t) && e.preventDefault();
256
256
  };
257
- return u ? /* @__PURE__ */ (0, Z.jsx)("div", {
257
+ return d ? /* @__PURE__ */ (0, Z.jsx)("div", {
258
258
  className: "space-y-4",
259
259
  children: Object.entries(c).map(([r, c]) => {
260
- let u = $(c, e?.inputSchema || {}), m = Ae(u), b = u.type === "string" && m !== null, x = u, S = l.includes(r), C = t[r], w = "";
260
+ let d = $(c, e?.inputSchema || {}), m = Ae(d), b = d.type === "string" && m !== null, x = d, S = l.includes(r), C = t[r], w = "";
261
261
  C != null && (w = typeof C == "string" ? C : typeof C == "object" && C ? JSON.stringify(C, null, 2) : String(C));
262
262
  let T = x.type === "object" || x.type === "array", E = T ? x.type === "array" ? "array" : "object" : "string", D = a?.has(r) ?? !0, O = s && (x.type === "string" || T);
263
263
  return T ? /* @__PURE__ */ (0, Z.jsxs)("div", {
@@ -353,7 +353,7 @@ function Ie({ selectedTool: e, toolArgs: t, onArgChange: n, onBulkPaste: r, auto
353
353
  title: "Send empty string"
354
354
  })]
355
355
  })]
356
- }), /* @__PURE__ */ (0, Z.jsx)(d, {
356
+ }), /* @__PURE__ */ (0, Z.jsx)(u, {
357
357
  id: r,
358
358
  "data-testid": `tool-param-${r}`,
359
359
  value: w,
@@ -372,7 +372,7 @@ function Ie({ selectedTool: e, toolArgs: t, onArgChange: n, onBulkPaste: r, auto
372
372
  }
373
373
  //#endregion
374
374
  //#region src/client/components/tools/ToolExecutionPanel.tsx
375
- function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, isConnected: s, onArgChange: d, onExecute: p, onSave: m, onCancel: h, onBulkPaste: g, autoFilledFields: _, setFields: v, sendEmptyFields: y, onToggleEmpty: b }) {
375
+ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: o, isConnected: u, onArgChange: f, onExecute: p, onSave: m, onCancel: h, onBulkPaste: g, autoFilledFields: _, setFields: v, sendEmptyFields: y, onToggleEmpty: b }) {
376
376
  let S = "hidden @[700px]/tool-exec:inline", w = "hidden @[700px]/tool-exec:inline shrink-0 text-[10px] leading-none border border-current/30 p-1 rounded-full", T = "max-[699px]/tool-exec:size-8 max-[699px]/tool-exec:min-w-8 max-[699px]/tool-exec:shrink-0 max-[699px]/tool-exec:gap-0 max-[699px]/tool-exec:rounded-full max-[699px]/tool-exec:px-0 max-[699px]/tool-exec:py-0", E = "max-[699px]/tool-exec:!pr-0", [D, A] = (0, X.useState)(!1), [N, P] = (0, X.useState)(!1), [F, I] = (0, X.useState)(!1), [B, te] = (0, X.useState)(!1), [U, ne] = (0, X.useState)(!1), W = (0, X.useRef)(null);
377
377
  return (0, X.useEffect)(() => {
378
378
  if (W.current && e?.description) {
@@ -381,13 +381,13 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
381
381
  }
382
382
  }, [e?.description]), (0, X.useEffect)(() => {
383
383
  let t = (t) => {
384
- (t.metaKey || t.ctrlKey) && t.key === "Enter" && e && !r && s && (t.preventDefault(), p()), t.key === "Escape" && r && h && (t.preventDefault(), h());
384
+ (t.metaKey || t.ctrlKey) && t.key === "Enter" && e && !o && u && (t.preventDefault(), p()), t.key === "Escape" && o && h && (t.preventDefault(), h());
385
385
  };
386
386
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
387
387
  }, [
388
388
  e,
389
- r,
390
- s,
389
+ o,
390
+ u,
391
391
  p,
392
392
  h
393
393
  ]), e ? /* @__PURE__ */ (0, Z.jsxs)("div", {
@@ -404,14 +404,14 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
404
404
  }), /* @__PURE__ */ (0, Z.jsxs)("div", {
405
405
  className: "flex gap-2 shrink-0",
406
406
  children: [
407
- /* @__PURE__ */ (0, Z.jsxs)(c, { children: [/* @__PURE__ */ (0, Z.jsx)(a, {
408
- render: /* @__PURE__ */ (0, Z.jsxs)(u, {
407
+ /* @__PURE__ */ (0, Z.jsxs)(s, { children: [/* @__PURE__ */ (0, Z.jsx)(i, {
408
+ render: /* @__PURE__ */ (0, Z.jsxs)(l, {
409
409
  "data-testid": "tool-execution-metadata-button",
410
410
  variant: N ? "default" : "outline",
411
411
  onClick: () => P(!N),
412
- disabled: r,
412
+ disabled: o,
413
413
  size: "sm",
414
- className: i(f, T),
414
+ className: r(d, T),
415
415
  title: "View tool metadata",
416
416
  children: [/* @__PURE__ */ (0, Z.jsx)(V, {}), /* @__PURE__ */ (0, Z.jsx)("span", {
417
417
  className: S,
@@ -419,9 +419,9 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
419
419
  })]
420
420
  }),
421
421
  nativeButton: !0
422
- }), /* @__PURE__ */ (0, Z.jsx)(l, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "View tool definition metadata" }) })] }),
423
- /* @__PURE__ */ (0, Z.jsxs)(c, { children: [/* @__PURE__ */ (0, Z.jsx)(a, {
424
- render: /* @__PURE__ */ (0, Z.jsxs)(u, {
422
+ }), /* @__PURE__ */ (0, Z.jsx)(c, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "View tool definition metadata" }) })] }),
423
+ /* @__PURE__ */ (0, Z.jsxs)(s, { children: [/* @__PURE__ */ (0, Z.jsx)(i, {
424
+ render: /* @__PURE__ */ (0, Z.jsxs)(l, {
425
425
  "data-testid": "tool-execution-copy-payload-button",
426
426
  variant: "outline",
427
427
  onClick: async () => {
@@ -429,9 +429,9 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
429
429
  await z(JSON.stringify(n ?? t, null, 2)), I(!0), setTimeout(() => I(!1), 2e3);
430
430
  } catch {}
431
431
  },
432
- disabled: r,
432
+ disabled: o,
433
433
  size: "sm",
434
- className: i(f, T),
434
+ className: r(d, T),
435
435
  title: "Copy payload as JSON",
436
436
  children: [F ? /* @__PURE__ */ (0, Z.jsx)(L, { className: "text-green-600" }) : /* @__PURE__ */ (0, Z.jsx)(R, {}), /* @__PURE__ */ (0, Z.jsx)("span", {
437
437
  className: S,
@@ -439,15 +439,15 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
439
439
  })]
440
440
  }),
441
441
  nativeButton: !0
442
- }), /* @__PURE__ */ (0, Z.jsx)(l, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Copy payload as JSON" }) })] }),
443
- /* @__PURE__ */ (0, Z.jsxs)(c, { children: [/* @__PURE__ */ (0, Z.jsx)(a, {
444
- render: /* @__PURE__ */ (0, Z.jsxs)(u, {
442
+ }), /* @__PURE__ */ (0, Z.jsx)(c, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Copy payload as JSON" }) })] }),
443
+ /* @__PURE__ */ (0, Z.jsxs)(s, { children: [/* @__PURE__ */ (0, Z.jsx)(i, {
444
+ render: /* @__PURE__ */ (0, Z.jsxs)(l, {
445
445
  "data-testid": "tool-execution-save-button",
446
446
  variant: "outline",
447
447
  onClick: m,
448
- disabled: r,
448
+ disabled: o,
449
449
  size: "sm",
450
- className: i(f, T),
450
+ className: r(d, T),
451
451
  title: "Save request",
452
452
  children: [/* @__PURE__ */ (0, Z.jsx)(se, {}), /* @__PURE__ */ (0, Z.jsx)("span", {
453
453
  className: S,
@@ -455,20 +455,20 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
455
455
  })]
456
456
  }),
457
457
  nativeButton: !0
458
- }), /* @__PURE__ */ (0, Z.jsx)(l, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Save request" }) })] }),
459
- r && h ? /* @__PURE__ */ (0, Z.jsxs)(c, {
458
+ }), /* @__PURE__ */ (0, Z.jsx)(c, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Save request" }) })] }),
459
+ o && h ? /* @__PURE__ */ (0, Z.jsxs)(s, {
460
460
  open: D ? void 0 : !1,
461
- children: [/* @__PURE__ */ (0, Z.jsx)(a, {
461
+ children: [/* @__PURE__ */ (0, Z.jsx)(i, {
462
462
  render: /* @__PURE__ */ (0, Z.jsx)("div", {
463
463
  onMouseEnter: () => A(!0),
464
464
  onMouseLeave: () => A(!1),
465
465
  className: "relative",
466
- children: /* @__PURE__ */ (0, Z.jsx)(u, {
466
+ children: /* @__PURE__ */ (0, Z.jsx)(l, {
467
467
  "data-testid": "tool-execution-cancel-button",
468
468
  onClick: h,
469
469
  variant: D ? "destructive" : "default",
470
470
  size: "sm",
471
- className: i(o, T, E, "transition-all"),
471
+ className: r(a, T, E, "transition-all"),
472
472
  children: D ? /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [
473
473
  /* @__PURE__ */ (0, Z.jsx)(fe, {}),
474
474
  /* @__PURE__ */ (0, Z.jsx)("span", {
@@ -486,14 +486,14 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
486
486
  })
487
487
  }),
488
488
  nativeButton: !1
489
- }), /* @__PURE__ */ (0, Z.jsx)(l, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Hover to cancel (or press Esc)" }) })]
490
- }) : /* @__PURE__ */ (0, Z.jsx)(u, {
489
+ }), /* @__PURE__ */ (0, Z.jsx)(c, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "Hover to cancel (or press Esc)" }) })]
490
+ }) : /* @__PURE__ */ (0, Z.jsx)(l, {
491
491
  "data-testid": "tool-execution-execute-button",
492
492
  onClick: p,
493
- disabled: r || !s,
493
+ disabled: o || !u,
494
494
  size: "sm",
495
- className: i(o, T, E),
496
- children: r ? /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [/* @__PURE__ */ (0, Z.jsx)(Y, {}), /* @__PURE__ */ (0, Z.jsx)("span", {
495
+ className: r(a, T, E),
496
+ children: o ? /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [/* @__PURE__ */ (0, Z.jsx)(Y, {}), /* @__PURE__ */ (0, Z.jsx)("span", {
497
497
  className: S,
498
498
  children: "Executing..."
499
499
  })] }) : /* @__PURE__ */ (0, Z.jsxs)(Z.Fragment, { children: [
@@ -535,7 +535,7 @@ function Le({ selectedTool: e, toolArgs: t, payloadToSend: n, isExecuting: r, is
535
535
  }), /* @__PURE__ */ (0, Z.jsx)(Ie, {
536
536
  selectedTool: e,
537
537
  toolArgs: t,
538
- onArgChange: d,
538
+ onArgChange: f,
539
539
  onBulkPaste: g,
540
540
  autoFilledFields: _,
541
541
  setFields: v,
@@ -877,9 +877,9 @@ function Ue({ serverId: e, viewId: t, toolName: n, resourceUri: r, toolInput: i,
877
877
  });
878
878
  }
879
879
  function We({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy: i, onMaximize: a, isMaximized: o = !1, onRerunTool: s }) {
880
- let [c, l] = (0, X.useState)(0), [d, f] = (0, X.useState)(!0), [p, m] = (0, X.useState)(null), [h, b] = (0, X.useState)("inline"), [x, S] = (0, X.useState)(null), C = (0, X.useRef)(!1), w = e[0], T = w ? e.filter((e) => e.toolName === w.toolName) : [], E = T[c] || T[0], D = e.findIndex((e) => e === E), O = (E ? E.error || Be(E.result) : null) ?? (E == null ? "" : JSON.stringify(E.result, null, 2));
880
+ let [c, u] = (0, X.useState)(0), [d, f] = (0, X.useState)(!0), [p, m] = (0, X.useState)(null), [h, b] = (0, X.useState)("inline"), [x, S] = (0, X.useState)(null), C = (0, X.useRef)(!1), w = e[0], T = w ? e.filter((e) => e.toolName === w.toolName) : [], E = T[c] || T[0], D = e.findIndex((e) => e === E), O = (E ? E.error || Be(E.result) : null) ?? (E == null ? "" : JSON.stringify(E.result, null, 2));
881
881
  (0, X.useEffect)(() => {
882
- T.length > 0 && c >= T.length && l(0);
882
+ T.length > 0 && c >= T.length && u(0);
883
883
  }, [T.length, c]), (0, X.useEffect)(() => {
884
884
  C.current = !1, m(null);
885
885
  }, [w?.toolName]);
@@ -986,7 +986,7 @@ function We({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy:
986
986
  /* @__PURE__ */ (0, Z.jsxs)("div", {
987
987
  className: "ml-auto flex items-center gap-1",
988
988
  children: [
989
- o && s && /* @__PURE__ */ (0, Z.jsxs)(u, {
989
+ o && s && /* @__PURE__ */ (0, Z.jsxs)(l, {
990
990
  "data-testid": "tool-result-rerun",
991
991
  variant: "ghost",
992
992
  size: "sm",
@@ -997,7 +997,7 @@ function We({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy:
997
997
  children: "Re-run"
998
998
  })]
999
999
  }),
1000
- F && a && /* @__PURE__ */ (0, Z.jsx)(u, {
1000
+ F && a && /* @__PURE__ */ (0, Z.jsx)(l, {
1001
1001
  "data-testid": "tool-result-maximize",
1002
1002
  variant: "ghost",
1003
1003
  size: "sm",
@@ -1007,7 +1007,7 @@ function We({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy:
1007
1007
  }),
1008
1008
  T.length > 1 && /* @__PURE__ */ (0, Z.jsxs)(y, {
1009
1009
  value: c.toString(),
1010
- onValueChange: (e) => l(parseInt(e)),
1010
+ onValueChange: (e) => u(parseInt(e)),
1011
1011
  children: [/* @__PURE__ */ (0, Z.jsx)(g, {
1012
1012
  className: "w-[140px] h-8 text-xs",
1013
1013
  leading: /* @__PURE__ */ (0, Z.jsxs)("div", {
@@ -1033,7 +1033,7 @@ function We({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy:
1033
1033
  })
1034
1034
  }, t)) })]
1035
1035
  }),
1036
- /* @__PURE__ */ (0, Z.jsx)(u, {
1036
+ /* @__PURE__ */ (0, Z.jsx)(l, {
1037
1037
  "data-testid": `tool-result-copy-${D}`,
1038
1038
  variant: "ghost",
1039
1039
  size: "sm",
@@ -1150,7 +1150,7 @@ function We({ results: e, copiedResult: t, serverId: n, readResource: r, onCopy:
1150
1150
  }
1151
1151
  //#endregion
1152
1152
  //#region src/client/components/tools/ToolsList.tsx
1153
- function Ge({ tools: e, selectedTool: t, onToolSelect: n, focusedIndex: i }) {
1153
+ function Ge({ tools: e, selectedTool: t, onToolSelect: r, focusedIndex: a }) {
1154
1154
  if (e.length === 0) return /* @__PURE__ */ (0, Z.jsxs)("div", {
1155
1155
  className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
1156
1156
  children: [/* @__PURE__ */ (0, Z.jsx)(de, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, Z.jsx)("p", {
@@ -1159,30 +1159,30 @@ function Ge({ tools: e, selectedTool: t, onToolSelect: n, focusedIndex: i }) {
1159
1159
  })]
1160
1160
  });
1161
1161
  let o = e.some((e) => e.inputSchema?.properties && Object.keys(e.inputSchema.properties).length > 0);
1162
- return /* @__PURE__ */ (0, Z.jsx)("div", { children: e.map((e, s) => {
1163
- let u = e._meta, d = _e(u) ? "mcp-apps" : null, f = e.inputSchema?.properties, p = f ? Object.keys(f).length : 0, m = o && p > 0 && /* @__PURE__ */ (0, Z.jsxs)(r, {
1162
+ return /* @__PURE__ */ (0, Z.jsx)("div", { children: e.map((e, l) => {
1163
+ let u = e._meta, d = _e(u) ? "mcp-apps" : null, f = e.inputSchema?.properties, p = f ? Object.keys(f).length : 0, m = o && p > 0 && /* @__PURE__ */ (0, Z.jsxs)(n, {
1164
1164
  variant: "outline",
1165
1165
  className: "text-xs border-gray-300 dark:border-zinc-600 text-gray-600 dark:text-gray-400",
1166
1166
  children: [p, " params"]
1167
1167
  }), h = d === "mcp-apps" || m ? /* @__PURE__ */ (0, Z.jsxs)("div", {
1168
1168
  className: "flex items-center gap-1.5",
1169
- children: [d === "mcp-apps" && /* @__PURE__ */ (0, Z.jsxs)(c, { children: [/* @__PURE__ */ (0, Z.jsx)(a, {
1169
+ children: [d === "mcp-apps" && /* @__PURE__ */ (0, Z.jsxs)(s, { children: [/* @__PURE__ */ (0, Z.jsx)(i, {
1170
1170
  render: /* @__PURE__ */ (0, Z.jsx)("span", {
1171
1171
  className: "inline-flex",
1172
1172
  children: /* @__PURE__ */ (0, Z.jsx)(ce, { className: "h-3.5 w-3.5" })
1173
1173
  }),
1174
1174
  nativeButton: !1
1175
- }), /* @__PURE__ */ (0, Z.jsx)(l, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "UI widget" }) })] }), m]
1175
+ }), /* @__PURE__ */ (0, Z.jsx)(c, { children: /* @__PURE__ */ (0, Z.jsx)("p", { children: "UI widget" }) })] }), m]
1176
1176
  }) : void 0;
1177
1177
  return /* @__PURE__ */ (0, Z.jsx)(G, {
1178
1178
  id: `tool-${e.name}`,
1179
1179
  "data-testid": `tool-item-${e.name}`,
1180
1180
  isSelected: t?.name === e.name,
1181
- isFocused: i === s,
1181
+ isFocused: a === l,
1182
1182
  title: e.name,
1183
1183
  description: e.description,
1184
1184
  metadata: h,
1185
- onClick: () => n(e)
1185
+ onClick: () => r(e)
1186
1186
  }, e.name);
1187
1187
  }) });
1188
1188
  }
@@ -1208,7 +1208,7 @@ function Je({ ...e }) {
1208
1208
  function Ye({ className: e, ...t }) {
1209
1209
  return /* @__PURE__ */ (0, Z.jsx)(N, {
1210
1210
  "data-slot": "alert-dialog-overlay",
1211
- className: i("fixed inset-0 isolate z-50 bg-black/50 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
1211
+ className: r("fixed inset-0 isolate z-50 bg-black/50 duration-100 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", e),
1212
1212
  ...t
1213
1213
  });
1214
1214
  }
@@ -1216,54 +1216,54 @@ function Xe({ className: e, size: t = "default", ...n }) {
1216
1216
  return /* @__PURE__ */ (0, Z.jsxs)(Je, { children: [/* @__PURE__ */ (0, Z.jsx)(Ye, {}), /* @__PURE__ */ (0, Z.jsx)(E, {
1217
1217
  "data-slot": "alert-dialog-content",
1218
1218
  "data-size": t,
1219
- className: i("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
1219
+ className: r("group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", e),
1220
1220
  ...n
1221
1221
  })] });
1222
1222
  }
1223
1223
  function Ze({ className: e, ...t }) {
1224
1224
  return /* @__PURE__ */ (0, Z.jsx)("div", {
1225
1225
  "data-slot": "alert-dialog-header",
1226
- className: i("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
1226
+ className: r("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", e),
1227
1227
  ...t
1228
1228
  });
1229
1229
  }
1230
1230
  function Qe({ className: e, ...t }) {
1231
1231
  return /* @__PURE__ */ (0, Z.jsx)("div", {
1232
1232
  "data-slot": "alert-dialog-footer",
1233
- className: i("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
1233
+ className: r("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", e),
1234
1234
  ...t
1235
1235
  });
1236
1236
  }
1237
1237
  function $e({ className: e, ...t }) {
1238
1238
  return /* @__PURE__ */ (0, Z.jsx)(w, {
1239
1239
  "data-slot": "alert-dialog-title",
1240
- className: i("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
1240
+ className: r("text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", e),
1241
1241
  ...t
1242
1242
  });
1243
1243
  }
1244
1244
  function et({ className: e, ...t }) {
1245
1245
  return /* @__PURE__ */ (0, Z.jsx)(T, {
1246
1246
  "data-slot": "alert-dialog-description",
1247
- className: i("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
1247
+ className: r("text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
1248
1248
  ...t
1249
1249
  });
1250
1250
  }
1251
1251
  function tt({ className: e, ...t }) {
1252
- return /* @__PURE__ */ (0, Z.jsx)(u, {
1252
+ return /* @__PURE__ */ (0, Z.jsx)(l, {
1253
1253
  "data-slot": "alert-dialog-action",
1254
- className: i(e),
1254
+ className: r(e),
1255
1255
  ...t
1256
1256
  });
1257
1257
  }
1258
- function nt({ className: e, variant: t = "outline", size: n = "default", ...r }) {
1258
+ function nt({ className: e, variant: t = "outline", size: n = "default", ...i }) {
1259
1259
  return /* @__PURE__ */ (0, Z.jsx)(S, {
1260
1260
  "data-slot": "alert-dialog-cancel",
1261
- className: i(e),
1262
- render: /* @__PURE__ */ (0, Z.jsx)(u, {
1261
+ className: r(e),
1262
+ render: /* @__PURE__ */ (0, Z.jsx)(l, {
1263
1263
  variant: t,
1264
1264
  size: n
1265
1265
  }),
1266
- ...r
1266
+ ...i
1267
1267
  });
1268
1268
  }
1269
1269
  //#endregion
@@ -1454,44 +1454,10 @@ function it({ ref: e, activeTab: t, filteredTools: n, savedRequests: r, searchQu
1454
1454
  r,
1455
1455
  t
1456
1456
  ]), (0, X.useEffect)(() => {
1457
- if (fetch("http://127.0.0.1:7371/ingest/4e7482c5-571f-4071-bd09-762c357289f4", {
1458
- method: "POST",
1459
- headers: {
1460
- "Content-Type": "application/json",
1461
- "X-Debug-Session-Id": "831b88"
1462
- },
1463
- body: JSON.stringify({
1464
- sessionId: "831b88",
1465
- location: "useToolsTabNavigation.ts:auto-select",
1466
- message: "tools auto-select effect",
1467
- data: {
1468
- selectedToolName: f,
1469
- toolsCount: p.length,
1470
- toolNames: p.slice(0, 5).map((e) => e.name),
1471
- toolFound: f ? !!p.find((e) => e.name === f) : !1,
1472
- currentSelected: o?.name ?? null
1473
- },
1474
- timestamp: Date.now(),
1475
- hypothesisId: "H2"
1476
- })
1477
- }).catch(() => {}), !f || p.length === 0) return;
1457
+ if (!f || p.length === 0) return;
1478
1458
  let e = p.find((e) => e.name === f);
1479
1459
  if (e) {
1480
- fetch("http://127.0.0.1:7371/ingest/4e7482c5-571f-4071-bd09-762c357289f4", {
1481
- method: "POST",
1482
- headers: {
1483
- "Content-Type": "application/json",
1484
- "X-Debug-Session-Id": "831b88"
1485
- },
1486
- body: JSON.stringify({
1487
- sessionId: "831b88",
1488
- location: "useToolsTabNavigation.ts:auto-select-apply",
1489
- message: "scheduling handleToolSelect",
1490
- data: { toolName: e.name },
1491
- timestamp: Date.now(),
1492
- hypothesisId: "H4"
1493
- })
1494
- }).catch(() => {}), m(null);
1460
+ m(null);
1495
1461
  let t = setTimeout(() => {
1496
1462
  l(e), document.getElementById(`tool-${e.name}`)?.scrollIntoView({
1497
1463
  behavior: "smooth",
@@ -1520,8 +1486,8 @@ function it({ ref: e, activeTab: t, filteredTools: n, savedRequests: r, searchQu
1520
1486
  }
1521
1487
  //#endregion
1522
1488
  //#region src/client/components/ToolsTab.tsx
1523
- function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isConnected: a, refreshTools: o }) {
1524
- let [c, l] = (0, X.useState)(null), [d, f] = (0, X.useState)(null), { selectedToolName: p, setSelectedToolName: h } = xe(), [g, _] = (0, X.useState)({}), [v, y] = (0, X.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, X.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, X.useState)(""), [w, T] = (0, X.useState)("tools"), { savedRequests: E, saveSavedRequests: D } = le(), [O, k] = (0, X.useState)(!1), [A, j] = (0, X.useState)(""), [M, ee] = (0, X.useState)(!1), [N, P] = (0, X.useState)({
1489
+ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isConnected: a, refreshTools: s }) {
1490
+ let [c, u] = (0, X.useState)(null), [d, f] = (0, X.useState)(null), { selectedToolName: p, setSelectedToolName: h } = xe(), [g, _] = (0, X.useState)({}), [v, y] = (0, X.useState)(/* @__PURE__ */ new Set()), [b, x] = (0, X.useState)(/* @__PURE__ */ new Set()), [S, C] = (0, X.useState)(""), [w, T] = (0, X.useState)("tools"), { savedRequests: E, saveSavedRequests: D } = le(), [O, k] = (0, X.useState)(!1), [A, j] = (0, X.useState)(""), [M, ee] = (0, X.useState)(!1), [N, P] = (0, X.useState)({
1525
1491
  open: !1,
1526
1492
  parsedObject: {},
1527
1493
  fieldsToUpdate: [],
@@ -1538,7 +1504,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1538
1504
  let e = S.toLowerCase();
1539
1505
  return t.filter((t) => t.name.toLowerCase().includes(e) || t.description?.toLowerCase().includes(e));
1540
1506
  }, [t, S]), H = (0, X.useCallback)((e) => {
1541
- l(e);
1507
+ u(e);
1542
1508
  let t = {}, n = /* @__PURE__ */ new Set();
1543
1509
  e.inputSchema?.properties && Object.entries(e.inputSchema.properties).forEach(([e, r]) => {
1544
1510
  let i = r;
@@ -1546,12 +1512,12 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1546
1512
  }), _(t), y(n), x(/* @__PURE__ */ new Set());
1547
1513
  }, []), G = (0, X.useCallback)((e) => {
1548
1514
  let n = t.find((t) => t.name === e.toolName);
1549
- n && (l(n), _(e.args), y(new Set(Object.keys(e.args))), x(/* @__PURE__ */ new Set()), f(e));
1515
+ n && (u(n), _(e.args), y(new Set(Object.keys(e.args))), x(/* @__PURE__ */ new Set()), f(e));
1550
1516
  }, [t]);
1551
1517
  (0, X.useEffect)(() => {
1552
1518
  if (c) {
1553
1519
  let e = t.find((e) => e.name === c.name);
1554
- e ? e !== c && (JSON.stringify(e.inputSchema) !== JSON.stringify(c.inputSchema) || e.description !== c.description || JSON.stringify(e?._meta) !== JSON.stringify(c?._meta)) && l(e) : (l(null), h(null));
1520
+ e ? e !== c && (JSON.stringify(e.inputSchema) !== JSON.stringify(c.inputSchema) || e.description !== c.description || JSON.stringify(e?._meta) !== JSON.stringify(c?._meta)) && u(e) : (u(null), h(null));
1555
1521
  }
1556
1522
  }, [
1557
1523
  t,
@@ -1670,7 +1636,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1670
1636
  isExecuting: ue,
1671
1637
  handleToolSelect: H,
1672
1638
  loadSavedRequest: G,
1673
- refreshTools: o,
1639
+ refreshTools: s,
1674
1640
  selectedToolName: p,
1675
1641
  tools: t,
1676
1642
  setSelectedToolName: h
@@ -1710,11 +1676,11 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1710
1676
  children: [
1711
1677
  Q !== "list" && /* @__PURE__ */ (0, Z.jsxs)("div", {
1712
1678
  className: "flex items-center gap-2 p-2 border-b shrink-0 bg-background z-10",
1713
- children: [/* @__PURE__ */ (0, Z.jsx)(u, {
1679
+ children: [/* @__PURE__ */ (0, Z.jsx)(l, {
1714
1680
  variant: "ghost",
1715
1681
  size: "sm",
1716
1682
  onClick: () => {
1717
- Q === "response" ? $("detail") : (l(null), $("list"));
1683
+ Q === "response" ? $("detail") : (u(null), $("list"));
1718
1684
  },
1719
1685
  className: "p-0 h-8 w-8",
1720
1686
  children: /* @__PURE__ */ (0, Z.jsx)(B, { className: "h-4 w-4" })
@@ -1723,7 +1689,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1723
1689
  children: [
1724
1690
  /* @__PURE__ */ (0, Z.jsx)("button", {
1725
1691
  onClick: () => {
1726
- l(null), $("list");
1692
+ u(null), $("list");
1727
1693
  },
1728
1694
  className: "text-muted-foreground hover:text-foreground hover:underline cursor-pointer",
1729
1695
  children: "Tools"
@@ -1754,7 +1720,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1754
1720
  initial: !1,
1755
1721
  mode: "popLayout",
1756
1722
  children: [
1757
- Q === "list" && /* @__PURE__ */ (0, Z.jsx)(s.div, {
1723
+ Q === "list" && /* @__PURE__ */ (0, Z.jsx)(o.div, {
1758
1724
  initial: { x: "-100%" },
1759
1725
  animate: { x: 0 },
1760
1726
  exit: { x: "-100%" },
@@ -1783,7 +1749,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1783
1749
  onSearchBlur: je,
1784
1750
  onTabSwitch: () => T(w === "tools" ? "saved" : "tools"),
1785
1751
  searchInputRef: Te,
1786
- onRefresh: o ? Pe : void 0,
1752
+ onRefresh: s ? Pe : void 0,
1787
1753
  isRefreshing: Ae
1788
1754
  }), w === "tools" ? /* @__PURE__ */ (0, Z.jsx)(Ge, {
1789
1755
  tools: V,
@@ -1798,7 +1764,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1798
1764
  focusedIndex: Ce
1799
1765
  })] }) })
1800
1766
  }, "list"),
1801
- Q === "detail" && /* @__PURE__ */ (0, Z.jsx)(s.div, {
1767
+ Q === "detail" && /* @__PURE__ */ (0, Z.jsx)(o.div, {
1802
1768
  initial: { x: "100%" },
1803
1769
  animate: { x: 0 },
1804
1770
  exit: { x: "-100%" },
@@ -1824,7 +1790,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1824
1790
  onToggleEmpty: ae
1825
1791
  })
1826
1792
  }, "detail"),
1827
- Q === "response" && /* @__PURE__ */ (0, Z.jsx)(s.div, {
1793
+ Q === "response" && /* @__PURE__ */ (0, Z.jsx)(o.div, {
1828
1794
  initial: { x: "100%" },
1829
1795
  animate: { x: 0 },
1830
1796
  exit: { x: "100%" },
@@ -1938,7 +1904,7 @@ function at({ ref: e, tools: t, callTool: n, readResource: r, serverId: i, isCon
1938
1904
  onSearchBlur: je,
1939
1905
  onTabSwitch: () => T(w === "tools" ? "saved" : "tools"),
1940
1906
  searchInputRef: Te,
1941
- onRefresh: o ? Pe : void 0,
1907
+ onRefresh: s ? Pe : void 0,
1942
1908
  isRefreshing: Ae
1943
1909
  }), w === "tools" ? /* @__PURE__ */ (0, Z.jsx)(Ge, {
1944
1910
  tools: V,
@@ -1,9 +1,9 @@
1
1
  import { s as e, t } from "./react-BIs9pQ3H.js";
2
2
  import { t as n } from "./jsx-runtime-CIxvMpEo.js";
3
- import { d as r, r as i } from "./react-yUi9mVK4.js";
3
+ import { d as r, r as i } from "./react-Dn8PWXwP.js";
4
4
  import { t as a } from "./basePath-B8HuhIMu.js";
5
5
  import { c as o, s } from "./chunk-QUQL4437-XnDcYQEx.js";
6
- import { t as c } from "./useViewHostProps-C7vjco2m.js";
6
+ import { t as c } from "./useViewHostProps-DIIlz3tJ.js";
7
7
  //#region src/client/components/ViewPreview.tsx
8
8
  var l = /* @__PURE__ */ e(t(), 1), u = n(), d = "preview-default";
9
9
  function f(e) {