@decocms/mesh 2.128.3 → 2.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/dist/client/assets/{AlertCircle-DQQcPtgD.js → AlertCircle-B5HluIO3.js} +1 -1
  2. package/dist/client/assets/{AlertOctagon-hF9xAZsV.js → AlertOctagon-DLDnfSxq.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-Cf0RNEZQ.js → ArrowDown-BzJ1vFPJ.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-D7lFQljS.js → ArrowLeft-DCnfi4gY.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-CKXiX_Ao.js → ArrowUp-u6rq77eg.js} +1 -1
  6. package/dist/client/assets/{Check-B_1XgGXq.js → Check-BLsa6Dp0.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-teFEREuu.js → CheckCircle-C896qa_4.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-BlB1S8hb.js → CheckDone01-DyLMxeZH.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-C72zve8A.js → CheckVerified02-1buQCuAU.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-BCXsTPO0.js → ChevronDown-DVvRSZbO.js} +1 -1
  11. package/dist/client/assets/{ChevronRight-Dv5Kd3sh.js → ChevronRight-D35EN1KP.js} +1 -1
  12. package/dist/client/assets/{Clock-B4Ctq7dH.js → Clock-CdVNfxF9.js} +1 -1
  13. package/dist/client/assets/{Code01-gdNPPDL2.js → Code01-DChqD2bN.js} +1 -1
  14. package/dist/client/assets/{Container-JCSa3G3B.js → Container-Dp-HDyo2.js} +1 -1
  15. package/dist/client/assets/{Copy01-B1lCFyqr.js → Copy01-CnJbZgtN.js} +1 -1
  16. package/dist/client/assets/{Dataflow03-CmiJ_a2x.js → Dataflow03-BitSjF7Q.js} +1 -1
  17. package/dist/client/assets/{DotsHorizontal-DYVOSQNI.js → DotsHorizontal-Z_Qp5Vin.js} +1 -1
  18. package/dist/client/assets/{DotsVertical-Dv4tBZU-.js → DotsVertical-B16xdrDF.js} +1 -1
  19. package/dist/client/assets/{Download01-DIwP2P7D.js → Download01-D_DIAPke.js} +1 -1
  20. package/dist/client/assets/{Edit01-DDXcCS4H.js → Edit01-B658of-t.js} +1 -1
  21. package/dist/client/assets/{Eye-BZHp_wD7.js → Eye-CYnIw-SN.js} +1 -1
  22. package/dist/client/assets/{File02-D8nm9j-J.js → File02-CHIjhcG6.js} +1 -1
  23. package/dist/client/assets/{File06-D-_j0iW5.js → File06-CVRi_0gi.js} +1 -1
  24. package/dist/client/assets/{FilterLines-BP-6W-PZ.js → FilterLines-DDr56AOU.js} +1 -1
  25. package/dist/client/assets/{Globe01-BUQmYqse.js → Globe01-UCeXtqE1.js} +1 -1
  26. package/dist/client/assets/{Globe02-CitacpSB.js → Globe02-Byh3m_ui.js} +1 -1
  27. package/dist/client/assets/{Grid01-9bvbF-2s.js → Grid01-rxOSnLNN.js} +1 -1
  28. package/dist/client/assets/{Hash02-B1Ogol6o.js → Hash02-C4CcmK6g.js} +1 -1
  29. package/dist/client/assets/{Home02-BQf2Bq1d.js → Home02-mrr2txUf.js} +1 -1
  30. package/dist/client/assets/{Image01-DQT9mrMs.js → Image01-QajO_doQ.js} +1 -1
  31. package/dist/client/assets/{Inbox01-jnM9oRqF.js → Inbox01-CAyLyUGs.js} +1 -1
  32. package/dist/client/assets/{InfoCircle-CGMOojOv.js → InfoCircle-BU-3deyT.js} +1 -1
  33. package/dist/client/assets/{Key01-xmVowZ8K.js → Key01-BrK_QOJr.js} +1 -1
  34. package/dist/client/assets/{LinkExternal01-D9XuFg7K.js → LinkExternal01-D0ySMlz2.js} +1 -1
  35. package/dist/client/assets/{List-klt4Ktng.js → List-IhyiQnaM.js} +1 -1
  36. package/dist/client/assets/{Loading01-fS4L07xH.js → Loading01-CsfvkbwN.js} +1 -1
  37. package/dist/client/assets/{Lock01-BKSJ7A3p.js → Lock01-q0zwnZYS.js} +1 -1
  38. package/dist/client/assets/{Play-xVtvzzCw.js → Play-SjpFEK2t.js} +1 -1
  39. package/dist/client/assets/{Plus-J6pIe2uV.js → Plus-Bu2lcrFj.js} +1 -1
  40. package/dist/client/assets/{RefreshCcw01-CL_G5oMs.js → RefreshCcw01-D1gKEPJg.js} +1 -1
  41. package/dist/client/assets/{Rows03-cUxIL8D0.js → Rows03-Cw5fJ9ZD.js} +1 -1
  42. package/dist/client/assets/{Save01-CdMTv6PL.js → Save01-BlXHOOUu.js} +1 -1
  43. package/dist/client/assets/{SearchMd-CifRamFZ.js → SearchMd-BYNjNi6G.js} +1 -1
  44. package/dist/client/assets/{Settings01-B28HDbDZ.js → Settings01-Chj-u0vw.js} +1 -1
  45. package/dist/client/assets/{Shield01-BrHq9skT.js → Shield01-BXEWKkuq.js} +1 -1
  46. package/dist/client/assets/{Terminal-BPUAzvCO.js → Terminal-DxVYbzVO.js} +1 -1
  47. package/dist/client/assets/{Tool01-6ldn8KE7.js → Tool01-Chydq5Pa.js} +1 -1
  48. package/dist/client/assets/{Trash01-BGRjTxek.js → Trash01-BzIbN_if.js} +1 -1
  49. package/dist/client/assets/{Upload01-Z7XprHF7.js → Upload01-BgkchdJF.js} +1 -1
  50. package/dist/client/assets/{Users03-DkrzV9ZI.js → Users03-D53eD1vq.js} +1 -1
  51. package/dist/client/assets/{X-BY3es49B.js → X-DHjK9PDN.js} +1 -1
  52. package/dist/client/assets/{XCircle-DZ1yCOQ6.js → XCircle-z2ZmsW0F.js} +1 -1
  53. package/dist/client/assets/{XClose-Cc-gaidr.js → XClose-3tA4ra4j.js} +1 -1
  54. package/dist/client/assets/{agent-connections-preview-pDe7P7Ta.js → agent-connections-preview-mkQa7W_h.js} +1 -1
  55. package/dist/client/assets/{agent-detail-2TyklQZz.js → agent-detail-DJmBDWW3.js} +2 -2
  56. package/dist/client/assets/{agents-DKPHVEr-.js → agents-2tgZRPGa.js} +1 -1
  57. package/dist/client/assets/{alert-dialog-Dcn63g6g.js → alert-dialog-DUAKkVAq.js} +2 -2
  58. package/dist/client/assets/{auth-catchall-Dho6OcVz.js → auth-catchall-DV3Iqc3Q.js} +1 -1
  59. package/dist/client/assets/{avatar-PHdbjFDw.js → avatar-CH22spOE.js} +1 -1
  60. package/dist/client/assets/{badge-SF6wUW5L.js → badge-DRjYdqbX.js} +1 -1
  61. package/dist/client/assets/{binder-D_h2ibfT.js → binder-rpVFRee0.js} +1 -1
  62. package/dist/client/assets/{breadcrumb-C0g6Pt2_.js → breadcrumb-KjJWdRpb.js} +1 -1
  63. package/dist/client/assets/{card-BdxqmIDs.js → card-BkNoFHpx.js} +1 -1
  64. package/dist/client/assets/{chart-BUZSWI3B.js → chart-CQCEgLna.js} +1 -1
  65. package/dist/client/assets/{checkbox-LKkMIiIW.js → checkbox-By3bAdh7.js} +1 -1
  66. package/dist/client/assets/{circle-alert-tYCIieku.js → circle-alert-ljj5FwIc.js} +1 -1
  67. package/dist/client/assets/{collection-detail-ByuFgV2Y.js → collection-detail-EDVIxYBM.js} +1 -1
  68. package/dist/client/assets/{collection-search-qyutGH6l.js → collection-search-C_OMYxZl.js} +1 -1
  69. package/dist/client/assets/{collection-tab-BbAfStP-.js → collection-tab-B07wbIZz.js} +1 -1
  70. package/dist/client/assets/{collection-table-wrapper-C9APekgb.js → collection-table-wrapper-l5klS4Y7.js} +1 -1
  71. package/dist/client/assets/{collection-tabs-h2vOc-_S.js → collection-tabs-9ADp-6pz.js} +1 -1
  72. package/dist/client/assets/{command-FPE9wf0f.js → command-Uh-geTua.js} +1 -1
  73. package/dist/client/assets/{connect-CX8KQP6_.js → connect-CxvZe6pe.js} +1 -1
  74. package/dist/client/assets/{connection-card-ZsVFtnK9.js → connection-card-BeIb5gxR.js} +1 -1
  75. package/dist/client/assets/{connection-detail-pqk6mgg9.js → connection-detail-BfFG0a91.js} +1 -1
  76. package/dist/client/assets/{connections-BohwKULL.js → connections-cl3JMAjX.js} +1 -1
  77. package/dist/client/assets/constants-C66xuD6u.js +1 -0
  78. package/dist/client/assets/{constants-CYyFC-Sp.js → constants-CK6_mNWE.js} +1 -1
  79. package/dist/client/assets/{context-DCvH3r3j.js → context-Cq4v7gsg.js} +4 -4
  80. package/dist/client/assets/{create-organization-dialog-BCgnCEPh.js → create-organization-dialog-r-SCzyV8.js} +1 -1
  81. package/dist/client/assets/{create-project-dialog-CrEm4IvG.js → create-project-dialog-BhUKTQbH.js} +1 -1
  82. package/dist/client/assets/{dialog-DjBLF9Xz.js → dialog-DLTkBtv6.js} +1 -1
  83. package/dist/client/assets/{dropdown-menu-dMkqHp7f.js → dropdown-menu-Rs1iwpA7.js} +1 -1
  84. package/dist/client/assets/{dynamic-plugin-layout-DnTEhExp.js → dynamic-plugin-layout-DsVAEvvX.js} +1 -1
  85. package/dist/client/assets/{editable-thread-title-CGN0Mgzr.js → editable-thread-title-C4YmJmVC.js} +1 -1
  86. package/dist/client/assets/{empty-state-B6tWKHPM.js → empty-state-DS4eEQ1G.js} +1 -1
  87. package/dist/client/assets/{env-vars-editor-D0A2SEWh.js → env-vars-editor-D-5q9agv.js} +1 -1
  88. package/dist/client/assets/{extract-connection-data-Bc1UBsWZ.js → extract-connection-data-CYMN0D5n.js} +1 -1
  89. package/dist/client/assets/{file-browser-BAUqIo1x.js → file-browser-CrNWmsx8.js} +2 -2
  90. package/dist/client/assets/{form-DKDTPBJL.js → form-CqZTFrgI.js} +1 -1
  91. package/dist/client/assets/{grid-view-DBeJ-u7v.js → grid-view-MhHnpGdx.js} +1 -1
  92. package/dist/client/assets/{home-o-8rSFPM.js → home-B0uJxFQa.js} +1 -1
  93. package/dist/client/assets/{index-Cr71gOj3.js → index-BRG6oG9k.js} +1 -1
  94. package/dist/client/assets/index-BcDQ75Aq.css +1 -0
  95. package/dist/client/assets/{index-DCxyPrpA.js → index-C2G8QaMi.js} +1 -1
  96. package/dist/client/assets/{index-EAWMJGj2.js → index-C3NRRye7.js} +59 -59
  97. package/dist/client/assets/index-C6FlOd-3.js +1 -0
  98. package/dist/client/assets/{index-nz17Zavj.js → index-C7G5_i2M.js} +1 -1
  99. package/dist/client/assets/{index-DL3qqjep.js → index-COF-ZUER.js} +3 -3
  100. package/dist/client/assets/{index-CxnWkZZb.js → index-fzPVAN-9.js} +1 -1
  101. package/dist/client/assets/{index-Bf_CY3qu.js → index-jc9pWxLI.js} +1 -1
  102. package/dist/client/assets/{index-DXe5aLcB.js → index-m9GkCLcf.js} +1 -1
  103. package/dist/client/assets/{infiniteQueryObserver-QkJ406yX.js → infiniteQueryObserver-DMR1gRjq.js} +1 -1
  104. package/dist/client/assets/{input-pcdA_rWs.js → input-KmmBtQqC.js} +1 -1
  105. package/dist/client/assets/{integration-icon-CDKf5lkP.js → integration-icon-C7zTMltL.js} +1 -1
  106. package/dist/client/assets/{label-Cs0rMyA0.js → label-LyCIIy-s.js} +1 -1
  107. package/dist/client/assets/{layout-BM96F8A6.js → layout-B0qVoorz.js} +1 -1
  108. package/dist/client/assets/{localstorage-keys-DuRbtKex.js → localstorage-keys-YdXjcRD_.js} +1 -1
  109. package/dist/client/assets/{login-UlwWZHgc.js → login-BmAlf_7g.js} +1 -1
  110. package/dist/client/assets/{markdown-CN9uWcE5.js → markdown-BAPLlhtH.js} +1 -1
  111. package/dist/client/assets/{mcp-oauth-1reN8tHJ.js → mcp-oauth-BkicgfKB.js} +1 -1
  112. package/dist/client/assets/{mcp-server-card-BvqzVqbR.js → mcp-server-card-XSZNkWji.js} +1 -1
  113. package/dist/client/assets/{mcp-server-detail-44WaE8j1.js → mcp-server-detail-BCBzFOJ0.js} +2 -2
  114. package/dist/client/assets/{members-Dlu0JdHg.js → members-BkMxHVNh.js} +1 -1
  115. package/dist/client/assets/{monitoring-dashboard-edit-Bh6jLPJ-.js → monitoring-dashboard-edit-DRNIcXD8.js} +1 -1
  116. package/dist/client/assets/{monitoring-dashboard-view-BR_gx-ah.js → monitoring-dashboard-view-lquWquwa.js} +2 -2
  117. package/dist/client/assets/{monitoring-BkGKM_nf.js → monitoring-zK5Os_Xd.js} +1 -1
  118. package/dist/client/assets/{oauth-callback-My1FCnBz.js → oauth-callback-C0aSTeSz.js} +1 -1
  119. package/dist/client/assets/{page-CrdufU7i.js → page-C4z6jnWr.js} +1 -1
  120. package/dist/client/assets/{page-CTS2P4X2.js → page-CrfVaGUv.js} +1 -1
  121. package/dist/client/assets/{plugin-empty-state-CM6Dryag.js → plugin-empty-state-CN28OBKP.js} +1 -1
  122. package/dist/client/assets/{plugin-empty-state-BL9scDTN.js → plugin-empty-state-Cr3OcLQb.js} +1 -1
  123. package/dist/client/assets/{plugin-header-C1mnXf_l.js → plugin-header-BAd4TVRB.js} +1 -1
  124. package/dist/client/assets/{plugin-header-UsujlRy8.js → plugin-header-DEQ_2BT-.js} +1 -1
  125. package/dist/client/assets/popover-mJHcGIrQ.js +1 -0
  126. package/dist/client/assets/{project-layout-ChFI6quF.js → project-layout-CXqCD1ie.js} +1 -1
  127. package/dist/client/assets/{projects-list-tpjdpWOF.js → projects-list-DUfj_GU1.js} +1 -1
  128. package/dist/client/assets/{ranking-layout-CrYiPhgR.js → ranking-layout-CWWU1E-T.js} +1 -1
  129. package/dist/client/assets/{readme-viewer-B2f4puJD.js → readme-viewer-C3CH5PkA.js} +1 -1
  130. package/dist/client/assets/{registry-layout-C0R7NUsH.js → registry-layout-aJ6v5_rh.js} +1 -1
  131. package/dist/client/assets/{registry-utils-D-aIeu5g.js → registry-utils-DChzaAtg.js} +1 -1
  132. package/dist/client/assets/{reports-layout-DXj87viG.js → reports-layout-Yf5wR5Pt.js} +1 -1
  133. package/dist/client/assets/{reset-password-BlWYJ3vA.js → reset-password-C92BZ_ME.js} +1 -1
  134. package/dist/client/assets/{resizable-BejyKOGo.js → resizable-B-Qs4MnW.js} +1 -1
  135. package/dist/client/assets/{save-actions-DT09KS_7.js → save-actions-DA3NJYvU.js} +1 -1
  136. package/dist/client/assets/{scroll-area-pgllOsbM.js → scroll-area-BPz7jSkv.js} +4 -4
  137. package/dist/client/assets/{select-Dz5z65Jw.js → select-Dq9gmG1z.js} +1 -1
  138. package/dist/client/assets/{shell-layout-BeWeSxb6.js → shell-layout-BYhmiLBm.js} +2 -2
  139. package/dist/client/assets/{skeleton-tlo_AcXS.js → skeleton-DLBNN6aB.js} +1 -1
  140. package/dist/client/assets/{spinner-DL1kXbn_.js → spinner-DXzEFrFF.js} +1 -1
  141. package/dist/client/assets/{store-invite-KhqhYrJe.js → store-invite-D0uFFASc.js} +1 -1
  142. package/dist/client/assets/{switch-D5s4GvE7.js → switch-B4rwROhR.js} +1 -1
  143. package/dist/client/assets/{table-JlnXtC1o.js → table-kdwlUG2L.js} +1 -1
  144. package/dist/client/assets/{tabs-BMRmFudX.js → tabs-BFDcCzl1.js} +1 -1
  145. package/dist/client/assets/{tasks-BdJ0UZyL.js → tasks-BIj2GMDH.js} +1 -1
  146. package/dist/client/assets/{textarea-_RA9G-2H.js → textarea-DC-WMIl6.js} +1 -1
  147. package/dist/client/assets/{time-range-picker-Z6Jl1sx4.js → time-range-picker-t4Dh_ak4.js} +1 -1
  148. package/dist/client/assets/{toggle-group-X_GdAmsv.js → toggle-group-VR-1H49C.js} +1 -1
  149. package/dist/client/assets/{tools-list-RgSwLK9F.js → tools-list-BMIuQ3o9.js} +1 -1
  150. package/dist/client/assets/{tooltip--eNCFRSk.js → tooltip-B737AXap.js} +1 -1
  151. package/dist/client/assets/{topbar-portal-D3cWepwE.js → topbar-portal-BQe1VIDk.js} +1 -1
  152. package/dist/client/assets/{types-Dz8v8wA9.js → types-WdszXmGC.js} +1 -1
  153. package/dist/client/assets/{use-binding-DWmbEHQx.js → use-binding-DM-esmtd.js} +1 -1
  154. package/dist/client/assets/{use-connection-CKm1ISVV.js → use-connection-aD8fkp_8.js} +1 -1
  155. package/dist/client/assets/{use-copy-DvH_rwny.js → use-copy-DlnJ3efF.js} +1 -1
  156. package/dist/client/assets/{use-create-virtual-mcp-Cl3FIypU.js → use-create-virtual-mcp-CyNVcUwg.js} +1 -1
  157. package/dist/client/assets/{use-deco-chat-open-BifT_Q7T.js → use-deco-chat-open-Di4IIHjn.js} +1 -1
  158. package/dist/client/assets/{use-install-from-registry-DxwNEXQz.js → use-install-from-registry-DdkeT6p2.js} +1 -1
  159. package/dist/client/assets/{use-list-state-5G9UAtpG.js → use-list-state-HK1l7uw0.js} +1 -1
  160. package/dist/client/assets/{use-llm-CZ5h-I5e.js → use-llm-D7mfyv_H.js} +1 -1
  161. package/dist/client/assets/{use-mcp-prompts-C-kJi0NP.js → use-mcp-prompts-D4Kkewqh.js} +1 -1
  162. package/dist/client/assets/{use-mcp-tools-Du7LOEev.js → use-mcp-tools-C7emNghr.js} +1 -1
  163. package/dist/client/assets/{use-members-JNLhgbe4.js → use-members-D87KrEWH.js} +1 -1
  164. package/dist/client/assets/{use-mobile-BVeJwtRE.js → use-mobile-Cm0g_xnU.js} +1 -1
  165. package/dist/client/assets/{use-project-BznKdNgg.js → use-project-C09s5HF9.js} +1 -1
  166. package/dist/client/assets/{use-settings-modal-DikSOkid.js → use-settings-modal-CTu56ywY.js} +1 -1
  167. package/dist/client/assets/{use-view-mode-BUENrs7s.js → use-view-mode-JvLsfDEL.js} +1 -1
  168. package/dist/client/assets/{use-virtual-mcp-DQ9c7C3W.js → use-virtual-mcp-Bblywqb_.js} +1 -1
  169. package/dist/client/assets/useInfiniteQuery-C7pHrKFI.js +1 -0
  170. package/dist/client/assets/{useMutation-UrnS9vWD.js → useMutation-N686vlmR.js} +1 -1
  171. package/dist/client/assets/useQuery-Jk2FsFxb.js +1 -0
  172. package/dist/client/assets/useSuspenseInfiniteQuery-CqwwV5Gr.js +1 -0
  173. package/dist/client/assets/{workflow-Bed30GUE.js → workflow-DzguMIiA.js} +1 -1
  174. package/dist/client/index.html +2 -2
  175. package/package.json +1 -1
  176. package/dist/client/assets/constants-DllrcpiP.js +0 -1
  177. package/dist/client/assets/index-BoZYckTW.js +0 -1
  178. package/dist/client/assets/index-CJXotA7N.css +0 -1
  179. package/dist/client/assets/popover-DVJVvDk4.js +0 -1
  180. package/dist/client/assets/useInfiniteQuery-XciTiRf0.js +0 -1
  181. package/dist/client/assets/useQuery-J1yQO0sX.js +0 -1
  182. package/dist/client/assets/useSuspenseInfiniteQuery-BcyK5gD4.js +0 -1
