@mcp-use/inspector 12.0.4-canary.0 → 20.0.0-beta.0

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 (816) hide show
  1. package/README.md +39 -6
  2. package/dist/cdn/AnimatePresence-B4HhIdgq.js +393 -0
  3. package/dist/cdn/ChatTab-5ya_YTFV.js +13218 -0
  4. package/dist/cdn/CheckboxIndicator-BF2cKfbA.js +251 -0
  5. package/dist/cdn/ConnectionSettingsForm-iwNW86ZU.js +873 -0
  6. package/dist/cdn/ConnectionSettingsTab-CeK83dxn.js +145 -0
  7. package/dist/cdn/ElicitationTab-upPXq2q7.js +654 -0
  8. package/dist/cdn/FormContext-Cl51-7O7.js +135 -0
  9. package/dist/cdn/InspectorContext-DzXtgyTx.js +143 -0
  10. package/dist/cdn/JSONDisplay-D3RcyO9z.js +324 -0
  11. package/dist/cdn/ListTabHeader-8lULn-90.js +88 -0
  12. package/dist/cdn/ManufactOAuthCallback-DEM8mhWD.js +31 -0
  13. package/dist/cdn/NotificationsTab-CWopTIzT.js +290 -0
  14. package/dist/cdn/OAuthCallback-BxuOVgdb.js +58 -0
  15. package/dist/cdn/PromptsTab-Cspfnl6n.js +4400 -0
  16. package/dist/cdn/ResourcesTab-BczUMFil.js +584 -0
  17. package/dist/cdn/SamplingTab-6u5s845G.js +658 -0
  18. package/dist/cdn/ServerMetadataTab-DS0eiyyD.js +244 -0
  19. package/dist/cdn/StatusIcon-BGXOEU2u.js +66 -0
  20. package/dist/cdn/ToolsTab-CUhwP4rZ.js +2067 -0
  21. package/dist/cdn/ViewPreview-CxJc1Kht.js +237 -0
  22. package/dist/cdn/WidgetDebugContext-D4usL_MA.js +324 -0
  23. package/dist/cdn/WidgetWrapper-BJJtLqMb.js +2211 -0
  24. package/dist/cdn/apple-touch-icon.png +0 -0
  25. package/dist/cdn/basePath-B8HuhIMu.js +25 -0
  26. package/dist/cdn/bell-CGjAO_0s.js +10 -0
  27. package/dist/cdn/browser-CbQIH4w2.js +42 -0
  28. package/dist/cdn/brush-B_mKhyxG.js +17 -0
  29. package/dist/cdn/bundle-mjs-B0nmHDtp.js +1953 -0
  30. package/dist/cdn/card-DqjqAq0o.js +41 -0
  31. package/dist/cdn/cfWorker-Bxcs9rNe.js +10799 -0
  32. package/dist/cdn/checkbox-B4oUG6Rr.js +20 -0
  33. package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +17500 -0
  34. package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +1508 -0
  35. package/dist/cdn/clock-CmUbSx_B.js +12 -0
  36. package/dist/cdn/code-V_0nf5rg.js +10 -0
  37. package/dist/cdn/createLucideIcon-C5fZZ6oB.js +38 -0
  38. package/dist/cdn/dialog-Dnl-pZsY.js +1028 -0
  39. package/dist/cdn/dist-DjXr_YO3.js +616 -0
  40. package/dist/cdn/dist-mRDqCgKU.js +2305 -0
  41. package/dist/cdn/external-link-CjmfT6rW.js +17 -0
  42. package/dist/cdn/eye-B7H96av8.js +29 -0
  43. package/dist/cdn/favicon-96x96.png +0 -0
  44. package/dist/cdn/favicon-black.svg +5 -8
  45. package/dist/cdn/favicon-white.svg +4 -7
  46. package/dist/cdn/favicon.ico +0 -0
  47. package/dist/cdn/favicon.svg +5 -0
  48. package/dist/cdn/folder-open-B3lu2rG_.js +7 -0
  49. package/dist/cdn/hash-BVQnWi7q.js +33 -0
  50. package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +36 -0
  51. package/dist/cdn/history-Csw4rb44.js +17 -0
  52. package/dist/cdn/index-browser-CVUwR-Bu.js +1934 -0
  53. package/dist/cdn/info-CNiOwqkf.js +19 -0
  54. package/dist/cdn/input-BLxOA7V-.js +10215 -0
  55. package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +4 -0
  56. package/dist/cdn/inspector.css +1 -2
  57. package/dist/cdn/inspector.js +10854 -133726
  58. package/dist/cdn/jsx-runtime-CIxvMpEo.js +180 -0
  59. package/dist/cdn/label-CBvG613A.js +60 -0
  60. package/dist/cdn/loader-circle-BLy9A_pp.js +7 -0
  61. package/dist/cdn/manufact-auth-0TVxpeTA.js +387 -0
  62. package/dist/cdn/maximize-2-CH5Lq90B.js +21 -0
  63. package/dist/cdn/maximize-BALCV_ep.js +21 -0
  64. package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +2 -0
  65. package/dist/cdn/message-square-BnxdpJxZ.js +7 -0
  66. package/dist/cdn/not-found-BcNNsTjS.js +34 -0
  67. package/dist/cdn/pdf-CxFT9FER.js +16291 -0
  68. package/dist/cdn/play-vuZ5PLnI.js +7 -0
  69. package/dist/cdn/popover-C_SSrXT0.js +2005 -0
  70. package/dist/cdn/react-BIs9pQ3H.js +926 -0
  71. package/dist/cdn/react-yUi9mVK4.js +5411 -0
  72. package/dist/cdn/refresh-cw-BXY-Pa0U.js +21 -0
  73. package/dist/cdn/save-Tgil_AJZ.js +34 -0
  74. package/dist/cdn/schemaHelpers-DTV38jGq.js +16 -0
  75. package/dist/cdn/select-BZ_IoKxg.js +2594 -0
  76. package/dist/cdn/servers-Dm72iTpY.js +26 -0
  77. package/dist/cdn/shared-uMiV6Fx1.js +1700 -0
  78. package/dist/cdn/sheet-CerCdhxz.js +78 -0
  79. package/dist/cdn/site.webmanifest +21 -0
  80. package/dist/cdn/sparkles-BntO2rDR.js +23 -0
  81. package/dist/cdn/spinner-CWcJhIY_.js +15 -0
  82. package/dist/cdn/square-check-big-BvwQ17Bl.js +10 -0
  83. package/dist/cdn/switch-DtQOLb9R.js +664 -0
  84. package/dist/cdn/tabs-subtle-C5cy35sY.js +787 -0
  85. package/dist/cdn/telemetry-Ct6pVkM1.js +240 -0
  86. package/dist/cdn/textarea-Bj-CT7hC.js +14 -0
  87. package/dist/cdn/trash-2-RwpJY5SL.js +25 -0
  88. package/dist/cdn/useAriaLabelledBy-Bm9qHGK6.js +29 -0
  89. package/dist/cdn/useCompositeItem-CNJ6MXdi.js +26 -0
  90. package/dist/cdn/useConfig-CwxZ6Quj.js +208 -0
  91. package/dist/cdn/useHostedSession-BA39Aegc.js +153 -0
  92. package/dist/cdn/useMCPPrompts-D3_Hla_z.js +104 -0
  93. package/dist/cdn/useSavedRequests-Ci2I919u.js +51 -0
  94. package/dist/cdn/useViewHostProps-C7vjco2m.js +348 -0
  95. package/dist/cdn/web-app-manifest-192x192.png +0 -0
  96. package/dist/cdn/web-app-manifest-512x512.png +0 -0
  97. package/dist/cdn/wrench-DzGmCfnb.js +7 -0
  98. package/dist/cdn/x-C3vRQIYu.js +10 -0
  99. package/dist/cdn/zap-Mb-pbw2X.js +10 -0
  100. package/dist/cli.js +1060 -3601
  101. package/dist/client/auth/manufact-auth.d.ts +30 -0
  102. package/dist/client/auth/manufact-auth.d.ts.map +1 -0
  103. package/dist/client/chat-history/ChatHistoryHeader.d.ts +4 -0
  104. package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +1 -0
  105. package/dist/client/chat-history/ChatHistoryPanel.d.ts +28 -0
  106. package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +1 -0
  107. package/dist/client/chat-history/ChatHistoryRail.d.ts +5 -0
  108. package/dist/client/chat-history/ChatHistoryRail.d.ts.map +1 -0
  109. package/dist/client/chat-history/ChatList.d.ts +18 -0
  110. package/dist/client/chat-history/ChatList.d.ts.map +1 -0
  111. package/dist/client/chat-history/ChatTitleReveal.d.ts +10 -0
  112. package/dist/client/chat-history/ChatTitleReveal.d.ts.map +1 -0
  113. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +13 -0
  114. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +1 -0
  115. package/dist/client/chat-history/chat-title.d.ts +10 -0
  116. package/dist/client/chat-history/chat-title.d.ts.map +1 -0
  117. package/dist/client/chat-history/providers/local-storage.d.ts +21 -0
  118. package/dist/client/chat-history/providers/local-storage.d.ts.map +1 -0
  119. package/dist/client/chat-history/types.d.ts +39 -0
  120. package/dist/client/chat-history/types.d.ts.map +1 -0
  121. package/dist/client/chat-history/useChatHistory.d.ts +20 -0
  122. package/dist/client/chat-history/useChatHistory.d.ts.map +1 -0
  123. package/dist/client/chat-history/useChatTitleGeneration.d.ts +17 -0
  124. package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +1 -0
  125. package/dist/client/components/AddToClientDropdown.d.ts.map +1 -1
  126. package/dist/client/components/ChatTab.d.ts +28 -3
  127. package/dist/client/components/ChatTab.d.ts.map +1 -1
  128. package/dist/client/components/IframeConsole.d.ts.map +1 -1
  129. package/dist/client/components/MCPAppsDebugControls.d.ts +2 -18
  130. package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
  131. package/dist/client/components/PromptsTab.d.ts +1 -1
  132. package/dist/client/components/PromptsTab.d.ts.map +1 -1
  133. package/dist/client/components/ResourcesTab.d.ts +1 -1
  134. package/dist/client/components/ResourcesTab.d.ts.map +1 -1
  135. package/dist/client/components/ToolsTab.d.ts +3 -3
  136. package/dist/client/components/ToolsTab.d.ts.map +1 -1
  137. package/dist/client/components/chat/AssistantMessage.d.ts +2 -1
  138. package/dist/client/components/chat/AssistantMessage.d.ts.map +1 -1
  139. package/dist/client/components/chat/ChatHeader.d.ts +20 -2
  140. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  141. package/dist/client/components/chat/ChatInput.d.ts +6 -2
  142. package/dist/client/components/chat/ChatInput.d.ts.map +1 -1
  143. package/dist/client/components/chat/ChatInputArea.d.ts +31 -3
  144. package/dist/client/components/chat/ChatInputArea.d.ts.map +1 -1
  145. package/dist/client/components/chat/ChatLandingForm.d.ts +5 -42
  146. package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
  147. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +7 -0
  148. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +1 -0
  149. package/dist/client/components/chat/ChatTraceView.d.ts +7 -0
  150. package/dist/client/components/chat/ChatTraceView.d.ts.map +1 -0
  151. package/dist/client/components/chat/ConfigurationDialog.d.ts +12 -2
  152. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  153. package/dist/client/components/chat/ConfigureEmptyState.d.ts +2 -5
  154. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
  155. package/dist/client/components/chat/CopyButton.d.ts.map +1 -1
  156. package/dist/client/components/chat/FloatingChatElicitation.d.ts +10 -0
  157. package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +1 -0
  158. package/dist/client/components/chat/MessageList.d.ts +6 -11
  159. package/dist/client/components/chat/MessageList.d.ts.map +1 -1
  160. package/dist/client/components/chat/MessageMetaActions.d.ts +7 -0
  161. package/dist/client/components/chat/MessageMetaActions.d.ts.map +1 -0
  162. package/dist/client/components/chat/PromptsDropdown.d.ts +1 -1
  163. package/dist/client/components/chat/PromptsDropdown.d.ts.map +1 -1
  164. package/dist/client/components/chat/StreamingAssistantContent.d.ts +7 -0
  165. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -0
  166. package/dist/client/components/chat/SystemPromptButton.d.ts +11 -0
  167. package/dist/client/components/chat/SystemPromptButton.d.ts.map +1 -0
  168. package/dist/client/components/chat/ToolCallDisplay.d.ts.map +1 -1
  169. package/dist/client/components/chat/ToolResultRenderer.d.ts +2 -9
  170. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
  171. package/dist/client/components/chat/ToolSelector.d.ts.map +1 -1
  172. package/dist/client/components/chat/UserMessage.d.ts +2 -1
  173. package/dist/client/components/chat/UserMessage.d.ts.map +1 -1
  174. package/dist/client/components/chat/chat-bar-styles.d.ts +6 -0
  175. package/dist/client/components/chat/chat-bar-styles.d.ts.map +1 -0
  176. package/dist/client/components/chat/conversion.d.ts +1 -1
  177. package/dist/client/components/chat/conversion.d.ts.map +1 -1
  178. package/dist/client/components/chat/freeTier.d.ts +11 -0
  179. package/dist/client/components/chat/freeTier.d.ts.map +1 -1
  180. package/dist/client/components/chat/providerMeta.d.ts +10 -1
  181. package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
  182. package/dist/client/components/chat/streamdown-code-slim.d.ts +4 -0
  183. package/dist/client/components/chat/streamdown-code-slim.d.ts.map +1 -0
  184. package/dist/client/components/chat/system-prompt/local-storage.d.ts +5 -0
  185. package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +1 -0
  186. package/dist/client/components/chat/system-prompt/types.d.ts +8 -0
  187. package/dist/client/components/chat/system-prompt/types.d.ts.map +1 -0
  188. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +3 -0
  189. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +1 -0
  190. package/dist/client/components/chat/system-prompt-default.d.ts +2 -0
  191. package/dist/client/components/chat/system-prompt-default.d.ts.map +1 -0
  192. package/dist/client/components/chat/trace.d.ts +84 -0
  193. package/dist/client/components/chat/trace.d.ts.map +1 -0
  194. package/dist/client/components/chat/types.d.ts +2 -1
  195. package/dist/client/components/chat/types.d.ts.map +1 -1
  196. package/dist/client/components/chat/useChatMessages.d.ts +4 -0
  197. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  198. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +14 -2
  199. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  200. package/dist/client/components/chat/useChatScrollToBottom.d.ts +13 -0
  201. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -0
  202. package/dist/client/components/chat/useConfig.d.ts +2 -2
  203. package/dist/client/components/chat/useConfig.d.ts.map +1 -1
  204. package/dist/client/components/chat/useHostedChatMode.d.ts +14 -0
  205. package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -0
  206. package/dist/client/components/chat/useManagedCloudModel.d.ts +14 -0
  207. package/dist/client/components/chat/useManagedCloudModel.d.ts.map +1 -0
  208. package/dist/client/components/chat/utils.d.ts +0 -4
  209. package/dist/client/components/chat/utils.d.ts.map +1 -1
  210. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +12 -0
  211. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +1 -0
  212. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +9 -0
  213. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +1 -0
  214. package/dist/client/components/prompts/PromptExecutionPanel.d.ts +1 -1
  215. package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +1 -1
  216. package/dist/client/components/prompts/PromptInputForm.d.ts +1 -1
  217. package/dist/client/components/prompts/PromptInputForm.d.ts.map +1 -1
  218. package/dist/client/components/prompts/PromptResultDisplay.d.ts +1 -1
  219. package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +1 -1
  220. package/dist/client/components/prompts/PromptsList.d.ts +1 -1
  221. package/dist/client/components/prompts/PromptsList.d.ts.map +1 -1
  222. package/dist/client/components/prompts/SavedPromptsList.d.ts.map +1 -1
  223. package/dist/client/components/resources/PropsConfigDialog.d.ts +1 -1
  224. package/dist/client/components/resources/PropsConfigDialog.d.ts.map +1 -1
  225. package/dist/client/components/resources/ResourceResultDisplay.d.ts +1 -1
  226. package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +1 -1
  227. package/dist/client/components/resources/ResourcesList.d.ts +1 -1
  228. package/dist/client/components/resources/ResourcesList.d.ts.map +1 -1
  229. package/dist/client/components/shared/CollapsibleJSON.d.ts +6 -0
  230. package/dist/client/components/shared/CollapsibleJSON.d.ts.map +1 -0
  231. package/dist/client/components/shared/InspectorScrollArea.d.ts +9 -0
  232. package/dist/client/components/shared/InspectorScrollArea.d.ts.map +1 -0
  233. package/dist/client/components/shared/JSONDisplay.d.ts +5 -1
  234. package/dist/client/components/shared/JSONDisplay.d.ts.map +1 -1
  235. package/dist/client/components/shared/ListItem.d.ts +1 -3
  236. package/dist/client/components/shared/ListItem.d.ts.map +1 -1
  237. package/dist/client/components/shared/ListTabHeader.d.ts +4 -1
  238. package/dist/client/components/shared/ListTabHeader.d.ts.map +1 -1
  239. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
  240. package/dist/client/components/shared/SearchTabHeader.d.ts +28 -0
  241. package/dist/client/components/shared/SearchTabHeader.d.ts.map +1 -0
  242. package/dist/client/components/shared/StatusIcon.d.ts +12 -0
  243. package/dist/client/components/shared/StatusIcon.d.ts.map +1 -0
  244. package/dist/client/components/shared/index.d.ts +4 -1
  245. package/dist/client/components/shared/index.d.ts.map +1 -1
  246. package/dist/client/components/tools/SavedRequestsList.d.ts.map +1 -1
  247. package/dist/client/components/tools/ToolExecutionPanel.d.ts +1 -1
  248. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
  249. package/dist/client/components/tools/ToolInputForm.d.ts +1 -1
  250. package/dist/client/components/tools/ToolInputForm.d.ts.map +1 -1
  251. package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -6
  252. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
  253. package/dist/client/components/tools/ToolsList.d.ts +1 -1
  254. package/dist/client/components/tools/ToolsList.d.ts.map +1 -1
  255. package/dist/client/components/tools/useToolExecution.d.ts +26 -0
  256. package/dist/client/components/tools/useToolExecution.d.ts.map +1 -0
  257. package/dist/client/components/tools/useToolsTabNavigation.d.ts +35 -0
  258. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -0
  259. package/dist/client/components/ui/WidgetWrapper.d.ts +2 -2
  260. package/dist/client/components/ui/WidgetWrapper.d.ts.map +1 -1
  261. package/dist/client/components/ui/alert-dialog.d.ts +8 -5
  262. package/dist/client/components/ui/alert-dialog.d.ts.map +1 -1
  263. package/dist/client/components/ui/ask-user-questions.d.ts +80 -0
  264. package/dist/client/components/ui/ask-user-questions.d.ts.map +1 -0
  265. package/dist/client/components/ui/badge.d.ts +32 -7
  266. package/dist/client/components/ui/badge.d.ts.map +1 -1
  267. package/dist/client/components/ui/button.d.ts +31 -11
  268. package/dist/client/components/ui/button.d.ts.map +1 -1
  269. package/dist/client/components/ui/chat-message.d.ts +23 -0
  270. package/dist/client/components/ui/chat-message.d.ts.map +1 -0
  271. package/dist/client/components/ui/checkbox.d.ts +2 -3
  272. package/dist/client/components/ui/checkbox.d.ts.map +1 -1
  273. package/dist/client/components/ui/client-icons.d.ts +0 -4
  274. package/dist/client/components/ui/client-icons.d.ts.map +1 -1
  275. package/dist/client/components/ui/command.d.ts +13 -64
  276. package/dist/client/components/ui/command.d.ts.map +1 -1
  277. package/dist/client/components/ui/dialog.d.ts +36 -12
  278. package/dist/client/components/ui/dialog.d.ts.map +1 -1
  279. package/dist/client/components/ui/dropdown-menu.d.ts +17 -48
  280. package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -1
  281. package/dist/client/components/ui/dropdown.d.ts +30 -0
  282. package/dist/client/components/ui/dropdown.d.ts.map +1 -0
  283. package/dist/client/components/ui/file-thumbnail.d.ts +9 -0
  284. package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -0
  285. package/dist/client/components/ui/label.d.ts +1 -2
  286. package/dist/client/components/ui/label.d.ts.map +1 -1
  287. package/dist/client/components/ui/menu-item.d.ts +52 -0
  288. package/dist/client/components/ui/menu-item.d.ts.map +1 -0
  289. package/dist/client/components/ui/mesh-tab-background.d.ts +10 -0
  290. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -0
  291. package/dist/client/components/ui/not-found.d.ts.map +1 -1
  292. package/dist/client/components/ui/popover.d.ts +4 -5
  293. package/dist/client/components/ui/popover.d.ts.map +1 -1
  294. package/dist/client/components/ui/scroll-area.d.ts +4 -0
  295. package/dist/client/components/ui/scroll-area.d.ts.map +1 -0
  296. package/dist/client/components/ui/select.d.ts +50 -9
  297. package/dist/client/components/ui/select.d.ts.map +1 -1
  298. package/dist/client/components/ui/sheet.d.ts +9 -7
  299. package/dist/client/components/ui/sheet.d.ts.map +1 -1
  300. package/dist/client/components/ui/skeleton.d.ts +4 -0
  301. package/dist/client/components/ui/skeleton.d.ts.map +1 -0
  302. package/dist/client/components/ui/spinner.d.ts +1 -1
  303. package/dist/client/components/ui/spinner.d.ts.map +1 -1
  304. package/dist/client/components/ui/switch.d.ts +19 -7
  305. package/dist/client/components/ui/switch.d.ts.map +1 -1
  306. package/dist/client/components/ui/tabs-subtle.d.ts +25 -0
  307. package/dist/client/components/ui/tabs-subtle.d.ts.map +1 -0
  308. package/dist/client/components/ui/tooltip.d.ts +41 -6
  309. package/dist/client/components/ui/tooltip.d.ts.map +1 -1
  310. package/dist/client/context/InspectorContext.d.ts +6 -10
  311. package/dist/client/context/InspectorContext.d.ts.map +1 -1
  312. package/dist/client/context/WidgetDebugContext.d.ts +2 -3
  313. package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
  314. package/dist/client/hooks/use-merge-split.d.ts +36 -0
  315. package/dist/client/hooks/use-merge-split.d.ts.map +1 -0
  316. package/dist/client/hooks/use-proximity-hover-index.d.ts +27 -0
  317. package/dist/client/hooks/use-proximity-hover-index.d.ts.map +1 -0
  318. package/dist/client/hooks/use-proximity-hover.d.ts +26 -0
  319. package/dist/client/hooks/use-proximity-hover.d.ts.map +1 -0
  320. package/dist/client/hooks/use-touch-primary.d.ts +2 -0
  321. package/dist/client/hooks/use-touch-primary.d.ts.map +1 -0
  322. package/dist/client/hooks/useHostedSession.d.ts +4 -14
  323. package/dist/client/hooks/useHostedSession.d.ts.map +1 -1
  324. package/dist/client/hooks/useMCPPrompts.d.ts +1 -1
  325. package/dist/client/hooks/useMCPPrompts.d.ts.map +1 -1
  326. package/dist/client/hooks/useMcpAppsHostContext.d.ts +2 -2
  327. package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +1 -1
  328. package/dist/client/hooks/usePropsLLM.d.ts +1 -1
  329. package/dist/client/hooks/usePropsLLM.d.ts.map +1 -1
  330. package/dist/client/hooks/useSavedRequests.d.ts +6 -0
  331. package/dist/client/hooks/useSavedRequests.d.ts.map +1 -0
  332. package/dist/client/hooks/useViewHostProps.d.ts +19 -0
  333. package/dist/client/hooks/useViewHostProps.d.ts.map +1 -0
  334. package/dist/client/index.d.ts +19 -2
  335. package/dist/client/index.d.ts.map +1 -1
  336. package/dist/client/index.js +19306 -16141
  337. package/dist/client/lib/elevated.d.ts +28 -0
  338. package/dist/client/lib/elevated.d.ts.map +1 -0
  339. package/dist/client/lib/font-weight.d.ts +10 -0
  340. package/dist/client/lib/font-weight.d.ts.map +1 -0
  341. package/dist/client/lib/icon-context.d.ts +15 -0
  342. package/dist/client/lib/icon-context.d.ts.map +1 -0
  343. package/dist/client/lib/shape-context.d.ts +21 -0
  344. package/dist/client/lib/shape-context.d.ts.map +1 -0
  345. package/dist/client/lib/springs.d.ts +32 -0
  346. package/dist/client/lib/springs.d.ts.map +1 -0
  347. package/dist/client/lib/surface-classes.d.ts +2 -0
  348. package/dist/client/lib/surface-classes.d.ts.map +1 -0
  349. package/dist/client/lib/surface-context.d.ts +7 -0
  350. package/dist/client/lib/surface-context.d.ts.map +1 -0
  351. package/dist/client/lib/utils.d.ts +1 -1
  352. package/dist/client/lib/utils.d.ts.map +1 -1
  353. package/dist/client/mcp-apps/csp.d.ts +26 -0
  354. package/dist/client/mcp-apps/csp.d.ts.map +1 -0
  355. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +17 -0
  356. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +1 -0
  357. package/dist/client/mcp-apps/logging-transport.d.ts +13 -0
  358. package/dist/client/mcp-apps/logging-transport.d.ts.map +1 -0
  359. package/dist/client/rpc-traffic-coalesce.d.ts +7 -0
  360. package/dist/client/rpc-traffic-coalesce.d.ts.map +1 -0
  361. package/dist/client/rpc-traffic-store.d.ts +37 -0
  362. package/dist/client/rpc-traffic-store.d.ts.map +1 -0
  363. package/dist/client/telemetry/capture.d.ts +7 -0
  364. package/dist/client/telemetry/capture.d.ts.map +1 -0
  365. package/dist/client/telemetry/events.d.ts +1 -1
  366. package/dist/client/telemetry/events.d.ts.map +1 -1
  367. package/dist/client/telemetry/index.d.ts +2 -1
  368. package/dist/client/telemetry/index.d.ts.map +1 -1
  369. package/dist/client/telemetry/init.d.ts +2 -0
  370. package/dist/client/telemetry/init.d.ts.map +1 -0
  371. package/dist/client/telemetry/utils.d.ts +5 -0
  372. package/dist/client/telemetry/utils.d.ts.map +1 -1
  373. package/dist/client/types/message-content-block.d.ts +19 -0
  374. package/dist/client/types/message-content-block.d.ts.map +1 -0
  375. package/dist/client/types/pending-requests.d.ts +17 -0
  376. package/dist/client/types/pending-requests.d.ts.map +1 -0
  377. package/dist/client/utils/basePath.d.ts +34 -0
  378. package/dist/client/utils/basePath.d.ts.map +1 -0
  379. package/dist/client/utils/browser.d.ts +5 -0
  380. package/dist/client/utils/browser.d.ts.map +1 -0
  381. package/dist/client/utils/format.d.ts +4 -0
  382. package/dist/client/utils/format.d.ts.map +1 -0
  383. package/dist/client/utils/highlightJson.d.ts +11 -0
  384. package/dist/client/utils/highlightJson.d.ts.map +1 -0
  385. package/dist/client/utils/jsonUtils.d.ts +4 -0
  386. package/dist/client/utils/jsonUtils.d.ts.map +1 -1
  387. package/dist/client/utils/mcpClientUtils.d.ts.map +1 -1
  388. package/dist/client/utils/servers.d.ts +14 -0
  389. package/dist/client/utils/servers.d.ts.map +1 -0
  390. package/dist/server/cdn-shell.d.ts +18 -0
  391. package/dist/server/cdn-shell.d.ts.map +1 -0
  392. package/dist/server/cdn-shell.js +10 -0
  393. package/dist/server/chunk-5B3SXGZP.js +43 -0
  394. package/dist/server/chunk-6XWDZEFF.js +194 -0
  395. package/dist/server/chunk-ESODOPDD.js +50 -0
  396. package/dist/server/chunk-IKTZUWSX.js +0 -0
  397. package/dist/server/{chunk-57KIBVKX.js → chunk-J67FVPHF.js} +27 -26
  398. package/dist/server/chunk-K2F2AJOI.js +619 -0
  399. package/dist/server/chunk-K2V2SDQD.js +40 -0
  400. package/dist/server/{chunk-ZPHNDECP.js → chunk-THQ67TSE.js} +31 -32
  401. package/dist/server/chunk-TPHRVELX.js +130 -0
  402. package/dist/server/chunk-WFT4JHYI.js +24 -0
  403. package/dist/server/cli.js +23 -25
  404. package/dist/server/create-dev-api-app.d.ts +4 -0
  405. package/dist/server/create-dev-api-app.d.ts.map +1 -0
  406. package/dist/server/create-dev-api-app.js +11 -0
  407. package/dist/server/favicon-links.d.ts +12 -0
  408. package/dist/server/favicon-links.d.ts.map +1 -0
  409. package/dist/server/favicon-links.js +11 -0
  410. package/dist/server/favicon-static.d.ts +4 -0
  411. package/dist/server/favicon-static.d.ts.map +1 -0
  412. package/dist/server/favicon-static.js +8 -0
  413. package/dist/server/index.d.ts +3 -4
  414. package/dist/server/index.d.ts.map +1 -1
  415. package/dist/server/index.js +13 -17
  416. package/dist/server/middleware.d.ts +14 -3
  417. package/dist/server/middleware.d.ts.map +1 -1
  418. package/dist/server/middleware.js +9 -9
  419. package/dist/server/proxy/index.d.ts +3 -0
  420. package/dist/server/proxy/index.d.ts.map +1 -0
  421. package/dist/server/proxy/index.js +12 -0
  422. package/dist/server/proxy/mcp-proxy.d.ts +99 -0
  423. package/dist/server/proxy/mcp-proxy.d.ts.map +1 -0
  424. package/dist/server/proxy/mcp-proxy.js +8 -0
  425. package/dist/server/proxy/oauth-proxy.d.ts +26 -0
  426. package/dist/server/proxy/oauth-proxy.d.ts.map +1 -0
  427. package/dist/server/proxy/oauth-proxy.js +9 -0
  428. package/dist/server/proxy-routes.d.ts +16 -0
  429. package/dist/server/proxy-routes.d.ts.map +1 -0
  430. package/dist/server/proxy-routes.js +10 -0
  431. package/dist/server/rpc-log-bus.js +73 -3
  432. package/dist/server/server.d.ts +3 -8
  433. package/dist/server/server.d.ts.map +1 -1
  434. package/dist/server/server.js +15 -92
  435. package/dist/server/version.js +1 -1
  436. package/dist/server/vite-dev-api-plugin.d.ts +4 -0
  437. package/dist/server/vite-dev-api-plugin.d.ts.map +1 -0
  438. package/dist/server/vite-dev-api-plugin.js +30 -0
  439. package/dist/web/apple-touch-icon.png +0 -0
  440. package/dist/web/assets/AnimatePresence-CthXziG2.js +9 -0
  441. package/dist/web/assets/ChatTab-CiAqtqhj.js +460 -0
  442. package/dist/web/assets/ConnectionSettingsTab-CTh6MFKE.js +1 -0
  443. package/dist/web/assets/ElicitationTab-B3Eg0_Jm.js +1 -0
  444. package/dist/web/assets/FormContext-Cqc_A12u.js +1 -0
  445. package/dist/web/assets/ListTabHeader-G-nQX18m.js +1 -0
  446. package/dist/web/assets/ManufactOAuthCallback-B-tdkUA2.js +1 -0
  447. package/dist/web/assets/NotificationsTab-BgLjxuos.js +1 -0
  448. package/dist/web/assets/OAuthCallback-Bp-jLoQs.js +1 -0
  449. package/dist/web/assets/PromptsTab-CA-SZs43.js +61 -0
  450. package/dist/web/assets/ResourcesTab-DdMIW_af.js +2 -0
  451. package/dist/web/assets/SamplingTab-DjyDG01W.js +1 -0
  452. package/dist/web/assets/ServerMetadataTab-Q4PlqP_B.js +1 -0
  453. package/dist/web/assets/ToolsTab-BHk8GCmd.js +8 -0
  454. package/dist/web/assets/ViewPreview-DWtmwzCb.js +1 -0
  455. package/dist/web/assets/WidgetWrapper-B43lqbld.js +34 -0
  456. package/dist/web/assets/brush--0LobUi4.js +1 -0
  457. package/dist/web/assets/bundle-mjs-8puS6ou7.js +1 -0
  458. package/dist/web/assets/checkbox-_GzEPQic.js +1 -0
  459. package/dist/web/assets/chunk-BO2N2NFS-BdIeB5Lr.js +131 -0
  460. package/dist/web/assets/code-tME-5H6D.js +1 -0
  461. package/dist/web/assets/createLucideIcon-B3b8EU0b.js +1 -0
  462. package/dist/web/assets/dist-DQjEDTKs.js +21 -0
  463. package/dist/web/assets/highlighted-body-OFNGDK62-Dp3e1QHL.js +1 -0
  464. package/dist/web/assets/index-Bbn-6QR2.js +475 -0
  465. package/dist/web/assets/index-BjH-Qp85.css +1 -0
  466. package/dist/web/assets/input-CjmxOFr6.js +1 -0
  467. package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +1 -0
  468. package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +1 -0
  469. package/dist/web/assets/label-B5Q_Zr8M.js +1 -0
  470. package/dist/web/assets/maximize-2-BTT9QQU9.js +1 -0
  471. package/dist/web/assets/maximize-_O55kFcr.js +1 -0
  472. package/dist/web/assets/mermaid-GHXKKRXX-yq1lkD3x.js +1 -0
  473. package/dist/web/assets/pdf-C3cfS_Ha.js +54 -0
  474. package/dist/web/assets/react-CU_d2d5K.js +1 -0
  475. package/dist/web/assets/refresh-cw-C9wQl8_d.js +1 -0
  476. package/dist/web/assets/save-B-MsgxX9.js +1 -0
  477. package/dist/web/assets/schemaHelpers-DLNTQr_6.js +1 -0
  478. package/dist/web/assets/select-C0xlfLAa.js +1 -0
  479. package/dist/web/assets/shared-Dfwy7nyg.js +1 -0
  480. package/dist/web/assets/sheet-CRPrEqAa.js +1 -0
  481. package/dist/web/assets/sparkles-2OAsc1aP.js +1 -0
  482. package/dist/web/assets/tabs-subtle-Dxgism9f.js +1 -0
  483. package/dist/web/assets/textarea-Ci09-en6.js +1 -0
  484. package/dist/web/assets/useConfig-b1f_iVFH.js +1 -0
  485. package/dist/web/assets/useMCPPrompts-CPskz9af.js +1 -0
  486. package/dist/web/assets/useViewHostProps-BgsQ2yYl.js +1 -0
  487. package/dist/web/assets/zap-Du2Uc5pa.js +1 -0
  488. package/dist/web/favicon-96x96.png +0 -0
  489. package/dist/web/favicon-black.svg +5 -8
  490. package/dist/web/favicon-white.svg +4 -7
  491. package/dist/web/favicon.ico +0 -0
  492. package/dist/web/favicon.svg +5 -0
  493. package/dist/web/index.html +13 -20
  494. package/dist/web/site.webmanifest +21 -0
  495. package/dist/web/web-app-manifest-192x192.png +0 -0
  496. package/dist/web/web-app-manifest-512x512.png +0 -0
  497. package/package.json +29 -30
  498. package/dist/client/components/FullscreenNavbar.d.ts +0 -9
  499. package/dist/client/components/FullscreenNavbar.d.ts.map +0 -1
  500. package/dist/client/components/LoginModal.d.ts +0 -11
  501. package/dist/client/components/LoginModal.d.ts.map +0 -1
  502. package/dist/client/components/MCPAppsRenderer.d.ts +0 -53
  503. package/dist/client/components/MCPAppsRenderer.d.ts.map +0 -1
  504. package/dist/client/components/McpUIRenderer.d.ts +0 -19
  505. package/dist/client/components/McpUIRenderer.d.ts.map +0 -1
  506. package/dist/client/components/OpenAIComponentRenderer.d.ts +0 -51
  507. package/dist/client/components/OpenAIComponentRenderer.d.ts.map +0 -1
  508. package/dist/client/components/chat/InlineElicitationCard.d.ts +0 -10
  509. package/dist/client/components/chat/InlineElicitationCard.d.ts.map +0 -1
  510. package/dist/client/components/chat/MCPUIResource.d.ts +0 -11
  511. package/dist/client/components/chat/MCPUIResource.d.ts.map +0 -1
  512. package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts +0 -21
  513. package/dist/client/components/elicitation/shared/ElicitationFormFields.d.ts.map +0 -1
  514. package/dist/client/components/elicitation/shared/index.d.ts +0 -3
  515. package/dist/client/components/elicitation/shared/index.d.ts.map +0 -1
  516. package/dist/client/components/elicitation/shared/useElicitationForm.d.ts +0 -23
  517. package/dist/client/components/elicitation/shared/useElicitationForm.d.ts.map +0 -1
  518. package/dist/client/components/logging/JsonRpcLoggerView.d.ts +0 -20
  519. package/dist/client/components/logging/JsonRpcLoggerView.d.ts.map +0 -1
  520. package/dist/client/components/prompts/PromptsTabHeader.d.ts +0 -17
  521. package/dist/client/components/prompts/PromptsTabHeader.d.ts.map +0 -1
  522. package/dist/client/components/prompts/index.d.ts +0 -6
  523. package/dist/client/components/prompts/index.d.ts.map +0 -1
  524. package/dist/client/components/resources/ResourcesTabHeader.d.ts +0 -16
  525. package/dist/client/components/resources/ResourcesTabHeader.d.ts.map +0 -1
  526. package/dist/client/components/resources/index.d.ts +0 -4
  527. package/dist/client/components/resources/index.d.ts.map +0 -1
  528. package/dist/client/components/shared/RpcPanel.d.ts +0 -21
  529. package/dist/client/components/shared/RpcPanel.d.ts.map +0 -1
  530. package/dist/client/components/tools/ToolsTabHeader.d.ts +0 -17
  531. package/dist/client/components/tools/ToolsTabHeader.d.ts.map +0 -1
  532. package/dist/client/components/tools/index.d.ts +0 -7
  533. package/dist/client/components/tools/index.d.ts.map +0 -1
  534. package/dist/client/components/ui/SandboxedIframe.d.ts +0 -64
  535. package/dist/client/components/ui/SandboxedIframe.d.ts.map +0 -1
  536. package/dist/client/components/ui/aurora-background.d.ts +0 -9
  537. package/dist/client/components/ui/aurora-background.d.ts.map +0 -1
  538. package/dist/client/constants/iframe.d.ts +0 -9
  539. package/dist/client/constants/iframe.d.ts.map +0 -1
  540. package/dist/client/constants/index.d.ts +0 -7
  541. package/dist/client/constants/index.d.ts.map +0 -1
  542. package/dist/client/constants/mcp-apps.d.ts +0 -39
  543. package/dist/client/constants/mcp-apps.d.ts.map +0 -1
  544. package/dist/client/hooks/usePrismTheme.d.ts +0 -5
  545. package/dist/client/hooks/usePrismTheme.d.ts.map +0 -1
  546. package/dist/client/lib/use-sandbox-remount-generation.d.ts +0 -9
  547. package/dist/client/lib/use-sandbox-remount-generation.d.ts.map +0 -1
  548. package/dist/client/lib/widget-fullscreen.d.ts +0 -17
  549. package/dist/client/lib/widget-fullscreen.d.ts.map +0 -1
  550. package/dist/client/telemetry/telemetry.d.ts +0 -42
  551. package/dist/client/telemetry/telemetry.d.ts.map +0 -1
  552. package/dist/client/types/elicitation.d.ts +0 -9
  553. package/dist/client/types/elicitation.d.ts.map +0 -1
  554. package/dist/client/utils/clipboard.d.ts +0 -6
  555. package/dist/client/utils/clipboard.d.ts.map +0 -1
  556. package/dist/client/utils/iframeConsoleInterceptor.d.ts +0 -6
  557. package/dist/client/utils/iframeConsoleInterceptor.d.ts.map +0 -1
  558. package/dist/client/utils/widget-detection.d.ts +0 -31
  559. package/dist/client/utils/widget-detection.d.ts.map +0 -1
  560. package/dist/llm/__tests__/messageFormat.test.d.ts +0 -2
  561. package/dist/llm/__tests__/messageFormat.test.d.ts.map +0 -1
  562. package/dist/llm/__tests__/providerToolResults.test.d.ts +0 -2
  563. package/dist/llm/__tests__/providerToolResults.test.d.ts.map +0 -1
  564. package/dist/llm/__tests__/toolResultParts.test.d.ts +0 -2
  565. package/dist/llm/__tests__/toolResultParts.test.d.ts.map +0 -1
  566. package/dist/llm/messageFormat.d.ts +0 -48
  567. package/dist/llm/messageFormat.d.ts.map +0 -1
  568. package/dist/llm/ndjson.d.ts +0 -5
  569. package/dist/llm/ndjson.d.ts.map +0 -1
  570. package/dist/llm/providers/anthropic.d.ts +0 -19
  571. package/dist/llm/providers/anthropic.d.ts.map +0 -1
  572. package/dist/llm/providers/google.d.ts +0 -19
  573. package/dist/llm/providers/google.d.ts.map +0 -1
  574. package/dist/llm/providers/index.d.ts +0 -19
  575. package/dist/llm/providers/index.d.ts.map +0 -1
  576. package/dist/llm/providers/ollama/index.d.ts +0 -18
  577. package/dist/llm/providers/ollama/index.d.ts.map +0 -1
  578. package/dist/llm/providers/ollama/utils.d.ts +0 -7
  579. package/dist/llm/providers/ollama/utils.d.ts.map +0 -1
  580. package/dist/llm/providers/openai.d.ts +0 -19
  581. package/dist/llm/providers/openai.d.ts.map +0 -1
  582. package/dist/llm/schemaUtils.d.ts +0 -2
  583. package/dist/llm/schemaUtils.d.ts.map +0 -1
  584. package/dist/llm/sse.d.ts +0 -15
  585. package/dist/llm/sse.d.ts.map +0 -1
  586. package/dist/llm/toolLoop.d.ts +0 -40
  587. package/dist/llm/toolLoop.d.ts.map +0 -1
  588. package/dist/llm/toolResultParts.d.ts +0 -28
  589. package/dist/llm/toolResultParts.d.ts.map +0 -1
  590. package/dist/llm/types.d.ts +0 -102
  591. package/dist/llm/types.d.ts.map +0 -1
  592. package/dist/server/chunk-63EJEHRP.js +0 -71
  593. package/dist/server/chunk-A4VH7AIP.js +0 -738
  594. package/dist/server/chunk-CVECQ7BJ.js +0 -78
  595. package/dist/server/chunk-IDMHJUEM.js +0 -42
  596. package/dist/server/chunk-KIJYOTYZ.js +0 -322
  597. package/dist/server/chunk-PJNKFX2R.js +0 -2351
  598. package/dist/server/chunk-QQ37LGLJ.js +0 -127
  599. package/dist/server/chunk-R4ISUE7T.js +0 -164
  600. package/dist/server/chunk-UTW44YSH.js +0 -322
  601. package/dist/server/file-utils.d.ts +0 -11
  602. package/dist/server/file-utils.d.ts.map +0 -1
  603. package/dist/server/file-utils.js +0 -11
  604. package/dist/server/routes/mcp-apps.d.ts +0 -12
  605. package/dist/server/routes/mcp-apps.d.ts.map +0 -1
  606. package/dist/server/shared-routes.d.ts +0 -11
  607. package/dist/server/shared-routes.d.ts.map +0 -1
  608. package/dist/server/shared-routes.js +0 -11
  609. package/dist/server/shared-static.d.ts +0 -57
  610. package/dist/server/shared-static.d.ts.map +0 -1
  611. package/dist/server/shared-static.js +0 -11
  612. package/dist/server/shared-utils.d.ts +0 -175
  613. package/dist/server/shared-utils.d.ts.map +0 -1
  614. package/dist/server/shared-utils.js +0 -21
  615. package/dist/server/transport-wrapper.d.ts +0 -6
  616. package/dist/server/transport-wrapper.d.ts.map +0 -1
  617. package/dist/server/transport-wrapper.js +0 -68
  618. package/dist/server/tunnel.d.ts +0 -11
  619. package/dist/server/tunnel.d.ts.map +0 -1
  620. package/dist/server/tunnel.js +0 -13
  621. package/dist/web/assets/1c-D19GPo3L.js +0 -1
  622. package/dist/web/assets/abnf-BR1TaWs-.js +0 -1
  623. package/dist/web/assets/accesslog-CZxiyYuK.js +0 -1
  624. package/dist/web/assets/actionscript-BS1fMZ9M.js +0 -1
  625. package/dist/web/assets/ada-Dhy1EabM.js +0 -1
  626. package/dist/web/assets/angelscript-Gjldi7xi.js +0 -1
  627. package/dist/web/assets/apache-Cx8TUABI.js +0 -1
  628. package/dist/web/assets/applescript-JfBNOabq.js +0 -1
  629. package/dist/web/assets/arcade-E6zGzFSx.js +0 -1
  630. package/dist/web/assets/arduino-D7Y37T_-.js +0 -1
  631. package/dist/web/assets/armasm-vpTNgAzt.js +0 -1
  632. package/dist/web/assets/asciidoc-DaVECsQY.js +0 -1
  633. package/dist/web/assets/aspectj-CdRAuqVM.js +0 -1
  634. package/dist/web/assets/autohotkey-DvZQekH9.js +0 -1
  635. package/dist/web/assets/autoit-oLytjhLA.js +0 -1
  636. package/dist/web/assets/avrasm-5Cf9yIw9.js +0 -1
  637. package/dist/web/assets/awk-Bf_S2P0n.js +0 -1
  638. package/dist/web/assets/axapta-DrOS6bUw.js +0 -1
  639. package/dist/web/assets/bash-DCVWALRV.js +0 -1
  640. package/dist/web/assets/basic-D0GZ3REU.js +0 -1
  641. package/dist/web/assets/bnf-D74FvP-b.js +0 -1
  642. package/dist/web/assets/brainfuck-DwUXsIlY.js +0 -3
  643. package/dist/web/assets/c-CPGbDsng.js +0 -1
  644. package/dist/web/assets/c-like-DLj4FsHF.js +0 -1
  645. package/dist/web/assets/cal-Czm5e2Qe.js +0 -1
  646. package/dist/web/assets/capnproto-CVJ2fID7.js +0 -1
  647. package/dist/web/assets/ceylon-DR5D2yFU.js +0 -1
  648. package/dist/web/assets/clean-CkIuagdM.js +0 -1
  649. package/dist/web/assets/clojure-VwyIEQaz.js +0 -1
  650. package/dist/web/assets/clojure-repl-jCSr2ntH.js +0 -1
  651. package/dist/web/assets/cmake-D2Zl_q65.js +0 -1
  652. package/dist/web/assets/coffeescript-C7Hfrw9O.js +0 -1
  653. package/dist/web/assets/coq-DAxtVI93.js +0 -1
  654. package/dist/web/assets/core-ICctFm9I.js +0 -4
  655. package/dist/web/assets/cos-0GHB8yn1.js +0 -1
  656. package/dist/web/assets/cpp-DdlDGc99.js +0 -1
  657. package/dist/web/assets/crmsh-C0vbH3xd.js +0 -1
  658. package/dist/web/assets/crystal-BloCCkus.js +0 -1
  659. package/dist/web/assets/csharp-YhN72Cls.js +0 -1
  660. package/dist/web/assets/csp-OAeIWScz.js +0 -1
  661. package/dist/web/assets/css-D1ih01yA.js +0 -1
  662. package/dist/web/assets/d-yGrz2xEC.js +0 -1
  663. package/dist/web/assets/dart-C3qG0xpq.js +0 -1
  664. package/dist/web/assets/delphi-CvoiTamH.js +0 -1
  665. package/dist/web/assets/diff-zDaBDf86.js +0 -1
  666. package/dist/web/assets/django-DBYOwnaY.js +0 -1
  667. package/dist/web/assets/dns-BWy_Oa_w.js +0 -1
  668. package/dist/web/assets/dockerfile-Cj5YqQiP.js +0 -1
  669. package/dist/web/assets/dos-AaJBzvG4.js +0 -1
  670. package/dist/web/assets/dsconfig-BgEbyf_A.js +0 -1
  671. package/dist/web/assets/dts-z64kku76.js +0 -1
  672. package/dist/web/assets/dust-C-6seNMG.js +0 -1
  673. package/dist/web/assets/ebnf-DC6yB_8o.js +0 -1
  674. package/dist/web/assets/elixir-DVZgqY4T.js +0 -1
  675. package/dist/web/assets/elm-Css3uC5x.js +0 -1
  676. package/dist/web/assets/erb-C538Iixw.js +0 -1
  677. package/dist/web/assets/erlang-DyDPiXgX.js +0 -1
  678. package/dist/web/assets/erlang-repl-CVIWmQKC.js +0 -1
  679. package/dist/web/assets/excel-BLHu7SPw.js +0 -1
  680. package/dist/web/assets/fix-JPCm4C-u.js +0 -1
  681. package/dist/web/assets/flix-DejUTEwL.js +0 -1
  682. package/dist/web/assets/fortran-CK7Rlzc4.js +0 -1
  683. package/dist/web/assets/fsharp-ZgHvh-ZT.js +0 -1
  684. package/dist/web/assets/gams-BIBfDr3x.js +0 -1
  685. package/dist/web/assets/gauss-DttPF6Qr.js +0 -1
  686. package/dist/web/assets/gcode-BXL931mb.js +0 -1
  687. package/dist/web/assets/gherkin-B7qFZ0rb.js +0 -1
  688. package/dist/web/assets/glsl-BSKhKy8T.js +0 -1
  689. package/dist/web/assets/gml-BcbsDsfr.js +0 -1
  690. package/dist/web/assets/go-BksciLaM.js +0 -1
  691. package/dist/web/assets/golo-D2QFLiUq.js +0 -1
  692. package/dist/web/assets/gradle-BH3VzvYn.js +0 -1
  693. package/dist/web/assets/groovy-Bv9ooqes.js +0 -1
  694. package/dist/web/assets/haml-CacWyVgj.js +0 -1
  695. package/dist/web/assets/handlebars-Cpp3MUlG.js +0 -1
  696. package/dist/web/assets/haskell-BQM3-EaA.js +0 -1
  697. package/dist/web/assets/haxe-Df4nG9sq.js +0 -1
  698. package/dist/web/assets/hsp-sHEckFHE.js +0 -1
  699. package/dist/web/assets/htmlbars-shnKLbrr.js +0 -1
  700. package/dist/web/assets/http-CNJ01fsj.js +0 -1
  701. package/dist/web/assets/hy-B3oY6sFO.js +0 -1
  702. package/dist/web/assets/index-C4BqUITd.css +0 -2
  703. package/dist/web/assets/index-DB2yAAMO.js +0 -848
  704. package/dist/web/assets/inform7-CNEOVpOE.js +0 -1
  705. package/dist/web/assets/ini-q6ZmK_Ll.js +0 -1
  706. package/dist/web/assets/irpf90-CHcNzzFG.js +0 -1
  707. package/dist/web/assets/isbl-ClZ-43Pe.js +0 -1
  708. package/dist/web/assets/java-C63Whuw3.js +0 -1
  709. package/dist/web/assets/javascript-BAgDYvOy.js +0 -1
  710. package/dist/web/assets/jboss-cli-qjpm-ZOy.js +0 -1
  711. package/dist/web/assets/json-DT8at3fD.js +0 -1
  712. package/dist/web/assets/julia-B3hjMqCS.js +0 -1
  713. package/dist/web/assets/julia-repl-BWC_EUt4.js +0 -1
  714. package/dist/web/assets/kotlin-DnDhVR1g.js +0 -2
  715. package/dist/web/assets/lasso-7_9jkuWm.js +0 -1
  716. package/dist/web/assets/latex-7NcBU-sp.js +0 -1
  717. package/dist/web/assets/ldif-BKsNETfE.js +0 -1
  718. package/dist/web/assets/leaf-Dr24XSMP.js +0 -1
  719. package/dist/web/assets/less-Da52wdLB.js +0 -1
  720. package/dist/web/assets/lisp-CxEhJv_S.js +0 -1
  721. package/dist/web/assets/livecodeserver-DyLLEQa3.js +0 -1
  722. package/dist/web/assets/livescript-DuMxIrKU.js +0 -1
  723. package/dist/web/assets/llvm-M9yuLNva.js +0 -1
  724. package/dist/web/assets/lsl-BP2wVZAx.js +0 -1
  725. package/dist/web/assets/lua-B0U8rByV.js +0 -1
  726. package/dist/web/assets/makefile-DL3DBvu0.js +0 -1
  727. package/dist/web/assets/markdown-jLDab-Ns.js +0 -1
  728. package/dist/web/assets/mathematica-2lChxOtk.js +0 -1
  729. package/dist/web/assets/matlab-BbPZe1tR.js +0 -1
  730. package/dist/web/assets/maxima-BdT1lNyu.js +0 -1
  731. package/dist/web/assets/mel-CxSMh57a.js +0 -1
  732. package/dist/web/assets/mercury-e3yoICSq.js +0 -1
  733. package/dist/web/assets/mipsasm--tpOiQ5I.js +0 -1
  734. package/dist/web/assets/mizar-DN4-ri-A.js +0 -1
  735. package/dist/web/assets/module-3nkmv-tD.js +0 -4
  736. package/dist/web/assets/mojolicious-lKYGBrCw.js +0 -1
  737. package/dist/web/assets/monkey-CvEgDQbs.js +0 -1
  738. package/dist/web/assets/moonscript-BgjEcnsm.js +0 -1
  739. package/dist/web/assets/n1ql-CtsXVmUQ.js +0 -1
  740. package/dist/web/assets/nginx-C6tprI2e.js +0 -1
  741. package/dist/web/assets/nim-B3y0lYop.js +0 -1
  742. package/dist/web/assets/nix-BczA7CjW.js +0 -1
  743. package/dist/web/assets/node-repl-DGgD94SZ.js +0 -1
  744. package/dist/web/assets/nsis-C_SmguFH.js +0 -1
  745. package/dist/web/assets/objectivec-2mUTCw1f.js +0 -1
  746. package/dist/web/assets/ocaml-Cn7F37_9.js +0 -1
  747. package/dist/web/assets/openscad-CkenTSp3.js +0 -1
  748. package/dist/web/assets/oxygene-D7pQi21T.js +0 -1
  749. package/dist/web/assets/parser3--pt_dbbu.js +0 -1
  750. package/dist/web/assets/perl-C0job7Qz.js +0 -1
  751. package/dist/web/assets/pf-CfWQAyKz.js +0 -1
  752. package/dist/web/assets/pgsql-CKshFhGu.js +0 -1
  753. package/dist/web/assets/php-CNUWaUh2.js +0 -1
  754. package/dist/web/assets/php-template-BCrABFi4.js +0 -1
  755. package/dist/web/assets/plaintext-ChYroSk0.js +0 -1
  756. package/dist/web/assets/pony-Bh4zwDWt.js +0 -1
  757. package/dist/web/assets/powershell-BuAlXUWx.js +0 -1
  758. package/dist/web/assets/processing-Bb5btTkH.js +0 -1
  759. package/dist/web/assets/profile-BOk16iWu.js +0 -1
  760. package/dist/web/assets/prolog-MHE4b3nq.js +0 -1
  761. package/dist/web/assets/properties-CZfxER-Q.js +0 -1
  762. package/dist/web/assets/protobuf-C_54DU4K.js +0 -1
  763. package/dist/web/assets/puppet-Z-t3L629.js +0 -1
  764. package/dist/web/assets/purebasic-CZKfEDHv.js +0 -1
  765. package/dist/web/assets/python-BvGG_JZE.js +0 -1
  766. package/dist/web/assets/python-repl-DaUVEuDx.js +0 -1
  767. package/dist/web/assets/q-CvWis_nQ.js +0 -1
  768. package/dist/web/assets/qml-2XPxalcH.js +0 -1
  769. package/dist/web/assets/r-DTTPbRAt.js +0 -1
  770. package/dist/web/assets/reasonml-CyJw_qBZ.js +0 -1
  771. package/dist/web/assets/rib-GYMKCC1Y.js +0 -1
  772. package/dist/web/assets/roboconf-CV_6N_o7.js +0 -1
  773. package/dist/web/assets/routeros-C11OKG9F.js +0 -1
  774. package/dist/web/assets/rpc-logger-TPNV75J4-CvwEntuM.js +0 -1
  775. package/dist/web/assets/rsl-rez9LEUy.js +0 -1
  776. package/dist/web/assets/ruby-_B4GQ_7D.js +0 -1
  777. package/dist/web/assets/ruleslanguage-jRg89I6w.js +0 -1
  778. package/dist/web/assets/rust-qdkaNniS.js +0 -1
  779. package/dist/web/assets/sas-BNjYSnSg.js +0 -1
  780. package/dist/web/assets/scala-CVLdU51z.js +0 -1
  781. package/dist/web/assets/scheme-Cneig3hI.js +0 -1
  782. package/dist/web/assets/scilab-DxKCNrof.js +0 -1
  783. package/dist/web/assets/scss-DQ23aG9u.js +0 -1
  784. package/dist/web/assets/shell-BgVIEdPP.js +0 -1
  785. package/dist/web/assets/smali-KZ0XB6tA.js +0 -2
  786. package/dist/web/assets/smalltalk-CYsrtMqX.js +0 -1
  787. package/dist/web/assets/sml-CwPjhShZ.js +0 -1
  788. package/dist/web/assets/sqf-Dyh-UyfR.js +0 -1
  789. package/dist/web/assets/sql-BqwecpD_.js +0 -1
  790. package/dist/web/assets/sql_more-CUF5pbmY.js +0 -1
  791. package/dist/web/assets/stan-Ddf5JFRA.js +0 -1
  792. package/dist/web/assets/stata-XlPupwqv.js +0 -3
  793. package/dist/web/assets/step21-CucMyzRd.js +0 -1
  794. package/dist/web/assets/stylus-nj6mAxkC.js +0 -1
  795. package/dist/web/assets/subunit-CiXRLQcz.js +0 -3
  796. package/dist/web/assets/swift-CIdqZMKK.js +0 -1
  797. package/dist/web/assets/taggerscript-m6_DnfoH.js +0 -1
  798. package/dist/web/assets/tap-DbEec7Q2.js +0 -1
  799. package/dist/web/assets/tcl-n8aGQ2H6.js +0 -1
  800. package/dist/web/assets/thrift-J1PtwUUl.js +0 -1
  801. package/dist/web/assets/tp-CnbYKLYQ.js +0 -1
  802. package/dist/web/assets/twig-BEBOjZvM.js +0 -1
  803. package/dist/web/assets/typescript-BwvhN9Dw.js +0 -1
  804. package/dist/web/assets/vala-BSRZa9oU.js +0 -1
  805. package/dist/web/assets/vbnet-BhOhpmOF.js +0 -1
  806. package/dist/web/assets/vbscript-BpRpQGFw.js +0 -1
  807. package/dist/web/assets/vbscript-html-z-0GWV6e.js +0 -1
  808. package/dist/web/assets/verilog-CE-mWkfc.js +0 -1
  809. package/dist/web/assets/vhdl-hkUj0_K7.js +0 -1
  810. package/dist/web/assets/vim-XK7W3JN3.js +0 -1
  811. package/dist/web/assets/x86asm-D0cmZUWd.js +0 -1
  812. package/dist/web/assets/xl-dRKa8VcI.js +0 -1
  813. package/dist/web/assets/xml-BGrFHpDb.js +0 -1
  814. package/dist/web/assets/xquery-B7qeO1Sf.js +0 -1
  815. package/dist/web/assets/yaml-DErfnXTM.js +0 -1
  816. package/dist/web/assets/zephir-O2ApOQbM.js +0 -1
