decocms 2.175.1 → 2.175.3

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 (298) hide show
  1. package/dist/client/assets/{AlertCircle-De9oqjty.js → AlertCircle-Bu9DNwe-.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-BaG4OcCg.js → AlignLeft-CJvAdEi-.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-PFFBPH3j.js → ArrowDown-BrkOB1Av.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-CPWCs_Od.js → ArrowLeft-BLUY3Pjw.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-C6Q-EpUw.js → ArrowUp-Bl5YEbbF.js} +1 -1
  6. package/dist/client/assets/{Check-BfKCyKXX.js → Check-CN56KhoF.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-DiRi76qb.js → CheckCircle-B4pYO1ZS.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-ZekLHdFZ.js → CheckDone01-DgXembQE.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-DC3VT092.js → CheckVerified02-BTUqey_K.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-BHMaRWRt.js → ChevronDown-BURkaeCD.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-0cpA2yNq.js → ChevronLeft-C1fUg8Ja.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-1g9z-Z5h.js → ChevronRight-Df5oEIdG.js} +1 -1
  13. package/dist/client/assets/{ChevronUp-1s_S3eDF.js → ChevronUp-Ql_IhfwF.js} +1 -1
  14. package/dist/client/assets/{Clock-rHd8cQAO.js → Clock-DY1djxCP.js} +1 -1
  15. package/dist/client/assets/{Code01-CoTQP8pZ.js → Code01-ClhNhs6L.js} +1 -1
  16. package/dist/client/assets/{Coins01-D7lfLTbO.js → Coins01-C0DqkhBz.js} +1 -1
  17. package/dist/client/assets/{Container-DwxLlgWA.js → Container-De-pv4QL.js} +1 -1
  18. package/dist/client/assets/{Copy01-CIUDy0Hr.js → Copy01-E3kqWO3T.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-T9TmjQN-.js → Dataflow03-DVfc8SxS.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-CmCKbvuJ.js → DotsHorizontal-zFut2S5z.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-Y8XpM2B_.js → DotsVertical-ZWNLrGdE.js} +1 -1
  22. package/dist/client/assets/{Download01-LinNp3zy.js → Download01-D_QoltgV.js} +1 -1
  23. package/dist/client/assets/{Edit01-Dw-lPBk-.js → Edit01-KzFCPjcw.js} +1 -1
  24. package/dist/client/assets/{Edit05-Bx682Mm6.js → Edit05-DFdmrfVO.js} +1 -1
  25. package/dist/client/assets/{Eye-JuDcZhJz.js → Eye-CUyEl5IU.js} +1 -1
  26. package/dist/client/assets/{EyeOff-9_-SJWcU.js → EyeOff-D3iBtnD1.js} +1 -1
  27. package/dist/client/assets/{File02-bFwU_wEK.js → File02-CqU_tyTM.js} +1 -1
  28. package/dist/client/assets/{File06-CU5oU1OI.js → File06-B23HFdp6.js} +1 -1
  29. package/dist/client/assets/{FilterLines-BaTxnUjH.js → FilterLines-B4Jg_hkv.js} +1 -1
  30. package/dist/client/assets/{Globe01-DUjsFcPS.js → Globe01-BAfb6FiF.js} +1 -1
  31. package/dist/client/assets/{Globe02-k3_A41kp.js → Globe02-DAjgLqHS.js} +1 -1
  32. package/dist/client/assets/{Grid01-DBOkAm2V.js → Grid01-B7q4cvPD.js} +1 -1
  33. package/dist/client/assets/{Hash02-gqJDwuju.js → Hash02-BPlWtian.js} +1 -1
  34. package/dist/client/assets/{Home02-DfEb-Myv.js → Home02-BYbFBx09.js} +1 -1
  35. package/dist/client/assets/{Image01-I9pAeT0N.js → Image01-C62qGXSk.js} +1 -1
  36. package/dist/client/assets/{Inbox01-BgDmihAV.js → Inbox01-BF4_faho.js} +1 -1
  37. package/dist/client/assets/{InfoCircle-LX1SVC24.js → InfoCircle-DhO0vGS4.js} +1 -1
  38. package/dist/client/assets/{Key01-DAjAUWfr.js → Key01-Bfc7gsTd.js} +1 -1
  39. package/dist/client/assets/{LayersTwo01-C-XZtFtv.js → LayersTwo01-CsbV79W9.js} +1 -1
  40. package/dist/client/assets/{LayoutLeft-BvuIBX8d.js → LayoutLeft-BjhMzXil.js} +1 -1
  41. package/dist/client/assets/{Link01-q2vhCqdM.js → Link01-CBvOA17k.js} +1 -1
  42. package/dist/client/assets/{LinkExternal01-QGWpvftd.js → LinkExternal01-v1Fp9c9j.js} +1 -1
  43. package/dist/client/assets/{List-CuV23QYs.js → List-DxiRK8pO.js} +1 -1
  44. package/dist/client/assets/{Loading01-BNn4YU_K.js → Loading01-CDOurw-F.js} +1 -1
  45. package/dist/client/assets/{Lock01-DJQX15kR.js → Lock01-jAI5MKWg.js} +1 -1
  46. package/dist/client/assets/{Play-C7yKo0dH.js → Play-DSE8IZVS.js} +1 -1
  47. package/dist/client/assets/{Plus-CT_Gcwl2.js → Plus-OTc7Ql1V.js} +1 -1
  48. package/dist/client/assets/{RefreshCcw01-uL9q48A4.js → RefreshCcw01-QnfLSKau.js} +1 -1
  49. package/dist/client/assets/{Save01-CuwI4Bxq.js → Save01-Df_qJsfN.js} +1 -1
  50. package/dist/client/assets/{SearchMd-BLeX5weN.js → SearchMd-D6jy19cO.js} +1 -1
  51. package/dist/client/assets/{Settings01-2AkYiqYr.js → Settings01-Bl2wNagM.js} +1 -1
  52. package/dist/client/assets/{Shield01-D6IOCC-Z.js → Shield01-B145EOAd.js} +1 -1
  53. package/dist/client/assets/{Terminal-Dlvh4GS2.js → Terminal-D3ILbCbK.js} +1 -1
  54. package/dist/client/assets/{Tool01-CjSIsyxE.js → Tool01-BBVRBzC0.js} +1 -1
  55. package/dist/client/assets/{Trash01-YPQczxci.js → Trash01-DhGTBhjv.js} +1 -1
  56. package/dist/client/assets/{Upload01-BlEN4mwB.js → Upload01-DvtQC2yf.js} +1 -1
  57. package/dist/client/assets/{Users03-B7X28dbt.js → Users03-B2n8Cd76.js} +1 -1
  58. package/dist/client/assets/{X-B_f76BPZ.js → X-DVxsAMCH.js} +1 -1
  59. package/dist/client/assets/{XAxis-Du5m1KMx.js → XAxis-D14vbkR0.js} +1 -1
  60. package/dist/client/assets/{XCircle-DDLf4PgL.js → XCircle-l3Ck-71_.js} +1 -1
  61. package/dist/client/assets/{XClose-eeK1fS1n.js → XClose-C8g1LxXV.js} +1 -1
  62. package/dist/client/assets/{Zap-DHey7Hu_.js → Zap-DUVjsAS1.js} +1 -1
  63. package/dist/client/assets/{agent-connections-preview-D6uKmygR.js → agent-connections-preview-D0-1Au_l.js} +1 -1
  64. package/dist/client/assets/agent-detail-BALBko9m.js +2 -0
  65. package/dist/client/assets/agents-BuGtmP_d.js +1 -0
  66. package/dist/client/assets/ai-providers-logos-NSo4Ckh1.js +1 -0
  67. package/dist/client/assets/{alert-dialog-BVglQjyM.js → alert-dialog-DfOenbUZ.js} +1 -1
  68. package/dist/client/assets/{auth-catchall-Bfllc4Ni.js → auth-catchall-BAl96W8M.js} +1 -1
  69. package/dist/client/assets/automation-detail-D16eCAb7.js +1 -0
  70. package/dist/client/assets/automations-UpOWNkQ6.js +1 -0
  71. package/dist/client/assets/{avatar-OE2URZfM.js → avatar-DexhTB4g.js} +1 -1
  72. package/dist/client/assets/{badge-CAg946Xk.js → badge-C7XTRm7k.js} +1 -1
  73. package/dist/client/assets/{binder-DTBFGqjl.js → binder--omYMrhv.js} +1 -1
  74. package/dist/client/assets/{breadcrumb-aP02JuZO.js → breadcrumb-h9Dq7GJ0.js} +1 -1
  75. package/dist/client/assets/{card-RQxLVCBk.js → card-Cm-keK-z.js} +1 -1
  76. package/dist/client/assets/{chart-D9IwJUjP.js → chart-BkIsuiHb.js} +1 -1
  77. package/dist/client/assets/{checkbox-DLsMmmhu.js → checkbox-B92JdB3t.js} +1 -1
  78. package/dist/client/assets/{collapsible-CGr-TiAc.js → collapsible-B5VFLcG-.js} +1 -1
  79. package/dist/client/assets/{collection-detail-CZQpkHig.js → collection-detail-BUpBhGP1.js} +2 -2
  80. package/dist/client/assets/{collection-display-button-VOymjalV.js → collection-display-button-CEqdF8O7.js} +1 -1
  81. package/dist/client/assets/{collection-search-62vwaqdq.js → collection-search-CPQlTmfx.js} +1 -1
  82. package/dist/client/assets/{collection-table-wrapper-DPJfuSg9.js → collection-table-wrapper-BVpN3w_L.js} +1 -1
  83. package/dist/client/assets/{collection-tabs-FJx5TF4Z.js → collection-tabs-DwGvAiHF.js} +1 -1
  84. package/dist/client/assets/{command-ChmbB2jp.js → command-BYr1e0yf.js} +1 -1
  85. package/dist/client/assets/connect-DKqC06uo.js +1 -0
  86. package/dist/client/assets/{connection-card-D9I87KkT.js → connection-card-BDqdYEuX.js} +1 -1
  87. package/dist/client/assets/connection-detail-CHMgcK2a.js +1 -0
  88. package/dist/client/assets/{connection-status-D_iX92lK.js → connection-status-B854Axgl.js} +1 -1
  89. package/dist/client/assets/connections-DxOgNXy0.js +1 -0
  90. package/dist/client/assets/{constants-XtX-WKGm.js → constants-BZUBXkLq.js} +1 -1
  91. package/dist/client/assets/constants-DgbSVhNJ.js +1 -0
  92. package/dist/client/assets/{context-CtrnP3HC.js → context-GHqlq7Gd.js} +1 -1
  93. package/dist/client/assets/{create-organization-dialog-DlsDrfHE.js → create-organization-dialog-Cum8PmLv.js} +1 -1
  94. package/dist/client/assets/{create-project-dialog-BV-JjiBR.js → create-project-dialog-d10TQ9K8.js} +1 -1
  95. package/dist/client/assets/{danger-B3KgXwQ9.js → danger-qmT_QFAs.js} +1 -1
  96. package/dist/client/assets/{danger-zone-C_4VhnMp.js → danger-zone-daxj8FQE.js} +1 -1
  97. package/dist/client/assets/{dependencies-BHUeYRA7.js → dependencies-sz-4aCSB.js} +1 -1
  98. package/dist/client/assets/{dialog-_XYw8lZC.js → dialog-PlqYdiap.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-DzFMEBVS.js → dropdown-menu-V8gWmDzD.js} +1 -1
  100. package/dist/client/assets/dynamic-plugin-layout-PDo9TaOG.js +1 -0
  101. package/dist/client/assets/{editable-task-title-B7Ktbs3r.js → editable-task-title-CXa2sXGX.js} +1 -1
  102. package/dist/client/assets/{empty-state-D4GX29pL.js → empty-state-BUpyINsX.js} +1 -1
  103. package/dist/client/assets/{empty-state-AMuFIqs3.js → empty-state-CADB2xYt.js} +1 -1
  104. package/dist/client/assets/{env-vars-editor-DTKmdK-v.js → env-vars-editor-Crsr3jiO.js} +1 -1
  105. package/dist/client/assets/{extract-connection-data-CS_Bn7Ri.js → extract-connection-data-CBWW8njI.js} +1 -1
  106. package/dist/client/assets/{file-browser-OSAi_CZb.js → file-browser-Ba38jp_3.js} +2 -2
  107. package/dist/client/assets/{form-BN7_f2uj.js → form-CnUcVXlu.js} +1 -1
  108. package/dist/client/assets/{general-B9J0F1Xq.js → general-D78WAnZa.js} +1 -1
  109. package/dist/client/assets/{grid-view-BH674f3N.js → grid-view-D92iM48j.js} +1 -1
  110. package/dist/client/assets/{home-Dam4fMEZ.js → home-Dh3Zkl7g.js} +1 -1
  111. package/dist/client/assets/{index-zjV4p_E5.js → index-AtuNXtl1.js} +1 -1
  112. package/dist/client/assets/{index-CuSj4QrF.js → index-BAS3V89m.js} +1 -1
  113. package/dist/client/assets/index-BG9x5ELw.js +25 -0
  114. package/dist/client/assets/index-Bs-gkatC.js +1 -0
  115. package/dist/client/assets/{index-Cn8BPdHZ.js → index-CMdtjEkH.js} +1 -1
  116. package/dist/client/assets/{index-CcA_QriT.js → index-Ce1KA469.js} +1 -1
  117. package/dist/client/assets/index-Ci8WAd55.css +1 -0
  118. package/dist/client/assets/{index-C-NLwTON.js → index-D0LkSlcd.js} +1 -1
  119. package/dist/client/assets/{index-DxP-spTj.js → index-DDOXVfmG.js} +1 -1
  120. package/dist/client/assets/{index-Da9ggy60.js → index-DINW__d9.js} +1 -1
  121. package/dist/client/assets/{index-DsOJvxnb.js → index-SkQC2bL2.js} +3 -3
  122. package/dist/client/assets/{infiniteQueryObserver-BE0Fq7u7.js → infiniteQueryObserver-dFlgfKVl.js} +1 -1
  123. package/dist/client/assets/{input-CUT8DBv1.js → input-C4xXFdLa.js} +1 -1
  124. package/dist/client/assets/{integration-icon-CVxvM4fR.js → integration-icon-9nN5AvVn.js} +1 -1
  125. package/dist/client/assets/{label-iPw5smAw.js → label-B5UIAzjB.js} +1 -1
  126. package/dist/client/assets/layout-C93ItuDu.js +1 -0
  127. package/dist/client/assets/{layout-C2ZnDBkW.js → layout-DIeoK390.js} +1 -1
  128. package/dist/client/assets/{login-DJvdi7W3.js → login-Cum9TENA.js} +1 -1
  129. package/dist/client/assets/{logo-upload-DlKQk0GB.js → logo-upload-HuBGdFvy.js} +1 -1
  130. package/dist/client/assets/{markdown-CKKBcXcE.js → markdown-C7LUMDS1.js} +1 -1
  131. package/dist/client/assets/{mcp-app-renderer-IX_OR3wW.js → mcp-app-renderer-8UT29L5G.js} +1 -1
  132. package/dist/client/assets/{mcp-server-card-Cq5E9kuT.js → mcp-server-card--KsSGXj4.js} +1 -1
  133. package/dist/client/assets/mcp-server-detail-DpFZrrxK.js +2 -0
  134. package/dist/client/assets/members-Cv4ALw5c.js +3 -0
  135. package/dist/client/assets/{monaco-editor-J8rInsT2.js → monaco-editor-CGQB1ouQ.js} +1 -1
  136. package/dist/client/assets/monitoring-dashboard-edit-_8LF_BxB.js +1 -0
  137. package/dist/client/assets/{monitoring-dashboard-view-Dt4aILCV.js → monitoring-dashboard-view-CZdUWDWw.js} +2 -2
  138. package/dist/client/assets/monitoring-jUgSe2al.js +4 -0
  139. package/dist/client/assets/{monitoring-stats-row-Dx_W_1nT.js → monitoring-stats-row-DOJg3snj.js} +1 -1
  140. package/dist/client/assets/{oauth-callback-COUada1q.js → oauth-callback-DUHDiUnV.js} +1 -1
  141. package/dist/client/assets/{oauth-callback-ai-provider-CqS-ybCD.js → oauth-callback-ai-provider-DJ-b74-1.js} +1 -1
  142. package/dist/client/assets/org-ai-providers-DUCq5EUw.js +1 -0
  143. package/dist/client/assets/page-DAq05p7G.js +1 -0
  144. package/dist/client/assets/page-SgyDrWHD.js +1 -0
  145. package/dist/client/assets/{plugin-empty-state-CRLH-_5S.js → plugin-empty-state-CrnlpA9V.js} +1 -1
  146. package/dist/client/assets/{plugin-empty-state-Dt2dvxD9.js → plugin-empty-state-Dnds-DCV.js} +1 -1
  147. package/dist/client/assets/{plugin-header-DLDBKovk.js → plugin-header-C1XYEeTv.js} +1 -1
  148. package/dist/client/assets/{plugin-header-CkWzqJkZ.js → plugin-header-CIduSygp.js} +1 -1
  149. package/dist/client/assets/plugins-CJcJdSWL.js +1 -0
  150. package/dist/client/assets/{popover-CF3EN_0o.js → popover-U_QlVu0r.js} +1 -1
  151. package/dist/client/assets/project-app-view-D9t5-mJm.js +1 -0
  152. package/dist/client/assets/project-layout-BL0jttJZ.js +1 -0
  153. package/dist/client/assets/{project-plugins-DRIvSpW5.js → project-plugins-By0aRQeH.js} +1 -1
  154. package/dist/client/assets/projects-list-C2BO1TYf.js +1 -0
  155. package/dist/client/assets/{registry-layout-MGTBGYDW.js → registry-layout-CNpSd9I3.js} +1 -1
  156. package/dist/client/assets/{registry-utils-Cd3t_Kmp.js → registry-utils-Bi8LTB_e.js} +1 -1
  157. package/dist/client/assets/{reports-layout-Cu0HmCBt.js → reports-layout-DH4L5-lG.js} +1 -1
  158. package/dist/client/assets/{reset-password-Dwr8terU.js → reset-password-BiJO11OF.js} +1 -1
  159. package/dist/client/assets/{resizable-D4LJctEl.js → resizable-XfUJo45G.js} +1 -1
  160. package/dist/client/assets/{save-actions-MzYbolsq.js → save-actions-AenTNPs2.js} +1 -1
  161. package/dist/client/assets/{scroll-area-B5XbONJS.js → scroll-area-BvqSXnHA.js} +1 -1
  162. package/dist/client/assets/{select-DRPG5csU.js → select-Bqr12jkn.js} +1 -1
  163. package/dist/client/assets/{select-virtual-mcp-B8NgSgPI.js → select-virtual-mcp-DorfgjZR.js} +1 -1
  164. package/dist/client/assets/{sheet-BQuKOEiL.js → sheet-D7MnTm5h.js} +1 -1
  165. package/dist/client/assets/shell-layout-F6dMRYN1.js +3 -0
  166. package/dist/client/assets/{sidebar-settings-BqDjI96r.js → sidebar-settings-ZSwNsZur.js} +1 -1
  167. package/dist/client/assets/{skeleton-DJFpR-1P.js → skeleton-xiE088f2.js} +1 -1
  168. package/dist/client/assets/{spinner-CqAVfcvO.js → spinner-Bt_p6wlU.js} +1 -1
  169. package/dist/client/assets/{store-invite-JCf8JSic.js → store-invite-BxsZ0zsl.js} +1 -1
  170. package/dist/client/assets/{switch-BQjzAGvm.js → switch-BIAgKxiJ.js} +1 -1
  171. package/dist/client/assets/{table-DJbHB5IL.js → table-c-SrSmwK.js} +1 -1
  172. package/dist/client/assets/{tabs-CkPDQzeX.js → tabs-CytiJeE2.js} +1 -1
  173. package/dist/client/assets/{task-status-wkv2GdSY.js → task-status-9RY3Ya8o.js} +16 -16
  174. package/dist/client/assets/tasks-C43Ik9tC.js +1 -0
  175. package/dist/client/assets/{tasks-panel-TN0GeEUK.js → tasks-panel-CftcenZ4.js} +1 -1
  176. package/dist/client/assets/{textarea-CTzX43MZ.js → textarea-Buug1Hxe.js} +1 -1
  177. package/dist/client/assets/{time-range-picker-DNJ6dRiN.js → time-range-picker-BlD0TDtN.js} +1 -1
  178. package/dist/client/assets/{toggle-group-y2h19HHT.js → toggle-group-abCGptw4.js} +1 -1
  179. package/dist/client/assets/{tools-list-Db7zzadA.js → tools-list-BdA1jEJI.js} +1 -1
  180. package/dist/client/assets/{tooltip-XyKE4lZa.js → tooltip-Ckpai_jH.js} +1 -1
  181. package/dist/client/assets/{topbar-portal-D3fRQWai.js → topbar-portal-B-Tb-3gt.js} +1 -1
  182. package/dist/client/assets/{types-B3niHy47.js → types-CUEMI47Y.js} +1 -1
  183. package/dist/client/assets/{use-automations-C4CL-jAO.js → use-automations-Cw8FAF0H.js} +1 -1
  184. package/dist/client/assets/{use-binding-BfjFWpEn.js → use-binding-f1akiPTf.js} +1 -1
  185. package/dist/client/assets/{use-collections-DSWhP4jg.js → use-collections-C3CSj681.js} +1 -1
  186. package/dist/client/assets/{use-connection-DmR852Js.js → use-connection-DSkVzqSP.js} +1 -1
  187. package/dist/client/assets/{use-copy-dSR0w-bG.js → use-copy-F9tiQWTi.js} +1 -1
  188. package/dist/client/assets/{use-create-virtual-mcp-DXWAjide.js → use-create-virtual-mcp-C5n2ShE6.js} +1 -1
  189. package/dist/client/assets/{use-infinite-scroll-CvaIKLMy.js → use-infinite-scroll-C1Dhvj0C.js} +1 -1
  190. package/dist/client/assets/{use-install-from-registry-_FQYQGQx.js → use-install-from-registry-BQfcs7M8.js} +1 -1
  191. package/dist/client/assets/{use-list-state-Ck8sSm9J.js → use-list-state-Djxe5eyh.js} +1 -1
  192. package/dist/client/assets/{use-mcp-prompts-C-XU_-dc.js → use-mcp-prompts-D5tu2gbi.js} +1 -1
  193. package/dist/client/assets/{use-mcp-resources-Bxkx1Ub1.js → use-mcp-resources-D0eHe68n.js} +1 -1
  194. package/dist/client/assets/{use-mcp-tools-BXmfFmar.js → use-mcp-tools-DTZxAm-y.js} +1 -1
  195. package/dist/client/assets/{use-members-B-Cx3SpJ.js → use-members-DdPysVve.js} +1 -1
  196. package/dist/client/assets/{use-mobile-O8KVzGuv.js → use-mobile-DqlomLIB.js} +1 -1
  197. package/dist/client/assets/{use-project-Bg5pX2Ab.js → use-project-Cdk7AuZE.js} +1 -1
  198. package/dist/client/assets/{use-store-discovery-DPE_0zuT.js → use-store-discovery-C_al4z4H.js} +1 -1
  199. package/dist/client/assets/{use-view-mode-ve-Q_Sd0.js → use-view-mode-Ag3VBJ77.js} +1 -1
  200. package/dist/client/assets/{use-virtual-mcp-C9XdHCA_.js → use-virtual-mcp-V0XoWMM_.js} +1 -1
  201. package/dist/client/assets/useInfiniteQuery-BXEdoCXW.js +1 -0
  202. package/dist/client/assets/{useMutation-B_cFG709.js → useMutation-CXgAMvoC.js} +1 -1
  203. package/dist/client/assets/useQuery-CtOvMPbo.js +1 -0
  204. package/dist/client/assets/useSuspenseInfiniteQuery-Ds_6ilsi.js +1 -0
  205. package/dist/client/assets/{user-rS26WEu1.js → user-C2BDT4Rq.js} +1 -1
  206. package/dist/client/assets/workflow-Bp2ajWVc.js +1 -0
  207. package/dist/client/index.html +2 -2
  208. package/dist/server/cli.js +243 -243
  209. package/dist/server/node_modules/async-exit-hook/CHANGELOG.md +62 -0
  210. package/dist/server/node_modules/async-exit-hook/index.js +171 -0
  211. package/dist/server/node_modules/async-exit-hook/license +21 -0
  212. package/dist/server/node_modules/async-exit-hook/package.json +66 -0
  213. package/dist/server/node_modules/async-exit-hook/readme.md +118 -0
  214. package/dist/server/node_modules/pg-int8/LICENSE +13 -0
  215. package/dist/server/node_modules/pg-int8/README.md +16 -0
  216. package/dist/server/node_modules/pg-int8/index.js +100 -0
  217. package/dist/server/node_modules/pg-int8/package.json +24 -0
  218. package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
  219. package/dist/server/node_modules/postgres-array/index.js +97 -0
  220. package/dist/server/node_modules/{pg/LICENSE → postgres-array/license} +6 -6
  221. package/dist/server/node_modules/postgres-array/package.json +35 -0
  222. package/dist/server/node_modules/postgres-array/readme.md +43 -0
  223. package/dist/server/node_modules/postgres-bytea/index.js +33 -0
  224. package/dist/server/node_modules/postgres-bytea/license +21 -0
  225. package/dist/server/node_modules/postgres-bytea/package.json +34 -0
  226. package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
  227. package/dist/server/node_modules/postgres-date/index.js +116 -0
  228. package/dist/server/node_modules/postgres-date/license +21 -0
  229. package/dist/server/node_modules/postgres-date/package.json +33 -0
  230. package/dist/server/node_modules/postgres-date/readme.md +49 -0
  231. package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
  232. package/dist/server/node_modules/postgres-interval/index.js +125 -0
  233. package/dist/server/node_modules/postgres-interval/license +21 -0
  234. package/dist/server/node_modules/postgres-interval/package.json +36 -0
  235. package/dist/server/node_modules/postgres-interval/readme.md +48 -0
  236. package/dist/server/node_modules/split2/LICENSE +13 -0
  237. package/dist/server/node_modules/split2/README.md +85 -0
  238. package/dist/server/node_modules/split2/bench.js +27 -0
  239. package/dist/server/node_modules/split2/index.js +141 -0
  240. package/dist/server/node_modules/split2/package.json +39 -0
  241. package/dist/server/node_modules/split2/test.js +409 -0
  242. package/dist/server/server.js +217 -217
  243. package/package.json +1 -1
  244. package/dist/client/assets/agent-detail-BS4g93cA.js +0 -2
  245. package/dist/client/assets/agents-BuWI7PBX.js +0 -1
  246. package/dist/client/assets/ai-providers-logos-W57Qm-EN.js +0 -1
  247. package/dist/client/assets/automation-detail-DNo-sbc_.js +0 -1
  248. package/dist/client/assets/automations-CCXftgU_.js +0 -1
  249. package/dist/client/assets/circle-alert-DCE_cWKa.js +0 -1
  250. package/dist/client/assets/connect-Cak7aHsQ.js +0 -1
  251. package/dist/client/assets/connection-detail-ZRvu6X4P.js +0 -1
  252. package/dist/client/assets/connections-Bi0oPT3Y.js +0 -1
  253. package/dist/client/assets/constants-B4Swgi3d.js +0 -1
  254. package/dist/client/assets/dynamic-plugin-layout-b0Zt6Dxk.js +0 -1
  255. package/dist/client/assets/index-D5cL24p_.css +0 -1
  256. package/dist/client/assets/index-MKlLgXIW.js +0 -25
  257. package/dist/client/assets/index-X4FDee1r.js +0 -1
  258. package/dist/client/assets/layout-CA_pUlCy.js +0 -1
  259. package/dist/client/assets/mcp-server-detail-CTGb-hF0.js +0 -2
  260. package/dist/client/assets/members-CYtrIFR5.js +0 -3
  261. package/dist/client/assets/monitoring-dashboard-edit-6gWIXCOX.js +0 -1
  262. package/dist/client/assets/monitoring-gb_hJ2kW.js +0 -4
  263. package/dist/client/assets/org-ai-providers-BDwPbfg4.js +0 -1
  264. package/dist/client/assets/page-BrXIXidh.js +0 -1
  265. package/dist/client/assets/page-s-fs9Bly.js +0 -1
  266. package/dist/client/assets/plugins-DkI_FXfU.js +0 -1
  267. package/dist/client/assets/project-app-view-Boof680i.js +0 -1
  268. package/dist/client/assets/project-layout-CxwbtNi5.js +0 -1
  269. package/dist/client/assets/projects-list-DmvsbHJl.js +0 -1
  270. package/dist/client/assets/shell-layout-ZGvfzjfQ.js +0 -3
  271. package/dist/client/assets/tasks-zu-x8h5W.js +0 -1
  272. package/dist/client/assets/use-llm-BkLbMZPM.js +0 -1
  273. package/dist/client/assets/use-local-storage-CxC8ozOe.js +0 -1
  274. package/dist/client/assets/useInfiniteQuery-DEfXPFTs.js +0 -1
  275. package/dist/client/assets/useQuery-D2ShO4od.js +0 -1
  276. package/dist/client/assets/useSuspenseInfiniteQuery-CT40dICu.js +0 -1
  277. package/dist/client/assets/workflow-C4-p-dLU.js +0 -1
  278. package/dist/server/node_modules/pg/README.md +0 -95
  279. package/dist/server/node_modules/pg/esm/index.mjs +0 -20
  280. package/dist/server/node_modules/pg/lib/client.js +0 -743
  281. package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
  282. package/dist/server/node_modules/pg/lib/connection.js +0 -221
  283. package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
  284. package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
  285. package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
  286. package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
  287. package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
  288. package/dist/server/node_modules/pg/lib/defaults.js +0 -91
  289. package/dist/server/node_modules/pg/lib/index.js +0 -73
  290. package/dist/server/node_modules/pg/lib/native/client.js +0 -323
  291. package/dist/server/node_modules/pg/lib/native/index.js +0 -2
  292. package/dist/server/node_modules/pg/lib/native/query.js +0 -165
  293. package/dist/server/node_modules/pg/lib/query.js +0 -252
  294. package/dist/server/node_modules/pg/lib/result.js +0 -109
  295. package/dist/server/node_modules/pg/lib/stream.js +0 -83
  296. package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
  297. package/dist/server/node_modules/pg/lib/utils.js +0 -217
  298. package/dist/server/node_modules/pg/package.json +0 -76
