@mcp-use/inspector 20.0.0-beta.8 → 20.0.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 (592) hide show
  1. package/README.md +31 -78
  2. package/dist/app/inspector.css.gz +0 -0
  3. package/dist/app/inspector.js.gz +0 -0
  4. package/dist/app/providers/anthropic.png +0 -0
  5. package/dist/app/providers/google.png +0 -0
  6. package/dist/app/providers/openai.png +0 -0
  7. package/dist/cli.js +272 -1383
  8. package/dist/client/index.d.ts +1408 -50
  9. package/dist/client/index.js +165 -24322
  10. package/dist/server/index.d.ts +79 -7
  11. package/dist/server/index.js +370 -22
  12. package/package.json +81 -36
  13. package/dist/cdn/AnimatePresence-D1bZ5_-l.js +0 -394
  14. package/dist/cdn/ChatTab-C-Ysv6Zf.js +0 -6811
  15. package/dist/cdn/CheckboxIndicator-BjF73mGX.js +0 -252
  16. package/dist/cdn/ConnectionSettingsForm-CNuMa6jp.js +0 -929
  17. package/dist/cdn/ConnectionSettingsTab-qSVQ1aIF.js +0 -151
  18. package/dist/cdn/ElicitationTab-PEmEDvC5.js +0 -655
  19. package/dist/cdn/FormContext-NtUiZclE.js +0 -135
  20. package/dist/cdn/InspectorContext-BBKCdfmK.js +0 -123
  21. package/dist/cdn/JSONDisplay-BJqMz7Ny.js +0 -324
  22. package/dist/cdn/ListTabHeader-DzmTtN1e.js +0 -89
  23. package/dist/cdn/MCPAppsDebugControls-BpP-Ifap.js +0 -2174
  24. package/dist/cdn/ManufactOAuthCallback-ChbbjFIT.js +0 -31
  25. package/dist/cdn/MarkdownRenderer-CK_6n3T9.js +0 -3610
  26. package/dist/cdn/McpAppsViewPanel-jlsYQ7uS.js +0 -56
  27. package/dist/cdn/NotificationsTab-B7uebqMV.js +0 -290
  28. package/dist/cdn/OAuthCallback--NZdLoWx.js +0 -58
  29. package/dist/cdn/PromptsTab-DSGYL32k.js +0 -902
  30. package/dist/cdn/ResourcesTab-d3wxN7xC.js +0 -566
  31. package/dist/cdn/SamplingTab-DETdWNJk.js +0 -659
  32. package/dist/cdn/ServerMetadataTab-BM3VhSLf.js +0 -244
  33. package/dist/cdn/StatusIcon-Q3n3YRtE.js +0 -65
  34. package/dist/cdn/ToolsTab-BMcnfEWg.js +0 -2045
  35. package/dist/cdn/ViewPreview-CBhrVdwx.js +0 -238
  36. package/dist/cdn/WidgetDebugContext-B6yoOVVV.js +0 -314
  37. package/dist/cdn/WidgetWrapper-BlbQAh_X.js +0 -12
  38. package/dist/cdn/basePath-B8HuhIMu.js +0 -25
  39. package/dist/cdn/bell-GrTZcnD2.js +0 -10
  40. package/dist/cdn/browser-DG2Z8392.js +0 -42
  41. package/dist/cdn/brush-CelVvMGp.js +0 -17
  42. package/dist/cdn/button-CB4uOoUV.js +0 -2509
  43. package/dist/cdn/card-BA-DQk-G.js +0 -41
  44. package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
  45. package/dist/cdn/checkbox-kwVa4gRX.js +0 -20
  46. package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
  47. package/dist/cdn/clock-YMF8Gtw5.js +0 -12
  48. package/dist/cdn/code-C8sN2OGR.js +0 -10
  49. package/dist/cdn/createLucideIcon-BONxC1L5.js +0 -213
  50. package/dist/cdn/dialog-CJGnC5Ag.js +0 -1028
  51. package/dist/cdn/dist-CTJnCYmk.js +0 -616
  52. package/dist/cdn/dist-SxRsB1iS.js +0 -2307
  53. package/dist/cdn/external-link-Bo4lQxr1.js +0 -17
  54. package/dist/cdn/eye-pSGG7nvf.js +0 -29
  55. package/dist/cdn/folder-open-aM8CPtBO.js +0 -7
  56. package/dist/cdn/hash-DDs2vE1k.js +0 -33
  57. package/dist/cdn/history-BfUFpL1d.js +0 -17
  58. package/dist/cdn/index-browser-Dm3R1Mfe.js +0 -1934
  59. package/dist/cdn/info-BMkB68mB.js +0 -19
  60. package/dist/cdn/input-BCpgLXU1.js +0 -9654
  61. package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
  62. package/dist/cdn/inspector.css +0 -2
  63. package/dist/cdn/inspector.js +0 -24489
  64. package/dist/cdn/label-A0UGV8FE.js +0 -60
  65. package/dist/cdn/loader-circle-BKRHJEB7.js +0 -7
  66. package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
  67. package/dist/cdn/maximize-2-DdrB_spi.js +0 -21
  68. package/dist/cdn/maximize-hSOCz133.js +0 -21
  69. package/dist/cdn/message-square-D3tKB3uJ.js +0 -7
  70. package/dist/cdn/not-found-BajFyZpp.js +0 -32
  71. package/dist/cdn/play-B1leulYf.js +0 -7
  72. package/dist/cdn/providerMeta-CjGU4rID.js +0 -436
  73. package/dist/cdn/providers/anthropic.png +0 -0
  74. package/dist/cdn/providers/google.png +0 -0
  75. package/dist/cdn/providers/openai.png +0 -0
  76. package/dist/cdn/react-BIs9pQ3H.js +0 -926
  77. package/dist/cdn/react-Bl-hSkvn.js +0 -5482
  78. package/dist/cdn/refresh-cw-CyvXrS91.js +0 -21
  79. package/dist/cdn/save-CmdEPUAm.js +0 -34
  80. package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
  81. package/dist/cdn/select-CCFHjOGk.js +0 -2595
  82. package/dist/cdn/servers-Dd0Vcp81.js +0 -30
  83. package/dist/cdn/shared-CJVHJhag.js +0 -1700
  84. package/dist/cdn/sheet-oyq1mIyg.js +0 -2078
  85. package/dist/cdn/sparkles-CxeZpVtX.js +0 -23
  86. package/dist/cdn/spinner-Be1GlSGX.js +0 -15
  87. package/dist/cdn/square-check-big-C_4wbfwF.js +0 -10
  88. package/dist/cdn/switch-DHXEA_N5.js +0 -665
  89. package/dist/cdn/tabs-subtle-Dubd6Kj8.js +0 -788
  90. package/dist/cdn/telemetry-DjQn_Xm9.js +0 -240
  91. package/dist/cdn/textarea-CwmI8_uI.js +0 -14
  92. package/dist/cdn/trash-2-BhumJAFE.js +0 -25
  93. package/dist/cdn/useAriaLabelledBy-Cra6w3YY.js +0 -30
  94. package/dist/cdn/useCompositeItem-Dhnm-7el.js +0 -26
  95. package/dist/cdn/useConfig-B_adtnP1.js +0 -235
  96. package/dist/cdn/useSavedRequests-mSIsDd4c.js +0 -51
  97. package/dist/cdn/useViewHostProps-CDOm2w6u.js +0 -364
  98. package/dist/cdn/wrench-DvK20LUT.js +0 -7
  99. package/dist/cdn/x-EilKPiCX.js +0 -10
  100. package/dist/cdn/zap-0Wr9QO7N.js +0 -10
  101. package/dist/client/auth/manufact-auth.d.ts +0 -32
  102. package/dist/client/auth/manufact-auth.d.ts.map +0 -1
  103. package/dist/client/chat-history/ChatHistoryHeader.d.ts +0 -4
  104. package/dist/client/chat-history/ChatHistoryHeader.d.ts.map +0 -1
  105. package/dist/client/chat-history/ChatHistoryPanel.d.ts +0 -28
  106. package/dist/client/chat-history/ChatHistoryPanel.d.ts.map +0 -1
  107. package/dist/client/chat-history/ChatHistoryRail.d.ts +0 -5
  108. package/dist/client/chat-history/ChatHistoryRail.d.ts.map +0 -1
  109. package/dist/client/chat-history/ChatList.d.ts +0 -18
  110. package/dist/client/chat-history/ChatList.d.ts.map +0 -1
  111. package/dist/client/chat-history/ChatTitleReveal.d.ts +0 -10
  112. package/dist/client/chat-history/ChatTitleReveal.d.ts.map +0 -1
  113. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts +0 -13
  114. package/dist/client/chat-history/chat-events-to-inspector-messages.d.ts.map +0 -1
  115. package/dist/client/chat-history/chat-title.d.ts +0 -10
  116. package/dist/client/chat-history/chat-title.d.ts.map +0 -1
  117. package/dist/client/chat-history/providers/local-storage.d.ts +0 -21
  118. package/dist/client/chat-history/providers/local-storage.d.ts.map +0 -1
  119. package/dist/client/chat-history/types.d.ts +0 -39
  120. package/dist/client/chat-history/types.d.ts.map +0 -1
  121. package/dist/client/chat-history/useChatHistory.d.ts +0 -20
  122. package/dist/client/chat-history/useChatHistory.d.ts.map +0 -1
  123. package/dist/client/chat-history/useChatTitleGeneration.d.ts +0 -17
  124. package/dist/client/chat-history/useChatTitleGeneration.d.ts.map +0 -1
  125. package/dist/client/components/AddToClientDropdown.d.ts +0 -52
  126. package/dist/client/components/AddToClientDropdown.d.ts.map +0 -1
  127. package/dist/client/components/ChatTab.d.ts +0 -98
  128. package/dist/client/components/ChatTab.d.ts.map +0 -1
  129. package/dist/client/components/IframeConsole.d.ts +0 -7
  130. package/dist/client/components/IframeConsole.d.ts.map +0 -1
  131. package/dist/client/components/MCPAppsDebugControls.d.ts +0 -19
  132. package/dist/client/components/MCPAppsDebugControls.d.ts.map +0 -1
  133. package/dist/client/components/PromptsTab.d.ts +0 -34
  134. package/dist/client/components/PromptsTab.d.ts.map +0 -1
  135. package/dist/client/components/ResourcesTab.d.ts +0 -31
  136. package/dist/client/components/ResourcesTab.d.ts.map +0 -1
  137. package/dist/client/components/ToolsTab.d.ts +0 -39
  138. package/dist/client/components/ToolsTab.d.ts.map +0 -1
  139. package/dist/client/components/chat/AssistantMessage.d.ts +0 -10
  140. package/dist/client/components/chat/AssistantMessage.d.ts.map +0 -1
  141. package/dist/client/components/chat/ChatHeader.d.ts +0 -70
  142. package/dist/client/components/chat/ChatHeader.d.ts.map +0 -1
  143. package/dist/client/components/chat/ChatInput.d.ts +0 -29
  144. package/dist/client/components/chat/ChatInput.d.ts.map +0 -1
  145. package/dist/client/components/chat/ChatInputArea.d.ts +0 -65
  146. package/dist/client/components/chat/ChatInputArea.d.ts.map +0 -1
  147. package/dist/client/components/chat/ChatLandingForm.d.ts +0 -15
  148. package/dist/client/components/chat/ChatLandingForm.d.ts.map +0 -1
  149. package/dist/client/components/chat/ChatManagedNotice.d.ts +0 -10
  150. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +0 -1
  151. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts +0 -7
  152. package/dist/client/components/chat/ChatScrollToBottomButton.d.ts.map +0 -1
  153. package/dist/client/components/chat/ChatScrollTopFade.d.ts +0 -7
  154. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +0 -1
  155. package/dist/client/components/chat/ChatTraceView.d.ts +0 -7
  156. package/dist/client/components/chat/ChatTraceView.d.ts.map +0 -1
  157. package/dist/client/components/chat/ConfigurationDialog.d.ts +0 -42
  158. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +0 -1
  159. package/dist/client/components/chat/ConfigureEmptyState.d.ts +0 -6
  160. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +0 -1
  161. package/dist/client/components/chat/CopyButton.d.ts +0 -10
  162. package/dist/client/components/chat/CopyButton.d.ts.map +0 -1
  163. package/dist/client/components/chat/FloatingChatElicitation.d.ts +0 -10
  164. package/dist/client/components/chat/FloatingChatElicitation.d.ts.map +0 -1
  165. package/dist/client/components/chat/McpReconnectBanner.d.ts +0 -10
  166. package/dist/client/components/chat/McpReconnectBanner.d.ts.map +0 -1
  167. package/dist/client/components/chat/MessageList.d.ts +0 -48
  168. package/dist/client/components/chat/MessageList.d.ts.map +0 -1
  169. package/dist/client/components/chat/MessageMetaActions.d.ts +0 -7
  170. package/dist/client/components/chat/MessageMetaActions.d.ts.map +0 -1
  171. package/dist/client/components/chat/PromptResultsList.d.ts +0 -8
  172. package/dist/client/components/chat/PromptResultsList.d.ts.map +0 -1
  173. package/dist/client/components/chat/PromptsDropdown.d.ts +0 -11
  174. package/dist/client/components/chat/PromptsDropdown.d.ts.map +0 -1
  175. package/dist/client/components/chat/StreamingAssistantContent.d.ts +0 -7
  176. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +0 -1
  177. package/dist/client/components/chat/SystemPromptButton.d.ts +0 -11
  178. package/dist/client/components/chat/SystemPromptButton.d.ts.map +0 -1
  179. package/dist/client/components/chat/ToolCallDisplay.d.ts +0 -10
  180. package/dist/client/components/chat/ToolCallDisplay.d.ts.map +0 -1
  181. package/dist/client/components/chat/ToolResultRenderer.d.ts +0 -15
  182. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +0 -1
  183. package/dist/client/components/chat/ToolSelector.d.ts +0 -13
  184. package/dist/client/components/chat/ToolSelector.d.ts.map +0 -1
  185. package/dist/client/components/chat/UserMessage.d.ts +0 -10
  186. package/dist/client/components/chat/UserMessage.d.ts.map +0 -1
  187. package/dist/client/components/chat/chat-bar-styles.d.ts +0 -6
  188. package/dist/client/components/chat/chat-bar-styles.d.ts.map +0 -1
  189. package/dist/client/components/chat/chatModeStorage.d.ts +0 -11
  190. package/dist/client/components/chat/chatModeStorage.d.ts.map +0 -1
  191. package/dist/client/components/chat/conversion.d.ts +0 -19
  192. package/dist/client/components/chat/conversion.d.ts.map +0 -1
  193. package/dist/client/components/chat/freeTier.d.ts +0 -32
  194. package/dist/client/components/chat/freeTier.d.ts.map +0 -1
  195. package/dist/client/components/chat/managedChatNotice.d.ts +0 -16
  196. package/dist/client/components/chat/managedChatNotice.d.ts.map +0 -1
  197. package/dist/client/components/chat/partialToolArgs.d.ts +0 -10
  198. package/dist/client/components/chat/partialToolArgs.d.ts.map +0 -1
  199. package/dist/client/components/chat/providerMeta.d.ts +0 -27
  200. package/dist/client/components/chat/providerMeta.d.ts.map +0 -1
  201. package/dist/client/components/chat/system-prompt/local-storage.d.ts +0 -5
  202. package/dist/client/components/chat/system-prompt/local-storage.d.ts.map +0 -1
  203. package/dist/client/components/chat/system-prompt/types.d.ts +0 -8
  204. package/dist/client/components/chat/system-prompt/types.d.ts.map +0 -1
  205. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts +0 -3
  206. package/dist/client/components/chat/system-prompt/useLocalSystemPrompt.d.ts.map +0 -1
  207. package/dist/client/components/chat/system-prompt-default.d.ts +0 -2
  208. package/dist/client/components/chat/system-prompt-default.d.ts.map +0 -1
  209. package/dist/client/components/chat/trace.d.ts +0 -84
  210. package/dist/client/components/chat/trace.d.ts.map +0 -1
  211. package/dist/client/components/chat/types.d.ts +0 -76
  212. package/dist/client/components/chat/types.d.ts.map +0 -1
  213. package/dist/client/components/chat/useChatMessages.d.ts +0 -76
  214. package/dist/client/components/chat/useChatMessages.d.ts.map +0 -1
  215. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +0 -43
  216. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +0 -1
  217. package/dist/client/components/chat/useChatScrollToBottom.d.ts +0 -14
  218. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +0 -1
  219. package/dist/client/components/chat/useConfig.d.ts +0 -24
  220. package/dist/client/components/chat/useConfig.d.ts.map +0 -1
  221. package/dist/client/components/chat/useHostedChatMode.d.ts +0 -14
  222. package/dist/client/components/chat/useHostedChatMode.d.ts.map +0 -1
  223. package/dist/client/components/chat/useManagedCloudModel.d.ts +0 -14
  224. package/dist/client/components/chat/useManagedCloudModel.d.ts.map +0 -1
  225. package/dist/client/components/chat/utils.d.ts +0 -11
  226. package/dist/client/components/chat/utils.d.ts.map +0 -1
  227. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts +0 -12
  228. package/dist/client/components/elicitation/shared/ElicitationAskUserPanel.d.ts.map +0 -1
  229. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts +0 -9
  230. package/dist/client/components/elicitation/shared/elicitationToAskUserQuestions.d.ts.map +0 -1
  231. package/dist/client/components/elicitation/shared/schemaHelpers.d.ts +0 -8
  232. package/dist/client/components/elicitation/shared/schemaHelpers.d.ts.map +0 -1
  233. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +0 -29
  234. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +0 -1
  235. package/dist/client/components/prompts/PromptExecutionPanel.d.ts +0 -13
  236. package/dist/client/components/prompts/PromptExecutionPanel.d.ts.map +0 -1
  237. package/dist/client/components/prompts/PromptInputForm.d.ts +0 -9
  238. package/dist/client/components/prompts/PromptInputForm.d.ts.map +0 -1
  239. package/dist/client/components/prompts/PromptMessageCard.d.ts +0 -29
  240. package/dist/client/components/prompts/PromptMessageCard.d.ts.map +0 -1
  241. package/dist/client/components/prompts/PromptResultDisplay.d.ts +0 -34
  242. package/dist/client/components/prompts/PromptResultDisplay.d.ts.map +0 -1
  243. package/dist/client/components/prompts/PromptsList.d.ts +0 -10
  244. package/dist/client/components/prompts/PromptsList.d.ts.map +0 -1
  245. package/dist/client/components/prompts/SavedPromptsList.d.ts +0 -19
  246. package/dist/client/components/prompts/SavedPromptsList.d.ts.map +0 -1
  247. package/dist/client/components/resources/PropsConfigDialog.d.ts +0 -16
  248. package/dist/client/components/resources/PropsConfigDialog.d.ts.map +0 -1
  249. package/dist/client/components/resources/ResourceResultDisplay.d.ts +0 -30
  250. package/dist/client/components/resources/ResourceResultDisplay.d.ts.map +0 -1
  251. package/dist/client/components/resources/ResourcesList.d.ts +0 -10
  252. package/dist/client/components/resources/ResourcesList.d.ts.map +0 -1
  253. package/dist/client/components/shared/CollapsibleJSON.d.ts +0 -6
  254. package/dist/client/components/shared/CollapsibleJSON.d.ts.map +0 -1
  255. package/dist/client/components/shared/InspectorScrollArea.d.ts +0 -9
  256. package/dist/client/components/shared/InspectorScrollArea.d.ts.map +0 -1
  257. package/dist/client/components/shared/JSONDisplay.d.ts +0 -12
  258. package/dist/client/components/shared/JSONDisplay.d.ts.map +0 -1
  259. package/dist/client/components/shared/ListItem.d.ts +0 -24
  260. package/dist/client/components/shared/ListItem.d.ts.map +0 -1
  261. package/dist/client/components/shared/ListTabHeader.d.ts +0 -47
  262. package/dist/client/components/shared/ListTabHeader.d.ts.map +0 -1
  263. package/dist/client/components/shared/MarkdownRenderer.d.ts +0 -15
  264. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +0 -1
  265. package/dist/client/components/shared/SchemaFormField.d.ts +0 -12
  266. package/dist/client/components/shared/SchemaFormField.d.ts.map +0 -1
  267. package/dist/client/components/shared/SearchTabHeader.d.ts +0 -28
  268. package/dist/client/components/shared/SearchTabHeader.d.ts.map +0 -1
  269. package/dist/client/components/shared/StatusIcon.d.ts +0 -12
  270. package/dist/client/components/shared/StatusIcon.d.ts.map +0 -1
  271. package/dist/client/components/shared/index.d.ts +0 -7
  272. package/dist/client/components/shared/index.d.ts.map +0 -1
  273. package/dist/client/components/tools/SaveRequestDialog.d.ts +0 -11
  274. package/dist/client/components/tools/SaveRequestDialog.d.ts.map +0 -1
  275. package/dist/client/components/tools/SavedRequestsList.d.ts +0 -19
  276. package/dist/client/components/tools/SavedRequestsList.d.ts.map +0 -1
  277. package/dist/client/components/tools/ToolExecutionPanel.d.ts +0 -20
  278. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +0 -1
  279. package/dist/client/components/tools/ToolInputForm.d.ts +0 -14
  280. package/dist/client/components/tools/ToolInputForm.d.ts.map +0 -1
  281. package/dist/client/components/tools/ToolResultDisplay.d.ts +0 -25
  282. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +0 -1
  283. package/dist/client/components/tools/ToolsList.d.ts +0 -10
  284. package/dist/client/components/tools/ToolsList.d.ts.map +0 -1
  285. package/dist/client/components/tools/schema-utils.d.ts +0 -13
  286. package/dist/client/components/tools/schema-utils.d.ts.map +0 -1
  287. package/dist/client/components/tools/useToolExecution.d.ts +0 -26
  288. package/dist/client/components/tools/useToolExecution.d.ts.map +0 -1
  289. package/dist/client/components/tools/useToolsTabNavigation.d.ts +0 -35
  290. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +0 -1
  291. package/dist/client/components/ui/MeshGradientCanvas.d.ts +0 -13
  292. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +0 -1
  293. package/dist/client/components/ui/WidgetWrapper.d.ts +0 -12
  294. package/dist/client/components/ui/WidgetWrapper.d.ts.map +0 -1
  295. package/dist/client/components/ui/alert-dialog.d.ts +0 -15
  296. package/dist/client/components/ui/alert-dialog.d.ts.map +0 -1
  297. package/dist/client/components/ui/ask-user-questions.d.ts +0 -80
  298. package/dist/client/components/ui/ask-user-questions.d.ts.map +0 -1
  299. package/dist/client/components/ui/badge.d.ts +0 -34
  300. package/dist/client/components/ui/badge.d.ts.map +0 -1
  301. package/dist/client/components/ui/blur-fade.d.ts +0 -25
  302. package/dist/client/components/ui/blur-fade.d.ts.map +0 -1
  303. package/dist/client/components/ui/button.d.ts +0 -34
  304. package/dist/client/components/ui/button.d.ts.map +0 -1
  305. package/dist/client/components/ui/chat-message.d.ts +0 -23
  306. package/dist/client/components/ui/chat-message.d.ts.map +0 -1
  307. package/dist/client/components/ui/checkbox.d.ts +0 -4
  308. package/dist/client/components/ui/checkbox.d.ts.map +0 -1
  309. package/dist/client/components/ui/client-icons.d.ts +0 -20
  310. package/dist/client/components/ui/client-icons.d.ts.map +0 -1
  311. package/dist/client/components/ui/command.d.ts +0 -17
  312. package/dist/client/components/ui/command.d.ts.map +0 -1
  313. package/dist/client/components/ui/dialog.d.ts +0 -37
  314. package/dist/client/components/ui/dialog.d.ts.map +0 -1
  315. package/dist/client/components/ui/dropdown-menu.d.ts +0 -25
  316. package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
  317. package/dist/client/components/ui/dropdown.d.ts +0 -30
  318. package/dist/client/components/ui/dropdown.d.ts.map +0 -1
  319. package/dist/client/components/ui/file-thumbnail.d.ts +0 -9
  320. package/dist/client/components/ui/file-thumbnail.d.ts.map +0 -1
  321. package/dist/client/components/ui/input.d.ts +0 -4
  322. package/dist/client/components/ui/input.d.ts.map +0 -1
  323. package/dist/client/components/ui/kbd.d.ts +0 -3
  324. package/dist/client/components/ui/kbd.d.ts.map +0 -1
  325. package/dist/client/components/ui/label.d.ts +0 -4
  326. package/dist/client/components/ui/label.d.ts.map +0 -1
  327. package/dist/client/components/ui/menu-item.d.ts +0 -52
  328. package/dist/client/components/ui/menu-item.d.ts.map +0 -1
  329. package/dist/client/components/ui/mesh-animation-pause.d.ts +0 -14
  330. package/dist/client/components/ui/mesh-animation-pause.d.ts.map +0 -1
  331. package/dist/client/components/ui/mesh-gradient-colors.d.ts +0 -6
  332. package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +0 -1
  333. package/dist/client/components/ui/mesh-tab-background.d.ts +0 -12
  334. package/dist/client/components/ui/mesh-tab-background.d.ts.map +0 -1
  335. package/dist/client/components/ui/not-found.d.ts +0 -9
  336. package/dist/client/components/ui/not-found.d.ts.map +0 -1
  337. package/dist/client/components/ui/popover.d.ts +0 -6
  338. package/dist/client/components/ui/popover.d.ts.map +0 -1
  339. package/dist/client/components/ui/resizable.d.ts +0 -10
  340. package/dist/client/components/ui/resizable.d.ts.map +0 -1
  341. package/dist/client/components/ui/scroll-area.d.ts +0 -4
  342. package/dist/client/components/ui/scroll-area.d.ts.map +0 -1
  343. package/dist/client/components/ui/select.d.ts +0 -52
  344. package/dist/client/components/ui/select.d.ts.map +0 -1
  345. package/dist/client/components/ui/sheet.d.ts +0 -14
  346. package/dist/client/components/ui/sheet.d.ts.map +0 -1
  347. package/dist/client/components/ui/skeleton.d.ts +0 -4
  348. package/dist/client/components/ui/skeleton.d.ts.map +0 -1
  349. package/dist/client/components/ui/spinner.d.ts +0 -3
  350. package/dist/client/components/ui/spinner.d.ts.map +0 -1
  351. package/dist/client/components/ui/switch.d.ts +0 -22
  352. package/dist/client/components/ui/switch.d.ts.map +0 -1
  353. package/dist/client/components/ui/table.d.ts +0 -9
  354. package/dist/client/components/ui/table.d.ts.map +0 -1
  355. package/dist/client/components/ui/tabs-subtle.d.ts +0 -25
  356. package/dist/client/components/ui/tabs-subtle.d.ts.map +0 -1
  357. package/dist/client/components/ui/text-shimmer.d.ts +0 -11
  358. package/dist/client/components/ui/text-shimmer.d.ts.map +0 -1
  359. package/dist/client/components/ui/textarea.d.ts +0 -4
  360. package/dist/client/components/ui/textarea.d.ts.map +0 -1
  361. package/dist/client/components/ui/tooltip.d.ts +0 -43
  362. package/dist/client/components/ui/tooltip.d.ts.map +0 -1
  363. package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts +0 -19
  364. package/dist/client/components/ui-playground/shared/SafeAreaInsetsEditor.d.ts.map +0 -1
  365. package/dist/client/console-log-bus.d.ts +0 -24
  366. package/dist/client/console-log-bus.d.ts.map +0 -1
  367. package/dist/client/constants/debug-options.d.ts +0 -16
  368. package/dist/client/constants/debug-options.d.ts.map +0 -1
  369. package/dist/client/context/InspectorContext.d.ts +0 -134
  370. package/dist/client/context/InspectorContext.d.ts.map +0 -1
  371. package/dist/client/context/ThemeContext.d.ts +0 -17
  372. package/dist/client/context/ThemeContext.d.ts.map +0 -1
  373. package/dist/client/context/WidgetDebugContext.d.ts +0 -111
  374. package/dist/client/context/WidgetDebugContext.d.ts.map +0 -1
  375. package/dist/client/hooks/use-merge-split.d.ts +0 -36
  376. package/dist/client/hooks/use-merge-split.d.ts.map +0 -1
  377. package/dist/client/hooks/use-proximity-hover-index.d.ts +0 -27
  378. package/dist/client/hooks/use-proximity-hover-index.d.ts.map +0 -1
  379. package/dist/client/hooks/use-proximity-hover.d.ts +0 -26
  380. package/dist/client/hooks/use-proximity-hover.d.ts.map +0 -1
  381. package/dist/client/hooks/use-touch-primary.d.ts +0 -2
  382. package/dist/client/hooks/use-touch-primary.d.ts.map +0 -1
  383. package/dist/client/hooks/useDeviceViewport.d.ts +0 -14
  384. package/dist/client/hooks/useDeviceViewport.d.ts.map +0 -1
  385. package/dist/client/hooks/useHostedSession.d.ts +0 -9
  386. package/dist/client/hooks/useHostedSession.d.ts.map +0 -1
  387. package/dist/client/hooks/useIframeConsole.d.ts +0 -24
  388. package/dist/client/hooks/useIframeConsole.d.ts.map +0 -1
  389. package/dist/client/hooks/useKeyboardShortcuts.d.ts +0 -28
  390. package/dist/client/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  391. package/dist/client/hooks/useMCPPrompts.d.ts +0 -94
  392. package/dist/client/hooks/useMCPPrompts.d.ts.map +0 -1
  393. package/dist/client/hooks/useMcpAppsHostContext.d.ts +0 -27
  394. package/dist/client/hooks/useMcpAppsHostContext.d.ts.map +0 -1
  395. package/dist/client/hooks/usePropsLLM.d.ts +0 -20
  396. package/dist/client/hooks/usePropsLLM.d.ts.map +0 -1
  397. package/dist/client/hooks/useResourceProps.d.ts +0 -14
  398. package/dist/client/hooks/useResourceProps.d.ts.map +0 -1
  399. package/dist/client/hooks/useSavedRequests.d.ts +0 -6
  400. package/dist/client/hooks/useSavedRequests.d.ts.map +0 -1
  401. package/dist/client/hooks/useViewHostProps.d.ts +0 -19
  402. package/dist/client/hooks/useViewHostProps.d.ts.map +0 -1
  403. package/dist/client/index.d.ts.map +0 -1
  404. package/dist/client/lib/elevated.d.ts +0 -28
  405. package/dist/client/lib/elevated.d.ts.map +0 -1
  406. package/dist/client/lib/font-weight.d.ts +0 -10
  407. package/dist/client/lib/font-weight.d.ts.map +0 -1
  408. package/dist/client/lib/icon-context.d.ts +0 -15
  409. package/dist/client/lib/icon-context.d.ts.map +0 -1
  410. package/dist/client/lib/shape-context.d.ts +0 -21
  411. package/dist/client/lib/shape-context.d.ts.map +0 -1
  412. package/dist/client/lib/springs.d.ts +0 -32
  413. package/dist/client/lib/springs.d.ts.map +0 -1
  414. package/dist/client/lib/surface-classes.d.ts +0 -2
  415. package/dist/client/lib/surface-classes.d.ts.map +0 -1
  416. package/dist/client/lib/surface-context.d.ts +0 -7
  417. package/dist/client/lib/surface-context.d.ts.map +0 -1
  418. package/dist/client/lib/utils.d.ts +0 -3
  419. package/dist/client/lib/utils.d.ts.map +0 -1
  420. package/dist/client/mcp-apps/csp.d.ts +0 -26
  421. package/dist/client/mcp-apps/csp.d.ts.map +0 -1
  422. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts +0 -17
  423. package/dist/client/mcp-apps/debug/csp-suggestions.d.ts.map +0 -1
  424. package/dist/client/mcp-apps/logging-transport.d.ts +0 -13
  425. package/dist/client/mcp-apps/logging-transport.d.ts.map +0 -1
  426. package/dist/client/rpc-traffic-coalesce.d.ts +0 -7
  427. package/dist/client/rpc-traffic-coalesce.d.ts.map +0 -1
  428. package/dist/client/rpc-traffic-store.d.ts +0 -37
  429. package/dist/client/rpc-traffic-store.d.ts.map +0 -1
  430. package/dist/client/telemetry/capture.d.ts +0 -7
  431. package/dist/client/telemetry/capture.d.ts.map +0 -1
  432. package/dist/client/telemetry/events.d.ts +0 -168
  433. package/dist/client/telemetry/events.d.ts.map +0 -1
  434. package/dist/client/telemetry/index.d.ts +0 -5
  435. package/dist/client/telemetry/index.d.ts.map +0 -1
  436. package/dist/client/telemetry/init.d.ts +0 -2
  437. package/dist/client/telemetry/init.d.ts.map +0 -1
  438. package/dist/client/telemetry/utils.d.ts +0 -7
  439. package/dist/client/telemetry/utils.d.ts.map +0 -1
  440. package/dist/client/types/message-content-block.d.ts +0 -19
  441. package/dist/client/types/message-content-block.d.ts.map +0 -1
  442. package/dist/client/types/pending-requests.d.ts +0 -17
  443. package/dist/client/types/pending-requests.d.ts.map +0 -1
  444. package/dist/client/utils/basePath.d.ts +0 -34
  445. package/dist/client/utils/basePath.d.ts.map +0 -1
  446. package/dist/client/utils/browser.d.ts +0 -5
  447. package/dist/client/utils/browser.d.ts.map +0 -1
  448. package/dist/client/utils/format.d.ts +0 -4
  449. package/dist/client/utils/format.d.ts.map +0 -1
  450. package/dist/client/utils/highlightJson.d.ts +0 -11
  451. package/dist/client/utils/highlightJson.d.ts.map +0 -1
  452. package/dist/client/utils/jsonUtils.d.ts +0 -24
  453. package/dist/client/utils/jsonUtils.d.ts.map +0 -1
  454. package/dist/client/utils/mcpClientUtils.d.ts +0 -131
  455. package/dist/client/utils/mcpClientUtils.d.ts.map +0 -1
  456. package/dist/client/utils/servers.d.ts +0 -19
  457. package/dist/client/utils/servers.d.ts.map +0 -1
  458. package/dist/server/asset-urls.d.ts +0 -18
  459. package/dist/server/asset-urls.d.ts.map +0 -1
  460. package/dist/server/asset-urls.js +0 -17
  461. package/dist/server/cdn-shell.d.ts +0 -18
  462. package/dist/server/cdn-shell.d.ts.map +0 -1
  463. package/dist/server/cdn-shell.js +0 -12
  464. package/dist/server/chunk-BD3ROXCC.js +0 -156
  465. package/dist/server/chunk-BPXKTFQ5.js +0 -72
  466. package/dist/server/chunk-H6ZCIKBS.js +0 -63
  467. package/dist/server/chunk-IKTZUWSX.js +0 -0
  468. package/dist/server/chunk-J4FNYLBF.js +0 -54
  469. package/dist/server/chunk-K2F2AJOI.js +0 -619
  470. package/dist/server/chunk-KD7K27XK.js +0 -77
  471. package/dist/server/chunk-M5TZA42I.js +0 -54
  472. package/dist/server/chunk-OWR2BIBW.js +0 -40
  473. package/dist/server/chunk-PKBMQBKP.js +0 -7
  474. package/dist/server/chunk-UJLXHNQP.js +0 -43
  475. package/dist/server/chunk-WFT4JHYI.js +0 -24
  476. package/dist/server/chunk-XCNS5CIW.js +0 -199
  477. package/dist/server/chunk-XTVIGRTB.js +0 -207
  478. package/dist/server/cli.d.ts +0 -3
  479. package/dist/server/cli.d.ts.map +0 -1
  480. package/dist/server/cli.js +0 -141
  481. package/dist/server/create-dev-api-app.d.ts +0 -4
  482. package/dist/server/create-dev-api-app.d.ts.map +0 -1
  483. package/dist/server/create-dev-api-app.js +0 -11
  484. package/dist/server/dev-callback-redirect.d.ts +0 -3
  485. package/dist/server/dev-callback-redirect.d.ts.map +0 -1
  486. package/dist/server/dev-callback-redirect.js +0 -18
  487. package/dist/server/favicon-links.d.ts +0 -12
  488. package/dist/server/favicon-links.d.ts.map +0 -1
  489. package/dist/server/favicon-links.js +0 -11
  490. package/dist/server/favicon-static.d.ts +0 -4
  491. package/dist/server/favicon-static.d.ts.map +0 -1
  492. package/dist/server/favicon-static.js +0 -8
  493. package/dist/server/index.d.ts.map +0 -1
  494. package/dist/server/middleware.d.ts +0 -40
  495. package/dist/server/middleware.d.ts.map +0 -1
  496. package/dist/server/middleware.js +0 -17
  497. package/dist/server/proxy/index.d.ts +0 -3
  498. package/dist/server/proxy/index.d.ts.map +0 -1
  499. package/dist/server/proxy/index.js +0 -12
  500. package/dist/server/proxy/mcp-proxy.d.ts +0 -101
  501. package/dist/server/proxy/mcp-proxy.d.ts.map +0 -1
  502. package/dist/server/proxy/mcp-proxy.js +0 -10
  503. package/dist/server/proxy/oauth-proxy.d.ts +0 -26
  504. package/dist/server/proxy/oauth-proxy.d.ts.map +0 -1
  505. package/dist/server/proxy/oauth-proxy.js +0 -9
  506. package/dist/server/proxy-routes.d.ts +0 -16
  507. package/dist/server/proxy-routes.d.ts.map +0 -1
  508. package/dist/server/proxy-routes.js +0 -10
  509. package/dist/server/rpc-log-bus.d.ts +0 -17
  510. package/dist/server/rpc-log-bus.d.ts.map +0 -1
  511. package/dist/server/rpc-log-bus.js +0 -77
  512. package/dist/server/server.d.ts +0 -15
  513. package/dist/server/server.d.ts.map +0 -1
  514. package/dist/server/server.js +0 -66
  515. package/dist/server/static-assets.d.ts +0 -5
  516. package/dist/server/static-assets.d.ts.map +0 -1
  517. package/dist/server/static-assets.js +0 -9
  518. package/dist/server/utils.d.ts +0 -33
  519. package/dist/server/utils.d.ts.map +0 -1
  520. package/dist/server/utils.js +0 -17
  521. package/dist/server/version.d.ts +0 -7
  522. package/dist/server/version.d.ts.map +0 -1
  523. package/dist/server/version.js +0 -9
  524. package/dist/server/vite-dev-api-plugin.d.ts +0 -4
  525. package/dist/server/vite-dev-api-plugin.d.ts.map +0 -1
  526. package/dist/server/vite-dev-api-plugin.js +0 -30
  527. package/dist/web/apple-touch-icon.png +0 -0
  528. package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +0 -9
  529. package/dist/web/assets/ChatTab-DxD-KLW_.js +0 -18
  530. package/dist/web/assets/ConnectionSettingsTab-pO6p0U0f.js +0 -1
  531. package/dist/web/assets/ElicitationTab-o5_z6gqe.js +0 -1
  532. package/dist/web/assets/FormContext-sV-yByKz.js +0 -1
  533. package/dist/web/assets/ListTabHeader-CrGae306.js +0 -1
  534. package/dist/web/assets/MCPAppsDebugControls-CZW1uZdH.js +0 -34
  535. package/dist/web/assets/ManufactOAuthCallback-BnWhf5bW.js +0 -1
  536. package/dist/web/assets/MarkdownRenderer-gUUHRIm1.js +0 -47
  537. package/dist/web/assets/McpAppsViewPanel-CDJDb4t-.js +0 -1
  538. package/dist/web/assets/NotificationsTab-CkJ5E_sR.js +0 -1
  539. package/dist/web/assets/OAuthCallback-Dv_mFcua.js +0 -1
  540. package/dist/web/assets/PromptsTab-CLwWFf6d.js +0 -15
  541. package/dist/web/assets/ResourcesTab-B8cnuq-m.js +0 -2
  542. package/dist/web/assets/SamplingTab-BjYHYRHX.js +0 -1
  543. package/dist/web/assets/ServerMetadataTab-CPlclbb7.js +0 -1
  544. package/dist/web/assets/ToolsTab-BSSwvp4Q.js +0 -8
  545. package/dist/web/assets/ViewPreview-C_LJdgt9.js +0 -1
  546. package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +0 -1
  547. package/dist/web/assets/brush-DX0UZ_pI.js +0 -1
  548. package/dist/web/assets/button-C8Xa2k4x.js +0 -1
  549. package/dist/web/assets/checkbox-BuuDhnpk.js +0 -1
  550. package/dist/web/assets/code-B14rVdNt.js +0 -1
  551. package/dist/web/assets/createLucideIcon-BEHeJH0M.js +0 -1
  552. package/dist/web/assets/dist-C39gcmyH.js +0 -21
  553. package/dist/web/assets/index-CyvvaDNR.js +0 -499
  554. package/dist/web/assets/index-bCIH1Sdx.css +0 -1
  555. package/dist/web/assets/input-C0OQCUZy.js +0 -1
  556. package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
  557. package/dist/web/assets/label-CI7JWQOo.js +0 -1
  558. package/dist/web/assets/maximize-2-Br1WQzT2.js +0 -1
  559. package/dist/web/assets/maximize-CJNgRe6S.js +0 -1
  560. package/dist/web/assets/react-CU_d2d5K.js +0 -1
  561. package/dist/web/assets/refresh-cw-B5iaAZKn.js +0 -1
  562. package/dist/web/assets/save-TM6fvNrt.js +0 -1
  563. package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
  564. package/dist/web/assets/select-D6jzbLJn.js +0 -1
  565. package/dist/web/assets/shared-Chk1rURG.js +0 -1
  566. package/dist/web/assets/sparkles-BGYTDThM.js +0 -1
  567. package/dist/web/assets/tabs-subtle-CK4nucyB.js +0 -1
  568. package/dist/web/assets/textarea-CRTXuRmE.js +0 -1
  569. package/dist/web/assets/useConfig-CgQbKjVT.js +0 -1
  570. package/dist/web/assets/useViewHostProps-DFI7Ywo7.js +0 -1
  571. package/dist/web/assets/zap-BDWHCVHU.js +0 -1
  572. package/dist/web/favicon-96x96.png +0 -0
  573. package/dist/web/favicon-black.svg +0 -5
  574. package/dist/web/favicon-white.svg +0 -5
  575. package/dist/web/favicon.ico +0 -0
  576. package/dist/web/favicon.svg +0 -5
  577. package/dist/web/index.html +0 -89
  578. package/dist/web/providers/anthropic.png +0 -0
  579. package/dist/web/providers/google.png +0 -0
  580. package/dist/web/providers/openai.png +0 -0
  581. package/dist/web/site.webmanifest +0 -21
  582. package/dist/web/web-app-manifest-192x192.png +0 -0
  583. package/dist/web/web-app-manifest-512x512.png +0 -0
  584. /package/dist/{cdn → app}/apple-touch-icon.png +0 -0
  585. /package/dist/{cdn → app}/favicon-96x96.png +0 -0
  586. /package/dist/{cdn → app}/favicon-black.svg +0 -0
  587. /package/dist/{cdn → app}/favicon-white.svg +0 -0
  588. /package/dist/{cdn → app}/favicon.ico +0 -0
  589. /package/dist/{cdn → app}/favicon.svg +0 -0
  590. /package/dist/{cdn → app}/site.webmanifest +0 -0
  591. /package/dist/{cdn → app}/web-app-manifest-192x192.png +0 -0
  592. /package/dist/{cdn → app}/web-app-manifest-512x512.png +0 -0
