decocms 3.86.0 → 3.87.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 (238) hide show
  1. package/dist/client/assets/{AlertCircle-qY5ngKLr.js → AlertCircle-DCaILIxy.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-C7uYzZ0Z.js → ArrowUpRight-X5amVRyC.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-CNYYpNQm.js → CheckCircle-CbsNhQn0.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-BVJUps1_.js → ChevronDown-CVjUKz-z.js} +1 -1
  5. package/dist/client/assets/{ChevronLeft-CCp89cqe.js → ChevronLeft-D1-Kt_O_.js} +1 -1
  6. package/dist/client/assets/{ChevronRight-MnjJHQHy.js → ChevronRight-B5vIIazE.js} +1 -1
  7. package/dist/client/assets/{ChevronUp-CKICjFfX.js → ChevronUp-BVstlWuJ.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-Bl5GcKp2.js → DotsVertical-jXbP9E3i.js} +1 -1
  9. package/dist/client/assets/{Eye-C6daRddp.js → Eye-CZMmu7ZU.js} +1 -1
  10. package/dist/client/assets/{FilterLines-B_0u5HAa.js → FilterLines-PGGfujeb.js} +1 -1
  11. package/dist/client/assets/Form-otBZ0aYe.js +26 -0
  12. package/dist/client/assets/{Globe01-CgHdNpOL.js → Globe01-Dkk22t5V.js} +1 -1
  13. package/dist/client/assets/{Globe04-DEangwXD.js → Globe04-DqCAznfy.js} +1 -1
  14. package/dist/client/assets/{HardDrive-V1dbAXdv.js → HardDrive-Dm-8T9iU.js} +1 -1
  15. package/dist/client/assets/{Key01-B0h1bFlR.js → Key01-BNThvF9O.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-BsVzrTOG.js → LayoutLeft-IEoSRkSV.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-B9RsD2Us.js → LinkExternal01-AFpRcUMN.js} +1 -1
  18. package/dist/client/assets/{Monitor01-DAM-u2R2.js → Monitor01-ge-8I-dx.js} +1 -1
  19. package/dist/client/assets/{Palette-DT8p7ZEl.js → Palette-DOfcM3Kq.js} +1 -1
  20. package/dist/client/assets/{Play-Blum-MoR.js → Play-BpkgKRX8.js} +1 -1
  21. package/dist/client/assets/{Plus-DfIcHYEj.js → Plus-BAnxALLT.js} +1 -1
  22. package/dist/client/assets/{SearchMd-B6GaXN7Q.js → SearchMd-D72ymOya.js} +1 -1
  23. package/dist/client/assets/{Settings02-Dd9sO-oW.js → Settings02-BYzbH49L.js} +1 -1
  24. package/dist/client/assets/{Shield01-DLANpVD0.js → Shield01-DzzrgcSm.js} +1 -1
  25. package/dist/client/assets/{Star01-Be_MjtDZ.js → Star01-CfUlqnJc.js} +1 -1
  26. package/dist/client/assets/{Stars01-D3ha2IeY.js → Stars01-DOOJ-cpD.js} +1 -1
  27. package/dist/client/assets/{Stars02-DHcW8N80.js → Stars02-BcDfq8PM.js} +1 -1
  28. package/dist/client/assets/{Sun-DO_Gt4P2.js → Sun-r3rOsIIR.js} +1 -1
  29. package/dist/client/assets/{SwitchHorizontal01-CrHLIeRP.js → SwitchHorizontal01-D3QmyK-N.js} +1 -1
  30. package/dist/client/assets/{Tool01-hxrY31T7.js → Tool01-Bahn8UbK.js} +1 -1
  31. package/dist/client/assets/{Trash01-DGJ-LjB-.js → Trash01-BNbAqaqW.js} +1 -1
  32. package/dist/client/assets/{Upload01-CzOJ3UuD.js → Upload01-4k3hmRFX.js} +1 -1
  33. package/dist/client/assets/{User01-DR_UC5XH.js → User01-_ttgUTw7.js} +1 -1
  34. package/dist/client/assets/{Users01-cxH39exM.js → Users01-BwX0Mh9G.js} +1 -1
  35. package/dist/client/assets/{Users03-BZYHqQGQ.js → Users03-Bp6iF_8k.js} +1 -1
  36. package/dist/client/assets/{X-CXRx6PGX.js → X-D-dT8MOl.js} +1 -1
  37. package/dist/client/assets/{XCircle-BLfqcVud.js → XCircle-BGPqJ1Ro.js} +1 -1
  38. package/dist/client/assets/{XClose-4ak3u3qT.js → XClose-CNxbnD3N.js} +1 -1
  39. package/dist/client/assets/{Zap-DVtX-UPi.js → Zap-CxIlaYID.js} +1 -1
  40. package/dist/client/assets/{ZapSquare-iu6ldaYZ.js → ZapSquare-BDFHxBEC.js} +1 -1
  41. package/dist/client/assets/{ZoomOut-6aWLXLSs.js → ZoomOut-Bw1ZSU5L.js} +1 -1
  42. package/dist/client/assets/{access-gate-B_rz72ZQ.js → access-gate-CCJp4m8K.js} +1 -1
  43. package/dist/client/assets/{add-section-modal-ExcCDC5z.js → add-section-modal-BgrC9Ld1.js} +1 -1
  44. package/dist/client/assets/{agent-icon-CKGTD-zQ.js → agent-icon-DLeN3d18.js} +1 -1
  45. package/dist/client/assets/{agents-list-DKD78ho4.js → agents-list-Q3tDYSwW.js} +1 -1
  46. package/dist/client/assets/ai-providers-BqFV0dkm.js +1 -0
  47. package/dist/client/assets/{alert-DIaLGkVq.js → alert-Dry1jh9V.js} +1 -1
  48. package/dist/client/assets/{alert-dialog-D5KOx-3H.js → alert-dialog-BRxMo-sj.js} +1 -1
  49. package/dist/client/assets/app-editor-CmSP6n2r.js +1 -0
  50. package/dist/client/assets/{auth-B4fF5n_6.js → auth-BmpBXuc6.js} +1 -1
  51. package/dist/client/assets/{auth-catchall-DS1LbQ8-.js → auth-catchall-C2f_hrTA.js} +1 -1
  52. package/dist/client/assets/{auth-entry-BVyaHjaQ.js → auth-entry-Dc0ISy_Q.js} +1 -1
  53. package/dist/client/assets/auth-split-layout-vIU-YxKv.js +1 -0
  54. package/dist/client/assets/{authenticate-and-persist-oauth-D2tM_mGL.js → authenticate-and-persist-oauth-Ch8j6yff.js} +1 -1
  55. package/dist/client/assets/{automation-list-row-BKx-xx1i.js → automation-list-row-DuiEBMt2.js} +1 -1
  56. package/dist/client/assets/{automation-runs-_FCeac3K.js → automation-runs-Cdam9_64.js} +1 -1
  57. package/dist/client/assets/{automations-BQ894D8d.js → automations-CdkAIVKM.js} +1 -1
  58. package/dist/client/assets/{avatar-3b85MUU5.js → avatar-ByeXDTC_.js} +1 -1
  59. package/dist/client/assets/{badge-CBy4Rm2Q.js → badge-DUd6QA6I.js} +1 -1
  60. package/dist/client/assets/{block-document-BFMWdkuR.js → block-document-CC_dKbbH.js} +1 -1
  61. package/dist/client/assets/{brand-context-DQ3HUqVS.js → brand-context-EyJOR9fi.js} +1 -1
  62. package/dist/client/assets/buckets-Du6WAmVO.js +1 -0
  63. package/dist/client/assets/{capability-load-error-DmenvLwh.js → capability-load-error-hf3qlFQ9.js} +1 -1
  64. package/dist/client/assets/{card-D0ElZuSJ.js → card-BL8IT_Xq.js} +1 -1
  65. package/dist/client/assets/category-editor-BkcL4gtt.js +1 -0
  66. package/dist/client/assets/{chat-context-SWJ_FDEf.js → chat-context-8aInoVVs.js} +1 -1
  67. package/dist/client/assets/{checkbox-UCOb4UyX.js → checkbox-BvC4eja3.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-DYcgRZGE.js → cli-auth-success-BzKwknZh.js} +1 -1
  69. package/dist/client/assets/collection-detail-DGACG0zf.js +1 -0
  70. package/dist/client/assets/{collection-display-button-DY7UIm0_.js → collection-display-button-CWZcD7VW.js} +1 -1
  71. package/dist/client/assets/{collection-search-B-ZTg2tB.js → collection-search-xJgITIyC.js} +1 -1
  72. package/dist/client/assets/{collection-tabs-7m5XLASC.js → collection-tabs-rwQ7O1FC.js} +1 -1
  73. package/dist/client/assets/{command-CKe7nBfr.js → command-DrqBy6cr.js} +1 -1
  74. package/dist/client/assets/commerce-onboarding-PAEJK5wr.js +1 -0
  75. package/dist/client/assets/{connect-desktop-dialog-JUjDMHMz.js → connect-desktop-dialog-CN-nGv3X.js} +1 -1
  76. package/dist/client/assets/{connection-card-By0LggNB.js → connection-card-_vJp-QnB.js} +1 -1
  77. package/dist/client/assets/connection-detail-ja-xrIwZ.js +1 -0
  78. package/dist/client/assets/{connection-form-helpers-DeSC5iva.js → connection-form-helpers-I0PYYuLM.js} +1 -1
  79. package/dist/client/assets/connections-B1jNaws1.js +1 -0
  80. package/dist/client/assets/{context-menu-BXRYPu2v.js → context-menu-HarJm6y_.js} +1 -1
  81. package/dist/client/assets/{decopilot-DBiOjpCq.js → decopilot-DlerL3TD.js} +1 -1
  82. package/dist/client/assets/{decopilot-sse-pool-Cd7s5cwH.js → decopilot-sse-pool-D0qyyVP7.js} +1 -1
  83. package/dist/client/assets/{dialog-CwfeALzq.js → dialog-BuyMoIGd.js} +1 -1
  84. package/dist/client/assets/{domain-settings-DYoOK4LM.js → domain-settings-DKI84wPN.js} +1 -1
  85. package/dist/client/assets/{drawer-_RQmWfAo.js → drawer-R83GIfSJ.js} +1 -1
  86. package/dist/client/assets/{dropdown-menu-CppAWsT_.js → dropdown-menu-6KXvVkGj.js} +1 -1
  87. package/dist/client/assets/{empty-state-CfAeMInj.js → empty-state-8wIqOHhT.js} +1 -1
  88. package/dist/client/assets/{extract-connection-data-qW230rJb.js → extract-connection-data-BlAuqFCc.js} +1 -1
  89. package/dist/client/assets/file-explorer-Xu0RpKKj.js +2 -0
  90. package/dist/client/assets/{file-type-icon-CdZyaTKH.js → file-type-icon-CvUBwDjL.js} +1 -1
  91. package/dist/client/assets/{files-BagYqqvX.js → files-aEPuOJ77.js} +1 -1
  92. package/dist/client/assets/{form-xYXw--Kt.js → form-DrdYYSH7.js} +1 -1
  93. package/dist/client/assets/general-ItE-Caya.js +1 -0
  94. package/dist/client/assets/{github-repo-picker-B1nNLNvt.js → github-repo-picker-B9itq1xr.js} +1 -1
  95. package/dist/client/assets/{hooks-CLt3SUb8.js → hooks-B2hm8dgB.js} +1 -1
  96. package/dist/client/assets/{import-from-deco-dialog-DhVDGeAO.js → import-from-deco-dialog-LpeKak-8.js} +1 -1
  97. package/dist/client/assets/{index-Benu0NlA.js → index-01iYleW9.js} +1 -1
  98. package/dist/client/assets/index-8j69uwRU.js +1 -0
  99. package/dist/client/assets/{index-DkOvgjMe.js → index-B0KuFfZg.js} +2 -2
  100. package/dist/client/assets/index-B6DoI6qf.css +1 -0
  101. package/dist/client/assets/{index-uKLTzwtC.js → index-BD-GJSKU.js} +1 -1
  102. package/dist/client/assets/index-BP-ioQEj.js +1 -0
  103. package/dist/client/assets/index-BdQq_4o_.js +1 -0
  104. package/dist/client/assets/{index-CLz5uOtD.js → index-BneU-diW.js} +1 -1
  105. package/dist/client/assets/index-BpzEWYcj.js +1 -0
  106. package/dist/client/assets/{index-D7pI5IpD.js → index-C4Pfm5Oe.js} +1 -1
  107. package/dist/client/assets/{index-CCbaPbk-.js → index-C5jRpoWd.js} +1 -1
  108. package/dist/client/assets/index-CDSjl7Ui.js +1 -0
  109. package/dist/client/assets/{index-B7l76Ktp.js → index-CZObCZGR.js} +1 -1
  110. package/dist/client/assets/{index-Yqaph2kh.js → index-CdH9ADyr.js} +10 -10
  111. package/dist/client/assets/{index-DILk6pqr.js → index-DP_mpTaG.js} +4 -4
  112. package/dist/client/assets/{index-U2AV4b0H.js → index-oY9SWynr.js} +1 -1
  113. package/dist/client/assets/{index-redirect-Bmnv-CEe.js → index-redirect-CLJSuvD8.js} +1 -1
  114. package/dist/client/assets/{input-DntqEqec.js → input-BIu7fT2w.js} +1 -1
  115. package/dist/client/assets/{integration-icon-CxxjWIPp.js → integration-icon-DM5W4vtE.js} +1 -1
  116. package/dist/client/assets/{label-NJtv9Xrj.js → label-DPhUzMw-.js} +1 -1
  117. package/dist/client/assets/{login-_rldC1vQ.js → login-c1Klklse.js} +1 -1
  118. package/dist/client/assets/{mcp-oauth-BTUV7ht5.js → mcp-oauth-CzalxeD0.js} +1 -1
  119. package/dist/client/assets/{members-DNPmSt7U.js → members-B3SDcfGH.js} +2 -2
  120. package/dist/client/assets/{monaco-editor-BS1tOSHv.js → monaco-editor-OzwRuboT.js} +1 -1
  121. package/dist/client/assets/{monitoring-stats-row-Bly7CEZA.js → monitoring-stats-row-CZFGN_Ar.js} +1 -1
  122. package/dist/client/assets/{oauth-callback-ai-provider-DX668UtX.js → oauth-callback-ai-provider-Zibshrw4.js} +1 -1
  123. package/dist/client/assets/{oauth-callback-Brn-4X2e.js → oauth-callback-rILtKGBx.js} +1 -1
  124. package/dist/client/assets/{onboarding-h3gvqE97.js → onboarding-Ba1_LMfh.js} +1 -1
  125. package/dist/client/assets/{org-install-devOK14U.js → org-install-B3ClN2KG.js} +1 -1
  126. package/dist/client/assets/{org-layout-C6RX2zdp.js → org-layout-BIcSmhzR.js} +1 -1
  127. package/dist/client/assets/{organization-choice-DFUlgHk4.js → organization-choice-Djr2j4p7.js} +1 -1
  128. package/dist/client/assets/{page-seo-form-DIlFQufm.js → page-seo-form-Cygtl0_G.js} +1 -1
  129. package/dist/client/assets/page-seo-sheet-Ca_ed5x4.js +1 -0
  130. package/dist/client/assets/{popover-DmLzbFpk.js → popover-CoSr2FBy.js} +1 -1
  131. package/dist/client/assets/post-editor-DlBTWEb0.js +1 -0
  132. package/dist/client/assets/{preview-dialog-XKGBZobL.js → preview-dialog-Ew97vZX-.js} +1 -1
  133. package/dist/client/assets/{primitives-pW0ukQfP.js → primitives-Y5zOyEze.js} +1 -1
  134. package/dist/client/assets/profile-Bv93_4sd.js +1 -0
  135. package/dist/client/assets/project-app-view-B-FRjb71.js +1 -0
  136. package/dist/client/assets/record-editor-CnrRrpeQ.js +1 -0
  137. package/dist/client/assets/registry-DXqXIJ3q.js +2 -0
  138. package/dist/client/assets/{registry-layout-CQVApMRy.js → registry-layout-DJX2uyJL.js} +2 -2
  139. package/dist/client/assets/{require-capability-BlqPTqxe.js → require-capability-CaEtxlmL.js} +1 -1
  140. package/dist/client/assets/{required-auth-layout-DdFOKjMd.js → required-auth-layout-DaTmuUAT.js} +1 -1
  141. package/dist/client/assets/{reset-password-C7ldICgc.js → reset-password-DOCud_M1.js} +1 -1
  142. package/dist/client/assets/{roles-DqqpBRsM.js → roles-CxxJGu2W.js} +1 -1
  143. package/dist/client/assets/{save-status-DIZcxleS.js → save-status-CzIIhKYY.js} +1 -1
  144. package/dist/client/assets/{scroll-area-CN3_YfBC.js → scroll-area-DqRON9QZ.js} +1 -1
  145. package/dist/client/assets/{search-input-SieA9wsp.js → search-input-CBG595Ow.js} +1 -1
  146. package/dist/client/assets/secrets-CI45M6t4.js +1 -0
  147. package/dist/client/assets/{sections-editor-B8F8gKNp.js → sections-editor-DGK7CeFk.js} +2 -2
  148. package/dist/client/assets/select-Cr3vICrM.js +1 -0
  149. package/dist/client/assets/{select-model-DmLcnpxY.js → select-model-Bg44O4qj.js} +1 -1
  150. package/dist/client/assets/seo-editor-BnPhYxBs.js +1 -0
  151. package/dist/client/assets/{settings-layout-DStO9uhp.js → settings-layout-B3cOf57A.js} +1 -1
  152. package/dist/client/assets/{settings-section-BXkrjyua.js → settings-section-C9C9TZId.js} +1 -1
  153. package/dist/client/assets/{sheet-CgvO6KT7.js → sheet-CTaEFOuN.js} +1 -1
  154. package/dist/client/assets/{shell-controls-BlCSLJCZ.js → shell-controls-DTok3_fO.js} +1 -1
  155. package/dist/client/assets/{shell-layout-DAyf8ZZZ.js → shell-layout-BAiMOktM.js} +1 -1
  156. package/dist/client/assets/{shell-route-loading-44H3A_LH.js → shell-route-loading-s4EoOI9P.js} +1 -1
  157. package/dist/client/assets/{sidebar-D5TdEONj.js → sidebar-BSjkOAEq.js} +1 -1
  158. package/dist/client/assets/{skeleton-DUdp3Kvb.js → skeleton-DBbnbGFm.js} +1 -1
  159. package/dist/client/assets/{sortable.esm-DdDX2lbe.js → sortable.esm-DW_CXYvf.js} +1 -1
  160. package/dist/client/assets/sso-B0FMpGZK.js +1 -0
  161. package/dist/client/assets/{store-CrUgJduQ.js → store-DmCUraJs.js} +1 -1
  162. package/dist/client/assets/store-registry-DWQAV-zh.js +2 -0
  163. package/dist/client/assets/{studio-tools-DWzikkvB.js → studio-tools-D3_SJ0_N.js} +1 -1
  164. package/dist/client/assets/{switch-ZSF60LRT.js → switch-BSnmwd67.js} +1 -1
  165. package/dist/client/assets/{table-CAdy-hg6.js → table-B4QqlN52.js} +1 -1
  166. package/dist/client/assets/{tabs-CVnN0f33.js → tabs-B7KtNlAY.js} +1 -1
  167. package/dist/client/assets/{task-status-CtOjrZ5U.js → task-status-CN8kElP5.js} +1 -1
  168. package/dist/client/assets/{textarea-Fs50NfWG.js → textarea-B5r3kbSQ.js} +1 -1
  169. package/dist/client/assets/{toggle-group-C7SpEcqz.js → toggle-group-BoZF2OOS.js} +1 -1
  170. package/dist/client/assets/{toolbar-Dp05iiiH.js → toolbar-D_dUXYk3.js} +1 -1
  171. package/dist/client/assets/tools-list-Bw8CpHV0.js +1 -0
  172. package/dist/client/assets/{tooltip-DNJ6cRlV.js → tooltip-CYe5fPCQ.js} +1 -1
  173. package/dist/client/assets/{types-CsHe6BgD.js → types-CJgIJauG.js} +1 -1
  174. package/dist/client/assets/{use-ai-providers-CVKwKs8r.js → use-ai-providers-BQTrck2T.js} +1 -1
  175. package/dist/client/assets/{use-automations-Ca6VluJ_.js → use-automations-aeYDYpbz.js} +1 -1
  176. package/dist/client/assets/{use-capability-OLvFRh1U.js → use-capability-DhoZz-If.js} +1 -1
  177. package/dist/client/assets/{use-clock-tick-CWHp6nCX.js → use-clock-tick-BlJ7-hRX.js} +1 -1
  178. package/dist/client/assets/{use-collections-D0HN84Lz.js → use-collections-CSCQtjHx.js} +1 -1
  179. package/dist/client/assets/{use-connection-Bj1m8ynL.js → use-connection-CCWvfaxs.js} +1 -1
  180. package/dist/client/assets/{use-copy-CuQAt0Vj.js → use-copy-DJR4tQ3-.js} +1 -1
  181. package/dist/client/assets/{use-create-virtual-mcp-Cxqyw0Tn.js → use-create-virtual-mcp-CCvXLRxb.js} +1 -1
  182. package/dist/client/assets/{use-debounced-autosave-OpSLLz7d.js → use-debounced-autosave-C4Qmf5qO.js} +1 -1
  183. package/dist/client/assets/{use-delete-connection-ARKHDNqJ.js → use-delete-connection-gqYfcWeD.js} +1 -1
  184. package/dist/client/assets/{use-file-configs-aDA6u1U_.js → use-file-configs-B7ZdH4sp.js} +1 -1
  185. package/dist/client/assets/{use-infinite-scroll-CCIuAqs7.js → use-infinite-scroll-CU-J9rqm.js} +1 -1
  186. package/dist/client/assets/{use-join-requests-CyAP3Yln.js → use-join-requests-DrugHR3B.js} +1 -1
  187. package/dist/client/assets/{use-mcp-client-BdmHrvF5.js → use-mcp-client-B_wvxVvi.js} +1 -1
  188. package/dist/client/assets/{use-mcp-prompts-BwQLmLZi.js → use-mcp-prompts-B5ITx1M8.js} +1 -1
  189. package/dist/client/assets/{use-mcp-tools-ChlFTYss.js → use-mcp-tools--Zcng6MU.js} +1 -1
  190. package/dist/client/assets/{use-members-9pMsaLP9.js → use-members-DRYUtb_4.js} +1 -1
  191. package/dist/client/assets/{use-navigate-to-agent-Qyyx-mm9.js → use-navigate-to-agent-VYoT0How.js} +1 -1
  192. package/dist/client/assets/{use-org-auth-client-CtaccGLo.js → use-org-auth-client-p32QdZVr.js} +1 -1
  193. package/dist/client/assets/{use-org-sso-DvlbibgX.js → use-org-sso-DuGGcbA7.js} +1 -1
  194. package/dist/client/assets/{use-organization-roles-CYiD53yX.js → use-organization-roles-DshdakDm.js} +1 -1
  195. package/dist/client/assets/{use-organization-settings-a8PuTrsa.js → use-organization-settings-DNzEj3SY.js} +1 -1
  196. package/dist/client/assets/{use-registry-connections-DZ1G13oh.js → use-registry-connections-t5X0dgE2.js} +1 -1
  197. package/dist/client/assets/{use-secrets-GRgGPWUb.js → use-secrets-CdtjD3HA.js} +1 -1
  198. package/dist/client/assets/{use-status-sounds-DMne2oqE.js → use-status-sounds-SmT5_iKp.js} +1 -1
  199. package/dist/client/assets/{use-view-mode-CslUtkLV.js → use-view-mode-BCaeLPRd.js} +1 -1
  200. package/dist/client/assets/{use-virtual-mcp-OPb4DVO0.js → use-virtual-mcp-DTNF-w70.js} +1 -1
  201. package/dist/client/assets/useInfiniteQuery-Bziqv5Nz.js +1 -0
  202. package/dist/client/assets/{useQueries-BD3bwl6B.js → useQueries-B88iFaFv.js} +1 -1
  203. package/dist/client/assets/useSuspenseInfiniteQuery-Dx7jl2bl.js +1 -0
  204. package/dist/client/assets/variant-calendar-zBAnpIIP.js +1 -0
  205. package/dist/client/assets/{view-mode-toggle-k-q_tsqg.js → view-mode-toggle-dKl9f2N6.js} +1 -1
  206. package/dist/client/index.html +2 -2
  207. package/dist/server/cli.js +253 -206
  208. package/package.json +1 -1
  209. package/dist/client/assets/ai-providers-shPNJ0G8.js +0 -1
  210. package/dist/client/assets/app-editor-CASRPS-o.js +0 -1
  211. package/dist/client/assets/auth-split-layout-BO9g4lYZ.js +0 -1
  212. package/dist/client/assets/buckets-BJOevXCK.js +0 -1
  213. package/dist/client/assets/category-editor-Ci2DnrkV.js +0 -1
  214. package/dist/client/assets/collection-detail-BLwVko_9.js +0 -1
  215. package/dist/client/assets/commerce-onboarding-DpB8M1dk.js +0 -1
  216. package/dist/client/assets/connection-detail-BEiO-h95.js +0 -1
  217. package/dist/client/assets/connections-DJCB8L8S.js +0 -1
  218. package/dist/client/assets/file-explorer-DZMbkqJ0.js +0 -2
  219. package/dist/client/assets/general-C27Cwywq.js +0 -1
  220. package/dist/client/assets/index-BSzVFCV6.js +0 -26
  221. package/dist/client/assets/index-C6ZVo7HH.js +0 -1
  222. package/dist/client/assets/index-Cey8outX.js +0 -1
  223. package/dist/client/assets/index-D9MBRSbh.js +0 -1
  224. package/dist/client/assets/index-fHHzFvHF.css +0 -1
  225. package/dist/client/assets/page-seo-sheet-BsYTh7m4.js +0 -1
  226. package/dist/client/assets/post-editor-msU8kMVE.js +0 -1
  227. package/dist/client/assets/profile-Cq_Bww2z.js +0 -1
  228. package/dist/client/assets/project-app-view-DjSLRXjX.js +0 -1
  229. package/dist/client/assets/record-editor-SpOTRD39.js +0 -1
  230. package/dist/client/assets/registry-BYRguUOn.js +0 -2
  231. package/dist/client/assets/secrets-B2XOt0uB.js +0 -1
  232. package/dist/client/assets/select-DeFnLWdd.js +0 -1
  233. package/dist/client/assets/seo-editor-nfDAcvV7.js +0 -1
  234. package/dist/client/assets/sso-DFI00-8p.js +0 -1
  235. package/dist/client/assets/store-registry-DOL4KgkC.js +0 -2
  236. package/dist/client/assets/useInfiniteQuery-D-pnegbi.js +0 -1
  237. package/dist/client/assets/useSuspenseInfiniteQuery-_rNdlYkE.js +0 -1
  238. package/dist/client/assets/variant-calendar-DAwCBXUq.js +0 -1
