@mcp-use/inspector 20.0.0-beta.9 → 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 +29 -60
  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 -24317
  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-CU-Gf-GY.js +0 -6811
  15. package/dist/cdn/CheckboxIndicator-BjF73mGX.js +0 -252
  16. package/dist/cdn/ConnectionSettingsForm-C4fEbp4v.js +0 -929
  17. package/dist/cdn/ConnectionSettingsTab-DXUrhGfL.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-Dp_o3k-P.js +0 -2174
  24. package/dist/cdn/ManufactOAuthCallback-ChbbjFIT.js +0 -31
  25. package/dist/cdn/MarkdownRenderer-COhmp4fm.js +0 -3610
  26. package/dist/cdn/McpAppsViewPanel-CMQZ28xs.js +0 -56
  27. package/dist/cdn/NotificationsTab-B7uebqMV.js +0 -290
  28. package/dist/cdn/OAuthCallback-ClEnwZ9o.js +0 -58
  29. package/dist/cdn/PromptsTab-DPjWr6W0.js +0 -902
  30. package/dist/cdn/ResourcesTab-D8hOTjDs.js +0 -566
  31. package/dist/cdn/SamplingTab-e1G8Qx1k.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-jNn6Cz6A.js +0 -2045
  35. package/dist/cdn/ViewPreview-BpQYOKES.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-8Z7HZAGn.js +0 -2307
  52. package/dist/cdn/dist-CTJnCYmk.js +0 -616
  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-nWAQnCTk.js +0 -1846
  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-8UPT_kVF.js +0 -5396
  77. package/dist/cdn/react-BIs9pQ3H.js +0 -926
  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-X2tRdL3U.js +0 -208
  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-BMqxaGDa.js +0 -235
  96. package/dist/cdn/useSavedRequests-mSIsDd4c.js +0 -51
  97. package/dist/cdn/useViewHostProps-DMArgRGs.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-3WVGQOQX.js +0 -156
  465. package/dist/server/chunk-BIKA6WIX.js +0 -207
  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-KB6CHWZ4.js +0 -72
  471. package/dist/server/chunk-KD7K27XK.js +0 -77
  472. package/dist/server/chunk-M5TZA42I.js +0 -54
  473. package/dist/server/chunk-OWR2BIBW.js +0 -40
  474. package/dist/server/chunk-PKBMQBKP.js +0 -7
  475. package/dist/server/chunk-UJLXHNQP.js +0 -43
  476. package/dist/server/chunk-WFT4JHYI.js +0 -24
  477. package/dist/server/chunk-XCNS5CIW.js +0 -199
  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-fclW7HPg.js +0 -18
  530. package/dist/web/assets/ConnectionSettingsTab-DNl63AkH.js +0 -1
  531. package/dist/web/assets/ElicitationTab-B73XazTU.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-BYLu5GRy.js +0 -34
  535. package/dist/web/assets/ManufactOAuthCallback-Dp3icsBc.js +0 -1
  536. package/dist/web/assets/MarkdownRenderer-CcvZ7qUS.js +0 -47
  537. package/dist/web/assets/McpAppsViewPanel-KD_ZnjfO.js +0 -1
  538. package/dist/web/assets/NotificationsTab-CV9kw9j-.js +0 -1
  539. package/dist/web/assets/OAuthCallback-C9J2xEkV.js +0 -1
  540. package/dist/web/assets/PromptsTab-irNacYfj.js +0 -15
  541. package/dist/web/assets/ResourcesTab-C-4Fd-HY.js +0 -2
  542. package/dist/web/assets/SamplingTab-B7bM9cnF.js +0 -1
  543. package/dist/web/assets/ServerMetadataTab-CnGUw9uD.js +0 -1
  544. package/dist/web/assets/ToolsTab-DBHJRY9V.js +0 -8
  545. package/dist/web/assets/ViewPreview-D7NNsxbe.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-C9WZqT8k.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-ChWdPMRV.js +0 -21
  553. package/dist/web/assets/index-B5OxiZlj.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-BWLzd0mh.js +0 -1
  566. package/dist/web/assets/sparkles-BGYTDThM.js +0 -1
  567. package/dist/web/assets/tabs-subtle-DkVoZG5s.js +0 -1
  568. package/dist/web/assets/textarea-CRTXuRmE.js +0 -1
  569. package/dist/web/assets/useConfig-CTtYs2lN.js +0 -1
  570. package/dist/web/assets/useViewHostProps-DOJOoXbY.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,60 +0,0 @@
