@decocms/mesh 2.112.2 → 2.113.1

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 (182) hide show
  1. package/dist/client/assets/{AlertCircle-DVlaMiJ5.js → AlertCircle-bZ_a8hW_.js} +1 -1
  2. package/dist/client/assets/{AlertOctagon-CfYq7QaR.js → AlertOctagon-g_tWXJrL.js} +1 -1
  3. package/dist/client/assets/{AlertTriangle-CSOzbMAR.js → AlertTriangle-CGGjQU9b.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-CVioJ9BH.js → ArrowLeft-BbVcfdiE.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-B7E_tgTK.js → ArrowUp-BtMmVpE7.js} +1 -1
  6. package/dist/client/assets/{Check-CNejExNv.js → Check-E8-Inf76.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-yopDZQ-I.js → CheckCircle-DfWHy2te.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-DP7blUTm.js → CheckDone01-DpB-5lWR.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-Chwve8-p.js → CheckVerified02-Bxyg9cYG.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-KP1AAcHf.js → ChevronDown-CtTw1zlt.js} +1 -1
  11. package/dist/client/assets/{ChevronRight-DDxCOJgQ.js → ChevronRight-Cj97ppFv.js} +1 -1
  12. package/dist/client/assets/{Clock-CyZdQIoT.js → Clock-ElxTVbMS.js} +1 -1
  13. package/dist/client/assets/{Code01-DWni3Djj.js → Code01-F0FnnpDN.js} +1 -1
  14. package/dist/client/assets/{Container-alVY2Lns.js → Container-8z-xyt04.js} +1 -1
  15. package/dist/client/assets/{Copy01-DcDLVxds.js → Copy01-DKHGVRMd.js} +1 -1
  16. package/dist/client/assets/{Dataflow03-CIjmkTFd.js → Dataflow03-DItczzaI.js} +1 -1
  17. package/dist/client/assets/{DotsHorizontal-DEWz-LsM.js → DotsHorizontal-CzG-G9QT.js} +1 -1
  18. package/dist/client/assets/{DotsVertical-kZ1j7-Pi.js → DotsVertical-IiJAY3kM.js} +1 -1
  19. package/dist/client/assets/{Download01-DcOn4sBc.js → Download01-DnJPBc-y.js} +1 -1
  20. package/dist/client/assets/{Edit01-DXysJjaO.js → Edit01-CSgI_vqG.js} +1 -1
  21. package/dist/client/assets/{Eye-C4jmNobz.js → Eye-DPrkOx1m.js} +1 -1
  22. package/dist/client/assets/{File02-BhfHy7Sr.js → File02-CwSZ_YSq.js} +1 -1
  23. package/dist/client/assets/{File06-CVIPmWoP.js → File06-DYvRHz1R.js} +1 -1
  24. package/dist/client/assets/{FilterLines-Bf9wLrvi.js → FilterLines-DwLmRqdf.js} +1 -1
  25. package/dist/client/assets/{Globe01-CH064kt9.js → Globe01-kIBQPFuR.js} +1 -1
  26. package/dist/client/assets/{Globe02-r1ediR9L.js → Globe02-DEZv7rrz.js} +1 -1
  27. package/dist/client/assets/{Grid01-BL7Wt-ST.js → Grid01-xeO6ixb6.js} +1 -1
  28. package/dist/client/assets/{Hash02-8zCgw2J_.js → Hash02-BUvQoWvM.js} +1 -1
  29. package/dist/client/assets/{Home02-CcDOA2x5.js → Home02-3_wGODLc.js} +1 -1
  30. package/dist/client/assets/{Image01-Cy8zFc-L.js → Image01-BkoRO_9d.js} +1 -1
  31. package/dist/client/assets/{Inbox01-C6DMHQTA.js → Inbox01-CHcPs9mB.js} +1 -1
  32. package/dist/client/assets/{InfoCircle-EFoCxwV1.js → InfoCircle-FWPoCdrs.js} +1 -1
  33. package/dist/client/assets/{Key01-DwqjwHas.js → Key01-vyx6BDY8.js} +1 -1
  34. package/dist/client/assets/{LinkExternal01-DzC3u4Ja.js → LinkExternal01-Ch5ScwlH.js} +1 -1
  35. package/dist/client/assets/{List-y7OG_mTx.js → List-CEuiHx2u.js} +1 -1
  36. package/dist/client/assets/{Loading01-Cuu3mXAb.js → Loading01-Du9ChcBO.js} +1 -1
  37. package/dist/client/assets/{Lock01-DTtR-ind.js → Lock01-BmNrik2P.js} +1 -1
  38. package/dist/client/assets/{Pin01-B3IqGELk.js → Pin01-NetFNrEd.js} +1 -1
  39. package/dist/client/assets/{Play-Bs4RgZv4.js → Play-BP_59zaK.js} +1 -1
  40. package/dist/client/assets/{Plus-BTE2dyA2.js → Plus-hJGQuZKS.js} +1 -1
  41. package/dist/client/assets/{RefreshCcw01-DscI81gU.js → RefreshCcw01-OjrTubY1.js} +1 -1
  42. package/dist/client/assets/{RefreshCw01-BdCUcBhw.js → RefreshCw01-Be9PrKJk.js} +1 -1
  43. package/dist/client/assets/{Save01-ByO_ohwG.js → Save01-DiDeFwU2.js} +1 -1
  44. package/dist/client/assets/{SearchMd-DLBdwJh1.js → SearchMd-B9pv8N9E.js} +1 -1
  45. package/dist/client/assets/{Settings01-BaNY5YNC.js → Settings01-BPkeey3w.js} +1 -1
  46. package/dist/client/assets/{Settings02-BL-Nmd3r.js → Settings02-Pk4hmkwR.js} +1 -1
  47. package/dist/client/assets/{Share07-sHNzk-n_.js → Share07-Ii045gzD.js} +1 -1
  48. package/dist/client/assets/{Terminal-B9ORr7qn.js → Terminal-BGTg6hg-.js} +1 -1
  49. package/dist/client/assets/{Tool01-BZQ5MS3i.js → Tool01-DbSgV9fI.js} +1 -1
  50. package/dist/client/assets/{Trash01-CaptK897.js → Trash01-DT85aU53.js} +1 -1
  51. package/dist/client/assets/{Upload01-HhO4CWTq.js → Upload01-Cr9JNoRV.js} +1 -1
  52. package/dist/client/assets/{Users03-DAMvzTiD.js → Users03-IogkUnji.js} +1 -1
  53. package/dist/client/assets/{X-B_Kaaibd.js → X-zQXau9tc.js} +1 -1
  54. package/dist/client/assets/{XCircle-DWrWRX-D.js → XCircle-B8PCL4R4.js} +1 -1
  55. package/dist/client/assets/{XClose-CLz68zbQ.js → XClose-BtHqnElt.js} +1 -1
  56. package/dist/client/assets/{agent-connections-preview-DjLWoHjI.js → agent-connections-preview-BbTjonVz.js} +1 -1
  57. package/dist/client/assets/{agent-detail-Bsdi9boQ.js → agent-detail-Ft0AbV0R.js} +1 -1
  58. package/dist/client/assets/{agents-Cq47PXYL.js → agents-DyJp-v0r.js} +1 -1
  59. package/dist/client/assets/{alert-dialog-DUudy2cq.js → alert-dialog-5IiN8bI8.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-BhHdSgMF.js → auth-catchall-Bsz8qard.js} +1 -1
  61. package/dist/client/assets/{avatar-ncukQYla.js → avatar-A9KYWJyz.js} +1 -1
  62. package/dist/client/assets/{badge-BdYuc55k.js → badge-DGPPcvVD.js} +1 -1
  63. package/dist/client/assets/{binder-rHkdf30H.js → binder-BXFbhA2G.js} +1 -1
  64. package/dist/client/assets/{breadcrumb-C0CiN0-a.js → breadcrumb-KvFHoKN7.js} +1 -1
  65. package/dist/client/assets/{button-DWojWemL.js → button-CcxsPygM.js} +1 -1
  66. package/dist/client/assets/{card-BOiOuAP-.js → card-k6wylZpL.js} +1 -1
  67. package/dist/client/assets/{checkbox-DGJCgXun.js → checkbox-C2Pc1VwJ.js} +1 -1
  68. package/dist/client/assets/{circle-alert-DUrMsyoN.js → circle-alert-B5cVsMTM.js} +1 -1
  69. package/dist/client/assets/{collection-detail-D7RVmrEB.js → collection-detail-BWciJVNY.js} +1 -1
  70. package/dist/client/assets/{collection-tab-CZPMGNYt.js → collection-tab-CiiXwxHW.js} +1 -1
  71. package/dist/client/assets/{collection-table-wrapper-ZPNkbaCJ.js → collection-table-wrapper-D8mRH9XX.js} +1 -1
  72. package/dist/client/assets/{collection-tabs-Dk6UhkQO.js → collection-tabs-fLdn4E8h.js} +1 -1
  73. package/dist/client/assets/{command-BVO0c0sd.js → command-CeYHWZzE.js} +1 -1
  74. package/dist/client/assets/{connect-BHwjWCeT.js → connect-BdOXcl_Y.js} +1 -1
  75. package/dist/client/assets/{connection-card-3eJFXlkv.js → connection-card-BcrKHNoi.js} +1 -1
  76. package/dist/client/assets/{connection-detail-CPBCt9mF.js → connection-detail-DmthZz54.js} +1 -1
  77. package/dist/client/assets/{connections-DYKp1A5-.js → connections-r_aRLPNJ.js} +1 -1
  78. package/dist/client/assets/{constants-AtdriOLU.js → constants-BHcnwzXS.js} +1 -1
  79. package/dist/client/assets/constants-CehTGa6m.js +1 -0
  80. package/dist/client/assets/{create-organization-dialog-B2gPo4XG.js → create-organization-dialog-DIppco5e.js} +1 -1
  81. package/dist/client/assets/{create-project-dialog-Y6sQB39n.js → create-project-dialog-Dg334vRx.js} +1 -1
  82. package/dist/client/assets/{dialog-KMNu2iG0.js → dialog-Rb8gAr_X.js} +1 -1
  83. package/dist/client/assets/{dropdown-menu-CyYTUQQN.js → dropdown-menu-D5LbTa4P.js} +1 -1
  84. package/dist/client/assets/{dynamic-plugin-layout-CA_NW5qp.js → dynamic-plugin-layout-eqQ8vb-X.js} +1 -1
  85. package/dist/client/assets/{empty-state-CEjdPBYb.js → empty-state-BvzVGw0j.js} +1 -1
  86. package/dist/client/assets/{empty-state-BJZiDnNf.js → empty-state-CA7kuHGK.js} +1 -1
  87. package/dist/client/assets/{env-vars-editor-QN2q_-tU.js → env-vars-editor-DPP2Mrhu.js} +1 -1
  88. package/dist/client/assets/{error-boundary-C46rhb-O.js → error-boundary-B0-C3nR-.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-Btrt_31A.js → extract-connection-data-C_PlCvXj.js} +1 -1
  90. package/dist/client/assets/{file-browser-CQuzrw-G.js → file-browser-D6eYzF31.js} +2 -2
  91. package/dist/client/assets/{form-q_K7v0zC.js → form-BoeJzVfE.js} +1 -1
  92. package/dist/client/assets/{grid-view-BJewwJ01.js → grid-view-Cqpn4831.js} +1 -1
  93. package/dist/client/assets/{home-BnwAIrrx.js → home-DtTiTJHY.js} +1 -1
  94. package/dist/client/assets/{index-OcyZGamM.js → index-B8FAEn0C.js} +1 -1
  95. package/dist/client/assets/{index-CohEjL-h.js → index-BDio7_0T.js} +1 -1
  96. package/dist/client/assets/{index-fRTURkLB.js → index-CK46yvDU.js} +1 -1
  97. package/dist/client/assets/{index-Bp0f9N41.js → index-CSfvtoe4.js} +1 -1
  98. package/dist/client/assets/{index--bZTPc9i.js → index-CkziH66W.js} +1 -1
  99. package/dist/client/assets/{index-dPRhfL33.js → index-ClncOz6N.js} +3 -3
  100. package/dist/client/assets/{index-DEMYhsma.js → index-CqJghtvI.js} +1 -1
  101. package/dist/client/assets/{index-CKiyRrZn.js → index-DNGgnz4O.js} +1 -1
  102. package/dist/client/assets/{index-B0xWD9X7.js → index-Dg7j7nF8.js} +1 -1
  103. package/dist/client/assets/index-Dtj1StPs.css +1 -0
  104. package/dist/client/assets/{infiniteQueryObserver-DfmYH1iA.js → infiniteQueryObserver-DTtSISl9.js} +1 -1
  105. package/dist/client/assets/{input-W_19Penp.js → input-BdH38qw4.js} +1 -1
  106. package/dist/client/assets/{integration-icon-BLqiYr1I.js → integration-icon-Bw_I-XAE.js} +1 -1
  107. package/dist/client/assets/{label-Dxhlo9Fx.js → label-Bl-YFbel.js} +1 -1
  108. package/dist/client/assets/{layout-B8G57F-t.js → layout-aRIgHMvp.js} +1 -1
  109. package/dist/client/assets/{localstorage-keys-5MSbDER6.js → localstorage-keys-BX9jvEU1.js} +1 -1
  110. package/dist/client/assets/{login-BQxy9lnW.js → login-BSw2WJHG.js} +1 -1
  111. package/dist/client/assets/{markdown-BGYXWCRc.js → markdown-CzkeFZ5X.js} +1 -1
  112. package/dist/client/assets/{mcp-oauth-BU47EOR6.js → mcp-oauth-DqRfTp6V.js} +1 -1
  113. package/dist/client/assets/{mcp-server-card-mOa6lEi_.js → mcp-server-card-B9T5TAk8.js} +1 -1
  114. package/dist/client/assets/{mcp-server-detail-LTOW3v-L.js → mcp-server-detail-aLIeserX.js} +2 -2
  115. package/dist/client/assets/{members-CVHLK1cE.js → members-CbEIJSgz.js} +1 -1
  116. package/dist/client/assets/{monitoring-DayNvBEx.js → monitoring-CvktJ_La.js} +1 -1
  117. package/dist/client/assets/{monitoring-dashboard-edit-DkyX_1QJ.js → monitoring-dashboard-edit-C4CBUoJi.js} +1 -1
  118. package/dist/client/assets/{monitoring-dashboard-view-mty5lTPB.js → monitoring-dashboard-view-D5o2th_e.js} +1 -1
  119. package/dist/client/assets/{oauth-callback-Bs1zG55N.js → oauth-callback-Cwqn_YCy.js} +1 -1
  120. package/dist/client/assets/{page-CwdFbiGW.js → page-CoUcimRv.js} +1 -1
  121. package/dist/client/assets/{page-B7SCgkfp.js → page-DKc1c6GW.js} +1 -1
  122. package/dist/client/assets/{plugin-empty-state-Dx7OzNJV.js → plugin-empty-state-FJt7wPXr.js} +1 -1
  123. package/dist/client/assets/{plugin-empty-state-ryjDwvL-.js → plugin-empty-state-RlHFcXiB.js} +1 -1
  124. package/dist/client/assets/{plugin-header-CBNSRRRC.js → plugin-header-CfI3xE0K.js} +1 -1
  125. package/dist/client/assets/{plugin-header-l8ob4iU2.js → plugin-header-CrQ7aOX2.js} +1 -1
  126. package/dist/client/assets/{popover-CIhQwnaE.js → popover-mZJnuJjI.js} +1 -1
  127. package/dist/client/assets/{project-layout-e2j9KpVa.js → project-layout-DotJsvl2.js} +1 -1
  128. package/dist/client/assets/{project-settings-MUIuJxUg.js → project-settings-9R_bMZ34.js} +1 -1
  129. package/dist/client/assets/{projects-list-xiwtdqcb.js → projects-list-Xd18kAoB.js} +1 -1
  130. package/dist/client/assets/{readme-viewer-n_DTmQE7.js → readme-viewer-Czlw9OLy.js} +1 -1
  131. package/dist/client/assets/registry-layout-DKEyfF0q.js +5 -0
  132. package/dist/client/assets/{registry-utils-CWyzAX0e.js → registry-utils-CX7yxjy_.js} +1 -1
  133. package/dist/client/assets/{reports-layout-BC1HQxrF.js → reports-layout-B_ULsOiV.js} +1 -1
  134. package/dist/client/assets/{reset-password-Dhnrvrbb.js → reset-password-Cdnxjg8n.js} +1 -1
  135. package/dist/client/assets/{resizable-WbjPo3Jh.js → resizable-DfITuo54.js} +1 -1
  136. package/dist/client/assets/{save-actions-D1-p9VPy.js → save-actions-ChqbuLbD.js} +1 -1
  137. package/dist/client/assets/{scroll-area-BbdqIEDE.js → scroll-area-C8UIsNZT.js} +1 -1
  138. package/dist/client/assets/{select-kdmjq0lZ.js → select-CixKYbFw.js} +1 -1
  139. package/dist/client/assets/{shell-layout-CMvMgCcm.js → shell-layout-BUnBBwEV.js} +3 -3
  140. package/dist/client/assets/{spinner-ZLL3-a01.js → spinner-BMxXfTiG.js} +1 -1
  141. package/dist/client/assets/{store-invite-BeknV9Iy.js → store-invite-BxswfJKl.js} +1 -1
  142. package/dist/client/assets/{switch-Dx7JByby.js → switch-B_EwtGD2.js} +1 -1
  143. package/dist/client/assets/{table-DgQJ1J6E.js → table-C5Cvp27H.js} +1 -1
  144. package/dist/client/assets/{tasks-CyZGqdxL.js → tasks-CLmc4-Ka.js} +1 -1
  145. package/dist/client/assets/{textarea-DUSwFavn.js → textarea-Bosg8LSF.js} +1 -1
  146. package/dist/client/assets/{time-range-picker-DodVOYww.js → time-range-picker-DqbTNWJO.js} +1 -1
  147. package/dist/client/assets/{toggle-group-CuIAs6P3.js → toggle-group-C9vSpu1B.js} +1 -1
  148. package/dist/client/assets/{tools-list-BVaVBwqx.js → tools-list-m2LGQ8uO.js} +1 -1
  149. package/dist/client/assets/{tooltip-CbSG5zbJ.js → tooltip-TMQButig.js} +1 -1
  150. package/dist/client/assets/{topbar-portal-CfLXUp1A.js → topbar-portal-D3WNlquz.js} +1 -1
  151. package/dist/client/assets/{typewriter-title-B4g6lRKB.js → typewriter-title-D4y6_U_x.js} +1 -1
  152. package/dist/client/assets/{use-binding-CAYvkjjM.js → use-binding-op5oWkHb.js} +1 -1
  153. package/dist/client/assets/{use-connection-DZHU_3TP.js → use-connection-DD4p_Qxm.js} +1 -1
  154. package/dist/client/assets/{use-copy-Cr2kp8OS.js → use-copy-QNK64gRO.js} +1 -1
  155. package/dist/client/assets/{use-create-virtual-mcp-DgHSMk2H.js → use-create-virtual-mcp-DTZkMOkn.js} +1 -1
  156. package/dist/client/assets/{use-deco-chat-open-ClqIEs4Z.js → use-deco-chat-open-D2iAkBUE.js} +1 -1
  157. package/dist/client/assets/{use-install-from-registry-tLb1Kdrs.js → use-install-from-registry-BzBNvPLt.js} +1 -1
  158. package/dist/client/assets/{use-list-state-BvAdbamB.js → use-list-state-58FQ5_m7.js} +1 -1
  159. package/dist/client/assets/{use-llm-D4jDtKYe.js → use-llm-Dxppw3BS.js} +1 -1
  160. package/dist/client/assets/{use-mcp-prompts-md0AzGLl.js → use-mcp-prompts-Cugr7S4A.js} +1 -1
  161. package/dist/client/assets/{use-mcp-tools-CzbNLz7J.js → use-mcp-tools-DAXcjOXG.js} +1 -1
  162. package/dist/client/assets/{use-mobile-CQgNuYwq.js → use-mobile-BttsZXmR.js} +1 -1
  163. package/dist/client/assets/{use-organization-settings-DzSLPtOh.js → use-organization-settings-CMbhnXrw.js} +1 -1
  164. package/dist/client/assets/{use-project-D4XMXF6N.js → use-project-22jTFib5.js} +1 -1
  165. package/dist/client/assets/{use-view-mode-DHYBn-mv.js → use-view-mode-DJpnO-MR.js} +1 -1
  166. package/dist/client/assets/{use-virtual-mcp-BiYeIbEk.js → use-virtual-mcp-CSTx0yIN.js} +1 -1
  167. package/dist/client/assets/useInfiniteQuery-UJjoB_Vx.js +1 -0
  168. package/dist/client/assets/{useMutation-Bdkg6Nbz.js → useMutation-CeUP6TdZ.js} +1 -1
  169. package/dist/client/assets/useQuery-BSd1v_RX.js +1 -0
  170. package/dist/client/assets/useSuspenseInfiniteQuery-B9OvX_J7.js +1 -0
  171. package/dist/client/assets/{workflow-zugBO0h6.js → workflow-C62_M1_u.js} +1 -1
  172. package/dist/client/index.html +2 -2
  173. package/dist/server/cli.js +171 -171
  174. package/dist/server/migrate.js +155 -155
  175. package/dist/server/server.js +176 -176
  176. package/package.json +1 -1
  177. package/dist/client/assets/constants-DFbAd1cN.js +0 -1
  178. package/dist/client/assets/index-86l5BgKO.css +0 -1
  179. package/dist/client/assets/registry-layout-C0_kLohD.js +0 -5
  180. package/dist/client/assets/useInfiniteQuery-BNFcWH1X.js +0 -1
  181. package/dist/client/assets/useQuery-Bh8kt_jw.js +0 -1
  182. package/dist/client/assets/useSuspenseInfiniteQuery-Bpew8vs5.js +0 -1