@@ -1 +0,0 @@
1
- import{r as E,c as oe,j as t,E as Ye,i as ce,w as be,b as _e,u as Ze,a as Ne,q as et,v as tt,L as nt,G as st,F as ot,B as U,s as te,m as it,l as de,t as W,K as rt}from"./index-DILk6pqr.js";import{a as lt,b as De,g as at,e as ct}from"./extract-connection-data-qW230rJb.js";import{C as dt}from"./collection-display-button-DY7UIm0_.js";import{S as mt}from"./search-input-SieA9wsp.js";import{C as ut}from"./collection-tabs-7m5XLASC.js";import{u as pt,a as ke,g as ht,C as Ce}from"./connection-card-By0LggNB.js";import{E as gt}from"./empty-state-CfAeMInj.js";import{I as xt}from"./integration-icon-CxxjWIPp.js";import{P as ue}from"./index-D7pI5IpD.js";import{u as ft,D as jt}from"./use-delete-connection-ARKHDNqJ.js";import{u as ye}from"./use-capability-OLvFRh1U.js";import{u as yt}from"./use-infinite-scroll-CCIuAqs7.js";import{u as Ct}from"./use-view-mode-CslUtkLV.js";import{g as he}from"./connection-slug-eyAPH6o3.js";import{c as Ae,d as we,b as Te,A as Ie,e as Pe,g as $e,a as Le,f as Oe}from"./alert-dialog-D5KOx-3H.js";import{C as Fe}from"./checkbox-UCOb4UyX.js";import{d as Me,c as ze,D as Ve,a as Ee,b as Be,e as Ke}from"./dialog-CwfeALzq.js";import{D as vt,a as St,c as bt,b as _t,d as Nt,e as Dt,f as kt}from"./drawer-_RQmWfAo.js";import{u as At}from"./tooltip-DNJ6cRlV.js";import{D as Ue,a as Re,b as He,c as re}from"./dropdown-menu-CppAWsT_.js";import{F as Q,b as J,c as Y,d as Z,f as ee,a as ve}from"./form-xYXw--Kt.js";import{I as ie}from"./input-DntqEqec.js";import{d as wt,b as Tt,c as It,S as Pt,a as ae}from"./select-DeFnLWdd.js";import{T as $t}from"./textarea-Fs50NfWG.js";import{b as We,u as Lt}from"./use-connection-Bj1m8ynL.js";import{u as Ot}from"./use-virtual-mcp-OPb4DVO0.js";import{u as Ft}from"./studio-tools-DWzikkvB.js";import{a4 as Mt,ae as zt,C as Vt,z as Et}from"./agent-icon-CKGTD-zQ.js";import{n as ge}from"./XCircle-BLfqcVud.js";import{a as Xe}from"./DotsVertical-Bl5GcKp2.js";import{s as qe}from"./Eye-C6daRddp.js";import{s as je}from"./Star01-Be_MjtDZ.js";import{s as Ge}from"./Plus-DfIcHYEj.js";import{s as Qe}from"./Trash01-DGJ-LjB-.js";import{s as Je}from"./XClose-4ak3u3qT.js";import{i as pe,a as Se,E as Bt,c as Kt,p as Ut,b as Rt,d as Ht}from"./connection-form-helpers-DeSC5iva.js";import{a as Wt}from"./authenticate-and-persist-oauth-D2tM_mGL.js";import"./use-mcp-client-BdmHrvF5.js";import"./auth-B4fF5n_6.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./ChevronUp-CKICjFfX.js";import"./view-mode-toggle-k-q_tsqg.js";import"./badge-CBy4Rm2Q.js";import"./SearchMd-B6GaXN7Q.js";import"./use-registry-connections-DZ1G13oh.js";import"./use-organization-settings-a8PuTrsa.js";import"./useInfiniteQuery-D-pnegbi.js";import"./card-D0ElZuSJ.js";import"./sidebar-D5TdEONj.js";import"./LayoutLeft-BsVzrTOG.js";import"./sheet-CgvO6KT7.js";import"./X-CXRx6PGX.js";import"./ChevronRight-MnjJHQHy.js";import"./label-NJtv9Xrj.js";import"./ChevronDown-BVJUps1_.js";import"./use-collections-D0HN84Lz.js";import"./AlertCircle-qY5ngKLr.js";import"./Tool01-hxrY31T7.js";import"./Settings02-Dd9sO-oW.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronLeft-CCp89cqe.js";import"./Stars02-DHcW8N80.js";import"./ZoomOut-6aWLXLSs.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LinkExternal01-B9RsD2Us.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./Zap-DVtX-UPi.js";import"./mcp-oauth-BTUV7ht5.js";function Xt(f){const e=`deco-filters-${f}`,[n,p]=E.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[n,o=>{p(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function qt(f){const e=oe.c(7),[n,p]=E.useState(f),[l,o]=E.useState(f?"desc":null);let i;e[0]!==l||e[1]!==n?(i=j=>{n!==j?(p(j),o("asc")):l==="asc"?o("desc"):l==="desc"&&(p(void 0),o(null))},e[0]=l,e[1]=n,e[2]=i):i=e[2];const g=i;let h;return e[3]!==g||e[4]!==l||e[5]!==n?(h={sortKey:n,sortDirection:l,handleSort:g},e[3]=g,e[4]=l,e[5]=n,e[6]=h):h=e[6],h}function Gt(f){const e=oe.c(20),{namespace:n,resource:p,defaultSortKey:l,defaultViewMode:o}=f,i=l===void 0?"title":l,g=o===void 0?"table":o,[h,j]=E.useState(""),y=E.useDeferredValue(h),N=`${n}-${p}`,[b,a]=Xt(N),x=`mesh-${p}-filter-visible-${n}`;let m;e[0]!==x?(m=()=>globalThis.localStorage?.getItem(x)==="true",e[0]=x,e[1]=m):m=e[1];const[v,_]=E.useState(m);let D;e[2]!==x?(D=T=>{_(T),globalThis.localStorage?.setItem(x,String(T))},e[2]=x,e[3]=D):D=e[3];const L=D;let O;e[4]!==v||e[5]!==L?(O=()=>{L(!v)},e[4]=v,e[5]=L,e[6]=O):O=e[6];const s=O,[A,F]=Ct(`mesh-${p}-${n}`,g),{sortKey:M,sortDirection:w,handleSort:P}=qt(i),z=M;let C;return e[7]!==v||e[8]!==b||e[9]!==P||e[10]!==h||e[11]!==y||e[12]!==L||e[13]!==a||e[14]!==F||e[15]!==w||e[16]!==z||e[17]!==s||e[18]!==A?(C={search:h,searchTerm:y,setSearch:j,filters:b,setFilters:a,filterBarVisible:v,setFilterBarVisible:L,toggleFilterBar:s,viewMode:A,setViewMode:F,sortKey:z,sortDirection:w,handleSort:P},e[7]=v,e[8]=b,e[9]=P,e[10]=h,e[11]=y,e[12]=L,e[13]=a,e[14]=F,e[15]=w,e[16]=z,e[17]=s,e[18]=A,e[19]=C):C=e[19],C}function Qt(f){const e=oe.c(51),{group:n,onOpen:p,selectionMode:l,selectedIds:o,onToggleSelect:i}=f;let g;if(e[0]!==n.connections||e[1]!==o){let C;e[3]!==o?(C=T=>o.has(T.id),e[3]=o,e[4]=C):C=e[4],g=n.connections.every(C),e[0]=n.connections,e[1]=o,e[2]=g}else g=e[2];const h=g;let j;if(e[5]!==n.connections||e[6]!==o){let C;e[8]!==o?(C=T=>o.has(T.id),e[8]=o,e[9]=C):C=e[9],j=n.connections.some(C),e[5]=n.connections,e[6]=o,e[7]=j}else j=e[7];const y=j,N=`${n.connections.length} instances`;let b;e[10]!==n.icon||e[11]!==n.title||e[12]!==N?(b={title:n.title,icon:n.icon,description:N},e[10]=n.icon,e[11]=n.title,e[12]=N,e[13]=b):b=e[13];let a;e[14]!==h||e[15]!==n.connections||e[16]!==p||e[17]!==i||e[18]!==o||e[19]!==l?(a=()=>l?(()=>{for(const C of n.connections)h?o.has(C.id)&&i(C.id):o.has(C.id)||i(C.id)})():p(),e[14]=h,e[15]=n.connections,e[16]=p,e[17]=i,e[18]=o,e[19]=l,e[20]=a):a=e[20];const x=l&&h&&"ring-2 ring-primary",m=l&&y&&!h&&"ring-1 ring-primary/50";let v;e[21]!==x||e[22]!==m?(v=de(x,m),e[21]=x,e[22]=m,e[23]=v):v=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(ge,{}),e[24]=_):_=e[24];let D;e[25]!==h||e[26]!==n.connections||e[27]!==i||e[28]!==o||e[29]!==l||e[30]!==y?(D=l?t.jsx(Fe,{checked:h?!0:y?"indeterminate":!1,onCheckedChange:()=>{for(const C of n.connections)h?o.has(C.id)&&i(C.id):o.has(C.id)||i(C.id)}}):t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}),t.jsxs("span",{className:"text-xs text-muted-foreground font-normal tabular-nums",children:["x",n.connections.length]})]}),e[25]=h,e[26]=n.connections,e[27]=i,e[28]=o,e[29]=l,e[30]=y,e[31]=D):D=e[31];const L=l?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100";let O;e[32]!==L?(O=de("overflow-hidden transition-all duration-150 ease-out",L),e[32]=L,e[33]=O):O=e[33];let s;e[34]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(Re,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Yt,children:t.jsx(Xe,{size:20})})}),e[34]=s):s=e[34];let A;e[35]!==p?(A=C=>{C.stopPropagation(),p()},e[35]=p,e[36]=A):A=e[36];let F;e[37]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(qe,{size:16}),e[37]=F):F=e[37];let M;e[38]!==A?(M=t.jsxs(Ue,{children:[s,t.jsx(He,{align:"end",onClick:Jt,children:t.jsxs(re,{onClick:A,children:[F,"Open"]})})]}),e[38]=A,e[39]=M):M=e[39];let w;e[40]!==O||e[41]!==M?(w=t.jsx("div",{className:O,children:M}),e[40]=O,e[41]=M,e[42]=w):w=e[42];let P;e[43]!==D||e[44]!==w?(P=t.jsxs("div",{className:"flex items-center gap-1",children:[D,w]}),e[43]=D,e[44]=w,e[45]=P):P=e[45];let z;return e[46]!==P||e[47]!==b||e[48]!==a||e[49]!==v?(z=t.jsx(t.Fragment,{children:t.jsx(Ce,{connection:b,onClick:a,className:v,fallbackIcon:_,headerActionsAlwaysVisible:!0,headerActions:P})}),e[46]=P,e[47]=b,e[48]=a,e[49]=v,e[50]=z):z=e[50],z}function Jt(f){return f.stopPropagation()}function Yt(f){return f.stopPropagation()}function Zt(f){const e=oe.c(23),{count:n,total:p,canManage:l,canManageAgents:o,onSelectAll:i,onDeselectAll:g,onDelete:h,onAddToAgent:j,onToggleStatus:y,onCancel:N}=f;if(n===0)return null;let b;e[0]!==n?(b=t.jsxs("div",{className:"text-xs text-muted-foreground pr-1 tabular-nums",children:[n," selected"]}),e[0]=n,e[1]=b):b=e[1];let a;e[2]!==n||e[3]!==g||e[4]!==i||e[5]!==p?(a=n<p?t.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:i,children:["Select all (",p,")"]}):t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:g,children:"Clear selection"}),e[2]=n,e[3]=g,e[4]=i,e[5]=p,e[6]=a):a=e[6];let x;e[7]!==o||e[8]!==j?(x=o&&t.jsxs(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:j,children:[t.jsx(Ge,{size:13}),"Add to Agent"]}),e[7]=o,e[8]=j,e[9]=x):x=e[9];let m;e[10]!==l||e[11]!==h||e[12]!==y?(m=l&&t.jsxs(t.Fragment,{children:[t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>y("active"),children:"Enable"}),t.jsx(U,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>y("inactive"),children:"Disable"}),t.jsxs(U,{variant:"destructive",size:"sm",className:"h-7 text-xs px-2",onClick:h,children:[t.jsx(Qe,{size:13}),"Delete"]})]}),e[10]=l,e[11]=h,e[12]=y,e[13]=m):m=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(Je,{size:13}),e[14]=v):v=e[14];let _;e[15]!==N?(_=t.jsx(U,{variant:"ghost",size:"sm",className:"h-7 text-xs px-2",onClick:N,children:v}),e[15]=N,e[16]=_):_=e[16];let D;return e[17]!==b||e[18]!==a||e[19]!==x||e[20]!==m||e[21]!==_?(D=t.jsx("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2",children:t.jsxs("div",{className:"rounded-xl border border-border bg-background/95 shadow-lg backdrop-blur px-3 py-2 flex items-center gap-2",children:[b,a,x,m,_]})}),e[17]=b,e[18]=a,e[19]=x,e[20]=m,e[21]=_,e[22]=D):D=e[22],D}function en(f){const e=oe.c(25),{open:n,onOpenChange:p,agents:l,onConfirm:o}=f,[i,g]=E.useState(null);let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs(Ve,{children:[t.jsx(Ee,{children:"Add to Agent"}),t.jsx(Be,{children:"Select an agent to add the selected connections to."})]}),e[0]=h):h=e[0];let j;e[1]!==l||e[2]!==i?(j=l.length===0?t.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No agents found"}):l.map(D=>t.jsxs("button",{type:"button",onClick:()=>g(D.id),className:de("flex items-center gap-3 w-full rounded-md px-3 py-2 text-left transition-colors",i===D.id?"bg-primary/10 ring-1 ring-primary":"hover:bg-muted/50"),children:[t.jsx(xt,{icon:D.icon,name:D.title,size:"sm",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium truncate",children:D.title}),D.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:D.description})]})]},D.id)),e[1]=l,e[2]=i,e[3]=j):j=e[3];let y;e[4]!==j?(y=t.jsx("div",{className:"max-h-60 overflow-auto py-2 space-y-1",children:j}),e[4]=j,e[5]=y):y=e[5];let N;e[6]!==p?(N=t.jsx(U,{variant:"outline",onClick:()=>p(!1),children:"Cancel"}),e[6]=p,e[7]=N):N=e[7];const b=!i;let a;e[8]!==o||e[9]!==p||e[10]!==i?(a=()=>{i&&(o(i),p(!1),g(null))},e[8]=o,e[9]=p,e[10]=i,e[11]=a):a=e[11];let x;e[12]!==b||e[13]!==a?(x=t.jsx(U,{disabled:b,onClick:a,children:"Add"}),e[12]=b,e[13]=a,e[14]=x):x=e[14];let m;e[15]!==N||e[16]!==x?(m=t.jsxs(Ke,{children:[N,x]}),e[15]=N,e[16]=x,e[17]=m):m=e[17];let v;e[18]!==y||e[19]!==m?(v=t.jsxs(ze,{className:"sm:max-w-[400px]",children:[h,y,m]}),e[18]=y,e[19]=m,e[20]=v):v=e[20];let _;return e[21]!==p||e[22]!==n||e[23]!==v?(_=t.jsx(Me,{open:n,onOpenChange:p,children:v}),e[21]=p,e[22]=n,e[23]=v,e[24]=_):_=e[24],_}function tn(f){const e=oe.c(20),{open:n,onOpenChange:p,count:l,onConfirm:o}=f,i=l!==1?"s":"";let g;e[0]!==l||e[1]!==i?(g=t.jsxs(Ae,{children:["Delete ",l," connection",i,"?"]}),e[0]=l,e[1]=i,e[2]=g):g=e[2];const h=l!==1?"s":"";let j;e[3]!==h?(j=t.jsxs(we,{children:["This will permanently delete the selected connection",h,". This action cannot be undone."]}),e[3]=h,e[4]=j):j=e[4];let y;e[5]!==g||e[6]!==j?(y=t.jsxs(Te,{children:[g,j]}),e[5]=g,e[6]=j,e[7]=y):y=e[7];let N;e[8]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(Ie,{children:"Cancel"}),e[8]=N):N=e[8];const b=l!==1?"s":"";let a;e[9]!==l||e[10]!==o||e[11]!==b?(a=t.jsxs(Pe,{children:[N,t.jsxs($e,{onClick:o,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:["Delete ",l," connection",b]})]}),e[9]=l,e[10]=o,e[11]=b,e[12]=a):a=e[12];let x;e[13]!==y||e[14]!==a?(x=t.jsxs(Le,{children:[y,a]}),e[13]=y,e[14]=a,e[15]=x):x=e[15];let m;return e[16]!==p||e[17]!==n||e[18]!==x?(m=t.jsx(Oe,{open:n,onOpenChange:p,children:x}),e[16]=p,e[17]=n,e[18]=x,e[19]=m):m=e[19],m}function nn(f){return f._registryId?.includes("community-registry")===!0}function sn(f){const e=oe.c(58),{item:n,canManage:p,allConnections:l,connectedAppNames:o,connectingItemId:i,onNavigateConnected:g,onConnect:h}=f,[j,y]=E.useState(!1),[N,b]=E.useState(null);let a,x;e[0]!==o||e[1]!==n?(a=De(n)??"",x=o.has(a),e[0]=o,e[1]=n,e[2]=a,e[3]=x):(a=e[2],x=e[3]);const m=x,v=n._meta?.["mcp.mesh"],_=v?.friendlyName||v?.friendly_name||n.server?.title||n.title||n.server?.name||n.name||n.id||"",D=n.server?.description||n.description||null;let L;e[4]!==n.server?.icons?.[0]?.src||e[5]!==n.server?.repository?(L=n.server?.icons?.[0]?.src||at(n.server?.repository)||null,e[4]=n.server?.icons?.[0]?.src,e[5]=n.server?.repository,e[6]=L):L=e[6];const O=L;let s;if(e[7]!==l||e[8]!==a){let k;e[10]!==a?(k=se=>se.connection_type!=="VIRTUAL"&&se.app_name===a,e[10]=a,e[11]=k):k=e[11],s=l.filter(k),e[7]=l,e[8]=a,e[9]=s}else s=e[9];const A=s;let F;e[12]!==n?(F=nn(n),e[12]=n,e[13]=F):F=e[13];const M=F;let w,P;e[14]!==A||e[15]!==p||e[16]!==M||e[17]!==m||e[18]!==n||e[19]!==h||e[20]!==g?(w=()=>{if(m){const k=A[0];k&&g(k);return}p&&P()},P=()=>{M?(b("connect"),y(!0)):h(n)},e[14]=A,e[15]=p,e[16]=M,e[17]=m,e[18]=n,e[19]=h,e[20]=g,e[21]=w,e[22]=P):(w=e[21],P=e[22]);let z;e[23]!==n||e[24]!==h||e[25]!==N?(z=()=>{te("connections_community_warning_confirmed",{registry_item_id:n.id}),y(!1),N==="connect"&&h(n),b(null)},e[23]=n,e[24]=h,e[25]=N,e[26]=z):z=e[26];const C=z;let T;e[27]!==D||e[28]!==O||e[29]!==_?(T={title:_,description:D,icon:O},e[27]=D,e[28]=O,e[29]=_,e[30]=T):T=e[30];let G;e[31]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx(ge,{}),e[31]=G):G=e[31];let H;e[32]!==M||e[33]!==n._sourceIcon?(H=M&&n._sourceIcon&&t.jsx("img",{src:n._sourceIcon,alt:"Community",className:"size-4 rounded-sm object-contain"}),e[32]=M,e[33]=n._sourceIcon,e[34]=H):H=e[34];let X;e[35]!==p||e[36]!==i||e[37]!==P||e[38]!==m||e[39]!==n.id?(X=m?t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}):p&&t.jsx(U,{variant:"outline",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:i!==null,onClick:k=>{k.stopPropagation(),P()},children:i===n.id?t.jsx(ce,{size:14,className:"animate-spin"}):"Connect"}),e[35]=p,e[36]=i,e[37]=P,e[38]=m,e[39]=n.id,e[40]=X):X=e[40];let c;e[41]!==H||e[42]!==X?(c=t.jsxs("div",{className:"flex items-center gap-2",children:[H,X]}),e[41]=H,e[42]=X,e[43]=c):c=e[43];let S;e[44]!==w||e[45]!==c||e[46]!==T?(S=t.jsx(Ce,{connection:T,fallbackIcon:G,onClick:w,headerActionsAlwaysVisible:!0,headerActions:c}),e[44]=w,e[45]=c,e[46]=T,e[47]=S):S=e[47];let V;e[48]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsxs(Te,{children:[t.jsx(Ae,{children:"Community MCP Server"}),t.jsx(we,{children:"This MCP server is from the Community MCP Registry and is not maintained or verified by Deco. Community servers may have varying levels of quality, security, and reliability. Proceed with caution and review the server details before connecting."})]}),e[48]=V):V=e[48];let R;e[49]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(Ie,{children:"Cancel"}),e[49]=R):R=e[49];let B;e[50]!==C?(B=t.jsxs(Le,{children:[V,t.jsxs(Pe,{children:[R,t.jsx($e,{onClick:C,children:"Continue"})]})]}),e[50]=C,e[51]=B):B=e[51];let u;e[52]!==j||e[53]!==B?(u=t.jsx(Oe,{open:j,onOpenChange:y,children:B}),e[52]=j,e[53]=B,e[54]=u):u=e[54];let $;return e[55]!==S||e[56]!==u?($=t.jsxs(t.Fragment,{children:[S,u]}),e[55]=S,e[56]=u,e[57]=$):$=e[57],$}function on({listState:f,activeTab:e,typeFilter:n,statusFilter:p,registryFilter:l,enabledRegistries:o}){const{org:i}=be(),g=it(),h=_e(),{data:j}=Ne.useSession(),y=We(),N=Lt(f),b=ft(),{granted:a}=ye("connections:manage"),{granted:x}=ye("agents:manage"),[m,v]=E.useState(new Set),_=m.size>0,[D,L]=E.useState(!1),[O,s]=E.useState(!1),[A,F]=E.useState(null),M=Ot(),w=N.filter(r=>!(n!=="ALL"&&r.connection_type!==n||p!=="ALL"&&r.status!==p)),P=ht(w),z=r=>{v(d=>{const K=new Set(d);return K.has(r)?K.delete(r):K.add(r),K})},C=()=>{v(new Set)},T=ke(o,f.searchTerm),G=T.items,H=yt(T.loadMore,T.hasMore,T.isLoadingMore),X=new Set(N.filter(r=>r.app_name).map(r=>r.app_name)),c=l==="ALL"||o.some(r=>r.id===l)?l:"ALL",S=f.search.length>0,V=e==="all"||S?G.filter(r=>{if(c!=="ALL"&&r._registryId!==c)return!1;if(S){const d=De(r);if(d&&X.has(d))return!1}return!0}):[],R=e==="connected"||S?P:[],B=async r=>{if(!(!i||!j?.user?.id)){te("connection_add_clicked",{action:"connect_new",registry_item_id:r.id,source:"connections_page"}),F(r.id);try{const d=ct(r,i.id,j.user.id,{remoteIndex:0}),K=d.connection_type==="STDIO",I=!!d.connection_url,q=K&&d.connection_headers&&typeof d.connection_headers=="object"&&"command"in d.connection_headers;if(!I&&!q){W.error("This MCP Server cannot be connected: no connection method available"),F(null);return}const{id:ne}=await y.create.mutateAsync(d),le=await Wt({connectionId:ne,orgId:i.id,orgSlug:i.slug,persistFallback:fe=>y.update.mutateAsync({id:ne,data:{connection_token:fe}}).then(()=>{})});if(le.ran&&!le.ok){te("connection_oauth_failed",{connection_id:ne,flow:"connections_page_connect",error:le.error??"no_token"}),W.error(`Authentication failed: ${le.error??"no token received"}`);return}if(le.ran){te("connection_oauth_succeeded",{connection_id:ne,flow:"connections_page_connect"});const fe=new URL(`/api/${i.slug}/mcp/${ne}`,window.location.origin);await g.invalidateQueries({queryKey:rt.isMCPAuthenticated(fe.href,null)}),$(),W.success("Authentication successful")}W.success("Connected successfully")}catch(d){W.error(`Failed to connect: ${d instanceof Error?d.message:String(d)}`)}finally{F(null)}}},u=Ft(),$=()=>{g.invalidateQueries({predicate:r=>{const d=r.queryKey;return d[1]===i.id&&d[3]==="collection"&&d[4]==="CONNECTIONS"}})},k=async()=>{L(!1);const r=[...m];te("connections_bulk_delete",{count:r.length});let d=0;for(const K of r)try{await u.call("COLLECTION_CONNECTIONS_DELETE",{id:K,force:!0}),d++}catch{}$(),W.success(`Deleted ${d} connection${d!==1?"s":""}`),C()},se=async(r,d)=>{try{await y.update.mutateAsync({id:r,data:{status:d}}),$(),W.success(d==="active"?"Connection enabled":"Connection disabled")}catch{W.error("Failed to update connection")}},xe=async r=>{const d=[...m];te("connections_bulk_status_toggled",{count:d.length,to_status:r});let K=0;for(const I of d)try{await y.update.mutateAsync({id:I,data:{status:r}}),K++}catch{}$(),W.success(`${r==="active"?"Enabled":"Disabled"} ${K} connection${K!==1?"s":""}`),C()},me=async r=>{const d=M.find(q=>q.id===r);if(!d)return;te("connections_bulk_add_to_agent",{agent_id:r,count:m.size});const K=new Set(d.connections.map(q=>q.connection_id)),I=[...m].filter(q=>!K.has(q)).map(q=>({connection_id:q,selected_tools:null,selected_resources:null,selected_prompts:null}));if(I.length===0){W.info("All selected connections are already in that agent");return}try{await u.call("COLLECTION_VIRTUAL_MCP_UPDATE",{id:r,data:{connections:[...d.connections,...I]}}),g.invalidateQueries({predicate:q=>{const ne=q.queryKey;return ne[1]===i.id&&ne[3]==="collection"&&ne[4]==="VIRTUAL_MCP"}}),W.success(`Added ${I.length} connection${I.length!==1?"s":""} to "${d.title}"`),C()}catch{W.error("Failed to add connections to agent")}};return t.jsxs(t.Fragment,{children:[t.jsx(jt,{...b}),t.jsx(tn,{open:D,onOpenChange:L,count:m.size,onConfirm:k}),t.jsx(en,{open:O,onOpenChange:s,agents:M,onConfirm:me}),T.isInitialLoading&&e==="all"?t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}):t.jsx("div",{children:(S?V.length===0&&w.length===0:e==="all"?V.length===0:w.length===0)?t.jsx(gt,{image:t.jsx("img",{src:"/emptystate-mcp.svg",alt:"",width:336,height:320,"aria-hidden":"true"}),title:"No Connections found",description:f.search?`No Connections match "${f.search}"`:a?"Create a connection to get started.":"Ask an organization admin to add one."}):t.jsxs("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:[R.map(r=>{if(r.type==="group")return t.jsx(Qt,{group:r,onOpen:()=>{h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:r.key}})},selectionMode:_,selectedIds:m,onToggleSelect:z},r.key);const d=r.connection,K=m.has(d.id);return t.jsx(Ce,{connection:d,fallbackIcon:t.jsx(ge,{}),onClick:()=>_?z(d.id):h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}}),className:de(K&&"ring-2 ring-primary bg-primary/5"),headerActionsAlwaysVisible:!0,headerActions:t.jsxs("div",{className:"flex items-center gap-1",children:[_?t.jsx(Fe,{checked:K,onCheckedChange:()=>z(d.id),onClick:I=>I.stopPropagation()}):t.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"Connected"}),t.jsx("div",{className:de("overflow-hidden transition-all duration-150 ease-out",_?"w-8 opacity-100":"w-0 opacity-0 group-hover:w-8 group-hover:opacity-100"),children:t.jsxs(Ue,{children:[t.jsx(Re,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:I=>I.stopPropagation(),children:t.jsx(Xe,{size:20})})}),t.jsxs(He,{align:"end",onClick:I=>I.stopPropagation(),children:[t.jsxs(re,{onClick:I=>{I.stopPropagation(),h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}})},children:[t.jsx(qe,{size:16}),"Open"]}),(a||x)&&t.jsxs(re,{onClick:I=>{I.stopPropagation(),z(d.id)},children:[t.jsx(zt,{size:16}),"Select"]}),a&&(d.status==="active"?t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"inactive")},children:[t.jsx(Vt,{size:16}),"Disable"]}):t.jsxs(re,{onClick:I=>{I.stopPropagation(),se(d.id,"active")},children:[t.jsx(Et,{size:16}),"Enable"]})),a&&t.jsxs(re,{variant:"destructive",onClick:I=>{I.stopPropagation(),b.requestDelete(d)},children:[t.jsx(Qe,{size:16}),"Delete"]})]})]})})]})},d.id)}),V.map(r=>t.jsx(sn,{item:r,canManage:a,allConnections:N,connectedAppNames:X,connectingItemId:A,onNavigateConnected:d=>h({to:"/$org/settings/connections/$appSlug",params:{org:i.slug,appSlug:he(d)}}),onConnect:B},`catalog-${r._registryId}:${r.id}`)),(e==="all"||S)&&o.length>0&&t.jsx("div",{ref:H,className:"col-span-full h-4"}),(e==="all"||S)&&T.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(ce,{size:24,className:"animate-spin text-muted-foreground"})})]})}),_&&t.jsx(Zt,{count:m.size,total:w.length,canManage:a,canManageAgents:x,onSelectAll:()=>{v(new Set(w.map(r=>r.id)))},onDeselectAll:()=>v(new Set),onDelete:()=>L(!0),onAddToAgent:()=>s(!0),onToggleStatus:xe,onCancel:C})]})}function rn(){const{org:f}=be(),e=_e(),n=Ze({strict:!1}),{data:p}=Ne.useSession(),{stdioEnabled:l}=et(),o=At(),{granted:i}=ye("connections:manage"),g=Gt({namespace:f.slug,resource:"connections"}),h=We(),[j,y]=tt(nt.connectionsTab(f.slug),c=>n.tab==="all"||n.tab==="connected"?n.tab:c??"all"),[N,b]=E.useState("ALL"),[a,x]=E.useState("ALL"),[m,v]=E.useState("ALL"),_=pt(),L=ke(_,g.searchTerm).items,O=g.search!==g.searchTerm,s=st({resolver:ot(Kt),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),A=s.watch("ui_type"),F=s.watch("connection_url"),M=s.watch("npx_package"),w=pe({uiType:A,connectionUrl:F??"",npxPackage:M??""})??Se({uiType:A,connectionUrl:F??"",registryItems:L}),P=i&&n.action==="create",z=()=>{te("connections_custom_dialog_opened",{source:"connections_page"}),e({to:"/$org/settings/connections",params:{org:f.slug},search:{action:"create"}})},C=()=>{e({to:"/$org/settings/connections",params:{org:f.slug},search:{}})},T=async c=>{let S,V=null,R=null,B=null;c.ui_type==="NPX"?(S="STDIO",V="",B=Rt(c.npx_package||"",c.env_vars||[])):c.ui_type==="STDIO"?(S="STDIO",V="",B=Ht(c.stdio_command||"",c.stdio_args||"",c.stdio_cwd,c.env_vars||[])):(S=c.ui_type,V=c.connection_url||"",R=c.connection_token||null);const u=lt("conn");te("connection_custom_created",{connection_type:S,ui_type:c.ui_type}),await h.create.mutateAsync({id:u,title:c.title,description:c.description||null,connection_type:S,connection_url:V,connection_token:R,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:p?.user?.id||"system",organization_id:f.id,icon:c.icon??null,app_name:null,app_id:null,connection_headers:B,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),C(),s.reset(),e({to:"/$org/settings/connections/$appSlug",params:{org:f.slug,appSlug:he({app_name:null,connection_url:V,title:c.title,id:u})}})},G=c=>{c||(P&&C(),s.reset())},H=c=>{const S=c.trim();if(!S)return;const V=!!s.formState.dirtyFields.title,R=!!s.formState.dirtyFields.description,B=!!s.formState.dirtyFields.env_vars,u=k=>{if(k&&(!V&&!s.getValues("title").trim()&&k.title&&s.setValue("title",k.title,{shouldDirty:!1}),!R&&!(s.getValues("description")??"").trim()&&k.description&&s.setValue("description",k.description,{shouldDirty:!1}),!B&&k.envVarKeys?.length)){const se=s.getValues("env_vars")??[],xe=new Set(se.map(r=>r.key)),me=k.envVarKeys.filter(r=>!xe.has(r));me.length>0&&s.setValue("env_vars",[...se,...me.map(r=>({key:r,value:""}))],{shouldDirty:!0})}},$=Ut(S);if($&&l){s.setValue("ui_type","NPX",{shouldDirty:!0}),s.setValue("npx_package",$.packageName,{shouldDirty:!0}),s.setValue("connection_url","",{shouldDirty:!0}),s.setValue("connection_token",null,{shouldDirty:!0}),u(pe({uiType:"NPX",npxPackage:$.packageName}));return}if(S.startsWith("http://")||S.startsWith("https://")){const k=A==="HTTP"||A==="SSE"||A==="Websocket"?A:"HTTP";s.setValue("ui_type",k,{shouldDirty:!0}),s.setValue("connection_url",S,{shouldDirty:!0}),u(pe({uiType:k,connectionUrl:S})??Se({uiType:k,connectionUrl:S,registryItems:L}));return}A==="NPX"&&u(pe({uiType:"NPX",npxPackage:S}))},X=i?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(U,{variant:"outline",onClick:z,children:[t.jsx(Ge,{size:14,className:"sm:hidden"}),t.jsx("span",{className:"hidden sm:inline",children:"Custom Connection"})]})}):null;return t.jsx(t.Fragment,{children:t.jsxs(ue,{children:[(()=>{const c="Create Connection",S="Create a custom connection in your organization. Fill in the details below.",V=s.formState.isSubmitting?"Saving...":"Create Connection",R=t.jsxs("div",{className:"grid gap-4",children:[t.jsx(Q,{control:s.control,name:"ui_type",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Type *"}),t.jsxs(wt,{value:u.value,onValueChange:u.onChange,children:[t.jsx(Z,{children:t.jsx(Tt,{children:t.jsx(It,{})})}),t.jsxs(Pt,{children:[t.jsx(ae,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(ae,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(ae,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(je,{className:"w-4 h-4"}),"Websocket"]})}),l&&t.jsxs(t.Fragment,{children:[t.jsx(ae,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ge,{className:"w-4 h-4"}),"NPX Package"]})}),t.jsx(ae,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Mt,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),t.jsx(ee,{})]})}),A==="NPX"&&t.jsx(Q,{control:s.control,name:"npx_package",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"NPM Package *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"@perplexity-ai/mcp-server",...u,value:u.value??"",onPaste:$=>{const k=$.clipboardData.getData("text");k&&($.preventDefault(),s.setValue("npx_package",k.trim(),{shouldDirty:!0}),H(k))},onBlur:$=>{H($.target.value),u.onBlur()}})}),t.jsx(ee,{})]})}),A==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(Q,{control:s.control,name:"stdio_command",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Command *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"node, bun, python...",...u,value:u.value??""})}),t.jsx(ee,{})]})}),t.jsx(Q,{control:s.control,name:"stdio_args",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Arguments"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"arg1 arg2 --flag value",...u,value:u.value??""})}),t.jsx(ee,{})]})})]}),t.jsx(Q,{control:s.control,name:"stdio_cwd",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Working Directory"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"/path/to/project (optional)",...u,value:u.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory where the command will be executed"}),t.jsx(ee,{})]})})]}),(A==="NPX"||A==="STDIO")&&t.jsx(Q,{control:s.control,name:"env_vars",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Environment Variables"}),t.jsx(Z,{children:t.jsx(Bt,{value:u.value??[],onChange:u.onChange})}),t.jsx(ee,{})]})}),A!=="NPX"&&A!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(Q,{control:s.control,name:"connection_url",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"URL *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"https://example.com/mcp",...u,value:u.value??"",onPaste:$=>{const k=$.clipboardData.getData("text");k&&($.preventDefault(),s.setValue("connection_url",k.trim(),{shouldDirty:!0}),H(k))},onBlur:$=>{H($.target.value),u.onBlur()}})}),t.jsx(ee,{})]})}),t.jsx(Q,{control:s.control,name:"connection_token",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:w?.token?.label??"Token (optional)"}),t.jsx(Z,{children:t.jsx(ie,{type:"password",placeholder:w?.token?.placeholder??"Bearer token or API key",...u,value:u.value??""})}),w?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[w.token.helperText,w.id==="github"&&t.jsxs(t.Fragment,{children:[" ","·"," ",t.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:"Open GitHub PAT settings"})]})]}),t.jsx(ee,{})]})})]}),t.jsx(Q,{control:s.control,name:"title",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Name *"}),t.jsx(Z,{children:t.jsx(ie,{placeholder:"My Connection",...u})}),t.jsx(ee,{})]})}),t.jsx(Q,{control:s.control,name:"description",render:({field:u})=>t.jsxs(J,{children:[t.jsx(Y,{children:"Description"}),t.jsx(Z,{children:t.jsx($t,{placeholder:"A brief description of this connection",rows:3,...u,value:u.value??""})}),t.jsx(ee,{})]})})]}),B=P;return o?t.jsx(vt,{open:B,onOpenChange:G,children:t.jsxs(St,{className:"max-h-[90vh]",children:[t.jsx(bt,{className:"pb-2",children:t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[t.jsxs("div",{className:"flex-1 text-left",children:[t.jsx(_t,{children:c}),t.jsx(Nt,{className:"mt-1",children:S})]}),t.jsx(Dt,{asChild:!0,children:t.jsx(U,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:t.jsx(Je,{size:16})})})]})}),t.jsx(ve,{...s,children:t.jsxs("form",{onSubmit:s.handleSubmit(T),children:[t.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:R}),t.jsx(kt,{children:t.jsx(U,{type:"submit",disabled:s.formState.isSubmitting,className:"w-full",children:V})})]})})]})}):t.jsx(Me,{open:B,onOpenChange:G,children:t.jsxs(ze,{className:"sm:max-w-[525px]",children:[t.jsxs(Ve,{children:[t.jsx(Ee,{children:c}),t.jsx(Be,{children:S})]}),t.jsx(ve,{...s,children:t.jsxs("form",{onSubmit:s.handleSubmit(T),children:[t.jsx("div",{className:"py-4",children:R}),t.jsxs(Ke,{children:[t.jsx(U,{type:"button",variant:"outline",onClick:()=>G(!1),children:"Cancel"}),t.jsx(U,{type:"submit",disabled:s.formState.isSubmitting,className:"min-w-40",children:V})]})]})})]})})})(),t.jsx(ue.Content,{children:t.jsx(ue.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsx(ue.Title,{children:"Connections"}),t.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(mt,{value:g.search,onChange:g.setSearch,placeholder:"Search for a connection",className:"w-full md:w-[375px]",onKeyDown:c=>{c.key==="Escape"&&(g.setSearch(""),c.target.blur())}}),t.jsx(dt,{sortKey:g.sortKey,sortDirection:g.sortDirection,onSort:g.handleSort,sortOptions:[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"connection_type",label:"Type"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],filters:[{label:"Type",value:N,onChange:c=>b(c||"ALL"),options:[{id:"ALL",label:"All"},{id:"HTTP",label:"HTTP"},{id:"SSE",label:"SSE"},{id:"Websocket",label:"WebSocket"},{id:"STDIO",label:"STDIO"}]},{label:"Status",value:a,onChange:c=>x(c||"ALL"),options:[{id:"ALL",label:"All"},{id:"active",label:"Active"},{id:"inactive",label:"Inactive"},{id:"error",label:"Error"}]},..._.length>1?[{label:"Registry",value:m,onChange:c=>v(c||"ALL"),options:[{id:"ALL",label:"All registries"},..._.map(c=>({id:c.id,label:c.id.includes("community-registry")?"Community MCP Registry":c.title}))]}]:[]]})]}),X]}),t.jsx(ut,{tabs:[{id:"all",label:"All"},{id:"connected",label:"Connected"}],activeTab:j,onTabChange:c=>{const S=c;S!==j&&te("connections_page_tab_changed",{to_tab:S}),y(S)}}),t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx("div",{style:{opacity:O?.5:1,transition:O?"opacity 0.2s 0.2s linear":"opacity 0s 0s linear",pointerEvents:O?"none":"auto"},children:t.jsx(on,{listState:g,activeTab:j,typeFilter:N,statusFilter:a,registryFilter:m,enabledRegistries:_})})})]})})})]})})}function Fs(){const f=oe.c(1);let e;return f[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ye,{children:t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ce,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(rn,{})})}),f[0]=e):e=f[0],e}export{Fs as default};
@@ -1,2 +0,0 @@
1
- import{c as Ke,r as l,j as i,i as re,B as fe,l as Ve,m as ut,t as $,K as Te}from"./index-DILk6pqr.js";import{F as mt,l as pt}from"./index-uKLTzwtC.js";import{e as ht,at as xt,au as gt,av as ae,aw as yt,U as $e}from"./agent-icon-CKGTD-zQ.js";import{a as wt}from"./Tool01-hxrY31T7.js";import{s as jt}from"./XClose-4ak3u3qT.js";import{S as bt}from"./scroll-area-CN3_YfBC.js";import{b as Oe,T as Re,a as ze}from"./tooltip-DNJ6cRlV.js";import{f as vt,a as Ct,b as Nt,c as St,d as Dt,e as kt,A as Ft,g as Lt}from"./alert-dialog-D5KOx-3H.js";import{u as Et}from"./chat-context-SWJ_FDEf.js";import{b as Pt}from"./shell-layout-DAyf8ZZZ.js";import{al as le,am as Ae,an as Tt}from"./index-Yqaph2kh.js";import{a as $t,b as Ot,D as Rt,e as zt,c as At,d as Wt}from"./dialog-CwfeALzq.js";import{I as We}from"./input-DntqEqec.js";import{b as It,C as _,a as Ie,c as Mt,d as Kt}from"./context-menu-BXRYPu2v.js";import{t as Vt}from"./ChevronDown-BVJUps1_.js";import{i as Bt}from"./ChevronRight-MnjJHQHy.js";import{a as Gt}from"./ZoomOut-6aWLXLSs.js";import{E as qt,z as Me,A as he,B as Qt,C as Ut,D as Jt,G as M,I as ce,g as xe,J as ge,K as Ht,M as Xt,N as ye,O as de,P as we,Q as Yt,U as Zt}from"./preview-dialog-XKGBZobL.js";import"./AlertCircle-qY5ngKLr.js";import"./SwitchHorizontal01-CrHLIeRP.js";import"./Settings02-Dd9sO-oW.js";import"./XCircle-BLfqcVud.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./ZapSquare-iu6ldaYZ.js";import"./Users03-BZYHqQGQ.js";import"./CheckCircle-CNYYpNQm.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronLeft-CCp89cqe.js";import"./DotsVertical-Bl5GcKp2.js";import"./Stars02-DHcW8N80.js";import"./Eye-C6daRddp.js";import"./Globe01-CgHdNpOL.js";import"./FilterLines-B_0u5HAa.js";import"./Star01-Be_MjtDZ.js";import"./Globe04-DEangwXD.js";import"./HardDrive-V1dbAXdv.js";import"./Key01-B0h1bFlR.js";import"./LayoutLeft-BsVzrTOG.js";import"./LinkExternal01-B9RsD2Us.js";import"./Monitor01-DAM-u2R2.js";import"./Sun-DO_Gt4P2.js";import"./Palette-DT8p7ZEl.js";import"./Play-Blum-MoR.js";import"./Plus-DfIcHYEj.js";import"./SearchMd-B6GaXN7Q.js";import"./Shield01-DLANpVD0.js";import"./Stars01-D3ha2IeY.js";import"./Trash01-DGJ-LjB-.js";import"./Upload01-CzOJ3UuD.js";import"./User01-DR_UC5XH.js";import"./Users01-cxH39exM.js";import"./X-CXRx6PGX.js";import"./Zap-DVtX-UPi.js";import"./use-clock-tick-CWHp6nCX.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CuQAt0Vj.js";import"./file-type-icon-CdZyaTKH.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-CsHe6BgD.js";import"./use-mcp-client-BdmHrvF5.js";import"./auth-B4fF5n_6.js";import"./hooks-CLt3SUb8.js";import"./decopilot-sse-pool-Cd7s5cwH.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-DWzikkvB.js";import"./sheet-CgvO6KT7.js";import"./integration-icon-CxxjWIPp.js";import"./use-virtual-mcp-OPb4DVO0.js";import"./use-collections-D0HN84Lz.js";import"./use-navigate-to-agent-Qyyx-mm9.js";import"./use-connection-Bj1m8ynL.js";import"./use-mcp-prompts-BwQLmLZi.js";import"./form-xYXw--Kt.js";import"./label-NJtv9Xrj.js";import"./select-DeFnLWdd.js";import"./use-ai-providers-CVKwKs8r.js";import"./use-organization-settings-a8PuTrsa.js";import"./avatar-3b85MUU5.js";import"./required-auth-layout-DdFOKjMd.js";import"./use-org-sso-DvlbibgX.js";import"./index-CCbaPbk-.js";import"./drawer-_RQmWfAo.js";import"./collection-search-B-ZTg2tB.js";import"./tabs-CVnN0f33.js";import"./toggle-group-C7SpEcqz.js";import"./sortable.esm-DdDX2lbe.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-By0LggNB.js";import"./use-registry-connections-DZ1G13oh.js";import"./useInfiniteQuery-D-pnegbi.js";import"./use-infinite-scroll-CCIuAqs7.js";import"./extract-connection-data-qW230rJb.js";import"./card-D0ElZuSJ.js";import"./collection-tabs-7m5XLASC.js";import"./badge-CBy4Rm2Q.js";import"./textarea-Fs50NfWG.js";import"./connection-form-helpers-DeSC5iva.js";import"./authenticate-and-persist-oauth-D2tM_mGL.js";import"./mcp-oauth-BTUV7ht5.js";import"./useSuspenseInfiniteQuery-_rNdlYkE.js";import"./connect-desktop-dialog-JUjDMHMz.js";import"./decopilot-DBiOjpCq.js";import"./checkbox-UCOb4UyX.js";import"./skeleton-DUdp3Kvb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-BXkrjyua.js";import"./popover-DmLzbFpk.js";import"./command-CKe7nBfr.js";import"./index-Benu0NlA.js";import"./dropdown-menu-CppAWsT_.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DMne2oqE.js";import"./empty-state-CfAeMInj.js";import"./toolbar-Dp05iiiH.js";import"./use-mcp-tools-ChlFTYss.js";import"./use-capability-OLvFRh1U.js";import"./shell-route-loading-44H3A_LH.js";import"./index-C6ZVo7HH.js";import"./switch-ZSF60LRT.js";import"./use-debounced-autosave-OpSLLz7d.js";import"./index-D7pI5IpD.js";import"./sidebar-D5TdEONj.js";import"./search-input-SieA9wsp.js";import"./github-repo-picker-B1nNLNvt.js";import"./use-secrets-GRgGPWUb.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./view-mode-toggle-k-q_tsqg.js";import"./automation-runs-_FCeac3K.js";import"./table-CAdy-hg6.js";import"./use-members-9pMsaLP9.js";import"./use-org-auth-client-CtaccGLo.js";import"./task-status-CtOjrZ5U.js";import"./use-automations-Ca6VluJ_.js";import"./use-file-configs-aDA6u1U_.js";import"./monaco-editor-BS1tOSHv.js";import"./select-model-DmLcnpxY.js";import"./automation-list-row-BKx-xx1i.js";const _t={"new-file":{title:"New File",description:"Enter a name for the new file.",submit:"Create",placeholder:"filename.ts"},"new-folder":{title:"New Folder",description:"Enter a name for the new folder.",submit:"Create",placeholder:"folder-name"},rename:{title:"Rename",description:"Enter a new name for this item.",submit:"Rename",placeholder:"new-name"}};function en(y){const e=Ke.c(51),{open:c,mode:K,initialName:X,parentLabel:Q,isPending:A,onSubmit:V,onOpenChange:P}=y,W=X===void 0?"":X,o=A===void 0?!1:A,[p,O]=l.useState(W),[I,B]=l.useState(c),f=_t[K];c!==I&&(B(c),c&&O(W));let F;e[0]!==o||e[1]!==P?(F=E=>{!E&&!o&&P(!1)},e[0]=o,e[1]=P,e[2]=F):F=e[2];const U=F;let G;e[3]!==o||e[4]!==p||e[5]!==V?(G=async E=>{E.preventDefault();const z=p.trim();!z||o||await V(z)},e[3]=o,e[4]=p,e[5]=V,e[6]=G):G=e[6];const q=G;let L;e[7]!==f.title?(L=i.jsx($t,{children:f.title}),e[7]=f.title,e[8]=L):L=e[8];let N;e[9]!==f.description?(N=i.jsx(Ot,{children:f.description}),e[9]=f.description,e[10]=N):N=e[10];let R;e[11]!==L||e[12]!==N?(R=i.jsxs(Rt,{children:[L,N]}),e[11]=L,e[12]=N,e[13]=R):R=e[13];let S;e[14]!==Q?(S=Q&&i.jsxs("div",{className:"space-y-1.5",children:[i.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Location"}),i.jsx(We,{value:Q,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[14]=Q,e[15]=S):S=e[15];let D;e[16]===Symbol.for("react.memo_cache_sentinel")?(D=i.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:"Name"}),e[16]=D):D=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=E=>O(E.target.value),e[17]=j):j=e[17];let b;e[18]!==f.placeholder||e[19]!==o||e[20]!==p?(b=i.jsxs("div",{className:"space-y-1.5",children:[D,i.jsx(We,{id:"file-explorer-name",value:p,onChange:j,placeholder:f.placeholder,autoFocus:!0,disabled:o})]}),e[18]=f.placeholder,e[19]=o,e[20]=p,e[21]=b):b=e[21];let h;e[22]!==b||e[23]!==S?(h=i.jsxs("div",{className:"space-y-4 py-4",children:[S,b]}),e[22]=b,e[23]=S,e[24]=h):h=e[24];let x;e[25]!==P?(x=()=>P(!1),e[25]=P,e[26]=x):x=e[26];let v;e[27]!==o||e[28]!==x?(v=i.jsx(fe,{type:"button",variant:"outline",onClick:x,disabled:o,children:"Cancel"}),e[27]=o,e[28]=x,e[29]=v):v=e[29];let C;e[30]!==o||e[31]!==p?(C=!p.trim()||o,e[30]=o,e[31]=p,e[32]=C):C=e[32];let u;e[33]!==f.submit||e[34]!==o?(u=o?i.jsxs(i.Fragment,{children:[i.jsx(re,{size:14,className:"animate-spin"}),"Saving…"]}):f.submit,e[33]=f.submit,e[34]=o,e[35]=u):u=e[35];let k;e[36]!==C||e[37]!==u?(k=i.jsx(fe,{type:"submit",disabled:C,children:u}),e[36]=C,e[37]=u,e[38]=k):k=e[38];let m;e[39]!==v||e[40]!==k?(m=i.jsxs(zt,{children:[v,k]}),e[39]=v,e[40]=k,e[41]=m):m=e[41];let g;e[42]!==q||e[43]!==h||e[44]!==m||e[45]!==R?(g=i.jsx(At,{className:"sm:max-w-md",children:i.jsxs("form",{onSubmit:q,children:[R,h,m]})}),e[42]=q,e[43]=h,e[44]=m,e[45]=R,e[46]=g):g=e[46];let T;return e[47]!==U||e[48]!==c||e[49]!==g?(T=i.jsx(Wt,{open:c,onOpenChange:U,children:g}),e[47]=U,e[48]=c,e[49]=g,e[50]=T):T=e[50],T}const tn="#d9a441";function nn(y){const e=Ke.c(45),{node:c,depth:K,isExpanded:X,isSelected:Q,isLoading:A,fileVisual:V,onOpen:P,onSelect:W,onNewFile:o,onNewFolder:p,onCopyPath:O,onCopyRelativePath:I,onRename:B,onDelete:f}=y,F=A===void 0?!1:A,U=c.kind==="directory",{Icon:G,color:q}=V,L=Q&&"bg-accent";let N;e[0]!==L?(N=Ve("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-[13px] hover:bg-accent transition-colors",L),e[0]=L,e[1]=N):N=e[1];const R=`${K*14+8}px`;let S;e[2]!==R?(S={paddingLeft:R},e[2]=R,e[3]=S):S=e[3];let D;e[4]!==P||e[5]!==W?(D=()=>{W(),P()},e[4]=P,e[5]=W,e[6]=D):D=e[6];let j;e[7]!==G||e[8]!==q||e[9]!==U||e[10]!==X||e[11]!==F?(j=U?i.jsxs(i.Fragment,{children:[F?i.jsx(re,{size:14,className:"shrink-0 animate-spin text-muted-foreground"}):X?i.jsx(Vt,{size:14,className:"shrink-0 text-muted-foreground"}):i.jsx(Bt,{size:14,className:"shrink-0 text-muted-foreground"}),i.jsx(Gt,{size:16,className:"shrink-0",style:{color:tn}})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"w-3.5 shrink-0"}),i.jsx(G,{size:16,className:"shrink-0",style:{color:q}})]}),e[7]=G,e[8]=q,e[9]=U,e[10]=X,e[11]=F,e[12]=j):j=e[12];let b;e[13]!==c.name?(b=i.jsx("span",{className:"truncate",children:c.name}),e[13]=c.name,e[14]=b):b=e[14];let h;e[15]!==N||e[16]!==S||e[17]!==D||e[18]!==j||e[19]!==b?(h=i.jsx(It,{asChild:!0,children:i.jsxs("button",{type:"button",className:N,style:S,onClick:D,children:[j,b]})}),e[15]=N,e[16]=S,e[17]=D,e[18]=j,e[19]=b,e[20]=h):h=e[20];let x;e[21]!==o?(x=i.jsx(_,{onSelect:o,children:"New File"}),e[21]=o,e[22]=x):x=e[22];let v;e[23]!==p?(v=i.jsx(_,{onSelect:p,children:"New Folder"}),e[23]=p,e[24]=v):v=e[24];let C;e[25]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(Ie,{}),e[25]=C):C=e[25];let u;e[26]!==O?(u=i.jsx(_,{onSelect:O,children:"Copy Path"}),e[26]=O,e[27]=u):u=e[27];let k;e[28]!==I?(k=i.jsx(_,{onSelect:I,children:"Copy Relative Path"}),e[28]=I,e[29]=k):k=e[29];let m;e[30]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(Ie,{}),e[30]=m):m=e[30];let g;e[31]!==B?(g=i.jsx(_,{onSelect:B,children:"Rename"}),e[31]=B,e[32]=g):g=e[32];let T;e[33]!==f?(T=i.jsx(_,{variant:"destructive",onSelect:f,children:"Delete"}),e[33]=f,e[34]=T):T=e[34];let E;e[35]!==x||e[36]!==v||e[37]!==u||e[38]!==k||e[39]!==g||e[40]!==T?(E=i.jsxs(Mt,{className:"w-52",children:[x,v,C,u,k,m,g,T]}),e[35]=x,e[36]=v,e[37]=u,e[38]=k,e[39]=g,e[40]=T,e[41]=E):E=e[41];let z;return e[42]!==E||e[43]!==h?(z=i.jsxs(Kt,{children:[h,E]}),e[42]=E,e[43]=h,e[44]=z):z=e[44],z}pt.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function je(y,e,c,K){return`/api/${y}/sandbox/${encodeURIComponent(e)}/${encodeURIComponent(c)}/${K}`}function rn(y){const e=M(y);return!e||e.includes("..")||e.includes("\\")?!1:e.startsWith(".deco/blocks/")||!e.startsWith("/")&&!e.includes("://")}const sn="#94a3b8";function on(y){const e=y.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?{Icon:ae,color:"#3b82f6"}:e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?{Icon:ae,color:"#d9a441"}:e.endsWith(".json")?{Icon:yt,color:"#cb9b3f"}:e.endsWith(".css")||e.endsWith(".scss")?{Icon:ae,color:"#06b6d4"}:e.endsWith(".html")||e.endsWith(".xml")?{Icon:ae,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(e)?{Icon:wt,color:"#a855f7"}:e.endsWith(".md")||e.endsWith(".mdx")?{Icon:$e,color:"#64748b"}:{Icon:$e,color:sn}}function Wi({orgSlug:y,virtualMcpId:e,branch:c,openPath:K}){const[X,Q]=l.useState({files:[],directories:[],truncated:!1}),{files:A,directories:V}=X,[P,W]=l.useState(new Set),[o,p]=l.useState(null),[O,I]=l.useState(null),[B,f]=l.useState([]),[F,U]=l.useState(""),[G,q]=l.useState(!1),[L,N]=l.useState(!1),[,R]=l.useState(new Set),[S,D]=l.useState(new Set),j=l.useRef(0),b=l.useRef(null),h=l.useRef(new Set),x=l.useRef(new Map);function v(t){R(n=>{const r=typeof t=="function"?t(n):t;return h.current=r,r})}const[C,u]=l.useState(new Map),k=l.useRef(null),[m,g]=l.useState(null),{sendMessage:T}=Et(),{setChatOpen:E}=Pt(),z=ut(),[w,J]=l.useState(null),[H,ue]=l.useState(null),[ee,ie]=l.useState(!1);async function te(t,n){const r=await fetch(je(y,e,c,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const s=await r.json().catch(()=>({}));throw new Error(s.error??`Request failed (${r.status})`)}return r.json()}async function se(){z.invalidateQueries({queryKey:Ae(y,e,c)})}function be(t,n){navigator.clipboard.writeText(n).then(()=>$.success(`${t} copied`),()=>$.error(`Failed to copy ${t.toLowerCase()}`))}function Be(t){const n=Yt(t);if(!n)return;const r=`${y}/${e}/${c}`;z.setQueryData(Te.decofile(r),s=>{if(!s)return s;const{[n]:a,...d}=s;return d}),z.invalidateQueries({queryKey:Te.liveMeta(r)})}function Ge(t){const n=t.kind==="file"?[t.path]:A.filter(r=>r.startsWith(".deco/blocks/")).map(r=>ce(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)Be(r)}function qe(t){const n=ce(t);return B.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const s=C.get(r);return!!(s?.loaded&&s.editorValue!==s.savedContent)})}function ve(t){f(n=>n.map(r=>t(r)).filter(r=>r!==null)),p(n=>n&&t(n)),u(n=>{const r=new Map;for(const[s,a]of n){const d=t(s);d&&r.set(d,a)}return r}),I(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function Qe(t){const n=ce(t);I(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),ve(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function Ue(t){if(!w)return;const n=de(w.parentDir,t);if(we(n,A,V))throw new Error(`"${t}" already exists`);await te("write",{path:M(n),content:""}),await ne(),await se(),J(null),me(n)}async function Je(t){if(!w)return;const n=de(w.parentDir,t);if(we(n,A,V))throw new Error(`"${t}" already exists`);const r=M(n);await te("mkdir",{path:r}),Q(s=>({...s,directories:s.directories.includes(r)?s.directories:[...s.directories,r]})),await ne(),await se(),J(null),W(s=>{const a=new Set(s);for(const d of he(n))a.add(d);return a.add(n),a}),I({name:t,path:n,kind:"directory",children:[]})}async function He(t){if(!w)return;const n=w.node.path,r=ye(n),s=de(r,t);if(s===n){J(null);return}if(we(s,A,V))throw new Error(`"${t}" already exists`);await te("rename",{from:M(n),to:M(s)}),ve(a=>a===n?s:a.startsWith(`${n}/`)?de(s,a.slice(n.length+1)):a),await ne(),await se(),J(null)}async function Xe(t){ie(!0);try{await te("unlink",{path:M(t.path),recursive:t.kind==="directory"}),Ge(t),Qe(t.path),await ne(),await se(),ue(null),$.success(`Deleted "${t.name}"`)}catch(n){$.error(n instanceof Error?n.message:"Delete failed")}finally{ie(!1)}}async function Ye(t){const n=Xt(t);if(n){$.error(n);return}ie(!0);try{w?.mode==="new-file"?(await Ue(t),$.success(`Created "${t}"`)):w?.mode==="new-folder"?(await Je(t),$.success(`Created folder "${t}"`)):w?.mode==="rename"&&(await He(t),$.success(`Renamed to "${t}"`))}catch(r){$.error(r instanceof Error?r.message:"Operation failed")}finally{ie(!1)}}const Ce=l.useRef(!1);Ce.current||(Ce.current=!0,b.current=ne());const[Ze,_e]=l.useState(null);if(K&&K!==Ze){_e(K);const t=K;queueMicrotask(()=>{rn(t)&&me(t).catch(n=>{$.error(n instanceof Error?n.message:"Failed to open file")})})}async function Ne(t){const n=await te("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Se(t,n,r){if(r!==j.current)return!1;let s=!1;return Q(a=>{const d=n?Zt(a.files,a.directories,t,a.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return s=!!d.truncated,{files:d.files,directories:d.directories,truncated:s}}),s&&$.warning("File list truncated — some files may be hidden"),s}async function et(t){const n=x.current.get(t);if(n)return n;const r=j.current,s=(async()=>{const a=await Ne({pattern:"**/*",path:M(t),limit:Me}),d=Se(a,!0,r);return!d&&r===j.current&&v(Y=>{const oe=new Set(Y);return oe.add(t),oe}),d})();x.current.set(t,s);try{return await s}finally{x.current.delete(t)}}async function De(t){if(!ge(t,h.current))return!1;D(n=>new Set(n).add(t));try{return await et(t)}finally{D(n=>{const r=new Set(n);return r.delete(t),r})}}async function tt(t){const n=new Set(h.current);for(const r of he(t)){if(!ge(r,n))continue;if(await De(r))throw new Error("Folder listing truncated — expand again to load more");n.add(r)}}async function ne(){const t=++j.current;x.current.clear(),q(!0),v(new Set),W(new Set),D(new Set);try{const n=await Ne({pattern:"**/*",limit:Me,maxDepth:qt});Se(n,!1,t),N(!0)}catch{L&&$.error("Failed to refresh file tree")}finally{q(!1)}}async function ke(t){if(!C.get(t)?.loaded){u(r=>{const s=new Map(r);return s.set(t,{savedContent:"",editorValue:"",loaded:!1}),s});try{const r=await fetch(je(y,e,c,"read"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:M(t),full:!0})});if(!r.ok)return;const s=await r.json(),a=Ht(s.content??"");u(d=>{const Y=new Map(d);return Y.set(t,{savedContent:a,editorValue:a,loaded:!0}),Y})}catch{}}}async function nt(t,n){try{const r=await fetch(je(y,e,c,"write"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:M(t),content:n})});if(!r.ok){le("file save failed",{path:t,status:r.status});return}le("file saved via sandbox /write",{path:t}),z.invalidateQueries({queryKey:Ae(y,e,c)});try{const s=await Tt(y,e,c);le("git status after save",s)}catch(s){le("git status after save failed",{path:t,error:s instanceof Error?s.message:String(s)})}u(s=>{const a=new Map(s),d=a.get(t);return d&&a.set(t,{...d,savedContent:n}),a})}catch{}}function rt(t){p(t),I({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),g(null),B.includes(t)||f(n=>[...n,t]),ke(t)}function it(t){f(n=>{const r=n.filter(s=>s!==t);return o===t&&p(r[r.length-1]??null),r}),u(n=>{const r=new Map(n);return r.delete(t),r})}function Fe(t){W(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function st(t){if(ge(t,h.current))try{if(await De(t))return}catch(n){$.error(n instanceof Error?n.message:"Failed to load folder");return}Fe(t)}async function ot(t,n){if(n){Fe(t);return}await st(t)}async function me(t){await b.current,await tt(t);const n=he(t);W(r=>{const s=new Set(r);for(const a of n)s.add(a);return s}),rt(t)}function at(){return O?.kind==="directory"?O.path:O?.kind==="file"?ye(O.path):o?ye(o):"/"}function Le(t){const n=at();J({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const lt=Qt(A,V),Ee=Ut(lt,P),Pe=F?Ee.filter(t=>t.node.name.toLowerCase().includes(F.toLowerCase())):Ee,Z=o?C.get(o):null,ct=Z?.loaded&&Z.editorValue!==Z.savedContent,pe=H?qe(H.path):[],dt=(t,n)=>{k.current=t,t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await nt(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),s=t.getModel();if(!r||!s||!o)return;const a=s.getValueInRange(r);g({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:a})})};function ft(t){if(!m)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${m.filePath}\``,`**Lines:** ${m.lineStart}–${m.lineEnd}`];if(m.selectedCode){const r=xe(m.filePath),s=m.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,s,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),E(!0),T({parts:[{type:"text",text:n.join(`
2
- `)}]}),g(null)}return G&&!L?i.jsx("div",{className:"flex items-center justify-center h-full w-full",children:i.jsx(re,{size:20,className:"animate-spin text-muted-foreground"})}):i.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[i.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[i.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[i.jsxs("div",{className:"relative min-w-0 flex-1",children:[i.jsx(ht,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),i.jsx("input",{type:"text",value:F,onChange:t=>U(t.target.value),placeholder:"Search files...","aria-label":"Search files",className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs outline-none placeholder:text-muted-foreground focus:ring-1 focus:ring-ring"})]}),i.jsxs(Oe,{children:[i.jsx(Re,{asChild:!0,children:i.jsx(fe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New file",onClick:()=>Le("new-file"),children:i.jsx(xt,{size:14})})}),i.jsx(ze,{side:"bottom",children:"New file"})]}),i.jsxs(Oe,{children:[i.jsx(Re,{asChild:!0,children:i.jsx(fe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":"New folder",onClick:()=>Le("new-folder"),children:i.jsx(gt,{size:14})})}),i.jsx(ze,{side:"bottom",children:"New folder"})]})]}),i.jsx(bt,{className:"flex-1",children:i.jsxs("div",{className:"py-1",children:[Pe.map(t=>{const{node:n,depth:r}=t,s=n.kind==="directory",a=P.has(n.path),d=O?.path===n.path,Y=Jt(n.path,n.kind),oe=s&&S.has(n.path);return i.jsx(nn,{node:n,depth:r,isExpanded:a,isSelected:d,isLoading:oe,fileVisual:on(n.name),onSelect:()=>I(n),onOpen:()=>{s?ot(n.path,a):me(n.path)},onNewFile:()=>J({mode:"new-file",node:n,parentDir:Y}),onNewFolder:()=>J({mode:"new-folder",node:n,parentDir:Y}),onCopyPath:()=>be("Path",ce(n.path)),onCopyRelativePath:()=>be("Relative path",M(n.path)),onRename:()=>J({mode:"rename",node:n,parentDir:Y}),onDelete:()=>ue(n)},n.path)}),L&&Pe.length===0&&i.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:F?`No files match "${F}"`:"No files found"})]})})]}),i.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[B.length>0&&i.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:B.map(t=>{const n=C.get(t),r=n?.loaded&&n.editorValue!==n.savedContent,s=o===t,a=t.split("/").pop()??t;return i.jsxs("div",{className:Ve("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",s?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{p(t),ke(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":s,children:[i.jsx("span",{className:"truncate max-w-32",children:a}),r&&i.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),i.jsx("button",{type:"button",className:"ml-1 rounded p-0.5 hover:bg-accent-foreground/10",onClick:d=>{d.stopPropagation(),it(t)},children:i.jsx(jt,{size:12})})]},t)})}),m&&i.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:i.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl border border-border bg-background/95 px-3 py-1.5 shadow-lg backdrop-blur",onSubmit:t=>{t.preventDefault();const r=t.currentTarget.elements.namedItem("askAiInput");r.value.trim()&&ft(r.value)},children:[i.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:"Ask the AI...",className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&g(null)}}),i.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-foreground text-background transition-opacity",title:"Send",children:i.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[i.jsx("title",{children:"Send"}),i.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),i.jsx("div",{className:"flex-1 overflow-hidden",children:o&&Z?.loaded?i.jsx(mt,{language:xe(o),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:Z.editorValue,path:o,onChange:t=>{const n=o;n&&u(r=>{const s=new Map(r),a=s.get(n);return a&&s.set(n,{...a,editorValue:t??""}),s})},onMount:dt,loading:i.jsx("div",{className:"flex items-center justify-center h-full w-full",children:i.jsx(re,{size:20,className:"animate-spin text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},o):o&&!Z?.loaded?i.jsx("div",{className:"flex items-center justify-center h-full w-full",children:i.jsx(re,{size:20,className:"animate-spin text-muted-foreground"})}):i.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:"Select a file to edit"})}),o&&i.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-[11px] text-muted-foreground shrink-0",children:[i.jsx("span",{className:"truncate",children:o}),i.jsxs("span",{children:[ct?"Modified":"Saved"," ·"," ",xe(o)]})]})]}),i.jsx(en,{open:w!==null,mode:w?.mode??"new-file",initialName:w?.mode==="rename"?w.node.name:"",parentLabel:w&&w.mode!=="rename"?w.parentDir==="/"?"/":M(w.parentDir):void 0,isPending:ee,onSubmit:Ye,onOpenChange:t=>{!t&&!ee&&J(null)}}),i.jsx(vt,{open:H!==null,onOpenChange:t=>{!t&&!ee&&ue(null)},children:i.jsxs(Ct,{children:[i.jsxs(Nt,{children:[i.jsxs(St,{children:["Delete ",H?.kind==="directory"?"folder":"file","?"]}),i.jsxs(Dt,{children:["This will permanently delete"," ",i.jsx("span",{className:"font-mono",children:H?.name}),H?.kind==="directory"?" and everything inside it.":".",pe.length>0&&i.jsxs(i.Fragment,{children:[" ",pe.length===1?"One open file has unsaved changes that will be lost.":`${pe.length} open files have unsaved changes that will be lost.`]})]})]}),i.jsxs(kt,{children:[i.jsx(Ft,{disabled:ee,children:"Cancel"}),i.jsx(Lt,{disabled:ee||!H,onClick:t=>{t.preventDefault(),H&&Xe(H)},children:"Delete"})]})]})})]})}export{Wi as FileExplorer};
@@ -1 +0,0 @@
1
- import{b as M,w as $,m as U,G as Q,F as Y,d as q,s as P,t as w,K as L,j as n,ae as I,z as Z,C as k,c as F,r as T,B as H,L as B,o as J}from"./index-DILk6pqr.js";import{P as N}from"./index-D7pI5IpD.js";import{u as W}from"./use-org-auth-client-CtaccGLo.js";import{u as X}from"./use-debounced-autosave-OpSLLz7d.js";import{A as ee}from"./avatar-3b85MUU5.js";import{I as V}from"./input-DntqEqec.js";import{S as G,a as K,b as A,c as te}from"./settings-section-BXkrjyua.js";import{D as ne}from"./domain-settings-DYoOK4LM.js";import{u as ae}from"./studio-tools-DWzikkvB.js";import{c as se,b as oe,d as ie,A as re,e as le,g as ce,a as ue,f as de}from"./alert-dialog-D5KOx-3H.js";import{R as me}from"./require-capability-BlqPTqxe.js";import"./sidebar-D5TdEONj.js";import"./LayoutLeft-BsVzrTOG.js";import"./tooltip-DNJ6cRlV.js";import"./sheet-CgvO6KT7.js";import"./X-CXRx6PGX.js";import"./User01-DR_UC5XH.js";import"./card-D0ElZuSJ.js";import"./ArrowUpRight-C7uYzZ0Z.js";import"./badge-CBy4Rm2Q.js";import"./select-DeFnLWdd.js";import"./ChevronUp-CKICjFfX.js";import"./ChevronDown-BVJUps1_.js";import"./use-capability-OLvFRh1U.js";import"./access-gate-B_rz72ZQ.js";import"./capability-load-error-DmenvLwh.js";const ge=Z({name:k().min(1,"Name is required").max(255,"Name is too long"),slug:k().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:k().optional()});function fe(e){const t=F.c(13),{value:v,onChange:h,name:o,disabled:d}=e,m=T.useRef(null);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>m.current?.click(),t[0]=l):l=t[0];const r=l;let c;t[1]!==h?(c=x=>{const j=x.target.files?.[0];if(!j)return;if(j.size>2097152){w.error("Image must be smaller than 2MB");return}const u=new FileReader;u.onerror=pe,u.onloadend=()=>{u.result&&h(u.result),m.current&&(m.current.value="")},u.readAsDataURL(j)},t[1]=h,t[2]=c):c=t[2];const a=c;let s;t[3]!==d||t[4]!==a?(s=n.jsx("input",{ref:m,type:"file",accept:"image/*",onChange:a,className:"hidden",disabled:d}),t[3]=d,t[4]=a,t[5]=s):s=t[5];const i=v||void 0,p=o??"?";let g;t[6]!==i||t[7]!==p?(g=n.jsx(ee,{url:i,fallback:p,shape:"square",size:"base"}),t[6]=i,t[7]=p,t[8]=g):g=t[8];let f;return t[9]!==d||t[10]!==s||t[11]!==g?(f=n.jsxs("button",{type:"button",onClick:r,disabled:d,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[s,g]}),t[9]=d,t[10]=s,t[11]=g,t[12]=f):f=t[12],f}function pe(){return w.error("Failed to read image")}function he(){const e=M(),{org:t}=$(),v=W(),h=U(),o=Q({resolver:Y(ge),values:{name:t.name??"",slug:t.slug??"",logo:t.logo??""}}),d=q({mutationFn:async a=>{const s={name:a.name,slug:a.slug};a.logo&&(s.logo=a.logo);const i=await v.organization.update({data:s});if(i?.error)throw new Error(i.error.message||"Failed to update organization");return i},onSuccess:(a,s)=>{P("organization_settings_updated",{organization_id:t.id,fields:Object.keys(s)}),h.invalidateQueries({queryKey:L.organizations()}),h.invalidateQueries({queryKey:L.activeOrganization(t.slug)}),w.success("Organization updated successfully"),a?.data?.slug&&a.data.slug!==t.slug&&e({to:"/$org/settings/general",params:{org:a.data.slug}})},onError:(a,s)=>{P("organization_settings_update_failed",{organization_id:t.id,fields:Object.keys(s),error:a instanceof Error?a.message:String(a)}),w.error(a instanceof Error?a.message:"Failed to update organization")}}),{schedule:m,flush:l}=X({save:async()=>{const a=o.control._formState.dirtyFields;if(Object.keys(a).length===0||!await o.trigger())return;const i=o.getValues(),p=o.control._defaultValues;o.reset(i,{keepValues:!0});try{await d.mutateAsync(i)}catch{o.reset(p,{keepValues:!0})}}}),r=o.formState.errors,c=typeof window<"u"?`${window.location.host}/`:"";return n.jsx(G,{children:n.jsxs(K,{children:[n.jsx(A,{title:"Logo",description:"Recommended size is 256x256px",action:n.jsx(fe,{value:o.watch("logo"),onChange:a=>{o.setValue("logo",a??"",{shouldDirty:!0}),l()},name:o.watch("name")})}),n.jsx(A,{title:"Name",action:n.jsx(I,{control:o.control,name:"name",render:({field:a})=>n.jsx(V,{id:"org-name",...a,onChange:s=>{a.onChange(s),m()},onBlur:()=>{a.onBlur(),l()},placeholder:"Organization name",className:"w-[280px]"})})}),n.jsx(A,{title:"URL",action:n.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[c&&n.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:c}),n.jsx(I,{control:o.control,name:"slug",render:({field:a})=>n.jsx("input",{id:"org-slug",value:a.value??"",name:a.name,ref:a.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:s=>{const i=s.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");o.setValue("slug",i,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),m()},onBlur:()=>{a.onBlur(),l()}})})]})}),(r.name||r.slug||r.logo)&&n.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[r.name&&n.jsx("p",{className:"text-xs text-destructive",children:r.name.message}),r.slug&&n.jsx("p",{className:"text-xs text-destructive",children:r.slug.message}),r.logo&&n.jsx("p",{className:"text-xs text-destructive",children:r.logo.message})]})]})})}function xe(){const e=F.c(42),{org:t}=$(),[v,h]=T.useState(!1),[o,d]=T.useState(""),m=ae();let l;e[0]!==t.id||e[1]!==m?(l=async()=>{await m.call("ORGANIZATION_DELETE",{id:t.id})},e[0]=t.id,e[1]=m,e[2]=l):l=e[2];let r;e[3]!==t.id||e[4]!==t.slug?(r=()=>{P("organization_deleted",{organization_id:t.id}),localStorage.getItem(B.lastOrgSlug())===t.slug&&localStorage.removeItem(B.lastOrgSlug()),J(),w.success("Organization deleted"),window.location.href="/"},e[3]=t.id,e[4]=t.slug,e[5]=r):r=e[5];let c;e[6]!==l||e[7]!==r?(c={mutationFn:l,onSuccess:r,onError:je},e[6]=l,e[7]=r,e[8]=c):c=e[8];const a=q(c);let s;e[9]===Symbol.for("react.memo_cache_sentinel")?(s=()=>h(!0),e[9]=s):s=e[9];let i;e[10]!==a.isPending?(i=n.jsx(G,{title:"Danger Zone",description:"Irreversible actions that affect your entire organization.",children:n.jsx(K,{className:"border-destructive/40",children:n.jsx(A,{title:"Delete organization",description:"Permanently delete this organization and all of its data. This action cannot be undone.",action:n.jsx(H,{variant:"destructive",size:"sm",onClick:s,disabled:a.isPending,children:"Delete"})})})}),e[10]=a.isPending,e[11]=i):i=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=O=>{h(O),O||d("")},e[12]=p):p=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsx(se,{children:"Delete Organization?"}),e[13]=g):g=e[13];let f;e[14]!==t.name?(f=n.jsxs("p",{children:["This will permanently delete all data associated with"," ",n.jsx("span",{className:"font-medium text-foreground",children:t.name}),". This action cannot be undone."]}),e[14]=t.name,e[15]=f):f=e[15];let x;e[16]!==t.name?(x=n.jsxs("p",{className:"mt-3 mb-1.5",children:["Type"," ",n.jsx("span",{className:"font-medium text-foreground",children:t.name})," ","to confirm:"]}),e[16]=t.name,e[17]=x):x=e[17];let j;e[18]===Symbol.for("react.memo_cache_sentinel")?(j=O=>d(O.target.value),e[18]=j):j=e[18];let u;e[19]!==o||e[20]!==t.name?(u=n.jsx(V,{value:o,onChange:j,placeholder:t.name,autoFocus:!0}),e[19]=o,e[20]=t.name,e[21]=u):u=e[21];let b;e[22]!==u||e[23]!==f||e[24]!==x?(b=n.jsxs(oe,{children:[g,n.jsx(ie,{asChild:!0,children:n.jsxs("div",{children:[f,x,u]})})]}),e[22]=u,e[23]=f,e[24]=x,e[25]=b):b=e[25];let D;e[26]===Symbol.for("react.memo_cache_sentinel")?(D=n.jsx(re,{children:"Cancel"}),e[26]=D):D=e[26];let y;e[27]!==a?(y=()=>a.mutate(),e[27]=a,e[28]=y):y=e[28];const E=o!==t.name||a.isPending,R=a.isPending?"Deleting…":"Delete organization";let S;e[29]!==y||e[30]!==E||e[31]!==R?(S=n.jsxs(le,{children:[D,n.jsx(ce,{onClick:y,disabled:E,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:R})]}),e[29]=y,e[30]=E,e[31]=R,e[32]=S):S=e[32];let z;e[33]!==b||e[34]!==S?(z=n.jsxs(ue,{children:[b,S]}),e[33]=b,e[34]=S,e[35]=z):z=e[35];let C;e[36]!==v||e[37]!==z?(C=n.jsx(de,{open:v,onOpenChange:p,children:z}),e[36]=v,e[37]=z,e[38]=C):C=e[38];let _;return e[39]!==C||e[40]!==i?(_=n.jsxs(n.Fragment,{children:[i,C]}),e[39]=C,e[40]=i,e[41]=_):_=e[41],_}function je(e){w.error(e instanceof Error?e.message:"Failed to delete organization")}function ve(){const e=F.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(N.Content,{children:n.jsx(N.Body,{children:n.jsxs(te,{children:[n.jsx(N.Title,{children:"Organization"}),n.jsx(he,{}),n.jsx(ne,{}),n.jsx(xe,{})]})})})}),e[0]=t):t=e[0],t}function Ue(){const e=F.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(me,{capability:"org:manage",area:"general settings",children:n.jsx(ve,{})}),e[0]=t):t=e[0],t}export{Ue as default};