@@ -1 +0,0 @@
1
- import{c as de,u as rt,e as ct,j as t,O as re,B as z,E as wt,r as Y,x as Dt,d as It,f as At,at as Pt,aw as $t,t as Et,q as Lt,b as Ot,y as he,w as Q}from"./index-DsOJvxnb.js";import{g as zt}from"./generate-id-Dyweu44Y.js";import{C as Vt}from"./collection-display-button-VOymjalV.js";import{C as Ft}from"./collection-search-62vwaqdq.js";import{C as Ut}from"./collection-tabs-FJx5TF4Z.js";import{C as be}from"./connection-card-D9I87KkT.js";import{I as ge}from"./integration-icon-CVxvM4fR.js";import{f as lt}from"./format-time-CMKyl-GC.js";import{D as Fe,b as Ue,c as Me,d as Be,a as at,e as dt}from"./dialog-_XYw8lZC.js";import{i as Ye}from"./ChevronRight-1g9z-Z5h.js";import{n as ae}from"./Container-DwxLlgWA.js";import{s as mt}from"./Plus-CT_Gcwl2.js";import{a as Je}from"./Tool01-CjSIsyxE.js";import{i as Mt,C as Bt}from"./connection-status-D_iX92lK.js";import{E as Rt}from"./empty-state-D4GX29pL.js";import{P as xe}from"./index-X4FDee1r.js";import{U as Ht}from"./user-rS26WEu1.js";import{u as Xt}from"./use-binding-BfjFWpEn.js";import{u as Kt}from"./use-infinite-scroll-CvaIKLMy.js";import{u as Wt}from"./use-local-storage-CxC8ozOe.js";import{u as Gt}from"./use-list-state-Ck8sSm9J.js";import{u as qt}from"./use-store-discovery-DPE_0zuT.js";import{f as Qt,g as Ze}from"./registry-utils-Cd3t_Kmp.js";import{s as Yt}from"./slugify-CEUa2lfQ.js";import{f as Ie,a as Ae,b as Pe,c as $e,d as Ee,e as Le,A as Oe,h as ze}from"./alert-dialog-BVglQjyM.js";import{B as Ve}from"./badge-CAg946Xk.js";import{B as Jt,a as Zt,b as en,c as tn}from"./breadcrumb-aP02JuZO.js";import{C as pt}from"./checkbox-DLsMmmhu.js";import{D as et,a as tt,b as nt,c as Ce}from"./dropdown-menu-DzFMEBVS.js";import{a as nn,F as Z,b as ee,c as te,d as ne,f as se}from"./form-BN7_f2uj.js";import{I as le}from"./input-CUT8DBv1.js";import{S as sn,a as on,b as rn,c as cn,d as fe}from"./select-DRPG5csU.js";import{T as ln}from"./textarea-CTzX43MZ.js";import{a as an,b as st}from"./use-connection-DmR852Js.js";import{u as dn,a as mn}from"./constants-XtX-WKGm.js";import{b as pn}from"./use-virtual-mcp-C9XdHCA_.js";import{i as un}from"./CheckVerified02-DC3VT092.js";import{t as xn}from"./ChevronDown-BHMaRWRt.js";import{i as fn}from"./DotsVertical-Y8XpM2B_.js";import{s as hn}from"./Eye-JuDcZhJz.js";import{s as De}from"./Globe02-k3_A41kp.js";import{i as ut}from"./Loading01-BNn4YU_K.js";import{i as gn}from"./Terminal-Dlvh4GS2.js";import{s as xt}from"./Trash01-YPQczxci.js";import{s as jn}from"./XClose-eeK1fS1n.js";import{r as yn,E as vn,c as Cn,e as ft}from"./env-vars-editor-DTKmdK-v.js";import"./ArrowDown-PFFBPH3j.js";import"./ArrowUp-C6Q-EpUw.js";import"./Check-BfKCyKXX.js";import"./Grid01-DBOkAm2V.js";import"./List-CuV23QYs.js";import"./tooltip-XyKE4lZa.js";import"./index-zjV4p_E5.js";import"./SearchMd-BLeX5weN.js";import"./card-RQxLVCBk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./X-B_f76BPZ.js";import"./AlertCircle-De9oqjty.js";import"./CheckCircle-DiRi76qb.js";import"./avatar-OE2URZfM.js";import"./useQuery-D2ShO4od.js";import"./binder-DTBFGqjl.js";import"./useMutation-B_cFG709.js";import"./use-view-mode-ve-Q_Sd0.js";import"./use-mobile-O8KVzGuv.js";import"./useInfiniteQuery-DEfXPFTs.js";import"./infiniteQueryObserver-BE0Fq7u7.js";import"./label-iPw5smAw.js";import"./ChevronUp-1s_S3eDF.js";import"./use-collections-DSWhP4jg.js";function Nn(i){const e=de.c(63),{open:s,onClose:r,appName:c,appIcon:l,appDescription:m,instances:g}=i,{org:N}=rt(),j=ct(),d=N.slug;let x;e[0]!==j||e[1]!==r||e[2]!==d?(x=function(V){j({to:"/$org/$project/mcps/$connectionId",params:{org:d,project:re,connectionId:V}}),r()},e[0]=j,e[1]=r,e[2]=d,e[3]=x):x=e[3];const v=x;let f;e[4]!==c||e[5]!==j||e[6]!==r||e[7]!==d?(f=function(){j({to:"/$org/$project/mcps",params:{org:d,project:re},search:{install:c}}),r()},e[4]=c,e[5]=j,e[6]=r,e[7]=d,e[8]=f):f=e[8];const h=f;let y;if(e[9]!==g){const w=new Set;y=[];for(const V of g)for(const W of V.tools??[])w.has(W.name)||(w.add(W.name),y.push({name:W.name,description:W.description,connectionId:V.id}));e[9]=g,e[10]=y}else y=e[10];let k;e[11]!==j||e[12]!==r||e[13]!==d?(k=function(V,W){j({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:d,project:re,connectionId:W,collectionName:"tools",itemId:encodeURIComponent(V)}}),r()},e[11]=j,e[12]=r,e[13]=d,e[14]=k):k=e[14];const T=k;let C;e[15]!==r?(C=w=>!w&&r(),e[15]=r,e[16]=C):C=e[16];let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(ae,{}),e[17]=b):b=e[17];let D;e[18]!==l||e[19]!==c?(D=t.jsx(ge,{icon:l,name:c,size:"md",className:"shrink-0 shadow-sm mt-0.5",fallbackIcon:b}),e[18]=l,e[19]=c,e[20]=D):D=e[20];let I;e[21]!==c?(I=t.jsx(Fe,{className:"text-base font-semibold leading-snug",children:c}),e[21]=c,e[22]=I):I=e[22];let $;e[23]!==m?($=m&&t.jsx("p",{className:"text-sm text-muted-foreground mt-0.5 line-clamp-2",children:m}),e[23]=m,e[24]=$):$=e[24];let O;e[25]!==I||e[26]!==$?(O=t.jsxs("div",{className:"min-w-0",children:[I,$]}),e[25]=I,e[26]=$,e[27]=O):O=e[27];let R;e[28]!==D||e[29]!==O?(R=t.jsx(Ue,{className:"px-6 pt-6 pb-5 shrink-0",children:t.jsxs("div",{className:"flex items-start gap-4",children:[D,O]})}),e[28]=D,e[29]=O,e[30]=R):R=e[30];const P=g.length!==1?"s":"";let F;e[31]!==P?(F=t.jsxs("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:["Connection",P]}),e[31]=P,e[32]=F):F=e[32];let J;e[33]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(mt,{size:14}),e[33]=J):J=e[33];let q;e[34]!==h?(q=t.jsxs(z,{variant:"outline",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:h,children:[J,"Add connection"]}),e[34]=h,e[35]=q):q=e[35];let U;e[36]!==F||e[37]!==q?(U=t.jsxs("div",{className:"flex items-center justify-between px-6 py-3",children:[F,q]}),e[36]=F,e[37]=q,e[38]=U):U=e[38];let X;if(e[39]!==g||e[40]!==v){let w;e[42]!==v?(w=V=>t.jsxs("button",{type:"button",className:"w-full flex items-center gap-3 px-6 py-3 hover:bg-muted/40 transition-colors text-left cursor-pointer",onClick:()=>v(V.id),children:[t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:V.title}),(V.updated_at||V.created_at)&&t.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:["Last updated"," ",lt(new Date(V.updated_at??V.created_at))]})]}),t.jsx(Ye,{size:16,className:"text-muted-foreground shrink-0"})]},V.id),e[42]=v,e[43]=w):w=e[43],X=g.map(w),e[39]=g,e[40]=v,e[41]=X}else X=e[41];let E;e[44]!==X?(E=t.jsx("div",{className:"pb-2",children:X}),e[44]=X,e[45]=E):E=e[45];let M;e[46]!==U||e[47]!==E?(M=t.jsxs("div",{children:[U,E]}),e[46]=U,e[47]=E,e[48]=M):M=e[48];let _;e[49]!==l||e[50]!==T||e[51]!==y?(_=y.length>0&&t.jsxs("div",{children:[t.jsxs("div",{className:"flex items-center gap-2 px-6 py-3",children:[t.jsx(Je,{size:14,className:"text-muted-foreground"}),t.jsxs("span",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:["Actions (",y.length,")"]})]}),t.jsx("div",{className:"pb-2",children:y.map(w=>t.jsxs("button",{type:"button",className:"w-full flex items-start gap-3 px-6 py-2.5 hover:bg-muted/40 transition-colors text-left cursor-pointer",onClick:()=>T(w.name,w.connectionId),children:[t.jsx(ge,{icon:l,name:w.name,size:"xs",className:"shrink-0 mt-0.5",fallbackIcon:t.jsx(Je,{size:12})}),t.jsxs("div",{className:"min-w-0 flex-1",children:[t.jsx("p",{className:"text-sm font-medium text-foreground",children:w.name}),w.description&&t.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:w.description})]}),t.jsx(Ye,{size:16,className:"text-muted-foreground shrink-0 mt-0.5"})]},w.name))})]}),e[49]=l,e[50]=T,e[51]=y,e[52]=_):_=e[52];let K;e[53]!==M||e[54]!==_?(K=t.jsxs("div",{className:"flex-1 overflow-y-auto divide-y divide-border",children:[M,_]}),e[53]=M,e[54]=_,e[55]=K):K=e[55];let ie;e[56]!==R||e[57]!==K?(ie=t.jsxs(Me,{className:"sm:max-w-xl p-0 gap-0 overflow-hidden flex flex-col max-h-[80vh]",children:[R,K]}),e[56]=R,e[57]=K,e[58]=ie):ie=e[58];let ce;return e[59]!==s||e[60]!==ie||e[61]!==C?(ce=t.jsx(Be,{open:s,onOpenChange:C,children:ie}),e[59]=s,e[60]=ie,e[61]=C,e[62]=ce):ce=e[62],ce}function ot(i){return i.title.trim().replace(/\s+\(\d+\)$/,"")}function bn(i){const e=new Map;for(const c of i){if(c.connection_type==="VIRTUAL")continue;const l=ot(c),m=e.get(l);m?m.push(c):e.set(l,[c])}const s=[],r=new Set;for(const c of i){if(c.connection_type==="VIRTUAL")continue;const l=ot(c);if(r.has(l))continue;r.add(l);const m=e.get(l),g=m[0];m.length===1?s.push({type:"single",connection:g}):s.push({type:"group",key:l,icon:g.icon,title:g.app_name?g.title.replace(/\s*\(\d+\)\s*$/,""):g.title,connections:m})}return s}function Sn(i){const e=new Set,s=[];for(const r of i)r.created_by&&!e.has(r.created_by)&&(e.add(r.created_by),s.push(r.created_by));return s}function Se(i){const e=i.trim();if(!e)return"";try{const s=new URL(e),r=s.pathname.length>1?s.pathname.replace(/\/+$/,""):s.pathname;return`${s.origin}${r}`}catch{return e.replace(/\/+$/,"")}}function _n(i){const e=i.trim().split(/\s+/).filter(Boolean);if(e.length<2)return null;const s=e[0]?.toLowerCase();if(s!=="npx"&&s!=="bunx")return null;const c=e.slice(1).find(l=>!l.startsWith("-"));return c?{packageName:c}:null}function Ne(i){const{uiType:e}=i,s=Se(i.connectionUrl??"");if((e==="HTTP"||e==="SSE"||e==="Websocket")&&s===Se("https://api.githubcopilot.com/mcp/"))return{id:"github",title:"GitHub",description:"GitHub Copilot MCP",token:{label:"GitHub PAT",placeholder:"github_pat_…",helperText:"Paste a GitHub Personal Access Token (PAT)"}};const r=(i.npxPackage??"").trim();return e==="NPX"&&r==="@perplexity-ai/mcp-server"?{id:"perplexity",title:"Perplexity",description:"Perplexity MCP Server",envVarKeys:["PERPLEXITY_API_KEY"]}:null}function it(i){if(i.registryItems.length===0||i.uiType!=="HTTP"&&i.uiType!=="SSE"&&i.uiType!=="Websocket")return null;const e=Se(i.connectionUrl??"");if(!e)return null;const s=i.registryItems.find(l=>(l.server?.remotes??[]).some(g=>Se(g.url??"")===e));if(!s)return null;const r=s.title||s.name||s.server?.title||s.server?.name||"",c=s.server?.description||s.description||s.summary||null;return r?{id:"registry",title:r,description:c}:null}function kn(i,e){const s={command:"npx",args:["-y",i]},r=ft(e);return Object.keys(r).length>0&&(s.envVars=r),s}function Tn(i,e,s,r){const c={command:i};e.trim()&&(c.args=e.trim().split(/\s+/)),s?.trim()&&(c.cwd=s.trim());const l=ft(r);return Object.keys(l).length>0&&(c.envVars=l),c}function wn(i){return i.command==="npx"}function Dn(i){return i.args?.find(e=>!e.startsWith("-"))??""}function In(i){return{command:i.command,args:i.args?.join(" ")??"",cwd:i.cwd??""}}function An(i,e){switch(e.type){case"edit":return{mode:"editing",connection:e.connection};case"delete":return{mode:"deleting",connection:e.connection};case"force-delete":return{mode:"force-deleting",connection:e.connection,agentNames:e.agentNames};case"close":return{mode:"idle"}}}function Pn(i){const e=de.c(74),{group:s,onOpen:r,selectionMode:c,selectedIds:l,onToggleSelect:m}=i;let g;if(e[0]!==s.connections||e[1]!==l){let P;e[3]!==l?(P=F=>l.has(F.id),e[3]=l,e[4]=P):P=e[4],g=s.connections.every(P),e[0]=s.connections,e[1]=l,e[2]=g}else g=e[2];const N=g;let j;if(e[5]!==s.connections||e[6]!==l){let P;e[8]!==l?(P=F=>l.has(F.id),e[8]=l,e[9]=P):P=e[9],j=s.connections.some(P),e[5]=s.connections,e[6]=l,e[7]=j}else j=e[7];const d=j;let x,v,f,h,y,k,T,C,b,D,I;if(e[10]!==N||e[11]!==s.connections||e[12]!==s.icon||e[13]!==s.title||e[14]!==r||e[15]!==m||e[16]!==l||e[17]!==c||e[18]!==d){const P=Sn(s.connections),F=s.connections.reduce(En,s.connections[0]),J=F.updated_at??F.created_at;x=be;const q=`${s.connections.length} instances`;e[30]!==s.icon||e[31]!==s.title||e[32]!==q?(b={title:s.title,icon:s.icon,description:q},e[30]=s.icon,e[31]=s.title,e[32]=q,e[33]=b):b=e[33],e[34]!==N||e[35]!==s.connections||e[36]!==r||e[37]!==m||e[38]!==l||e[39]!==c?(D=()=>c?(()=>{for(const _ of s.connections)N?l.has(_.id)&&m(_.id):l.has(_.id)||m(_.id)})():r(),e[34]=N,e[35]=s.connections,e[36]=r,e[37]=m,e[38]=l,e[39]=c,e[40]=D):D=e[40];const U=c&&N&&"ring-2 ring-primary",X=c&&d&&!N&&"ring-1 ring-primary/50";e[41]!==U||e[42]!==X?(I=he(U,X),e[41]=U,e[42]=X,e[43]=I):I=e[43],e[44]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ae,{}),e[44]=v):v=e[44],e[45]!==N||e[46]!==s.connections||e[47]!==m||e[48]!==l||e[49]!==c||e[50]!==d?(f=c?t.jsx(pt,{checked:N?!0:d?"indeterminate":!1,onCheckedChange:()=>{for(const _ of s.connections)N?l.has(_.id)&&m(_.id):l.has(_.id)||m(_.id)}}):t.jsxs(Ve,{variant:"secondary",className:"text-xs tabular-nums",children:["x",s.connections.length]}),e[45]=N,e[46]=s.connections,e[47]=m,e[48]=l,e[49]=c,e[50]=d,e[51]=f):f=e[51];let E;e[52]!==s.connections?(E=s.connections.slice(0,6).map($n),e[52]=s.connections,e[53]=E):E=e[53],e[54]!==E?(h=t.jsx("div",{className:"flex items-center gap-1",children:E}),e[54]=E,e[55]=h):h=e[55],T="flex items-center justify-between text-xs text-muted-foreground w-full min-w-0";const M=P.map(_=>t.jsx(Ht,{id:_,size:"3xs",avatarOnly:P.length>1},_));e[56]!==M?(C=t.jsx("div",{className:"flex items-center -space-x-1.5",children:M}),e[56]=M,e[57]=C):C=e[57],y="shrink-0 ml-2",k=J?lt(new Date(J)):"—",e[10]=N,e[11]=s.connections,e[12]=s.icon,e[13]=s.title,e[14]=r,e[15]=m,e[16]=l,e[17]=c,e[18]=d,e[19]=x,e[20]=v,e[21]=f,e[22]=h,e[23]=y,e[24]=k,e[25]=T,e[26]=C,e[27]=b,e[28]=D,e[29]=I}else x=e[19],v=e[20],f=e[21],h=e[22],y=e[23],k=e[24],T=e[25],C=e[26],b=e[27],D=e[28],I=e[29];let $;e[58]!==y||e[59]!==k?($=t.jsx("span",{className:y,children:k}),e[58]=y,e[59]=k,e[60]=$):$=e[60];let O;e[61]!==$||e[62]!==T||e[63]!==C?(O=t.jsxs("div",{className:T,children:[C,$]}),e[61]=$,e[62]=T,e[63]=C,e[64]=O):O=e[64];let R;return e[65]!==x||e[66]!==v||e[67]!==f||e[68]!==h||e[69]!==O||e[70]!==b||e[71]!==D||e[72]!==I?(R=t.jsx(t.Fragment,{children:t.jsx(x,{connection:b,onClick:D,className:I,fallbackIcon:v,headerActions:f,body:h,footer:O})}),e[65]=x,e[66]=v,e[67]=f,e[68]=h,e[69]=O,e[70]=b,e[71]=D,e[72]=I,e[73]=R):R=e[73],R}function $n(i){return t.jsx(Bt,{status:i.status},i.id)}function En(i,e){const s=e.updated_at??e.created_at,r=i.updated_at??i.created_at;return s?r?new Date(s)>new Date(r)?e:i:e:i}function Ln(i){const e=de.c(28),{count:s,total:r,onSelectAll:c,onDeselectAll:l,onDelete:m,onAddToAgent:g,onToggleStatus:N,onCancel:j}=i;if(s===0)return null;let d;e[0]!==s?(d=t.jsxs("div",{className:"text-xs text-muted-foreground pr-1 tabular-nums",children:[s," selected"]}),e[0]=s,e[1]=d):d=e[1];let x;e[2]!==s||e[3]!==l||e[4]!==c||e[5]!==r?(x=s<r?t.jsxs(z,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:c,children:["Select all (",r,")"]}):t.jsx(z,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:l,children:"Clear selection"}),e[2]=s,e[3]=l,e[4]=c,e[5]=r,e[6]=x):x=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(mt,{size:13}),e[7]=v):v=e[7];let f;e[8]!==g?(f=t.jsxs(z,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:g,children:[v,"Add to Agent"]}),e[8]=g,e[9]=f):f=e[9];let h;e[10]!==N?(h=t.jsx(z,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>N("active"),children:"Enable"}),e[10]=N,e[11]=h):h=e[11];let y;e[12]!==N?(y=t.jsx(z,{variant:"outline",size:"sm",className:"h-7 text-xs px-2",onClick:()=>N("inactive"),children:"Disable"}),e[12]=N,e[13]=y):y=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(xt,{size:13}),e[14]=k):k=e[14];let T;e[15]!==m?(T=t.jsxs(z,{variant:"destructive",size:"sm",className:"h-7 text-xs px-2",onClick:m,children:[k,"Delete"]}),e[15]=m,e[16]=T):T=e[16];let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(jn,{size:13}),e[17]=C):C=e[17];let b;e[18]!==j?(b=t.jsx(z,{variant:"ghost",size:"sm",className:"h-7 text-xs px-2",onClick:j,children:C}),e[18]=j,e[19]=b):b=e[19];let D;return e[20]!==d||e[21]!==b||e[22]!==x||e[23]!==f||e[24]!==h||e[25]!==y||e[26]!==T?(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:[d,x,f,h,y,T,b]})}),e[20]=d,e[21]=b,e[22]=x,e[23]=f,e[24]=h,e[25]=y,e[26]=T,e[27]=D):D=e[27],D}function On(i){const e=de.c(25),{open:s,onOpenChange:r,agents:c,onConfirm:l}=i,[m,g]=Y.useState(null);let N;e[0]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsxs(Ue,{children:[t.jsx(Fe,{children:"Add to Agent"}),t.jsx(at,{children:"Select an agent to add the selected connections to."})]}),e[0]=N):N=e[0];let j;e[1]!==c||e[2]!==m?(j=c.length===0?t.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"No agents found"}):c.map(C=>t.jsxs("button",{type:"button",onClick:()=>g(C.id),className:he("flex items-center gap-3 w-full rounded-md px-3 py-2 text-left transition-colors",m===C.id?"bg-primary/10 ring-1 ring-primary":"hover:bg-muted/50"),children:[t.jsx(ge,{icon:C.icon,name:C.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:C.title}),C.description&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:C.description})]})]},C.id)),e[1]=c,e[2]=m,e[3]=j):j=e[3];let d;e[4]!==j?(d=t.jsx("div",{className:"max-h-60 overflow-auto py-2 space-y-1",children:j}),e[4]=j,e[5]=d):d=e[5];let x;e[6]!==r?(x=t.jsx(z,{variant:"outline",onClick:()=>r(!1),children:"Cancel"}),e[6]=r,e[7]=x):x=e[7];const v=!m;let f;e[8]!==l||e[9]!==r||e[10]!==m?(f=()=>{m&&(l(m),r(!1),g(null))},e[8]=l,e[9]=r,e[10]=m,e[11]=f):f=e[11];let h;e[12]!==v||e[13]!==f?(h=t.jsx(z,{disabled:v,onClick:f,children:"Add"}),e[12]=v,e[13]=f,e[14]=h):h=e[14];let y;e[15]!==x||e[16]!==h?(y=t.jsxs(dt,{children:[x,h]}),e[15]=x,e[16]=h,e[17]=y):y=e[17];let k;e[18]!==d||e[19]!==y?(k=t.jsxs(Me,{className:"sm:max-w-[400px]",children:[N,d,y]}),e[18]=d,e[19]=y,e[20]=k):k=e[20];let T;return e[21]!==r||e[22]!==s||e[23]!==k?(T=t.jsx(Be,{open:s,onOpenChange:r,children:k}),e[21]=r,e[22]=s,e[23]=k,e[24]=T):T=e[24],T}function zn(i){const e=de.c(20),{open:s,onOpenChange:r,count:c,onConfirm:l}=i,m=c!==1?"s":"";let g;e[0]!==c||e[1]!==m?(g=t.jsxs($e,{children:["Delete ",c," connection",m,"?"]}),e[0]=c,e[1]=m,e[2]=g):g=e[2];const N=c!==1?"s":"";let j;e[3]!==N?(j=t.jsxs(Ee,{children:["This will permanently delete the selected connection",N,". This action cannot be undone."]}),e[3]=N,e[4]=j):j=e[4];let d;e[5]!==g||e[6]!==j?(d=t.jsxs(Pe,{children:[g,j]}),e[5]=g,e[6]=j,e[7]=d):d=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(Oe,{children:"Cancel"}),e[8]=x):x=e[8];const v=c!==1?"s":"";let f;e[9]!==c||e[10]!==l||e[11]!==v?(f=t.jsxs(Le,{children:[x,t.jsxs(ze,{onClick:l,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:["Delete ",c," connection",v]})]}),e[9]=c,e[10]=l,e[11]=v,e[12]=f):f=e[12];let h;e[13]!==d||e[14]!==f?(h=t.jsxs(Ae,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=h):h=e[15];let y;return e[16]!==r||e[17]!==s||e[18]!==h?(y=t.jsx(Ie,{open:s,onOpenChange:r,children:h}),e[16]=r,e[17]=s,e[18]=h,e[19]=y):y=e[19],y}function Vn(){const{org:i}=rt(),e=Dt(),s=ct(),r=It({strict:!1}),{data:c}=At.useSession(),{stdioEnabled:l}=Pt(),m=Gt({namespace:i.slug,resource:"connections"}),g=an(),N=st(m),j=st(),[d,x]=Y.useReducer(An,{mode:"idle"}),[v,f]=Y.useState(new Set),h=v.size>0,[y,k]=Y.useState(!1),[T,C]=Y.useState(!1),[b,D]=Y.useState("all"),[I,$]=Y.useState(null),[O,R]=Y.useState("ALL"),[P,F]=Y.useState("ALL"),J=pn(),U=N.filter(n=>!(n.connection_type==="VIRTUAL"||O!=="ALL"&&n.connection_type!==O||P!=="ALL"&&n.status!==P)),X=bn(U),E=n=>{f(o=>{const a=new Set(o);return a.has(n)?a.delete(n):a.add(n),a})},M=()=>{f(new Set)},_=Xt(j).sort((n,o)=>{const a=n.app_name==="@deco/management-mcp",u=o.app_name==="@deco/management-mcp";return a&&!u?1:!a&&u?-1:0}),[K,ie]=Wt($t.selectedRegistry(i.slug),n=>n??""),ce=(K?_.find(n=>n.id===K):void 0)??_[0],w=ce?.id??"",V=Qt(ce?.tools),W=qt({registryId:w,listToolName:V}),_e=W.items,ht=Kt(W.loadMore,W.hasMore,W.isLoadingMore),Re=new Set(j.filter(n=>n.connection_type!=="VIRTUAL"&&n.app_name).map(n=>n.app_name)),ke=m.search.toLowerCase(),He=b==="all"?_e.filter(n=>{if(!ke)return!0;const o=n._meta?.["mcp.mesh"],a=[o?.friendly_name,n.server?.name,n.server?.title,n.name,n.title,n.id].filter(Boolean).join(" "),u=[o?.short_description,o?.mesh_description,n.server?.description,n.description].filter(Boolean).join(" ");return a.toLowerCase().includes(ke)||u.toLowerCase().includes(ke)}):[],Te=He.filter(n=>n.verified||n._meta?.["mcp.mesh"]?.verified||n.meta?.verified),we=He.filter(n=>!n.verified&&!n._meta?.["mcp.mesh"]?.verified&&!n.meta?.verified),gt=b==="all"?[]:X,je=n=>{const o=Yt(n.name||n.title||n.server?.title||""),a=typeof n.id=="string"&&n.id.includes("/"),u=typeof n.server?.name=="string"&&n.server.name.includes("/"),S=a&&!u?n.id:n.server?.name||n.id||"";s({to:"/$org/$project/store/$appName",params:{org:i.slug,project:re,appName:o},search:{registryId:w,serverName:S}})},Xe=r.action==="create",jt=()=>{s({to:"/$org/$project/mcps",params:{org:i.slug,project:re},search:{action:"create"}})},Ke=()=>{s({to:"/$org/$project/mcps",params:{org:i.slug,project:re},search:{}})},p=Et({resolver:Lt(Cn),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),H=p.watch("ui_type"),We=p.watch("connection_url"),yt=p.watch("npx_package"),me=Ne({uiType:H,connectionUrl:We??"",npxPackage:yt??""})??it({uiType:H,connectionUrl:We??"",registryItems:_e}),A=d.mode==="editing"?d.connection:null;Y.useEffect(()=>{if(A){const n=Ot(A.connection_headers)?A.connection_headers:null;if(n&&A.connection_type==="STDIO"){const o=yn(n.envVars);if(wn(n)){const a=Dn(n);p.reset({title:A.title,description:A.description,icon:A.icon??null,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:a,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:o})}else{const a=In(n);p.reset({title:A.title,description:A.description,icon:A.icon??null,ui_type:"STDIO",connection_url:"",connection_token:null,npx_package:"",stdio_command:a.command,stdio_args:a.args,stdio_cwd:a.cwd,env_vars:o})}}else p.reset({title:A.title,description:A.description,icon:A.icon??null,ui_type:A.connection_type,connection_url:A.connection_url??"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]})}else p.reset({title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]})},[A,p]);const pe=dn({connectionId:mn,orgId:i.id}),ye=()=>{e.invalidateQueries({predicate:n=>{const o=n.queryKey;return o[1]===i.id&&o[3]==="collection"&&o[4]==="CONNECTIONS"}})},vt=async()=>{k(!1);const n=[...v];let o=0;for(const a of n)try{(await pe.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:a,force:!0}})).isError||o++}catch{}ye(),Q.success(`Deleted ${o} connection${o!==1?"s":""}`),M()},Ct=async n=>{const o=[...v];let a=0;for(const u of o)try{await g.update.mutateAsync({id:u,data:{status:n}}),a++}catch{}ye(),Q.success(`${n==="active"?"Enabled":"Disabled"} ${a} connection${a!==1?"s":""}`),M()},Nt=async n=>{const o=J.find(S=>S.id===n);if(!o||!pe)return;const a=new Set(o.connections.map(S=>S.connection_id)),u=[...v].filter(S=>!a.has(S)).map(S=>({connection_id:S,selected_tools:null,selected_resources:null,selected_prompts:null}));if(u.length===0){Q.info("All selected connections are already in that agent");return}try{await pe.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:n,data:{connections:[...o.connections,...u]}}}),e.invalidateQueries({predicate:S=>{const L=S.queryKey;return L[1]===i.id&&L[3]==="collection"&&L[4]==="VIRTUAL_MCP"}}),Q.success(`Added ${u.length} connection${u.length!==1?"s":""} to "${o.title}"`),M()}catch{Q.error("Failed to add connections to agent")}},Ge=n=>{const o=n.content;return Array.isArray(o)&&o[0]?.type==="text"&&typeof o[0].text=="string"?o[0].text:"Unknown error"},bt=async()=>{if(d.mode!=="deleting")return;const n=d.connection;x({type:"close"});try{const o=await pe.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:n.id}});if(o.isError){const a=Ge(o),u=a.replace(/^Error:\s*/,"");try{const S=JSON.parse(u);if(S.code==="CONNECTION_IN_USE"&&S.agentNames){x({type:"force-delete",connection:n,agentNames:S.agentNames.map(L=>`"${L}"`).join(", ")});return}}catch{}Q.error(`Failed to delete connection: ${a}`);return}ye(),Q.success("Connection deleted successfully")}catch(o){const a=o instanceof Error?o.message:String(o);Q.error(`Failed to delete connection: ${a}`)}},St=async()=>{if(d.mode!=="force-deleting")return;const n=d.connection.id;x({type:"close"});try{const o=await pe.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:n,force:!0}});if(o.isError){Q.error(`Failed to delete connection: ${Ge(o)}`);return}ye(),Q.success("Connection deleted successfully")}catch(o){const a=o instanceof Error?o.message:String(o);Q.error(`Failed to delete connection: ${a}`)}},_t=async n=>{let o,a=null,u=null,S=null;if(n.ui_type==="NPX"?(o="STDIO",a="",S=kn(n.npx_package||"",n.env_vars||[])):n.ui_type==="STDIO"?(o="STDIO",a="",S=Tn(n.stdio_command||"",n.stdio_args||"",n.stdio_cwd,n.env_vars||[])):(o=n.ui_type,a=n.connection_url||"",u=n.connection_token||null),A){await g.update.mutateAsync({id:A.id,data:{title:n.title,description:n.description||null,icon:n.icon??null,connection_type:o,connection_url:a,...u&&{connection_token:u},...S&&{connection_headers:S}}}),x({type:"close"}),p.reset();return}const L=zt("conn");await g.create.mutateAsync({id:L,title:n.title,description:n.description||null,connection_type:o,connection_url:a,connection_token:u,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:c?.user?.id||"system",organization_id:i.id,icon:n.icon??null,app_name:null,app_id:null,connection_headers:S,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),Ke(),p.reset(),s({to:"/$org/$project/mcps/$connectionId",params:{org:i.slug,project:re,connectionId:L}})},qe=n=>{n||(Xe?Ke():x({type:"close"}),p.reset())},ve=n=>{const o=n.trim();if(!o)return;const a=!!p.formState.dirtyFields.title,u=!!p.formState.dirtyFields.description,S=!!p.formState.dirtyFields.env_vars,L=B=>{if(B&&(!a&&!p.getValues("title").trim()&&B.title&&p.setValue("title",B.title,{shouldDirty:!1}),!u&&!(p.getValues("description")??"").trim()&&B.description&&p.setValue("description",B.description,{shouldDirty:!1}),!S&&B.envVarKeys?.length)){const G=p.getValues("env_vars")??[],Tt=new Set(G.map(ue=>ue.key)),Qe=B.envVarKeys.filter(ue=>!Tt.has(ue));Qe.length>0&&p.setValue("env_vars",[...G,...Qe.map(ue=>({key:ue,value:""}))],{shouldDirty:!0})}},oe=_n(o);if(oe&&l){p.setValue("ui_type","NPX",{shouldDirty:!0}),p.setValue("npx_package",oe.packageName,{shouldDirty:!0}),p.setValue("connection_url","",{shouldDirty:!0}),p.setValue("connection_token",null,{shouldDirty:!0}),L(Ne({uiType:"NPX",npxPackage:oe.packageName}));return}if(o.startsWith("http://")||o.startsWith("https://")){const B=H==="HTTP"||H==="SSE"||H==="Websocket"?H:"HTTP";p.setValue("ui_type",B,{shouldDirty:!0}),p.setValue("connection_url",o,{shouldDirty:!0}),L(Ne({uiType:B,connectionUrl:o})??it({uiType:B,connectionUrl:o,registryItems:_e}));return}H==="NPX"&&L(Ne({uiType:"NPX",npxPackage:o}))},kt=t.jsx("div",{className:"flex items-center gap-2",children:t.jsx(z,{variant:"outline",onClick:jt,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",children:"Custom Connection"})});return t.jsxs(t.Fragment,{children:[t.jsxs(xe,{children:[t.jsx(Be,{open:Xe||d.mode==="editing",onOpenChange:qe,children:t.jsxs(Me,{className:"sm:max-w-[525px]",children:[t.jsxs(Ue,{children:[t.jsx(Fe,{children:A?"Edit Connection":"Create Connection"}),t.jsx(at,{children:A?"Update the connection details below.":"Create a custom connection in your organization. Fill in the details below."})]}),t.jsx(nn,{...p,children:t.jsxs("form",{onSubmit:p.handleSubmit(_t),children:[t.jsxs("div",{className:"grid gap-4 py-4",children:[t.jsx(Z,{control:p.control,name:"ui_type",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"Type *"}),t.jsxs(sn,{value:n.value,onValueChange:n.onChange,children:[t.jsx(ne,{children:t.jsx(on,{children:t.jsx(rn,{})})}),t.jsxs(cn,{children:[t.jsx(fe,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(De,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(fe,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(De,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(fe,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(De,{className:"w-4 h-4"}),"Websocket"]})}),l&&t.jsxs(t.Fragment,{children:[t.jsx(fe,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ae,{className:"w-4 h-4"}),"NPX Package"]})}),t.jsx(fe,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(gn,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),t.jsx(se,{})]})}),H==="NPX"&&t.jsx(t.Fragment,{children:t.jsx(Z,{control:p.control,name:"npx_package",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"NPM Package *"}),t.jsx(ne,{children:t.jsx(le,{placeholder:"@perplexity-ai/mcp-server",...n,value:n.value??"",onPaste:o=>{const a=o.clipboardData.getData("text");a&&(o.preventDefault(),p.setValue("npx_package",a.trim(),{shouldDirty:!0}),ve(a))},onBlur:o=>{ve(o.target.value),n.onBlur()}})}),t.jsx(se,{})]})})}),H==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[t.jsx(Z,{control:p.control,name:"stdio_command",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"Command *"}),t.jsx(ne,{children:t.jsx(le,{placeholder:"node, bun, python...",...n,value:n.value??""})}),t.jsx(se,{})]})}),t.jsx(Z,{control:p.control,name:"stdio_args",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"Arguments"}),t.jsx(ne,{children:t.jsx(le,{placeholder:"arg1 arg2 --flag value",...n,value:n.value??""})}),t.jsx(se,{})]})})]}),t.jsx(Z,{control:p.control,name:"stdio_cwd",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"Working Directory"}),t.jsx(ne,{children:t.jsx(le,{placeholder:"/path/to/project (optional)",...n,value:n.value??""})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory where the command will be executed"}),t.jsx(se,{})]})})]}),(H==="NPX"||H==="STDIO")&&t.jsx(Z,{control:p.control,name:"env_vars",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"Environment Variables"}),t.jsx(ne,{children:t.jsx(vn,{value:n.value??[],onChange:n.onChange})}),t.jsx(se,{})]})}),H!=="NPX"&&H!=="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{control:p.control,name:"connection_url",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"URL *"}),t.jsx(ne,{children:t.jsx(le,{placeholder:"https://example.com/mcp",...n,value:n.value??"",onPaste:o=>{const a=o.clipboardData.getData("text");a&&(o.preventDefault(),p.setValue("connection_url",a.trim(),{shouldDirty:!0}),ve(a))},onBlur:o=>{ve(o.target.value),n.onBlur()}})}),t.jsx(se,{})]})}),t.jsx(Z,{control:p.control,name:"connection_token",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:me?.token?.label??"Token (optional)"}),t.jsx(ne,{children:t.jsx(le,{type:"password",placeholder:me?.token?.placeholder??"Bearer token or API key",...n,value:n.value??""})}),me?.token?.helperText&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[me.token.helperText,me.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(se,{})]})})]}),t.jsx(Z,{control:p.control,name:"title",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"Name *"}),t.jsx(ne,{children:t.jsx(le,{placeholder:"My Connection",...n})}),t.jsx(se,{})]})}),t.jsx(Z,{control:p.control,name:"description",render:({field:n})=>t.jsxs(ee,{children:[t.jsx(te,{children:"Description"}),t.jsx(ne,{children:t.jsx(ln,{placeholder:"A brief description of this connection",rows:3,...n,value:n.value??""})}),t.jsx(se,{})]})})]}),t.jsxs(dt,{children:[t.jsx(z,{type:"button",variant:"outline",onClick:()=>qe(!1),children:"Cancel"}),t.jsx(z,{type:"submit",disabled:p.formState.isSubmitting,className:"min-w-40",children:p.formState.isSubmitting?"Saving...":A?"Update Connection":"Create Connection"})]})]})})]})}),t.jsx(Ie,{open:d.mode==="deleting",onOpenChange:n=>!n&&x({type:"close"}),children:t.jsxs(Ae,{children:[t.jsxs(Pe,{children:[t.jsx($e,{children:"Delete Connection?"}),t.jsxs(Ee,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:d.mode==="deleting"&&d.connection.title}),"."]})]}),t.jsxs(Le,{children:[t.jsx(Oe,{children:"Cancel"}),t.jsx(ze,{onClick:bt,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})}),t.jsx(Ie,{open:d.mode==="force-deleting",onOpenChange:n=>!n&&x({type:"close"}),children:t.jsxs(Ae,{children:[t.jsxs(Pe,{children:[t.jsx($e,{children:"Connection Used by Agents"}),t.jsx(Ee,{asChild:!0,children:t.jsxs("div",{children:[t.jsxs("p",{children:["The connection"," ",t.jsx("span",{className:"font-medium text-foreground",children:d.mode==="force-deleting"&&d.connection.title})," ","is currently used by the following agent(s):"," ",t.jsx("span",{className:"font-medium text-foreground",children:d.mode==="force-deleting"&&d.agentNames}),"."]}),t.jsx("p",{className:"mt-2",children:"Deleting this connection will remove it from those agents, which may impact existing workflows that depend on them."})]})})]}),t.jsxs(Le,{children:[t.jsx(Oe,{children:"Cancel"}),t.jsx(ze,{onClick:St,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete Anyway"})]})]})}),t.jsx(zn,{open:y,onOpenChange:k,count:v.size,onConfirm:vt}),t.jsx(On,{open:T,onOpenChange:C,agents:J,onConfirm:Nt}),t.jsxs(xe.Header,{children:[t.jsx(xe.Header.Left,{children:t.jsx(Jt,{children:t.jsx(Zt,{children:t.jsx(en,{children:t.jsx(tn,{children:"Connections"})})})})}),t.jsxs(xe.Header.Right,{children:[t.jsx(Vt,{sortKey:m.sortKey,sortDirection:m.sortDirection,onSort:m.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:O,onChange:n=>R(n||"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:P,onChange:n=>F(n||"ALL"),options:[{id:"ALL",label:"All"},{id:"active",label:"Active"},{id:"inactive",label:"Inactive"},{id:"error",label:"Error"}]}]}),kt]})]}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("div",{children:t.jsx(Ft,{value:m.search,onChange:m.setSearch,placeholder:"Search for a Connection...",onKeyDown:n=>{n.key==="Escape"&&(m.setSearch(""),n.target.blur())}})}),t.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border",children:[t.jsx(Ut,{tabs:[{id:"all",label:"All"},{id:"connected",label:"Connected"}],activeTab:b,onTabChange:n=>D(n)}),_.length>0&&t.jsx("div",{className:he(b!=="all"&&"invisible pointer-events-none"),children:t.jsxs(et,{children:[t.jsx(tt,{asChild:!0,children:t.jsxs(z,{variant:"outline",size:"sm",className:"h-7 px-2 gap-1.5 text-sm font-normal",children:[(()=>{const n=_.find(o=>o.id===(K||_[0]?.id))??_[0];return t.jsxs(t.Fragment,{children:[t.jsx(ge,{icon:n?.icon,name:n?.title??"",size:"2xs",className:"shrink-0 rounded-sm"}),t.jsx("span",{children:n?.title})]})})(),t.jsx(xn,{size:14,className:"text-muted-foreground"})]})}),t.jsx(nt,{align:"end",children:_.map(n=>t.jsxs(Ce,{onClick:()=>ie(n.id),className:he(K===n.id||!K&&n.id===_[0]?.id?"bg-accent":""),children:[t.jsx(ge,{icon:n.icon,name:n.title,size:"2xs",className:"shrink-0 rounded-sm"}),n.title]},n.id))})]})})]})]}),t.jsx(xe.Content,{children:t.jsx("div",{className:"flex-1 overflow-auto p-5",children:(b==="all"?Te.length===0&&we.length===0:U.length===0)?t.jsx(Rt,{image:t.jsx("img",{src:"/emptystate-mcp.svg",alt:"",width:336,height:320,"aria-hidden":"true"}),title:"No Connections found",description:m.search?`No Connections match "${m.search}"`:"Create a connection to get started."}):t.jsxs("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:[gt.map(n=>{if(n.type==="group")return t.jsx(Pn,{group:n,onOpen:()=>$({appName:n.title,appIcon:n.icon,instances:n.connections}),selectionMode:h,selectedIds:v,onToggleSelect:E},n.key);const o=n.connection,a=v.has(o.id);return t.jsx(be,{connection:o,fallbackIcon:t.jsx(ae,{}),onClick:()=>h?E(o.id):$({appName:o.app_name||o.title,appIcon:o.icon,appDescription:o.description,instances:[o]}),className:he(a&&"ring-2 ring-primary bg-primary/5"),headerActionsAlwaysVisible:h,headerActions:t.jsxs("div",{className:"flex items-center gap-1",children:[h&&t.jsx(pt,{checked:a,onCheckedChange:()=>E(o.id),onClick:u=>u.stopPropagation()}),t.jsxs(et,{children:[t.jsx(tt,{asChild:!0,children:t.jsx(z,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:u=>u.stopPropagation(),children:t.jsx(fn,{size:20})})}),t.jsxs(nt,{align:"end",onClick:u=>u.stopPropagation(),children:[t.jsxs(Ce,{onClick:u=>{u.stopPropagation(),s({to:"/$org/$project/mcps/$connectionId",params:{org:i.slug,project:re,connectionId:o.id}})},children:[t.jsx(hn,{size:16}),"Open"]}),t.jsxs(Ce,{onClick:u=>{u.stopPropagation(),E(o.id)},children:[t.jsx(Mt,{size:16}),"Select"]}),t.jsxs(Ce,{variant:"destructive",onClick:u=>{u.stopPropagation(),x({type:"delete",connection:o})},children:[t.jsx(xt,{size:16}),"Delete"]})]})]})]})},o.id)}),b==="all"&&Te.length>0&&t.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[t.jsx(un,{size:13,className:"text-muted-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Verified"}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),Te.map(n=>{const o=n.server?.name||n.name||n.id||"",a=Re.has(o),u=n._meta?.["mcp.mesh"],S=u?.friendlyName||u?.friendly_name||n.server?.title||n.title||n.server?.name||n.name||n.id||"",L=n.server?.description||n.description||null,oe=n.server?.icons?.[0]?.src||Ze(n.server?.repository)||null,B=j.filter(G=>G.connection_type!=="VIRTUAL"&&G.app_name===o);return t.jsx(be,{connection:{title:S,description:L,icon:oe},fallbackIcon:t.jsx(ae,{}),onClick:()=>a?$({appName:S,appIcon:oe,appDescription:L,instances:B}):je(n),headerActionsAlwaysVisible:!0,headerActions:a?t.jsx(Ve,{variant:"secondary",className:"text-xs",children:"Connected"}):t.jsx(z,{variant:"outline",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",onClick:G=>{G.stopPropagation(),je(n)},children:"Connect"})},`catalog-${n.id}`)}),b==="all"&&we.length>0&&t.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[t.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"All connections"}),t.jsx("div",{className:"flex-1 h-px bg-border"})]}),we.map(n=>{const o=n.server?.name||n.name||n.id||"",a=Re.has(o),u=n._meta?.["mcp.mesh"],S=u?.friendlyName||u?.friendly_name||n.server?.title||n.title||n.server?.name||n.name||n.id||"",L=n.server?.description||n.description||null,oe=n.server?.icons?.[0]?.src||Ze(n.server?.repository)||null,B=j.filter(G=>G.connection_type!=="VIRTUAL"&&G.app_name===o);return t.jsx(be,{connection:{title:S,description:L,icon:oe},fallbackIcon:t.jsx(ae,{}),onClick:()=>a?$({appName:S,appIcon:oe,appDescription:L,instances:B}):je(n),headerActionsAlwaysVisible:!0,headerActions:a?t.jsx(Ve,{variant:"secondary",className:"text-xs",children:"Connected"}):t.jsx(z,{variant:"outline",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",onClick:G=>{G.stopPropagation(),je(n)},children:"Connect"})},`catalog-${n.id}`)}),b==="all"&&w&&t.jsx("div",{ref:ht,className:"col-span-full h-4"}),b==="all"&&W.isLoadingMore&&t.jsx("div",{className:"col-span-full flex justify-center py-6",children:t.jsx(ut,{size:24,className:"animate-spin text-muted-foreground"})})]})})}),h&&t.jsx(Ln,{count:v.size,total:U.length,onSelectAll:()=>{f(new Set(U.map(n=>n.id)))},onDeselectAll:()=>f(new Set),onDelete:()=>k(!0),onAddToAgent:()=>C(!0),onToggleStatus:Ct,onCancel:M})]}),I&&t.jsx(Nn,{open:!0,onClose:()=>$(null),appName:I.appName,appIcon:I.appIcon,appDescription:I.appDescription,instances:I.instances})]})}function to(){const i=de.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(wt,{children:t.jsx(Y.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ut,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Vn,{})})}),i[0]=e):e=i[0],e}export{to as default};
@@ -1 +0,0 @@
1
- import{ah as a,ai as t}from"./index-DsOJvxnb.js";const e=a(t,{target:"draft-7"});export{e as B};
@@ -1 +0,0 @@
1
- import{c as A,u as W,g as D,f as X,K as Z,j as n,r as q,av as J,B as ee,J as te,bh as ne}from"./index-DsOJvxnb.js";import{i as E}from"./Loading01-BNn4YU_K.js";import{c as ie}from"./binder-DTBFGqjl.js";import{P as $}from"./topbar-portal-D3fRQWai.js";import{u as se}from"./useQuery-D2ShO4od.js";import{b as oe}from"./use-connection-DmR852Js.js";import{a as le,u as re,f as ce}from"./constants-XtX-WKGm.js";import{t as ae}from"./Settings01-2AkYiqYr.js";import{P as v}from"./index-X4FDee1r.js";import"./use-collections-DSWhP4jg.js";import"./useMutation-B_cFG709.js";import"./use-local-storage-CxC8ozOe.js";import"./tooltip-XyKE4lZa.js";import"./index-zjV4p_E5.js";function de(t,e){return t?t.filter(m=>ie(m,e)):[]}function R(t){return{id:t.id,title:t.title,icon:t.icon,description:t.description,app_name:t.app_name,app_id:t.app_id,tools:t.tools,metadata:t.metadata}}function me(t){const e=A.c(35),{binding:m,renderHeader:f,renderEmptyState:i}=t,{org:o,project:l}=W();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:r,project:g,pluginId:u}=D(a),Q=oe(),{data:y}=X.useSession();let b;e[1]!==o.id?(b={connectionId:le,orgId:o.id},e[1]=o.id,e[2]=b):b=e[2];const H=re(b);let x;e[3]!==u||e[4]!==l.id?(x=Z.projectPluginConfig(l.id??"",u),e[3]=u,e[4]=l.id,e[5]=x):x=e[5];let p;e[6]!==u||e[7]!==l.id||e[8]!==H?(p=async()=>{const s=await H.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:l.id,pluginId:u}});return s.structuredContent??s},e[6]=u,e[7]=l.id,e[8]=H,e[9]=p):p=e[9];const T=!!l.id&&!!u;let _;e[10]!==x||e[11]!==p||e[12]!==T?(_={queryKey:x,queryFn:p,enabled:T},e[10]=x,e[11]=p,e[12]=T,e[13]=_):_=e[13];const{data:U,isLoading:Y}=se(_),F=de(Q,m),K=U?.config?.connectionId,j=K?F.find(s=>s.id===K):null,P=ce({connectionId:j?.id,orgId:o.id}),w=y?.user?{user:{id:y.user.id,name:y.user.name,email:y.user.email,image:y.user.image}}:null,z={id:o.id,slug:o.slug,name:o.name};if(Y){let s;return e[14]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n.jsx(E,{size:32,className:"animate-spin text-muted-foreground mb-4"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]}),e[14]=s):s=e[14],s}if(F.length===0){const s={connectionId:null,connection:null,toolCaller:null,org:z,session:w};let c;e[15]!==i?(c=i(),e[15]=i,e[16]=c):c=e[16];let d;return e[17]!==c?(d=n.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:c}),e[17]=c,e[18]=d):d=e[18],n.jsx($,{value:s,children:d})}if(!j){const s={connectionId:null,connection:null,toolCaller:null,org:z,session:w};let c;e[19]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsxs("div",{className:"flex flex-col items-center gap-2 text-center max-w-md",children:[n.jsx(ae,{size:48,className:"text-muted-foreground mb-2"}),n.jsx("h2",{className:"text-lg font-semibold",children:"Plugin Not Configured"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"This plugin requires a connection to be configured. Go to project settings to select which integration to use."})]}),e[19]=c):c=e[19];const d=r??o.slug,O=g??l.slug??"";let L;return e[20]!==d||e[21]!==O?(L=n.jsxs("div",{className:"h-full flex flex-col items-center justify-center gap-4 p-8",children:[c,n.jsx(ee,{asChild:!0,children:n.jsx(te,{to:"/$org/$project/settings",params:{org:d,project:O},children:"Go to Project Settings"})})]}),e[20]=d,e[21]=O,e[22]=L):L=e[22],n.jsx($,{value:s,children:L})}let S;e[23]!==P?(S=(s,c)=>P?P.callTool({name:s,arguments:c}).then(fe):Promise.reject(new Error("MCP client is not available")),e[23]=P,e[24]=S):S=e[24];const V={connectionId:j.id,connection:R(j),toolCaller:S,org:z,session:w},B=v,G=v,k=v,M=f({connections:[R(j)],selectedConnectionId:j.id,onConnectionChange:ue});let h;e[25]!==M||e[26]!==k.Header.Left?(h=n.jsx(k.Header.Left,{children:M}),e[25]=M,e[26]=k.Header.Left,e[27]=h):h=e[27];let C;e[28]!==h||e[29]!==G.Header?(C=n.jsx(G.Header,{children:h}),e[28]=h,e[29]=G.Header,e[30]=C):C=e[30];let N;e[31]===Symbol.for("react.memo_cache_sentinel")?(N=n.jsx(v.Content,{children:n.jsx(q.Suspense,{fallback:n.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n.jsx(E,{size:32,className:"animate-spin text-muted-foreground mb-4"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."})]}),children:n.jsx(J,{})})}),e[31]=N):N=e[31];let I;return e[32]!==B||e[33]!==C?(I=n.jsxs(B,{children:[C,N]}),e[32]=B,e[33]=C,e[34]=I):I=e[34],n.jsx($,{value:V,children:I})}function ue(){}function fe(t){return t.structuredContent??t}function ve(){const t=A.c(12);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{pluginId:m}=D(e);let f;t[1]!==m?(f=ne.find(r=>r.id===m),t[1]=m,t[2]=f):f=t[2];const i=f;if(i?.renderHeader&&i?.renderEmptyState&&i?.binding){let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n.jsx(E,{size:32,className:"animate-spin text-muted-foreground mb-4"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),t[3]=r):r=t[3];let g;return t[4]!==i.binding||t[5]!==i.renderEmptyState||t[6]!==i.renderHeader?(g=n.jsx(q.Suspense,{fallback:r,children:n.jsx(me,{binding:i.binding,renderHeader:i.renderHeader,renderEmptyState:i.renderEmptyState})}),t[4]=i.binding,t[5]=i.renderEmptyState,t[6]=i.renderHeader,t[7]=g):g=t[7],g}const o=i?.LayoutComponent;if(!o){let r;return t[8]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(J,{}),t[8]=r):r=t[8],r}let l;t[9]===Symbol.for("react.memo_cache_sentinel")?(l=n.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n.jsx(E,{size:32,className:"animate-spin text-muted-foreground mb-4"}),n.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading plugin..."})]}),t[9]=l):l=t[9];let a;return t[10]!==o?(a=n.jsx(q.Suspense,{fallback:l,children:n.jsx(o,{})}),t[10]=o,t[11]=a):a=t[11],a}export{ve as default};