@@ -1,238 +0,0 @@
1
- import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { n } from "./createLucideIcon-BONxC1L5.js";
3
- import { d as r, r as i } from "./react-Bl-hSkvn.js";
4
- import { t as a } from "./basePath-B8HuhIMu.js";
5
- import { c as o, s } from "./chunk-QUQL4437-XnDcYQEx.js";
6
- import { t as c } from "./useViewHostProps-CDOm2w6u.js";
7
- //#region src/client/components/ViewPreview.tsx
8
- var l = /* @__PURE__ */ e(t(), 1), u = n(), d = "preview-default";
9
- function f(e) {
10
- if (!e) return {};
11
- try {
12
- let t = atob(e), n = JSON.parse(t);
13
- if (n && typeof n == "object") return n;
14
- } catch {}
15
- return {};
16
- }
17
- function p(e, t) {
18
- let n = `ui://widget/${t}`, r = e.find((e) => e.uri.startsWith(`${n}.`) && e.uri.endsWith(".html"));
19
- return r ? r.uri : e.find((e) => e.name === t)?.uri;
20
- }
21
- function m() {
22
- let e = globalThis.__mcpUsePreviewBundle;
23
- if (!e || typeof e != "object") return;
24
- let t = e;
25
- if (typeof t.resourceUri == "string") return t;
26
- }
27
- function h() {
28
- (0, l.useEffect)(() => {
29
- let e = document.documentElement, t = document.body, n = e.style.margin, r = t.style.margin, i = t.style.overflow;
30
- return e.style.margin = "0", t.style.margin = "0", t.style.overflow = "hidden", () => {
31
- e.style.margin = n, t.style.margin = r, t.style.overflow = i;
32
- };
33
- }, []);
34
- }
35
- function g(e, t) {
36
- (0, l.useEffect)(() => {
37
- let n = () => {
38
- document.body.dataset.viewError = "runtime_error";
39
- };
40
- return e && !t && (document.body.dataset.viewError = "invalid_payload"), window.addEventListener("error", n), window.addEventListener("unhandledrejection", n), () => {
41
- window.removeEventListener("error", n), window.removeEventListener("unhandledrejection", n), delete document.body.dataset.viewError;
42
- };
43
- }, [e, t]);
44
- }
45
- function _(e) {
46
- (0, l.useEffect)(() => {
47
- if (!e) return;
48
- let t = !1;
49
- return (async () => {
50
- try {
51
- await document.fonts.ready;
52
- } catch {}
53
- t || (await new Promise((e) => requestAnimationFrame(() => e(void 0))), await new Promise((e) => requestAnimationFrame(() => e(void 0))), !t && document.body.setAttribute("data-view-ready", "true"));
54
- })(), () => {
55
- t = !0, document.body.removeAttribute("data-view-ready");
56
- };
57
- }, [e]);
58
- }
59
- function v(e, t) {
60
- (0, l.useEffect)(() => {
61
- if (!e) return;
62
- let n = !1, r, i, a = (e) => {
63
- n || (e && (document.body.dataset.viewX = String(Math.round(e.left)), document.body.dataset.viewY = String(Math.round(e.top)), document.body.dataset.viewWidth = String(Math.round(e.width)), document.body.dataset.viewHeight = String(Math.round(e.height))), document.body.setAttribute("data-view-ready", "true"));
64
- };
65
- return (async () => {
66
- try {
67
- await document.fonts.ready;
68
- } catch {}
69
- if (n || (await new Promise((e) => requestAnimationFrame(() => e(void 0))), await new Promise((e) => requestAnimationFrame(() => e(void 0))), n)) return;
70
- let e = t.current?.querySelector("iframe");
71
- if (!e) {
72
- a(null);
73
- return;
74
- }
75
- let o = () => {
76
- r && clearTimeout(r), r = setTimeout(() => {
77
- n || (i?.disconnect(), a(e.getBoundingClientRect()));
78
- }, 250);
79
- };
80
- i = new ResizeObserver(o), i.observe(e), o();
81
- })(), () => {
82
- n = !0, r && clearTimeout(r), i?.disconnect(), document.body.removeAttribute("data-view-ready"), delete document.body.dataset.viewX, delete document.body.dataset.viewY, delete document.body.dataset.viewWidth, delete document.body.dataset.viewHeight;
83
- };
84
- }, [e, t]);
85
- }
86
- function y({ view: e, bundle: t, widthOverride: n }) {
87
- let [r, a] = (0, l.useState)(!1), o = (0, l.useRef)(null);
88
- h(), v(r, o);
89
- let s = (0, l.useMemo)(() => async (e) => {
90
- if (e === t.resourceUri) return t.resourceContents;
91
- throw Error(`Resource ${e} not in screenshot bundle`);
92
- }, [t]);
93
- return /* @__PURE__ */ (0, u.jsx)("div", {
94
- ref: o,
95
- style: {
96
- width: "100vw",
97
- height: "100vh"
98
- },
99
- children: /* @__PURE__ */ (0, u.jsx)(i, {
100
- viewId: (0, l.useMemo)(() => `preview-bundle-${e}-${Date.now().toString(36)}`, [e]),
101
- toolName: e,
102
- toolInput: t.toolInput,
103
- toolOutput: t.toolOutput,
104
- displayMode: "inline",
105
- inlineMaxWidth: n,
106
- chromeless: !0,
107
- onReady: () => a(!0),
108
- source: {
109
- kind: "live",
110
- connection: {
111
- callTool: async () => {
112
- throw Error("Preview bundle mode has no server connection");
113
- },
114
- readResource: s
115
- },
116
- resourceUri: t.resourceUri
117
- },
118
- cspMode: "permissive",
119
- hostInfo: {
120
- name: "mcp-use-inspector",
121
- version: "11.0.0"
122
- },
123
- mockOpenAiFileApis: !0
124
- })
125
- });
126
- }
127
- function b({ view: e }) {
128
- let [t] = o(), n = (0, l.useMemo)(() => f(t.get("props")), [t]), s = (0, l.useMemo)(() => t.get("server") || `${window.location.origin}${a() || "/"}`, [t]), m = (0, l.useMemo)(() => {
129
- let e = t.get("headers");
130
- if (e) try {
131
- let t = JSON.parse(atob(e));
132
- if (t && typeof t == "object") return t;
133
- } catch {}
134
- }, [t]), { servers: g, addServer: v, storageLoaded: y } = r(), b = g.find((e) => e.id === d);
135
- (0, l.useEffect)(() => {
136
- y && v(d, {
137
- url: s,
138
- displayName: "Preview",
139
- protocolNegotiation: "auto",
140
- ...m ? { headers: m } : {}
141
- });
142
- }, [
143
- y,
144
- s,
145
- m,
146
- v
147
- ]);
148
- let x = b?.state === "ready", S = b?.state === "failed", C = (0, l.useMemo)(() => {
149
- if (x) return p(b.resources, e);
150
- }, [
151
- x,
152
- b?.resources,
153
- e
154
- ]), w = (0, l.useMemo)(() => `preview-${e}-${Date.now().toString(36)}`, [e]), T = (0, l.useMemo)(() => async (e) => {
155
- if (!b?.readResource) throw Error("Server not ready");
156
- return b.readResource(e);
157
- }, [b]), [E, D] = (0, l.useState)(!1);
158
- _(E), h();
159
- let O = c({
160
- serverId: d,
161
- viewId: w,
162
- resourceUri: C ?? "",
163
- toolName: e,
164
- toolInput: n.toolInput,
165
- toolOutput: n.toolOutput,
166
- readResource: T,
167
- displayMode: "fullscreen",
168
- chromeless: !0,
169
- onReady: () => D(!0)
170
- });
171
- return S ? /* @__PURE__ */ (0, u.jsxs)("div", {
172
- style: {
173
- padding: 16,
174
- fontFamily: "monospace",
175
- color: "#b00"
176
- },
177
- children: [
178
- "Failed to connect to MCP server at ",
179
- s,
180
- "."
181
- ]
182
- }) : !x || !C ? x && !C ? /* @__PURE__ */ (0, u.jsxs)("div", {
183
- style: {
184
- padding: 16,
185
- fontFamily: "monospace",
186
- color: "#b00"
187
- },
188
- children: [
189
- "View \"",
190
- e,
191
- "\" not found on ",
192
- s,
193
- "."
194
- ]
195
- }) : /* @__PURE__ */ (0, u.jsx)("div", {
196
- style: {
197
- width: "100vw",
198
- height: "100vh",
199
- display: "flex",
200
- alignItems: "center",
201
- justifyContent: "center",
202
- fontFamily: "monospace",
203
- color: "var(--muted-foreground, #888)"
204
- },
205
- children: "Loading…"
206
- }) : /* @__PURE__ */ (0, u.jsx)("div", {
207
- style: {
208
- width: "100vw",
209
- height: "100vh"
210
- },
211
- children: O && C ? /* @__PURE__ */ (0, u.jsx)(i, {
212
- viewId: w,
213
- toolName: e,
214
- toolInput: n.toolInput,
215
- toolOutput: n.toolOutput,
216
- displayMode: "fullscreen",
217
- chromeless: !0,
218
- ...O
219
- }) : null
220
- });
221
- }
222
- function x() {
223
- let e = s(), [t] = o(), n = e.view ?? "", r = (0, l.useMemo)(() => m(), []), i = t.get("protocol") === "1";
224
- g(i, r !== void 0);
225
- let a = (0, l.useMemo)(() => {
226
- let e = t.get("width");
227
- if (!e) return;
228
- let n = parseInt(e, 10);
229
- return Number.isFinite(n) && n > 0 ? n : void 0;
230
- }, [t]);
231
- return r ? /* @__PURE__ */ (0, u.jsx)(y, {
232
- view: n,
233
- bundle: r,
234
- widthOverride: a
235
- }) : i ? null : /* @__PURE__ */ (0, u.jsx)(b, { view: n });
236
- }
237
- //#endregion
238
- export { x as ViewPreview };
@@ -1,314 +0,0 @@
1
- import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { n } from "./createLucideIcon-BONxC1L5.js";
3
- //#region src/client/context/ThemeContext.tsx
4
- var r = /* @__PURE__ */ e(t(), 1), i = n(), a = (0, r.createContext)(void 0);
5
- function o() {
6
- let e = (0, r.use)(a);
7
- if (e === void 0) throw Error("useTheme must be used within a ThemeProvider");
8
- return e;
9
- }
10
- function s({ children: e, defaultTheme: t = "system", storageKey: n = "theme", forcedTheme: o }) {
11
- let [s, c] = (0, r.useState)(o || t), [l, u] = (0, r.useState)(!1), d = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", f = s === "system" ? d() : s, p = (e) => {
12
- let t = document.documentElement, r = e === "system" ? d() : e;
13
- t.classList.remove("light", "dark"), t.classList.add(r), o || localStorage.setItem(n, e);
14
- };
15
- return (0, r.useEffect)(() => {
16
- u(!0);
17
- let e = localStorage.getItem(n), r = o || e || t;
18
- c(r), p(r);
19
- }, [
20
- t,
21
- n,
22
- o
23
- ]), (0, r.useEffect)(() => {
24
- if (s !== "system") return;
25
- let e = window.matchMedia("(prefers-color-scheme: dark)"), t = () => {
26
- p("system");
27
- };
28
- return e.addEventListener("change", t), () => e.removeEventListener("change", t);
29
- }, [s]), (0, r.useEffect)(() => {
30
- l && p(s);
31
- }, [s, l]), /* @__PURE__ */ (0, i.jsx)(a, {
32
- value: {
33
- theme: s,
34
- setTheme: (e) => {
35
- if (o) {
36
- console.warn("[ThemeProvider] Theme is forced via URL parameter, ignoring setTheme call");
37
- return;
38
- }
39
- c(e);
40
- },
41
- resolvedTheme: f
42
- },
43
- children: e
44
- });
45
- }
46
- //#endregion
47
- //#region src/client/rpc-traffic-coalesce.ts
48
- var c = 300, l = /(?:^|\/)notifications\//;
49
- function u(e) {
50
- let t = e;
51
- return typeof t?.method == "string" ? t.method : null;
52
- }
53
- function d(e) {
54
- let t = e.message;
55
- if (t?.id !== void 0 && t.id !== null || t?.result !== void 0 || t?.error !== void 0) return null;
56
- let n = u(e.message);
57
- return !n || !l.test(n) ? null : [
58
- e.source,
59
- e.serverId,
60
- e.widgetId ?? "",
61
- e.direction,
62
- n
63
- ].join("|");
64
- }
65
- function f(e, t, n = Date.now()) {
66
- let r = d(e), i = d(t);
67
- if (!r || r !== i) return !1;
68
- let a = Date.parse(e.timestamp);
69
- return Number.isNaN(a) ? !1 : n - a <= c;
70
- }
71
- function p(e, t) {
72
- return {
73
- ...e,
74
- timestamp: t.timestamp,
75
- message: t.message,
76
- repeatCount: (e.repeatCount ?? 1) + 1
77
- };
78
- }
79
- var m = new class {
80
- maxEntries;
81
- entries = [];
82
- listeners = /* @__PURE__ */ new Set();
83
- nextId = 0;
84
- emitFrame = null;
85
- constructor(e = 1e3) {
86
- this.maxEntries = e;
87
- }
88
- publish(e) {
89
- let t = this.entries[this.entries.length - 1];
90
- if (t && f(t, e, Date.parse(e.timestamp))) {
91
- this.entries[this.entries.length - 1] = p(t, e), this.scheduleEmit();
92
- return;
93
- }
94
- this.entries.push({
95
- ...e,
96
- id: `rpc-${++this.nextId}`
97
- }), this.entries.length > this.maxEntries && this.entries.splice(0, this.entries.length - this.maxEntries), this.scheduleEmit();
98
- }
99
- getSnapshot = () => this.entries;
100
- subscribe = (e) => (this.listeners.add(e), () => this.listeners.delete(e));
101
- clear(e = {}) {
102
- let t = new Set(e.serverIds ?? []), n = new Set(e.sources ?? []);
103
- t.size === 0 && n.size === 0 ? this.entries = [] : this.entries = this.entries.filter((e) => !((t.size === 0 || t.has(e.serverId)) && (n.size === 0 || n.has(e.source)))), this.scheduleEmit();
104
- }
105
- peekCoalesceKey(e) {
106
- return d(e);
107
- }
108
- scheduleEmit() {
109
- if (this.emitFrame === null) {
110
- if (typeof requestAnimationFrame > "u") {
111
- this.emit();
112
- return;
113
- }
114
- this.emitFrame = requestAnimationFrame(() => {
115
- this.emitFrame = null, this.emit();
116
- });
117
- }
118
- }
119
- emit() {
120
- this.listeners.forEach((e) => e());
121
- }
122
- }(), h = (0, r.createContext)(void 0), g = {
123
- deviceType: "desktop",
124
- customViewport: {
125
- width: 768,
126
- height: 1024
127
- },
128
- cspMode: "permissive",
129
- displayModeOverride: null,
130
- capabilities: {
131
- hover: !0,
132
- touch: !1
133
- },
134
- safeAreaInsets: {
135
- top: 0,
136
- right: 0,
137
- bottom: 0,
138
- left: 0
139
- },
140
- locale: "en-US",
141
- timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC"
142
- };
143
- function _({ children: e }) {
144
- let [t, n] = (0, r.useState)({
145
- activeWidgetId: null,
146
- widgets: /* @__PURE__ */ new Map(),
147
- playground: g
148
- }), a = (0, r.useCallback)((e) => {
149
- n((t) => ({
150
- ...t,
151
- activeWidgetId: e
152
- }));
153
- }, []), o = (0, r.useCallback)((e, t) => {
154
- n((n) => {
155
- if (n.widgets.has(e)) return n;
156
- let r = new Map(n.widgets);
157
- return r.set(e, {
158
- ...t,
159
- cspViolations: []
160
- }), {
161
- ...n,
162
- widgets: r
163
- };
164
- });
165
- }, []), s = (0, r.useCallback)((e) => {
166
- n((t) => {
167
- let n = new Map(t.widgets);
168
- return n.delete(e), {
169
- ...t,
170
- widgets: n,
171
- activeWidgetId: t.activeWidgetId === e ? null : t.activeWidgetId
172
- };
173
- });
174
- }, []), c = (0, r.useRef)(t);
175
- c.current = t;
176
- let l = (0, r.useCallback)((e) => c.current.widgets.get(e), []), u = (0, r.useCallback)((e, t) => {
177
- n((n) => {
178
- let r = n.widgets.get(e);
179
- if (!r) return n;
180
- let i = { cspViolations: [...r.cspViolations, t] };
181
- t.originalPolicy && r.effectivePolicy === void 0 && (i.effectivePolicy = t.originalPolicy);
182
- let a = new Map(n.widgets);
183
- return a.set(e, {
184
- ...r,
185
- ...i
186
- }), {
187
- ...n,
188
- widgets: a
189
- };
190
- });
191
- }, []), d = (0, r.useCallback)((e) => {
192
- n((t) => {
193
- let n = t.widgets.get(e);
194
- if (!n) return t;
195
- let r = new Map(t.widgets);
196
- return r.set(e, {
197
- ...n,
198
- cspViolations: []
199
- }), {
200
- ...t,
201
- widgets: r
202
- };
203
- });
204
- }, []), f = (0, r.useCallback)((e, t) => {
205
- n((n) => {
206
- let r = n.widgets.get(e);
207
- if (!r) return n;
208
- let i = new Map(n.widgets);
209
- return i.set(e, {
210
- ...r,
211
- modelContext: t
212
- }), {
213
- ...n,
214
- widgets: i
215
- };
216
- });
217
- }, []), p = (0, r.useCallback)((e, t) => {
218
- n((n) => {
219
- let r = n.widgets.get(e);
220
- if (!r) return n;
221
- let i = new Map(n.widgets);
222
- return i.set(e, {
223
- ...r,
224
- widgetState: t
225
- }), {
226
- ...n,
227
- widgets: i
228
- };
229
- });
230
- }, []), m = (0, r.useCallback)((e, t, r) => {
231
- n((n) => {
232
- let i = n.widgets.get(e);
233
- if (!i) return n;
234
- let a = new Map(n.widgets);
235
- return a.set(e, {
236
- ...i,
237
- declaredCsp: t,
238
- ...r !== void 0 && { effectivePolicy: r }
239
- }), {
240
- ...n,
241
- widgets: a
242
- };
243
- });
244
- }, []), _ = (0, r.useCallback)((e) => {
245
- n((t) => ({
246
- ...t,
247
- playground: {
248
- ...t.playground,
249
- ...e
250
- }
251
- }));
252
- }, []), v = (0, r.useCallback)(() => {
253
- n((e) => ({
254
- ...e,
255
- widgets: /* @__PURE__ */ new Map(),
256
- activeWidgetId: null
257
- }));
258
- }, []), y = (0, r.useCallback)(() => {
259
- let e = /* @__PURE__ */ new Map();
260
- for (let [n, r] of t.widgets) r.modelContext && e.set(n, r.modelContext);
261
- return e;
262
- }, [t.widgets]);
263
- return /* @__PURE__ */ (0, i.jsx)(h, {
264
- value: (0, r.useMemo)(() => ({
265
- ...t,
266
- setActiveWidget: a,
267
- addWidget: o,
268
- removeWidget: s,
269
- getWidget: l,
270
- addCspViolation: u,
271
- clearCspViolations: d,
272
- setWidgetModelContext: f,
273
- setWidgetState: p,
274
- setWidgetDeclaredCsp: m,
275
- updatePlaygroundSettings: _,
276
- clearAllWidgets: v,
277
- getAllModelContexts: y
278
- }), [
279
- t,
280
- a,
281
- o,
282
- s,
283
- l,
284
- u,
285
- d,
286
- f,
287
- p,
288
- m,
289
- _,
290
- v,
291
- y
292
- ]),
293
- children: e
294
- });
295
- }
296
- function v() {
297
- let e = (0, r.use)(h);
298
- if (!e) throw Error("useWidgetDebug must be used within WidgetDebugProvider");
299
- return e;
300
- }
301
- var y = {
302
- mobile: {
303
- width: 390,
304
- height: 844,
305
- name: "iPhone 14"
306
- },
307
- desktop: {
308
- width: 1440,
309
- height: 900,
310
- name: "Desktop"
311
- }
312
- };
313
- //#endregion
314
- export { u as a, m as i, _ as n, s as o, v as r, o as s, y as t };
@@ -1,12 +0,0 @@
1
- import { n as e } from "./createLucideIcon-BONxC1L5.js";
2
- import { U as t } from "./button-CB4uOoUV.js";
3
- //#region src/client/components/ui/WidgetWrapper.tsx
4
- var n = e();
5
- function r({ children: e, className: r, noWrapper: i }) {
6
- return i ? e : /* @__PURE__ */ (0, n.jsx)("div", {
7
- className: t("flex flex-1 items-center justify-center bg-zinc-50 dark:bg-zinc-800", "[background-image:radial-gradient(circle,rgba(0,0,0,0.12)_1px,transparent_1px)]", "dark:[background-image:radial-gradient(circle,rgba(255,255,255,0.1)_1px,transparent_1px)]", "bg-[length:32px_32px]", r),
8
- children: e
9
- });
10
- }
11
- //#endregion
12
- export { r as t };
@@ -1,25 +0,0 @@
1
- //#region src/client/utils/basePath.ts
2
- function e(e) {
3
- if (e == null) return "/mcp";
4
- let t = e.trim().replace(/\/{2,}/g, "/").replace(/\/+$/, "");
5
- return t === "" || t === "/" ? "" : (t.startsWith("/") || (t = `/${t}`), t);
6
- }
7
- function t() {
8
- if (typeof window > "u") return "";
9
- let t = window.location.pathname || "", n = t.indexOf("/inspector");
10
- return n <= 0 ? "" : e(t.slice(0, n));
11
- }
12
- function n() {
13
- if (typeof window > "u") return "";
14
- let n = window.__MCP_BASE_PATH__;
15
- return n == null ? t() : e(n);
16
- }
17
- function r() {
18
- return `${n()}/inspector`;
19
- }
20
- function i(e) {
21
- let t = e.replace(/^\/+/, "");
22
- return `${r()}/api/${t}`;
23
- }
24
- //#endregion
25
- export { r as n, i as r, n as t };
@@ -1,10 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("bell", [["path", {
3
- d: "M10.268 21a2 2 0 0 0 3.464 0",
4
- key: "vwvbt9"
5
- }], ["path", {
6
- d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
7
- key: "11g9vi"
8
- }]]);
9
- //#endregion
10
- export { t };
@@ -1,42 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("check", [["path", {
3
- d: "M20 6 9 17l-5-5",
4
- key: "1gmf2c"
5
- }]]), n = e("copy", [["rect", {
6
- width: "14",
7
- height: "14",
8
- x: "8",
9
- y: "8",
10
- rx: "2",
11
- ry: "2",
12
- key: "17jyea"
13
- }], ["path", {
14
- d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",
15
- key: "zix9uf"
16
- }]]);
17
- //#endregion
18
- //#region src/client/utils/browser.ts
19
- function r(e) {
20
- let t = document.createElement("textarea");
21
- t.value = e, t.style.cssText = "position:fixed;top:-9999px;left:-9999px;opacity:0", document.body.appendChild(t), t.focus(), t.select();
22
- try {
23
- return document.execCommand("copy");
24
- } finally {
25
- document.body.removeChild(t);
26
- }
27
- }
28
- function i(e) {
29
- return r(e);
30
- }
31
- async function a(e) {
32
- if (!r(e)) {
33
- if (navigator.clipboard?.writeText) return navigator.clipboard.writeText(e);
34
- throw Error("copy failed");
35
- }
36
- }
37
- function o(e) {
38
- let t = Date.now() - e, n = Math.floor(t / 1e3), r = Math.floor(n / 60), i = Math.floor(r / 60), a = Math.floor(i / 24);
39
- return n < 60 ? "just now" : r < 60 ? `${r}m ago` : i < 24 ? `${i}h ago` : a < 7 ? `${a}d ago` : new Date(e).toLocaleDateString();
40
- }
41
- //#endregion
42
- export { t as a, n as i, i as n, o as r, a as t };
@@ -1,17 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("brush", [
3
- ["path", {
4
- d: "m11 10 3 3",
5
- key: "fzmg1i"
6
- }],
7
- ["path", {
8
- d: "M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z",
9
- key: "p4q2r7"
10
- }],
11
- ["path", {
12
- d: "M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031",
13
- key: "wy6l02"
14
- }]
15
- ]);
16
- //#endregion
17
- export { t };