1
- import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { n } from "./createLucideIcon-BONxC1L5.js";
3
- import { U as r, _ as i } from "./button-CB4uOoUV.js";
4
- //#region ../../node_modules/.pnpm/@base-ui+utils@0.3.1_@types+react@19.2.17_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@base-ui/utils/useControlled.mjs
5
- var a = /* @__PURE__ */ e(t(), 1);
6
- function o({ controlled: e, default: t, name: n, state: r = "value" }) {
7
- let { current: o } = a.useRef(e !== void 0), [c, l] = a.useState(t), u = o ? e : c;
8
- if (process.env.NODE_ENV !== "production") {
9
- a.useEffect(() => {
10
- o !== (e !== void 0) && i([
11
- `A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`,
12
- "Elements should not switch from uncontrolled to controlled (or vice versa).",
13
- `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,
14
- "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
15
- "More info: https://fb.me/react-controlled-components"
16
- ].join("\n"));
17
- }, [
18
- r,
19
- n,
20
- e
21
- ]);
22
- let { current: c } = a.useRef(t);
23
- a.useEffect(() => {
24
- !o && s(c) !== s(t) && i([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"));
25
- }, [t]);
26
- }
27
- return [u, a.useCallback((e) => {
28
- o || l(e);
29
- }, [])];
30
- }
31
- function s(e) {
32
- let t = 0, n = /* @__PURE__ */ new WeakMap();
33
- try {
34
- return JSON.stringify(e, function(e, r) {
35
- if (!(e === "_owner" && this != null && typeof this == "object" && "$$typeof" in this)) {
36
- if (typeof r == "bigint") return `__bigint__:${r}`;
37
- if (typeof r == "object" && r) {
38
- let e = n.get(r);
39
- if (e !== void 0) return `__object__:${e}`;
40
- n.set(r, t), t += 1;
41
- }
42
- return r;
43
- }
44
- }) ?? `__top__:${typeof e}`;
45
- } catch {
46
- return "__unserializable__";
47
- }
48
- }
49
- //#endregion
50
- //#region src/client/components/ui/label.tsx
51
- var c = n();
52
- function l({ className: e, ...t }) {
53
- return /* @__PURE__ */ (0, c.jsx)("label", {
54
- "data-slot": "label",
55
- className: r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
56
- ...t
57
- });
58
- }
59
- //#endregion
60
- export { o as n, l as t };
@@ -1,7 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("loader-circle", [["path", {
3
- d: "M21 12a9 9 0 1 1-6.219-8.56",
4
- key: "13zald"
5
- }]]);
6
- //#endregion
7
- export { t };
@@ -1,423 +0,0 @@
1
- import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { n } from "./basePath-B8HuhIMu.js";
3
- //#region src/client/auth/manufact-auth.ts
4
- var r = /* @__PURE__ */ e(t(), 1), i = "openid profile email offline_access", a = "mcp-inspector:manufact-auth", o = "manufact:session-changed", s = {
5
- loaded: !0,
6
- authorizing: !1,
7
- accessToken: null,
8
- user: null,
9
- mode: null
10
- }, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = null, p = !1;
11
- typeof window < "u" && window.addEventListener("message", (e) => {
12
- if (e.data?.type !== "manufact:invalidate-oauth-client") return;
13
- for (let e of c.keys()) h()?.removeItem(x(e, "client"));
14
- let t = f;
15
- !t || p || (p = !0, U(t, { isRetry: !0 }).finally(() => {
16
- p = !1;
17
- }));
18
- });
19
- function m(e) {
20
- let t = c.get(e);
21
- if (t) return t;
22
- let n = {
23
- ...s,
24
- loaded: !1
25
- };
26
- return c.set(e, n), n;
27
- }
28
- function h() {
29
- return typeof window > "u" ? null : window.localStorage;
30
- }
31
- function g(e) {
32
- return new URL(e).origin;
33
- }
34
- function _(e, t) {
35
- let n = new URL(e), r = new URL(t), i = new Set(["localhost", "127.0.0.1"]);
36
- return i.has(n.hostname) && i.has(r.hostname) ? n.origin === r.origin : (n.hostname === "manufact.com" || n.hostname.endsWith(".manufact.com")) && (r.hostname === "manufact.com" || r.hostname.endsWith(".manufact.com"));
37
- }
38
- function v(e) {
39
- let t = window.__MANUFACT_LOGIN_URL__;
40
- if (t) return new URL(t).origin;
41
- let n = new URL(e);
42
- return n.hostname === "localhost" || n.hostname === "127.0.0.1" ? `${n.protocol}//${n.hostname}:3000` : `${n.protocol}//manufact.com`;
43
- }
44
- function y(e) {
45
- return `${v(e)}/login`;
46
- }
47
- function b(e) {
48
- return `${v(e)}/auth/embedded-sign-out`;
49
- }
50
- function x(e, t) {
51
- return `${a}:${t}:${e}`;
52
- }
53
- function S(e) {
54
- return h()?.getItem(x(e, "skip-session")) === "1";
55
- }
56
- function C(e, t) {
57
- let n = x(e, "skip-session");
58
- t ? h()?.setItem(n, "1") : h()?.removeItem(n);
59
- }
60
- function w(e) {
61
- return `${a}:state:${e}`;
62
- }
63
- function T(e) {
64
- let t = h()?.getItem(e);
65
- if (!t) return null;
66
- try {
67
- return JSON.parse(t);
68
- } catch {
69
- return h()?.removeItem(e), null;
70
- }
71
- }
72
- function E(e, t) {
73
- h()?.setItem(e, JSON.stringify(t));
74
- }
75
- function D(e, t) {
76
- c.set(e, {
77
- ...c.get(e) ?? s,
78
- ...t
79
- }), l.forEach((e) => e()), window.dispatchEvent(new CustomEvent(o));
80
- }
81
- function O(e) {
82
- let t = "";
83
- return e.forEach((e) => {
84
- t += String.fromCharCode(e);
85
- }), btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
86
- }
87
- function k(e = 32) {
88
- let t = new Uint8Array(e);
89
- return crypto.getRandomValues(t), O(t);
90
- }
91
- async function A(e) {
92
- let t = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(e));
93
- return O(new Uint8Array(t));
94
- }
95
- async function j(e) {
96
- let t = await fetch(`${e}/api/auth/.well-known/openid-configuration`);
97
- if (!t.ok) throw Error("Manufact OAuth discovery failed");
98
- return await t.json();
99
- }
100
- function M() {
101
- return `${window.location.origin}${n()}/auth/callback`;
102
- }
103
- function N(e) {
104
- return e === "localhost" || e === "127.0.0.1";
105
- }
106
- function P(e) {
107
- try {
108
- let t = new URL(e).hostname, n = typeof window < "u" ? new URL(window.location.href).hostname : "";
109
- return N(t) && N(n);
110
- } catch {
111
- return !1;
112
- }
113
- }
114
- async function F(e, t, n) {
115
- let r = new URL(`${e}/api/auth/oauth2/authorize`);
116
- r.searchParams.set("response_type", "code"), r.searchParams.set("client_id", t), r.searchParams.set("redirect_uri", n), r.searchParams.set("scope", i), r.searchParams.set("code_challenge", await A(k(32))), r.searchParams.set("code_challenge_method", "S256"), r.searchParams.set("state", "client-probe"), r.searchParams.set("prompt", "none");
117
- try {
118
- let e = await fetch(r.toString(), {
119
- method: "GET",
120
- redirect: "manual",
121
- credentials: "include"
122
- }), t = e.headers.get("location") ?? "";
123
- return t.includes("/auth/error") && t.includes("invalid_client") ? !1 : e.status >= 300 && e.status < 400 || e.type === "opaqueredirect" ? !!t && !t.includes("/auth/error") : !0;
124
- } catch {
125
- return !1;
126
- }
127
- }
128
- async function I(e, t) {
129
- let n = M(), r = x(e, "client"), a = T(r), o = P(e);
130
- if (!o && a?.client_id && a.redirect_uri === n) {
131
- if (await F(e, a.client_id, n)) return a;
132
- h()?.removeItem(r);
133
- } else o && a?.client_id && h()?.removeItem(r);
134
- if (!t.registration_endpoint) throw Error("Manufact OAuth registration is unavailable");
135
- let s = await fetch(t.registration_endpoint, {
136
- method: "POST",
137
- headers: { "Content-Type": "application/json" },
138
- body: JSON.stringify({
139
- client_name: "mcp-use Inspector",
140
- redirect_uris: [n],
141
- grant_types: ["authorization_code", "refresh_token"],
142
- response_types: ["code"],
143
- token_endpoint_auth_method: "none",
144
- scope: i
145
- })
146
- });
147
- if (!s.ok) throw Error("Could not register Inspector with Manufact");
148
- let c = await s.json();
149
- if (!c.client_id) throw Error("Manufact returned no OAuth client ID");
150
- let l = {
151
- ...c,
152
- redirect_uri: n
153
- };
154
- return E(r, l), l;
155
- }
156
- async function L(e, t) {
157
- let n = await fetch(e, {
158
- method: "POST",
159
- headers: { "Content-Type": "application/x-www-form-urlencoded" },
160
- body: new URLSearchParams(t)
161
- }), r = await n.json().catch(() => ({}));
162
- if (!n.ok || !r.access_token) throw Error(r.error_description ?? "Manufact token exchange failed");
163
- return {
164
- access_token: r.access_token,
165
- refresh_token: r.refresh_token,
166
- token_type: r.token_type,
167
- expires_at: Date.now() + (r.expires_in ?? 3600) * 1e3
168
- };
169
- }
170
- async function R(e, t) {
171
- if (!t.refresh_token) return null;
172
- let n = d.get(e);
173
- if (n) return n;
174
- let r = (async () => {
175
- try {
176
- let n = await j(e), r = T(x(e, "client"));
177
- if (!r?.client_id) return null;
178
- let i = await L(n.token_endpoint, {
179
- grant_type: "refresh_token",
180
- refresh_token: t.refresh_token,
181
- client_id: r.client_id
182
- }), a = {
183
- ...i,
184
- refresh_token: i.refresh_token ?? t.refresh_token
185
- };
186
- return E(x(e, "tokens"), a), a;
187
- } catch {
188
- return h()?.removeItem(x(e, "tokens")), null;
189
- } finally {
190
- d.delete(e);
191
- }
192
- })();
193
- return d.set(e, r), r;
194
- }
195
- async function z(e) {
196
- let t = T(x(e, "tokens"));
197
- return t?.access_token ? t.expires_at > Date.now() + 3e4 ? t : R(e, t) : null;
198
- }
199
- async function B(e, t) {
200
- let n = await j(e);
201
- if (!n.userinfo_endpoint) return null;
202
- let r = await fetch(n.userinfo_endpoint, { headers: { Authorization: `Bearer ${t}` } });
203
- if (!r.ok) return null;
204
- let i = await r.json();
205
- return i.sub ? {
206
- id: i.sub,
207
- name: i.name,
208
- email: i.email,
209
- image: i.picture
210
- } : null;
211
- }
212
- async function V(e) {
213
- try {
214
- let t = await fetch(`${e}/api/auth/get-session`, { credentials: "include" });
215
- return t.ok ? (await t.json())?.user ?? null : null;
216
- } catch {
217
- return null;
218
- }
219
- }
220
- async function H(e) {
221
- let t = u.get(e);
222
- if (t) return t;
223
- c.set(e, {
224
- ...c.get(e) ?? s,
225
- loaded: !1
226
- });
227
- let n = (async () => {
228
- try {
229
- let t = _(typeof window < "u" ? window.location.href : e, e), n = S(e), r = await z(e), i = r ? await B(e, r.access_token) : null;
230
- if (i && r) {
231
- C(e, !1), D(e, {
232
- loaded: !0,
233
- accessToken: r.access_token,
234
- user: i,
235
- mode: "oauth"
236
- });
237
- return;
238
- }
239
- r && !i && h()?.removeItem(x(e, "tokens"));
240
- let a = t && !n ? await V(e) : null;
241
- if (a) {
242
- D(e, {
243
- loaded: !0,
244
- accessToken: null,
245
- user: a,
246
- mode: "session"
247
- });
248
- return;
249
- }
250
- D(e, {
251
- loaded: !0,
252
- accessToken: null,
253
- user: null,
254
- mode: null
255
- });
256
- } catch {
257
- D(e, {
258
- loaded: !0,
259
- accessToken: null,
260
- user: null,
261
- mode: null
262
- });
263
- }
264
- })().finally(() => u.delete(e));
265
- return u.set(e, n), n;
266
- }
267
- async function U(e, t) {
268
- let n = g(e);
269
- f = e, C(n, !1);
270
- let r = window.open("", "manufact-oauth", "width=600,height=700,resizable=yes,scrollbars=yes");
271
- if (!r) throw Error("Allow popups to sign in with Manufact");
272
- if (D(n, { authorizing: !0 }), _(window.location.href, n)) {
273
- r.location.href = y(n);
274
- let e = window.setInterval(async () => {
275
- if (r.closed) {
276
- window.clearInterval(e), D(n, { authorizing: !1 });
277
- return;
278
- }
279
- let t = await V(n);
280
- t && (window.clearInterval(e), r.close(), D(n, {
281
- loaded: !0,
282
- authorizing: !1,
283
- accessToken: null,
284
- user: t,
285
- mode: "session"
286
- }));
287
- }, 1e3);
288
- return;
289
- }
290
- try {
291
- let e = await j(n), t = await I(n, e), a = k(64), o = k(), s = M();
292
- E(w(o), {
293
- authOrigin: n,
294
- clientId: t.client_id,
295
- redirectUri: s,
296
- codeVerifier: a,
297
- expiresAt: Date.now() + 600 * 1e3
298
- });
299
- let c = new URL(e.authorization_endpoint);
300
- c.searchParams.set("response_type", "code"), c.searchParams.set("client_id", t.client_id), c.searchParams.set("redirect_uri", s), c.searchParams.set("scope", i), c.searchParams.set("state", o), c.searchParams.set("code_challenge", await A(a)), c.searchParams.set("code_challenge_method", "S256"), c.searchParams.set("prompt", "consent"), r.location.href = c.toString();
301
- let l = window.setInterval(() => {
302
- r.closed && (window.clearInterval(l), H(n).finally(() => D(n, { authorizing: !1 })));
303
- }, 500);
304
- } catch (e) {
305
- throw r.close(), D(n, { authorizing: !1 }), e;
306
- }
307
- }
308
- async function W(e = new URL(window.location.href)) {
309
- let t = e.searchParams.get("state"), n = e.searchParams.get("code"), r = e.searchParams.get("error_description") ?? e.searchParams.get("error");
310
- if (r) throw Error(r);
311
- if (!t || !n) throw Error("Missing OAuth code or state");
312
- let i = w(t), a = T(i);
313
- if (h()?.removeItem(i), !a || a.expiresAt < Date.now()) throw Error("OAuth state is invalid or expired");
314
- let o = await L((await j(a.authOrigin)).token_endpoint, {
315
- grant_type: "authorization_code",
316
- code: n,
317
- redirect_uri: a.redirectUri,
318
- client_id: a.clientId,
319
- code_verifier: a.codeVerifier
320
- });
321
- E(x(a.authOrigin, "tokens"), o), C(a.authOrigin, !1);
322
- let s = await B(a.authOrigin, o.access_token);
323
- D(a.authOrigin, {
324
- loaded: !0,
325
- authorizing: !1,
326
- accessToken: o.access_token,
327
- user: s,
328
- mode: "oauth"
329
- }), window.opener?.postMessage({
330
- type: "manufact:oauth-complete",
331
- authOrigin: a.authOrigin
332
- }, window.location.origin);
333
- }
334
- function G(e) {
335
- let t = g(e);
336
- h()?.removeItem(x(t, "tokens")), D(t, {
337
- loaded: !0,
338
- authorizing: !1,
339
- accessToken: null,
340
- user: null,
341
- mode: null
342
- });
343
- }
344
- async function K(e) {
345
- let t = T(x(e, "tokens")), n = T(x(e, "client")), r = t?.refresh_token ?? t?.access_token;
346
- if (!n?.client_id || !r) return null;
347
- try {
348
- let i = (await j(e)).revocation_endpoint ?? `${e}/api/auth/oauth2/revoke`;
349
- return (await fetch(i, {
350
- method: "POST",
351
- headers: { "Content-Type": "application/x-www-form-urlencoded" },
352
- body: new URLSearchParams({
353
- client_id: n.client_id,
354
- token: r,
355
- token_type_hint: t?.refresh_token ? "refresh_token" : "access_token"
356
- })
357
- })).status;
358
- } catch {
359
- return -1;
360
- }
361
- }
362
- async function q(e) {
363
- let t = v(e), n = window.open(b(e), "manufact-sign-out", "width=420,height=320");
364
- return n ? new Promise((r) => {
365
- let i = !1, a = (e) => {
366
- i || (i = !0, window.clearTimeout(o), window.clearInterval(c), window.removeEventListener("message", s), r(e));
367
- }, o = window.setTimeout(() => {
368
- a({
369
- attempted: !0,
370
- signOutOk: !1,
371
- signOutStatus: null
372
- });
373
- }, 3e4), s = (e) => {
374
- e.origin === t && e.data?.type === "manufact:sign-out-complete" && a({
375
- attempted: !0,
376
- signOutOk: !0,
377
- signOutStatus: 200
378
- });
379
- }, c = window.setInterval(() => {
380
- n.closed && V(e).then((e) => {
381
- a({
382
- attempted: !0,
383
- signOutOk: !e,
384
- signOutStatus: e ? 401 : 200
385
- });
386
- });
387
- }, 500);
388
- window.addEventListener("message", s);
389
- }) : {
390
- attempted: !0,
391
- signOutOk: !1,
392
- signOutStatus: null
393
- };
394
- }
395
- async function J(e, t) {
396
- let n = g(e), r = !!T(x(n, "tokens"))?.access_token;
397
- t === "oauth" || r ? (await K(n), C(n, !0)) : t === "session" && (await q(n), C(n, !1)), G(e);
398
- }
399
- function Y(e) {
400
- let t = e ? g(e) : null, n = (0, r.useSyncExternalStore)((0, r.useCallback)((e) => (l.add(e), () => l.delete(e)), []), (0, r.useCallback)(() => t ? m(t) : s, [t]), () => s);
401
- return (0, r.useEffect)(() => {
402
- if (!t) return;
403
- H(t);
404
- let e = (e) => {
405
- e.origin === window.location.origin && e.data?.type === "manufact:oauth-complete" && e.data.authOrigin === t && H(t).finally(() => D(t, { authorizing: !1 }));
406
- }, n = (e) => {
407
- e.key !== x(t, "tokens") || !e.newValue || H(t).finally(() => D(t, { authorizing: !1 }));
408
- };
409
- return window.addEventListener("message", e), window.addEventListener("storage", n), () => {
410
- window.removeEventListener("message", e), window.removeEventListener("storage", n);
411
- };
412
- }, [t]), {
413
- ...n,
414
- authorize: (0, r.useCallback)(async () => {
415
- e && await U(e);
416
- }, [e]),
417
- logout: (0, r.useCallback)(async () => {
418
- e && await J(e, n.mode);
419
- }, [e, n.mode])
420
- };
421
- }
422
- //#endregion
423
- export { Y as n, W as t };
@@ -1,21 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("maximize-2", [
3
- ["path", {
4
- d: "M15 3h6v6",
5
- key: "1q9fwt"
6
- }],
7
- ["path", {
8
- d: "m21 3-7 7",
9
- key: "1l2asr"
10
- }],
11
- ["path", {
12
- d: "m3 21 7-7",
13
- key: "tjx5ai"
14
- }],
15
- ["path", {
16
- d: "M9 21H3v-6",
17
- key: "wtvkvv"
18
- }]
19
- ]);
20
- //#endregion
21
- export { t };
@@ -1,21 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("maximize", [
3
- ["path", {
4
- d: "M8 3H5a2 2 0 0 0-2 2v3",
5
- key: "1dcmit"
6
- }],
7
- ["path", {
8
- d: "M21 8V5a2 2 0 0 0-2-2h-3",
9
- key: "1e4gt3"
10
- }],
11
- ["path", {
12
- d: "M3 16v3a2 2 0 0 0 2 2h3",
13
- key: "wsl5sc"
14
- }],
15
- ["path", {
16
- d: "M16 21h3a2 2 0 0 0 2-2v-3",
17
- key: "18trek"
18
- }]
19
- ]);
20
- //#endregion
21
- export { t };
@@ -1,7 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("message-square", [["path", {
3
- d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
4
- key: "18887p"
5
- }]]);
6
- //#endregion
7
- export { t };
@@ -1,32 +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/not-found.tsx
4
- var n = e();
5
- function r({ message: e, className: r = "", vertical: i, noBorder: a }) {
6
- return /* @__PURE__ */ (0, n.jsx)("div", {
7
- className: t(`mt-2 rounded-md p-6 ${r}`, !a && "border"),
8
- children: /* @__PURE__ */ (0, n.jsxs)("p", {
9
- className: t("text-sm text-muted-foreground flex items-center gap-4", i && "flex-col"),
10
- children: [/* @__PURE__ */ (0, n.jsxs)("svg", {
11
- viewBox: "-6 -6 512 512",
12
- xmlns: "http://www.w3.org/2000/svg",
13
- className: "size-14 shrink-0 stroke-black dark:stroke-white",
14
- fill: "none",
15
- strokeWidth: "4.8",
16
- strokeLinecap: "round",
17
- strokeLinejoin: "round",
18
- children: [
19
- /* @__PURE__ */ (0, n.jsx)("path", { d: "M105.933 0C164.437 0.000116002 211.865 47.607 211.865 106.333C211.865 131.829 210.493 158.403 221.068 181.602L228.975 198.947C243.584 230.997 269.265 256.7 301.303 271.336L316.155 278.121C340.142 289.079 367.694 287.335 394.066 287.335C452.571 287.335 499.999 334.942 499.999 393.668C499.999 452.394 452.571 500.001 394.066 500.001C335.562 500.001 288.134 452.394 288.134 393.668C288.134 368.974 289.24 343.275 278.992 320.807L270.586 302.38C255.948 270.29 230.214 244.565 198.118 229.939L180.164 221.758C157.282 211.331 131.078 212.666 105.933 212.666C47.4278 212.666 4.86252e-05 165.059 0 106.333C0 47.607 47.4278 0 105.933 0Z" }),
20
- /* @__PURE__ */ (0, n.jsx)("circle", {
21
- cx: "100.426",
22
- cy: "399.575",
23
- r: "100.426"
24
- }),
25
- /* @__PURE__ */ (0, n.jsx)("path", { d: "M500 100.426C500 155.889 455.037 200.851 399.574 200.851C344.11 200.851 299.148 155.889 299.148 100.426C299.148 44.962 344.11 0 399.574 0C455.037 0 500 44.962 500 100.426Z" })
26
- ]
27
- }), e]
28
- })
29
- });
30
- }
31
- //#endregion
32
- export { r as t };
@@ -1,7 +0,0 @@
1
- import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
- var t = e("play", [["path", {
3
- d: "M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",
4
- key: "10ikf1"
5
- }]]);
6
- //#endregion
7
- export { t };