@@ -0,0 +1,873 @@
1
+ import { s as e, t } from "./react-BIs9pQ3H.js";
2
+ import { t as n } from "./jsx-runtime-CIxvMpEo.js";
3
+ import { Rr as r, sr as i, t as a } from "./input-BLxOA7V-.js";
4
+ import { t as o } from "./label-CBvG613A.js";
5
+ import { a as s, i as c, n as l, r as u, t as d } from "./select-BZ_IoKxg.js";
6
+ import { t as f } from "./createLucideIcon-C5fZZ6oB.js";
7
+ import { c as p, l as m, n as h, o as g, r as _, t as v, w as y, x as b } from "./dialog-Dnl-pZsY.js";
8
+ import { i as ee, t as te } from "./browser-CbQIH4w2.js";
9
+ import { n as ne, t as x } from "./eye-B7H96av8.js";
10
+ import { t as S } from "./trash-2-RwpJY5SL.js";
11
+ import { t as C } from "./react-yUi9mVK4.js";
12
+ import { r as w } from "./basePath-B8HuhIMu.js";
13
+ import { i as T, r as E } from "./servers-Dm72iTpY.js";
14
+ import { n as D } from "./dist-DjXr_YO3.js";
15
+ import { a as O, i as k, n as A, r as j, t as M } from "./card-DqjqAq0o.js";
16
+ var re = f("cog", [
17
+ ["path", {
18
+ d: "M11 10.27 7 3.34",
19
+ key: "16pf9h"
20
+ }],
21
+ ["path", {
22
+ d: "m11 13.73-4 6.93",
23
+ key: "794ttg"
24
+ }],
25
+ ["path", {
26
+ d: "M12 22v-2",
27
+ key: "1osdcq"
28
+ }],
29
+ ["path", {
30
+ d: "M12 2v2",
31
+ key: "tus03m"
32
+ }],
33
+ ["path", {
34
+ d: "M14 12h8",
35
+ key: "4f43i9"
36
+ }],
37
+ ["path", {
38
+ d: "m17 20.66-1-1.73",
39
+ key: "eq3orb"
40
+ }],
41
+ ["path", {
42
+ d: "m17 3.34-1 1.73",
43
+ key: "2wel8s"
44
+ }],
45
+ ["path", {
46
+ d: "M2 12h2",
47
+ key: "1t8f8n"
48
+ }],
49
+ ["path", {
50
+ d: "m20.66 17-1.73-1",
51
+ key: "sg0v6f"
52
+ }],
53
+ ["path", {
54
+ d: "m20.66 7-1.73 1",
55
+ key: "1ow05n"
56
+ }],
57
+ ["path", {
58
+ d: "m3.34 17 1.73-1",
59
+ key: "nuk764"
60
+ }],
61
+ ["path", {
62
+ d: "m3.34 7 1.73 1",
63
+ key: "1ulond"
64
+ }],
65
+ ["circle", {
66
+ cx: "12",
67
+ cy: "12",
68
+ r: "2",
69
+ key: "1c9p78"
70
+ }],
71
+ ["circle", {
72
+ cx: "12",
73
+ cy: "12",
74
+ r: "8",
75
+ key: "46899m"
76
+ }]
77
+ ]), ie = f("file-text", [
78
+ ["path", {
79
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
80
+ key: "1oefj6"
81
+ }],
82
+ ["path", {
83
+ d: "M14 2v5a1 1 0 0 0 1 1h5",
84
+ key: "wfsgrz"
85
+ }],
86
+ ["path", {
87
+ d: "M10 9H8",
88
+ key: "b1mrlr"
89
+ }],
90
+ ["path", {
91
+ d: "M16 13H8",
92
+ key: "t4e002"
93
+ }],
94
+ ["path", {
95
+ d: "M16 17H8",
96
+ key: "z1uh3a"
97
+ }]
98
+ ]), N = /* @__PURE__ */ e(t(), 1), P = n();
99
+ function F() {
100
+ if (typeof window > "u") return "";
101
+ let e = window.__MCP_PROXY_URL__;
102
+ return e === null ? "" : `${window.location.origin}${e || w("proxy")}`;
103
+ }
104
+ function I(e, t, n = !1) {
105
+ return e === "auto" || e === "direct" || e === "proxy" ? e : t === "Via Proxy" ? "proxy" : t === "Direct" ? "auto" : n ? "proxy" : "auto";
106
+ }
107
+ function L(e) {
108
+ return !e || typeof e == "boolean" ? "" : e.proxyAddress?.trim() || "";
109
+ }
110
+ var R = [
111
+ "requestTimeout",
112
+ "resetTimeoutOnProgress",
113
+ "maxTotalTimeout"
114
+ ];
115
+ function z(e) {
116
+ if (!e) return {};
117
+ let t = {};
118
+ for (let n of R) {
119
+ let r = e[n];
120
+ r !== void 0 && (t[n] = r);
121
+ }
122
+ return t;
123
+ }
124
+ function B(e, t) {
125
+ try {
126
+ let n = localStorage.getItem("mcp-inspector-connections"), r = n ? JSON.parse(n) : {};
127
+ r[e] = {
128
+ ...r[e],
129
+ ...t
130
+ }, localStorage.setItem("mcp-inspector-connections", JSON.stringify(r));
131
+ } catch {}
132
+ }
133
+ function V(e, t, n) {
134
+ let r = e.trim(), i = t.trim(), a = n.trim();
135
+ if (!(!r && !a)) return {
136
+ ...r ? { clientId: r } : {},
137
+ ...r && i ? { clientSecret: i } : {},
138
+ ...a ? { scope: a } : {}
139
+ };
140
+ }
141
+ function H(e) {
142
+ let t = e.headers || e.proxyConfig?.headers || e.proxyConfig?.customHeaders;
143
+ return t && Object.keys(t).length > 0 ? t : void 0;
144
+ }
145
+ function U(e) {
146
+ let t = e.proxyConfig, n = e.headers || e.customHeaders, r = t?.headers || t?.customHeaders || void 0, i = n || r, a = t ? {
147
+ ...t,
148
+ ...r ? { headers: r } : {},
149
+ customHeaders: void 0
150
+ } : void 0, { customHeaders: o, connectionType: s, transportType: c, ...l } = e;
151
+ return {
152
+ ...l,
153
+ ...i && !a?.proxyAddress ? { headers: i } : {},
154
+ ...a ? { proxyConfig: a } : {},
155
+ connectionMode: I(e.connectionMode, e.connectionType, !!a?.proxyAddress)
156
+ };
157
+ }
158
+ function W(e) {
159
+ let t = q(e), n = e.proxyConfig?.proxyAddress?.trim() || L(e.autoProxyFallback), r = I(e.connectionMode, e.connectionType, !!n), i = {
160
+ url: e.url,
161
+ displayName: e.name?.trim() || e.url,
162
+ connectionMode: r,
163
+ ...e.oauth ? { oauth: e.oauth } : {}
164
+ };
165
+ return r === "proxy" && n ? i.proxyConfig = {
166
+ proxyAddress: n,
167
+ ...Object.keys(t).length > 0 ? { headers: t } : {}
168
+ } : Object.keys(t).length > 0 && (i.headers = t), r === "auto" && (i.autoProxyFallback = e.autoProxyFallback ?? (n ? {
169
+ enabled: !0,
170
+ proxyAddress: n
171
+ } : !1)), i;
172
+ }
173
+ function G(e, t) {
174
+ let n = t ? U(t) : e, r = H(e) || {}, i = n.proxyConfig?.proxyAddress?.trim() || L(n.autoProxyFallback);
175
+ return {
176
+ url: e.url || "",
177
+ name: e.displayName || e.url || "",
178
+ transportType: "http",
179
+ connectionMode: I(n.connectionMode, void 0, !!i),
180
+ connectionType: n.connectionMode === "proxy" ? "Via Proxy" : "Direct",
181
+ proxyConfig: n.connectionMode === "proxy" && i ? {
182
+ proxyAddress: i,
183
+ ...Object.keys(r).length > 0 ? { headers: r } : {}
184
+ } : void 0,
185
+ headers: r,
186
+ oauth: n.oauth,
187
+ autoProxyFallback: n.autoProxyFallback,
188
+ ...z(t)
189
+ };
190
+ }
191
+ function K(e) {
192
+ try {
193
+ let t = localStorage.getItem("mcp-inspector-connections");
194
+ return t && JSON.parse(t)[e] || null;
195
+ } catch {
196
+ return null;
197
+ }
198
+ }
199
+ function q(e) {
200
+ let t = e.proxyConfig?.headers || e.proxyConfig?.customHeaders || e.headers || e.customHeaders || {};
201
+ return Object.fromEntries(Object.entries(t).filter(([e, t]) => e && t).map(([e, t]) => [e, String(t)]).sort(([e], [t]) => e.localeCompare(t)));
202
+ }
203
+ function J(e) {
204
+ let t = e.url?.trim() || "", n = e.proxyConfig?.proxyAddress?.trim() || L(e.autoProxyFallback);
205
+ return {
206
+ url: t,
207
+ name: e.name?.trim() || t,
208
+ transportType: e.transportType || "http",
209
+ proxyAddress: n,
210
+ connectionMode: I(e.connectionMode, e.connectionType, !!n),
211
+ headers: q(e),
212
+ oauthClientId: e.oauth?.clientId?.trim() || "",
213
+ oauthClientSecret: e.oauth?.clientSecret?.trim() || "",
214
+ oauthScope: e.oauth?.scope?.trim() || "",
215
+ requestTimeout: "requestTimeout" in e ? e.requestTimeout : void 0,
216
+ resetTimeoutOnProgress: "resetTimeoutOnProgress" in e ? e.resetTimeoutOnProgress : void 0,
217
+ maxTotalTimeout: "maxTotalTimeout" in e ? e.maxTotalTimeout : void 0
218
+ };
219
+ }
220
+ function ae(e, t) {
221
+ let n = J(e), r = J(t);
222
+ return n.url === r.url && n.transportType === r.transportType && n.proxyAddress === r.proxyAddress && n.connectionMode === r.connectionMode && JSON.stringify(n.headers) === JSON.stringify(r.headers) && n.oauthClientId === r.oauthClientId && n.oauthClientSecret === r.oauthClientSecret && n.oauthScope === r.oauthScope && n.requestTimeout === r.requestTimeout && n.resetTimeoutOnProgress === r.resetTimeoutOnProgress && n.maxTotalTimeout === r.maxTotalTimeout && n.name !== r.name;
223
+ }
224
+ var oe = class extends C {
225
+ setServers(e) {
226
+ let t = this.readRawStoredServers(), n = Object.fromEntries(Object.entries(e).map(([e, n]) => [e, {
227
+ ...z(t[e]),
228
+ ...n,
229
+ ...E(e) && typeof n.url == "string" && T(n.url) ? { url: e } : {}
230
+ }]));
231
+ super.setServers(n);
232
+ }
233
+ setServer(e, t) {
234
+ let n = this.getServers();
235
+ n[e] = {
236
+ ...z(this.readRawStoredServers()[e]),
237
+ ...t
238
+ }, this.setServers(n);
239
+ }
240
+ readRawStoredServers() {
241
+ try {
242
+ let e = localStorage.getItem("mcp-inspector-connections");
243
+ return e ? JSON.parse(e) : {};
244
+ } catch {
245
+ return {};
246
+ }
247
+ }
248
+ };
249
+ //#endregion
250
+ //#region src/client/components/CustomHeadersEditor.tsx
251
+ function se({ headers: e, onChange: t, onSave: n, className: s, title: c = "Custom Headers", description: l = "Headers with both name and value will be sent", maxHeaders: u = 50 }) {
252
+ let [d, f] = (0, N.useState)({}), [p, m] = (0, N.useState)(null), h = (0, N.useRef)({});
253
+ (0, N.useEffect)(() => {
254
+ p && h.current[p] && (h.current[p]?.focus(), m(null));
255
+ }, [p, e]);
256
+ let g = () => Math.random().toString(36).slice(2, 11), _ = () => {
257
+ if (e.length >= u) return;
258
+ let n = {
259
+ id: g(),
260
+ name: "",
261
+ value: ""
262
+ };
263
+ t([...e, n]);
264
+ }, v = (n) => {
265
+ t(e.filter((e) => e.id !== n));
266
+ }, b = (n, r, i) => {
267
+ t(e.map((e) => e.id === n ? {
268
+ ...e,
269
+ [r]: i
270
+ } : e));
271
+ }, ee = (e) => {
272
+ f((t) => ({
273
+ ...t,
274
+ [e]: !t[e]
275
+ }));
276
+ };
277
+ return /* @__PURE__ */ (0, P.jsxs)("div", {
278
+ className: r("space-y-3", s),
279
+ children: [
280
+ /* @__PURE__ */ (0, P.jsxs)("div", {
281
+ className: "space-y-2",
282
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
283
+ className: "text-base font-medium",
284
+ children: c
285
+ }), /* @__PURE__ */ (0, P.jsx)("p", {
286
+ className: "text-sm text-muted-foreground",
287
+ children: l
288
+ })]
289
+ }),
290
+ /* @__PURE__ */ (0, P.jsxs)("div", {
291
+ className: "space-y-2",
292
+ children: [
293
+ /* @__PURE__ */ (0, P.jsxs)("div", {
294
+ className: "grid grid-cols-[1fr_1fr] gap-4 text-sm font-medium text-muted-foreground",
295
+ children: [/* @__PURE__ */ (0, P.jsx)("div", { children: "Name" }), /* @__PURE__ */ (0, P.jsx)("div", { children: "Value" })]
296
+ }),
297
+ e.length === 0 ? /* @__PURE__ */ (0, P.jsxs)("div", {
298
+ className: "grid grid-cols-[1fr_1fr] gap-4 items-center",
299
+ children: [/* @__PURE__ */ (0, P.jsx)(a, {
300
+ placeholder: "Authorization",
301
+ value: "",
302
+ onChange: (e) => {
303
+ if (e.target.value.trim()) {
304
+ let n = g();
305
+ t([{
306
+ id: n,
307
+ name: e.target.value,
308
+ value: ""
309
+ }]), m(n);
310
+ }
311
+ },
312
+ className: "text-sm",
313
+ autoComplete: "off"
314
+ }), /* @__PURE__ */ (0, P.jsxs)("div", {
315
+ className: "flex items-center gap-2",
316
+ children: [
317
+ /* @__PURE__ */ (0, P.jsx)(a, {
318
+ placeholder: "Bearer token...",
319
+ value: "",
320
+ onChange: () => {},
321
+ type: "password",
322
+ className: "font-mono text-sm",
323
+ autoComplete: "off",
324
+ disabled: !0
325
+ }),
326
+ /* @__PURE__ */ (0, P.jsx)(i, {
327
+ type: "button",
328
+ variant: "ghost",
329
+ size: "icon-sm",
330
+ className: "h-8 w-8 p-0",
331
+ disabled: !0,
332
+ children: /* @__PURE__ */ (0, P.jsx)(x, { className: "h-4 w-4" })
333
+ }),
334
+ /* @__PURE__ */ (0, P.jsx)(i, {
335
+ type: "button",
336
+ variant: "ghost",
337
+ size: "icon-sm",
338
+ className: "h-8 w-8 p-0",
339
+ disabled: !0,
340
+ children: /* @__PURE__ */ (0, P.jsx)(S, { className: "h-4 w-4" })
341
+ })
342
+ ]
343
+ })]
344
+ }) : e.map((e) => /* @__PURE__ */ (0, P.jsxs)("div", {
345
+ className: "grid grid-cols-[1fr_1fr] gap-4 items-center",
346
+ children: [/* @__PURE__ */ (0, P.jsx)(a, {
347
+ ref: (t) => {
348
+ h.current[e.id] = t;
349
+ },
350
+ placeholder: "Authorization",
351
+ value: e.name,
352
+ onChange: (t) => b(e.id, "name", t.target.value),
353
+ className: "text-sm",
354
+ autoComplete: "off"
355
+ }), /* @__PURE__ */ (0, P.jsxs)("div", {
356
+ className: "flex items-center gap-2",
357
+ children: [
358
+ /* @__PURE__ */ (0, P.jsx)(a, {
359
+ placeholder: "",
360
+ value: e.value,
361
+ onChange: (t) => b(e.id, "value", t.target.value),
362
+ type: d[e.id] ? "text" : "password",
363
+ className: "font-mono text-sm",
364
+ autoComplete: "off"
365
+ }),
366
+ /* @__PURE__ */ (0, P.jsx)(i, {
367
+ type: "button",
368
+ variant: "ghost",
369
+ size: "icon-sm",
370
+ onClick: () => ee(e.id),
371
+ className: "h-8 w-8 p-0",
372
+ children: d[e.id] ? /* @__PURE__ */ (0, P.jsx)(ne, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, P.jsx)(x, { className: "h-4 w-4" })
373
+ }),
374
+ /* @__PURE__ */ (0, P.jsx)(i, {
375
+ type: "button",
376
+ variant: "ghost",
377
+ size: "icon-sm",
378
+ onClick: () => v(e.id),
379
+ className: "h-8 w-8 p-0",
380
+ children: /* @__PURE__ */ (0, P.jsx)(S, { className: "h-4 w-4" })
381
+ })
382
+ ]
383
+ })]
384
+ }, e.id)),
385
+ /* @__PURE__ */ (0, P.jsx)("div", {
386
+ className: "flex justify-start mt-4",
387
+ children: /* @__PURE__ */ (0, P.jsxs)(i, {
388
+ type: "button",
389
+ variant: "outline",
390
+ size: "sm",
391
+ onClick: _,
392
+ disabled: e.length >= u,
393
+ className: "flex items-center gap-2",
394
+ children: [/* @__PURE__ */ (0, P.jsx)(y, { className: "h-4 w-4" }), "Add"]
395
+ })
396
+ })
397
+ ]
398
+ }),
399
+ n && /* @__PURE__ */ (0, P.jsx)("div", {
400
+ className: "flex justify-end",
401
+ children: /* @__PURE__ */ (0, P.jsx)(i, {
402
+ type: "button",
403
+ onClick: n,
404
+ className: "bg-black text-white hover:bg-gray-800",
405
+ children: "Save"
406
+ })
407
+ })
408
+ ]
409
+ });
410
+ }
411
+ //#endregion
412
+ //#region src/client/components/ConnectionSettingsForm.tsx
413
+ function ce({ alias: e, setAlias: t, url: n, setUrl: f, connectionMode: y, setConnectionMode: ne, customHeaders: x, setCustomHeaders: S, requestTimeout: C, setRequestTimeout: w, resetTimeoutOnProgress: T, setResetTimeoutOnProgress: E, maxTotalTimeout: F, setMaxTotalTimeout: L, proxyAddress: R, setProxyAddress: z, clientId: B, setClientId: V, clientSecret: H, setClientSecret: U, scope: W, setScope: G, onConnect: K, onSave: q, onCancel: J, variant: ae = "default", showConnectButton: oe = !1, showSaveButton: ce = !1, showExportButton: le = !1, isConnecting: ue = !1, inlineSections: Y = !1, cardSections: X = !1 }) {
414
+ let [de, fe] = (0, N.useState)(!1), [pe, me] = (0, N.useState)(!1), [he, ge] = (0, N.useState)(!1), Z = (0, N.useRef)(!1), _e = async () => {
415
+ if (!n.trim()) {
416
+ D.error("Please enter a URL first");
417
+ return;
418
+ }
419
+ let t = {
420
+ url: n,
421
+ ...e.trim() ? { name: e.trim() } : {},
422
+ transportType: "http",
423
+ connectionMode: y,
424
+ connectionType: y === "proxy" ? "Via Proxy" : "Direct",
425
+ proxyConfig: y === "proxy" && R.trim() ? {
426
+ proxyAddress: R.trim(),
427
+ customHeaders: x.reduce((e, t) => (t.name && t.value && (e[t.name] = t.value), e), {})
428
+ } : void 0,
429
+ autoProxyFallback: y === "auto" && R.trim() ? {
430
+ enabled: !0,
431
+ proxyAddress: R.trim()
432
+ } : void 0,
433
+ customHeaders: x.reduce((e, t) => (t.name && t.value && (e[t.name] = t.value), e), {}),
434
+ requestTimeout: Number.parseInt(C, 10),
435
+ resetTimeoutOnProgress: T === "True",
436
+ maxTotalTimeout: Number.parseInt(F, 10),
437
+ oauth: B || W ? {
438
+ clientId: B,
439
+ ...B && H ? { clientSecret: H } : {},
440
+ scope: W
441
+ } : void 0
442
+ };
443
+ try {
444
+ await te(JSON.stringify(t, null, 2)), D.success("Configuration copied to clipboard");
445
+ } catch {
446
+ D.error("Failed to copy configuration to clipboard");
447
+ }
448
+ }, Q = ae === "styled", ve = Q ? "bg-white/10 border-white/20 text-white placeholder:text-white/50" : "", ye = Q ? "text-white/90" : "", $ = Q ? "bg-white/10 border-white/20 text-white hover:bg-white/20" : "", be = async (e) => {
449
+ let n = e.clipboardData.getData("text");
450
+ try {
451
+ let r = JSON.parse(n);
452
+ if (r.url && typeof r.url == "string") {
453
+ e.preventDefault(), f(r.url), t(typeof r.name == "string" && r.name !== r.url ? r.name : "");
454
+ let n = r.proxyConfig?.proxyAddress || (typeof r.autoProxyFallback == "object" ? r.autoProxyFallback.proxyAddress : void 0);
455
+ ne(I(r.connectionMode, r.connectionType, !!n)), n && z(n);
456
+ let i = r.proxyConfig?.customHeaders || r.proxyConfig?.headers || r.customHeaders || r.headers || {};
457
+ Object.keys(i).length > 0 && S(Object.entries(i).map(([e, t], n) => ({
458
+ id: `header-${n}`,
459
+ name: e,
460
+ value: String(t)
461
+ }))), r.requestTimeout && w(String(r.requestTimeout)), r.resetTimeoutOnProgress !== void 0 && E(r.resetTimeoutOnProgress ? "True" : "False"), r.maxTotalTimeout && L(String(r.maxTotalTimeout)), r.oauth && (V(r.oauth.clientId || ""), U(r.oauth.clientSecret || ""), G(r.oauth.scope || "")), D.success("Configuration pasted and form populated");
462
+ }
463
+ } catch {}
464
+ }, xe = (e) => {
465
+ Z.current || e.nativeEvent.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && !e.metaKey && !e.ctrlKey && e.target.tagName !== "TEXTAREA" && (e.preventDefault(), K && n.trim() && K());
466
+ }, Se = /* @__PURE__ */ (0, P.jsxs)("div", {
467
+ className: "grid gap-4 sm:grid-cols-2",
468
+ children: [
469
+ !X && /* @__PURE__ */ (0, P.jsx)("h4", {
470
+ className: "text-sm font-medium sm:col-span-2",
471
+ children: "OAuth 2.0"
472
+ }),
473
+ /* @__PURE__ */ (0, P.jsxs)("div", {
474
+ className: "space-y-2",
475
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
476
+ className: "text-sm",
477
+ children: "Client ID"
478
+ }), /* @__PURE__ */ (0, P.jsx)(a, {
479
+ "data-testid": "auth-dialog-client-id-input",
480
+ placeholder: "Client ID",
481
+ value: B,
482
+ onChange: (e) => V(e.target.value)
483
+ })]
484
+ }),
485
+ /* @__PURE__ */ (0, P.jsxs)("div", {
486
+ className: "space-y-2",
487
+ children: [
488
+ /* @__PURE__ */ (0, P.jsx)(o, {
489
+ className: "text-sm",
490
+ children: "Client Secret"
491
+ }),
492
+ /* @__PURE__ */ (0, P.jsx)(a, {
493
+ "data-testid": "auth-dialog-client-secret-input",
494
+ type: "password",
495
+ placeholder: "Client Secret (optional)",
496
+ value: H,
497
+ onChange: (e) => U(e.target.value)
498
+ }),
499
+ /* @__PURE__ */ (0, P.jsx)("p", {
500
+ className: "text-xs text-muted-foreground",
501
+ children: "Stored in your browser's localStorage."
502
+ })
503
+ ]
504
+ }),
505
+ /* @__PURE__ */ (0, P.jsxs)("div", {
506
+ className: "space-y-2 sm:col-span-2",
507
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
508
+ className: "text-sm",
509
+ children: "Scope"
510
+ }), /* @__PURE__ */ (0, P.jsx)(a, {
511
+ "data-testid": "auth-dialog-scope-input",
512
+ placeholder: "Scope (space-separated)",
513
+ value: W,
514
+ onChange: (e) => G(e.target.value)
515
+ })]
516
+ })
517
+ ]
518
+ }), Ce = /* @__PURE__ */ (0, P.jsx)(se, {
519
+ title: /* @__PURE__ */ (0, P.jsx)(P.Fragment, {}),
520
+ headers: x,
521
+ onChange: S
522
+ }), we = /* @__PURE__ */ (0, P.jsxs)("div", {
523
+ className: "grid gap-4 sm:grid-cols-2",
524
+ children: [
525
+ /* @__PURE__ */ (0, P.jsxs)("div", {
526
+ className: "space-y-2",
527
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
528
+ className: "text-sm",
529
+ children: "Connection Mode"
530
+ }), /* @__PURE__ */ (0, P.jsxs)(d, {
531
+ value: y,
532
+ onValueChange: (e) => ne(e),
533
+ children: [/* @__PURE__ */ (0, P.jsx)(c, {
534
+ className: "w-full",
535
+ "data-testid": "config-dialog-connection-mode-select",
536
+ children: /* @__PURE__ */ (0, P.jsx)(s, {})
537
+ }), /* @__PURE__ */ (0, P.jsxs)(l, { children: [
538
+ /* @__PURE__ */ (0, P.jsx)(u, {
539
+ value: "auto",
540
+ children: "Auto"
541
+ }),
542
+ /* @__PURE__ */ (0, P.jsx)(u, {
543
+ value: "direct",
544
+ children: "Direct"
545
+ }),
546
+ /* @__PURE__ */ (0, P.jsx)(u, {
547
+ value: "proxy",
548
+ children: "Proxy"
549
+ })
550
+ ] })]
551
+ })]
552
+ }),
553
+ /* @__PURE__ */ (0, P.jsxs)("div", {
554
+ className: "space-y-2",
555
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
556
+ className: "text-sm",
557
+ children: "Proxy Endpoint"
558
+ }), /* @__PURE__ */ (0, P.jsx)(a, {
559
+ "data-testid": "config-dialog-proxy-address-input",
560
+ value: R,
561
+ onChange: (e) => z(e.target.value)
562
+ })]
563
+ }),
564
+ /* @__PURE__ */ (0, P.jsxs)("div", {
565
+ className: "space-y-2",
566
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
567
+ className: "text-sm",
568
+ children: "Request Timeout"
569
+ }), /* @__PURE__ */ (0, P.jsx)(a, {
570
+ "data-testid": "config-dialog-request-timeout-input",
571
+ type: "number",
572
+ value: C,
573
+ onChange: (e) => w(e.target.value)
574
+ })]
575
+ }),
576
+ /* @__PURE__ */ (0, P.jsxs)("div", {
577
+ className: "space-y-2",
578
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
579
+ className: "text-sm",
580
+ children: "Maximum Total Timeout"
581
+ }), /* @__PURE__ */ (0, P.jsx)(a, {
582
+ "data-testid": "config-dialog-max-timeout-input",
583
+ type: "number",
584
+ value: F,
585
+ onChange: (e) => L(e.target.value)
586
+ })]
587
+ }),
588
+ /* @__PURE__ */ (0, P.jsxs)("div", {
589
+ className: "space-y-2",
590
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
591
+ className: "text-sm",
592
+ children: "Reset Timeout on Progress"
593
+ }), /* @__PURE__ */ (0, P.jsxs)(d, {
594
+ value: T,
595
+ onValueChange: E,
596
+ children: [/* @__PURE__ */ (0, P.jsx)(c, {
597
+ className: "w-full",
598
+ "data-testid": "config-dialog-reset-timeout-select",
599
+ children: /* @__PURE__ */ (0, P.jsx)(s, {})
600
+ }), /* @__PURE__ */ (0, P.jsxs)(l, { children: [/* @__PURE__ */ (0, P.jsx)(u, {
601
+ value: "True",
602
+ children: "True"
603
+ }), /* @__PURE__ */ (0, P.jsx)(u, {
604
+ value: "False",
605
+ children: "False"
606
+ })] })]
607
+ })]
608
+ })
609
+ ]
610
+ }), Te = /* @__PURE__ */ (0, P.jsxs)("div", {
611
+ className: Y || X ? "grid gap-4 sm:grid-cols-2" : "space-y-4",
612
+ children: [/* @__PURE__ */ (0, P.jsxs)("div", {
613
+ className: "space-y-2",
614
+ children: [/* @__PURE__ */ (0, P.jsx)(o, {
615
+ className: ye,
616
+ children: "Alias"
617
+ }), /* @__PURE__ */ (0, P.jsx)(a, {
618
+ "data-testid": "connection-form-alias-input",
619
+ placeholder: "Optional server alias",
620
+ value: e,
621
+ onChange: (e) => t(e.target.value),
622
+ className: ve
623
+ })]
624
+ }), /* @__PURE__ */ (0, P.jsxs)("div", {
625
+ className: "space-y-2",
626
+ children: [
627
+ /* @__PURE__ */ (0, P.jsx)(o, {
628
+ className: ye,
629
+ children: "URL"
630
+ }),
631
+ /* @__PURE__ */ (0, P.jsx)(a, {
632
+ "data-testid": "connection-form-url-input",
633
+ placeholder: "http://localhost:3000",
634
+ value: n,
635
+ onChange: (e) => f(e.target.value),
636
+ onPaste: be,
637
+ className: ve
638
+ }),
639
+ /* @__PURE__ */ (0, P.jsx)("p", {
640
+ className: r("text-xs text-muted-foreground", Q ? "text-white/60" : ""),
641
+ children: "Tip: You can paste a copied connection config (JSON) to auto-populate the form"
642
+ })
643
+ ]
644
+ })]
645
+ }), Ee = {
646
+ onCompositionStart: () => {
647
+ Z.current = !0;
648
+ },
649
+ onCompositionEnd: () => {
650
+ Z.current = !1;
651
+ },
652
+ onKeyDown: xe
653
+ }, De = le ? /* @__PURE__ */ (0, P.jsxs)(i, {
654
+ "data-testid": "connection-form-copy-config-button",
655
+ variant: "ghost",
656
+ onClick: _e,
657
+ className: r(Q ? "absolute top-0 right-0 z-10 text-white hover:bg-white/20 dark:hover:bg-white/20" : "w-full", !Q && "mb-2"),
658
+ children: [/* @__PURE__ */ (0, P.jsx)(ee, { className: "mr-2 h-4 w-4" }), "Copy Config"]
659
+ }) : null;
660
+ return Y && X ? /* @__PURE__ */ (0, P.jsxs)("div", {
661
+ className: "relative space-y-6 @container",
662
+ ...Ee,
663
+ children: [
664
+ De,
665
+ /* @__PURE__ */ (0, P.jsxs)(M, {
666
+ className: "border",
667
+ children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
668
+ className: "text-base font-medium",
669
+ children: "Endpoint"
670
+ }), /* @__PURE__ */ (0, P.jsx)(j, { children: "MCP server URL and display alias" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
671
+ className: "pt-0",
672
+ children: Te
673
+ })]
674
+ }),
675
+ /* @__PURE__ */ (0, P.jsxs)(M, {
676
+ className: "border",
677
+ children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
678
+ className: "text-base font-medium",
679
+ children: "Authentication"
680
+ }), /* @__PURE__ */ (0, P.jsx)(j, { children: "OAuth 2.0 client credentials" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
681
+ className: "pt-0",
682
+ children: Se
683
+ })]
684
+ }),
685
+ /* @__PURE__ */ (0, P.jsxs)(M, {
686
+ className: "border",
687
+ children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
688
+ className: "text-base font-medium",
689
+ children: "Custom Headers"
690
+ }), /* @__PURE__ */ (0, P.jsx)(j, { children: "Extra HTTP headers sent with MCP requests" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
691
+ className: "pt-0",
692
+ children: Ce
693
+ })]
694
+ }),
695
+ /* @__PURE__ */ (0, P.jsxs)(M, {
696
+ className: "border",
697
+ children: [/* @__PURE__ */ (0, P.jsxs)(k, { children: [/* @__PURE__ */ (0, P.jsx)(O, {
698
+ className: "text-base font-medium",
699
+ children: "Configuration"
700
+ }), /* @__PURE__ */ (0, P.jsx)(j, { children: "Connection mode, proxy, and request timeouts" })] }), /* @__PURE__ */ (0, P.jsx)(A, {
701
+ className: "pt-0",
702
+ children: we
703
+ })]
704
+ })
705
+ ]
706
+ }) : /* @__PURE__ */ (0, P.jsxs)("div", {
707
+ className: "relative space-y-4 @container",
708
+ ...Ee,
709
+ children: [
710
+ !Y && /* @__PURE__ */ (0, P.jsx)("h3", {
711
+ className: "mb-4 text-xl font-semibold text-white",
712
+ children: "Connect"
713
+ }),
714
+ De,
715
+ Te,
716
+ Y && !X && /* @__PURE__ */ (0, P.jsxs)("div", {
717
+ className: "space-y-8 pt-2",
718
+ children: [
719
+ /* @__PURE__ */ (0, P.jsxs)("section", {
720
+ className: "space-y-4",
721
+ children: [/* @__PURE__ */ (0, P.jsx)("h3", {
722
+ className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
723
+ children: "Authentication"
724
+ }), Se]
725
+ }),
726
+ /* @__PURE__ */ (0, P.jsxs)("section", {
727
+ className: "space-y-4",
728
+ children: [/* @__PURE__ */ (0, P.jsx)("h3", {
729
+ className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
730
+ children: "Custom Headers"
731
+ }), Ce]
732
+ }),
733
+ /* @__PURE__ */ (0, P.jsxs)("section", {
734
+ className: "space-y-4",
735
+ children: [/* @__PURE__ */ (0, P.jsx)("h3", {
736
+ className: "text-xs font-medium uppercase tracking-wide text-muted-foreground",
737
+ children: "Configuration"
738
+ }), we]
739
+ })
740
+ ]
741
+ }),
742
+ !Y && /* @__PURE__ */ (0, P.jsxs)("div", {
743
+ className: "flex flex-row gap-3 @lg:flex-col",
744
+ children: [
745
+ /* @__PURE__ */ (0, P.jsxs)(v, {
746
+ open: pe,
747
+ onOpenChange: me,
748
+ children: [/* @__PURE__ */ (0, P.jsx)(m, {
749
+ render: /* @__PURE__ */ (0, P.jsx)("div", {
750
+ className: "relative flex-1 ",
751
+ children: /* @__PURE__ */ (0, P.jsxs)(i, {
752
+ "data-testid": "connection-form-auth-button",
753
+ variant: "outline",
754
+ className: r((B || H || W) && "border-2", "w-full justify-center hover:text-white cursor-pointer", $),
755
+ children: [/* @__PURE__ */ (0, P.jsx)(b, { className: "w-4 h-4 mr-0" }), "Authentication"]
756
+ })
757
+ }),
758
+ nativeButton: !1
759
+ }), /* @__PURE__ */ (0, P.jsxs)(_, {
760
+ scrollable: !0,
761
+ className: "w-[calc(100vw-2rem)] sm:w-full max-w-2xl max-h-[80vh]",
762
+ children: [/* @__PURE__ */ (0, P.jsx)(g, { children: /* @__PURE__ */ (0, P.jsx)(p, { children: "Authentication" }) }), /* @__PURE__ */ (0, P.jsxs)(h, {
763
+ className: "space-y-4",
764
+ children: [Se, /* @__PURE__ */ (0, P.jsx)("div", {
765
+ className: "flex justify-end",
766
+ children: /* @__PURE__ */ (0, P.jsx)(i, {
767
+ onClick: () => me(!1),
768
+ children: "Save"
769
+ })
770
+ })]
771
+ })]
772
+ })]
773
+ }),
774
+ /* @__PURE__ */ (0, P.jsxs)(v, {
775
+ open: de,
776
+ onOpenChange: fe,
777
+ children: [/* @__PURE__ */ (0, P.jsx)(m, {
778
+ render: /* @__PURE__ */ (0, P.jsx)("div", {
779
+ className: "relative flex-1 ",
780
+ children: /* @__PURE__ */ (0, P.jsxs)(i, {
781
+ "data-testid": "connection-form-headers-button",
782
+ variant: "outline",
783
+ className: r("w-full justify-center hover:text-white cursor-pointer", $),
784
+ children: [/* @__PURE__ */ (0, P.jsx)(ie, { className: "w-4 h-4" }), "Custom Headers"]
785
+ })
786
+ }),
787
+ nativeButton: !1
788
+ }), /* @__PURE__ */ (0, P.jsxs)(_, {
789
+ scrollable: !0,
790
+ className: "w-full max-w-2xl max-h-[80vh]",
791
+ children: [/* @__PURE__ */ (0, P.jsx)(g, { children: /* @__PURE__ */ (0, P.jsx)(p, { children: "Custom Headers" }) }), /* @__PURE__ */ (0, P.jsx)(h, { children: /* @__PURE__ */ (0, P.jsx)(se, {
792
+ title: /* @__PURE__ */ (0, P.jsx)(P.Fragment, {}),
793
+ headers: x,
794
+ onChange: S,
795
+ onSave: () => fe(!1)
796
+ }) })]
797
+ })]
798
+ }),
799
+ /* @__PURE__ */ (0, P.jsxs)(v, {
800
+ open: he,
801
+ onOpenChange: ge,
802
+ children: [/* @__PURE__ */ (0, P.jsx)(m, {
803
+ render: /* @__PURE__ */ (0, P.jsxs)(i, {
804
+ "data-testid": "connection-form-config-button",
805
+ variant: "outline",
806
+ className: r("flex-1 justify-center hover:text-white cursor-pointer", $),
807
+ children: [/* @__PURE__ */ (0, P.jsx)(re, { className: "w-4 h-4" }), "Configuration"]
808
+ }),
809
+ nativeButton: !0
810
+ }), /* @__PURE__ */ (0, P.jsxs)(_, {
811
+ scrollable: !0,
812
+ className: "w-full max-w-2xl max-h-[80vh]",
813
+ children: [/* @__PURE__ */ (0, P.jsx)(g, { children: /* @__PURE__ */ (0, P.jsx)(p, { children: "Configuration" }) }), /* @__PURE__ */ (0, P.jsxs)(h, {
814
+ className: "space-y-4",
815
+ children: [we, /* @__PURE__ */ (0, P.jsx)("div", {
816
+ className: "flex justify-end",
817
+ children: /* @__PURE__ */ (0, P.jsx)(i, {
818
+ onClick: () => ge(!1),
819
+ children: "Save"
820
+ })
821
+ })]
822
+ })]
823
+ })]
824
+ })
825
+ ]
826
+ }),
827
+ oe && /* @__PURE__ */ (0, P.jsx)(i, {
828
+ "data-testid": "connection-form-connect-button",
829
+ onClick: K,
830
+ disabled: !n.trim() || ue,
831
+ size: Q ? "lg" : void 0,
832
+ className: r("w-full font-semibold", Q ? "rounded-full text-black [&_[aria-hidden]]:bg-white hover:[&_[aria-hidden]]:bg-white/90 group-active:[&_[aria-hidden]]:bg-white/80" : ""),
833
+ children: ue ? /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, P.jsx)("svg", {
834
+ className: "w-4 h-4 mr-2 animate-spin",
835
+ fill: "none",
836
+ stroke: "currentColor",
837
+ viewBox: "0 0 24 24",
838
+ children: /* @__PURE__ */ (0, P.jsx)("path", {
839
+ strokeLinecap: "round",
840
+ strokeLinejoin: "round",
841
+ strokeWidth: 2,
842
+ d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
843
+ })
844
+ }), "Connecting..."] }) : /* @__PURE__ */ (0, P.jsxs)(P.Fragment, { children: [/* @__PURE__ */ (0, P.jsx)("svg", {
845
+ className: "w-4 h-4 mr-2",
846
+ fill: "none",
847
+ stroke: "currentColor",
848
+ viewBox: "0 0 24 24",
849
+ children: /* @__PURE__ */ (0, P.jsx)("path", {
850
+ strokeLinecap: "round",
851
+ strokeLinejoin: "round",
852
+ strokeWidth: 2,
853
+ d: "M13 10V3L4 14h7v7l9-11h-7z"
854
+ })
855
+ }), "Connect"] })
856
+ }),
857
+ ce && /* @__PURE__ */ (0, P.jsxs)("div", {
858
+ className: "flex justify-end gap-2",
859
+ children: [J && /* @__PURE__ */ (0, P.jsx)(i, {
860
+ variant: "outline",
861
+ onClick: J,
862
+ children: "Cancel"
863
+ }), /* @__PURE__ */ (0, P.jsx)(i, {
864
+ "data-testid": "connection-form-save-button",
865
+ onClick: q,
866
+ children: "Save Connection Options"
867
+ })]
868
+ })
869
+ ]
870
+ });
871
+ }
872
+ //#endregion
873
+ export { H as a, I as c, W as d, ie as f, F as i, B as l, oe as n, K as o, V as r, ae as s, ce as t, G as u };