@mcp-use/inspector 20.0.0-beta.1 → 20.0.0-beta.11

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 (276) hide show
  1. package/README.md +7 -18
  2. package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-D1bZ5_-l.js} +80 -79
  3. package/dist/cdn/ChatTab-KJDI5ycl.js +6811 -0
  4. package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-BjF73mGX.js} +74 -73
  5. package/dist/cdn/ConnectionSettingsForm-CAvpobCm.js +929 -0
  6. package/dist/cdn/ConnectionSettingsTab-Nhdvdpk5.js +151 -0
  7. package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-PEmEDvC5.js} +48 -47
  8. package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-NtUiZclE.js} +26 -26
  9. package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-BBKCdfmK.js} +2 -22
  10. package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BJqMz7Ny.js} +23 -23
  11. package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-DzmTtN1e.js} +21 -20
  12. package/dist/cdn/{WidgetWrapper-D29YDxIu.js → MCPAppsDebugControls-BIiauZ_A.js} +583 -620
  13. package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-ChbbjFIT.js} +3 -3
  14. package/dist/cdn/MarkdownRenderer-DZuWYsja.js +3610 -0
  15. package/dist/cdn/McpAppsViewPanel-BTOKcnV3.js +56 -0
  16. package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-B7uebqMV.js} +13 -13
  17. package/dist/cdn/{OAuthCallback-k3oeLtIC.js → OAuthCallback-CBWWNg2N.js} +3 -3
  18. package/dist/cdn/PromptsTab-DuP66kUg.js +902 -0
  19. package/dist/cdn/{ResourcesTab-KfamsM6-.js → ResourcesTab-BJxaJgKU.js} +106 -124
  20. package/dist/cdn/{SamplingTab-vcufuK24.js → SamplingTab-Bfnd-TZ-.js} +43 -42
  21. package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-BM3VhSLf.js} +14 -14
  22. package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-Q3n3YRtE.js} +8 -9
  23. package/dist/cdn/{ToolsTab-DRjcZnpu.js → ToolsTab-DGBRXBW-.js} +671 -693
  24. package/dist/cdn/{ViewPreview-B_onhcUB.js → ViewPreview-DPWKMeND.js} +5 -4
  25. package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
  26. package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
  27. package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
  28. package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
  29. package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
  30. package/dist/cdn/button-CB4uOoUV.js +2509 -0
  31. package/dist/cdn/{card-DqjqAq0o.js → card-BA-DQk-G.js} +2 -2
  32. package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-kwVa4gRX.js} +4 -4
  33. package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
  34. package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
  35. package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
  36. package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-CJGnC5Ag.js} +165 -165
  37. package/dist/cdn/{dist-mRDqCgKU.js → dist-BgB6gR-d.js} +116 -114
  38. package/dist/cdn/{dist-DjXr_YO3.js → dist-CTJnCYmk.js} +1 -1
  39. package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
  40. package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
  41. package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
  42. package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
  43. package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
  44. package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-Ds41Irtb.js} +120 -201
  45. package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
  46. package/dist/cdn/{input-BLxOA7V-.js → input-BCpgLXU1.js} +3039 -3600
  47. package/dist/cdn/inspector.css +1 -1
  48. package/dist/cdn/inspector.js +7797 -7857
  49. package/dist/cdn/{label-CBvG613A.js → label-A0UGV8FE.js} +8 -8
  50. package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
  51. package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
  52. package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
  53. package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
  54. package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
  55. package/dist/cdn/{not-found-BcNNsTjS.js → not-found-BajFyZpp.js} +4 -6
  56. package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
  57. package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
  58. package/dist/cdn/{react-BxO-uEDZ.js → react-BtzXvzGh.js} +855 -853
  59. package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
  60. package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
  61. package/dist/cdn/{select-BZ_IoKxg.js → select-CCFHjOGk.js} +843 -842
  62. package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
  63. package/dist/cdn/{shared-uMiV6Fx1.js → shared-CJVHJhag.js} +35 -35
  64. package/dist/cdn/sheet-oyq1mIyg.js +2078 -0
  65. package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
  66. package/dist/cdn/{spinner-CWcJhIY_.js → spinner-Be1GlSGX.js} +3 -3
  67. package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
  68. package/dist/cdn/{switch-DtQOLb9R.js → switch-DHXEA_N5.js} +211 -210
  69. package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-Dubd6Kj8.js} +259 -258
  70. package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-B6Xh2ktb.js} +38 -70
  71. package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-CwmI8_uI.js} +2 -2
  72. package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
  73. package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
  74. package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-Dhnm-7el.js} +3 -3
  75. package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-CLBnK-B4.js} +73 -46
  76. package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
  77. package/dist/cdn/{useViewHostProps-Dr6W2ooF.js → useViewHostProps-DRWpI0-w.js} +124 -108
  78. package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
  79. package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
  80. package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
  81. package/dist/cli.js +87 -14
  82. package/dist/client/auth/manufact-auth.d.ts +3 -1
  83. package/dist/client/auth/manufact-auth.d.ts.map +1 -1
  84. package/dist/client/components/ChatTab.d.ts +1 -8
  85. package/dist/client/components/ChatTab.d.ts.map +1 -1
  86. package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
  87. package/dist/client/components/ResourcesTab.d.ts.map +1 -1
  88. package/dist/client/components/ToolsTab.d.ts.map +1 -1
  89. package/dist/client/components/chat/ChatHeader.d.ts +7 -2
  90. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  91. package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
  92. package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
  93. package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
  94. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
  95. package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
  96. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
  97. package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
  98. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  99. package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
  100. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
  101. package/dist/client/components/chat/MessageList.d.ts +1 -0
  102. package/dist/client/components/chat/MessageList.d.ts.map +1 -1
  103. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
  104. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
  105. package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
  106. package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
  107. package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
  108. package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
  109. package/dist/client/components/chat/partialToolArgs.d.ts +10 -0
  110. package/dist/client/components/chat/partialToolArgs.d.ts.map +1 -0
  111. package/dist/client/components/chat/providerMeta.d.ts +11 -0
  112. package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
  113. package/dist/client/components/chat/types.d.ts +1 -0
  114. package/dist/client/components/chat/types.d.ts.map +1 -1
  115. package/dist/client/components/chat/useChatMessages.d.ts +7 -5
  116. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  117. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
  118. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  119. package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
  120. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
  121. package/dist/client/components/chat/useConfig.d.ts +1 -1
  122. package/dist/client/components/chat/useConfig.d.ts.map +1 -1
  123. package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
  124. package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
  125. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
  126. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
  127. package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
  128. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
  129. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
  130. package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
  131. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
  132. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
  133. package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
  134. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
  135. package/dist/client/components/ui/chat-message.d.ts +1 -1
  136. package/dist/client/components/ui/chat-message.d.ts.map +1 -1
  137. package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
  138. package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
  139. package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
  140. package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
  141. package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
  142. package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
  143. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
  144. package/dist/client/components/ui/not-found.d.ts.map +1 -1
  145. package/dist/client/context/InspectorContext.d.ts.map +1 -1
  146. package/dist/client/context/WidgetDebugContext.d.ts +1 -11
  147. package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
  148. package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
  149. package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
  150. package/dist/client/hooks/useViewHostProps.d.ts +1 -1
  151. package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
  152. package/dist/client/index.js +4202 -3491
  153. package/dist/client/telemetry/init.d.ts.map +1 -1
  154. package/dist/client/telemetry/utils.d.ts.map +1 -1
  155. package/dist/client/utils/servers.d.ts +5 -0
  156. package/dist/client/utils/servers.d.ts.map +1 -1
  157. package/dist/server/asset-urls.d.ts +4 -0
  158. package/dist/server/asset-urls.d.ts.map +1 -1
  159. package/dist/server/asset-urls.js +7 -3
  160. package/dist/server/cdn-shell.d.ts.map +1 -1
  161. package/dist/server/cdn-shell.js +3 -3
  162. package/dist/server/{chunk-Y2GBQOQW.js → chunk-7BTEIKSA.js} +2 -9
  163. package/dist/server/{chunk-VDUV6LR6.js → chunk-FJ7P3RIU.js} +75 -5
  164. package/dist/server/{chunk-KBVKS4J5.js → chunk-H6ZCIKBS.js} +10 -0
  165. package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
  166. package/dist/server/{chunk-IXYK6ZOY.js → chunk-PY5HM5DW.js} +2 -2
  167. package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
  168. package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
  169. package/dist/server/cli.js +5 -5
  170. package/dist/server/create-dev-api-app.js +3 -3
  171. package/dist/server/dev-callback-redirect.d.ts +3 -0
  172. package/dist/server/dev-callback-redirect.d.ts.map +1 -0
  173. package/dist/server/dev-callback-redirect.js +18 -0
  174. package/dist/server/index.js +6 -6
  175. package/dist/server/middleware.js +6 -6
  176. package/dist/server/proxy/index.js +1 -1
  177. package/dist/server/proxy/mcp-proxy.d.ts +2 -0
  178. package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
  179. package/dist/server/proxy/mcp-proxy.js +3 -1
  180. package/dist/server/proxy-routes.js +2 -2
  181. package/dist/server/server.js +3 -3
  182. package/dist/server/version.js +1 -1
  183. package/dist/server/vite-dev-api-plugin.js +3 -3
  184. package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
  185. package/dist/web/assets/ChatTab-B_CvwC4L.js +18 -0
  186. package/dist/web/assets/ConnectionSettingsTab-OhY1ex8u.js +1 -0
  187. package/dist/web/assets/ElicitationTab-CwkUbGUo.js +1 -0
  188. package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
  189. package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
  190. package/dist/web/assets/MCPAppsDebugControls-SlpRw9KD.js +34 -0
  191. package/dist/web/assets/{ManufactOAuthCallback-DCLbW-mz.js → ManufactOAuthCallback-DgIxvi85.js} +1 -1
  192. package/dist/web/assets/MarkdownRenderer-B_n2JuA3.js +47 -0
  193. package/dist/web/assets/McpAppsViewPanel-CR8zhRi4.js +1 -0
  194. package/dist/web/assets/{NotificationsTab-JevzvJTg.js → NotificationsTab-DeGCkKLB.js} +1 -1
  195. package/dist/web/assets/{OAuthCallback-BjcRxLh5.js → OAuthCallback-DhFgvjS_.js} +1 -1
  196. package/dist/web/assets/PromptsTab-DZVkm_vn.js +15 -0
  197. package/dist/web/assets/ResourcesTab-5mZflymU.js +2 -0
  198. package/dist/web/assets/SamplingTab-TWoyNn8-.js +1 -0
  199. package/dist/web/assets/ServerMetadataTab-DZZpijCY.js +1 -0
  200. package/dist/web/assets/ToolsTab-DEZiEf9V.js +8 -0
  201. package/dist/web/assets/ViewPreview-ymDMBa0M.js +1 -0
  202. package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
  203. package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
  204. package/dist/web/assets/button-C8Xa2k4x.js +1 -0
  205. package/dist/web/assets/checkbox-Wgm0SaKL.js +1 -0
  206. package/dist/web/assets/code-B14rVdNt.js +1 -0
  207. package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
  208. package/dist/web/assets/dist-Bl7zPiY1.js +21 -0
  209. package/dist/web/assets/index-CpswgjB5.js +499 -0
  210. package/dist/web/assets/index-bCIH1Sdx.css +1 -0
  211. package/dist/web/assets/input-C0OQCUZy.js +1 -0
  212. package/dist/web/assets/{label-B5Q_Zr8M.js → label-CI7JWQOo.js} +1 -1
  213. package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
  214. package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
  215. package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
  216. package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
  217. package/dist/web/assets/select-D6jzbLJn.js +1 -0
  218. package/dist/web/assets/shared-BtvKT_T4.js +1 -0
  219. package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
  220. package/dist/web/assets/tabs-subtle-C5J9sUzi.js +1 -0
  221. package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
  222. package/dist/web/assets/useConfig-CZkuy4Iy.js +1 -0
  223. package/dist/web/assets/useViewHostProps-nCaYmcbd.js +1 -0
  224. package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
  225. package/dist/web/index.html +10 -11
  226. package/package.json +5 -12
  227. package/dist/cdn/ChatTab-D8uwCHAf.js +0 -13218
  228. package/dist/cdn/ConnectionSettingsForm-BNS6bOMD.js +0 -873
  229. package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +0 -145
  230. package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
  231. package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
  232. package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
  233. package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
  234. package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
  235. package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
  236. package/dist/cdn/pdf-CxFT9FER.js +0 -16291
  237. package/dist/cdn/popover-C_SSrXT0.js +0 -2005
  238. package/dist/cdn/sheet-CerCdhxz.js +0 -78
  239. package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
  240. package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
  241. package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
  242. package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
  243. package/dist/web/assets/AnimatePresence-CthXziG2.js +0 -9
  244. package/dist/web/assets/ChatTab-Cy8eyFYI.js +0 -460
  245. package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +0 -1
  246. package/dist/web/assets/ElicitationTab-wDKgU1qL.js +0 -1
  247. package/dist/web/assets/FormContext-Cqc_A12u.js +0 -1
  248. package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
  249. package/dist/web/assets/PromptsTab-DsQVOjKH.js +0 -61
  250. package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +0 -2
  251. package/dist/web/assets/SamplingTab-BrcF1zJF.js +0 -1
  252. package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +0 -1
  253. package/dist/web/assets/ToolsTab-DJWF7Q_x.js +0 -8
  254. package/dist/web/assets/ViewPreview-jgeU7bY9.js +0 -1
  255. package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +0 -34
  256. package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
  257. package/dist/web/assets/checkbox-BA-XURSj.js +0 -1
  258. package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +0 -131
  259. package/dist/web/assets/code-tME-5H6D.js +0 -1
  260. package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
  261. package/dist/web/assets/dist-BcAQZluc.js +0 -21
  262. package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +0 -1
  263. package/dist/web/assets/index-BjH-Qp85.css +0 -1
  264. package/dist/web/assets/index-D2UxaT9v.js +0 -475
  265. package/dist/web/assets/input-CjmxOFr6.js +0 -1
  266. package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
  267. package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +0 -1
  268. package/dist/web/assets/pdf-CuwKm9zO.js +0 -54
  269. package/dist/web/assets/select-C0xlfLAa.js +0 -1
  270. package/dist/web/assets/shared-DQE60Op-.js +0 -1
  271. package/dist/web/assets/sheet-7TIkLdpr.js +0 -1
  272. package/dist/web/assets/tabs-subtle-AkJZvdxS.js +0 -1
  273. package/dist/web/assets/textarea-Ci09-en6.js +0 -1
  274. package/dist/web/assets/useConfig-Qglo4xs1.js +0 -1
  275. package/dist/web/assets/useMCPPrompts-USLYc1I4.js +0 -1
  276. package/dist/web/assets/useViewHostProps-DXAD1g7g.js +0 -1