@@ -1 +1 @@
1
- import{c as n,b2 as u,b3 as p,n as f}from"./index-dPRhfL33.js";import{u as m}from"./useQuery-Bh8kt_jw.js";import{K as c}from"./constants-AtdriOLU.js";async function y(o){if(!o.getServerCapabilities()?.resources)return{resources:[]};try{return await o.listResources()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{resources:[]};throw t}}async function R(o,e){return await o.readResource({uri:e})}function w(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function C(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}async function b(o){if(!o.getServerCapabilities()?.prompts)return{prompts:[]};try{return await o.listPrompts()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{prompts:[]};throw t}}async function L(o,e,t){if(!o.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await o.getPrompt({name:e,arguments:t??{}})}function T(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>b(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function g(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>b(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}export{y as a,g as b,w as c,C as d,L as g,b as l,R as r,T as u};
1
+ import{c as n,b2 as u,b3 as p,n as f}from"./index-ClncOz6N.js";import{u as m}from"./useQuery-BSd1v_RX.js";import{K as c}from"./constants-BHcnwzXS.js";async function y(o){if(!o.getServerCapabilities()?.resources)return{resources:[]};try{return await o.listResources()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{resources:[]};throw t}}async function R(o,e){return await o.readResource({uri:e})}function w(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function C(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}async function b(o){if(!o.getServerCapabilities()?.prompts)return{prompts:[]};try{return await o.listPrompts()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{prompts:[]};throw t}}async function L(o,e,t){if(!o.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await o.getPrompt({name:e,arguments:t??{}})}function T(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>b(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function g(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>b(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}export{y as a,g as b,w as c,C as d,L as g,b as l,R as r,T as u};
@@ -1 +1 @@
1
- import{c as m,n as p}from"./index-dPRhfL33.js";import{u as q}from"./useQuery-Bh8kt_jw.js";import{u as C}from"./useMutation-Bdkg6Nbz.js";import{K as T}from"./constants-AtdriOLU.js";function w(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=m.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
1
+ import{c as m,n as p}from"./index-ClncOz6N.js";import{u as q}from"./useQuery-BSd1v_RX.js";import{u as C}from"./useMutation-CeUP6TdZ.js";import{K as T}from"./constants-BHcnwzXS.js";function w(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=m.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-dPRhfL33.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-ClncOz6N.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{c as m,u as T,n as d,z as y,K as g}from"./index-dPRhfL33.js";import{u as _}from"./useMutation-Bdkg6Nbz.js";import{a as p,u as A}from"./constants-AtdriOLU.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
1
+ import{c as m,u as T,n as d,z as y,K as g}from"./index-ClncOz6N.js";import{u as _}from"./useMutation-CeUP6TdZ.js";import{a as p,u as A}from"./constants-BHcnwzXS.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
@@ -1 +1 @@
1
- import{K as m,c as C,n as T}from"./index-dPRhfL33.js";import{u as y}from"./useQuery-Bh8kt_jw.js";import{u as f,a}from"./constants-AtdriOLU.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
1
+ import{K as m,c as C,n as T}from"./index-ClncOz6N.js";import{u as y}from"./useQuery-BSd1v_RX.js";import{u as f,a}from"./constants-BHcnwzXS.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-dPRhfL33.js";import{u as w}from"./use-mobile-CQgNuYwq.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
1
+ import{c as p,r as f}from"./index-ClncOz6N.js";import{u as w}from"./use-mobile-BttsZXmR.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
@@ -1 +1 @@
1
- import{c,u as r}from"./index-dPRhfL33.js";import{e as a,u as C,d as I}from"./use-connection-DZHU_3TP.js";import{a as l,u}from"./constants-AtdriOLU.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
1
+ import{c,u as r}from"./index-ClncOz6N.js";import{e as a,u as C,d as I}from"./use-connection-DD4p_Qxm.js";import{a as l,u}from"./constants-BHcnwzXS.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-DTtSISl9.js";import{B as i}from"./index-ClncOz6N.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{aV as l,aW as p,aX as n,aY as d,aZ as h,z as b,r as o,a_ as m,a$ as f}from"./index-dPRhfL33.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
1
+ import{aV as l,aW as p,aX as n,aY as d,aZ as h,z as b,r as o,a_ as m,a$ as f}from"./index-ClncOz6N.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
@@ -0,0 +1 @@
1
+ import{B as u,aa as s}from"./index-ClncOz6N.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-DTtSISl9.js";import{B as u,D as n}from"./index-ClncOz6N.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{u as w,d as K,b as q,r as $,j as t,O as B,c as k,aE as G,z as Q,K as W,t as A}from"./index-dPRhfL33.js";import{a as J,u as V,e as Y}from"./constants-AtdriOLU.js";import{C as X}from"./collection-tab-CZPMGNYt.js";import{g as Z,h as ee}from"./use-connection-DZHU_3TP.js";import{B as I}from"./button-DWojWemL.js";import{E as R}from"./empty-state-CEjdPBYb.js";import{E as te}from"./error-boundary-C46rhb-O.js";import{P as x}from"./index-Bp0f9N41.js";import{B as F,a as z,b as M,c as T}from"./breadcrumb-C0CiN0-a.js";import{a as ne,b as se}from"./use-binding-CAYvkjjM.js";import{i as ie}from"./AlertTriangle-CSOzbMAR.js";import{i as oe}from"./Loading01-Cuu3mXAb.js";import{s as le}from"./RefreshCcw01-DscI81gU.js";import{a as re}from"./Settings02-BL-Nmd3r.js";import{u as ce}from"./useMutation-Bdkg6Nbz.js";import{e as ae}from"./Dataflow03-CIjmkTFd.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-ZPNkbaCJ.js";import"./dropdown-menu-CyYTUQQN.js";import"./Check-CNejExNv.js";import"./ChevronRight-DDxCOJgQ.js";import"./ArrowUp-B7E_tgTK.js";import"./Grid01-BL7Wt-ST.js";import"./List-y7OG_mTx.js";import"./tooltip-CbSG5zbJ.js";import"./index-CohEjL-h.js";import"./table-DgQJ1J6E.js";import"./card-BOiOuAP-.js";import"./integration-icon-BLqiYr1I.js";import"./Container-alVY2Lns.js";import"./Copy01-DcDLVxds.js";import"./DotsVertical-kZ1j7-Pi.js";import"./Edit01-DXysJjaO.js";import"./Eye-C4jmNobz.js";import"./Trash01-CaptK897.js";import"./empty-state-BJZiDnNf.js";import"./Inbox01-C6DMHQTA.js";import"./use-list-state-BvAdbamB.js";import"./avatar-ncukQYla.js";import"./useQuery-Bh8kt_jw.js";import"./use-view-mode-DHYBn-mv.js";import"./use-mobile-CQgNuYwq.js";import"./constants-DFbAd1cN.js";import"./alert-dialog-DUudy2cq.js";import"./Plus-BTE2dyA2.js";import"./layout-B8G57F-t.js";import"./SearchMd-DLBdwJh1.js";import"./input-W_19Penp.js";import"./binder-rHkdf30H.js";function me({title:n,description:e,wellKnownMcp:o,imageSrc:c,onConnected:i}){const a=Z(),{org:{slug:s}}=w(),{data:r}=K.useSession(),m=q(),[d,p]=$.useState(!1),l=async()=>{if(!(!o||!r?.user?.id)){p(!0);try{const f=await a.create.mutateAsync(o);i?.(f.id),m({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{m({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:c?t.jsx("img",{src:c,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:d||!o,children:[o?.icon&&t.jsx("img",{src:o.icon,alt:"",className:"size-4"}),d?"Installing...":`Install ${o?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function de(n){const e=k.c(35),{bindingName:o,collectionName:c,title:i,emptyState:a,wellKnownMcp:s}=n,{org:r}=w(),m=ee();let d;e[0]!==m||e[1]!==o?(d={connections:m,binding:o},e[0]=m,e[1]=o,e[2]=d):d=e[2];const l=ne(d)[0],u=se(l);let f;if(e[3]!==c||e[4]!==u){let g;e[6]!==c?(g=L=>L.name.toLowerCase()===c.toLowerCase(),e[6]=c,e[7]=g):g=e[7],f=u.find(g),e[3]=c,e[4]=u,e[5]=f}else f=e[5];const N=f,[U,D]=$.useState(null),_=l&&N&&(l.id||U);let j;e[8]!==i?(j=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:i})})})})})}),e[8]=i,e[9]=j):j=e[9];let h;e[10]!==l||e[11]!==r||e[12]!==i?(h=g=>{const{error:L,resetError:H}=g;return t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(ie,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",i.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:L?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:H,children:[t.jsx(le,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(G,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(re,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=i,e[13]=h):h=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=S):S=e[14];let b;e[15]!==i?(b=i.toLowerCase(),e[15]=i,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==N||e[20]!==l||e[21]!==a||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:N}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(me,{title:a.title,description:a.description,wellKnownMcp:s,imageSrc:a.imageSrc,onConnected:g=>{D(g)}})}),e[19]=N,e[20]=l,e[21]=a,e[22]=r,e[23]=_,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx($.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==h||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(te,{fallback:h,children:P})}),e[29]=h,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==j?(v=t.jsxs(x,{children:[j,E]}),e[32]=E,e[33]=j,e[34]=v):v=e[34],v}function ue(){const n=k.c(12),{org:e,project:o}=w(),c=Q();let i;n[0]!==e.id?(i={connectionId:J,orgId:e.id},n[0]=e.id,n[1]=i):i=n[1];const a=V(i);let s;n[2]!==a||n[3]!==o?(s=async p=>{const l=o.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await a.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=a,n[3]=o,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==o||n[7]!==c?(r=()=>{c.invalidateQueries({queryKey:W.project(e.id,o.slug)}),c.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=o,n[7]=c,n[8]=r):r=n[8];let m;return n[9]!==s||n[10]!==r?(m={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=m):m=n[11],ce(m)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=k.c(12),{pluginId:o,title:c,description:i,icon:a}=n,s=ue();let r;e[0]!==s||e[1]!==o?(r=async()=>{try{await s.mutateAsync(o),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=o,e[2]=r):r=e[2];const m=r,d=a??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==m||e[5]!==p?(l=t.jsx(I,{onClick:m,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=m,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==i||e[8]!==d||e[9]!==l||e[10]!==c?(u=t.jsx(R,{image:d,title:c,description:i,actions:l}),e[7]=i,e[8]=d,e[9]=l,e[10]=c,e[11]=u):u=e[11],u}const O="workflows";function mt(){const n=k.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=a):a=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[a,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ae,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let i;return n[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(de,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=i):i=n[2],i}export{mt as default};
1
+ import{u as w,d as K,b as q,r as $,j as t,O as B,c as k,aE as G,z as Q,K as W,t as A}from"./index-ClncOz6N.js";import{a as J,u as V,e as Y}from"./constants-BHcnwzXS.js";import{C as X}from"./collection-tab-CiiXwxHW.js";import{g as Z,h as ee}from"./use-connection-DD4p_Qxm.js";import{B as I}from"./button-CcxsPygM.js";import{E as R}from"./empty-state-BvzVGw0j.js";import{E as te}from"./error-boundary-B0-C3nR-.js";import{P as x}from"./index-CSfvtoe4.js";import{B as F,a as z,b as M,c as T}from"./breadcrumb-KvFHoKN7.js";import{a as ne,b as se}from"./use-binding-op5oWkHb.js";import{i as ie}from"./AlertTriangle-CGGjQU9b.js";import{i as oe}from"./Loading01-Du9ChcBO.js";import{s as le}from"./RefreshCcw01-OjrTubY1.js";import{a as re}from"./Settings02-Pk4hmkwR.js";import{u as ce}from"./useMutation-CeUP6TdZ.js";import{e as ae}from"./Dataflow03-DItczzaI.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-D8mRH9XX.js";import"./dropdown-menu-D5LbTa4P.js";import"./Check-E8-Inf76.js";import"./ChevronRight-Cj97ppFv.js";import"./ArrowUp-BtMmVpE7.js";import"./Grid01-xeO6ixb6.js";import"./List-CEuiHx2u.js";import"./tooltip-TMQButig.js";import"./index-BDio7_0T.js";import"./table-C5Cvp27H.js";import"./card-k6wylZpL.js";import"./integration-icon-Bw_I-XAE.js";import"./Container-8z-xyt04.js";import"./Copy01-DKHGVRMd.js";import"./DotsVertical-IiJAY3kM.js";import"./Edit01-CSgI_vqG.js";import"./Eye-DPrkOx1m.js";import"./Trash01-DT85aU53.js";import"./empty-state-CA7kuHGK.js";import"./Inbox01-CHcPs9mB.js";import"./use-list-state-58FQ5_m7.js";import"./avatar-A9KYWJyz.js";import"./useQuery-BSd1v_RX.js";import"./use-view-mode-DJpnO-MR.js";import"./use-mobile-BttsZXmR.js";import"./constants-CehTGa6m.js";import"./alert-dialog-5IiN8bI8.js";import"./Plus-hJGQuZKS.js";import"./layout-aRIgHMvp.js";import"./SearchMd-B9pv8N9E.js";import"./input-BdH38qw4.js";import"./binder-BXFbhA2G.js";function me({title:n,description:e,wellKnownMcp:o,imageSrc:c,onConnected:i}){const a=Z(),{org:{slug:s}}=w(),{data:r}=K.useSession(),m=q(),[d,p]=$.useState(!1),l=async()=>{if(!(!o||!r?.user?.id)){p(!0);try{const f=await a.create.mutateAsync(o);i?.(f.id),m({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{m({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:c?t.jsx("img",{src:c,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(I,{variant:"outline",onClick:l,disabled:d||!o,children:[o?.icon&&t.jsx("img",{src:o.icon,alt:"",className:"size-4"}),d?"Installing...":`Install ${o?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function de(n){const e=k.c(35),{bindingName:o,collectionName:c,title:i,emptyState:a,wellKnownMcp:s}=n,{org:r}=w(),m=ee();let d;e[0]!==m||e[1]!==o?(d={connections:m,binding:o},e[0]=m,e[1]=o,e[2]=d):d=e[2];const l=ne(d)[0],u=se(l);let f;if(e[3]!==c||e[4]!==u){let g;e[6]!==c?(g=L=>L.name.toLowerCase()===c.toLowerCase(),e[6]=c,e[7]=g):g=e[7],f=u.find(g),e[3]=c,e[4]=u,e[5]=f}else f=e[5];const N=f,[U,D]=$.useState(null),_=l&&N&&(l.id||U);let j;e[8]!==i?(j=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:i})})})})})}),e[8]=i,e[9]=j):j=e[9];let h;e[10]!==l||e[11]!==r||e[12]!==i?(h=g=>{const{error:L,resetError:H}=g;return t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(ie,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",i.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:L?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(I,{variant:"outline",onClick:H,children:[t.jsx(le,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(G,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(re,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=i,e[13]=h):h=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=S):S=e[14];let b;e[15]!==i?(b=i.toLowerCase(),e[15]=i,e[16]=b):b=e[16];let C;e[17]!==b?(C=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==N||e[20]!==l||e[21]!==a||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:N}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(me,{title:a.title,description:a.description,wellKnownMcp:s,imageSrc:a.imageSrc,onConnected:g=>{D(g)}})}),e[19]=N,e[20]=l,e[21]=a,e[22]=r,e[23]=_,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx($.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==h||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(te,{fallback:h,children:P})}),e[29]=h,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==j?(v=t.jsxs(x,{children:[j,E]}),e[32]=E,e[33]=j,e[34]=v):v=e[34],v}function ue(){const n=k.c(12),{org:e,project:o}=w(),c=Q();let i;n[0]!==e.id?(i={connectionId:J,orgId:e.id},n[0]=e.id,n[1]=i):i=n[1];const a=V(i);let s;n[2]!==a||n[3]!==o?(s=async p=>{const l=o.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await a.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=a,n[3]=o,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==o||n[7]!==c?(r=()=>{c.invalidateQueries({queryKey:W.project(e.id,o.slug)}),c.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=o,n[7]=c,n[8]=r):r=n[8];let m;return n[9]!==s||n[10]!==r?(m={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=m):m=n[11],ce(m)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=k.c(12),{pluginId:o,title:c,description:i,icon:a}=n,s=ue();let r;e[0]!==s||e[1]!==o?(r=async()=>{try{await s.mutateAsync(o),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=o,e[2]=r):r=e[2];const m=r,d=a??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==m||e[5]!==p?(l=t.jsx(I,{onClick:m,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=m,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==i||e[8]!==d||e[9]!==l||e[10]!==c?(u=t.jsx(R,{image:d,title:c,description:i,actions:l}),e[7]=i,e[8]=d,e[9]=l,e[10]=c,e[11]=u):u=e[11],u}const O="workflows";function mt(){const n=k.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=a):a=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[a,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ae,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let i;return n[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(de,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=i):i=n[2],i}export{mt as default};
@@ -3,8 +3,8 @@
3
3
  <head>
4
4
  <title>MCP Mesh</title>
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <script type="module" crossorigin src="/assets/index-dPRhfL33.js"></script>
7
- <link rel="stylesheet" crossorigin href="/assets/index-86l5BgKO.css">
6
+ <script type="module" crossorigin src="/assets/index-ClncOz6N.js"></script>
7
+ <link rel="stylesheet" crossorigin href="/assets/index-Dtj1StPs.css">
8
8
  </head>
9
9
  <body>
10
10
  <div id="root"></div>