@@ -1 +1 @@
1
- import{c as m,r}from"./index-DL3qqjep.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-COF-ZUER.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{K as m,c as C,n as T}from"./index-DL3qqjep.js";import{u as y}from"./useQuery-J1yQO0sX.js";import{u as f,a}from"./constants-CYyFC-Sp.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{S as a,_ as u};
1
+ import{K as m,c as C,n as T}from"./index-COF-ZUER.js";import{u as y}from"./useQuery-Jk2FsFxb.js";import{u as f,a}from"./constants-CK6_mNWE.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{S as a,_ as u};
@@ -1 +1 @@
1
- import{r as p,c as C,b as j,a as v,e as k}from"./index-DL3qqjep.js";const E=({size:e=24,color:t="currentColor",...r})=>p.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},p.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));E.displayName="Building02";const $=({size:e=24,color:t="currentColor",...r})=>p.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},p.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));$.displayName="Coins01";function w(e,t){return`project:${e}:${t}`}const x=new Set(["account.profile","account.preferences","account.experimental","org.general","org.plugins","org.billing"]);function M(e){if(!e)return!1;if(x.has(e))return!0;const t=e.split(":");return t.length===3&&t[0]==="project"&&!!t[1]&&(t[2]==="general"||t[2]==="plugins"||t[2]==="danger")}function _(e){if(!e.startsWith("project:"))return null;const[,t,r]=e.split(":");return!t||!r?null:{slug:t,sub:r}}function y(){const e=C.c(17),t=j();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const o=v(r);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[1]=i):i=e[1];const{org:n,project:s}=k(i);let c;e[2]!==o.settings?(c=M(o.settings)?o.settings:void 0,e[2]=o.settings,e[3]=c):c=e[3];const m=c,g=!!m;let a;e[4]!==t||e[5]!==n||e[6]!==s?(a=S=>{!n||!s||t({to:"/$org/$project",params:{org:n,project:s},search:{settings:S}})},e[4]=t,e[5]=n,e[6]=s,e[7]=a):a=e[7];const f=a;let l;e[8]!==t||e[9]!==n||e[10]!==s?(l=()=>{!n||!s||t({to:"/$org/$project",params:{org:n,project:s},search:{}})},e[8]=t,e[9]=n,e[10]=s,e[11]=l):l=e[11];const h=l,d=m??"account.preferences";let u;return e[12]!==h||e[13]!==g||e[14]!==f||e[15]!==d?(u={isOpen:g,activeSection:d,open:f,close:h},e[12]=h,e[13]=g,e[14]=f,e[15]=d,e[16]=u):u=e[16],u}export{w as a,$ as i,_ as p,E as t,y as u};
1
+ import{r as p,c as C,b as j,a as v,e as k}from"./index-COF-ZUER.js";const E=({size:e=24,color:t="currentColor",...r})=>p.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},p.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));E.displayName="Building02";const $=({size:e=24,color:t="currentColor",...r})=>p.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},p.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));$.displayName="Coins01";function w(e,t){return`project:${e}:${t}`}const x=new Set(["account.profile","account.preferences","account.experimental","org.general","org.plugins","org.billing"]);function M(e){if(!e)return!1;if(x.has(e))return!0;const t=e.split(":");return t.length===3&&t[0]==="project"&&!!t[1]&&(t[2]==="general"||t[2]==="plugins"||t[2]==="danger")}function _(e){if(!e.startsWith("project:"))return null;const[,t,r]=e.split(":");return!t||!r?null:{slug:t,sub:r}}function y(){const e=C.c(17),t=j();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const o=v(r);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},e[1]=i):i=e[1];const{org:n,project:s}=k(i);let c;e[2]!==o.settings?(c=M(o.settings)?o.settings:void 0,e[2]=o.settings,e[3]=c):c=e[3];const m=c,g=!!m;let a;e[4]!==t||e[5]!==n||e[6]!==s?(a=S=>{!n||!s||t({to:"/$org/$project",params:{org:n,project:s},search:{settings:S}})},e[4]=t,e[5]=n,e[6]=s,e[7]=a):a=e[7];const f=a;let l;e[8]!==t||e[9]!==n||e[10]!==s?(l=()=>{!n||!s||t({to:"/$org/$project",params:{org:n,project:s},search:{}})},e[8]=t,e[9]=n,e[10]=s,e[11]=l):l=e[11];const h=l,d=m??"account.preferences";let u;return e[12]!==h||e[13]!==g||e[14]!==f||e[15]!==d?(u={isOpen:g,activeSection:d,open:f,close:h},e[12]=h,e[13]=g,e[14]=f,e[15]=d,e[16]=u):u=e[16],u}export{w as a,$ as i,_ as p,E as t,y as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-DL3qqjep.js";import{u as w}from"./use-mobile-BVeJwtRE.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-COF-ZUER.js";import{u as w}from"./use-mobile-Cm0g_xnU.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-DL3qqjep.js";import{e as a,u as C,d as I}from"./use-connection-CKm1ISVV.js";import{a as l,u}from"./constants-CYyFC-Sp.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-COF-ZUER.js";import{e as a,u as C,d as I}from"./use-connection-aD8fkp_8.js";import{a as l,u}from"./constants-CK6_mNWE.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-DMR1gRjq.js";import{Y as i}from"./index-COF-ZUER.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{a$ as l,b0 as b,b1 as a,b2 as p,b3 as h,m as d,r as o,b4 as m,b5 as f}from"./index-DL3qqjep.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),b(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&a(s.mutationKey)!==a(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??p();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=d(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(n=>e.subscribe(h.batchCalls(n)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((n,c)=>{e.mutate(n,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{a_ as l,a$ as b,b0 as a,b1 as p,b2 as h,m as d,r as o,b3 as m,b4 as f}from"./index-COF-ZUER.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),b(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&a(s.mutationKey)!==a(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??p();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=d(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(n=>e.subscribe(h.batchCalls(n)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((n,c)=>{e.mutate(n,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{Y as u,ap as s}from"./index-COF-ZUER.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./infiniteQueryObserver-DMR1gRjq.js";import{Y as u,Z as n}from"./index-COF-ZUER.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{r as N,u as w,d as q,b as G,j as t,B as I,O as B,c as _,E as J,_ as Q,aJ as Z,m as V,K as W,t as A}from"./index-DL3qqjep.js";import{a as Y,u as X,e as ee}from"./constants-CYyFC-Sp.js";import{C as te}from"./collection-tab-BbAfStP-.js";import{g as ne,h as se}from"./use-connection-CKm1ISVV.js";import{E as R}from"./collection-search-qyutGH6l.js";import{P as x}from"./index-DCxyPrpA.js";import{B as F,a as M,b as z,c as T}from"./breadcrumb-C0g6Pt2_.js";import{a as ie,b as oe}from"./use-binding-DWmbEHQx.js";import{i as le}from"./Loading01-fS4L07xH.js";import{s as re}from"./RefreshCcw01-CL_G5oMs.js";import{u as ae}from"./useMutation-UrnS9vWD.js";import{e as ce}from"./Dataflow03-CmiJ_a2x.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-C9APekgb.js";import"./dropdown-menu-dMkqHp7f.js";import"./Check-B_1XgGXq.js";import"./ChevronRight-Dv5Kd3sh.js";import"./ArrowDown-Cf0RNEZQ.js";import"./ArrowUp-CKXiX_Ao.js";import"./Grid01-9bvbF-2s.js";import"./List-klt4Ktng.js";import"./tooltip--eNCFRSk.js";import"./index-Bf_CY3qu.js";import"./table-JlnXtC1o.js";import"./card-BdxqmIDs.js";import"./integration-icon-CDKf5lkP.js";import"./Container-JCSa3G3B.js";import"./Copy01-B1lCFyqr.js";import"./DotsVertical-Dv4tBZU-.js";import"./Edit01-DDXcCS4H.js";import"./Eye-BZHp_wD7.js";import"./Trash01-BGRjTxek.js";import"./empty-state-B6tWKHPM.js";import"./Inbox01-jnM9oRqF.js";import"./use-list-state-5G9UAtpG.js";import"./avatar-PHdbjFDw.js";import"./useQuery-J1yQO0sX.js";import"./use-view-mode-BUENrs7s.js";import"./use-mobile-BVeJwtRE.js";import"./constants-DllrcpiP.js";import"./alert-dialog-Dcn63g6g.js";import"./Plus-J6pIe2uV.js";import"./layout-BM96F8A6.js";import"./SearchMd-CifRamFZ.js";import"./input-pcdA_rWs.js";import"./X-BY3es49B.js";import"./binder-D_h2ibfT.js";const U=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));U.displayName="Settings02";function de({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ne(),{org:{slug:s}}=w(),{data:r}=q.useSession(),d=G(),[m,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{d({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:a?t.jsx("img",{src:a,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:m||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function me(n){const e=_.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),d=se();let m;e[0]!==d||e[1]!==i?(m={connections:d,binding:i},e[0]=d,e[1]=i,e[2]=m):m=e[2];const l=ie(m)[0],u=oe(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const S=f,[D,H]=N.useState(null),L=l&&S&&(l.id||D);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=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(Q,{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 ",o.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.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:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(Z,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(U,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,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:[k,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]!==S||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==L||e[24]!==s?(y=L?t.jsx(te,{connectionId:l.id,org:r.slug,activeCollection:S}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(de,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=S,e[20]=l,e[21]=c,e[22]=r,e[23]=L,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(J,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=_.c(12),{org:e,project:i}=w(),a=V();let o;n[0]!==e.id?(o={connectionId:Y,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=X(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let d;return n[9]!==s||n[10]!==r?(d={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=d):d=n[11],ae(d)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=_.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const d=r,m=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==d||e[5]!==p?(l=t.jsx(I,{onClick:d,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==m||e[9]!==l||e[10]!==a?(u=t.jsx(R,{image:m,title:a,description:o,actions:l}),e[7]=o,e[8]=m,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function at(){const n=_.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,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(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(me,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:ee()}),n[2]=o):o=n[2],o}export{at as default};
1
+ import{r as N,u as w,d as q,b as G,j as t,B as S,O as B,c as _,E as Q,_ as J,aI as Z,m as V,K as W,t as A}from"./index-COF-ZUER.js";import{a as Y,u as X,e as ee}from"./constants-CK6_mNWE.js";import{C as te}from"./collection-tab-B07wbIZz.js";import{g as ne,h as se}from"./use-connection-aD8fkp_8.js";import{E as R}from"./collection-search-C_OMYxZl.js";import{P as x}from"./index-C2G8QaMi.js";import{B as F,a as M,b as z,c as T}from"./breadcrumb-KjJWdRpb.js";import{a as ie,b as oe}from"./use-binding-DM-esmtd.js";import{i as le}from"./Loading01-CsfvkbwN.js";import{s as re}from"./RefreshCcw01-D1gKEPJg.js";import{u as ae}from"./useMutation-N686vlmR.js";import{e as ce}from"./Dataflow03-BitSjF7Q.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-l5klS4Y7.js";import"./dropdown-menu-Rs1iwpA7.js";import"./Check-BLsa6Dp0.js";import"./ChevronRight-D35EN1KP.js";import"./ArrowDown-BzJ1vFPJ.js";import"./ArrowUp-u6rq77eg.js";import"./Grid01-rxOSnLNN.js";import"./List-IhyiQnaM.js";import"./tooltip-B737AXap.js";import"./index-jc9pWxLI.js";import"./table-kdwlUG2L.js";import"./card-BkNoFHpx.js";import"./integration-icon-C7zTMltL.js";import"./Container-Dp-HDyo2.js";import"./Copy01-CnJbZgtN.js";import"./DotsVertical-B16xdrDF.js";import"./Edit01-B658of-t.js";import"./Eye-CYnIw-SN.js";import"./Trash01-BzIbN_if.js";import"./empty-state-DS4eEQ1G.js";import"./Inbox01-CAyLyUGs.js";import"./use-list-state-HK1l7uw0.js";import"./avatar-CH22spOE.js";import"./useQuery-Jk2FsFxb.js";import"./use-view-mode-JvLsfDEL.js";import"./use-mobile-Cm0g_xnU.js";import"./constants-C66xuD6u.js";import"./alert-dialog-DUAKkVAq.js";import"./Plus-Bu2lcrFj.js";import"./layout-B0qVoorz.js";import"./SearchMd-BYNjNi6G.js";import"./input-KmmBtQqC.js";import"./X-DHjK9PDN.js";import"./binder-rpVFRee0.js";const U=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));U.displayName="Settings02";function de({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ne(),{org:{slug:s}}=w(),{data:r}=q.useSession(),d=G(),[m,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{d({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:a?t.jsx("img",{src:a,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(S,{variant:"outline",onClick:l,disabled:m||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(S,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function me(n){const e=_.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),d=se();let m;e[0]!==d||e[1]!==i?(m={connections:d,binding:i},e[0]=d,e[1]=i,e[2]=m):m=e[2];const l=ie(m)[0],u=oe(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const I=f,[D,H]=N.useState(null),L=l&&I&&(l.id||D);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=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(J,{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 ",o.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.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(S,{variant:"outline",onClick:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(S,{variant:"outline",asChild:!0,children:t.jsxs(Z,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(U,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,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:[k,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]!==I||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==L||e[24]!==s?(y=L?t.jsx(te,{connectionId:l.id,org:r.slug,activeCollection:I}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(de,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=I,e[20]=l,e[21]=c,e[22]=r,e[23]=L,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(Q,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=_.c(12),{org:e,project:i}=w(),a=V();let o;n[0]!==e.id?(o={connectionId:Y,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=X(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let d;return n[9]!==s||n[10]!==r?(d={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=d):d=n[11],ae(d)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=_.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const d=r,m=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==d||e[5]!==p?(l=t.jsx(S,{onClick:d,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==m||e[9]!==l||e[10]!==a?(u=t.jsx(R,{image:m,title:a,description:o,actions:l}),e[7]=o,e[8]=m,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function at(){const n=_.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,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(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(me,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:ee()}),n[2]=o):o=n[2],o}export{at 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-DL3qqjep.js"></script>
7
- <link rel="stylesheet" crossorigin href="/assets/index-CJXotA7N.css">
6
+ <script type="module" crossorigin src="/assets/index-COF-ZUER.js"></script>
7
+ <link rel="stylesheet" crossorigin href="/assets/index-BcDQ75Aq.css">
8
8
  </head>
9
9
  <body>
10
10
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/mesh",
3
- "version": "2.128.3",
3
+ "version": "2.130.0",
4
4
  "description": "MCP Mesh - Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- import{a0 as a,a1 as t}from"./index-DL3qqjep.js";const e=a(t,{target:"draft-7"});export{e as B};
@@ -1 +0,0 @@
1
- import{r as n,aC as q,aD as R,a5 as Ee,a9 as ke,aa as Se,a6 as xe,aE as j}from"./index-DL3qqjep.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...O}=t,H=q(),ne=q(),N=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ne(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};