@@ -1,25 +1,27 @@
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, f as i, sr as a } from "./input-BLxOA7V-.js";
4
- import { t as o } from "./AnimatePresence-B4HhIdgq.js";
5
- import { n as s, r as c, t as l } from "./WidgetWrapper-D29YDxIu.js";
6
- import { t as u } from "./brush-B_mKhyxG.js";
7
- import { a as d, i as f, t as p } from "./browser-CbQIH4w2.js";
8
- import { n as m, t as h } from "./zap-Mb-pbw2X.js";
9
- import { t as g } from "./clock-CmUbSx_B.js";
10
- import { t as _ } from "./code-V_0nf5rg.js";
11
- import { a as v, t as y } from "./JSONDisplay-D3RcyO9z.js";
12
- import { t as b } from "./folder-open-B3lu2rG_.js";
13
- import { a as x, i as S, n as C, o as w, r as T, t as E } from "./shared-uMiV6Fx1.js";
14
- import { t as D } from "./maximize-BALCV_ep.js";
15
- import { d as O, t as k } from "./telemetry-Ct6pVkM1.js";
16
- import { c as A, r as j, s as M } from "./react-BxO-uEDZ.js";
17
- import { t as N } from "./spinner-CWcJhIY_.js";
18
- import { n as P } from "./InspectorContext-DzXtgyTx.js";
19
- import { t as F } from "./useConfig-CwxZ6Quj.js";
20
- import { t as I } from "./useViewHostProps-Dr6W2ooF.js";
2
+ import { f as n, sr as r } from "./input-BCpgLXU1.js";
3
+ import { n as i } from "./createLucideIcon-BONxC1L5.js";
4
+ import { t as a } from "./button-CB4uOoUV.js";
5
+ import { t as o } from "./AnimatePresence-D1bZ5_-l.js";
6
+ import { n as s, t as c } from "./MCPAppsDebugControls-BIiauZ_A.js";
7
+ import { t as l } from "./brush-CelVvMGp.js";
8
+ import { a as u, i as d, t as f } from "./browser-DG2Z8392.js";
9
+ import { n as p, t as m } from "./zap-0Wr9QO7N.js";
10
+ import { t as h } from "./clock-YMF8Gtw5.js";
11
+ import { t as g } from "./code-C8sN2OGR.js";
12
+ import { a as _, t as v } from "./JSONDisplay-BJqMz7Ny.js";
13
+ import { t as y } from "./folder-open-aM8CPtBO.js";
14
+ import { a as b, i as x, n as S, o as C, r as w, t as T } from "./shared-CJVHJhag.js";
15
+ import { t as E } from "./maximize-hSOCz133.js";
16
+ import { d as D, t as O } from "./telemetry-B6Xh2ktb.js";
17
+ import { c as k, r as A, s as j } from "./react-BtzXvzGh.js";
18
+ import { t as M } from "./spinner-Be1GlSGX.js";
19
+ import { n as N } from "./InspectorContext-BBKCdfmK.js";
20
+ import { t as P } from "./useConfig-CLBnK-B4.js";
21
+ import { t as F } from "./useViewHostProps-DRWpI0-w.js";
22
+ import { t as I } from "./WidgetWrapper-BlbQAh_X.js";
21
23
  //#region src/client/components/resources/ResourceResultDisplay.tsx
