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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/README.md +7 -18
  2. package/dist/cdn/{AnimatePresence-B4HhIdgq.js → AnimatePresence-D1bZ5_-l.js} +80 -79
  3. package/dist/cdn/ChatTab-DRn-AnBV.js +6811 -0
  4. package/dist/cdn/{CheckboxIndicator-BF2cKfbA.js → CheckboxIndicator-BjF73mGX.js} +74 -73
  5. package/dist/cdn/ConnectionSettingsForm-CsG61Iyd.js +929 -0
  6. package/dist/cdn/ConnectionSettingsTab-CTJJK4hj.js +151 -0
  7. package/dist/cdn/{ElicitationTab-upPXq2q7.js → ElicitationTab-PEmEDvC5.js} +48 -47
  8. package/dist/cdn/{FormContext-Cl51-7O7.js → FormContext-NtUiZclE.js} +26 -26
  9. package/dist/cdn/{InspectorContext-DzXtgyTx.js → InspectorContext-BBKCdfmK.js} +2 -22
  10. package/dist/cdn/{JSONDisplay-D3RcyO9z.js → JSONDisplay-BJqMz7Ny.js} +23 -23
  11. package/dist/cdn/{ListTabHeader-8lULn-90.js → ListTabHeader-DzmTtN1e.js} +21 -20
  12. package/dist/cdn/{WidgetWrapper-D29YDxIu.js → MCPAppsDebugControls-C5-knSKL.js} +583 -620
  13. package/dist/cdn/{ManufactOAuthCallback-DEM8mhWD.js → ManufactOAuthCallback-ChbbjFIT.js} +3 -3
  14. package/dist/cdn/MarkdownRenderer-uUvyteZT.js +3610 -0
  15. package/dist/cdn/McpAppsViewPanel-Bj-1E9_v.js +56 -0
  16. package/dist/cdn/{NotificationsTab-CWopTIzT.js → NotificationsTab-B7uebqMV.js} +13 -13
  17. package/dist/cdn/{OAuthCallback-k3oeLtIC.js → OAuthCallback-Hdtybeu0.js} +3 -3
  18. package/dist/cdn/PromptsTab-b4UpzPPY.js +902 -0
  19. package/dist/cdn/{ResourcesTab-KfamsM6-.js → ResourcesTab-BCA0_b8c.js} +106 -124
  20. package/dist/cdn/{SamplingTab-vcufuK24.js → SamplingTab-CuPYqFyA.js} +43 -42
  21. package/dist/cdn/{ServerMetadataTab-DS0eiyyD.js → ServerMetadataTab-BM3VhSLf.js} +14 -14
  22. package/dist/cdn/{StatusIcon-BGXOEU2u.js → StatusIcon-Q3n3YRtE.js} +8 -9
  23. package/dist/cdn/{ToolsTab-DRjcZnpu.js → ToolsTab-4lvUZRQq.js} +671 -693
  24. package/dist/cdn/{ViewPreview-B_onhcUB.js → ViewPreview-BGClMNvo.js} +5 -4
  25. package/dist/cdn/{WidgetDebugContext-D4usL_MA.js → WidgetDebugContext-B6yoOVVV.js} +1 -11
  26. package/dist/cdn/WidgetWrapper-BlbQAh_X.js +12 -0
  27. package/dist/cdn/{bell-CGjAO_0s.js → bell-GrTZcnD2.js} +1 -1
  28. package/dist/cdn/{browser-CbQIH4w2.js → browser-DG2Z8392.js} +1 -1
  29. package/dist/cdn/{brush-B_mKhyxG.js → brush-CelVvMGp.js} +1 -1
  30. package/dist/cdn/button-CB4uOoUV.js +2509 -0
  31. package/dist/cdn/{card-DqjqAq0o.js → card-BA-DQk-G.js} +2 -2
  32. package/dist/cdn/{checkbox-B4oUG6Rr.js → checkbox-kwVa4gRX.js} +4 -4
  33. package/dist/cdn/{clock-CmUbSx_B.js → clock-YMF8Gtw5.js} +1 -1
  34. package/dist/cdn/{code-V_0nf5rg.js → code-C8sN2OGR.js} +1 -1
  35. package/dist/cdn/{jsx-runtime-CIxvMpEo.js → createLucideIcon-BONxC1L5.js} +57 -24
  36. package/dist/cdn/{dialog-Dnl-pZsY.js → dialog-CJGnC5Ag.js} +165 -165
  37. package/dist/cdn/{dist-DjXr_YO3.js → dist-CTJnCYmk.js} +1 -1
  38. package/dist/cdn/{dist-mRDqCgKU.js → dist-dw0FdK5Y.js} +116 -114
  39. package/dist/cdn/{external-link-CjmfT6rW.js → external-link-Bo4lQxr1.js} +1 -1
  40. package/dist/cdn/{eye-B7H96av8.js → eye-pSGG7nvf.js} +1 -1
  41. package/dist/cdn/{folder-open-B3lu2rG_.js → folder-open-aM8CPtBO.js} +1 -1
  42. package/dist/cdn/{hash-BVQnWi7q.js → hash-DDs2vE1k.js} +1 -1
  43. package/dist/cdn/{history-Csw4rb44.js → history-BfUFpL1d.js} +1 -1
  44. package/dist/cdn/{index-browser-CVUwR-Bu.js → index-browser-B1xWyLr0.js} +113 -201
  45. package/dist/cdn/{info-CNiOwqkf.js → info-BMkB68mB.js} +1 -1
  46. package/dist/cdn/{input-BLxOA7V-.js → input-BCpgLXU1.js} +3039 -3600
  47. package/dist/cdn/inspector.css +1 -1
  48. package/dist/cdn/inspector.js +7797 -7857
  49. package/dist/cdn/{label-CBvG613A.js → label-A0UGV8FE.js} +8 -8
  50. package/dist/cdn/{loader-circle-BLy9A_pp.js → loader-circle-BKRHJEB7.js} +1 -1
  51. package/dist/cdn/{manufact-auth-0TVxpeTA.js → manufact-auth-BQMHhbLV.js} +142 -106
  52. package/dist/cdn/{maximize-2-CH5Lq90B.js → maximize-2-DdrB_spi.js} +1 -1
  53. package/dist/cdn/{maximize-BALCV_ep.js → maximize-hSOCz133.js} +1 -1
  54. package/dist/cdn/{message-square-BnxdpJxZ.js → message-square-D3tKB3uJ.js} +1 -1
  55. package/dist/cdn/{not-found-BcNNsTjS.js → not-found-BajFyZpp.js} +4 -6
  56. package/dist/cdn/{play-vuZ5PLnI.js → play-B1leulYf.js} +1 -1
  57. package/dist/cdn/providerMeta-CjGU4rID.js +436 -0
  58. package/dist/cdn/{react-BxO-uEDZ.js → react-BoOQpLwo.js} +838 -849
  59. package/dist/cdn/{refresh-cw-BXY-Pa0U.js → refresh-cw-CyvXrS91.js} +1 -1
  60. package/dist/cdn/{save-Tgil_AJZ.js → save-CmdEPUAm.js} +1 -1
  61. package/dist/cdn/{select-BZ_IoKxg.js → select-CCFHjOGk.js} +843 -842
  62. package/dist/cdn/{servers-Dm72iTpY.js → servers-Dd0Vcp81.js} +5 -1
  63. package/dist/cdn/{shared-uMiV6Fx1.js → shared-CJVHJhag.js} +35 -35
  64. package/dist/cdn/sheet-oyq1mIyg.js +2078 -0
  65. package/dist/cdn/{sparkles-BntO2rDR.js → sparkles-CxeZpVtX.js} +1 -1
  66. package/dist/cdn/{spinner-CWcJhIY_.js → spinner-Be1GlSGX.js} +3 -3
  67. package/dist/cdn/{square-check-big-BvwQ17Bl.js → square-check-big-C_4wbfwF.js} +1 -1
  68. package/dist/cdn/{switch-DtQOLb9R.js → switch-DHXEA_N5.js} +211 -210
  69. package/dist/cdn/{tabs-subtle-C5cy35sY.js → tabs-subtle-Dubd6Kj8.js} +259 -258
  70. package/dist/cdn/{telemetry-Ct6pVkM1.js → telemetry-C7bt_ifQ.js} +38 -70
  71. package/dist/cdn/{textarea-Bj-CT7hC.js → textarea-CwmI8_uI.js} +2 -2
  72. package/dist/cdn/{trash-2-RwpJY5SL.js → trash-2-BhumJAFE.js} +1 -1
  73. package/dist/cdn/{useAriaLabelledBy-Bm9qHGK6.js → useAriaLabelledBy-Cra6w3YY.js} +2 -1
  74. package/dist/cdn/{useCompositeItem-CNJ6MXdi.js → useCompositeItem-Dhnm-7el.js} +3 -3
  75. package/dist/cdn/{useConfig-CwxZ6Quj.js → useConfig-DiOY6evp.js} +73 -46
  76. package/dist/cdn/{useSavedRequests-Ci2I919u.js → useSavedRequests-mSIsDd4c.js} +1 -1
  77. package/dist/cdn/{useViewHostProps-Dr6W2ooF.js → useViewHostProps-D1emxC9m.js} +124 -108
  78. package/dist/cdn/{wrench-DzGmCfnb.js → wrench-DvK20LUT.js} +1 -1
  79. package/dist/cdn/{x-C3vRQIYu.js → x-EilKPiCX.js} +1 -1
  80. package/dist/cdn/{zap-Mb-pbw2X.js → zap-0Wr9QO7N.js} +1 -1
  81. package/dist/cli.js +87 -14
  82. package/dist/client/auth/manufact-auth.d.ts +3 -1
  83. package/dist/client/auth/manufact-auth.d.ts.map +1 -1
  84. package/dist/client/components/ChatTab.d.ts +1 -8
  85. package/dist/client/components/ChatTab.d.ts.map +1 -1
  86. package/dist/client/components/MCPAppsDebugControls.d.ts.map +1 -1
  87. package/dist/client/components/ResourcesTab.d.ts.map +1 -1
  88. package/dist/client/components/ToolsTab.d.ts.map +1 -1
  89. package/dist/client/components/chat/ChatHeader.d.ts +7 -2
  90. package/dist/client/components/chat/ChatHeader.d.ts.map +1 -1
  91. package/dist/client/components/chat/ChatLandingForm.d.ts +4 -2
  92. package/dist/client/components/chat/ChatLandingForm.d.ts.map +1 -1
  93. package/dist/client/components/chat/ChatManagedNotice.d.ts +10 -0
  94. package/dist/client/components/chat/ChatManagedNotice.d.ts.map +1 -0
  95. package/dist/client/components/chat/ChatScrollTopFade.d.ts +7 -0
  96. package/dist/client/components/chat/ChatScrollTopFade.d.ts.map +1 -0
  97. package/dist/client/components/chat/ConfigurationDialog.d.ts +11 -9
  98. package/dist/client/components/chat/ConfigurationDialog.d.ts.map +1 -1
  99. package/dist/client/components/chat/ConfigureEmptyState.d.ts +1 -6
  100. package/dist/client/components/chat/ConfigureEmptyState.d.ts.map +1 -1
  101. package/dist/client/components/chat/MessageList.d.ts +1 -0
  102. package/dist/client/components/chat/MessageList.d.ts.map +1 -1
  103. package/dist/client/components/chat/StreamingAssistantContent.d.ts.map +1 -1
  104. package/dist/client/components/chat/ToolResultRenderer.d.ts.map +1 -1
  105. package/dist/client/components/chat/chatModeStorage.d.ts +11 -0
  106. package/dist/client/components/chat/chatModeStorage.d.ts.map +1 -0
  107. package/dist/client/components/chat/managedChatNotice.d.ts +16 -0
  108. package/dist/client/components/chat/managedChatNotice.d.ts.map +1 -0
  109. package/dist/client/components/chat/partialToolArgs.d.ts +10 -0
  110. package/dist/client/components/chat/partialToolArgs.d.ts.map +1 -0
  111. package/dist/client/components/chat/providerMeta.d.ts +11 -0
  112. package/dist/client/components/chat/providerMeta.d.ts.map +1 -1
  113. package/dist/client/components/chat/types.d.ts +1 -0
  114. package/dist/client/components/chat/types.d.ts.map +1 -1
  115. package/dist/client/components/chat/useChatMessages.d.ts +7 -5
  116. package/dist/client/components/chat/useChatMessages.d.ts.map +1 -1
  117. package/dist/client/components/chat/useChatMessagesClientSide.d.ts +4 -6
  118. package/dist/client/components/chat/useChatMessagesClientSide.d.ts.map +1 -1
  119. package/dist/client/components/chat/useChatScrollToBottom.d.ts +1 -0
  120. package/dist/client/components/chat/useChatScrollToBottom.d.ts.map +1 -1
  121. package/dist/client/components/chat/useConfig.d.ts +1 -1
  122. package/dist/client/components/chat/useConfig.d.ts.map +1 -1
  123. package/dist/client/components/chat/useHostedChatMode.d.ts +1 -1
  124. package/dist/client/components/chat/useHostedChatMode.d.ts.map +1 -1
  125. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts +29 -0
  126. package/dist/client/components/mcp-apps/McpAppsViewPanel.d.ts.map +1 -0
  127. package/dist/client/components/shared/MarkdownRenderer.d.ts +2 -1
  128. package/dist/client/components/shared/MarkdownRenderer.d.ts.map +1 -1
  129. package/dist/client/components/tools/ToolExecutionPanel.d.ts.map +1 -1
  130. package/dist/client/components/tools/ToolResultDisplay.d.ts +2 -1
  131. package/dist/client/components/tools/ToolResultDisplay.d.ts.map +1 -1
  132. package/dist/client/components/tools/useToolsTabNavigation.d.ts.map +1 -1
  133. package/dist/client/components/ui/MeshGradientCanvas.d.ts +13 -0
  134. package/dist/client/components/ui/MeshGradientCanvas.d.ts.map +1 -0
  135. package/dist/client/components/ui/chat-message.d.ts +1 -1
  136. package/dist/client/components/ui/chat-message.d.ts.map +1 -1
  137. package/dist/client/components/ui/file-thumbnail.d.ts.map +1 -1
  138. package/dist/client/components/ui/mesh-animation-pause.d.ts +14 -0
  139. package/dist/client/components/ui/mesh-animation-pause.d.ts.map +1 -0
  140. package/dist/client/components/ui/mesh-gradient-colors.d.ts +6 -0
  141. package/dist/client/components/ui/mesh-gradient-colors.d.ts.map +1 -0
  142. package/dist/client/components/ui/mesh-tab-background.d.ts +3 -1
  143. package/dist/client/components/ui/mesh-tab-background.d.ts.map +1 -1
  144. package/dist/client/components/ui/not-found.d.ts.map +1 -1
  145. package/dist/client/context/InspectorContext.d.ts.map +1 -1
  146. package/dist/client/context/WidgetDebugContext.d.ts +1 -11
  147. package/dist/client/context/WidgetDebugContext.d.ts.map +1 -1
  148. package/dist/client/hooks/useDeviceViewport.d.ts +1 -5
  149. package/dist/client/hooks/useDeviceViewport.d.ts.map +1 -1
  150. package/dist/client/hooks/useViewHostProps.d.ts +1 -1
  151. package/dist/client/hooks/useViewHostProps.d.ts.map +1 -1
  152. package/dist/client/index.js +4202 -3491
  153. package/dist/client/telemetry/init.d.ts.map +1 -1
  154. package/dist/client/telemetry/utils.d.ts.map +1 -1
  155. package/dist/client/utils/servers.d.ts +5 -0
  156. package/dist/client/utils/servers.d.ts.map +1 -1
  157. package/dist/server/asset-urls.d.ts +4 -0
  158. package/dist/server/asset-urls.d.ts.map +1 -1
  159. package/dist/server/asset-urls.js +7 -3
  160. package/dist/server/cdn-shell.d.ts.map +1 -1
  161. package/dist/server/cdn-shell.js +3 -3
  162. package/dist/server/{chunk-IXYK6ZOY.js → chunk-5XMQ5UJR.js} +2 -2
  163. package/dist/server/{chunk-KBVKS4J5.js → chunk-H6ZCIKBS.js} +10 -0
  164. package/dist/server/{chunk-VDUV6LR6.js → chunk-KTPQKADO.js} +75 -5
  165. package/dist/server/{chunk-Y2GBQOQW.js → chunk-LMLZJR2K.js} +2 -9
  166. package/dist/server/{chunk-K2V2SDQD.js → chunk-OWR2BIBW.js} +1 -1
  167. package/dist/server/{chunk-5B3SXGZP.js → chunk-UJLXHNQP.js} +1 -1
  168. package/dist/server/{chunk-6XWDZEFF.js → chunk-XCNS5CIW.js} +8 -3
  169. package/dist/server/cli.js +5 -5
  170. package/dist/server/create-dev-api-app.js +3 -3
  171. package/dist/server/dev-callback-redirect.d.ts +3 -0
  172. package/dist/server/dev-callback-redirect.d.ts.map +1 -0
  173. package/dist/server/dev-callback-redirect.js +18 -0
  174. package/dist/server/index.js +6 -6
  175. package/dist/server/middleware.js +6 -6
  176. package/dist/server/proxy/index.js +1 -1
  177. package/dist/server/proxy/mcp-proxy.d.ts +2 -0
  178. package/dist/server/proxy/mcp-proxy.d.ts.map +1 -1
  179. package/dist/server/proxy/mcp-proxy.js +3 -1
  180. package/dist/server/proxy-routes.js +2 -2
  181. package/dist/server/server.js +3 -3
  182. package/dist/server/version.js +1 -1
  183. package/dist/server/vite-dev-api-plugin.js +3 -3
  184. package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +9 -0
  185. package/dist/web/assets/ChatTab-x6dg7xyx.js +18 -0
  186. package/dist/web/assets/ConnectionSettingsTab-DUwCNYXJ.js +1 -0
  187. package/dist/web/assets/ElicitationTab-Dk04sjRw.js +1 -0
  188. package/dist/web/assets/FormContext-sV-yByKz.js +1 -0
  189. package/dist/web/assets/ListTabHeader-CrGae306.js +1 -0
  190. package/dist/web/assets/MCPAppsDebugControls-Kh10bYHm.js +34 -0
  191. package/dist/web/assets/{ManufactOAuthCallback-DCLbW-mz.js → ManufactOAuthCallback-Bq00h5wq.js} +1 -1
  192. package/dist/web/assets/MarkdownRenderer--ZbJc80m.js +47 -0
  193. package/dist/web/assets/McpAppsViewPanel-BM7S0O6E.js +1 -0
  194. package/dist/web/assets/{NotificationsTab-JevzvJTg.js → NotificationsTab-DTcas5xQ.js} +1 -1
  195. package/dist/web/assets/{OAuthCallback-BjcRxLh5.js → OAuthCallback-CZ5PbMLP.js} +1 -1
  196. package/dist/web/assets/PromptsTab-Ce9hFDPL.js +15 -0
  197. package/dist/web/assets/ResourcesTab-CfV_CTOT.js +2 -0
  198. package/dist/web/assets/SamplingTab-7FoVfzSl.js +1 -0
  199. package/dist/web/assets/ServerMetadataTab-DfOYnm2P.js +1 -0
  200. package/dist/web/assets/ToolsTab-CeDM6lbc.js +8 -0
  201. package/dist/web/assets/ViewPreview-DMpWAByN.js +1 -0
  202. package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +1 -0
  203. package/dist/web/assets/{brush--0LobUi4.js → brush-DX0UZ_pI.js} +1 -1
  204. package/dist/web/assets/button-C8Xa2k4x.js +1 -0
  205. package/dist/web/assets/checkbox-ocTkuPLe.js +1 -0
  206. package/dist/web/assets/code-B14rVdNt.js +1 -0
  207. package/dist/web/assets/createLucideIcon-BEHeJH0M.js +1 -0
  208. package/dist/web/assets/dist-D6mojCV5.js +21 -0
  209. package/dist/web/assets/index-BfmL5fRO.js +499 -0
  210. package/dist/web/assets/index-bCIH1Sdx.css +1 -0
  211. package/dist/web/assets/input-C0OQCUZy.js +1 -0
  212. package/dist/web/assets/{label-B5Q_Zr8M.js → label-CI7JWQOo.js} +1 -1
  213. package/dist/web/assets/{maximize-2-BTT9QQU9.js → maximize-2-Br1WQzT2.js} +1 -1
  214. package/dist/web/assets/{maximize-_O55kFcr.js → maximize-CJNgRe6S.js} +1 -1
  215. package/dist/web/assets/{refresh-cw-C9wQl8_d.js → refresh-cw-B5iaAZKn.js} +1 -1
  216. package/dist/web/assets/{save-B-MsgxX9.js → save-TM6fvNrt.js} +1 -1
  217. package/dist/web/assets/select-D6jzbLJn.js +1 -0
  218. package/dist/web/assets/shared-BaJnSpaR.js +1 -0
  219. package/dist/web/assets/{sparkles-2OAsc1aP.js → sparkles-BGYTDThM.js} +1 -1
  220. package/dist/web/assets/tabs-subtle-C3U3Xswq.js +1 -0
  221. package/dist/web/assets/textarea-CRTXuRmE.js +1 -0
  222. package/dist/web/assets/useConfig-tIq2w5rV.js +1 -0
  223. package/dist/web/assets/useViewHostProps--1CXsG5i.js +1 -0
  224. package/dist/web/assets/{zap-Du2Uc5pa.js → zap-BDWHCVHU.js} +1 -1
  225. package/dist/web/index.html +10 -11
  226. package/package.json +5 -12
  227. package/dist/cdn/ChatTab-D8uwCHAf.js +0 -13218
  228. package/dist/cdn/ConnectionSettingsForm-BNS6bOMD.js +0 -873
  229. package/dist/cdn/ConnectionSettingsTab-B97gPPJW.js +0 -145
  230. package/dist/cdn/PromptsTab-Cspfnl6n.js +0 -4400
  231. package/dist/cdn/bundle-mjs-B0nmHDtp.js +0 -1953
  232. package/dist/cdn/chunk-BO2N2NFS-Cy167e0X.js +0 -17500
  233. package/dist/cdn/createLucideIcon-C5fZZ6oB.js +0 -38
  234. package/dist/cdn/highlighted-body-OFNGDK62-CoReNbTX.js +0 -36
  235. package/dist/cdn/mermaid-GHXKKRXX-DgVIbk-D.js +0 -2
  236. package/dist/cdn/pdf-CxFT9FER.js +0 -16291
  237. package/dist/cdn/popover-C_SSrXT0.js +0 -2005
  238. package/dist/cdn/sheet-CerCdhxz.js +0 -78
  239. package/dist/cdn/useHostedSession-BA39Aegc.js +0 -153
  240. package/dist/cdn/useMCPPrompts-D3_Hla_z.js +0 -104
  241. package/dist/client/components/chat/streamdown-code-slim.d.ts +0 -4
  242. package/dist/client/components/chat/streamdown-code-slim.d.ts.map +0 -1
  243. package/dist/web/assets/AnimatePresence-CthXziG2.js +0 -9
  244. package/dist/web/assets/ChatTab-Cy8eyFYI.js +0 -460
  245. package/dist/web/assets/ConnectionSettingsTab-sDZGaUJn.js +0 -1
  246. package/dist/web/assets/ElicitationTab-wDKgU1qL.js +0 -1
  247. package/dist/web/assets/FormContext-Cqc_A12u.js +0 -1
  248. package/dist/web/assets/ListTabHeader-G-nQX18m.js +0 -1
  249. package/dist/web/assets/PromptsTab-DsQVOjKH.js +0 -61
  250. package/dist/web/assets/ResourcesTab-Bw8_p6M1.js +0 -2
  251. package/dist/web/assets/SamplingTab-BrcF1zJF.js +0 -1
  252. package/dist/web/assets/ServerMetadataTab-Bydeh1Po.js +0 -1
  253. package/dist/web/assets/ToolsTab-DJWF7Q_x.js +0 -8
  254. package/dist/web/assets/ViewPreview-jgeU7bY9.js +0 -1
  255. package/dist/web/assets/WidgetWrapper-B_vJU9uF.js +0 -34
  256. package/dist/web/assets/bundle-mjs-8puS6ou7.js +0 -1
  257. package/dist/web/assets/checkbox-BA-XURSj.js +0 -1
  258. package/dist/web/assets/chunk-BO2N2NFS-CGbd3eLY.js +0 -131
  259. package/dist/web/assets/code-tME-5H6D.js +0 -1
  260. package/dist/web/assets/createLucideIcon-B3b8EU0b.js +0 -1
  261. package/dist/web/assets/dist-BcAQZluc.js +0 -21
  262. package/dist/web/assets/highlighted-body-OFNGDK62-BBJFbIMp.js +0 -1
  263. package/dist/web/assets/index-BjH-Qp85.css +0 -1
  264. package/dist/web/assets/index-D2UxaT9v.js +0 -475
  265. package/dist/web/assets/input-CjmxOFr6.js +0 -1
  266. package/dist/web/assets/jsx-runtime-Cjj9sGSy.js +0 -1
  267. package/dist/web/assets/mermaid-GHXKKRXX-B4MKVODA.js +0 -1
  268. package/dist/web/assets/pdf-CuwKm9zO.js +0 -54
  269. package/dist/web/assets/select-C0xlfLAa.js +0 -1
  270. package/dist/web/assets/shared-DQE60Op-.js +0 -1
  271. package/dist/web/assets/sheet-7TIkLdpr.js +0 -1
  272. package/dist/web/assets/tabs-subtle-AkJZvdxS.js +0 -1
  273. package/dist/web/assets/textarea-Ci09-en6.js +0 -1
  274. package/dist/web/assets/useConfig-Qglo4xs1.js +0 -1
  275. package/dist/web/assets/useMCPPrompts-USLYc1I4.js +0 -1
  276. package/dist/web/assets/useViewHostProps-DXAD1g7g.js +0 -1