22
- var L = /* @__PURE__ */ e(t(), 1), R = n();
24
+ var L = /* @__PURE__ */ e(t(), 1), R = i();
23
25
  function z(e) {
24
26
  if ("error" in e && e.error && typeof e.error == "string") return e.error;
25
27
  if (!("isError" in e && e.isError)) return null;
@@ -30,54 +32,54 @@ function z(e) {
30
32
  return "An error occurred";
31
33
  }
32
34
  function B({ serverId: e, viewId: t, resourceUri: n, toolOutput: r, toolMetadata: i, readResource: a, customProps: o, displayMode: s, onDisplayModeChange: c }) {
33
- let u = (0, L.useMemo)(() => ({}), []), d = I({
35
+ let l = (0, L.useMemo)(() => ({}), []), u = F({
34
36
  serverId: e,
35
37
  viewId: t,
36
38
  resourceUri: n,
37
39
  toolName: n,
38
- toolInput: u,
40
+ toolInput: l,
39
41
  toolOutput: r,
40
42
  toolMetadata: i,
41
43
  readResource: a,
42
44
  displayMode: s,
43
45
  onDisplayModeChange: c
44
46
  });
45
- if (!d) return /* @__PURE__ */ (0, R.jsx)(l, {
47
+ if (!u) return /* @__PURE__ */ (0, R.jsx)(I, {
46
48
  className: "w-full h-full min-h-[240px]",
47
- children: /* @__PURE__ */ (0, R.jsx)(N, { className: "size-5" })
49
+ children: /* @__PURE__ */ (0, R.jsx)(M, { className: "size-5" })
48
50
  });
49
- let f = s === "inline" ? "w-full h-full flex items-center justify-center relative p-4 min-h-0" : "w-full h-full relative p-4", p = o ? JSON.stringify(o) : "no-custom-props";
50
- return /* @__PURE__ */ (0, R.jsx)(l, {
51
+ let d = s === "inline" ? "w-full h-full flex items-center justify-center relative p-4 min-h-0" : "w-full h-full relative p-4", f = o ? JSON.stringify(o) : "no-custom-props";
52
+ return /* @__PURE__ */ (0, R.jsx)(I, {
51
53
  className: "w-full h-full min-h-[240px]",
52
- children: /* @__PURE__ */ (0, R.jsx)(j, {
54
+ children: /* @__PURE__ */ (0, R.jsx)(A, {
53
55
  viewId: t,
54
56
  toolName: n,
55
- toolInput: u,
57
+ toolInput: l,
56
58
  toolOutput: r,
57
59
  customProps: o,
58
- className: f,
59
- ...d
60
- }, p)
60
+ className: d,
61
+ ...u
62
+ }, f)
61
63
  });
62
64
  }
63
- function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource: o, onTogglePreview: c, onCopy: l, onDownload: p, onFullscreen: m, isCopied: b = !1, selectedResource: x, llmConfig: S }) {
65
+ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource: o, onTogglePreview: s, onCopy: f, onDownload: p, onFullscreen: y, isCopied: b = !1, selectedResource: x, llmConfig: S }) {
64
66
  let [C, w] = (0, L.useState)(null), T = (0, L.useCallback)((e) => {
65
67
  w(e);
66
- }, []), [E, O] = (0, L.useState)("inline"), k = e?.result && "contents" in e.result && Array.isArray(e.result.contents) && e.result.contents[0]?._meta || {}, j = {
68
+ }, []), [D, O] = (0, L.useState)("inline"), A = e?.result && "contents" in e.result && Array.isArray(e.result.contents) && e.result.contents[0]?._meta || {}, N = {
67
69
  ...e?.resourceAnnotations,
68
- ...k
70
+ ...A
69
71
  }, P = (0, L.useMemo)(() => {
70
- let e = j?.["mcp-use/propsSchema"];
72
+ let e = N?.["mcp-use/propsSchema"];
71
73
  if (!e) return [];
72
74
  let t = e.def?.shape;
73
75
  return t ? Object.entries(t).filter(([, e]) => {
74
76
  let t = e?.def?.type ?? e?.type;
75
77
  return t !== "optional" && t !== "default";
76
78
  }).map(([e]) => e) : e.required ?? [];
77
- }, [j]), F = A(j) ? "mcp-apps" : null, I = e?.result && "contents" in e.result && Array.isArray(e.result.contents) && e.result.contents.some((e) => M(e.mimeType)), V = j?.ui?.resourceUri || k?.ui?.resourceUri || (I ? e.uri : void 0), H = (F === "mcp-apps" || I) && !!V, U = P.length > 0 && !C;
79
+ }, [N]), F = k(N) ? "mcp-apps" : null, I = e?.result && "contents" in e.result && Array.isArray(e.result.contents) && e.result.contents.some((e) => j(e.mimeType)), V = N?.ui?.resourceUri || A?.ui?.resourceUri || (I ? e.uri : void 0), H = (F === "mcp-apps" || I) && !!V, U = P.length > 0 && !C;
78
80
  if (t) return /* @__PURE__ */ (0, R.jsx)("div", {
79
81
  className: "flex absolute left-0 top-0 items-center justify-center w-full h-full",
80
- children: /* @__PURE__ */ (0, R.jsx)(N, { className: "size-5" })
82
+ children: /* @__PURE__ */ (0, R.jsx)(M, { className: "size-5" })
81
83
  });
82
84
  if (!e) return /* @__PURE__ */ (0, R.jsxs)("div", {
83
85
  className: "flex flex-col items-center justify-center h-full p-4 text-center",
@@ -111,7 +113,7 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
111
113
  children: [
112
114
  /* @__PURE__ */ (0, R.jsxs)("div", {
113
115
  className: "flex items-center gap-1",
114
- children: [/* @__PURE__ */ (0, R.jsx)(g, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, R.jsx)("span", {
116
+ children: [/* @__PURE__ */ (0, R.jsx)(h, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, R.jsx)("span", {
115
117
  className: "text-xs text-gray-500 dark:text-gray-400",
116
118
  children: new Date(e.timestamp).toLocaleTimeString()
117
119
  })]
@@ -120,7 +122,7 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
120
122
  let t = e?.duration ?? e.result?.duration ?? e.result?.metrics?.durationMs;
121
123
  return t === void 0 ? null : /* @__PURE__ */ (0, R.jsxs)("div", {
122
124
  className: "flex items-center gap-1",
123
- children: [/* @__PURE__ */ (0, R.jsx)(h, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, R.jsxs)("span", {
125
+ children: [/* @__PURE__ */ (0, R.jsx)(m, { className: "h-3 w-3 text-gray-400" }), /* @__PURE__ */ (0, R.jsxs)("span", {
124
126
  className: "text-xs text-gray-500 dark:text-gray-400",
125
127
  children: [t, "ms"]
126
128
  })]
@@ -138,27 +140,27 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
138
140
  H && /* @__PURE__ */ (0, R.jsxs)(a, {
139
141
  variant: "ghost",
140
142
  size: "sm",
141
- onClick: c,
143
+ onClick: s,
142
144
  className: n ? "" : "text-purple-600 dark:text-purple-400",
143
- children: [n ? /* @__PURE__ */ (0, R.jsx)(_, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ (0, R.jsx)(u, { className: "h-4 w-4 mr-1" }), n ? "JSON" : "Preview"]
145
+ children: [n ? /* @__PURE__ */ (0, R.jsx)(g, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ (0, R.jsx)(l, { className: "h-4 w-4 mr-1" }), n ? "JSON" : "Preview"]
144
146
  }),
145
147
  /* @__PURE__ */ (0, R.jsx)(a, {
146
148
  variant: "ghost",
147
149
  size: "sm",
148
- onClick: l,
149
- children: b ? /* @__PURE__ */ (0, R.jsx)(d, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, R.jsx)(f, { className: "h-4 w-4" })
150
+ onClick: f,
151
+ children: b ? /* @__PURE__ */ (0, R.jsx)(u, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, R.jsx)(d, { className: "h-4 w-4" })
150
152
  }),
151
153
  /* @__PURE__ */ (0, R.jsx)(a, {
152
154
  variant: "ghost",
153
155
  size: "sm",
154
156
  onClick: p,
155
- children: /* @__PURE__ */ (0, R.jsx)(v, { className: "h-4 w-4" })
157
+ children: /* @__PURE__ */ (0, R.jsx)(_, { className: "h-4 w-4" })
156
158
  }),
157
159
  /* @__PURE__ */ (0, R.jsx)(a, {
158
160
  variant: "ghost",
159
161
  size: "sm",
160
- onClick: m,
161
- children: /* @__PURE__ */ (0, R.jsx)(D, { className: "h-4 w-4" })
162
+ onClick: y,
163
+ children: /* @__PURE__ */ (0, R.jsx)(E, { className: "h-4 w-4" })
162
164
  })
163
165
  ]
164
166
  })]
@@ -169,13 +171,13 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
169
171
  "data-testid": "resource-widget-preview",
170
172
  children: [/* @__PURE__ */ (0, R.jsx)("div", {
171
173
  className: "absolute top-2 right-2 z-10 flex items-center gap-2",
172
- children: /* @__PURE__ */ (0, R.jsx)(s, {
174
+ children: /* @__PURE__ */ (0, R.jsx)(c, {
173
175
  toolCallId: `resource-${e.timestamp}`,
174
- displayMode: E,
176
+ displayMode: D,
175
177
  onDisplayModeChange: O,
176
178
  propsContext: "resource",
177
179
  resourceUri: e.uri,
178
- resourceAnnotations: j,
180
+ resourceAnnotations: N,
179
181
  llmConfig: S || null,
180
182
  resource: x || null,
181
183
  onPropsChange: T,
@@ -192,23 +194,23 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
192
194
  viewId: `resource-${e.timestamp}`,
193
195
  resourceUri: V,
194
196
  toolOutput: e.result,
195
- toolMetadata: j,
197
+ toolMetadata: N,
196
198
  readResource: o,
197
199
  customProps: C || void 0,
198
- displayMode: E,
200
+ displayMode: D,
199
201
  onDisplayModeChange: O
200
202
  })]
201
203
  }) : /* @__PURE__ */ (0, R.jsx)("div", {
202
204
  className: "px-4 pt-4",
203
205
  "data-testid": "resource-result-json",
204
- children: /* @__PURE__ */ (0, R.jsx)(y, {
206
+ children: /* @__PURE__ */ (0, R.jsx)(v, {
205
207
  data: e.result,
206
208
  filename: `resource-${e.uri.replace(/[^a-zA-Z0-9]/g, "-")}-mcp-apps-${Date.now()}.json`
207
209
  })
208
210
  }) : /* @__PURE__ */ (0, R.jsx)("div", {
209
211
  className: "px-4 pt-4",
210
212
  "data-testid": "resource-result-json",
211
- children: /* @__PURE__ */ (0, R.jsx)(y, {
213
+ children: /* @__PURE__ */ (0, R.jsx)(v, {
212
214
  data: e.result,
213
215
  filename: `resource-${e.uri.replace(/[^a-zA-Z0-9]/g, "-")}-${Date.now()}.json`
214
216
  })
@@ -221,7 +223,7 @@ function V({ result: e, isLoading: t, previewMode: n, serverId: i, readResource:
221
223
  function H({ resources: e, selectedResource: t, onResourceSelect: n, focusedIndex: r }) {
222
224
  return e.length === 0 ? /* @__PURE__ */ (0, R.jsxs)("div", {
223
225
  className: "flex flex-1 flex-col items-center justify-center p-4 text-center",
224
- children: [/* @__PURE__ */ (0, R.jsx)(c, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, R.jsx)("p", {
226
+ children: [/* @__PURE__ */ (0, R.jsx)(s, { className: "h-12 w-12 text-gray-400 dark:text-gray-600 mb-3" }), /* @__PURE__ */ (0, R.jsx)("p", {
225
227
  className: "text-gray-500 dark:text-gray-400",
226
228
  children: "No resources available"
227
229
  })]
@@ -230,7 +232,7 @@ function H({ resources: e, selectedResource: t, onResourceSelect: n, focusedInde
230
232
  className: "font-mono",
231
233
  children: e.mimeType
232
234
  }, "mime")].filter(Boolean);
233
- return /* @__PURE__ */ (0, R.jsx)(T, {
235
+ return /* @__PURE__ */ (0, R.jsx)(w, {
234
236
  id: `resource-${e.uri}`,
235
237
  "data-testid": `resource-item-${e.name}`,
236
238
  isSelected: t?.uri === e.uri,
@@ -249,16 +251,16 @@ function H({ resources: e, selectedResource: t, onResourceSelect: n, focusedInde
249
251
  }
250
252
  //#endregion
251
253
  //#region src/client/components/ResourcesTab.tsx
252
- function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s, mcpServerUrl: c, refreshResources: l }) {
253
- let [u, d] = (0, L.useState)(!1), [f, h] = (0, L.useState)(null), { selectedResourceUri: g, setSelectedResourceUri: _ } = P(), { llmConfig: v } = F({ mcpServerUrl: c }), [y, T] = (0, L.useState)(null), [D, A] = (0, L.useState)(!1), [j, M] = (0, L.useState)(""), [N] = (0, L.useState)("resources"), [I, z] = (0, L.useState)(!0), [B, U] = (0, L.useState)(!1), [W, G] = (0, L.useState)(-1), [K, q] = (0, L.useState)(!1), J = (0, L.useRef)(null), Y = (0, L.useRef)(null), [ee, te] = (0, L.useState)(!1), [X, Z] = (0, L.useState)("list");
254
+ function U({ ref: e, resources: t, readResource: r, serverId: i, isConnected: s, mcpServerUrl: c, refreshResources: l }) {
255
+ let [u, d] = (0, L.useState)(!1), [m, h] = (0, L.useState)(null), { selectedResourceUri: g, setSelectedResourceUri: _ } = N(), { llmConfig: v } = P({ mcpServerUrl: c }), [w, E] = (0, L.useState)(null), [k, A] = (0, L.useState)(!1), [j, M] = (0, L.useState)(""), [F] = (0, L.useState)("resources"), [I, z] = (0, L.useState)(!0), [B, U] = (0, L.useState)(!1), [W, G] = (0, L.useState)(-1), [K, q] = (0, L.useState)(!1), J = (0, L.useRef)(null), Y = (0, L.useRef)(null), [ee, te] = (0, L.useState)(!1), [X, Z] = (0, L.useState)("list");
254
256
  (0, L.useEffect)(() => {
255
257
  let e = () => {
256
258
  te(window.innerWidth < 1024);
257
259
  };
258
260
  return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
259
261
  }, []), (0, L.useEffect)(() => {
260
- Z(f ? "detail" : "list");
261
- }, [f]), (0, L.useImperativeHandle)(e, () => ({
262
+ Z(m ? "detail" : "list");
263
+ }, [m]), (0, L.useImperativeHandle)(e, () => ({
262
264
  focusSearch: () => {
263
265
  U(!0), setTimeout(() => {
264
266
  J.current && J.current.focus();
@@ -290,14 +292,14 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
290
292
  A(!0);
291
293
  let t = Date.now();
292
294
  try {
293
- let i = await n(e.uri);
294
- k(new O({
295
+ let n = await r(e.uri);
296
+ O(new D({
295
297
  resourceUri: e.uri,
296
- serverId: r,
298
+ serverId: i,
297
299
  success: !0
298
- })).catch(() => {}), T({
300
+ })).catch(() => {}), E({
299
301
  uri: e.uri,
300
- result: i,
302
+ result: n,
301
303
  timestamp: t,
302
304
  resourceAnnotations: {
303
305
  ...e.annotations,
@@ -305,12 +307,12 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
305
307
  }
306
308
  });
307
309
  } catch (n) {
308
- k(new O({
310
+ O(new D({
309
311
  resourceUri: e.uri,
310
- serverId: r,
312
+ serverId: i,
311
313
  success: !1,
312
314
  error: n instanceof Error ? n.message : "Unknown error"
313
- })).catch(() => {}), T({
315
+ })).catch(() => {}), E({
314
316
  uri: e.uri,
315
317
  result: {
316
318
  contents: [],
@@ -328,13 +330,13 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
328
330
  }
329
331
  }
330
332
  }, [
331
- n,
332
333
  r,
334
+ i,
333
335
  s
334
336
  ]);
335
337
  (0, L.useEffect)(() => {
336
338
  G(-1);
337
- }, [j, N]), (0, L.useEffect)(() => {
339
+ }, [j, F]), (0, L.useEffect)(() => {
338
340
  let e = (e) => {
339
341
  let t = e.target;
340
342
  if (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.contentEditable === "true" || e.metaKey || e.ctrlKey || e.altKey) return;
@@ -369,27 +371,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
369
371
  }, [W, Q]), (0, L.useEffect)(() => {
370
372
  if (g && t.length > 0) {
371
373
  let e = t.find((e) => e.uri === g);
372
- fetch("http://127.0.0.1:7371/ingest/4e7482c5-571f-4071-bd09-762c357289f4", {
373
- method: "POST",
374
- headers: {
375
- "Content-Type": "application/json",
376
- "X-Debug-Session-Id": "831b88"
377
- },
378
- body: JSON.stringify({
379
- sessionId: "831b88",
380
- location: "ResourcesTab.tsx:auto-select",
381
- message: "resources auto-select effect",
382
- data: {
383
- selectedResourceUri: g,
384
- resourcesCount: t.length,
385
- resourceFound: !!e,
386
- willSelect: !!(e && f?.uri !== e.uri),
387
- currentSelected: f?.uri ?? null
388
- },
389
- timestamp: Date.now(),
390
- hypothesisId: "H2-compare"
391
- })
392
- }).catch(() => {}), e && f?.uri !== e.uri && (_(null), setTimeout(() => {
374
+ e && m?.uri !== e.uri && (_(null), setTimeout(() => {
393
375
  $(e);
394
376
  let t = document.getElementById(`resource-${e.uri}`);
395
377
  t && t.scrollIntoView({
@@ -401,29 +383,29 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
401
383
  }, [
402
384
  g,
403
385
  t,
404
- f,
386
+ m,
405
387
  $,
406
388
  _
407
389
  ]), (0, L.useEffect)(() => {
408
- if (f) {
409
- let e = t.find((e) => e.uri === f.uri);
410
- e && e !== f && (e.description !== f.description || e.mimeType !== f.mimeType || e.name !== f.name) && h(e);
390
+ if (m) {
391
+ let e = t.find((e) => e.uri === m.uri);
392
+ e && e !== m && (e.description !== m.description || e.mimeType !== m.mimeType || e.name !== m.name) && h(e);
411
393
  }
412
- }, [t, f]);
394
+ }, [t, m]);
413
395
  let ie = (0, L.useCallback)(async () => {
414
- if (y) try {
415
- await p(JSON.stringify(y.result, null, 2)), q(!0), setTimeout(() => q(!1), 2e3);
396
+ if (w) try {
397
+ await f(JSON.stringify(w.result, null, 2)), q(!0), setTimeout(() => q(!1), 2e3);
416
398
  } catch (e) {
417
399
  console.error("[ResourcesTab] Failed to copy result:", e);
418
400
  }
419
- }, [y]), ae = (0, L.useCallback)(() => {
420
- if (y) try {
421
- let e = new globalThis.Blob([JSON.stringify(y.result, null, 2)], { type: "application/json" }), t = URL.createObjectURL(e), n = document.createElement("a");
401
+ }, [w]), ae = (0, L.useCallback)(() => {
402
+ if (w) try {
403
+ let e = new globalThis.Blob([JSON.stringify(w.result, null, 2)], { type: "application/json" }), t = URL.createObjectURL(e), n = document.createElement("a");
422
404
  n.href = t, n.download = `resource-${Date.now()}.json`, document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(t);
423
405
  } catch (e) {
424
406
  console.error("[ResourcesTab] Failed to download result:", e);
425
407
  }
426
- }, [y]), oe = (0, L.useCallback)(async () => {
408
+ }, [w]), oe = (0, L.useCallback)(async () => {
427
409
  if (Y.current) try {
428
410
  document.fullscreenElement ? await document.exitFullscreen() : await Y.current.requestFullscreen();
429
411
  } catch (e) {
@@ -441,7 +423,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
441
423
  h(null), Z("list");
442
424
  },
443
425
  className: "p-0 h-8 w-8",
444
- children: /* @__PURE__ */ (0, R.jsx)(m, { className: "h-4 w-4" })
426
+ children: /* @__PURE__ */ (0, R.jsx)(p, { className: "h-4 w-4" })
445
427
  }), /* @__PURE__ */ (0, R.jsxs)("div", {
446
428
  className: "flex items-center text-sm font-medium",
447
429
  children: [/* @__PURE__ */ (0, R.jsx)("button", {
@@ -463,7 +445,7 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
463
445
  children: /* @__PURE__ */ (0, R.jsxs)(o, {
464
446
  initial: !1,
465
447
  mode: "popLayout",
466
- children: [X === "list" && /* @__PURE__ */ (0, R.jsx)(i.div, {
448
+ children: [X === "list" && /* @__PURE__ */ (0, R.jsx)(n.div, {
467
449
  initial: { x: "-100%" },
468
450
  animate: { x: 0 },
469
451
  exit: { x: "-100%" },
@@ -473,10 +455,10 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
473
455
  damping: 30
474
456
  },
475
457
  className: "absolute inset-0 flex flex-col bg-background z-0",
476
- children: /* @__PURE__ */ (0, R.jsx)(C, { children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(E, {
458
+ children: /* @__PURE__ */ (0, R.jsx)(S, { children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(T, {
477
459
  isScrolled: e,
478
460
  title: "Resources",
479
- icon: b,
461
+ icon: y,
480
462
  count: Q.length,
481
463
  isSearchExpanded: B,
482
464
  searchQuery: j,
@@ -489,11 +471,11 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
489
471
  isRefreshing: u
490
472
  }), /* @__PURE__ */ (0, R.jsx)(H, {
491
473
  resources: Q,
492
- selectedResource: f,
474
+ selectedResource: m,
493
475
  onResourceSelect: $,
494
476
  focusedIndex: W
495
477
  })] }) })
496
- }, "list"), X === "detail" && /* @__PURE__ */ (0, R.jsx)(i.div, {
478
+ }, "list"), X === "detail" && /* @__PURE__ */ (0, R.jsx)(n.div, {
497
479
  initial: { x: "100%" },
498
480
  animate: { x: 0 },
499
481
  exit: { x: "100%" },
@@ -507,35 +489,35 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
507
489
  ref: Y,
508
490
  className: "h-full",
509
491
  children: /* @__PURE__ */ (0, R.jsx)(V, {
510
- result: y,
511
- isLoading: D,
492
+ result: w,
493
+ isLoading: k,
512
494
  previewMode: I,
513
- serverId: r,
514
- readResource: n,
495
+ serverId: i,
496
+ readResource: r,
515
497
  onTogglePreview: () => z(!I),
516
498
  onCopy: ie,
517
499
  onDownload: ae,
518
500
  onFullscreen: oe,
519
501
  isCopied: K,
520
- selectedResource: f,
502
+ selectedResource: m,
521
503
  llmConfig: v
522
504
  })
523
505
  })
524
506
  }, "detail")]
525
507
  })
526
508
  })]
527
- }) : /* @__PURE__ */ (0, R.jsxs)(w, {
509
+ }) : /* @__PURE__ */ (0, R.jsxs)(C, {
528
510
  orientation: "horizontal",
529
511
  className: "h-full",
530
512
  children: [
531
- /* @__PURE__ */ (0, R.jsx)(x, {
513
+ /* @__PURE__ */ (0, R.jsx)(b, {
532
514
  defaultSize: "33%",
533
515
  children: /* @__PURE__ */ (0, R.jsx)("div", {
534
516
  className: "flex h-full flex-col overflow-hidden border-r dark:border-zinc-700",
535
- children: /* @__PURE__ */ (0, R.jsx)(C, { children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(E, {
517
+ children: /* @__PURE__ */ (0, R.jsx)(S, { children: (e) => /* @__PURE__ */ (0, R.jsxs)(R.Fragment, { children: [/* @__PURE__ */ (0, R.jsx)(T, {
536
518
  isScrolled: e,
537
519
  title: "Resources",
538
- icon: b,
520
+ icon: y,
539
521
  count: Q.length,
540
522
  isSearchExpanded: B,
541
523
  searchQuery: j,
@@ -548,30 +530,30 @@ function U({ ref: e, resources: t, readResource: n, serverId: r, isConnected: s,
548
530
  isRefreshing: u
549
531
  }), /* @__PURE__ */ (0, R.jsx)(H, {
550
532
  resources: Q,
551
- selectedResource: f,
533
+ selectedResource: m,
552
534
  onResourceSelect: $,
553
535
  focusedIndex: W
554
536
  })] }) })
555
537
  })
556
538
  }),
557
- /* @__PURE__ */ (0, R.jsx)(S, {}),
558
- /* @__PURE__ */ (0, R.jsx)(x, {
539
+ /* @__PURE__ */ (0, R.jsx)(x, {}),
540
+ /* @__PURE__ */ (0, R.jsx)(b, {
559
541
  defaultSize: "67%",
560
542
  children: /* @__PURE__ */ (0, R.jsx)("div", {
561
543
  ref: Y,
562
544
  className: "h-full bg-white dark:bg-zinc-900",
563
545
  children: /* @__PURE__ */ (0, R.jsx)(V, {
564
- result: y,
565
- isLoading: D,
546
+ result: w,
547
+ isLoading: k,
566
548
  previewMode: I,
567
- serverId: r,
568
- readResource: n,
549
+ serverId: i,
550
+ readResource: r,
569
551
  onTogglePreview: () => z(!I),
570
552
  onCopy: ie,
571
553
  onDownload: ae,
572
554
  onFullscreen: oe,
573
555
  isCopied: K,
574
- selectedResource: f,
556
+ selectedResource: m,
575
557
  llmConfig: v
576
558
  })
577
559
  })