@@ -1,27 +1,27 @@
1
1
  import { s as e, t } from "./react-BIs9pQ3H.js";
2
- import { t as n } from "./jsx-runtime-CIxvMpEo.js";
3
- import { Cr as r, Rr as i } from "./input-BLxOA7V-.js";
2
+ import { n } from "./createLucideIcon-BONxC1L5.js";
3
+ import { U as r, _ as i } from "./button-CB4uOoUV.js";
4
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
5
  var a = /* @__PURE__ */ e(t(), 1);
6
- function o({ controlled: e, default: t, name: n, state: i = "value" }) {
6
+ function o({ controlled: e, default: t, name: n, state: r = "value" }) {
7
7
  let { current: o } = a.useRef(e !== void 0), [c, l] = a.useState(t), u = o ? e : c;
8
8
  if (process.env.NODE_ENV !== "production") {
9
9
  a.useEffect(() => {
10
- o !== (e !== void 0) && r([
11
- `A component is changing the ${o ? "" : "un"}controlled ${i} state of ${n} to be ${o ? "un" : ""}controlled.`,
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
12
  "Elements should not switch from uncontrolled to controlled (or vice versa).",
13
13
  `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,
14
14
  "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",
15
15
  "More info: https://fb.me/react-controlled-components"
16
16
  ].join("\n"));
17
17
  }, [
18
- i,
18
+ r,
19
19
  n,
20
20
  e
21
21
  ]);
22
22
  let { current: c } = a.useRef(t);
23
23
  a.useEffect(() => {
24
- !o && s(c) !== s(t) && r([`A component is changing the default ${i} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"));
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
25
  }, [t]);
26
26
  }
27
27
  return [u, a.useCallback((e) => {
@@ -52,7 +52,7 @@ var c = n();
52
52
  function l({ className: e, ...t }) {
53
53
  return /* @__PURE__ */ (0, c.jsx)("label", {
54
54
  "data-slot": "label",
55
- className: i("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),
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
56
  ...t
57
57
  });
58
58
  }
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("loader-circle", [["path", {
3
3
  d: "M21 12a9 9 0 1 1-6.219-8.56",
4
4
  key: "13zald"
@@ -7,8 +7,16 @@ var r = /* @__PURE__ */ e(t(), 1), i = "openid profile email offline_access", a
7
7
  accessToken: null,
8
8
  user: null,
9
9
  mode: null
10
- }, c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
11
- function f(e) {
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) {
12
20
  let t = c.get(e);
13
21
  if (t) return t;
14
22
  let n = {
@@ -17,86 +25,114 @@ function f(e) {
17
25
  };
18
26
  return c.set(e, n), n;
19
27
  }
20
- function p() {
28
+ function h() {
21
29
  return typeof window > "u" ? null : window.localStorage;
22
30
  }
23
- function m(e) {
31
+ function g(e) {
24
32
  return new URL(e).origin;
25
33
  }
26
- function h(e, t) {
34
+ function _(e, t) {
27
35
  let n = new URL(e), r = new URL(t), i = new Set(["localhost", "127.0.0.1"]);
28
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"));
29
37
  }
30
- function g(e) {
38
+ function v(e) {
31
39
  let t = window.__MANUFACT_LOGIN_URL__;
32
40
  if (t) return new URL(t).origin;
33
41
  let n = new URL(e);
34
42
  return n.hostname === "localhost" || n.hostname === "127.0.0.1" ? `${n.protocol}//${n.hostname}:3000` : `${n.protocol}//manufact.com`;
35
43
  }
36
- function _(e) {
37
- return `${g(e)}/login`;
38
- }
39
- function v(e) {
40
- return `${g(e)}/auth/embedded-sign-out`;
41
- }
42
- function y(e, t) {
43
- return `${a}:${t}:${e}`;
44
+ function y(e) {
45
+ return `${v(e)}/login`;
44
46
  }
45
47
  function b(e) {
46
- return p()?.getItem(y(e, "skip-session")) === "1";
48
+ return `${v(e)}/auth/embedded-sign-out`;
47
49
  }
48
50
  function x(e, t) {
49
- let n = y(e, "skip-session");
50
- t ? p()?.setItem(n, "1") : p()?.removeItem(n);
51
+ return `${a}:${t}:${e}`;
51
52
  }
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) {
53
61
  return `${a}:state:${e}`;
54
62
  }
55
- function C(e) {
56
- let t = p()?.getItem(e);
63
+ function T(e) {
64
+ let t = h()?.getItem(e);
57
65
  if (!t) return null;
58
66
  try {
59
67
  return JSON.parse(t);
60
68
  } catch {
61
- return p()?.removeItem(e), null;
69
+ return h()?.removeItem(e), null;
62
70
  }
63
71
  }
64
- function w(e, t) {
65
- p()?.setItem(e, JSON.stringify(t));
72
+ function E(e, t) {
73
+ h()?.setItem(e, JSON.stringify(t));
66
74
  }
67
- function T(e, t) {
75
+ function D(e, t) {
68
76
  c.set(e, {
69
77
  ...c.get(e) ?? s,
70
78
  ...t
71
79
  }), l.forEach((e) => e()), window.dispatchEvent(new CustomEvent(o));
72
80
  }
73
- function E(e) {
81
+ function O(e) {
74
82
  let t = "";
75
83
  return e.forEach((e) => {
76
84
  t += String.fromCharCode(e);
77
85
  }), btoa(t).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
78
86
  }
79
- function D(e = 32) {
87
+ function k(e = 32) {
80
88
  let t = new Uint8Array(e);
81
- return crypto.getRandomValues(t), E(t);
89
+ return crypto.getRandomValues(t), O(t);
82
90
  }
83
- async function O(e) {
91
+ async function A(e) {
84
92
  let t = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(e));
85
- return E(new Uint8Array(t));
93
+ return O(new Uint8Array(t));
86
94
  }
87
- async function k(e) {
95
+ async function j(e) {
88
96
  let t = await fetch(`${e}/api/auth/.well-known/openid-configuration`);
89
97
  if (!t.ok) throw Error("Manufact OAuth discovery failed");
90
98
  return await t.json();
91
99
  }
92
- function A() {
100
+ function M() {
93
101
  return `${window.location.origin}${n()}/auth/callback`;
94
102
  }
95
- async function j(e, t) {
96
- let n = A(), r = y(e, "client"), a = C(r);
97
- if (a?.client_id && a.redirect_uri === n) return a;
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);
98
134
  if (!t.registration_endpoint) throw Error("Manufact OAuth registration is unavailable");
99
- let o = await fetch(t.registration_endpoint, {
135
+ let s = await fetch(t.registration_endpoint, {
100
136
  method: "POST",
101
137
  headers: { "Content-Type": "application/json" },
102
138
  body: JSON.stringify({
@@ -108,16 +144,16 @@ async function j(e, t) {
108
144
  scope: i
109
145
  })
110
146
  });
111
- if (!o.ok) throw Error("Could not register Inspector with Manufact");
112
- let s = await o.json();
113
- if (!s.client_id) throw Error("Manufact returned no OAuth client ID");
114
- let c = {
115
- ...s,
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,
116
152
  redirect_uri: n
117
153
  };
118
- return w(r, c), c;
154
+ return E(r, l), l;
119
155
  }
120
- async function M(e, t) {
156
+ async function L(e, t) {
121
157
  let n = await fetch(e, {
122
158
  method: "POST",
123
159
  headers: { "Content-Type": "application/x-www-form-urlencoded" },
@@ -131,15 +167,15 @@ async function M(e, t) {
131
167
  expires_at: Date.now() + (r.expires_in ?? 3600) * 1e3
132
168
  };
133
169
  }
134
- async function N(e, t) {
170
+ async function R(e, t) {
135
171
  if (!t.refresh_token) return null;
136
172
  let n = d.get(e);
137
173
  if (n) return n;
138
174
  let r = (async () => {
139
175
  try {
140
- let n = await k(e), r = C(y(e, "client"));
176
+ let n = await j(e), r = T(x(e, "client"));
141
177
  if (!r?.client_id) return null;
142
- let i = await M(n.token_endpoint, {
178
+ let i = await L(n.token_endpoint, {
143
179
  grant_type: "refresh_token",
144
180
  refresh_token: t.refresh_token,
145
181
  client_id: r.client_id
@@ -147,21 +183,21 @@ async function N(e, t) {
147
183
  ...i,
148
184
  refresh_token: i.refresh_token ?? t.refresh_token
149
185
  };
150
- return w(y(e, "tokens"), a), a;
186
+ return E(x(e, "tokens"), a), a;
151
187
  } catch {
152
- return p()?.removeItem(y(e, "tokens")), null;
188
+ return h()?.removeItem(x(e, "tokens")), null;
153
189
  } finally {
154
190
  d.delete(e);
155
191
  }
156
192
  })();
157
193
  return d.set(e, r), r;
158
194
  }
159
- async function P(e) {
160
- let t = C(y(e, "tokens"));
161
- return t?.access_token ? t.expires_at > Date.now() + 3e4 ? t : N(e, t) : null;
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;
162
198
  }
163
- async function F(e, t) {
164
- let n = await k(e);
199
+ async function B(e, t) {
200
+ let n = await j(e);
165
201
  if (!n.userinfo_endpoint) return null;
166
202
  let r = await fetch(n.userinfo_endpoint, { headers: { Authorization: `Bearer ${t}` } });
167
203
  if (!r.ok) return null;
@@ -173,7 +209,7 @@ async function F(e, t) {
173
209
  image: i.picture
174
210
  } : null;
175
211
  }
176
- async function I(e) {
212
+ async function V(e) {
177
213
  try {
178
214
  let t = await fetch(`${e}/api/auth/get-session`, { credentials: "include" });
179
215
  return t.ok ? (await t.json())?.user ?? null : null;
@@ -181,7 +217,7 @@ async function I(e) {
181
217
  return null;
182
218
  }
183
219
  }
184
- async function L(e) {
220
+ async function H(e) {
185
221
  let t = u.get(e);
186
222
  if (t) return t;
187
223
  c.set(e, {
@@ -190,9 +226,9 @@ async function L(e) {
190
226
  });
191
227
  let n = (async () => {
192
228
  try {
193
- let t = h(typeof window < "u" ? window.location.href : e, e), n = b(e), r = await P(e), i = r ? await F(e, r.access_token) : null;
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;
194
230
  if (i && r) {
195
- x(e, !1), T(e, {
231
+ C(e, !1), D(e, {
196
232
  loaded: !0,
197
233
  accessToken: r.access_token,
198
234
  user: i,
@@ -200,10 +236,10 @@ async function L(e) {
200
236
  });
201
237
  return;
202
238
  }
203
- r && !i && p()?.removeItem(y(e, "tokens"));
204
- let a = t && !n ? await I(e) : null;
239
+ r && !i && h()?.removeItem(x(e, "tokens"));
240
+ let a = t && !n ? await V(e) : null;
205
241
  if (a) {
206
- T(e, {
242
+ D(e, {
207
243
  loaded: !0,
208
244
  accessToken: null,
209
245
  user: a,
@@ -211,14 +247,14 @@ async function L(e) {
211
247
  });
212
248
  return;
213
249
  }
214
- T(e, {
250
+ D(e, {
215
251
  loaded: !0,
216
252
  accessToken: null,
217
253
  user: null,
218
254
  mode: null
219
255
  });
220
256
  } catch {
221
- T(e, {
257
+ D(e, {
222
258
  loaded: !0,
223
259
  accessToken: null,
224
260
  user: null,
@@ -228,63 +264,63 @@ async function L(e) {
228
264
  })().finally(() => u.delete(e));
229
265
  return u.set(e, n), n;
230
266
  }
231
- async function R(e) {
232
- let t = m(e);
233
- x(t, !1);
234
- let n = window.open("", "manufact-oauth", "width=600,height=700,resizable=yes,scrollbars=yes");
235
- if (!n) throw Error("Allow popups to sign in with Manufact");
236
- if (T(t, { authorizing: !0 }), h(window.location.href, t)) {
237
- n.location.href = _(t);
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);
238
274
  let e = window.setInterval(async () => {
239
- if (n.closed) {
240
- window.clearInterval(e), T(t, { authorizing: !1 });
275
+ if (r.closed) {
276
+ window.clearInterval(e), D(n, { authorizing: !1 });
241
277
  return;
242
278
  }
243
- let r = await I(t);
244
- r && (window.clearInterval(e), n.close(), T(t, {
279
+ let t = await V(n);
280
+ t && (window.clearInterval(e), r.close(), D(n, {
245
281
  loaded: !0,
246
282
  authorizing: !1,
247
283
  accessToken: null,
248
- user: r,
284
+ user: t,
249
285
  mode: "session"
250
286
  }));
251
287
  }, 1e3);
252
288
  return;
253
289
  }
254
290
  try {
255
- let e = await k(t), r = await j(t, e), a = D(64), o = D(), s = A();
256
- w(S(o), {
257
- authOrigin: t,
258
- clientId: r.client_id,
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,
259
295
  redirectUri: s,
260
296
  codeVerifier: a,
261
297
  expiresAt: Date.now() + 600 * 1e3
262
298
  });
263
299
  let c = new URL(e.authorization_endpoint);
264
- c.searchParams.set("response_type", "code"), c.searchParams.set("client_id", r.client_id), c.searchParams.set("redirect_uri", s), c.searchParams.set("scope", i), c.searchParams.set("state", o), c.searchParams.set("code_challenge", await O(a)), c.searchParams.set("code_challenge_method", "S256"), c.searchParams.set("prompt", "consent"), n.location.href = c.toString();
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();
265
301
  let l = window.setInterval(() => {
266
- n.closed && (window.clearInterval(l), L(t).finally(() => T(t, { authorizing: !1 })));
302
+ r.closed && (window.clearInterval(l), H(n).finally(() => D(n, { authorizing: !1 })));
267
303
  }, 500);
268
304
  } catch (e) {
269
- throw n.close(), T(t, { authorizing: !1 }), e;
305
+ throw r.close(), D(n, { authorizing: !1 }), e;
270
306
  }
271
307
  }
272
- async function z(e = new URL(window.location.href)) {
308
+ async function W(e = new URL(window.location.href)) {
273
309
  let t = e.searchParams.get("state"), n = e.searchParams.get("code"), r = e.searchParams.get("error_description") ?? e.searchParams.get("error");
274
310
  if (r) throw Error(r);
275
311
  if (!t || !n) throw Error("Missing OAuth code or state");
276
- let i = S(t), a = C(i);
277
- if (p()?.removeItem(i), !a || a.expiresAt < Date.now()) throw Error("OAuth state is invalid or expired");
278
- let o = await M((await k(a.authOrigin)).token_endpoint, {
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, {
279
315
  grant_type: "authorization_code",
280
316
  code: n,
281
317
  redirect_uri: a.redirectUri,
282
318
  client_id: a.clientId,
283
319
  code_verifier: a.codeVerifier
284
320
  });
285
- w(y(a.authOrigin, "tokens"), o), x(a.authOrigin, !1);
286
- let s = await F(a.authOrigin, o.access_token);
287
- T(a.authOrigin, {
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, {
288
324
  loaded: !0,
289
325
  authorizing: !1,
290
326
  accessToken: o.access_token,
@@ -295,9 +331,9 @@ async function z(e = new URL(window.location.href)) {
295
331
  authOrigin: a.authOrigin
296
332
  }, window.location.origin);
297
333
  }
298
- function B(e) {
299
- let t = m(e);
300
- p()?.removeItem(y(t, "tokens")), T(t, {
334
+ function G(e) {
335
+ let t = g(e);
336
+ h()?.removeItem(x(t, "tokens")), D(t, {
301
337
  loaded: !0,
302
338
  authorizing: !1,
303
339
  accessToken: null,
@@ -305,11 +341,11 @@ function B(e) {
305
341
  mode: null
306
342
  });
307
343
  }
308
- async function V(e) {
309
- let t = C(y(e, "tokens")), n = C(y(e, "client")), r = t?.refresh_token ?? t?.access_token;
344
+ async function K(e) {
345
+ let t = T(x(e, "tokens")), n = T(x(e, "client")), r = t?.refresh_token ?? t?.access_token;
310
346
  if (!n?.client_id || !r) return null;
311
347
  try {
312
- let i = (await k(e)).revocation_endpoint ?? `${e}/api/auth/oauth2/revoke`;
348
+ let i = (await j(e)).revocation_endpoint ?? `${e}/api/auth/oauth2/revoke`;
313
349
  return (await fetch(i, {
314
350
  method: "POST",
315
351
  headers: { "Content-Type": "application/x-www-form-urlencoded" },
@@ -323,8 +359,8 @@ async function V(e) {
323
359
  return -1;
324
360
  }
325
361
  }
326
- async function H(e) {
327
- let t = g(e), n = window.open(v(e), "manufact-sign-out", "width=420,height=320");
362
+ async function q(e) {
363
+ let t = v(e), n = window.open(b(e), "manufact-sign-out", "width=420,height=320");
328
364
  return n ? new Promise((r) => {
329
365
  let i = !1, a = (e) => {
330
366
  i || (i = !0, window.clearTimeout(o), window.clearInterval(c), window.removeEventListener("message", s), r(e));
@@ -341,7 +377,7 @@ async function H(e) {
341
377
  signOutStatus: 200
342
378
  });
343
379
  }, c = window.setInterval(() => {
344
- n.closed && I(e).then((e) => {
380
+ n.closed && V(e).then((e) => {
345
381
  a({
346
382
  attempted: !0,
347
383
  signOutOk: !e,
@@ -356,19 +392,19 @@ async function H(e) {
356
392
  signOutStatus: null
357
393
  };
358
394
  }
359
- async function U(e, t) {
360
- let n = m(e), r = !!C(y(n, "tokens"))?.access_token;
361
- t === "oauth" || r ? (await V(n), x(n, !0)) : t === "session" && (await H(n), x(n, !1)), B(e);
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);
362
398
  }
363
- function W(e) {
364
- let t = e ? m(e) : null, n = (0, r.useSyncExternalStore)((0, r.useCallback)((e) => (l.add(e), () => l.delete(e)), []), (0, r.useCallback)(() => t ? f(t) : s, [t]), () => s);
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);
365
401
  return (0, r.useEffect)(() => {
366
402
  if (!t) return;
367
- L(t);
403
+ H(t);
368
404
  let e = (e) => {
369
- e.origin === window.location.origin && e.data?.type === "manufact:oauth-complete" && e.data.authOrigin === t && L(t).finally(() => T(t, { authorizing: !1 }));
405
+ e.origin === window.location.origin && e.data?.type === "manufact:oauth-complete" && e.data.authOrigin === t && H(t).finally(() => D(t, { authorizing: !1 }));
370
406
  }, n = (e) => {
371
- e.key !== y(t, "tokens") || !e.newValue || L(t).finally(() => T(t, { authorizing: !1 }));
407
+ e.key !== x(t, "tokens") || !e.newValue || H(t).finally(() => D(t, { authorizing: !1 }));
372
408
  };
373
409
  return window.addEventListener("message", e), window.addEventListener("storage", n), () => {
374
410
  window.removeEventListener("message", e), window.removeEventListener("storage", n);
@@ -376,12 +412,12 @@ function W(e) {
376
412
  }, [t]), {
377
413
  ...n,
378
414
  authorize: (0, r.useCallback)(async () => {
379
- e && await R(e);
415
+ e && await U(e);
380
416
  }, [e]),
381
417
  logout: (0, r.useCallback)(async () => {
382
- e && await U(e, n.mode);
418
+ e && await J(e, n.mode);
383
419
  }, [e, n.mode])
384
420
  };
385
421
  }
386
422
  //#endregion
387
- export { W as n, z as t };
423
+ export { Y as n, W as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("maximize-2", [
3
3
  ["path", {
4
4
  d: "M15 3h6v6",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("maximize", [
3
3
  ["path", {
4
4
  d: "M8 3H5a2 2 0 0 0-2 2v3",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("message-square", [["path", {
3
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
4
  key: "18887p"
@@ -1,5 +1,5 @@
1
- import { t as e } from "./jsx-runtime-CIxvMpEo.js";
2
- import { Rr as t } from "./input-BLxOA7V-.js";
1
+ import { n as e } from "./createLucideIcon-BONxC1L5.js";
2
+ import { U as t } from "./button-CB4uOoUV.js";
3
3
  //#region src/client/components/ui/not-found.tsx
4
4
  var n = e();
5
5
  function r({ message: e, className: r = "", vertical: i, noBorder: a }) {
@@ -8,13 +8,11 @@ function r({ message: e, className: r = "", vertical: i, noBorder: a }) {
8
8
  children: /* @__PURE__ */ (0, n.jsxs)("p", {
9
9
  className: t("text-sm text-muted-foreground flex items-center gap-4", i && "flex-col"),
10
10
  children: [/* @__PURE__ */ (0, n.jsxs)("svg", {
11
- width: "40",
12
- height: "40",
13
11
  viewBox: "-6 -6 512 512",
14
12
  xmlns: "http://www.w3.org/2000/svg",
15
- className: "flex-shrink-0 stroke-black dark:stroke-white",
13
+ className: "size-14 shrink-0 stroke-black dark:stroke-white",
16
14
  fill: "none",
17
- strokeWidth: "4",
15
+ strokeWidth: "4.8",
18
16
  strokeLinecap: "round",
19
17
  strokeLinejoin: "round",
20
18
  children: [
@@ -1,4 +1,4 @@
1
- import { t as e } from "./createLucideIcon-C5fZZ6oB.js";
1
+ import { t as e } from "./createLucideIcon-BONxC1L5.js";
2
2
  var t = e("play", [["path", {
3
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
4
  key: "10ikf1"