decocms 2.175.3 → 2.175.4

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 (225) hide show
  1. package/dist/client/assets/{AlertCircle-Bu9DNwe-.js → AlertCircle-BCDqbXXS.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-CJvAdEi-.js → AlignLeft-BtdVdG2m.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-BrkOB1Av.js → ArrowDown-qfJtx-dv.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BLUY3Pjw.js → ArrowLeft-Del7wDOT.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-Bl5YEbbF.js → ArrowUp-ETVB6cdy.js} +1 -1
  6. package/dist/client/assets/{Check-CN56KhoF.js → Check-DsclgHfU.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-B4pYO1ZS.js → CheckCircle-CQGSbCTG.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-DgXembQE.js → CheckDone01-v1xPuIIg.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-BTUqey_K.js → CheckVerified02-DhH8-7Z6.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-BURkaeCD.js → ChevronDown-CIjXFJfV.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-C1fUg8Ja.js → ChevronLeft-tQ1_QiuA.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-Df5oEIdG.js → ChevronRight-DmvbXNWu.js} +1 -1
  13. package/dist/client/assets/{ChevronUp-Ql_IhfwF.js → ChevronUp-C8129itH.js} +1 -1
  14. package/dist/client/assets/{Clock-DY1djxCP.js → Clock-CQzMyEYR.js} +1 -1
  15. package/dist/client/assets/{Code01-ClhNhs6L.js → Code01-Cq3-F_YX.js} +1 -1
  16. package/dist/client/assets/{Coins01-C0DqkhBz.js → Coins01-D4l1LRdX.js} +1 -1
  17. package/dist/client/assets/{Container-De-pv4QL.js → Container-C_pBhYQm.js} +1 -1
  18. package/dist/client/assets/{Copy01-E3kqWO3T.js → Copy01-CFr3FQ5x.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-DVfc8SxS.js → Dataflow03-OPkwvxOZ.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-zFut2S5z.js → DotsHorizontal-7V70FVQq.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-ZWNLrGdE.js → DotsVertical-ZHHEIIAw.js} +1 -1
  22. package/dist/client/assets/{Download01-D_QoltgV.js → Download01-CYaxYM2W.js} +1 -1
  23. package/dist/client/assets/{Edit01-KzFCPjcw.js → Edit01-y_ign3HR.js} +1 -1
  24. package/dist/client/assets/{Edit05-DFdmrfVO.js → Edit05-DW3L1ev9.js} +1 -1
  25. package/dist/client/assets/{Eye-CUyEl5IU.js → Eye-Dq2YmoWs.js} +1 -1
  26. package/dist/client/assets/{EyeOff-D3iBtnD1.js → EyeOff-CpKFKNjY.js} +1 -1
  27. package/dist/client/assets/{File02-CqU_tyTM.js → File02-BsdZFaU2.js} +1 -1
  28. package/dist/client/assets/{File06-B23HFdp6.js → File06-BpsmzbhK.js} +1 -1
  29. package/dist/client/assets/{FilterLines-B4Jg_hkv.js → FilterLines-BFSA7yHa.js} +1 -1
  30. package/dist/client/assets/{Globe01-BAfb6FiF.js → Globe01-C5-PYqjH.js} +1 -1
  31. package/dist/client/assets/{Globe02-DAjgLqHS.js → Globe02-BLXYb9br.js} +1 -1
  32. package/dist/client/assets/{Grid01-B7q4cvPD.js → Grid01-BSBJv9eJ.js} +1 -1
  33. package/dist/client/assets/{Hash02-BPlWtian.js → Hash02-zbrPaDCt.js} +1 -1
  34. package/dist/client/assets/{Home02-BYbFBx09.js → Home02-DtwXSs3k.js} +1 -1
  35. package/dist/client/assets/{Image01-C62qGXSk.js → Image01-NzJP6iMs.js} +1 -1
  36. package/dist/client/assets/{Inbox01-BF4_faho.js → Inbox01-BqBxWaFX.js} +1 -1
  37. package/dist/client/assets/{InfoCircle-DhO0vGS4.js → InfoCircle-8bpl-KKl.js} +1 -1
  38. package/dist/client/assets/{Key01-Bfc7gsTd.js → Key01-yVAqC10q.js} +1 -1
  39. package/dist/client/assets/{LayersTwo01-CsbV79W9.js → LayersTwo01-T6ICoMvs.js} +1 -1
  40. package/dist/client/assets/{LayoutLeft-BjhMzXil.js → LayoutLeft-B8jrj3eE.js} +1 -1
  41. package/dist/client/assets/{Link01-CBvOA17k.js → Link01-2qS2xckB.js} +1 -1
  42. package/dist/client/assets/{LinkExternal01-v1Fp9c9j.js → LinkExternal01-CBG098kX.js} +1 -1
  43. package/dist/client/assets/{List-DxiRK8pO.js → List-LffcVOLG.js} +1 -1
  44. package/dist/client/assets/{Loading01-CDOurw-F.js → Loading01-CSUxQOK0.js} +1 -1
  45. package/dist/client/assets/{Lock01-jAI5MKWg.js → Lock01-CjY0LR2m.js} +1 -1
  46. package/dist/client/assets/{Play-DSE8IZVS.js → Play-D223AznW.js} +1 -1
  47. package/dist/client/assets/{Plus-OTc7Ql1V.js → Plus-CGe5wBcS.js} +1 -1
  48. package/dist/client/assets/{RefreshCcw01-QnfLSKau.js → RefreshCcw01-CxVqRnRx.js} +1 -1
  49. package/dist/client/assets/{Save01-Df_qJsfN.js → Save01-CYi2R4Ht.js} +1 -1
  50. package/dist/client/assets/{SearchMd-D6jy19cO.js → SearchMd-CrngVZhh.js} +1 -1
  51. package/dist/client/assets/{Settings01-Bl2wNagM.js → Settings01-Dujhf9RE.js} +1 -1
  52. package/dist/client/assets/{Shield01-B145EOAd.js → Shield01-BqSRHTNN.js} +1 -1
  53. package/dist/client/assets/{Terminal-D3ILbCbK.js → Terminal-ieofo8yI.js} +1 -1
  54. package/dist/client/assets/{Tool01-BBVRBzC0.js → Tool01-DImlld_g.js} +1 -1
  55. package/dist/client/assets/{Trash01-DhGTBhjv.js → Trash01-DPMbpRnj.js} +1 -1
  56. package/dist/client/assets/{Upload01-DvtQC2yf.js → Upload01-DgCnYplh.js} +1 -1
  57. package/dist/client/assets/{Users03-B2n8Cd76.js → Users03-C-Jr0LW_.js} +1 -1
  58. package/dist/client/assets/{X-DVxsAMCH.js → X-CuPyb-Ex.js} +1 -1
  59. package/dist/client/assets/{XAxis-D14vbkR0.js → XAxis-BmVXiq6v.js} +1 -1
  60. package/dist/client/assets/{XCircle-l3Ck-71_.js → XCircle-DIW-x13c.js} +1 -1
  61. package/dist/client/assets/{XClose-C8g1LxXV.js → XClose-ndXrBTVc.js} +1 -1
  62. package/dist/client/assets/{Zap-DUVjsAS1.js → Zap-Ctmk6j5l.js} +1 -1
  63. package/dist/client/assets/{agent-connections-preview-D0-1Au_l.js → agent-connections-preview-Vgh7fOJI.js} +1 -1
  64. package/dist/client/assets/{agent-detail-BALBko9m.js → agent-detail-C36fDm_v.js} +1 -1
  65. package/dist/client/assets/{agents-BuGtmP_d.js → agents-DYiHQBsI.js} +1 -1
  66. package/dist/client/assets/{ai-providers-logos-NSo4Ckh1.js → ai-providers-logos-D3xG95Si.js} +1 -1
  67. package/dist/client/assets/{alert-dialog-DfOenbUZ.js → alert-dialog-BoQV9ycw.js} +1 -1
  68. package/dist/client/assets/{auth-catchall-BAl96W8M.js → auth-catchall-D434eF_Q.js} +1 -1
  69. package/dist/client/assets/{automation-detail-D16eCAb7.js → automation-detail-3RIJVSzC.js} +1 -1
  70. package/dist/client/assets/{automations-UpOWNkQ6.js → automations-CsNPJGVV.js} +1 -1
  71. package/dist/client/assets/{avatar-DexhTB4g.js → avatar-CkCU2Fe6.js} +1 -1
  72. package/dist/client/assets/{badge-C7XTRm7k.js → badge-7TJrkuyd.js} +1 -1
  73. package/dist/client/assets/{binder--omYMrhv.js → binder-qGS3hkzV.js} +1 -1
  74. package/dist/client/assets/{breadcrumb-h9Dq7GJ0.js → breadcrumb-7YipRD-p.js} +1 -1
  75. package/dist/client/assets/{card-Cm-keK-z.js → card-D9sP6AvS.js} +1 -1
  76. package/dist/client/assets/{chart-BkIsuiHb.js → chart-DtzgRcs7.js} +1 -1
  77. package/dist/client/assets/{checkbox-B92JdB3t.js → checkbox-BRXa8FNh.js} +1 -1
  78. package/dist/client/assets/{collapsible-B5VFLcG-.js → collapsible-Dl714J5i.js} +1 -1
  79. package/dist/client/assets/{collection-detail-BUpBhGP1.js → collection-detail-BU5tC6bR.js} +1 -1
  80. package/dist/client/assets/{collection-display-button-CEqdF8O7.js → collection-display-button-CPJ0Uvih.js} +1 -1
  81. package/dist/client/assets/{collection-search-CPQlTmfx.js → collection-search-BeqmTWUU.js} +1 -1
  82. package/dist/client/assets/{collection-table-wrapper-BVpN3w_L.js → collection-table-wrapper-DU2xJaVV.js} +1 -1
  83. package/dist/client/assets/{collection-tabs-DwGvAiHF.js → collection-tabs-CBTc1SAx.js} +1 -1
  84. package/dist/client/assets/{command-BYr1e0yf.js → command-DVQ8NWzo.js} +1 -1
  85. package/dist/client/assets/{connect-DKqC06uo.js → connect-BVkZJKoj.js} +1 -1
  86. package/dist/client/assets/{connection-card-BDqdYEuX.js → connection-card-D3SNWej3.js} +1 -1
  87. package/dist/client/assets/connection-detail-C4SImbSn.js +1 -0
  88. package/dist/client/assets/{connection-status-B854Axgl.js → connection-status-B9duDm-X.js} +1 -1
  89. package/dist/client/assets/connections-iR6Y0Kp3.js +1 -0
  90. package/dist/client/assets/{constants-BZUBXkLq.js → constants-4hZfe-FX.js} +1 -1
  91. package/dist/client/assets/constants-CXKG1Tp4.js +1 -0
  92. package/dist/client/assets/{context-GHqlq7Gd.js → context-D-2OkzTq.js} +2 -2
  93. package/dist/client/assets/{create-organization-dialog-Cum8PmLv.js → create-organization-dialog-C8OjRm9O.js} +1 -1
  94. package/dist/client/assets/{create-project-dialog-d10TQ9K8.js → create-project-dialog-C6OTQ8lU.js} +1 -1
  95. package/dist/client/assets/{danger-qmT_QFAs.js → danger-BESOuFS9.js} +1 -1
  96. package/dist/client/assets/{danger-zone-daxj8FQE.js → danger-zone-Dr5J9bxx.js} +1 -1
  97. package/dist/client/assets/{dependencies-sz-4aCSB.js → dependencies-CTIlIG34.js} +1 -1
  98. package/dist/client/assets/{dialog-PlqYdiap.js → dialog-1RTimACw.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-V8gWmDzD.js → dropdown-menu-ur1Ui41o.js} +1 -1
  100. package/dist/client/assets/{dynamic-plugin-layout-PDo9TaOG.js → dynamic-plugin-layout-De3JUiCe.js} +1 -1
  101. package/dist/client/assets/{editable-task-title-CXa2sXGX.js → editable-task-title-DPKxqM1E.js} +1 -1
  102. package/dist/client/assets/{empty-state-CADB2xYt.js → empty-state-BLWznTIL.js} +1 -1
  103. package/dist/client/assets/{empty-state-BUpyINsX.js → empty-state-COoAU6KF.js} +1 -1
  104. package/dist/client/assets/{env-vars-editor-Crsr3jiO.js → env-vars-editor-UXVlMJFO.js} +1 -1
  105. package/dist/client/assets/{extract-connection-data-CBWW8njI.js → extract-connection-data-6RfUcjze.js} +1 -1
  106. package/dist/client/assets/{file-browser-Ba38jp_3.js → file-browser-BHUGJprt.js} +2 -2
  107. package/dist/client/assets/{form-CnUcVXlu.js → form-RbK75Dit.js} +1 -1
  108. package/dist/client/assets/{general-D78WAnZa.js → general-DQk46kRh.js} +1 -1
  109. package/dist/client/assets/{grid-view-D92iM48j.js → grid-view-RxDrBxoP.js} +1 -1
  110. package/dist/client/assets/{home-Dh3Zkl7g.js → home-CnM3BkZT.js} +1 -1
  111. package/dist/client/assets/{index-Ce1KA469.js → index-3d9-dYhc.js} +1 -1
  112. package/dist/client/assets/{index-DINW__d9.js → index-B4bICiSz.js} +1 -1
  113. package/dist/client/assets/{index-CMdtjEkH.js → index-B5Wny992.js} +1 -1
  114. package/dist/client/assets/{index-D0LkSlcd.js → index-CElzn9PI.js} +1 -1
  115. package/dist/client/assets/{index-SkQC2bL2.js → index-DJtnEPc7.js} +3 -3
  116. package/dist/client/assets/{index-BAS3V89m.js → index-DTrW0n62.js} +1 -1
  117. package/dist/client/assets/{index-BG9x5ELw.js → index-DqU0CNB5.js} +1 -1
  118. package/dist/client/assets/{index-DDOXVfmG.js → index-FmcHS0n7.js} +1 -1
  119. package/dist/client/assets/{index-AtuNXtl1.js → index-biN0aic_.js} +1 -1
  120. package/dist/client/assets/{index-Bs-gkatC.js → index-qxqsMecG.js} +1 -1
  121. package/dist/client/assets/{infiniteQueryObserver-dFlgfKVl.js → infiniteQueryObserver-DPmZK5SE.js} +1 -1
  122. package/dist/client/assets/{input-C4xXFdLa.js → input-j_5WJy1c.js} +1 -1
  123. package/dist/client/assets/{integration-icon-9nN5AvVn.js → integration-icon-DrTDJ354.js} +1 -1
  124. package/dist/client/assets/{label-B5UIAzjB.js → label-Dmque-mN.js} +1 -1
  125. package/dist/client/assets/{layout-C93ItuDu.js → layout-BgLVGdMB.js} +1 -1
  126. package/dist/client/assets/{layout-DIeoK390.js → layout-Cyh0KCTx.js} +1 -1
  127. package/dist/client/assets/{login-Cum9TENA.js → login-CEJuPXz8.js} +1 -1
  128. package/dist/client/assets/{logo-upload-HuBGdFvy.js → logo-upload-D_X-eua0.js} +1 -1
  129. package/dist/client/assets/{markdown-C7LUMDS1.js → markdown-BjeAfn6Q.js} +1 -1
  130. package/dist/client/assets/{mcp-app-renderer-8UT29L5G.js → mcp-app-renderer-BjIiENx_.js} +1 -1
  131. package/dist/client/assets/{mcp-server-card--KsSGXj4.js → mcp-server-card-hwjTnxKa.js} +1 -1
  132. package/dist/client/assets/{mcp-server-detail-DpFZrrxK.js → mcp-server-detail-fOqjCDsy.js} +2 -2
  133. package/dist/client/assets/{members-Cv4ALw5c.js → members-BUIvlCPj.js} +1 -1
  134. package/dist/client/assets/{monaco-editor-CGQB1ouQ.js → monaco-editor-BI48gu97.js} +1 -1
  135. package/dist/client/assets/{monitoring-jUgSe2al.js → monitoring-cvfFeG45.js} +1 -1
  136. package/dist/client/assets/{monitoring-dashboard-edit-_8LF_BxB.js → monitoring-dashboard-edit-BOzMfOYa.js} +1 -1
  137. package/dist/client/assets/{monitoring-dashboard-view-CZdUWDWw.js → monitoring-dashboard-view-Da1aDoKV.js} +1 -1
  138. package/dist/client/assets/{monitoring-stats-row-DOJg3snj.js → monitoring-stats-row-Bk2P-uOc.js} +1 -1
  139. package/dist/client/assets/{oauth-callback-DUHDiUnV.js → oauth-callback-DrDtRQei.js} +1 -1
  140. package/dist/client/assets/{oauth-callback-ai-provider-DJ-b74-1.js → oauth-callback-ai-provider-AqyT7OAy.js} +1 -1
  141. package/dist/client/assets/{org-ai-providers-DUCq5EUw.js → org-ai-providers-CYV2m0oE.js} +1 -1
  142. package/dist/client/assets/{page-DAq05p7G.js → page-CBVSkVrr.js} +1 -1
  143. package/dist/client/assets/{page-SgyDrWHD.js → page-CjM0cJ2H.js} +1 -1
  144. package/dist/client/assets/{plugin-empty-state-CrnlpA9V.js → plugin-empty-state-CzxAWw66.js} +1 -1
  145. package/dist/client/assets/{plugin-empty-state-Dnds-DCV.js → plugin-empty-state-DGepiILI.js} +1 -1
  146. package/dist/client/assets/{plugin-header-CIduSygp.js → plugin-header-BHxHz9n0.js} +1 -1
  147. package/dist/client/assets/{plugin-header-C1XYEeTv.js → plugin-header-mOLE86wJ.js} +1 -1
  148. package/dist/client/assets/plugins-DoHvFK9w.js +1 -0
  149. package/dist/client/assets/{popover-U_QlVu0r.js → popover-B_9jK9T6.js} +1 -1
  150. package/dist/client/assets/{project-app-view-D9t5-mJm.js → project-app-view-BOeJqLvY.js} +1 -1
  151. package/dist/client/assets/{project-layout-BL0jttJZ.js → project-layout-BoHZ9uLC.js} +1 -1
  152. package/dist/client/assets/{project-plugins-By0aRQeH.js → project-plugins-BOxyaluG.js} +1 -1
  153. package/dist/client/assets/{projects-list-C2BO1TYf.js → projects-list-DP4hhCRm.js} +1 -1
  154. package/dist/client/assets/{registry-layout-CNpSd9I3.js → registry-layout-D1uZlucV.js} +1 -1
  155. package/dist/client/assets/{registry-utils-Bi8LTB_e.js → registry-utils-9Z7xkXEW.js} +1 -1
  156. package/dist/client/assets/{reports-layout-DH4L5-lG.js → reports-layout-_2OT-yHj.js} +1 -1
  157. package/dist/client/assets/{reset-password-BiJO11OF.js → reset-password-DbKC8pv7.js} +1 -1
  158. package/dist/client/assets/{resizable-XfUJo45G.js → resizable-D2UQg53E.js} +1 -1
  159. package/dist/client/assets/{save-actions-AenTNPs2.js → save-actions-DRE_2Nh6.js} +1 -1
  160. package/dist/client/assets/{scroll-area-BvqSXnHA.js → scroll-area-DXeQheGE.js} +1 -1
  161. package/dist/client/assets/{select-Bqr12jkn.js → select-roICowiz.js} +1 -1
  162. package/dist/client/assets/{select-virtual-mcp-DorfgjZR.js → select-virtual-mcp-CFEExN2T.js} +1 -1
  163. package/dist/client/assets/{sheet-D7MnTm5h.js → sheet-D0UV-Fr7.js} +1 -1
  164. package/dist/client/assets/{shell-layout-F6dMRYN1.js → shell-layout-BzGvbbd1.js} +2 -2
  165. package/dist/client/assets/{sidebar-settings-ZSwNsZur.js → sidebar-settings-Bqi6Lp6h.js} +1 -1
  166. package/dist/client/assets/{skeleton-xiE088f2.js → skeleton-Cy7jej-7.js} +1 -1
  167. package/dist/client/assets/{spinner-Bt_p6wlU.js → spinner-qX5-Mz-A.js} +1 -1
  168. package/dist/client/assets/{store-invite-BxsZ0zsl.js → store-invite-CMn4A-jT.js} +1 -1
  169. package/dist/client/assets/{switch-BIAgKxiJ.js → switch-7_yekA3p.js} +1 -1
  170. package/dist/client/assets/{table-c-SrSmwK.js → table-Cd-wCYBh.js} +1 -1
  171. package/dist/client/assets/{tabs-CytiJeE2.js → tabs-T6eq77EC.js} +1 -1
  172. package/dist/client/assets/{task-status-9RY3Ya8o.js → task-status-DSYWex9b.js} +1 -1
  173. package/dist/client/assets/tasks-CaWtJ_wZ.js +1 -0
  174. package/dist/client/assets/{tasks-panel-CftcenZ4.js → tasks-panel-Cpm18hI4.js} +1 -1
  175. package/dist/client/assets/{textarea-Buug1Hxe.js → textarea-BJkI1dfy.js} +1 -1
  176. package/dist/client/assets/{time-range-picker-BlD0TDtN.js → time-range-picker-DKvAeQX-.js} +1 -1
  177. package/dist/client/assets/{toggle-group-abCGptw4.js → toggle-group-O3ssRQZp.js} +1 -1
  178. package/dist/client/assets/{tools-list-BdA1jEJI.js → tools-list-DfrxfnU8.js} +1 -1
  179. package/dist/client/assets/{tooltip-Ckpai_jH.js → tooltip-Bms1Xn3i.js} +1 -1
  180. package/dist/client/assets/{topbar-portal-B-Tb-3gt.js → topbar-portal-C9r1D7L2.js} +1 -1
  181. package/dist/client/assets/{types-CUEMI47Y.js → types-BTzo08LL.js} +1 -1
  182. package/dist/client/assets/{use-automations-Cw8FAF0H.js → use-automations-DQ0Wvn7B.js} +1 -1
  183. package/dist/client/assets/{use-binding-f1akiPTf.js → use-binding-CidrckI6.js} +1 -1
  184. package/dist/client/assets/{use-collections-C3CSj681.js → use-collections-uyyRdHl8.js} +1 -1
  185. package/dist/client/assets/{use-connection-DSkVzqSP.js → use-connection-2T7CNTjX.js} +1 -1
  186. package/dist/client/assets/{use-copy-F9tiQWTi.js → use-copy-CnWGIrpr.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-C5n2ShE6.js → use-create-virtual-mcp-BqiAP0hG.js} +1 -1
  188. package/dist/client/assets/{use-infinite-scroll-C1Dhvj0C.js → use-infinite-scroll-BZWlWT4v.js} +1 -1
  189. package/dist/client/assets/{use-install-from-registry-BQfcs7M8.js → use-install-from-registry-BGTf0OMo.js} +1 -1
  190. package/dist/client/assets/{use-list-state-Djxe5eyh.js → use-list-state-Dn3PYXZc.js} +1 -1
  191. package/dist/client/assets/{use-mcp-prompts-D5tu2gbi.js → use-mcp-prompts-Bvq8o_wk.js} +1 -1
  192. package/dist/client/assets/{use-mcp-resources-D0eHe68n.js → use-mcp-resources-INpGwYsS.js} +1 -1
  193. package/dist/client/assets/{use-mcp-tools-DTZxAm-y.js → use-mcp-tools-CoXbW9dQ.js} +1 -1
  194. package/dist/client/assets/{use-members-DdPysVve.js → use-members-CKrsZLkR.js} +1 -1
  195. package/dist/client/assets/{use-mobile-DqlomLIB.js → use-mobile-BgetcADk.js} +1 -1
  196. package/dist/client/assets/{use-project-Cdk7AuZE.js → use-project-CCY4E3rU.js} +1 -1
  197. package/dist/client/assets/{use-store-discovery-C_al4z4H.js → use-store-discovery-B92mIOto.js} +1 -1
  198. package/dist/client/assets/{use-view-mode-Ag3VBJ77.js → use-view-mode-U3Y0emnO.js} +1 -1
  199. package/dist/client/assets/{use-virtual-mcp-V0XoWMM_.js → use-virtual-mcp-B8_wDvx9.js} +1 -1
  200. package/dist/client/assets/useInfiniteQuery-Dbe2YK49.js +1 -0
  201. package/dist/client/assets/{useMutation-CXgAMvoC.js → useMutation-D77LVetF.js} +1 -1
  202. package/dist/client/assets/useQuery-DLey6Pvf.js +1 -0
  203. package/dist/client/assets/useSuspenseInfiniteQuery-lgWDbCQ9.js +1 -0
  204. package/dist/client/assets/{user-C2BDT4Rq.js → user-D3_ltBdu.js} +1 -1
  205. package/dist/client/assets/{workflow-Bp2ajWVc.js → workflow-df54tmZt.js} +1 -1
  206. package/dist/client/index.html +1 -1
  207. package/dist/server/cli.js +250 -250
  208. package/dist/server/migrate.js +1 -1
  209. package/dist/server/node_modules/xtend/.jshintrc +30 -0
  210. package/dist/server/node_modules/xtend/LICENSE +20 -0
  211. package/dist/server/node_modules/xtend/README.md +32 -0
  212. package/dist/server/node_modules/xtend/immutable.js +19 -0
  213. package/dist/server/node_modules/xtend/mutable.js +17 -0
  214. package/dist/server/node_modules/xtend/package.json +55 -0
  215. package/dist/server/node_modules/xtend/test.js +103 -0
  216. package/dist/server/server.js +228 -228
  217. package/package.json +1 -1
  218. package/dist/client/assets/connection-detail-CHMgcK2a.js +0 -1
  219. package/dist/client/assets/connections-DxOgNXy0.js +0 -1
  220. package/dist/client/assets/constants-DgbSVhNJ.js +0 -1
  221. package/dist/client/assets/plugins-CJcJdSWL.js +0 -1
  222. package/dist/client/assets/tasks-C43Ik9tC.js +0 -1
  223. package/dist/client/assets/useInfiniteQuery-BXEdoCXW.js +0 -1
  224. package/dist/client/assets/useQuery-CtOvMPbo.js +0 -1
  225. package/dist/client/assets/useSuspenseInfiniteQuery-Ds_6ilsi.js +0 -1
@@ -1 +1 @@
1
- import{c as h,y as d,j as n,r as v}from"./index-SkQC2bL2.js";import{I as p}from"./integration-icon-9nN5AvVn.js";import{u as z}from"./use-connection-DSkVzqSP.js";function f(g){const e=h.c(4),{connection_id:i,iconSize:a}=g,c=a===void 0?"xs":a,s=z(i);if(!s)return null;let t;return e[0]!==s.icon||e[1]!==s.title||e[2]!==c?(t=n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx(p,{icon:s.icon,name:s.title,size:c})}),e[0]=s.icon,e[1]=s.title,e[2]=c,e[3]=t):t=e[3],t}f.Fallback=function({iconSize:e="xs"}){const i=e==="sm"?"size-6":"size-5";return n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx("div",{className:d(i,"rounded bg-muted animate-pulse")})})};function N(g){const e=h.c(18),{connectionIds:i,maxVisibleIcons:a,iconSize:c,className:s}=g,t=a===void 0?2:a,r=c===void 0?"xs":c;if(i.length===0)return null;let l,o,m;if(e[0]!==s||e[1]!==i||e[2]!==r||e[3]!==t){const j=i.slice(0,t);l=i.length-t,e[7]!==s?(o=d("flex items-center justify-end -space-x-2",s),e[7]=s,e[8]=o):o=e[8];let b;e[9]!==r?(b=k=>n.jsx(v.Suspense,{fallback:n.jsx(f.Fallback,{iconSize:r}),children:n.jsx(f,{connection_id:k,iconSize:r})},k),e[9]=r,e[10]=b):b=e[10],m=j.map(b),e[0]=s,e[1]=i,e[2]=r,e[3]=t,e[4]=l,e[5]=o,e[6]=m}else l=e[4],o=e[5],m=e[6];let u;e[11]!==r||e[12]!==l?(u=l>0&&n.jsx("div",{className:d("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",r==="sm"?"size-8":"size-6"),children:n.jsxs("span",{className:d(r==="sm"?"text-sm":"text-xs","font-medium text-muted-foreground"),children:["+",l]})}),e[11]=r,e[12]=l,e[13]=u):u=e[13];let x;return e[14]!==o||e[15]!==m||e[16]!==u?(x=n.jsxs("div",{className:o,children:[m,u]}),e[14]=o,e[15]=m,e[16]=u,e[17]=x):x=e[17],x}N.Fallback=function({maxVisibleIcons:e=2,iconSize:i="xs"}){const a=i==="sm"?"size-6":"size-5",c=i==="sm"?"size-8":"size-6";return n.jsxs("div",{className:"flex items-center -space-x-2",children:[Array.from({length:Math.min(e,2)}).map((s,t)=>n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx("div",{className:d(a,"rounded bg-muted animate-pulse")})},t)),n.jsx("div",{className:d("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",c),children:n.jsx("div",{className:d(i==="sm"?"h-3.5 w-5":"h-3 w-4","rounded bg-muted animate-pulse")})})]})};export{N as A};
1
+ import{c as h,y as d,j as n,r as v}from"./index-DJtnEPc7.js";import{I as p}from"./integration-icon-DrTDJ354.js";import{u as z}from"./use-connection-2T7CNTjX.js";function f(g){const e=h.c(4),{connection_id:i,iconSize:a}=g,c=a===void 0?"xs":a,s=z(i);if(!s)return null;let t;return e[0]!==s.icon||e[1]!==s.title||e[2]!==c?(t=n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx(p,{icon:s.icon,name:s.title,size:c})}),e[0]=s.icon,e[1]=s.title,e[2]=c,e[3]=t):t=e[3],t}f.Fallback=function({iconSize:e="xs"}){const i=e==="sm"?"size-6":"size-5";return n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx("div",{className:d(i,"rounded bg-muted animate-pulse")})})};function N(g){const e=h.c(18),{connectionIds:i,maxVisibleIcons:a,iconSize:c,className:s}=g,t=a===void 0?2:a,r=c===void 0?"xs":c;if(i.length===0)return null;let l,o,m;if(e[0]!==s||e[1]!==i||e[2]!==r||e[3]!==t){const j=i.slice(0,t);l=i.length-t,e[7]!==s?(o=d("flex items-center justify-end -space-x-2",s),e[7]=s,e[8]=o):o=e[8];let b;e[9]!==r?(b=k=>n.jsx(v.Suspense,{fallback:n.jsx(f.Fallback,{iconSize:r}),children:n.jsx(f,{connection_id:k,iconSize:r})},k),e[9]=r,e[10]=b):b=e[10],m=j.map(b),e[0]=s,e[1]=i,e[2]=r,e[3]=t,e[4]=l,e[5]=o,e[6]=m}else l=e[4],o=e[5],m=e[6];let u;e[11]!==r||e[12]!==l?(u=l>0&&n.jsx("div",{className:d("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",r==="sm"?"size-8":"size-6"),children:n.jsxs("span",{className:d(r==="sm"?"text-sm":"text-xs","font-medium text-muted-foreground"),children:["+",l]})}),e[11]=r,e[12]=l,e[13]=u):u=e[13];let x;return e[14]!==o||e[15]!==m||e[16]!==u?(x=n.jsxs("div",{className:o,children:[m,u]}),e[14]=o,e[15]=m,e[16]=u,e[17]=x):x=e[17],x}N.Fallback=function({maxVisibleIcons:e=2,iconSize:i="xs"}){const a=i==="sm"?"size-6":"size-5",c=i==="sm"?"size-8":"size-6";return n.jsxs("div",{className:"flex items-center -space-x-2",children:[Array.from({length:Math.min(e,2)}).map((s,t)=>n.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:n.jsx("div",{className:d(a,"rounded bg-muted animate-pulse")})},t)),n.jsx("div",{className:d("shrink-0 bg-background ring-1 ring-background border border-border rounded-lg flex items-center justify-center",c),children:n.jsx("div",{className:d(i==="sm"?"h-3.5 w-5":"h-3 w-4","rounded bg-muted animate-pulse")})})]})};export{N as A};
@@ -1,2 +1,2 @@
1
- import{r as E,c as O,y as X,j as t,B as J,E as fe,ak as qe,u as de,V as Ze,n as Xe,w as ce,e as Qe,g as et,O as Ge,t as tt,q as st,J as lt,M as Ve}from"./index-SkQC2bL2.js";import{u as ot}from"./context-GHqlq7Gd.js";import{E as nt}from"./empty-state-BUpyINsX.js";import{I as Ie}from"./input-C4xXFdLa.js";import{P as rt,a as it,b as at}from"./popover-U_QlVu0r.js";import{S as ct}from"./scroll-area-BvqSXnHA.js";import{n as dt}from"./Container-De-pv4QL.js";import{i as mt}from"./Edit05-DFdmrfVO.js";import{i as ut}from"./Link01-CBvOA17k.js";import{s as ft}from"./XClose-C8g1LxXV.js";import{I as Oe}from"./integration-icon-9nN5AvVn.js";import{u as xt}from"./index-Bs-gkatC.js";import{B as $e}from"./badge-C7XTRm7k.js";import{i as pt,a as ht,C as gt,b as jt}from"./collapsible-B5VFLcG-.js";import{S as bt}from"./switch-BIAgKxiJ.js";import{T as Nt}from"./textarea-Buug1Hxe.js";import{a as xe,c as ye,T as pe,b as he}from"./tooltip-Ckpai_jH.js";import{b as yt,u as vt}from"./use-connection-DSkVzqSP.js";import{u as Ct,a as _t}from"./use-virtual-mcp-V0XoWMM_.js";import{i as Ue}from"./ChevronRight-Df5oEIdG.js";import{n as St}from"./ChevronUp-Ql_IhfwF.js";import{i as De}from"./File02-CqU_tyTM.js";import{i as ze}from"./Loading01-CDOurw-F.js";import{i as kt}from"./Play-DSE8IZVS.js";import{s as Be}from"./Plus-OTc7Ql1V.js";import{a as Le}from"./Tool01-BBVRBzC0.js";import{t as Tt}from"./Users03-B2n8Cd76.js";import{B as wt,a as Et,b as Fe,d as It,e as At,c as Ot}from"./breadcrumb-h9Dq7GJ0.js";import{a as $t,V as Dt}from"./layout-DIeoK390.js";import{S as zt}from"./save-actions-AenTNPs2.js";import{C as Lt}from"./collection-search-CPQlTmfx.js";import{T as Pt}from"./tools-list-BdA1jEJI.js";import{C as Pe}from"./checkbox-B92JdB3t.js";import{e as Rt,c as He,d as Ke,b as Mt,D as Vt}from"./dialog-PlqYdiap.js";import{T as ve,a as Bt,b as Ce,c as Ft}from"./tabs-CytiJeE2.js";import{u as ge,a as Gt}from"./constants-BZUBXkLq.js";import{c as Ut}from"./use-mcp-tools-DTZxAm-y.js";import{a as Ht}from"./use-mcp-resources-D0eHe68n.js";import{u as Kt}from"./use-mcp-prompts-D5tu2gbi.js";import{s as Ye}from"./slugify-CEUa2lfQ.js";import{I as Yt,R as Wt,a as Jt}from"./index-DDOXVfmG.js";import{k as qt}from"./dropdown-menu-V8gWmDzD.js";import{i as je}from"./Check-CN56KhoF.js";import{i as Zt}from"./Code01-ClhNhs6L.js";import{a as Re}from"./Copy01-E3kqWO3T.js";import{i as _e}from"./InfoCircle-DhO0vGS4.js";import{i as Xt}from"./Key01-Bfc7gsTd.js";import{A as Qt}from"./agent-connections-preview-D0-1Au_l.js";import"./decopilot-events-Brt4gAR6.js";import"./useQuery-CtOvMPbo.js";import"./useMutation-CXgAMvoC.js";import"./index-D0LkSlcd.js";import"./index-AtuNXtl1.js";import"./use-collections-C3CSj681.js";import"./Save01-Df_qJsfN.js";import"./SearchMd-D6jy19cO.js";import"./collection-display-button-CEqdF8O7.js";import"./ArrowDown-BrkOB1Av.js";import"./ArrowUp-Bl5YEbbF.js";import"./Grid01-B7q4cvPD.js";import"./List-DxiRK8pO.js";import"./collection-table-wrapper-BVpN3w_L.js";import"./table-c-SrSmwK.js";import"./card-Cm-keK-z.js";import"./types-CUEMI47Y.js";import"./Eye-CUyEl5IU.js";import"./Globe02-DAjgLqHS.js";import"./LayersTwo01-CsbV79W9.js";import"./X-DVxsAMCH.js";const be=({size:o=24,color:e="currentColor",...s})=>E.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},E.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));be.displayName="CubeOutline";const We=({size:o=24,color:e="currentColor",...s})=>E.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},E.createElement("path",{d:"m12 5.5-4.638 6.747c-.28.406-.42.609-.41.778a.5.5 0 0 0 .195.373c.135.102.38.102.874.102H12v5l4.638-6.747c.28-.406.42-.609.41-.778a.5.5 0 0 0-.195-.373c-.135-.102-.38-.102-.874-.102H12v-5Z"}),E.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));We.displayName="ZapCircle";const es=0,ts=38;function ss(){const o=[];for(let e=es;e<=ts;e++)o.push(`/icons/capy-${e}.png`);return o}const ls={sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16"},os=ss();function ns(o){const e=O.c(53),{value:s,onChange:n,name:l,size:r,className:d,fallbackIcon:c}=o,a=r===void 0?"lg":r,[i,u]=E.useState(""),[g,x]=E.useState(!1);let h;e[0]!==n?(h=w=>{n(w),x(!1),u("")},e[0]=n,e[1]=h):h=e[1];const p=h;let f;e[2]!==i||e[3]!==n?(f=()=>{const w=i.trim();w&&(n(w),x(!1),u(""))},e[2]=i,e[3]=n,e[4]=f):f=e[4];const b=f;let m;e[5]!==n?(m=()=>{n(null),x(!1),u("")},e[5]=n,e[6]=m):m=e[6];const j=m,y=ls[a];let C;e[7]!==d||e[8]!==y?(C=X("relative group rounded-lg border border-border shrink-0 overflow-hidden cursor-pointer",y,d),e[7]=d,e[8]=y,e[9]=C):C=e[9];const v=s??"no-icon";let P;e[10]!==c||e[11]!==l||e[12]!==v||e[13]!==s?(P=t.jsx(is,{icon:s,name:l,fallbackIcon:c},v),e[10]=c,e[11]=l,e[12]=v,e[13]=s,e[14]=P):P=e[14];let R;e[15]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(mt,{size:16,className:"text-white"})}),e[15]=R):R=e[15];let S;e[16]!==C||e[17]!==P?(S=t.jsx(rt,{asChild:!0,children:t.jsxs("button",{type:"button",className:C,children:[P,R]})}),e[16]=C,e[17]=P,e[18]=S):S=e[18];let z;e[19]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("span",{className:"text-sm font-medium",children:"Choose icon"}),e[19]=z):z=e[19];let _;e[20]!==j||e[21]!==s?(_=s&&t.jsxs(J,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs text-muted-foreground",onClick:j,children:[t.jsx(ft,{size:12}),"Remove"]}),e[20]=j,e[21]=s,e[22]=_):_=e[22];let k;e[23]!==_?(k=t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[z,_]}),e[23]=_,e[24]=k):k=e[24];let $;e[25]!==p||e[26]!==s?($=os.map(w=>t.jsx("button",{type:"button",onClick:()=>p(w),className:X("h-9 w-9 rounded-md overflow-hidden border transition-colors hover:border-primary cursor-pointer",s===w?"border-primary ring-1 ring-primary":"border-transparent"),children:t.jsx("img",{src:w,alt:"",className:"h-full w-full object-cover",loading:"lazy"})},w)),e[25]=p,e[26]=s,e[27]=$):$=e[27];let A;e[28]!==$?(A=t.jsx(ct,{className:"h-48",children:t.jsx("div",{className:"grid grid-cols-7 gap-1 p-2",children:$})}),e[28]=$,e[29]=A):A=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),e[30]=D):D=e[30];let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=w=>u(w.target.value),e[31]=L):L=e[31];let I;e[32]!==b?(I=w=>{w.key==="Enter"&&(w.preventDefault(),b())},e[32]=b,e[33]=I):I=e[33];let T;e[34]!==i||e[35]!==I?(T=t.jsx(Ie,{value:i,onChange:L,placeholder:"Paste image URL...",className:"h-7 text-xs",onKeyDown:I}),e[34]=i,e[35]=I,e[36]=T):T=e[36];let M;e[37]!==i?(M=i.trim(),e[37]=i,e[38]=M):M=e[38];const V=!M;let F;e[39]!==b||e[40]!==V?(F=t.jsx(J,{variant:"outline",size:"sm",className:"h-7 px-2 text-xs shrink-0",onClick:b,disabled:V,children:"Apply"}),e[39]=b,e[40]=V,e[41]=F):F=e[41];let B;e[42]!==T||e[43]!==F?(B=t.jsxs("div",{className:"flex items-center gap-1.5 p-2 border-t border-border",children:[D,T,F]}),e[42]=T,e[43]=F,e[44]=B):B=e[44];let G;e[45]!==k||e[46]!==A||e[47]!==B?(G=t.jsx(it,{align:"start",className:"w-80 p-0",onOpenAutoFocus:rs,children:t.jsxs("div",{className:"flex flex-col",children:[k,A,B]})}),e[45]=k,e[46]=A,e[47]=B,e[48]=G):G=e[48];let U;return e[49]!==g||e[50]!==S||e[51]!==G?(U=t.jsxs(at,{open:g,onOpenChange:x,children:[S,G]}),e[49]=g,e[50]=S,e[51]=G,e[52]=U):U=e[52],U}function rs(o){return o.preventDefault()}function is(o){const e=O.c(8),{icon:s,name:n,fallbackIcon:l}=o,[r,d]=E.useState(!1);if(!s||r){let i;e[0]!==l?(i=l??t.jsx(dt,{size:24,className:"text-muted-foreground"}),e[0]=l,e[1]=i):i=e[1];let u;return e[2]!==i?(u=t.jsx("div",{className:"h-full w-full flex items-center justify-center bg-muted/20",children:i}),e[2]=i,e[3]=u):u=e[3],u}let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=()=>d(!0),e[4]=c):c=e[4];let a;return e[5]!==s||e[6]!==n?(a=t.jsx("img",{src:s,alt:n,className:"h-full w-full object-cover",onError:c}),e[5]=s,e[6]=n,e[7]=a):a=e[7],a}function Se(o){return o===null?"all":o?.length??0}function as(o,e){const s=o[e];if(!s)return"";const n=[];return s.tools===null?n.push("all tools"):s.tools&&s.tools.length>0&&n.push(`${s.tools.length} tools`),s.resources===null?n.push("all resources"):s.resources&&s.resources.length>0&&n.push(`${s.resources.length} resources`),s.prompts===null?n.push("all prompts"):s.prompts&&s.prompts.length>0&&n.push(`${s.prompts.length} prompts`),n.join(", ")}function cs(o,e){const s=o[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const ds={tools:null,resources:null,prompts:null};function ke(){const o=O.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(ze,{className:"animate-spin text-muted-foreground",size:24})}),o[0]=e):e=o[0],e}function Te(o){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:o})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(qe,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function ms(o){const e=O.c(23),{item:s,isSelected:n,onToggle:l,disabled:r}=o,d=r?"cursor-not-allowed opacity-50":"cursor-pointer",c=n?"bg-accent/25":"hover:bg-muted/50";let a;e[0]!==d||e[1]!==c?(a=X("flex items-start gap-3 p-4 rounded-lg transition-colors",d,c),e[0]=d,e[1]=c,e[2]=a):a=e[2];let i;e[3]!==s.name?(i=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=i):i=e[4];let u;e[5]!==s.tags?(u=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==u?(g=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i,u]}),e[7]=i,e[8]=u,e[9]=g):g=e[9];let x;e[10]!==s.description?(x=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=x):x=e[11];let h;e[12]!==g||e[13]!==x?(h=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[g,x]}),e[12]=g,e[13]=x,e[14]=h):h=e[14];let p;e[15]!==r||e[16]!==n||e[17]!==l?(p=t.jsx(Pe,{checked:n,onCheckedChange:l,disabled:r,className:"mt-0.5"}),e[15]=r,e[16]=n,e[17]=l,e[18]=p):p=e[18];let f;return e[19]!==a||e[20]!==h||e[21]!==p?(f=t.jsxs("label",{className:a,children:[h,p]}),e[19]=a,e[20]=h,e[21]=p,e[22]=f):f=e[22],f}function Me(o){const e=O.c(32),{items:s,selections:n,onToggle:l,onToggleAll:r,emptyMessage:d,disabled:c}=o;let a,i,u,g,x;if(e[0]!==c||e[1]!==d||e[2]!==s||e[3]!==l||e[4]!==r||e[5]!==n){x=Symbol.for("react.early_return_sentinel");e:{const f=s.map(us);if(s.length===0){let v;e[11]!==d?(v=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=v):v=e[12],x=v;break e}u="flex flex-col h-full";const b=c?"cursor-not-allowed opacity-50":"cursor-pointer";let m;e[13]!==b?(m=X("flex items-start gap-3 p-4",b),e[13]=b,e[14]=m):m=e[14];let j;e[15]!==s.length?(j=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=j):j=e[16];const y=n===null;let C;e[17]!==c||e[18]!==r||e[19]!==y?(C=t.jsx(Pe,{checked:y,onCheckedChange:r,disabled:c,className:"mt-0.5"}),e[17]=c,e[18]=r,e[19]=y,e[20]=C):C=e[20],e[21]!==C||e[22]!==m||e[23]!==j?(g=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:m,children:[j,C]})}),e[21]=C,e[22]=m,e[23]=j,e[24]=g):g=e[24],a="flex-1 overflow-auto px-4 py-3 space-y-1",i=s.map(v=>t.jsx(ms,{item:v,isSelected:n===null||n?.includes(v.id),onToggle:()=>l(v.id,f),disabled:c},v.id))}e[0]=c,e[1]=d,e[2]=s,e[3]=l,e[4]=r,e[5]=n,e[6]=a,e[7]=i,e[8]=u,e[9]=g,e[10]=x}else a=e[6],i=e[7],u=e[8],g=e[9],x=e[10];if(x!==Symbol.for("react.early_return_sentinel"))return x;let h;e[25]!==a||e[26]!==i?(h=t.jsx("div",{className:a,children:i}),e[25]=a,e[26]=i,e[27]=h):h=e[27];let p;return e[28]!==u||e[29]!==g||e[30]!==h?(p=t.jsxs("div",{className:u,children:[g,h]}),e[28]=u,e[29]=g,e[30]=h,e[31]=p):p=e[31],p}function us(o){return o.id}function fs(o){const e=O.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Ut(u);let x;e[5]!==g.tools?(x=g.tools.map(xs),e[5]=g.tools,e[6]=x):x=e[6];const h=x;let p;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==r||e[11]!==n?(p=t.jsx(Me,{items:h,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function xs(o){return{id:o.name,name:o.name,description:o.description,tags:t.jsx(Pt,{annotations:o.annotations,_meta:o._meta})}}function ps(o){const e=O.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Ht(u);let x;e[5]!==g.resources?(x=g.resources.map(hs),e[5]=g.resources,e[6]=x):x=e[6];const h=x;let p;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==r||e[11]!==n?(p=t.jsx(Me,{items:h,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function hs(o){return{id:o.name||o.uri,name:o.name||o.uri,description:o.description}}function gs(o){const e=O.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Kt(u);let x;e[5]!==g.prompts?(x=g.prompts.map(js),e[5]=g.prompts,e[6]=x):x=e[6];const h=x;let p;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==r||e[11]!==n?(p=t.jsx(Me,{items:h,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function js(o){return{id:o.name,name:o.name,description:o.description}}function bs(o){const e=O.c(24),{connection:s,isSelected:n,hasSelections:l,summary:r,onClick:d,onToggleAll:c,disabled:a}=o,i=a?"cursor-not-allowed opacity-50":"cursor-pointer",u=n?"bg-accent":"hover:bg-muted/50";let g;e[0]!==i||e[1]!==u?(g=X("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",i,u),e[0]=i,e[1]=u,e[2]=g):g=e[2];const x=a?void 0:d;let h;e[3]!==s.icon||e[4]!==s.title?(h=t.jsx(Oe,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=h):h=e[5];let p;e[6]!==s.title?(p=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=p):p=e[7];let f;e[8]!==l||e[9]!==r?(f=l&&r&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r}),e[8]=l,e[9]=r,e[10]=f):f=e[10];let b;e[11]!==p||e[12]!==f?(b=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[p,f]}),e[11]=p,e[12]=f,e[13]=b):b=e[13];let m;e[14]!==a||e[15]!==l||e[16]!==c?(m=t.jsx(Pe,{checked:l,onCheckedChange:c,onClick:Ns,disabled:a,className:"shrink-0"}),e[14]=a,e[15]=l,e[16]=c,e[17]=m):m=e[17];let j;return e[18]!==g||e[19]!==x||e[20]!==h||e[21]!==b||e[22]!==m?(j=t.jsxs("div",{className:g,onClick:x,children:[h,b,m]}),e[18]=g,e[19]=x,e[20]=h,e[21]=b,e[22]=m,e[23]=j):j=e[23],j}function Ns(o){return o.stopPropagation()}function ys(o){const e=O.c(22),{allConnections:s,searchTerm:n,selectedId:l,hasSelections:r,getSelectionSummary:d,onConnectionClick:c,onToggleAll:a,disabled:i}=o;let u;e[0]!==s||e[1]!==n?(u=n?s.filter(p=>p.title.toLowerCase().includes(n.toLowerCase())||p.description?.toLowerCase().includes(n.toLowerCase())):s,e[0]=s,e[1]=n,e[2]=u):u=e[2];const g=u;if(g.length===0){const p=n?"No connections found":"No connections available";let f;return e[3]!==p?(f=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:p}),e[3]=p,e[4]=f):f=e[4],f}let x;if(e[5]!==i||e[6]!==g||e[7]!==d||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==l){let p;e[13]!==i||e[14]!==d||e[15]!==r||e[16]!==c||e[17]!==a||e[18]!==l?(p=f=>t.jsx(bs,{connection:f,isSelected:l===f.id,hasSelections:r(f.id),summary:d(f.id),onClick:()=>c(f.id),onToggleAll:()=>a(f.id),disabled:i},f.id),e[13]=i,e[14]=d,e[15]=r,e[16]=c,e[17]=a,e[18]=l,e[19]=p):p=e[19],x=g.map(p),e[5]=i,e[6]=g,e[7]=d,e[8]=r,e[9]=c,e[10]=a,e[11]=l,e[12]=x}else x=e[12];let h;return e[20]!==x?(h=t.jsx("div",{className:"flex flex-col gap-0.5",children:x}),e[20]=x,e[21]=h):h=e[21],h}function vs(o){const e=O.c(75),{currentConnection:s,activeTab:n,selectedId:l,formData:r,toggleTool:d,toggleResource:c,togglePrompt:a,toggleAllTools:i,toggleAllResources:u,toggleAllPrompts:g,onTabChange:x}=o;let h;e[0]!==s.icon||e[1]!==s.title?(h=t.jsx(Oe,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=h):h=e[2];let p;e[3]!==s.title?(p=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=p):p=e[4];let f;e[5]!==s.description?(f=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=f):f=e[6];let b;e[7]!==p||e[8]!==f?(b=t.jsxs("div",{className:"flex-1 min-w-0",children:[p,f]}),e[7]=p,e[8]=f,e[9]=b):b=e[9];let m;e[10]!==h||e[11]!==b?(m=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[h,b]})}),e[10]=h,e[11]=b,e[12]=m):m=e[12];let j;e[13]!==x?(j=K=>x(K),e[13]=x,e[14]=j):j=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(ve,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Tools"]}),e[15]=y):y=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(ve,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(be,{size:16}),"Resources"]}),e[16]=C):C=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(Bt,{variant:"underline",className:"shrink-0 px-6",children:[y,C,t.jsxs(ve,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(De,{size:16}),"Prompts"]})]}),e[17]=v):v=e[17];let P;e[18]===Symbol.for("react.memo_cache_sentinel")?(P=Te("Tools not supported by this server"),e[18]=P):P=e[18];let R;e[19]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ke,{}),e[19]=R):R=e[19];let S;e[20]!==r||e[21]!==l?(S=r[l]?r[l].tools:[],e[20]=r,e[21]=l,e[22]=S):S=e[22];let z;e[23]!==l||e[24]!==d?(z=(K,q)=>d(l,K,q),e[23]=l,e[24]=d,e[25]=z):z=e[25];let _;e[26]!==l||e[27]!==i?(_=()=>i(l),e[26]=l,e[27]=i,e[28]=_):_=e[28];let k;e[29]!==l||e[30]!==S||e[31]!==z||e[32]!==_?(k=t.jsx(Ce,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:P,children:t.jsx(E.Suspense,{fallback:R,children:t.jsx(fs,{connectionId:l,selections:S,onToggle:z,onToggleAll:_})})})}),e[29]=l,e[30]=S,e[31]=z,e[32]=_,e[33]=k):k=e[33];let $;e[34]===Symbol.for("react.memo_cache_sentinel")?($=Te("Resources not supported by this server"),e[34]=$):$=e[34];let A;e[35]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(ke,{}),e[35]=A):A=e[35];let D;e[36]!==r||e[37]!==l?(D=r[l]?r[l].resources:[],e[36]=r,e[37]=l,e[38]=D):D=e[38];let L;e[39]!==l||e[40]!==c?(L=(K,q)=>c(l,K,q),e[39]=l,e[40]=c,e[41]=L):L=e[41];let I;e[42]!==l||e[43]!==u?(I=()=>u(l),e[42]=l,e[43]=u,e[44]=I):I=e[44];let T;e[45]!==l||e[46]!==D||e[47]!==L||e[48]!==I?(T=t.jsx(Ce,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:$,children:t.jsx(E.Suspense,{fallback:A,children:t.jsx(ps,{connectionId:l,selections:D,onToggle:L,onToggleAll:I})})})}),e[45]=l,e[46]=D,e[47]=L,e[48]=I,e[49]=T):T=e[49];let M;e[50]===Symbol.for("react.memo_cache_sentinel")?(M=Te("Prompts not supported by this server"),e[50]=M):M=e[50];let V;e[51]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ke,{}),e[51]=V):V=e[51];let F;e[52]!==r||e[53]!==l?(F=r[l]?r[l].prompts:[],e[52]=r,e[53]=l,e[54]=F):F=e[54];let B;e[55]!==l||e[56]!==a?(B=(K,q)=>a(l,K,q),e[55]=l,e[56]=a,e[57]=B):B=e[57];let G;e[58]!==l||e[59]!==g?(G=()=>g(l),e[58]=l,e[59]=g,e[60]=G):G=e[60];let U;e[61]!==l||e[62]!==F||e[63]!==B||e[64]!==G?(U=t.jsx(Ce,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:M,children:t.jsx(E.Suspense,{fallback:V,children:t.jsx(gs,{connectionId:l,selections:F,onToggle:B,onToggleAll:G})})})}),e[61]=l,e[62]=F,e[63]=B,e[64]=G,e[65]=U):U=e[65];let w;e[66]!==n||e[67]!==k||e[68]!==T||e[69]!==U||e[70]!==j?(w=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(Ft,{value:n,onValueChange:j,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[v,k,T,U]})}),e[66]=n,e[67]=k,e[68]=T,e[69]=U,e[70]=j,e[71]=w):w=e[71];let Z;return e[72]!==w||e[73]!==m?(Z=t.jsxs(t.Fragment,{children:[m,w]}),e[72]=w,e[73]=m,e[74]=Z):Z=e[74],Z}function Cs(o){const e={};for(const s of o)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function we(o){return Object.entries(o).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function _s(o,e){switch(e.type){case"SET_SEARCH_TERM":return{...o,searchTerm:e.payload};case"SET_SELECTED":return{...o,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...o,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...o,selectedId:e.payload,activeTab:"tools"};default:return o}}const Ss=(o,e)=>o.find(s=>s.id===e)??o[0];function ks(o){const e=O.c(77),{open:s,onOpenChange:n,selectedId:l,form:r,connections:d}=o;let c;e[0]!==l?(c={activeTab:"tools",searchTerm:"",selectedId:l},e[0]=l,e[1]=c):c=e[1];const[a,i]=E.useReducer(_s,c),u=E.useDeferredValue(a.searchTerm);let g;e[2]!==u?(g={searchTerm:u},e[2]=u,e[3]=g):g=e[3];const x=yt(g);let h;e[4]!==d?(h=d??[],e[4]=d,e[5]=h):h=e[5];let p;e[6]!==h?(p=Cs(h),e[6]=h,e[7]=p):p=e[7];const f=p;let b;e[8]!==x||e[9]!==a.selectedId?(b=Ss(x,a.selectedId),e[8]=x,e[9]=a.selectedId,e[10]=b):b=e[10];const m=b,j=m?.id??null;let y;e[11]!==f?(y=N=>cs(f,N),e[11]=f,e[12]=y):y=e[12];const C=y;let v;e[13]!==f?(v=N=>as(f,N),e[13]=f,e[14]=v):v=e[14];const P=v;let R;e[15]!==r||e[16]!==f?(R=(N,H,Y,Q)=>{const ie=f[N]?.[H];let W;ie===null?W=Q.filter(Ne=>Ne!==Y):ie?.includes(Y)?W=ie.filter(Ne=>Ne!==Y):(W=[...ie??[],Y],W.length===Q.length&&(W=null));const ae={...f};ae[N]?ae[N]={...ae[N]}:ae[N]={tools:null,resources:null,prompts:null},ae[N][H]=W,r.setValue("connections",we(ae),{shouldDirty:!0,shouldTouch:!0})},e[15]=r,e[16]=f,e[17]=R):R=e[17];const S=R;let z;e[18]!==r||e[19]!==f?(z=(N,H)=>{const ie=f[N]?.[H]===null?[]:null,W={...f};W[N]?W[N]={...W[N]}:W[N]={tools:null,resources:null,prompts:null},W[N][H]=ie,r.setValue("connections",we(W),{shouldDirty:!0,shouldTouch:!0})},e[18]=r,e[19]=f,e[20]=z):z=e[20];const _=z;let k;e[21]!==S?(k=(N,H,Y)=>S(N,"tools",H,Y),e[21]=S,e[22]=k):k=e[22];const $=k;let A;e[23]!==S?(A=(N,H,Y)=>S(N,"resources",H,Y),e[23]=S,e[24]=A):A=e[24];const D=A;let L;e[25]!==S?(L=(N,H,Y)=>S(N,"prompts",H,Y),e[25]=S,e[26]=L):L=e[26];const I=L;let T;e[27]!==_?(T=N=>_(N,"tools"),e[27]=_,e[28]=T):T=e[28];const M=T;let V;e[29]!==_?(V=N=>_(N,"resources"),e[29]=_,e[30]=V):V=e[30];const F=V;let B;e[31]!==_?(B=N=>_(N,"prompts"),e[31]=_,e[32]=B):B=e[32];const G=B;let U;e[33]!==r||e[34]!==f?(U=N=>{const H=f[N],Y=H&&H.tools===null&&H.resources===null&&H.prompts===null,Q={...f};Y?delete Q[N]:Q[N]=ds,r.setValue("connections",we(Q),{shouldDirty:!0,shouldTouch:!0})},e[33]=r,e[34]=f,e[35]=U):U=e[35];const w=U;let Z;e[36]!==x||e[37]!==n||e[38]!==l?(Z=N=>{N&&i({type:"RESET",payload:{selectedId:l,firstConnectionId:x[0]?.id??null}}),n(N)},e[36]=x,e[37]=n,e[38]=l,e[39]=Z):Z=e[39];const K=Z;let q;e[40]===Symbol.for("react.memo_cache_sentinel")?(q=N=>{i({type:"SELECT_CONNECTION",payload:N})},e[40]=q):q=e[40];const Je=q;let me;e[41]===Symbol.for("react.memo_cache_sentinel")?(me=N=>i({type:"SET_SEARCH_TERM",payload:N}),e[41]=me):me=e[41];let ee;e[42]!==a.searchTerm?(ee=t.jsx(Lt,{value:a.searchTerm,onChange:me,placeholder:"Search connections..."}),e[42]=a.searchTerm,e[43]=ee):ee=e[43];let te;e[44]!==x||e[45]!==a.searchTerm||e[46]!==j||e[47]!==P||e[48]!==C||e[49]!==w?(te=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(ys,{allConnections:x,searchTerm:a.searchTerm,selectedId:j,hasSelections:C,getSelectionSummary:P,onConnectionClick:Je,onToggleAll:w})}),e[44]=x,e[45]=a.searchTerm,e[46]=j,e[47]=P,e[48]=C,e[49]=w,e[50]=te):te=e[50];let se;e[51]!==ee||e[52]!==te?(se=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[ee,te]}),e[51]=ee,e[52]=te,e[53]=se):se=e[53];let le;e[54]!==m||e[55]!==a.activeTab||e[56]!==j||e[57]!==f||e[58]!==G||e[59]!==F||e[60]!==M||e[61]!==I||e[62]!==D||e[63]!==$?(le=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:m&&j?t.jsx(vs,{currentConnection:m,activeTab:a.activeTab,selectedId:j,formData:f,toggleTool:$,toggleResource:D,togglePrompt:I,toggleAllTools:M,toggleAllResources:F,toggleAllPrompts:G,onTabChange:N=>i({type:"SET_ACTIVE_TAB",payload:N})},j):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[54]=m,e[55]=a.activeTab,e[56]=j,e[57]=f,e[58]=G,e[59]=F,e[60]=M,e[61]=I,e[62]=D,e[63]=$,e[64]=le):le=e[64];let oe;e[65]!==se||e[66]!==le?(oe=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[se,le]}),e[65]=se,e[66]=le,e[67]=oe):oe=e[67];let ne;e[68]!==K?(ne=t.jsx(Rt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(J,{variant:"outline",onClick:()=>K(!1),children:"Done"})}),e[68]=K,e[69]=ne):ne=e[69];let re;e[70]!==oe||e[71]!==ne?(re=t.jsxs(He,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[oe,ne]}),e[70]=oe,e[71]=ne,e[72]=re):re=e[72];let ue;return e[73]!==K||e[74]!==s||e[75]!==re?(ue=t.jsx(Ke,{open:s,onOpenChange:K,children:re}),e[73]=K,e[74]=s,e[75]=re,e[76]=ue):ue=e[76],ue}const Ts=Ze.pick({title:!0,description:!0,icon:!0,status:!0,metadata:!0,connections:!0}).extend({title:Xe().min(1,"Name is required").max(255)});function ws(o){const e=O.c(8);let s,n;e[0]!==o?({className:s,...n}=o,e[0]=o,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let l;e[3]!==s?(l=X("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx(Wt,{"data-slot":"radio-group",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function Ee(o){const e=O.c(9);let s,n;e[0]!==o?({className:s,...n}=o,e[0]=o,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let l;e[3]!==s?(l=X("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=l):l=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Jt,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(qt,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let d;return e[6]!==n||e[7]!==l?(d=t.jsx(Yt,{"data-slot":"radio-group-item",className:l,...n,children:r}),e[6]=n,e[7]=l,e[8]=d):d=e[8],d}function Es(o){const s=new TextEncoder().encode(o),n=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(n)}function Is(o){const e=O.c(10),{url:s}=o,[n,l]=E.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),l(!0),ce.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=r):r=e[1];const d=r;let c;e[2]!==n?(c=n?t.jsx(je,{size:20,className:"text-green-600"}):t.jsx(Re,{size:20}),e[2]=n,e[3]=c):c=e[3];const a=n?"Copied!":"Copy URL";let i;e[4]!==a?(i=t.jsx("span",{className:"text-xs font-medium",children:a}),e[4]=a,e[5]=i):i=e[5];let u;return e[6]!==d||e[7]!==c||e[8]!==i?(u=t.jsxs(J,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,i]}),e[6]=d,e[7]=c,e[8]=i,e[9]=u):u=e[9],u}function As(o){const e=O.c(7),{url:s,serverName:n}=o;let l;e[0]!==n||e[1]!==s?(l=()=>{const i=Ye(n),g=Es(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),x=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(i)}&config=${encodeURIComponent(g)}`;window.open(x,"_blank"),ce.success("Opening Cursor...")},e[0]=n,e[1]=s,e[2]=l):l=e[2];const r=l;let d,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),c=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=c):(d=e[3],c=e[4]);let a;return e[5]!==r?(a=t.jsxs(J,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,c]}),e[5]=r,e[6]=a):a=e[6],a}function Os(o){const e=O.c(11),{url:s,serverName:n}=o,[l,r]=E.useState(!1);let d;e[0]!==n||e[1]!==s?(d=async()=>{const x=Ye(n),p=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),f=`claude mcp add-json "${x}" '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(f),r(!0),ce.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=n,e[1]=s,e[2]=d):d=e[2];const c=d;let a;e[3]!==l?(a=l?t.jsx(je,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=l,e[4]=a):a=e[4];const i=l?"Copied!":"Install on Claude";let u;e[5]!==i?(u=t.jsx("span",{className:"text-xs font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let g;return e[7]!==c||e[8]!==a||e[9]!==u?(g=t.jsxs(J,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,u]}),e[7]=c,e[8]=a,e[9]=u,e[10]=g):g=e[10],g}function $s({virtualMcp:o}){const{org:e}=de(),s=ge({connectionId:Gt,orgId:e.id}),[n,l]=E.useState(null),[r,d]=E.useState(!1),[c,a]=E.useState(!1),i=o.id,u=o.title||`agent-${i.slice(0,8)}`,g=n?`bunx @decocms/typegen@latest --mcp ${i} --key ${n} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${i} --key <api-key> --output client.ts`,x=async()=>{d(!0);try{const f=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${u}`,permissions:{[i]:["*"]}}})).structuredContent?.key;if(!f)throw new Error("No key in response");l(f)}catch{ce.error("Failed to generate API key")}finally{d(!1)}},h=async()=>{await navigator.clipboard.writeText(g),a(!0),ce.success("Command copied to clipboard"),setTimeout(()=>a(!1),2e3)};return t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Generate typed client"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Introspects this agent and writes a typed"," ",t.jsx("code",{className:"font-mono",children:"client.ts"})," you can import directly."]})]}),!n&&t.jsxs(J,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:x,disabled:r,children:[r?t.jsx(ze,{size:14,className:"animate-spin"}):t.jsx(Xt,{size:14}),t.jsx("span",{children:r?"Generating…":"Generate API key"})]})]}),n&&t.jsx("p",{className:"rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700",children:"Store this key securely — it won't be shown again."}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Generate client"}),t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("code",{className:"min-w-0 flex-1 break-all font-mono text-xs text-muted-foreground",children:g}),t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:h,children:c?t.jsx(je,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(Ds,{apiKey:n})]})}function Ds(o){const e=O.c(19),{apiKey:s}=o,[n,l]=E.useState(!1),r=window.location.origin,d=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",c=`MESH_BASE_URL=${r}`,a=`${d}
1
+ import{r as E,c as O,y as X,j as t,B as J,E as fe,ak as qe,u as de,V as Ze,n as Xe,w as ce,e as Qe,g as et,O as Ge,t as tt,q as st,J as lt,M as Ve}from"./index-DJtnEPc7.js";import{u as ot}from"./context-D-2OkzTq.js";import{E as nt}from"./empty-state-COoAU6KF.js";import{I as Ie}from"./input-j_5WJy1c.js";import{P as rt,a as it,b as at}from"./popover-B_9jK9T6.js";import{S as ct}from"./scroll-area-DXeQheGE.js";import{n as dt}from"./Container-C_pBhYQm.js";import{i as mt}from"./Edit05-DW3L1ev9.js";import{i as ut}from"./Link01-2qS2xckB.js";import{s as ft}from"./XClose-ndXrBTVc.js";import{I as Oe}from"./integration-icon-DrTDJ354.js";import{u as xt}from"./index-qxqsMecG.js";import{B as $e}from"./badge-7TJrkuyd.js";import{i as pt,a as ht,C as gt,b as jt}from"./collapsible-Dl714J5i.js";import{S as bt}from"./switch-7_yekA3p.js";import{T as Nt}from"./textarea-BJkI1dfy.js";import{a as xe,c as ye,T as pe,b as he}from"./tooltip-Bms1Xn3i.js";import{b as yt,u as vt}from"./use-connection-2T7CNTjX.js";import{u as Ct,a as _t}from"./use-virtual-mcp-B8_wDvx9.js";import{i as Ue}from"./ChevronRight-DmvbXNWu.js";import{n as St}from"./ChevronUp-C8129itH.js";import{i as De}from"./File02-BsdZFaU2.js";import{i as ze}from"./Loading01-CSUxQOK0.js";import{i as kt}from"./Play-D223AznW.js";import{s as Be}from"./Plus-CGe5wBcS.js";import{a as Le}from"./Tool01-DImlld_g.js";import{t as Tt}from"./Users03-C-Jr0LW_.js";import{B as wt,a as Et,b as Fe,d as It,e as At,c as Ot}from"./breadcrumb-7YipRD-p.js";import{a as $t,V as Dt}from"./layout-Cyh0KCTx.js";import{S as zt}from"./save-actions-DRE_2Nh6.js";import{C as Lt}from"./collection-search-BeqmTWUU.js";import{T as Pt}from"./tools-list-DfrxfnU8.js";import{C as Pe}from"./checkbox-BRXa8FNh.js";import{e as Rt,c as He,d as Ke,b as Mt,D as Vt}from"./dialog-1RTimACw.js";import{T as ve,a as Bt,b as Ce,c as Ft}from"./tabs-T6eq77EC.js";import{u as ge,a as Gt}from"./constants-4hZfe-FX.js";import{c as Ut}from"./use-mcp-tools-CoXbW9dQ.js";import{a as Ht}from"./use-mcp-resources-INpGwYsS.js";import{u as Kt}from"./use-mcp-prompts-Bvq8o_wk.js";import{s as Ye}from"./slugify-CEUa2lfQ.js";import{I as Yt,R as Wt,a as Jt}from"./index-FmcHS0n7.js";import{k as qt}from"./dropdown-menu-ur1Ui41o.js";import{i as je}from"./Check-DsclgHfU.js";import{i as Zt}from"./Code01-Cq3-F_YX.js";import{a as Re}from"./Copy01-CFr3FQ5x.js";import{i as _e}from"./InfoCircle-8bpl-KKl.js";import{i as Xt}from"./Key01-yVAqC10q.js";import{A as Qt}from"./agent-connections-preview-Vgh7fOJI.js";import"./decopilot-events-Brt4gAR6.js";import"./useQuery-DLey6Pvf.js";import"./useMutation-D77LVetF.js";import"./index-CElzn9PI.js";import"./index-biN0aic_.js";import"./use-collections-uyyRdHl8.js";import"./Save01-CYi2R4Ht.js";import"./SearchMd-CrngVZhh.js";import"./collection-display-button-CPJ0Uvih.js";import"./ArrowDown-qfJtx-dv.js";import"./ArrowUp-ETVB6cdy.js";import"./Grid01-BSBJv9eJ.js";import"./List-LffcVOLG.js";import"./collection-table-wrapper-DU2xJaVV.js";import"./table-Cd-wCYBh.js";import"./card-D9sP6AvS.js";import"./types-BTzo08LL.js";import"./Eye-Dq2YmoWs.js";import"./Globe02-BLXYb9br.js";import"./LayersTwo01-T6ICoMvs.js";import"./X-CuPyb-Ex.js";const be=({size:o=24,color:e="currentColor",...s})=>E.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},E.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));be.displayName="CubeOutline";const We=({size:o=24,color:e="currentColor",...s})=>E.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},E.createElement("path",{d:"m12 5.5-4.638 6.747c-.28.406-.42.609-.41.778a.5.5 0 0 0 .195.373c.135.102.38.102.874.102H12v5l4.638-6.747c.28-.406.42-.609.41-.778a.5.5 0 0 0-.195-.373c-.135-.102-.38-.102-.874-.102H12v-5Z"}),E.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));We.displayName="ZapCircle";const es=0,ts=38;function ss(){const o=[];for(let e=es;e<=ts;e++)o.push(`/icons/capy-${e}.png`);return o}const ls={sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16"},os=ss();function ns(o){const e=O.c(53),{value:s,onChange:n,name:l,size:r,className:d,fallbackIcon:c}=o,a=r===void 0?"lg":r,[i,u]=E.useState(""),[g,x]=E.useState(!1);let h;e[0]!==n?(h=w=>{n(w),x(!1),u("")},e[0]=n,e[1]=h):h=e[1];const p=h;let f;e[2]!==i||e[3]!==n?(f=()=>{const w=i.trim();w&&(n(w),x(!1),u(""))},e[2]=i,e[3]=n,e[4]=f):f=e[4];const b=f;let m;e[5]!==n?(m=()=>{n(null),x(!1),u("")},e[5]=n,e[6]=m):m=e[6];const j=m,y=ls[a];let C;e[7]!==d||e[8]!==y?(C=X("relative group rounded-lg border border-border shrink-0 overflow-hidden cursor-pointer",y,d),e[7]=d,e[8]=y,e[9]=C):C=e[9];const v=s??"no-icon";let P;e[10]!==c||e[11]!==l||e[12]!==v||e[13]!==s?(P=t.jsx(is,{icon:s,name:l,fallbackIcon:c},v),e[10]=c,e[11]=l,e[12]=v,e[13]=s,e[14]=P):P=e[14];let R;e[15]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(mt,{size:16,className:"text-white"})}),e[15]=R):R=e[15];let S;e[16]!==C||e[17]!==P?(S=t.jsx(rt,{asChild:!0,children:t.jsxs("button",{type:"button",className:C,children:[P,R]})}),e[16]=C,e[17]=P,e[18]=S):S=e[18];let z;e[19]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("span",{className:"text-sm font-medium",children:"Choose icon"}),e[19]=z):z=e[19];let _;e[20]!==j||e[21]!==s?(_=s&&t.jsxs(J,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs text-muted-foreground",onClick:j,children:[t.jsx(ft,{size:12}),"Remove"]}),e[20]=j,e[21]=s,e[22]=_):_=e[22];let k;e[23]!==_?(k=t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[z,_]}),e[23]=_,e[24]=k):k=e[24];let $;e[25]!==p||e[26]!==s?($=os.map(w=>t.jsx("button",{type:"button",onClick:()=>p(w),className:X("h-9 w-9 rounded-md overflow-hidden border transition-colors hover:border-primary cursor-pointer",s===w?"border-primary ring-1 ring-primary":"border-transparent"),children:t.jsx("img",{src:w,alt:"",className:"h-full w-full object-cover",loading:"lazy"})},w)),e[25]=p,e[26]=s,e[27]=$):$=e[27];let A;e[28]!==$?(A=t.jsx(ct,{className:"h-48",children:t.jsx("div",{className:"grid grid-cols-7 gap-1 p-2",children:$})}),e[28]=$,e[29]=A):A=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),e[30]=D):D=e[30];let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=w=>u(w.target.value),e[31]=L):L=e[31];let I;e[32]!==b?(I=w=>{w.key==="Enter"&&(w.preventDefault(),b())},e[32]=b,e[33]=I):I=e[33];let T;e[34]!==i||e[35]!==I?(T=t.jsx(Ie,{value:i,onChange:L,placeholder:"Paste image URL...",className:"h-7 text-xs",onKeyDown:I}),e[34]=i,e[35]=I,e[36]=T):T=e[36];let M;e[37]!==i?(M=i.trim(),e[37]=i,e[38]=M):M=e[38];const V=!M;let F;e[39]!==b||e[40]!==V?(F=t.jsx(J,{variant:"outline",size:"sm",className:"h-7 px-2 text-xs shrink-0",onClick:b,disabled:V,children:"Apply"}),e[39]=b,e[40]=V,e[41]=F):F=e[41];let B;e[42]!==T||e[43]!==F?(B=t.jsxs("div",{className:"flex items-center gap-1.5 p-2 border-t border-border",children:[D,T,F]}),e[42]=T,e[43]=F,e[44]=B):B=e[44];let G;e[45]!==k||e[46]!==A||e[47]!==B?(G=t.jsx(it,{align:"start",className:"w-80 p-0",onOpenAutoFocus:rs,children:t.jsxs("div",{className:"flex flex-col",children:[k,A,B]})}),e[45]=k,e[46]=A,e[47]=B,e[48]=G):G=e[48];let U;return e[49]!==g||e[50]!==S||e[51]!==G?(U=t.jsxs(at,{open:g,onOpenChange:x,children:[S,G]}),e[49]=g,e[50]=S,e[51]=G,e[52]=U):U=e[52],U}function rs(o){return o.preventDefault()}function is(o){const e=O.c(8),{icon:s,name:n,fallbackIcon:l}=o,[r,d]=E.useState(!1);if(!s||r){let i;e[0]!==l?(i=l??t.jsx(dt,{size:24,className:"text-muted-foreground"}),e[0]=l,e[1]=i):i=e[1];let u;return e[2]!==i?(u=t.jsx("div",{className:"h-full w-full flex items-center justify-center bg-muted/20",children:i}),e[2]=i,e[3]=u):u=e[3],u}let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=()=>d(!0),e[4]=c):c=e[4];let a;return e[5]!==s||e[6]!==n?(a=t.jsx("img",{src:s,alt:n,className:"h-full w-full object-cover",onError:c}),e[5]=s,e[6]=n,e[7]=a):a=e[7],a}function Se(o){return o===null?"all":o?.length??0}function as(o,e){const s=o[e];if(!s)return"";const n=[];return s.tools===null?n.push("all tools"):s.tools&&s.tools.length>0&&n.push(`${s.tools.length} tools`),s.resources===null?n.push("all resources"):s.resources&&s.resources.length>0&&n.push(`${s.resources.length} resources`),s.prompts===null?n.push("all prompts"):s.prompts&&s.prompts.length>0&&n.push(`${s.prompts.length} prompts`),n.join(", ")}function cs(o,e){const s=o[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const ds={tools:null,resources:null,prompts:null};function ke(){const o=O.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(ze,{className:"animate-spin text-muted-foreground",size:24})}),o[0]=e):e=o[0],e}function Te(o){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:o})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(qe,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message?e.message.length>200?`${e.message.slice(0,200)}...`:e.message:"An unexpected error occurred"})]})]})}function ms(o){const e=O.c(23),{item:s,isSelected:n,onToggle:l,disabled:r}=o,d=r?"cursor-not-allowed opacity-50":"cursor-pointer",c=n?"bg-accent/25":"hover:bg-muted/50";let a;e[0]!==d||e[1]!==c?(a=X("flex items-start gap-3 p-4 rounded-lg transition-colors",d,c),e[0]=d,e[1]=c,e[2]=a):a=e[2];let i;e[3]!==s.name?(i=t.jsx("p",{className:"text-sm font-medium leading-none truncate",children:s.name}),e[3]=s.name,e[4]=i):i=e[4];let u;e[5]!==s.tags?(u=s.tags&&t.jsx("span",{className:"shrink-0",children:s.tags}),e[5]=s.tags,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==u?(g=t.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i,u]}),e[7]=i,e[8]=u,e[9]=g):g=e[9];let x;e[10]!==s.description?(x=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[10]=s.description,e[11]=x):x=e[11];let h;e[12]!==g||e[13]!==x?(h=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[g,x]}),e[12]=g,e[13]=x,e[14]=h):h=e[14];let p;e[15]!==r||e[16]!==n||e[17]!==l?(p=t.jsx(Pe,{checked:n,onCheckedChange:l,disabled:r,className:"mt-0.5"}),e[15]=r,e[16]=n,e[17]=l,e[18]=p):p=e[18];let f;return e[19]!==a||e[20]!==h||e[21]!==p?(f=t.jsxs("label",{className:a,children:[h,p]}),e[19]=a,e[20]=h,e[21]=p,e[22]=f):f=e[22],f}function Me(o){const e=O.c(32),{items:s,selections:n,onToggle:l,onToggleAll:r,emptyMessage:d,disabled:c}=o;let a,i,u,g,x;if(e[0]!==c||e[1]!==d||e[2]!==s||e[3]!==l||e[4]!==r||e[5]!==n){x=Symbol.for("react.early_return_sentinel");e:{const f=s.map(us);if(s.length===0){let v;e[11]!==d?(v=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=v):v=e[12],x=v;break e}u="flex flex-col h-full";const b=c?"cursor-not-allowed opacity-50":"cursor-pointer";let m;e[13]!==b?(m=X("flex items-start gap-3 p-4",b),e[13]=b,e[14]=m):m=e[14];let j;e[15]!==s.length?(j=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=j):j=e[16];const y=n===null;let C;e[17]!==c||e[18]!==r||e[19]!==y?(C=t.jsx(Pe,{checked:y,onCheckedChange:r,disabled:c,className:"mt-0.5"}),e[17]=c,e[18]=r,e[19]=y,e[20]=C):C=e[20],e[21]!==C||e[22]!==m||e[23]!==j?(g=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:m,children:[j,C]})}),e[21]=C,e[22]=m,e[23]=j,e[24]=g):g=e[24],a="flex-1 overflow-auto px-4 py-3 space-y-1",i=s.map(v=>t.jsx(ms,{item:v,isSelected:n===null||n?.includes(v.id),onToggle:()=>l(v.id,f),disabled:c},v.id))}e[0]=c,e[1]=d,e[2]=s,e[3]=l,e[4]=r,e[5]=n,e[6]=a,e[7]=i,e[8]=u,e[9]=g,e[10]=x}else a=e[6],i=e[7],u=e[8],g=e[9],x=e[10];if(x!==Symbol.for("react.early_return_sentinel"))return x;let h;e[25]!==a||e[26]!==i?(h=t.jsx("div",{className:a,children:i}),e[25]=a,e[26]=i,e[27]=h):h=e[27];let p;return e[28]!==u||e[29]!==g||e[30]!==h?(p=t.jsxs("div",{className:u,children:[g,h]}),e[28]=u,e[29]=g,e[30]=h,e[31]=p):p=e[31],p}function us(o){return o.id}function fs(o){const e=O.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Ut(u);let x;e[5]!==g.tools?(x=g.tools.map(xs),e[5]=g.tools,e[6]=x):x=e[6];const h=x;let p;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==r||e[11]!==n?(p=t.jsx(Me,{items:h,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function xs(o){return{id:o.name,name:o.name,description:o.description,tags:t.jsx(Pt,{annotations:o.annotations,_meta:o._meta})}}function ps(o){const e=O.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Ht(u);let x;e[5]!==g.resources?(x=g.resources.map(hs),e[5]=g.resources,e[6]=x):x=e[6];const h=x;let p;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==r||e[11]!==n?(p=t.jsx(Me,{items:h,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function hs(o){return{id:o.name||o.uri,name:o.name||o.uri,description:o.description}}function gs(o){const e=O.c(13),{connectionId:s,selections:n,onToggle:l,onToggleAll:r,disabled:d}=o,{org:c}=de();let a;e[0]!==s||e[1]!==c.id?(a={connectionId:s,orgId:c.id},e[0]=s,e[1]=c.id,e[2]=a):a=e[2];const i=ge(a);let u;e[3]!==i?(u={client:i},e[3]=i,e[4]=u):u=e[4];const{data:g}=Kt(u);let x;e[5]!==g.prompts?(x=g.prompts.map(js),e[5]=g.prompts,e[6]=x):x=e[6];const h=x;let p;return e[7]!==d||e[8]!==h||e[9]!==l||e[10]!==r||e[11]!==n?(p=t.jsx(Me,{items:h,selections:n,onToggle:l,onToggleAll:r,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=h,e[9]=l,e[10]=r,e[11]=n,e[12]=p):p=e[12],p}function js(o){return{id:o.name,name:o.name,description:o.description}}function bs(o){const e=O.c(24),{connection:s,isSelected:n,hasSelections:l,summary:r,onClick:d,onToggleAll:c,disabled:a}=o,i=a?"cursor-not-allowed opacity-50":"cursor-pointer",u=n?"bg-accent":"hover:bg-muted/50";let g;e[0]!==i||e[1]!==u?(g=X("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",i,u),e[0]=i,e[1]=u,e[2]=g):g=e[2];const x=a?void 0:d;let h;e[3]!==s.icon||e[4]!==s.title?(h=t.jsx(Oe,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=h):h=e[5];let p;e[6]!==s.title?(p=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=p):p=e[7];let f;e[8]!==l||e[9]!==r?(f=l&&r&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:r}),e[8]=l,e[9]=r,e[10]=f):f=e[10];let b;e[11]!==p||e[12]!==f?(b=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[p,f]}),e[11]=p,e[12]=f,e[13]=b):b=e[13];let m;e[14]!==a||e[15]!==l||e[16]!==c?(m=t.jsx(Pe,{checked:l,onCheckedChange:c,onClick:Ns,disabled:a,className:"shrink-0"}),e[14]=a,e[15]=l,e[16]=c,e[17]=m):m=e[17];let j;return e[18]!==g||e[19]!==x||e[20]!==h||e[21]!==b||e[22]!==m?(j=t.jsxs("div",{className:g,onClick:x,children:[h,b,m]}),e[18]=g,e[19]=x,e[20]=h,e[21]=b,e[22]=m,e[23]=j):j=e[23],j}function Ns(o){return o.stopPropagation()}function ys(o){const e=O.c(22),{allConnections:s,searchTerm:n,selectedId:l,hasSelections:r,getSelectionSummary:d,onConnectionClick:c,onToggleAll:a,disabled:i}=o;let u;e[0]!==s||e[1]!==n?(u=n?s.filter(p=>p.title.toLowerCase().includes(n.toLowerCase())||p.description?.toLowerCase().includes(n.toLowerCase())):s,e[0]=s,e[1]=n,e[2]=u):u=e[2];const g=u;if(g.length===0){const p=n?"No connections found":"No connections available";let f;return e[3]!==p?(f=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:p}),e[3]=p,e[4]=f):f=e[4],f}let x;if(e[5]!==i||e[6]!==g||e[7]!==d||e[8]!==r||e[9]!==c||e[10]!==a||e[11]!==l){let p;e[13]!==i||e[14]!==d||e[15]!==r||e[16]!==c||e[17]!==a||e[18]!==l?(p=f=>t.jsx(bs,{connection:f,isSelected:l===f.id,hasSelections:r(f.id),summary:d(f.id),onClick:()=>c(f.id),onToggleAll:()=>a(f.id),disabled:i},f.id),e[13]=i,e[14]=d,e[15]=r,e[16]=c,e[17]=a,e[18]=l,e[19]=p):p=e[19],x=g.map(p),e[5]=i,e[6]=g,e[7]=d,e[8]=r,e[9]=c,e[10]=a,e[11]=l,e[12]=x}else x=e[12];let h;return e[20]!==x?(h=t.jsx("div",{className:"flex flex-col gap-0.5",children:x}),e[20]=x,e[21]=h):h=e[21],h}function vs(o){const e=O.c(75),{currentConnection:s,activeTab:n,selectedId:l,formData:r,toggleTool:d,toggleResource:c,togglePrompt:a,toggleAllTools:i,toggleAllResources:u,toggleAllPrompts:g,onTabChange:x}=o;let h;e[0]!==s.icon||e[1]!==s.title?(h=t.jsx(Oe,{icon:s.icon,name:s.title,size:"md",className:"shrink-0"}),e[0]=s.icon,e[1]=s.title,e[2]=h):h=e[2];let p;e[3]!==s.title?(p=t.jsx("h2",{className:"text-lg font-semibold truncate",children:s.title}),e[3]=s.title,e[4]=p):p=e[4];let f;e[5]!==s.description?(f=s.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:s.description}),e[5]=s.description,e[6]=f):f=e[6];let b;e[7]!==p||e[8]!==f?(b=t.jsxs("div",{className:"flex-1 min-w-0",children:[p,f]}),e[7]=p,e[8]=f,e[9]=b):b=e[9];let m;e[10]!==h||e[11]!==b?(m=t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[h,b]})}),e[10]=h,e[11]=b,e[12]=m):m=e[12];let j;e[13]!==x?(j=K=>x(K),e[13]=x,e[14]=j):j=e[14];let y;e[15]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsxs(ve,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Tools"]}),e[15]=y):y=e[15];let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs(ve,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(be,{size:16}),"Resources"]}),e[16]=C):C=e[16];let v;e[17]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs(Bt,{variant:"underline",className:"shrink-0 px-6",children:[y,C,t.jsxs(ve,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(De,{size:16}),"Prompts"]})]}),e[17]=v):v=e[17];let P;e[18]===Symbol.for("react.memo_cache_sentinel")?(P=Te("Tools not supported by this server"),e[18]=P):P=e[18];let R;e[19]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx(ke,{}),e[19]=R):R=e[19];let S;e[20]!==r||e[21]!==l?(S=r[l]?r[l].tools:[],e[20]=r,e[21]=l,e[22]=S):S=e[22];let z;e[23]!==l||e[24]!==d?(z=(K,q)=>d(l,K,q),e[23]=l,e[24]=d,e[25]=z):z=e[25];let _;e[26]!==l||e[27]!==i?(_=()=>i(l),e[26]=l,e[27]=i,e[28]=_):_=e[28];let k;e[29]!==l||e[30]!==S||e[31]!==z||e[32]!==_?(k=t.jsx(Ce,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:P,children:t.jsx(E.Suspense,{fallback:R,children:t.jsx(fs,{connectionId:l,selections:S,onToggle:z,onToggleAll:_})})})}),e[29]=l,e[30]=S,e[31]=z,e[32]=_,e[33]=k):k=e[33];let $;e[34]===Symbol.for("react.memo_cache_sentinel")?($=Te("Resources not supported by this server"),e[34]=$):$=e[34];let A;e[35]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(ke,{}),e[35]=A):A=e[35];let D;e[36]!==r||e[37]!==l?(D=r[l]?r[l].resources:[],e[36]=r,e[37]=l,e[38]=D):D=e[38];let L;e[39]!==l||e[40]!==c?(L=(K,q)=>c(l,K,q),e[39]=l,e[40]=c,e[41]=L):L=e[41];let I;e[42]!==l||e[43]!==u?(I=()=>u(l),e[42]=l,e[43]=u,e[44]=I):I=e[44];let T;e[45]!==l||e[46]!==D||e[47]!==L||e[48]!==I?(T=t.jsx(Ce,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:$,children:t.jsx(E.Suspense,{fallback:A,children:t.jsx(ps,{connectionId:l,selections:D,onToggle:L,onToggleAll:I})})})}),e[45]=l,e[46]=D,e[47]=L,e[48]=I,e[49]=T):T=e[49];let M;e[50]===Symbol.for("react.memo_cache_sentinel")?(M=Te("Prompts not supported by this server"),e[50]=M):M=e[50];let V;e[51]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(ke,{}),e[51]=V):V=e[51];let F;e[52]!==r||e[53]!==l?(F=r[l]?r[l].prompts:[],e[52]=r,e[53]=l,e[54]=F):F=e[54];let B;e[55]!==l||e[56]!==a?(B=(K,q)=>a(l,K,q),e[55]=l,e[56]=a,e[57]=B):B=e[57];let G;e[58]!==l||e[59]!==g?(G=()=>g(l),e[58]=l,e[59]=g,e[60]=G):G=e[60];let U;e[61]!==l||e[62]!==F||e[63]!==B||e[64]!==G?(U=t.jsx(Ce,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:M,children:t.jsx(E.Suspense,{fallback:V,children:t.jsx(gs,{connectionId:l,selections:F,onToggle:B,onToggleAll:G})})})}),e[61]=l,e[62]=F,e[63]=B,e[64]=G,e[65]=U):U=e[65];let w;e[66]!==n||e[67]!==k||e[68]!==T||e[69]!==U||e[70]!==j?(w=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(Ft,{value:n,onValueChange:j,variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[v,k,T,U]})}),e[66]=n,e[67]=k,e[68]=T,e[69]=U,e[70]=j,e[71]=w):w=e[71];let Z;return e[72]!==w||e[73]!==m?(Z=t.jsxs(t.Fragment,{children:[m,w]}),e[72]=w,e[73]=m,e[74]=Z):Z=e[74],Z}function Cs(o){const e={};for(const s of o)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function we(o){return Object.entries(o).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function _s(o,e){switch(e.type){case"SET_SEARCH_TERM":return{...o,searchTerm:e.payload};case"SET_SELECTED":return{...o,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...o,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...o,selectedId:e.payload,activeTab:"tools"};default:return o}}const Ss=(o,e)=>o.find(s=>s.id===e)??o[0];function ks(o){const e=O.c(77),{open:s,onOpenChange:n,selectedId:l,form:r,connections:d}=o;let c;e[0]!==l?(c={activeTab:"tools",searchTerm:"",selectedId:l},e[0]=l,e[1]=c):c=e[1];const[a,i]=E.useReducer(_s,c),u=E.useDeferredValue(a.searchTerm);let g;e[2]!==u?(g={searchTerm:u},e[2]=u,e[3]=g):g=e[3];const x=yt(g);let h;e[4]!==d?(h=d??[],e[4]=d,e[5]=h):h=e[5];let p;e[6]!==h?(p=Cs(h),e[6]=h,e[7]=p):p=e[7];const f=p;let b;e[8]!==x||e[9]!==a.selectedId?(b=Ss(x,a.selectedId),e[8]=x,e[9]=a.selectedId,e[10]=b):b=e[10];const m=b,j=m?.id??null;let y;e[11]!==f?(y=N=>cs(f,N),e[11]=f,e[12]=y):y=e[12];const C=y;let v;e[13]!==f?(v=N=>as(f,N),e[13]=f,e[14]=v):v=e[14];const P=v;let R;e[15]!==r||e[16]!==f?(R=(N,H,Y,Q)=>{const ie=f[N]?.[H];let W;ie===null?W=Q.filter(Ne=>Ne!==Y):ie?.includes(Y)?W=ie.filter(Ne=>Ne!==Y):(W=[...ie??[],Y],W.length===Q.length&&(W=null));const ae={...f};ae[N]?ae[N]={...ae[N]}:ae[N]={tools:null,resources:null,prompts:null},ae[N][H]=W,r.setValue("connections",we(ae),{shouldDirty:!0,shouldTouch:!0})},e[15]=r,e[16]=f,e[17]=R):R=e[17];const S=R;let z;e[18]!==r||e[19]!==f?(z=(N,H)=>{const ie=f[N]?.[H]===null?[]:null,W={...f};W[N]?W[N]={...W[N]}:W[N]={tools:null,resources:null,prompts:null},W[N][H]=ie,r.setValue("connections",we(W),{shouldDirty:!0,shouldTouch:!0})},e[18]=r,e[19]=f,e[20]=z):z=e[20];const _=z;let k;e[21]!==S?(k=(N,H,Y)=>S(N,"tools",H,Y),e[21]=S,e[22]=k):k=e[22];const $=k;let A;e[23]!==S?(A=(N,H,Y)=>S(N,"resources",H,Y),e[23]=S,e[24]=A):A=e[24];const D=A;let L;e[25]!==S?(L=(N,H,Y)=>S(N,"prompts",H,Y),e[25]=S,e[26]=L):L=e[26];const I=L;let T;e[27]!==_?(T=N=>_(N,"tools"),e[27]=_,e[28]=T):T=e[28];const M=T;let V;e[29]!==_?(V=N=>_(N,"resources"),e[29]=_,e[30]=V):V=e[30];const F=V;let B;e[31]!==_?(B=N=>_(N,"prompts"),e[31]=_,e[32]=B):B=e[32];const G=B;let U;e[33]!==r||e[34]!==f?(U=N=>{const H=f[N],Y=H&&H.tools===null&&H.resources===null&&H.prompts===null,Q={...f};Y?delete Q[N]:Q[N]=ds,r.setValue("connections",we(Q),{shouldDirty:!0,shouldTouch:!0})},e[33]=r,e[34]=f,e[35]=U):U=e[35];const w=U;let Z;e[36]!==x||e[37]!==n||e[38]!==l?(Z=N=>{N&&i({type:"RESET",payload:{selectedId:l,firstConnectionId:x[0]?.id??null}}),n(N)},e[36]=x,e[37]=n,e[38]=l,e[39]=Z):Z=e[39];const K=Z;let q;e[40]===Symbol.for("react.memo_cache_sentinel")?(q=N=>{i({type:"SELECT_CONNECTION",payload:N})},e[40]=q):q=e[40];const Je=q;let me;e[41]===Symbol.for("react.memo_cache_sentinel")?(me=N=>i({type:"SET_SEARCH_TERM",payload:N}),e[41]=me):me=e[41];let ee;e[42]!==a.searchTerm?(ee=t.jsx(Lt,{value:a.searchTerm,onChange:me,placeholder:"Search connections..."}),e[42]=a.searchTerm,e[43]=ee):ee=e[43];let te;e[44]!==x||e[45]!==a.searchTerm||e[46]!==j||e[47]!==P||e[48]!==C||e[49]!==w?(te=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(ys,{allConnections:x,searchTerm:a.searchTerm,selectedId:j,hasSelections:C,getSelectionSummary:P,onConnectionClick:Je,onToggleAll:w})}),e[44]=x,e[45]=a.searchTerm,e[46]=j,e[47]=P,e[48]=C,e[49]=w,e[50]=te):te=e[50];let se;e[51]!==ee||e[52]!==te?(se=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[ee,te]}),e[51]=ee,e[52]=te,e[53]=se):se=e[53];let le;e[54]!==m||e[55]!==a.activeTab||e[56]!==j||e[57]!==f||e[58]!==G||e[59]!==F||e[60]!==M||e[61]!==I||e[62]!==D||e[63]!==$?(le=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:m&&j?t.jsx(vs,{currentConnection:m,activeTab:a.activeTab,selectedId:j,formData:f,toggleTool:$,toggleResource:D,togglePrompt:I,toggleAllTools:M,toggleAllResources:F,toggleAllPrompts:G,onTabChange:N=>i({type:"SET_ACTIVE_TAB",payload:N})},j):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[54]=m,e[55]=a.activeTab,e[56]=j,e[57]=f,e[58]=G,e[59]=F,e[60]=M,e[61]=I,e[62]=D,e[63]=$,e[64]=le):le=e[64];let oe;e[65]!==se||e[66]!==le?(oe=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[se,le]}),e[65]=se,e[66]=le,e[67]=oe):oe=e[67];let ne;e[68]!==K?(ne=t.jsx(Rt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(J,{variant:"outline",onClick:()=>K(!1),children:"Done"})}),e[68]=K,e[69]=ne):ne=e[69];let re;e[70]!==oe||e[71]!==ne?(re=t.jsxs(He,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[oe,ne]}),e[70]=oe,e[71]=ne,e[72]=re):re=e[72];let ue;return e[73]!==K||e[74]!==s||e[75]!==re?(ue=t.jsx(Ke,{open:s,onOpenChange:K,children:re}),e[73]=K,e[74]=s,e[75]=re,e[76]=ue):ue=e[76],ue}const Ts=Ze.pick({title:!0,description:!0,icon:!0,status:!0,metadata:!0,connections:!0}).extend({title:Xe().min(1,"Name is required").max(255)});function ws(o){const e=O.c(8);let s,n;e[0]!==o?({className:s,...n}=o,e[0]=o,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let l;e[3]!==s?(l=X("grid gap-3",s),e[3]=s,e[4]=l):l=e[4];let r;return e[5]!==n||e[6]!==l?(r=t.jsx(Wt,{"data-slot":"radio-group",className:l,...n}),e[5]=n,e[6]=l,e[7]=r):r=e[7],r}function Ee(o){const e=O.c(9);let s,n;e[0]!==o?({className:s,...n}=o,e[0]=o,e[1]=s,e[2]=n):(s=e[1],n=e[2]);let l;e[3]!==s?(l=X("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=l):l=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Jt,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(qt,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let d;return e[6]!==n||e[7]!==l?(d=t.jsx(Yt,{"data-slot":"radio-group-item",className:l,...n,children:r}),e[6]=n,e[7]=l,e[8]=d):d=e[8],d}function Es(o){const s=new TextEncoder().encode(o),n=Array.from(s,l=>String.fromCharCode(l)).join("");return btoa(n)}function Is(o){const e=O.c(10),{url:s}=o,[n,l]=E.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),l(!0),ce.success("Agent URL copied to clipboard"),setTimeout(()=>l(!1),2e3)},e[0]=s,e[1]=r):r=e[1];const d=r;let c;e[2]!==n?(c=n?t.jsx(je,{size:20,className:"text-green-600"}):t.jsx(Re,{size:20}),e[2]=n,e[3]=c):c=e[3];const a=n?"Copied!":"Copy URL";let i;e[4]!==a?(i=t.jsx("span",{className:"text-xs font-medium",children:a}),e[4]=a,e[5]=i):i=e[5];let u;return e[6]!==d||e[7]!==c||e[8]!==i?(u=t.jsxs(J,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,i]}),e[6]=d,e[7]=c,e[8]=i,e[9]=u):u=e[9],u}function As(o){const e=O.c(7),{url:s,serverName:n}=o;let l;e[0]!==n||e[1]!==s?(l=()=>{const i=Ye(n),g=Es(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),x=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(i)}&config=${encodeURIComponent(g)}`;window.open(x,"_blank"),ce.success("Opening Cursor...")},e[0]=n,e[1]=s,e[2]=l):l=e[2];const r=l;let d,c;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),c=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=c):(d=e[3],c=e[4]);let a;return e[5]!==r?(a=t.jsxs(J,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,c]}),e[5]=r,e[6]=a):a=e[6],a}function Os(o){const e=O.c(11),{url:s,serverName:n}=o,[l,r]=E.useState(!1);let d;e[0]!==n||e[1]!==s?(d=async()=>{const x=Ye(n),p=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),f=`claude mcp add-json "${x}" '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(f),r(!0),ce.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=n,e[1]=s,e[2]=d):d=e[2];const c=d;let a;e[3]!==l?(a=l?t.jsx(je,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=l,e[4]=a):a=e[4];const i=l?"Copied!":"Install on Claude";let u;e[5]!==i?(u=t.jsx("span",{className:"text-xs font-medium",children:i}),e[5]=i,e[6]=u):u=e[6];let g;return e[7]!==c||e[8]!==a||e[9]!==u?(g=t.jsxs(J,{type:"button",variant:"outline",onClick:c,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,u]}),e[7]=c,e[8]=a,e[9]=u,e[10]=g):g=e[10],g}function $s({virtualMcp:o}){const{org:e}=de(),s=ge({connectionId:Gt,orgId:e.id}),[n,l]=E.useState(null),[r,d]=E.useState(!1),[c,a]=E.useState(!1),i=o.id,u=o.title||`agent-${i.slice(0,8)}`,g=n?`bunx @decocms/typegen@latest --mcp ${i} --key ${n} --output client.ts`:`bunx @decocms/typegen@latest --mcp ${i} --key <api-key> --output client.ts`,x=async()=>{d(!0);try{const f=(await s.callTool({name:"API_KEY_CREATE",arguments:{name:`typegen-${u}`,permissions:{[i]:["*"]}}})).structuredContent?.key;if(!f)throw new Error("No key in response");l(f)}catch{ce.error("Failed to generate API key")}finally{d(!1)}},h=async()=>{await navigator.clipboard.writeText(g),a(!0),ce.success("Command copied to clipboard"),setTimeout(()=>a(!1),2e3)};return t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[t.jsxs("div",{className:"flex items-start justify-between gap-3",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Generate typed client"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["Introspects this agent and writes a typed"," ",t.jsx("code",{className:"font-mono",children:"client.ts"})," you can import directly."]})]}),!n&&t.jsxs(J,{type:"button",variant:"outline",size:"sm",className:"shrink-0 gap-1.5",onClick:x,disabled:r,children:[r?t.jsx(ze,{size:14,className:"animate-spin"}):t.jsx(Xt,{size:14}),t.jsx("span",{children:r?"Generating…":"Generate API key"})]})]}),n&&t.jsx("p",{className:"rounded-md border border-amber-200 bg-amber-50 px-3 py-2 text-xs text-amber-700",children:"Store this key securely — it won't be shown again."}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Generate client"}),t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("code",{className:"min-w-0 flex-1 break-all font-mono text-xs text-muted-foreground",children:g}),t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:h,children:c?t.jsx(je,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12})})]})}),t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Runtime variables"}),t.jsx(Ds,{apiKey:n})]})}function Ds(o){const e=O.c(19),{apiKey:s}=o,[n,l]=E.useState(!1),r=window.location.origin,d=s?`MESH_API_KEY=${s}`:"MESH_API_KEY=<api-key>",c=`MESH_BASE_URL=${r}`,a=`${d}
2
2
  ${c}`;let i;e[0]!==a?(i=async()=>{await navigator.clipboard.writeText(a),l(!0),setTimeout(()=>l(!1),2e3)},e[0]=a,e[1]=i):i=e[1];const u=i,g=!s;let x;e[2]!==g?(x=X({"opacity-50":g}),e[2]=g,e[3]=x):x=e[3];let h;e[4]!==d||e[5]!==x?(h=t.jsx("span",{className:x,children:d}),e[4]=d,e[5]=x,e[6]=h):h=e[6];let p,f;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("br",{}),f=t.jsx("span",{children:c}),e[7]=p,e[8]=f):(p=e[7],f=e[8]);let b;e[9]!==h?(b=t.jsxs("code",{className:"min-w-0 flex-1 font-mono text-xs text-muted-foreground",children:[h,p,f]}),e[9]=h,e[10]=b):b=e[10];let m;e[11]!==n?(m=n?t.jsx(je,{size:12,className:"text-green-600"}):t.jsx(Re,{size:12}),e[11]=n,e[12]=m):m=e[12];let j;e[13]!==u||e[14]!==m?(j=t.jsx(J,{type:"button",variant:"ghost",size:"icon",className:"size-6 shrink-0",onClick:u,children:m}),e[13]=u,e[14]=m,e[15]=j):j=e[15];let y;return e[16]!==b||e[17]!==j?(y=t.jsx("div",{className:"rounded-md border border-input bg-muted/50 px-3 py-2.5",children:t.jsxs("div",{className:"flex items-start gap-2",children:[b,j]})}),e[16]=b,e[17]=j,e[18]=y):y=e[18],y}function zs(o){const e=O.c(3),{virtualMcp:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"h-20 animate-pulse rounded-md bg-muted"}),e[0]=n):n=e[0];let l;return e[1]!==s?(l=t.jsx(E.Suspense,{fallback:n,children:t.jsx($s,{virtualMcp:s})}),e[1]=s,e[2]=l):l=e[2],l}function Ls(o){const e=O.c(44),{open:s,onOpenChange:n,virtualMcp:l}=o,[r,d]=E.useState("code_execution");let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=V=>{(V==="passthrough"||V==="smart_tool_selection"||V==="code_execution")&&d(V)},e[0]=c):c=e[0];const a=c;let i;e[1]!==r||e[2]!==l.id?(i=new URL(`/mcp/virtual-mcp/${l.id}`,window.location.origin),i.searchParams.set("mode",r),e[1]=r,e[2]=l.id,e[3]=i):i=e[3];let u;e[4]!==l.id||e[5]!==l.title?(u=l.title||`agent-${l.id?.slice(0,8)??"default"}`,e[4]=l.id,e[5]=l.title,e[6]=u):u=e[6];const g=u;let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(Mt,{children:t.jsx(Vt,{children:"Connect"})}),e[7]=x):x=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=h):h=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(pt,{className:"size-5 text-muted-foreground"})}),e[9]=p):p=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=f):f=e[10];let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(xe,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[11]=b):b=e[11];let m;e[12]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[p,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[f,t.jsx(ye,{children:t.jsxs(pe,{children:[b,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),t.jsx(Ee,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=m):m=e[12];let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ht,{className:"size-5 text-muted-foreground"})}),e[13]=j):j=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=y):y=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(xe,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[15]=C):C=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs("label",{htmlFor:"mode-smart",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[j,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[y,t.jsx(ye,{children:t.jsxs(pe,{children:[C,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Uses meta-tools (GATEWAY_SEARCH_TOOLS, GATEWAY_DESCRIBE_TOOLS, GATEWAY_CALL_TOOL) to keep the tool list small and request details on demand."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),t.jsx(Ee,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=v):v=e[16];let P;e[17]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Zt,{className:"size-5 text-muted-foreground"})}),e[17]=P):P=e[17];let R;e[18]===Symbol.for("react.memo_cache_sentinel")?(R=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=R):R=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(xe,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[19]=S):S=e[19];let z;e[20]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[P,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[R,t.jsx(ye,{children:t.jsxs(pe,{children:[S,t.jsx(he,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Exposes meta-tools for discovery + sandboxed execution (GATEWAY_RUN_CODE). Reduces overhead on large surfaces by shifting work into a controlled runtime."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),t.jsx(Ee,{id:"mode-code",value:"code_execution"}),t.jsx($e,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=z):z=e[20];let _;e[21]!==r?(_=t.jsxs("div",{className:"flex flex-col gap-3",children:[h,t.jsxs(ws,{value:r,onValueChange:a,className:"flex flex-col gap-4.5",children:[m,v,z]})]}),e[21]=r,e[22]=_):_=e[22];let k;e[23]!==i.href?(k=t.jsx(Is,{url:i.href}),e[23]=i.href,e[24]=k):k=e[24];let $,A;e[25]!==g||e[26]!==i.href?($=t.jsx(As,{url:i.href,serverName:g}),A=t.jsx(Os,{url:i.href,serverName:g}),e[25]=g,e[26]=i.href,e[27]=$,e[28]=A):($=e[27],A=e[28]);let D;e[29]!==k||e[30]!==$||e[31]!==A?(D=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[k,$,A]})}),e[29]=k,e[30]=$,e[31]=A,e[32]=D):D=e[32];let L;e[33]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("div",{className:"border-t border-border"}),e[33]=L):L=e[33];let I;e[34]!==l?(I=t.jsx(zs,{virtualMcp:l}),e[34]=l,e[35]=I):I=e[35];let T;e[36]!==_||e[37]!==D||e[38]!==I?(T=t.jsxs(He,{className:"max-h-[80vh] overflow-y-auto sm:max-w-2xl",children:[x,t.jsxs("div",{className:"flex flex-col gap-6",children:[_,D,L,I]})]}),e[36]=_,e[37]=D,e[38]=I,e[39]=T):T=e[39];let M;return e[40]!==n||e[41]!==s||e[42]!==T?(M=t.jsx(Ke,{open:s,onOpenChange:n,children:T}),e[40]=n,e[41]=s,e[42]=T,e[43]=M):M=e[43],M}function Ps(o,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...o,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...o,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...o,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...o,skillsOpen:e.payload};default:return o}}function Ae(o){const e=O.c(27),{connection_id:s,selected_tools:n,selected_resources:l,selected_prompts:r,onClick:d}=o,c=vt(s);if(!c)return null;let a;e[0]!==n?(a=Se(n),e[0]=n,e[1]=a):a=e[1];const i=a;let u;e[2]!==l?(u=Se(l),e[2]=l,e[3]=u):u=e[3];const g=u;let x;e[4]!==r?(x=Se(r),e[4]=r,e[5]=x):x=e[5];const h=x;let p;e[6]!==c.icon||e[7]!==c.title?(p=t.jsx(Oe,{icon:c.icon,name:c.title,size:"xs"}),e[6]=c.icon,e[7]=c.title,e[8]=p):p=e[8];let f;e[9]!==c.title?(f=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:c.title}),e[9]=c.title,e[10]=f):f=e[10];let b;e[11]!==i?(b=i!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:i==="all"?"all":i}),t.jsx(Le,{size:12})]}),e[11]=i,e[12]=b):b=e[12];let m;e[13]!==g?(m=g!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:g==="all"?"all":g}),t.jsx(be,{size:12})]}),e[13]=g,e[14]=m):m=e[14];let j;e[15]!==h?(j=h!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:h==="all"?"all":h}),t.jsx(De,{size:12})]}),e[15]=h,e[16]=j):j=e[16];let y;e[17]!==b||e[18]!==m||e[19]!==j?(y=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[b,m,j]}),e[17]=b,e[18]=m,e[19]=j,e[20]=y):y=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(Ue,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=C):C=e[21];let v;return e[22]!==d||e[23]!==p||e[24]!==f||e[25]!==y?(v=t.jsxs("div",{onClick:d,className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border hover:bg-accent/50 transition-colors cursor-pointer",children:[p,f,y,C]}),e[22]=d,e[23]=p,e[24]=f,e[25]=y,e[26]=v):v=e[26],v}Ae.Fallback=function(){return t.jsxs("div",{className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border",children:[t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse shrink-0"}),t.jsx("div",{className:"flex-1 h-4 rounded bg-muted animate-pulse"}),t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Le,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(be,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(De,{size:12})]})]}),t.jsx(Ue,{size:16,className:"text-muted-foreground shrink-0"})]})};function Rs({virtualMcp:o}){const{org:e}=de(),s=_t(),n=tt({resolver:st(Ts),defaultValues:o}),l=n.watch("connections"),[r,d]=E.useReducer(Ps,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:!1}),[,c]=xt(),{setVirtualMcpId:a}=ot();E.useEffect(()=>{c(!0),a(o.id)},[o.id]);const i=()=>{a(o.id),c(!0)},u=n.formState.isDirty,g=async()=>{const m=n.getValues(),j=await s.update.mutateAsync({id:o.id,data:m});n.reset(j)},x=()=>{n.reset(o)},h=()=>{d({type:"SET_EDITING_CONNECTION_ID",payload:null}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},p=m=>{d({type:"SET_EDITING_CONNECTION_ID",payload:m}),d({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},f=s.update.isPending,b=t.jsx(wt,{children:t.jsxs(Et,{children:[t.jsx(Fe,{children:t.jsx(It,{asChild:!0,children:t.jsx(lt,{to:"/$org/$project/agents",params:{org:e.slug,project:Ge},children:"Agents"})})}),t.jsx(At,{}),t.jsx(Fe,{children:t.jsx(Ot,{children:o.title})})]})});return t.jsxs($t,{breadcrumb:b,children:[t.jsxs(Dt,{children:[t.jsx(zt,{onSave:g,onUndo:x,isDirty:u,isSaving:f}),t.jsxs(pe,{delayDuration:0,children:[t.jsx(xe,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:i,"aria-label":"Test Agent",children:[t.jsx(kt,{size:14}),"Test Agent"]})})}),t.jsx(he,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(J,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:()=>d({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),children:[t.jsx(We,{size:14}),"Connect"]})]}),t.jsx("div",{className:"flex h-full w-full bg-background overflow-auto",children:t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 p-6 shrink-0",children:[t.jsxs("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[t.jsx(Ve,{control:n.control,name:"icon",render:({field:m})=>t.jsx(ns,{value:m.value,onChange:m.onChange,name:n.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(Tt,{})})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(Ie,{...n.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(Ie,{...n.register("description"),className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})]})]}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(bt,{checked:n.watch("status")==="active",onCheckedChange:m=>n.setValue("status",m?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(gt,{open:r.skillsOpen,onOpenChange:m=>d({type:"SET_SKILLS_OPEN",payload:m}),className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[l.length===0?t.jsxs("button",{type:"button",onClick:h,className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Connections"}),t.jsxs("div",{className:"h-7 px-2 inline-flex items-center justify-center gap-1 rounded-md text-sm text-muted-foreground",children:[t.jsx(Be,{size:14}),"Add"]})]}):t.jsx(jt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Connections"}),t.jsxs("div",{className:"flex items-center",children:[t.jsx("div",{className:"ease-(--ease-out-expo)",style:{width:r.skillsOpen?0:"auto",marginRight:r.skillsOpen?0:4,opacity:r.skillsOpen?0:1,pointerEvents:r.skillsOpen?"none":"auto",transitionProperty:"all",transitionDuration:r.skillsOpen?"0ms":"200ms"},children:t.jsx(Qt,{connectionIds:l.map(m=>m.connection_id),maxVisibleIcons:2})}),t.jsxs("div",{role:"button",tabIndex:0,className:"h-7 inline-flex items-center justify-center rounded-md text-sm text-muted-foreground overflow-hidden transition-all duration-200 ease-(--ease-out-expo) hover:bg-accent hover:text-accent-foreground",style:{width:r.skillsOpen?"auto":28,paddingLeft:r.skillsOpen?8:0,paddingRight:r.skillsOpen?8:0,gap:r.skillsOpen?4:0},onPointerDown:m=>{m.stopPropagation()},onClick:m=>{m.stopPropagation(),m.preventDefault(),h()},onKeyDown:m=>{(m.key==="Enter"||m.key===" ")&&(m.stopPropagation(),m.preventDefault(),h())},children:[t.jsx(Be,{size:14,className:"shrink-0"}),t.jsx("span",{className:"overflow-hidden whitespace-nowrap transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?"auto":0,opacity:r.skillsOpen?1:0},children:"Add"})]}),t.jsx("div",{className:"h-7 inline-flex items-center justify-center overflow-hidden transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?28:0,opacity:r.skillsOpen?1:0},children:t.jsx(St,{size:16,className:"shrink-0"})})]})]})}),t.jsx("div",{className:"grid overflow-hidden transition-[grid-template-rows] duration-200 ease-(--ease-out-expo)",style:{gridTemplateRows:r.skillsOpen?"1fr":"0fr"},children:t.jsx("div",{className:"min-h-0 overflow-hidden",children:t.jsx("div",{className:"overflow-y-auto max-h-[300px] mask-[linear-gradient(to_bottom,black_calc(100%-40px),transparent_100%)]",children:t.jsx("div",{className:"flex flex-col gap-2 px-6 pb-4 pt-2",children:l.map(m=>t.jsx(E.Suspense,{fallback:t.jsx(Ae.Fallback,{}),children:t.jsx(Ae,{connection_id:m.connection_id,selected_tools:m.selected_tools,selected_resources:m.selected_resources,selected_prompts:m.selected_prompts,onClick:()=>p(m.connection_id)})},m.connection_id))})})})})]}),t.jsxs("div",{className:"flex flex-col flex-1 p-6 border-t border-border overflow-auto",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Instructions"}),t.jsx(Ve,{name:"metadata.instructions",control:n.control,render:({field:m})=>t.jsx(Nt,{...m,value:m.value??"",placeholder:"Write instructions here...",className:"min-h-[200px] resize-none text-sm placeholder:text-muted-foreground/50 leading-relaxed border-0 rounded-none shadow-none px-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-0 bg-transparent"})})]})]})}),t.jsx(ks,{open:r.connectionDialogOpen,onOpenChange:m=>d({type:"SET_CONNECTION_DIALOG_OPEN",payload:m}),selectedId:r.editingConnectionId,form:n,connections:l}),t.jsx(Ls,{open:r.shareDialogOpen,onOpenChange:m=>d({type:"SET_SHARE_DIALOG_OPEN",payload:m}),virtualMcp:o})]})}function Ms(){const o=O.c(6),e=Qe();let s;o[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/$project/agents/$agentId"},o[0]=s):s=o[0];const n=et(s),{org:l,agentId:r}=n,d=Ct(r);if(!d){let a;return o[1]!==e||o[2]!==l?(a=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(nt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(J,{variant:"outline",onClick:()=>e({to:"/$org/$project/agents",params:{org:l,project:Ge}}),children:"Back to agents"})})}),o[1]=e,o[2]=l,o[3]=a):a=o[3],a}let c;return o[4]!==d?(c=t.jsx(Rs,{virtualMcp:d}),o[4]=d,o[5]=c):c=o[5],c}function to(){const o=O.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{children:t.jsx(E.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(ze,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Ms,{})})}),o[0]=e):e=o[0],e}export{to as default};
@@ -1 +1 @@
1
- import{c as we,j as s,E as vt,r as J,u as Nt,e as Ct,B as Q,y as X,w as yt,O as wt}from"./index-SkQC2bL2.js";import{C as St}from"./collection-display-button-CEqdF8O7.js";import{C as kt}from"./collection-search-CPQlTmfx.js";import{P as ve}from"./index-Bs-gkatC.js";import{B as _t,a as Dt,b as zt,c as At}from"./breadcrumb-h9Dq7GJ0.js";import{C as xt}from"./connection-card-BDqdYEuX.js";import{C as He,i as Mt}from"./connection-status-B854Axgl.js";import{E as Ze}from"./empty-state-BUpyINsX.js";import{I as Ge}from"./integration-icon-9nN5AvVn.js";import{u as Tt}from"./use-list-state-Djxe5eyh.js";import{u as $t}from"./use-create-virtual-mcp-C5n2ShE6.js";import{i as Ne}from"./constants-BZUBXkLq.js";import{b as Pt,a as It}from"./use-virtual-mcp-V0XoWMM_.js";import{c as at,b as rt,d as ot,A as ct,e as dt,h as mt,a as ft,f as ut}from"./alert-dialog-DfOenbUZ.js";import{B as et}from"./badge-C7XTRm7k.js";import{C as Ue}from"./checkbox-B92JdB3t.js";import{D as Ot,a as Bt,b as Lt,c as Rt,d as Et}from"./dialog-PlqYdiap.js";import{c as Kt,a as Vt,b as Ve,e as se,d as Gt,T as Ut}from"./table-c-SrSmwK.js";import{D as tt,a as st,b as nt,c as je}from"./dropdown-menu-V8gWmDzD.js";import{n as Ft}from"./ArrowDown-BrkOB1Av.js";import{i as Ht}from"./ArrowUp-Bl5YEbbF.js";import{t as qt}from"./ChevronDown-BURkaeCD.js";import{i as it}from"./DotsVertical-ZWNLrGdE.js";import{s as lt}from"./Eye-CUyEl5IU.js";import{i as Jt}from"./Loading01-CDOurw-F.js";import{s as Fe}from"./Trash01-DhGTBhjv.js";import{t as Y}from"./Users03-B2n8Cd76.js";import{s as gt}from"./XClose-C8g1LxXV.js";import{U as Ce}from"./user-C2BDT4Rq.js";import{A as ht}from"./agent-connections-preview-D0-1Au_l.js";import{f as ye}from"./format-time-CMKyl-GC.js";import"./Check-CN56KhoF.js";import"./Grid01-B7q4cvPD.js";import"./List-DxiRK8pO.js";import"./tooltip-Ckpai_jH.js";import"./index-AtuNXtl1.js";import"./SearchMd-D6jy19cO.js";import"./input-C4xXFdLa.js";import"./useQuery-CtOvMPbo.js";import"./useMutation-CXgAMvoC.js";import"./ChevronRight-Df5oEIdG.js";import"./card-Cm-keK-z.js";import"./AlertCircle-Bu9DNwe-.js";import"./CheckCircle-B4pYO1ZS.js";import"./Container-De-pv4QL.js";import"./use-view-mode-Ag3VBJ77.js";import"./use-mobile-DqlomLIB.js";import"./use-collections-C3CSj681.js";import"./X-DVxsAMCH.js";import"./avatar-DexhTB4g.js";import"./use-connection-DSkVzqSP.js";import"./differenceInSeconds-NQ4PDo0z.js";function pt(t){return t.title.trim().replace(/\s+\(\d+\)$/,"")}function Qt(t){const e=new Map;for(const i of t){const a=pt(i),l=e.get(a);l?l.push(i):e.set(a,[i])}const n=[],d=new Set;for(const i of t){const a=pt(i);if(d.has(a))continue;d.add(a);const l=e.get(a),x=l[0];l.length===1?n.push({type:"single",agent:x}):n.push({type:"group",key:a,icon:x.icon,title:x.title.replace(/\s*\(\d+\)\s*$/,""),agents:l})}return n}function jt(t){const e=new Set,n=[];for(const d of t)d.created_by&&!e.has(d.created_by)&&(e.add(d.created_by),n.push(d.created_by));return n}function Wt(t,e){switch(e.type){case"delete":return{mode:"deleting",virtualMcp:e.virtualMcp};case"close":return{mode:"idle"}}}function Xt(t){const e=we.c(107),{group:n,onNavigate:d,onDelete:i,selectionMode:a,selectedIds:l,onToggleSelect:x}=t,[N,g]=J.useState(!1);let w;if(e[0]!==n.agents||e[1]!==l){let y;e[3]!==l?(y=_=>l.has(_.id),e[3]=l,e[4]=y):y=e[4],w=n.agents.every(y),e[0]=n.agents,e[1]=l,e[2]=w}else w=e[2];const m=w;let D;if(e[5]!==n.agents||e[6]!==l){let y;e[8]!==l?(y=_=>l.has(_.id),e[8]=l,e[9]=y):y=e[9],D=n.agents.some(y),e[5]=n.agents,e[6]=l,e[7]=D}else D=e[7];const o=D;let O,S,c,C,z,P,k,I,A,f,j;if(e[10]!==m||e[11]!==n.agents||e[12]!==n.icon||e[13]!==n.title||e[14]!==x||e[15]!==l||e[16]!==a||e[17]!==o){const y=jt(n.agents),_=n.agents.reduce(ts,n.agents[0]),W=_.updated_at??_.created_at;O=xt;const Z=`${n.agents.length} instances`;e[29]!==n.icon||e[30]!==n.title||e[31]!==Z?(A={title:n.title,icon:n.icon,description:Z},e[29]=n.icon,e[30]=n.title,e[31]=Z,e[32]=A):A=e[32],e[33]!==m||e[34]!==n.agents||e[35]!==x||e[36]!==l||e[37]!==a?(f=()=>a?(()=>{for(const R of n.agents)m?l.has(R.id)&&x(R.id):l.has(R.id)||x(R.id)})():g(!0),e[33]=m,e[34]=n.agents,e[35]=x,e[36]=l,e[37]=a,e[38]=f):f=e[38];const H=a&&m&&"ring-2 ring-primary",ee=a&&o&&!m&&"ring-1 ring-primary/50";e[39]!==H||e[40]!==ee?(j=X(H,ee),e[39]=H,e[40]=ee,e[41]=j):j=e[41],e[42]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Y,{}),e[42]=S):S=e[42],e[43]!==m||e[44]!==n.agents||e[45]!==x||e[46]!==l||e[47]!==a||e[48]!==o?(c=a?s.jsx(Ue,{checked:m?!0:o?"indeterminate":!1,onCheckedChange:()=>{for(const R of n.agents)m?l.has(R.id)&&x(R.id):l.has(R.id)||x(R.id)}}):s.jsxs(et,{variant:"secondary",className:"text-xs tabular-nums",children:["x",n.agents.length]}),e[43]=m,e[44]=n.agents,e[45]=x,e[46]=l,e[47]=a,e[48]=o,e[49]=c):c=e[49];let q;e[50]!==n.agents?(q=n.agents.slice(0,6).map(es),e[50]=n.agents,e[51]=q):q=e[51],e[52]!==q?(C=s.jsx("div",{className:"flex items-center gap-1",children:q}),e[52]=q,e[53]=C):C=e[53],k="flex items-center justify-between text-xs text-muted-foreground w-full min-w-0";const te=y.map(R=>s.jsx(Ce,{id:R,size:"3xs",avatarOnly:y.length>1},R));e[54]!==te?(I=s.jsx("div",{className:"flex items-center -space-x-1.5",children:te}),e[54]=te,e[55]=I):I=e[55],z="shrink-0 ml-2",P=W?ye(new Date(W)):"—",e[10]=m,e[11]=n.agents,e[12]=n.icon,e[13]=n.title,e[14]=x,e[15]=l,e[16]=a,e[17]=o,e[18]=O,e[19]=S,e[20]=c,e[21]=C,e[22]=z,e[23]=P,e[24]=k,e[25]=I,e[26]=A,e[27]=f,e[28]=j}else O=e[18],S=e[19],c=e[20],C=e[21],z=e[22],P=e[23],k=e[24],I=e[25],A=e[26],f=e[27],j=e[28];let p;e[56]!==z||e[57]!==P?(p=s.jsx("span",{className:z,children:P}),e[56]=z,e[57]=P,e[58]=p):p=e[58];let M;e[59]!==p||e[60]!==k||e[61]!==I?(M=s.jsxs("div",{className:k,children:[I,p]}),e[59]=p,e[60]=k,e[61]=I,e[62]=M):M=e[62];let T;e[63]!==O||e[64]!==S||e[65]!==c||e[66]!==C||e[67]!==M||e[68]!==A||e[69]!==f||e[70]!==j?(T=s.jsx(O,{connection:A,onClick:f,className:j,fallbackIcon:S,headerActions:c,body:C,footer:M}),e[63]=O,e[64]=S,e[65]=c,e[66]=C,e[67]=M,e[68]=A,e[69]=f,e[70]=j,e[71]=T):T=e[71];let B;e[72]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Y,{}),e[72]=B):B=e[72];let $;e[73]!==n.icon||e[74]!==n.title?($=s.jsx(Ge,{icon:n.icon,name:n.title,size:"md",className:"shrink-0 shadow-sm",fallbackIcon:B}),e[73]=n.icon,e[74]=n.title,e[75]=$):$=e[75];let L;e[76]!==n.agents.length?(L=s.jsxs(et,{variant:"secondary",className:"ml-2 text-xs tabular-nums",children:["x",n.agents.length]}),e[76]=n.agents.length,e[77]=L):L=e[77];let r;e[78]!==n.title||e[79]!==L?(r=s.jsxs(Ot,{children:[n.title,L]}),e[78]=n.title,e[79]=L,e[80]=r):r=e[80];let u;e[81]!==n.agents.length?(u=s.jsxs(Bt,{children:[n.agents.length," instances"]}),e[81]=n.agents.length,e[82]=u):u=e[82];let b;e[83]!==r||e[84]!==u?(b=s.jsxs("div",{children:[r,u]}),e[83]=r,e[84]=u,e[85]=b):b=e[85];let K;e[86]!==$||e[87]!==b?(K=s.jsx(Lt,{className:"px-6 pt-6 pb-4",children:s.jsxs("div",{className:"flex items-center gap-3",children:[$,b]})}),e[86]=$,e[87]=b,e[88]=K):K=e[88];let V;if(e[89]!==n.agents||e[90]!==i||e[91]!==d){let y;e[93]!==i||e[94]!==d?(y=_=>s.jsxs("div",{className:"flex items-center gap-3 px-6 py-3 hover:bg-muted/30 cursor-pointer transition-colors",onClick:()=>{g(!1),d(_.id)},children:[s.jsx(Ge,{icon:_.icon,name:_.title,size:"sm",className:"shrink-0",fallbackIcon:s.jsx(Y,{})}),s.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:_.title}),s.jsx(He,{status:_.status})]}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground shrink-0",children:[s.jsx(Ce,{id:_.created_by,size:"3xs"}),s.jsx("span",{children:_.created_at?ye(new Date(_.created_at)):"—"})]}),s.jsxs(tt,{children:[s.jsx(st,{asChild:!0,children:s.jsx(Q,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:Zt,children:s.jsx(it,{size:16})})}),s.jsxs(nt,{align:"end",onClick:Yt,children:[s.jsxs(je,{onClick:()=>{g(!1),d(_.id)},children:[s.jsx(lt,{size:16}),"Open"]}),!Ne(_.id)&&s.jsxs(je,{variant:"destructive",onClick:()=>i(_),children:[s.jsx(Fe,{size:16}),"Delete"]})]})]})]},_.id),e[93]=i,e[94]=d,e[95]=y):y=e[95],V=n.agents.map(y),e[89]=n.agents,e[90]=i,e[91]=d,e[92]=V}else V=e[92];let G;e[96]!==V?(G=s.jsx("div",{className:"divide-y max-h-80 overflow-auto",children:V}),e[96]=V,e[97]=G):G=e[97];let E;e[98]!==K||e[99]!==G?(E=s.jsxs(Rt,{className:"sm:max-w-lg p-0 gap-0",children:[K,G]}),e[98]=K,e[99]=G,e[100]=E):E=e[100];let U;e[101]!==N||e[102]!==E?(U=s.jsx(Et,{open:N,onOpenChange:g,children:E}),e[101]=N,e[102]=E,e[103]=U):U=e[103];let F;return e[104]!==T||e[105]!==U?(F=s.jsxs(s.Fragment,{children:[T,U]}),e[104]=T,e[105]=U,e[106]=F):F=e[106],F}function Yt(t){return t.stopPropagation()}function Zt(t){return t.stopPropagation()}function es(t){return s.jsx(He,{status:t.status},t.id)}function ts(t,e){const n=e.updated_at??e.created_at,d=t.updated_at??t.created_at;return n?d?new Date(n)>new Date(d)?e:t:e:t}function ss(t){const e=we.c(21),{count:n,total:d,onSelectAll:i,onDeselectAll:a,onDelete:l,onCancel:x}=t;if(n===0)return null;let N;e[0]!==n?(N=s.jsxs("span",{className:"text-sm font-medium tabular-nums",children:[n," selected"]}),e[0]=n,e[1]=N):N=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("div",{className:"h-4 w-px bg-border"}),e[2]=g):g=e[2];let w;e[3]!==n||e[4]!==a||e[5]!==i||e[6]!==d?(w=n<d?s.jsxs(Q,{variant:"ghost",size:"sm",onClick:i,children:["Select all (",d,")"]}):s.jsx(Q,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"}),e[3]=n,e[4]=a,e[5]=i,e[6]=d,e[7]=w):w=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-4 w-px bg-border"}),e[8]=m):m=e[8];let D;e[9]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Fe,{size:14}),e[9]=D):D=e[9];let o;e[10]!==l?(o=s.jsxs(Q,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:l,children:[D,"Delete"]}),e[10]=l,e[11]=o):o=e[11];let O;e[12]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("div",{className:"h-4 w-px bg-border"}),e[12]=O):O=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(gt,{size:14}),e[13]=S):S=e[13];let c;e[14]!==x?(c=s.jsxs(Q,{variant:"ghost",size:"sm",onClick:x,children:[S,"Cancel"]}),e[14]=x,e[15]=c):c=e[15];let C;return e[16]!==N||e[17]!==w||e[18]!==o||e[19]!==c?(C=s.jsxs("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2 flex items-center gap-3 rounded-xl border border-border bg-background/95 backdrop-blur px-4 py-2.5 shadow-lg",children:[N,g,w,m,o,O,c]}),e[16]=N,e[17]=w,e[18]=o,e[19]=c,e[20]=C):C=e[20],C}function ns(t){const e=we.c(37),{columns:n,grouped:d,sortKey:i,sortDirection:a,onSort:l,onRowClick:x,selectionMode:N,selectedIds:g,onToggleSelect:w,emptyState:m}=t;let D;e[0]===Symbol.for("react.memo_cache_sentinel")?(D=new Set,e[0]=D):D=e[0];const[o,O]=J.useState(D);let S;e[1]===Symbol.for("react.memo_cache_sentinel")?(S=f=>{O(j=>{const p=new Set(j);return p.has(f)?p.delete(f):p.add(f),p})},e[1]=S):S=e[1];const c=S;if(d.length===0&&m){let f;return e[2]!==m?(f=s.jsx("div",{className:"flex items-center justify-center h-full",children:m}),e[2]=m,e[3]=f):f=e[3],f}const C=n.length;let z;if(e[4]!==C||e[5]!==n||e[6]!==l||e[7]!==a||e[8]!==i){let f;e[10]!==C||e[11]!==l||e[12]!==a||e[13]!==i?(f=(j,p)=>{const M=i===j.id,T=p===C-1;return s.jsx(Kt,{className:X("px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider",T&&"w-8","group transition-colors select-none",j.sortable&&"hover:bg-accent cursor-pointer",j.cellClassName),onClick:j.sortable&&l?()=>l(j.id):void 0,children:s.jsxs("span",{className:"flex items-center gap-1",children:[j.header,j.sortable&&s.jsx("span",{className:"w-4 flex items-center justify-center",children:M&&a&&(a==="asc"?s.jsx(Ht,{size:16,className:"text-muted-foreground"}):s.jsx(Ft,{size:16,className:"text-muted-foreground"}))})]})},j.id)},e[10]=C,e[11]=l,e[12]=a,e[13]=i,e[14]=f):f=e[14],z=n.map(f),e[4]=C,e[5]=n,e[6]=l,e[7]=a,e[8]=i,e[9]=z}else z=e[9];let P;e[15]!==z?(P=s.jsx(Vt,{className:"border-b-0",children:s.jsx(Ve,{className:"h-9 hover:bg-transparent border-b border-border",children:z})}),e[15]=z,e[16]=P):P=e[16];let k;if(e[17]!==n||e[18]!==o||e[19]!==d||e[20]!==x||e[21]!==w||e[22]!==g||e[23]!==N){let f;e[25]!==n||e[26]!==o||e[27]!==x||e[28]!==w||e[29]!==g||e[30]!==N?(f=j=>{if(j.type==="single"){const r=j.agent;return s.jsx(Ve,{className:X("group/data-row transition-colors border-b-0 hover:bg-accent/50 cursor-pointer",N&&g.has(r.id)&&"bg-primary/5"),onClick:()=>x(r),children:n.map(u=>s.jsx(se,{className:X("px-5 py-4 h-16 align-middle text-sm text-foreground",u.cellClassName),children:s.jsx("div",{className:"min-w-0 w-full truncate overflow-hidden whitespace-nowrap",children:u.render?u.render(r):null})},u.id))},r.id)}const p=j,M=o.has(p.key),T=p.agents.every(r=>g.has(r.id)),B=p.agents.some(r=>g.has(r.id)),$=jt(p.agents),L=p.agents.reduce(ls,p.agents[0]);return s.jsxs(J.Fragment,{children:[s.jsx(Ve,{className:"border-b-0 hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>c(p.key),children:n.map(r=>{const u=X("px-5 py-3 h-14 align-middle text-sm",r.cellClassName);if(r.id==="select")return s.jsx(se,{className:u,children:s.jsx(Ue,{checked:T?!0:B?"indeterminate":!1,onCheckedChange:()=>{for(const b of p.agents)T?g.has(b.id)&&w(b.id):g.has(b.id)||w(b.id)},onClick:is})},r.id);if(r.id==="title")return s.jsx(se,{className:u,children:s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsx(Ge,{icon:p.icon,name:p.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(Y,{size:16})}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:p.title}),s.jsxs(et,{variant:"secondary",className:"text-xs tabular-nums",children:["x",p.agents.length]})]})},r.id);if(r.id==="updated_by")return s.jsx(se,{className:u,children:s.jsx("div",{className:"flex items-center -space-x-1.5",children:$.map(b=>s.jsx(Ce,{id:b,size:"3xs",avatarOnly:$.length>1},b))})},r.id);if(r.id==="updated_at"){const b=L.updated_at??L.created_at;return s.jsx(se,{className:u,children:s.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:b?ye(new Date(b)):"—"})},r.id)}return r.id==="actions"?s.jsx(se,{className:u,children:s.jsx(qt,{size:16,className:X("text-muted-foreground transition-transform",M&&"rotate-180")})},r.id):s.jsx(se,{className:u},r.id)})}),M&&p.agents.map(r=>s.jsx(Ve,{className:X("group/data-row transition-colors border-b-0 hover:bg-accent/50 cursor-pointer bg-muted/20",N&&g.has(r.id)&&"bg-primary/5"),onClick:()=>x(r),children:n.map(u=>s.jsx(se,{className:X("px-5 py-3 h-14 align-middle text-sm text-foreground",u.cellClassName,u.id==="title"&&"pl-12"),children:s.jsx("div",{className:"min-w-0 w-full truncate overflow-hidden whitespace-nowrap",children:u.render?u.render(r):null})},u.id))},r.id))]},p.key)},e[25]=n,e[26]=o,e[27]=x,e[28]=w,e[29]=g,e[30]=N,e[31]=f):f=e[31],k=d.map(f),e[17]=n,e[18]=o,e[19]=d,e[20]=x,e[21]=w,e[22]=g,e[23]=N,e[24]=k}else k=e[24];let I;e[32]!==k?(I=s.jsx(Gt,{children:k}),e[32]=k,e[33]=I):I=e[33];let A;return e[34]!==P||e[35]!==I?(A=s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs(Ut,{className:"w-full border-collapse",children:[P,I]})}),e[34]=P,e[35]=I,e[36]=A):A=e[36],A}function is(t){return t.stopPropagation()}function ls(t,e){const n=e.updated_at??e.created_at,d=t.updated_at??t.created_at;return n?d?new Date(n)>new Date(d)?e:t:e:t}function as(){const t=we.c(138),{org:e}=Nt(),n=Ct();let d;t[0]!==e.slug?(d={namespace:e.slug,resource:"agents"},t[0]=e.slug,t[1]=d):d=t[1];const i=Tt(d),a=Pt(i);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={navigateOnCreate:!0},t[2]=l):l=t[2];const{createVirtualMCP:x,isCreating:N}=$t(l),g=It();let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w={mode:"idle"},t[3]=w):w=t[3];const[m,D]=J.useReducer(Wt,w),[o,O]=J.useState(!1);let S;t[4]===Symbol.for("react.memo_cache_sentinel")?(S=new Set,t[4]=S):S=t[4];const[c,C]=J.useState(S),[z,P]=J.useState(!1),[k,I]=J.useState("ALL");let A;t[5]===Symbol.for("react.memo_cache_sentinel")?(A=E=>{C(U=>{const F=new Set(U);return F.has(E)?F.delete(E):F.add(E),F})},t[5]=A):A=t[5];const f=A;let j;t[6]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{O(!1),C(new Set)},t[6]=j):j=t[6];const p=j;let M,T,B,$,L,r,u,b;if(t[7]!==g||t[8]!==z||t[9]!==x||t[10]!==m.mode||t[11]!==m.virtualMcp||t[12]!==N||t[13]!==i||t[14]!==n||t[15]!==e.slug||t[16]!==c||t[17]!==o||t[18]!==k||t[19]!==a){let E;t[28]!==k?(E=h=>!(k!=="ALL"&&h.status!==k),t[28]=k,t[29]=E):E=t[29],B=a.filter(E);const U=Qt(B),F=a.length;let y;t[30]!==a?(y=a.filter(Ns),t[30]=a,t[31]=y):y=t[31];const _=y.length;let W;t[32]!==a?(W=a.filter(vs),t[32]=a,t[33]=W):W=t[33];let Z;t[34]!==y.length||t[35]!==W.length||t[36]!==a.length?(Z={total:F,active:_,inactive:W.length},t[34]=y.length,t[35]=W.length,t[36]=a.length,t[37]=Z):Z=t[37];const H=Z;let ee;t[38]!==g||t[39]!==m.mode||t[40]!==m.virtualMcp?(ee=async()=>{if(m.mode!=="deleting")return;const h=m.virtualMcp.id;if(D({type:"close"}),!(!h||Ne(h)))try{await g.delete.mutateAsync(h)}catch{}},t[38]=g,t[39]=m.mode,t[40]=m.virtualMcp,t[41]=ee):ee=t[41];const q=ee;let te;t[42]!==g||t[43]!==c?(te=async()=>{P(!1);let h=0;for(const v of c)if(!Ne(v))try{await g.delete.mutateAsync(v),h++}catch{}yt.success(`Deleted ${h} agent${h!==1?"s":""}`),p()},t[42]=g,t[43]=c,t[44]=te):te=t[44];const R=te;let Se;t[45]!==n||t[46]!==e.slug||t[47]!==o?(Se=h=>{if(o){f(h);return}n({to:"/$org/$project/agents/$agentId",params:{org:e.slug,project:wt,agentId:h}})},t[45]=n,t[46]=e.slug,t[47]=o,t[48]=Se):Se=t[48];const ne=Se;let ie;t[49]!==c||t[50]!==o?(ie=o?[{id:"select",header:"",render:h=>s.jsx(Ue,{checked:c.has(h.id),onCheckedChange:()=>f(h.id),onClick:bs}),cellClassName:"w-10 shrink-0"}]:[],t[49]=c,t[50]=o,t[51]=ie):ie=t[51];let ke,_e,De,ze,Ae,Me;t[52]===Symbol.for("react.memo_cache_sentinel")?(ke={id:"title",header:"Name",render:js,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},_e={id:"description",header:"Description",render:gs,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},De={id:"connections",header:"Connections",render:ps,cellClassName:"w-28 shrink-0"},ze={id:"status",header:"Status",render:hs,cellClassName:"w-24 shrink-0"},Ae={id:"updated_by",header:"Updated by",render:us,cellClassName:"w-32 shrink-0",sortable:!0},Me={id:"updated_at",header:"Updated",render:fs,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},t[52]=ke,t[53]=_e,t[54]=De,t[55]=ze,t[56]=Ae,t[57]=Me):(ke=t[52],_e=t[53],De=t[54],ze=t[55],Ae=t[56],Me=t[57]);let le;t[58]!==ne?(le={id:"actions",header:"",render:h=>s.jsxs(tt,{children:[s.jsx(st,{asChild:!0,children:s.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:ms,children:s.jsx(it,{size:20})})}),s.jsxs(nt,{align:"end",onClick:ds,children:[s.jsxs(je,{onClick:v=>{v.stopPropagation(),ne(h.id)},children:[s.jsx(lt,{size:16}),"Open"]}),!Ne(h.id)&&s.jsxs(je,{variant:"destructive",onClick:v=>{v.stopPropagation(),D({type:"delete",virtualMcp:h})},children:[s.jsx(Fe,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"},t[58]=ne,t[59]=le):le=t[59];let Te;t[60]!==ie||t[61]!==le?(Te=[...ie,ke,_e,De,ze,Ae,Me,le],t[60]=ie,t[61]=le,t[62]=Te):Te=t[62];const bt=Te;let $e;t[63]!==x||t[64]!==N||t[65]!==o?($e=s.jsx("div",{className:"flex items-center gap-2",children:o?s.jsxs(Q,{variant:"ghost",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",onClick:p,children:[s.jsx(gt,{size:14}),"Cancel"]}):s.jsxs(s.Fragment,{children:[s.jsxs(Q,{variant:"outline",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",onClick:()=>O(!0),children:[s.jsx(Mt,{size:14}),"Select"]}),s.jsx(Q,{onClick:x,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:N,children:N?"Creating...":"Create Agent"})]})}),t[63]=x,t[64]=N,t[65]=o,t[66]=$e):$e=t[66];const qe=$e;T=ve;const Je=m.mode==="deleting";let Pe;t[67]===Symbol.for("react.memo_cache_sentinel")?(Pe=h=>!h&&D({type:"close"}),t[67]=Pe):Pe=t[67];let Ie;t[68]===Symbol.for("react.memo_cache_sentinel")?(Ie=s.jsx(at,{children:"Delete Agent?"}),t[68]=Ie):Ie=t[68];const Qe=m.mode==="deleting"&&m.virtualMcp.title;let ae;t[69]!==Qe?(ae=s.jsxs(rt,{children:[Ie,s.jsxs(ot,{children:["This action cannot be undone. This will permanently delete"," ",s.jsx("span",{className:"font-medium text-foreground",children:Qe}),"."]})]}),t[69]=Qe,t[70]=ae):ae=t[70];let Oe;t[71]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(ct,{children:"Cancel"}),t[71]=Oe):Oe=t[71];let re;t[72]!==q?(re=s.jsxs(dt,{children:[Oe,s.jsx(mt,{onClick:q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[72]=q,t[73]=re):re=t[73];let oe;t[74]!==ae||t[75]!==re?(oe=s.jsxs(ft,{children:[ae,re]}),t[74]=ae,t[75]=re,t[76]=oe):oe=t[76],t[77]!==Je||t[78]!==oe?(r=s.jsx(ut,{open:Je,onOpenChange:Pe,children:oe}),t[77]=Je,t[78]=oe,t[79]=r):r=t[79];const We=c.size!==1?"s":"";let ce;t[80]!==c.size||t[81]!==We?(ce=s.jsxs(at,{children:["Delete ",c.size," agent",We,"?"]}),t[80]=c.size,t[81]=We,t[82]=ce):ce=t[82];let Be;t[83]===Symbol.for("react.memo_cache_sentinel")?(Be=s.jsx(ot,{children:"This action cannot be undone. This will permanently delete the selected agents."}),t[83]=Be):Be=t[83];let de;t[84]!==ce?(de=s.jsxs(rt,{children:[ce,Be]}),t[84]=ce,t[85]=de):de=t[85];let Le;t[86]===Symbol.for("react.memo_cache_sentinel")?(Le=s.jsx(ct,{children:"Cancel"}),t[86]=Le):Le=t[86];let me;t[87]!==R?(me=s.jsxs(dt,{children:[Le,s.jsx(mt,{onClick:R,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[87]=R,t[88]=me):me=t[88];let fe;t[89]!==de||t[90]!==me?(fe=s.jsxs(ft,{children:[de,me]}),t[89]=de,t[90]=me,t[91]=fe):fe=t[91],t[92]!==z||t[93]!==fe?(u=s.jsx(ut,{open:z,onOpenChange:P,children:fe}),t[92]=z,t[93]=fe,t[94]=u):u=t[94];const Xe=H.active>0&&` · ${H.active} active`,Ye=H.inactive>0&&` · ${H.inactive} inactive`;let ue;t[95]!==H.total||t[96]!==Xe||t[97]!==Ye?(ue=s.jsx(ve.Header.Left,{children:s.jsx(_t,{children:s.jsx(Dt,{children:s.jsx(zt,{children:s.jsxs(At,{className:"flex items-center gap-2",children:["Agents",s.jsxs("span",{className:"text-xs font-normal text-muted-foreground tabular-nums",children:[H.total," total",Xe,Ye]})]})})})})}),t[95]=H.total,t[96]=Xe,t[97]=Ye,t[98]=ue):ue=t[98];let Re;t[99]===Symbol.for("react.memo_cache_sentinel")?(Re=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],t[99]=Re):Re=t[99];let Ee,Ke;t[100]===Symbol.for("react.memo_cache_sentinel")?(Ee=h=>I(h||"ALL"),Ke=[{id:"ALL",label:"All"},{id:"active",label:"Active"},{id:"inactive",label:"Inactive"}],t[100]=Ee,t[101]=Ke):(Ee=t[100],Ke=t[101]);let he;t[102]!==k?(he=[{label:"Status",value:k,onChange:Ee,options:Ke}],t[102]=k,t[103]=he):he=t[103];let pe;t[104]!==i.handleSort||t[105]!==i.setViewMode||t[106]!==i.sortDirection||t[107]!==i.sortKey||t[108]!==i.viewMode||t[109]!==he?(pe=s.jsx(St,{viewMode:i.viewMode,onViewModeChange:i.setViewMode,sortKey:i.sortKey,sortDirection:i.sortDirection,onSort:i.handleSort,sortOptions:Re,filters:he}),t[104]=i.handleSort,t[105]=i.setViewMode,t[106]=i.sortDirection,t[107]=i.sortKey,t[108]=i.viewMode,t[109]=he,t[110]=pe):pe=t[110];let xe;t[111]!==qe||t[112]!==pe?(xe=s.jsxs(ve.Header.Right,{children:[pe,qe]}),t[111]=qe,t[112]=pe,t[113]=xe):xe=t[113],t[114]!==ue||t[115]!==xe?(b=s.jsxs(ve.Header,{children:[ue,xe]}),t[114]=ue,t[115]=xe,t[116]=b):b=t[116];let ge;t[117]!==i?(ge=h=>{h.key==="Escape"&&(i.setSearch(""),h.target.blur())},t[117]=i,t[118]=ge):ge=t[118],t[119]!==i.search||t[120]!==i.setSearch||t[121]!==ge?($=s.jsx("div",{className:"flex items-center gap-3 px-5 pb-0",children:s.jsx("div",{className:"flex-1",children:s.jsx(kt,{value:i.search,onChange:i.setSearch,placeholder:"Search for an agent...",onKeyDown:ge})})}),t[119]=i.search,t[120]=i.setSearch,t[121]=ge,t[122]=$):$=t[122],M=ve.Content,L=i.viewMode==="cards"?s.jsx("div",{className:"flex-1 overflow-auto p-5",children:B.length===0?s.jsx(Ze,{image:s.jsx(Y,{size:36,className:"text-muted-foreground"}),title:i.search?"No agents found":"No agents yet",description:i.search?`No agents match "${i.search}"`:"Create an agent to aggregate tools from multiple Connections."}):s.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:U.map(h=>{if(h.type==="group")return s.jsx(Xt,{group:h,onNavigate:ne,onDelete:be=>D({type:"delete",virtualMcp:be}),selectionMode:o,selectedIds:c,onToggleSelect:f},h.key);const v=h.agent;return s.jsxs("div",{className:"relative",children:[o&&s.jsx("div",{className:"absolute top-3 left-3 z-10",children:s.jsx(Ue,{checked:c.has(v.id),onCheckedChange:()=>f(v.id)})}),s.jsx(xt,{connection:{id:v.id??"",title:v.title,description:v.description,icon:v.icon,status:v.status},fallbackIcon:s.jsx(Y,{}),onClick:()=>ne(v.id),className:X(o&&c.has(v.id)&&"ring-2 ring-primary"),body:s.jsx(He,{status:v.status}),footer:s.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground w-full min-w-0",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Ce,{id:v.updated_by??v.created_by,size:"3xs"})}),s.jsx("span",{className:"shrink-0 ml-2",children:v.updated_at?ye(new Date(v.updated_at)):"—"})]}),headerActions:o?void 0:s.jsxs(tt,{children:[s.jsx(st,{asChild:!0,children:s.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:cs,children:s.jsx(it,{size:20})})}),s.jsxs(nt,{align:"end",onClick:os,children:[s.jsxs(je,{onClick:be=>{be.stopPropagation(),ne(v.id)},children:[s.jsx(lt,{size:16}),"Open"]}),!Ne(v.id)&&s.jsxs(je,{variant:"destructive",onClick:be=>{be.stopPropagation(),D({type:"delete",virtualMcp:v})},children:[s.jsx(Fe,{size:16}),"Delete"]})]})]})})]},v.id)})})}):s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:s.jsx("div",{className:"flex-1 overflow-auto min-w-0",children:s.jsx("div",{className:"min-w-[1000px]",children:s.jsx(ns,{columns:bt,grouped:U,sortKey:i.sortKey,sortDirection:i.sortDirection,onSort:i.handleSort,onRowClick:h=>ne(h.id),selectionMode:o,selectedIds:c,onToggleSelect:f,emptyState:i.search?s.jsx(Ze,{image:s.jsx(Y,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${i.search}"`}):s.jsx(Ze,{image:s.jsx(Y,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})})})})}),t[7]=g,t[8]=z,t[9]=x,t[10]=m.mode,t[11]=m.virtualMcp,t[12]=N,t[13]=i,t[14]=n,t[15]=e.slug,t[16]=c,t[17]=o,t[18]=k,t[19]=a,t[20]=M,t[21]=T,t[22]=B,t[23]=$,t[24]=L,t[25]=r,t[26]=u,t[27]=b}else M=t[20],T=t[21],B=t[22],$=t[23],L=t[24],r=t[25],u=t[26],b=t[27];let K;t[123]!==M||t[124]!==L?(K=s.jsx(M,{children:L}),t[123]=M,t[124]=L,t[125]=K):K=t[125];let V;t[126]!==B||t[127]!==c.size||t[128]!==o?(V=o&&s.jsx(ss,{count:c.size,total:B.length,onSelectAll:()=>C(new Set(B.map(rs))),onDeselectAll:()=>C(new Set),onDelete:()=>P(!0),onCancel:p}),t[126]=B,t[127]=c.size,t[128]=o,t[129]=V):V=t[129];let G;return t[130]!==T||t[131]!==$||t[132]!==K||t[133]!==V||t[134]!==r||t[135]!==u||t[136]!==b?(G=s.jsxs(T,{children:[r,u,b,$,K,V]}),t[130]=T,t[131]=$,t[132]=K,t[133]=V,t[134]=r,t[135]=u,t[136]=b,t[137]=G):G=t[137],G}function rs(t){return t.id}function os(t){return t.stopPropagation()}function cs(t){return t.stopPropagation()}function ds(t){return t.stopPropagation()}function ms(t){return t.stopPropagation()}function fs(t){return s.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:t.updated_at?ye(new Date(t.updated_at)):"—"})}function us(t){return s.jsx(Ce,{id:t.updated_by??t.created_by,size:"3xs"})}function hs(t){return s.jsx(He,{status:t.status})}function ps(t){return s.jsx(J.Suspense,{fallback:s.jsx(ht.Fallback,{}),children:s.jsx(ht,{connectionIds:t.connections.map(xs),maxVisibleIcons:2})})}function xs(t){return t.connection_id}function gs(t){return s.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:t.description||"—"})}function js(t){return s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsx(Ge,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(Y,{size:16})}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:t.title})]})}function bs(t){return t.stopPropagation()}function vs(t){return t.status==="inactive"}function Ns(t){return t.status==="active"}function Nn(){const t=we.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(vt,{children:s.jsx(J.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(Jt,{size:32,className:"animate-spin text-muted-foreground"})}),children:s.jsx(as,{})})}),t[0]=e):e=t[0],e}export{Nn as default};
1
+ import{c as we,j as s,E as vt,r as J,u as Nt,e as Ct,B as Q,y as X,w as yt,O as wt}from"./index-DJtnEPc7.js";import{C as St}from"./collection-display-button-CPJ0Uvih.js";import{C as kt}from"./collection-search-BeqmTWUU.js";import{P as ve}from"./index-qxqsMecG.js";import{B as _t,a as Dt,b as zt,c as At}from"./breadcrumb-7YipRD-p.js";import{C as xt}from"./connection-card-D3SNWej3.js";import{C as He,i as Mt}from"./connection-status-B9duDm-X.js";import{E as Ze}from"./empty-state-COoAU6KF.js";import{I as Ge}from"./integration-icon-DrTDJ354.js";import{u as Tt}from"./use-list-state-Dn3PYXZc.js";import{u as $t}from"./use-create-virtual-mcp-BqiAP0hG.js";import{i as Ne}from"./constants-4hZfe-FX.js";import{b as Pt,a as It}from"./use-virtual-mcp-B8_wDvx9.js";import{c as at,b as rt,d as ot,A as ct,e as dt,h as mt,a as ft,f as ut}from"./alert-dialog-BoQV9ycw.js";import{B as et}from"./badge-7TJrkuyd.js";import{C as Ue}from"./checkbox-BRXa8FNh.js";import{D as Ot,a as Bt,b as Lt,c as Rt,d as Et}from"./dialog-1RTimACw.js";import{c as Kt,a as Vt,b as Ve,e as se,d as Gt,T as Ut}from"./table-Cd-wCYBh.js";import{D as tt,a as st,b as nt,c as je}from"./dropdown-menu-ur1Ui41o.js";import{n as Ft}from"./ArrowDown-qfJtx-dv.js";import{i as Ht}from"./ArrowUp-ETVB6cdy.js";import{t as qt}from"./ChevronDown-CIjXFJfV.js";import{i as it}from"./DotsVertical-ZHHEIIAw.js";import{s as lt}from"./Eye-Dq2YmoWs.js";import{i as Jt}from"./Loading01-CSUxQOK0.js";import{s as Fe}from"./Trash01-DPMbpRnj.js";import{t as Y}from"./Users03-C-Jr0LW_.js";import{s as gt}from"./XClose-ndXrBTVc.js";import{U as Ce}from"./user-D3_ltBdu.js";import{A as ht}from"./agent-connections-preview-Vgh7fOJI.js";import{f as ye}from"./format-time-CMKyl-GC.js";import"./Check-DsclgHfU.js";import"./Grid01-BSBJv9eJ.js";import"./List-LffcVOLG.js";import"./tooltip-Bms1Xn3i.js";import"./index-biN0aic_.js";import"./SearchMd-CrngVZhh.js";import"./input-j_5WJy1c.js";import"./useQuery-DLey6Pvf.js";import"./useMutation-D77LVetF.js";import"./ChevronRight-DmvbXNWu.js";import"./card-D9sP6AvS.js";import"./AlertCircle-BCDqbXXS.js";import"./CheckCircle-CQGSbCTG.js";import"./Container-C_pBhYQm.js";import"./use-view-mode-U3Y0emnO.js";import"./use-mobile-BgetcADk.js";import"./use-collections-uyyRdHl8.js";import"./X-CuPyb-Ex.js";import"./avatar-CkCU2Fe6.js";import"./use-connection-2T7CNTjX.js";import"./differenceInSeconds-NQ4PDo0z.js";function pt(t){return t.title.trim().replace(/\s+\(\d+\)$/,"")}function Qt(t){const e=new Map;for(const i of t){const a=pt(i),l=e.get(a);l?l.push(i):e.set(a,[i])}const n=[],d=new Set;for(const i of t){const a=pt(i);if(d.has(a))continue;d.add(a);const l=e.get(a),x=l[0];l.length===1?n.push({type:"single",agent:x}):n.push({type:"group",key:a,icon:x.icon,title:x.title.replace(/\s*\(\d+\)\s*$/,""),agents:l})}return n}function jt(t){const e=new Set,n=[];for(const d of t)d.created_by&&!e.has(d.created_by)&&(e.add(d.created_by),n.push(d.created_by));return n}function Wt(t,e){switch(e.type){case"delete":return{mode:"deleting",virtualMcp:e.virtualMcp};case"close":return{mode:"idle"}}}function Xt(t){const e=we.c(107),{group:n,onNavigate:d,onDelete:i,selectionMode:a,selectedIds:l,onToggleSelect:x}=t,[N,g]=J.useState(!1);let w;if(e[0]!==n.agents||e[1]!==l){let y;e[3]!==l?(y=_=>l.has(_.id),e[3]=l,e[4]=y):y=e[4],w=n.agents.every(y),e[0]=n.agents,e[1]=l,e[2]=w}else w=e[2];const m=w;let D;if(e[5]!==n.agents||e[6]!==l){let y;e[8]!==l?(y=_=>l.has(_.id),e[8]=l,e[9]=y):y=e[9],D=n.agents.some(y),e[5]=n.agents,e[6]=l,e[7]=D}else D=e[7];const o=D;let O,S,c,C,z,P,k,I,A,f,j;if(e[10]!==m||e[11]!==n.agents||e[12]!==n.icon||e[13]!==n.title||e[14]!==x||e[15]!==l||e[16]!==a||e[17]!==o){const y=jt(n.agents),_=n.agents.reduce(ts,n.agents[0]),W=_.updated_at??_.created_at;O=xt;const Z=`${n.agents.length} instances`;e[29]!==n.icon||e[30]!==n.title||e[31]!==Z?(A={title:n.title,icon:n.icon,description:Z},e[29]=n.icon,e[30]=n.title,e[31]=Z,e[32]=A):A=e[32],e[33]!==m||e[34]!==n.agents||e[35]!==x||e[36]!==l||e[37]!==a?(f=()=>a?(()=>{for(const R of n.agents)m?l.has(R.id)&&x(R.id):l.has(R.id)||x(R.id)})():g(!0),e[33]=m,e[34]=n.agents,e[35]=x,e[36]=l,e[37]=a,e[38]=f):f=e[38];const H=a&&m&&"ring-2 ring-primary",ee=a&&o&&!m&&"ring-1 ring-primary/50";e[39]!==H||e[40]!==ee?(j=X(H,ee),e[39]=H,e[40]=ee,e[41]=j):j=e[41],e[42]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Y,{}),e[42]=S):S=e[42],e[43]!==m||e[44]!==n.agents||e[45]!==x||e[46]!==l||e[47]!==a||e[48]!==o?(c=a?s.jsx(Ue,{checked:m?!0:o?"indeterminate":!1,onCheckedChange:()=>{for(const R of n.agents)m?l.has(R.id)&&x(R.id):l.has(R.id)||x(R.id)}}):s.jsxs(et,{variant:"secondary",className:"text-xs tabular-nums",children:["x",n.agents.length]}),e[43]=m,e[44]=n.agents,e[45]=x,e[46]=l,e[47]=a,e[48]=o,e[49]=c):c=e[49];let q;e[50]!==n.agents?(q=n.agents.slice(0,6).map(es),e[50]=n.agents,e[51]=q):q=e[51],e[52]!==q?(C=s.jsx("div",{className:"flex items-center gap-1",children:q}),e[52]=q,e[53]=C):C=e[53],k="flex items-center justify-between text-xs text-muted-foreground w-full min-w-0";const te=y.map(R=>s.jsx(Ce,{id:R,size:"3xs",avatarOnly:y.length>1},R));e[54]!==te?(I=s.jsx("div",{className:"flex items-center -space-x-1.5",children:te}),e[54]=te,e[55]=I):I=e[55],z="shrink-0 ml-2",P=W?ye(new Date(W)):"—",e[10]=m,e[11]=n.agents,e[12]=n.icon,e[13]=n.title,e[14]=x,e[15]=l,e[16]=a,e[17]=o,e[18]=O,e[19]=S,e[20]=c,e[21]=C,e[22]=z,e[23]=P,e[24]=k,e[25]=I,e[26]=A,e[27]=f,e[28]=j}else O=e[18],S=e[19],c=e[20],C=e[21],z=e[22],P=e[23],k=e[24],I=e[25],A=e[26],f=e[27],j=e[28];let p;e[56]!==z||e[57]!==P?(p=s.jsx("span",{className:z,children:P}),e[56]=z,e[57]=P,e[58]=p):p=e[58];let M;e[59]!==p||e[60]!==k||e[61]!==I?(M=s.jsxs("div",{className:k,children:[I,p]}),e[59]=p,e[60]=k,e[61]=I,e[62]=M):M=e[62];let T;e[63]!==O||e[64]!==S||e[65]!==c||e[66]!==C||e[67]!==M||e[68]!==A||e[69]!==f||e[70]!==j?(T=s.jsx(O,{connection:A,onClick:f,className:j,fallbackIcon:S,headerActions:c,body:C,footer:M}),e[63]=O,e[64]=S,e[65]=c,e[66]=C,e[67]=M,e[68]=A,e[69]=f,e[70]=j,e[71]=T):T=e[71];let B;e[72]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Y,{}),e[72]=B):B=e[72];let $;e[73]!==n.icon||e[74]!==n.title?($=s.jsx(Ge,{icon:n.icon,name:n.title,size:"md",className:"shrink-0 shadow-sm",fallbackIcon:B}),e[73]=n.icon,e[74]=n.title,e[75]=$):$=e[75];let L;e[76]!==n.agents.length?(L=s.jsxs(et,{variant:"secondary",className:"ml-2 text-xs tabular-nums",children:["x",n.agents.length]}),e[76]=n.agents.length,e[77]=L):L=e[77];let r;e[78]!==n.title||e[79]!==L?(r=s.jsxs(Ot,{children:[n.title,L]}),e[78]=n.title,e[79]=L,e[80]=r):r=e[80];let u;e[81]!==n.agents.length?(u=s.jsxs(Bt,{children:[n.agents.length," instances"]}),e[81]=n.agents.length,e[82]=u):u=e[82];let b;e[83]!==r||e[84]!==u?(b=s.jsxs("div",{children:[r,u]}),e[83]=r,e[84]=u,e[85]=b):b=e[85];let K;e[86]!==$||e[87]!==b?(K=s.jsx(Lt,{className:"px-6 pt-6 pb-4",children:s.jsxs("div",{className:"flex items-center gap-3",children:[$,b]})}),e[86]=$,e[87]=b,e[88]=K):K=e[88];let V;if(e[89]!==n.agents||e[90]!==i||e[91]!==d){let y;e[93]!==i||e[94]!==d?(y=_=>s.jsxs("div",{className:"flex items-center gap-3 px-6 py-3 hover:bg-muted/30 cursor-pointer transition-colors",onClick:()=>{g(!1),d(_.id)},children:[s.jsx(Ge,{icon:_.icon,name:_.title,size:"sm",className:"shrink-0",fallbackIcon:s.jsx(Y,{})}),s.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:_.title}),s.jsx(He,{status:_.status})]}),s.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground shrink-0",children:[s.jsx(Ce,{id:_.created_by,size:"3xs"}),s.jsx("span",{children:_.created_at?ye(new Date(_.created_at)):"—"})]}),s.jsxs(tt,{children:[s.jsx(st,{asChild:!0,children:s.jsx(Q,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:Zt,children:s.jsx(it,{size:16})})}),s.jsxs(nt,{align:"end",onClick:Yt,children:[s.jsxs(je,{onClick:()=>{g(!1),d(_.id)},children:[s.jsx(lt,{size:16}),"Open"]}),!Ne(_.id)&&s.jsxs(je,{variant:"destructive",onClick:()=>i(_),children:[s.jsx(Fe,{size:16}),"Delete"]})]})]})]},_.id),e[93]=i,e[94]=d,e[95]=y):y=e[95],V=n.agents.map(y),e[89]=n.agents,e[90]=i,e[91]=d,e[92]=V}else V=e[92];let G;e[96]!==V?(G=s.jsx("div",{className:"divide-y max-h-80 overflow-auto",children:V}),e[96]=V,e[97]=G):G=e[97];let E;e[98]!==K||e[99]!==G?(E=s.jsxs(Rt,{className:"sm:max-w-lg p-0 gap-0",children:[K,G]}),e[98]=K,e[99]=G,e[100]=E):E=e[100];let U;e[101]!==N||e[102]!==E?(U=s.jsx(Et,{open:N,onOpenChange:g,children:E}),e[101]=N,e[102]=E,e[103]=U):U=e[103];let F;return e[104]!==T||e[105]!==U?(F=s.jsxs(s.Fragment,{children:[T,U]}),e[104]=T,e[105]=U,e[106]=F):F=e[106],F}function Yt(t){return t.stopPropagation()}function Zt(t){return t.stopPropagation()}function es(t){return s.jsx(He,{status:t.status},t.id)}function ts(t,e){const n=e.updated_at??e.created_at,d=t.updated_at??t.created_at;return n?d?new Date(n)>new Date(d)?e:t:e:t}function ss(t){const e=we.c(21),{count:n,total:d,onSelectAll:i,onDeselectAll:a,onDelete:l,onCancel:x}=t;if(n===0)return null;let N;e[0]!==n?(N=s.jsxs("span",{className:"text-sm font-medium tabular-nums",children:[n," selected"]}),e[0]=n,e[1]=N):N=e[1];let g;e[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("div",{className:"h-4 w-px bg-border"}),e[2]=g):g=e[2];let w;e[3]!==n||e[4]!==a||e[5]!==i||e[6]!==d?(w=n<d?s.jsxs(Q,{variant:"ghost",size:"sm",onClick:i,children:["Select all (",d,")"]}):s.jsx(Q,{variant:"ghost",size:"sm",onClick:a,children:"Clear selection"}),e[3]=n,e[4]=a,e[5]=i,e[6]=d,e[7]=w):w=e[7];let m;e[8]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"h-4 w-px bg-border"}),e[8]=m):m=e[8];let D;e[9]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Fe,{size:14}),e[9]=D):D=e[9];let o;e[10]!==l?(o=s.jsxs(Q,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:l,children:[D,"Delete"]}),e[10]=l,e[11]=o):o=e[11];let O;e[12]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("div",{className:"h-4 w-px bg-border"}),e[12]=O):O=e[12];let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(gt,{size:14}),e[13]=S):S=e[13];let c;e[14]!==x?(c=s.jsxs(Q,{variant:"ghost",size:"sm",onClick:x,children:[S,"Cancel"]}),e[14]=x,e[15]=c):c=e[15];let C;return e[16]!==N||e[17]!==w||e[18]!==o||e[19]!==c?(C=s.jsxs("div",{className:"fixed bottom-4 left-1/2 z-50 -translate-x-1/2 flex items-center gap-3 rounded-xl border border-border bg-background/95 backdrop-blur px-4 py-2.5 shadow-lg",children:[N,g,w,m,o,O,c]}),e[16]=N,e[17]=w,e[18]=o,e[19]=c,e[20]=C):C=e[20],C}function ns(t){const e=we.c(37),{columns:n,grouped:d,sortKey:i,sortDirection:a,onSort:l,onRowClick:x,selectionMode:N,selectedIds:g,onToggleSelect:w,emptyState:m}=t;let D;e[0]===Symbol.for("react.memo_cache_sentinel")?(D=new Set,e[0]=D):D=e[0];const[o,O]=J.useState(D);let S;e[1]===Symbol.for("react.memo_cache_sentinel")?(S=f=>{O(j=>{const p=new Set(j);return p.has(f)?p.delete(f):p.add(f),p})},e[1]=S):S=e[1];const c=S;if(d.length===0&&m){let f;return e[2]!==m?(f=s.jsx("div",{className:"flex items-center justify-center h-full",children:m}),e[2]=m,e[3]=f):f=e[3],f}const C=n.length;let z;if(e[4]!==C||e[5]!==n||e[6]!==l||e[7]!==a||e[8]!==i){let f;e[10]!==C||e[11]!==l||e[12]!==a||e[13]!==i?(f=(j,p)=>{const M=i===j.id,T=p===C-1;return s.jsx(Kt,{className:X("px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider",T&&"w-8","group transition-colors select-none",j.sortable&&"hover:bg-accent cursor-pointer",j.cellClassName),onClick:j.sortable&&l?()=>l(j.id):void 0,children:s.jsxs("span",{className:"flex items-center gap-1",children:[j.header,j.sortable&&s.jsx("span",{className:"w-4 flex items-center justify-center",children:M&&a&&(a==="asc"?s.jsx(Ht,{size:16,className:"text-muted-foreground"}):s.jsx(Ft,{size:16,className:"text-muted-foreground"}))})]})},j.id)},e[10]=C,e[11]=l,e[12]=a,e[13]=i,e[14]=f):f=e[14],z=n.map(f),e[4]=C,e[5]=n,e[6]=l,e[7]=a,e[8]=i,e[9]=z}else z=e[9];let P;e[15]!==z?(P=s.jsx(Vt,{className:"border-b-0",children:s.jsx(Ve,{className:"h-9 hover:bg-transparent border-b border-border",children:z})}),e[15]=z,e[16]=P):P=e[16];let k;if(e[17]!==n||e[18]!==o||e[19]!==d||e[20]!==x||e[21]!==w||e[22]!==g||e[23]!==N){let f;e[25]!==n||e[26]!==o||e[27]!==x||e[28]!==w||e[29]!==g||e[30]!==N?(f=j=>{if(j.type==="single"){const r=j.agent;return s.jsx(Ve,{className:X("group/data-row transition-colors border-b-0 hover:bg-accent/50 cursor-pointer",N&&g.has(r.id)&&"bg-primary/5"),onClick:()=>x(r),children:n.map(u=>s.jsx(se,{className:X("px-5 py-4 h-16 align-middle text-sm text-foreground",u.cellClassName),children:s.jsx("div",{className:"min-w-0 w-full truncate overflow-hidden whitespace-nowrap",children:u.render?u.render(r):null})},u.id))},r.id)}const p=j,M=o.has(p.key),T=p.agents.every(r=>g.has(r.id)),B=p.agents.some(r=>g.has(r.id)),$=jt(p.agents),L=p.agents.reduce(ls,p.agents[0]);return s.jsxs(J.Fragment,{children:[s.jsx(Ve,{className:"border-b-0 hover:bg-accent/50 cursor-pointer transition-colors",onClick:()=>c(p.key),children:n.map(r=>{const u=X("px-5 py-3 h-14 align-middle text-sm",r.cellClassName);if(r.id==="select")return s.jsx(se,{className:u,children:s.jsx(Ue,{checked:T?!0:B?"indeterminate":!1,onCheckedChange:()=>{for(const b of p.agents)T?g.has(b.id)&&w(b.id):g.has(b.id)||w(b.id)},onClick:is})},r.id);if(r.id==="title")return s.jsx(se,{className:u,children:s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsx(Ge,{icon:p.icon,name:p.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(Y,{size:16})}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:p.title}),s.jsxs(et,{variant:"secondary",className:"text-xs tabular-nums",children:["x",p.agents.length]})]})},r.id);if(r.id==="updated_by")return s.jsx(se,{className:u,children:s.jsx("div",{className:"flex items-center -space-x-1.5",children:$.map(b=>s.jsx(Ce,{id:b,size:"3xs",avatarOnly:$.length>1},b))})},r.id);if(r.id==="updated_at"){const b=L.updated_at??L.created_at;return s.jsx(se,{className:u,children:s.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:b?ye(new Date(b)):"—"})},r.id)}return r.id==="actions"?s.jsx(se,{className:u,children:s.jsx(qt,{size:16,className:X("text-muted-foreground transition-transform",M&&"rotate-180")})},r.id):s.jsx(se,{className:u},r.id)})}),M&&p.agents.map(r=>s.jsx(Ve,{className:X("group/data-row transition-colors border-b-0 hover:bg-accent/50 cursor-pointer bg-muted/20",N&&g.has(r.id)&&"bg-primary/5"),onClick:()=>x(r),children:n.map(u=>s.jsx(se,{className:X("px-5 py-3 h-14 align-middle text-sm text-foreground",u.cellClassName,u.id==="title"&&"pl-12"),children:s.jsx("div",{className:"min-w-0 w-full truncate overflow-hidden whitespace-nowrap",children:u.render?u.render(r):null})},u.id))},r.id))]},p.key)},e[25]=n,e[26]=o,e[27]=x,e[28]=w,e[29]=g,e[30]=N,e[31]=f):f=e[31],k=d.map(f),e[17]=n,e[18]=o,e[19]=d,e[20]=x,e[21]=w,e[22]=g,e[23]=N,e[24]=k}else k=e[24];let I;e[32]!==k?(I=s.jsx(Gt,{children:k}),e[32]=k,e[33]=I):I=e[33];let A;return e[34]!==P||e[35]!==I?(A=s.jsx("div",{className:"flex-1 overflow-auto",children:s.jsxs(Ut,{className:"w-full border-collapse",children:[P,I]})}),e[34]=P,e[35]=I,e[36]=A):A=e[36],A}function is(t){return t.stopPropagation()}function ls(t,e){const n=e.updated_at??e.created_at,d=t.updated_at??t.created_at;return n?d?new Date(n)>new Date(d)?e:t:e:t}function as(){const t=we.c(138),{org:e}=Nt(),n=Ct();let d;t[0]!==e.slug?(d={namespace:e.slug,resource:"agents"},t[0]=e.slug,t[1]=d):d=t[1];const i=Tt(d),a=Pt(i);let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={navigateOnCreate:!0},t[2]=l):l=t[2];const{createVirtualMCP:x,isCreating:N}=$t(l),g=It();let w;t[3]===Symbol.for("react.memo_cache_sentinel")?(w={mode:"idle"},t[3]=w):w=t[3];const[m,D]=J.useReducer(Wt,w),[o,O]=J.useState(!1);let S;t[4]===Symbol.for("react.memo_cache_sentinel")?(S=new Set,t[4]=S):S=t[4];const[c,C]=J.useState(S),[z,P]=J.useState(!1),[k,I]=J.useState("ALL");let A;t[5]===Symbol.for("react.memo_cache_sentinel")?(A=E=>{C(U=>{const F=new Set(U);return F.has(E)?F.delete(E):F.add(E),F})},t[5]=A):A=t[5];const f=A;let j;t[6]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{O(!1),C(new Set)},t[6]=j):j=t[6];const p=j;let M,T,B,$,L,r,u,b;if(t[7]!==g||t[8]!==z||t[9]!==x||t[10]!==m.mode||t[11]!==m.virtualMcp||t[12]!==N||t[13]!==i||t[14]!==n||t[15]!==e.slug||t[16]!==c||t[17]!==o||t[18]!==k||t[19]!==a){let E;t[28]!==k?(E=h=>!(k!=="ALL"&&h.status!==k),t[28]=k,t[29]=E):E=t[29],B=a.filter(E);const U=Qt(B),F=a.length;let y;t[30]!==a?(y=a.filter(Ns),t[30]=a,t[31]=y):y=t[31];const _=y.length;let W;t[32]!==a?(W=a.filter(vs),t[32]=a,t[33]=W):W=t[33];let Z;t[34]!==y.length||t[35]!==W.length||t[36]!==a.length?(Z={total:F,active:_,inactive:W.length},t[34]=y.length,t[35]=W.length,t[36]=a.length,t[37]=Z):Z=t[37];const H=Z;let ee;t[38]!==g||t[39]!==m.mode||t[40]!==m.virtualMcp?(ee=async()=>{if(m.mode!=="deleting")return;const h=m.virtualMcp.id;if(D({type:"close"}),!(!h||Ne(h)))try{await g.delete.mutateAsync(h)}catch{}},t[38]=g,t[39]=m.mode,t[40]=m.virtualMcp,t[41]=ee):ee=t[41];const q=ee;let te;t[42]!==g||t[43]!==c?(te=async()=>{P(!1);let h=0;for(const v of c)if(!Ne(v))try{await g.delete.mutateAsync(v),h++}catch{}yt.success(`Deleted ${h} agent${h!==1?"s":""}`),p()},t[42]=g,t[43]=c,t[44]=te):te=t[44];const R=te;let Se;t[45]!==n||t[46]!==e.slug||t[47]!==o?(Se=h=>{if(o){f(h);return}n({to:"/$org/$project/agents/$agentId",params:{org:e.slug,project:wt,agentId:h}})},t[45]=n,t[46]=e.slug,t[47]=o,t[48]=Se):Se=t[48];const ne=Se;let ie;t[49]!==c||t[50]!==o?(ie=o?[{id:"select",header:"",render:h=>s.jsx(Ue,{checked:c.has(h.id),onCheckedChange:()=>f(h.id),onClick:bs}),cellClassName:"w-10 shrink-0"}]:[],t[49]=c,t[50]=o,t[51]=ie):ie=t[51];let ke,_e,De,ze,Ae,Me;t[52]===Symbol.for("react.memo_cache_sentinel")?(ke={id:"title",header:"Name",render:js,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},_e={id:"description",header:"Description",render:gs,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},De={id:"connections",header:"Connections",render:ps,cellClassName:"w-28 shrink-0"},ze={id:"status",header:"Status",render:hs,cellClassName:"w-24 shrink-0"},Ae={id:"updated_by",header:"Updated by",render:us,cellClassName:"w-32 shrink-0",sortable:!0},Me={id:"updated_at",header:"Updated",render:fs,cellClassName:"max-w-24 w-24 shrink-0",sortable:!0},t[52]=ke,t[53]=_e,t[54]=De,t[55]=ze,t[56]=Ae,t[57]=Me):(ke=t[52],_e=t[53],De=t[54],ze=t[55],Ae=t[56],Me=t[57]);let le;t[58]!==ne?(le={id:"actions",header:"",render:h=>s.jsxs(tt,{children:[s.jsx(st,{asChild:!0,children:s.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:ms,children:s.jsx(it,{size:20})})}),s.jsxs(nt,{align:"end",onClick:ds,children:[s.jsxs(je,{onClick:v=>{v.stopPropagation(),ne(h.id)},children:[s.jsx(lt,{size:16}),"Open"]}),!Ne(h.id)&&s.jsxs(je,{variant:"destructive",onClick:v=>{v.stopPropagation(),D({type:"delete",virtualMcp:h})},children:[s.jsx(Fe,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"},t[58]=ne,t[59]=le):le=t[59];let Te;t[60]!==ie||t[61]!==le?(Te=[...ie,ke,_e,De,ze,Ae,Me,le],t[60]=ie,t[61]=le,t[62]=Te):Te=t[62];const bt=Te;let $e;t[63]!==x||t[64]!==N||t[65]!==o?($e=s.jsx("div",{className:"flex items-center gap-2",children:o?s.jsxs(Q,{variant:"ghost",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",onClick:p,children:[s.jsx(gt,{size:14}),"Cancel"]}):s.jsxs(s.Fragment,{children:[s.jsxs(Q,{variant:"outline",size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",onClick:()=>O(!0),children:[s.jsx(Mt,{size:14}),"Select"]}),s.jsx(Q,{onClick:x,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:N,children:N?"Creating...":"Create Agent"})]})}),t[63]=x,t[64]=N,t[65]=o,t[66]=$e):$e=t[66];const qe=$e;T=ve;const Je=m.mode==="deleting";let Pe;t[67]===Symbol.for("react.memo_cache_sentinel")?(Pe=h=>!h&&D({type:"close"}),t[67]=Pe):Pe=t[67];let Ie;t[68]===Symbol.for("react.memo_cache_sentinel")?(Ie=s.jsx(at,{children:"Delete Agent?"}),t[68]=Ie):Ie=t[68];const Qe=m.mode==="deleting"&&m.virtualMcp.title;let ae;t[69]!==Qe?(ae=s.jsxs(rt,{children:[Ie,s.jsxs(ot,{children:["This action cannot be undone. This will permanently delete"," ",s.jsx("span",{className:"font-medium text-foreground",children:Qe}),"."]})]}),t[69]=Qe,t[70]=ae):ae=t[70];let Oe;t[71]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(ct,{children:"Cancel"}),t[71]=Oe):Oe=t[71];let re;t[72]!==q?(re=s.jsxs(dt,{children:[Oe,s.jsx(mt,{onClick:q,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[72]=q,t[73]=re):re=t[73];let oe;t[74]!==ae||t[75]!==re?(oe=s.jsxs(ft,{children:[ae,re]}),t[74]=ae,t[75]=re,t[76]=oe):oe=t[76],t[77]!==Je||t[78]!==oe?(r=s.jsx(ut,{open:Je,onOpenChange:Pe,children:oe}),t[77]=Je,t[78]=oe,t[79]=r):r=t[79];const We=c.size!==1?"s":"";let ce;t[80]!==c.size||t[81]!==We?(ce=s.jsxs(at,{children:["Delete ",c.size," agent",We,"?"]}),t[80]=c.size,t[81]=We,t[82]=ce):ce=t[82];let Be;t[83]===Symbol.for("react.memo_cache_sentinel")?(Be=s.jsx(ot,{children:"This action cannot be undone. This will permanently delete the selected agents."}),t[83]=Be):Be=t[83];let de;t[84]!==ce?(de=s.jsxs(rt,{children:[ce,Be]}),t[84]=ce,t[85]=de):de=t[85];let Le;t[86]===Symbol.for("react.memo_cache_sentinel")?(Le=s.jsx(ct,{children:"Cancel"}),t[86]=Le):Le=t[86];let me;t[87]!==R?(me=s.jsxs(dt,{children:[Le,s.jsx(mt,{onClick:R,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[87]=R,t[88]=me):me=t[88];let fe;t[89]!==de||t[90]!==me?(fe=s.jsxs(ft,{children:[de,me]}),t[89]=de,t[90]=me,t[91]=fe):fe=t[91],t[92]!==z||t[93]!==fe?(u=s.jsx(ut,{open:z,onOpenChange:P,children:fe}),t[92]=z,t[93]=fe,t[94]=u):u=t[94];const Xe=H.active>0&&` · ${H.active} active`,Ye=H.inactive>0&&` · ${H.inactive} inactive`;let ue;t[95]!==H.total||t[96]!==Xe||t[97]!==Ye?(ue=s.jsx(ve.Header.Left,{children:s.jsx(_t,{children:s.jsx(Dt,{children:s.jsx(zt,{children:s.jsxs(At,{className:"flex items-center gap-2",children:["Agents",s.jsxs("span",{className:"text-xs font-normal text-muted-foreground tabular-nums",children:[H.total," total",Xe,Ye]})]})})})})}),t[95]=H.total,t[96]=Xe,t[97]=Ye,t[98]=ue):ue=t[98];let Re;t[99]===Symbol.for("react.memo_cache_sentinel")?(Re=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"updated_by",label:"Updated by"},{id:"updated_at",label:"Updated"}],t[99]=Re):Re=t[99];let Ee,Ke;t[100]===Symbol.for("react.memo_cache_sentinel")?(Ee=h=>I(h||"ALL"),Ke=[{id:"ALL",label:"All"},{id:"active",label:"Active"},{id:"inactive",label:"Inactive"}],t[100]=Ee,t[101]=Ke):(Ee=t[100],Ke=t[101]);let he;t[102]!==k?(he=[{label:"Status",value:k,onChange:Ee,options:Ke}],t[102]=k,t[103]=he):he=t[103];let pe;t[104]!==i.handleSort||t[105]!==i.setViewMode||t[106]!==i.sortDirection||t[107]!==i.sortKey||t[108]!==i.viewMode||t[109]!==he?(pe=s.jsx(St,{viewMode:i.viewMode,onViewModeChange:i.setViewMode,sortKey:i.sortKey,sortDirection:i.sortDirection,onSort:i.handleSort,sortOptions:Re,filters:he}),t[104]=i.handleSort,t[105]=i.setViewMode,t[106]=i.sortDirection,t[107]=i.sortKey,t[108]=i.viewMode,t[109]=he,t[110]=pe):pe=t[110];let xe;t[111]!==qe||t[112]!==pe?(xe=s.jsxs(ve.Header.Right,{children:[pe,qe]}),t[111]=qe,t[112]=pe,t[113]=xe):xe=t[113],t[114]!==ue||t[115]!==xe?(b=s.jsxs(ve.Header,{children:[ue,xe]}),t[114]=ue,t[115]=xe,t[116]=b):b=t[116];let ge;t[117]!==i?(ge=h=>{h.key==="Escape"&&(i.setSearch(""),h.target.blur())},t[117]=i,t[118]=ge):ge=t[118],t[119]!==i.search||t[120]!==i.setSearch||t[121]!==ge?($=s.jsx("div",{className:"flex items-center gap-3 px-5 pb-0",children:s.jsx("div",{className:"flex-1",children:s.jsx(kt,{value:i.search,onChange:i.setSearch,placeholder:"Search for an agent...",onKeyDown:ge})})}),t[119]=i.search,t[120]=i.setSearch,t[121]=ge,t[122]=$):$=t[122],M=ve.Content,L=i.viewMode==="cards"?s.jsx("div",{className:"flex-1 overflow-auto p-5",children:B.length===0?s.jsx(Ze,{image:s.jsx(Y,{size:36,className:"text-muted-foreground"}),title:i.search?"No agents found":"No agents yet",description:i.search?`No agents match "${i.search}"`:"Create an agent to aggregate tools from multiple Connections."}):s.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] gap-4",children:U.map(h=>{if(h.type==="group")return s.jsx(Xt,{group:h,onNavigate:ne,onDelete:be=>D({type:"delete",virtualMcp:be}),selectionMode:o,selectedIds:c,onToggleSelect:f},h.key);const v=h.agent;return s.jsxs("div",{className:"relative",children:[o&&s.jsx("div",{className:"absolute top-3 left-3 z-10",children:s.jsx(Ue,{checked:c.has(v.id),onCheckedChange:()=>f(v.id)})}),s.jsx(xt,{connection:{id:v.id??"",title:v.title,description:v.description,icon:v.icon,status:v.status},fallbackIcon:s.jsx(Y,{}),onClick:()=>ne(v.id),className:X(o&&c.has(v.id)&&"ring-2 ring-primary"),body:s.jsx(He,{status:v.status}),footer:s.jsxs("div",{className:"flex items-center justify-between text-xs text-muted-foreground w-full min-w-0",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Ce,{id:v.updated_by??v.created_by,size:"3xs"})}),s.jsx("span",{className:"shrink-0 ml-2",children:v.updated_at?ye(new Date(v.updated_at)):"—"})]}),headerActions:o?void 0:s.jsxs(tt,{children:[s.jsx(st,{asChild:!0,children:s.jsx(Q,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:cs,children:s.jsx(it,{size:20})})}),s.jsxs(nt,{align:"end",onClick:os,children:[s.jsxs(je,{onClick:be=>{be.stopPropagation(),ne(v.id)},children:[s.jsx(lt,{size:16}),"Open"]}),!Ne(v.id)&&s.jsxs(je,{variant:"destructive",onClick:be=>{be.stopPropagation(),D({type:"delete",virtualMcp:v})},children:[s.jsx(Fe,{size:16}),"Delete"]})]})]})})]},v.id)})})}):s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:s.jsx("div",{className:"flex-1 overflow-auto min-w-0",children:s.jsx("div",{className:"min-w-[1000px]",children:s.jsx(ns,{columns:bt,grouped:U,sortKey:i.sortKey,sortDirection:i.sortDirection,onSort:i.handleSort,onRowClick:h=>ne(h.id),selectionMode:o,selectedIds:c,onToggleSelect:f,emptyState:i.search?s.jsx(Ze,{image:s.jsx(Y,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${i.search}"`}):s.jsx(Ze,{image:s.jsx(Y,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})})})})}),t[7]=g,t[8]=z,t[9]=x,t[10]=m.mode,t[11]=m.virtualMcp,t[12]=N,t[13]=i,t[14]=n,t[15]=e.slug,t[16]=c,t[17]=o,t[18]=k,t[19]=a,t[20]=M,t[21]=T,t[22]=B,t[23]=$,t[24]=L,t[25]=r,t[26]=u,t[27]=b}else M=t[20],T=t[21],B=t[22],$=t[23],L=t[24],r=t[25],u=t[26],b=t[27];let K;t[123]!==M||t[124]!==L?(K=s.jsx(M,{children:L}),t[123]=M,t[124]=L,t[125]=K):K=t[125];let V;t[126]!==B||t[127]!==c.size||t[128]!==o?(V=o&&s.jsx(ss,{count:c.size,total:B.length,onSelectAll:()=>C(new Set(B.map(rs))),onDeselectAll:()=>C(new Set),onDelete:()=>P(!0),onCancel:p}),t[126]=B,t[127]=c.size,t[128]=o,t[129]=V):V=t[129];let G;return t[130]!==T||t[131]!==$||t[132]!==K||t[133]!==V||t[134]!==r||t[135]!==u||t[136]!==b?(G=s.jsxs(T,{children:[r,u,b,$,K,V]}),t[130]=T,t[131]=$,t[132]=K,t[133]=V,t[134]=r,t[135]=u,t[136]=b,t[137]=G):G=t[137],G}function rs(t){return t.id}function os(t){return t.stopPropagation()}function cs(t){return t.stopPropagation()}function ds(t){return t.stopPropagation()}function ms(t){return t.stopPropagation()}function fs(t){return s.jsx("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:t.updated_at?ye(new Date(t.updated_at)):"—"})}function us(t){return s.jsx(Ce,{id:t.updated_by??t.created_by,size:"3xs"})}function hs(t){return s.jsx(He,{status:t.status})}function ps(t){return s.jsx(J.Suspense,{fallback:s.jsx(ht.Fallback,{}),children:s.jsx(ht,{connectionIds:t.connections.map(xs),maxVisibleIcons:2})})}function xs(t){return t.connection_id}function gs(t){return s.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:t.description||"—"})}function js(t){return s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[s.jsx(Ge,{icon:t.icon,name:t.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:s.jsx(Y,{size:16})}),s.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:t.title})]})}function bs(t){return t.stopPropagation()}function vs(t){return t.status==="inactive"}function Ns(t){return t.status==="active"}function Nn(){const t=we.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(vt,{children:s.jsx(J.Suspense,{fallback:s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(Jt,{size:32,className:"animate-spin text-muted-foreground"})}),children:s.jsx(as,{})})}),t[0]=e):e=t[0],e}export{Nn as default};
@@ -1 +1 @@
1
- import{c as b,u as h,v as P,K as g}from"./index-SkQC2bL2.js";import{u as w}from"./useQuery-CtOvMPbo.js";import{a as u,u as _}from"./constants-BZUBXkLq.js";function A(){const c=b.c(9),{locator:e,org:i}=h();let o;c[0]!==i.id?(o={connectionId:u,orgId:i.id},c[0]=i.id,c[1]=o):o=c[1];const d=_(o);let a;c[2]!==e?(a=g.aiProviders(e),c[2]=e,c[3]=a):a=c[3];let s;c[4]!==d?(s=async()=>(await d.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,c[4]=d,c[5]=s):s=c[5];let t;c[6]!==a||c[7]!==s?(t={queryKey:a,staleTime:1/0,queryFn:s},c[6]=a,c[7]=s,c[8]=t):t=c[8];const{data:n}=P(t);return n}function q(){const c=b.c(11),{locator:e,org:i}=h();let o;c[0]!==i.id?(o={connectionId:u,orgId:i.id},c[0]=i.id,c[1]=o):o=c[1];const d=_(o);let a;c[2]!==e?(a=g.aiProviderKeys(e),c[2]=e,c[3]=a):a=c[3];let s;c[4]!==d?(s=async()=>(await d.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null,c[4]=d,c[5]=s):s=c[5];let t;c[6]!==a||c[7]!==s?(t={queryKey:a,staleTime:6e4,queryFn:s},c[6]=a,c[7]=s,c[8]=t):t=c[8];const{data:n}=P(t);let m;return c[9]!==n?.keys?(m=n?.keys??[],c[9]=n?.keys,c[10]=m):m=c[10],m}function C(c){const e=b.c(17),{locator:i,org:o}=h();let d;e[0]!==o.id?(d={connectionId:u,orgId:o.id},e[0]=o.id,e[1]=d):d=e[1];const a=_(d);let s;e[2]!==c||e[3]!==i?(s=g.aiProviderModels(i,c??""),e[2]=c,e[3]=i,e[4]=s):s=e[4];const t=!!c;let n;e[5]!==a||e[6]!==c?(n=async()=>(await a.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:c}})).structuredContent??null,e[5]=a,e[6]=c,e[7]=n):n=e[7];let m;e[8]!==s||e[9]!==t||e[10]!==n?(m={queryKey:s,enabled:t,staleTime:6e4,queryFn:n},e[8]=s,e[9]=t,e[10]=n,e[11]=m):m=e[11];const{data:f,isLoading:y}=w(m);let l;e[12]!==f?.models?(l=f?.models??[],e[12]=f?.models,e[13]=l):l=e[13];const v=!!c&&y;let p;return e[14]!==l||e[15]!==v?(p={models:l,isLoading:v},e[14]=l,e[15]=v,e[16]=p):p=e[16],p}function D(c){const e=b.c(13),{locator:i,org:o}=h();let d;e[0]!==o.id?(d={connectionId:u,orgId:o.id},e[0]=o.id,e[1]=d):d=e[1];const a=_(d);let s;e[2]!==c||e[3]!==i?(s=g.aiProviderModels(i,c),e[2]=c,e[3]=i,e[4]=s):s=e[4];let t;e[5]!==a||e[6]!==c?(t=async()=>(await a.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:c}})).structuredContent??null,e[5]=a,e[6]=c,e[7]=t):t=e[7];let n;e[8]!==s||e[9]!==t?(n={queryKey:s,staleTime:6e4,queryFn:t},e[8]=s,e[9]=t,e[10]=n):n=e[10];const{data:m}=P(n);let f;return e[11]!==m?.models?(f=m?.models??[],e[11]=m?.models,e[12]=f):f=e[12],f}const r="https://assets.decocache.com/decocms/bc2ca488-2bae-4aac-8d3e-ead262dad764/agent.png",L="https://assets.decocache.com/decocms/b2e2f64f-6025-45f7-9e8c-3b3ebdd073d8/openrouter_logojpg.jpg",S="https://assets.decocache.com/decocms/4fa4f3ed-1bf3-4e5a-8d05-4f3787df5966/anthropic-icon-tdvkiqisswbrmtkiygb0ia.webp";function j(c){const e=c.modelId.includes("/")?c.modelId.split("/")[0]:null;return e&&I[e]||I[c.providerId]||r}const I={"aion-labs":"https://assets.decocache.com/decocms/6da18da8-0160-4b85-8bca-84eefffebe12/images-(6).png",ai21:"https://assets.decocache.com/decocms/5d8388e9-027b-4b23-b816-90cee1cd28ad/images-(5).png",alfredpros:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",alibaba:"https://assets.decocache.com/decocms/4d113b13-5412-4d3b-96ec-3c2e7c1f7a5f/images-(8).png",allenai:"https://assets.decocache.com/decocms/21d6071a-e0da-4919-9f35-902b1d0b85b8/allen.png",alpindale:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",amazon:"https://assets.decocache.com/decocms/31e7b260-6cf0-4753-bb32-bd062b15c5f1/Amazon_icon.png",anthropic:S,"anthracite-org":r,"arcee-ai":"https://assets.decocache.com/decocms/ee325839-6acc-48dc-8cf7-8bab74698015/126496414.png",baidu:"https://assets.decocache.com/decocms/cf4c19f1-39b5-499e-87b7-e16dc5da2b50/images-(9).png",bytedance:"https://assets.decocache.com/decocms/1c111a26-8e1d-4a48-9d3c-fe9fb728af06/images-(18).png","bytedance-seed":"https://assets.decocache.com/decocms/1c111a26-8e1d-4a48-9d3c-fe9fb728af06/images-(18).png",cognitivecomputations:r,cohere:"https://assets.decocache.com/decocms/c942091b-b3bf-4c46-af37-fc2c1086d9f7/cohere-color.png",deepcogito:"https://assets.decocache.com/decocms/4ee77a8f-a36a-4933-8cdf-d2e8676b88d8/images-(13).png",deepseek:"https://assets.decocache.com/decocms/3611e8ac-4cad-4b0e-a1f8-8f791288ce03/images-(1).png",eleutherai:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",essentialai:"https://assets.decocache.com/decocms/c5afc6de-1e41-457e-a6dd-91810d92541e/images-(1).jpeg",google:"https://assets.decocache.com/webdraw/17df85af-1578-42ef-ae07-4300de0d1723/gemini.svg",gryphe:"https://assets.decocache.com/decocms/a5503d3b-2056-47f2-a76c-611b7416bdc8/6798c7dccaaadd0a1318d66a_66f41d1fd146c3b0b9c76453_gryphe-logo.webp","ibm-granite":"https://assets.decocache.com/decocms/2c50018d-6f70-472d-be30-65a5e8e249f0/images-(10).png",inflection:r,inception:"https://assets.decocache.com/decocms/ff9822b8-a914-482b-bd7d-b0e46b9d5a56/images-(6).jpeg",kwaipilot:"https://assets.decocache.com/decocms/cd576e1d-1184-45ba-8162-cf2bd06d684f/images-(14).png",liquid:r,mancer:"https://assets.decocache.com/decocms/79762356-a0c5-4546-b268-ad4a0b51db51/Screenshot-2026-01-08-at-18.49.42.png",meituan:r,"meta-llama":"https://assets.decocache.com/decocms/56421cb3-488c-4cc3-83a5-16d9a303850e/images-(11).png",microsoft:"https://assets.decocache.com/decocms/0e352a51-4ea5-4f35-802e-fd82bf266683/images-(12).png",minimax:"https://assets.decocache.com/decocms/f362cc4f-7ccc-4317-afda-92e6f348fdfd/images-(2).png",mistralai:"https://assets.decocache.com/decocms/73ab9971-bbbc-40dc-99a3-5fddd9a0f340/images-(3).png",morph:r,moonshotai:"https://assets.decocache.com/decocms/b8abfea7-e8b4-4b72-b653-fdf11c9e3b66/moonshot.png",neversleep:r,"nex-agi":"https://assets.decocache.com/decocms/d2ada265-160d-4959-981d-e90210d71713/241570229.jpeg",nousresearch:"https://assets.decocache.com/decocms/496acb3d-9b5d-4759-b764-16c9ca7eb6b2/nousresearch.png",nvidia:"https://assets.decocache.com/decocms/ecca3238-fa79-4648-bb55-738f13a4293f/nvidia-7.svg",opengvlab:"https://assets.decocache.com/decocms/fb2d0c32-85f1-410a-87f4-9731dfafd248/images-(2).jpeg",openai:"https://assets.decocache.com/webdraw/15dc381c-23b4-4f6b-9ceb-9690f77a7cf5/openai.svg",openrouter:L,perplexity:"https://assets.decocache.com/decocms/3a134746-f370-4089-a3c9-fe545be0441c/images-(15).png","prime-intellect":r,qwen:"https://assets.decocache.com/decocms/ab94208c-4439-4aec-a06c-c51747120e43/Qwen_logo.svg.png",raifle:r,relace:"https://assets.decocache.com/decocms/c5dbae73-3ce0-40ca-8433-c38783fb13a9/Screenshot-2026-01-08-at-18.52.09.png",sao10k:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png","stepfun-ai":"https://assets.decocache.com/decocms/8892b883-4905-444e-b554-648565dc7fab/images-(16).png",switchpoint:"https://assets.decocache.com/decocms/0319d595-e0dd-4d8e-a0a3-b20ff4cbddcb/images-(4).jpeg",tencent:"https://assets.decocache.com/decocms/80f2f7bd-f9ea-4fcf-b89c-c58823a389ed/images-(3).jpeg",thedrummer:"https://assets.decocache.com/decocms/5c6c09fc-cf9d-43a1-a1c3-4a1ef367b824/images-(17).png",thudm:r,tngtech:"https://assets.decocache.com/decocms/5b5648ad-f858-4687-b67b-212cf186b62d/images-(7).png",undi95:r,xiaomi:"https://assets.decocache.com/decocms/2d7191b7-fc80-4867-a431-6d443d691cfc/images-(4).png","x-ai":"https://assets.decocache.com/webdraw/7a8003ff-8f2d-4988-8693-3feb20e87eca/xai.svg","z-ai":"https://assets.decocache.com/decocms/12a0877f-c978-4880-88d1-09097e606e2f/Z.ai_(company_logo).svg.png"};export{r as D,I as P,A as a,q as b,D as c,j as g,C as u};
1
+ import{c as b,u as h,v as P,K as g}from"./index-DJtnEPc7.js";import{u as w}from"./useQuery-DLey6Pvf.js";import{a as u,u as _}from"./constants-4hZfe-FX.js";function A(){const c=b.c(9),{locator:e,org:i}=h();let o;c[0]!==i.id?(o={connectionId:u,orgId:i.id},c[0]=i.id,c[1]=o):o=c[1];const d=_(o);let a;c[2]!==e?(a=g.aiProviders(e),c[2]=e,c[3]=a):a=c[3];let s;c[4]!==d?(s=async()=>(await d.callTool({name:"AI_PROVIDERS_LIST",arguments:{}})).structuredContent,c[4]=d,c[5]=s):s=c[5];let t;c[6]!==a||c[7]!==s?(t={queryKey:a,staleTime:1/0,queryFn:s},c[6]=a,c[7]=s,c[8]=t):t=c[8];const{data:n}=P(t);return n}function q(){const c=b.c(11),{locator:e,org:i}=h();let o;c[0]!==i.id?(o={connectionId:u,orgId:i.id},c[0]=i.id,c[1]=o):o=c[1];const d=_(o);let a;c[2]!==e?(a=g.aiProviderKeys(e),c[2]=e,c[3]=a):a=c[3];let s;c[4]!==d?(s=async()=>(await d.callTool({name:"AI_PROVIDER_KEY_LIST",arguments:{}})).structuredContent??null,c[4]=d,c[5]=s):s=c[5];let t;c[6]!==a||c[7]!==s?(t={queryKey:a,staleTime:6e4,queryFn:s},c[6]=a,c[7]=s,c[8]=t):t=c[8];const{data:n}=P(t);let m;return c[9]!==n?.keys?(m=n?.keys??[],c[9]=n?.keys,c[10]=m):m=c[10],m}function C(c){const e=b.c(17),{locator:i,org:o}=h();let d;e[0]!==o.id?(d={connectionId:u,orgId:o.id},e[0]=o.id,e[1]=d):d=e[1];const a=_(d);let s;e[2]!==c||e[3]!==i?(s=g.aiProviderModels(i,c??""),e[2]=c,e[3]=i,e[4]=s):s=e[4];const t=!!c;let n;e[5]!==a||e[6]!==c?(n=async()=>(await a.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:c}})).structuredContent??null,e[5]=a,e[6]=c,e[7]=n):n=e[7];let m;e[8]!==s||e[9]!==t||e[10]!==n?(m={queryKey:s,enabled:t,staleTime:6e4,queryFn:n},e[8]=s,e[9]=t,e[10]=n,e[11]=m):m=e[11];const{data:f,isLoading:y}=w(m);let l;e[12]!==f?.models?(l=f?.models??[],e[12]=f?.models,e[13]=l):l=e[13];const v=!!c&&y;let p;return e[14]!==l||e[15]!==v?(p={models:l,isLoading:v},e[14]=l,e[15]=v,e[16]=p):p=e[16],p}function D(c){const e=b.c(13),{locator:i,org:o}=h();let d;e[0]!==o.id?(d={connectionId:u,orgId:o.id},e[0]=o.id,e[1]=d):d=e[1];const a=_(d);let s;e[2]!==c||e[3]!==i?(s=g.aiProviderModels(i,c),e[2]=c,e[3]=i,e[4]=s):s=e[4];let t;e[5]!==a||e[6]!==c?(t=async()=>(await a.callTool({name:"AI_PROVIDERS_LIST_MODELS",arguments:{keyId:c}})).structuredContent??null,e[5]=a,e[6]=c,e[7]=t):t=e[7];let n;e[8]!==s||e[9]!==t?(n={queryKey:s,staleTime:6e4,queryFn:t},e[8]=s,e[9]=t,e[10]=n):n=e[10];const{data:m}=P(n);let f;return e[11]!==m?.models?(f=m?.models??[],e[11]=m?.models,e[12]=f):f=e[12],f}const r="https://assets.decocache.com/decocms/bc2ca488-2bae-4aac-8d3e-ead262dad764/agent.png",L="https://assets.decocache.com/decocms/b2e2f64f-6025-45f7-9e8c-3b3ebdd073d8/openrouter_logojpg.jpg",S="https://assets.decocache.com/decocms/4fa4f3ed-1bf3-4e5a-8d05-4f3787df5966/anthropic-icon-tdvkiqisswbrmtkiygb0ia.webp";function j(c){const e=c.modelId.includes("/")?c.modelId.split("/")[0]:null;return e&&I[e]||I[c.providerId]||r}const I={"aion-labs":"https://assets.decocache.com/decocms/6da18da8-0160-4b85-8bca-84eefffebe12/images-(6).png",ai21:"https://assets.decocache.com/decocms/5d8388e9-027b-4b23-b816-90cee1cd28ad/images-(5).png",alfredpros:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",alibaba:"https://assets.decocache.com/decocms/4d113b13-5412-4d3b-96ec-3c2e7c1f7a5f/images-(8).png",allenai:"https://assets.decocache.com/decocms/21d6071a-e0da-4919-9f35-902b1d0b85b8/allen.png",alpindale:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",amazon:"https://assets.decocache.com/decocms/31e7b260-6cf0-4753-bb32-bd062b15c5f1/Amazon_icon.png",anthropic:S,"anthracite-org":r,"arcee-ai":"https://assets.decocache.com/decocms/ee325839-6acc-48dc-8cf7-8bab74698015/126496414.png",baidu:"https://assets.decocache.com/decocms/cf4c19f1-39b5-499e-87b7-e16dc5da2b50/images-(9).png",bytedance:"https://assets.decocache.com/decocms/1c111a26-8e1d-4a48-9d3c-fe9fb728af06/images-(18).png","bytedance-seed":"https://assets.decocache.com/decocms/1c111a26-8e1d-4a48-9d3c-fe9fb728af06/images-(18).png",cognitivecomputations:r,cohere:"https://assets.decocache.com/decocms/c942091b-b3bf-4c46-af37-fc2c1086d9f7/cohere-color.png",deepcogito:"https://assets.decocache.com/decocms/4ee77a8f-a36a-4933-8cdf-d2e8676b88d8/images-(13).png",deepseek:"https://assets.decocache.com/decocms/3611e8ac-4cad-4b0e-a1f8-8f791288ce03/images-(1).png",eleutherai:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png",essentialai:"https://assets.decocache.com/decocms/c5afc6de-1e41-457e-a6dd-91810d92541e/images-(1).jpeg",google:"https://assets.decocache.com/webdraw/17df85af-1578-42ef-ae07-4300de0d1723/gemini.svg",gryphe:"https://assets.decocache.com/decocms/a5503d3b-2056-47f2-a76c-611b7416bdc8/6798c7dccaaadd0a1318d66a_66f41d1fd146c3b0b9c76453_gryphe-logo.webp","ibm-granite":"https://assets.decocache.com/decocms/2c50018d-6f70-472d-be30-65a5e8e249f0/images-(10).png",inflection:r,inception:"https://assets.decocache.com/decocms/ff9822b8-a914-482b-bd7d-b0e46b9d5a56/images-(6).jpeg",kwaipilot:"https://assets.decocache.com/decocms/cd576e1d-1184-45ba-8162-cf2bd06d684f/images-(14).png",liquid:r,mancer:"https://assets.decocache.com/decocms/79762356-a0c5-4546-b268-ad4a0b51db51/Screenshot-2026-01-08-at-18.49.42.png",meituan:r,"meta-llama":"https://assets.decocache.com/decocms/56421cb3-488c-4cc3-83a5-16d9a303850e/images-(11).png",microsoft:"https://assets.decocache.com/decocms/0e352a51-4ea5-4f35-802e-fd82bf266683/images-(12).png",minimax:"https://assets.decocache.com/decocms/f362cc4f-7ccc-4317-afda-92e6f348fdfd/images-(2).png",mistralai:"https://assets.decocache.com/decocms/73ab9971-bbbc-40dc-99a3-5fddd9a0f340/images-(3).png",morph:r,moonshotai:"https://assets.decocache.com/decocms/b8abfea7-e8b4-4b72-b653-fdf11c9e3b66/moonshot.png",neversleep:r,"nex-agi":"https://assets.decocache.com/decocms/d2ada265-160d-4959-981d-e90210d71713/241570229.jpeg",nousresearch:"https://assets.decocache.com/decocms/496acb3d-9b5d-4759-b764-16c9ca7eb6b2/nousresearch.png",nvidia:"https://assets.decocache.com/decocms/ecca3238-fa79-4648-bb55-738f13a4293f/nvidia-7.svg",opengvlab:"https://assets.decocache.com/decocms/fb2d0c32-85f1-410a-87f4-9731dfafd248/images-(2).jpeg",openai:"https://assets.decocache.com/webdraw/15dc381c-23b4-4f6b-9ceb-9690f77a7cf5/openai.svg",openrouter:L,perplexity:"https://assets.decocache.com/decocms/3a134746-f370-4089-a3c9-fe545be0441c/images-(15).png","prime-intellect":r,qwen:"https://assets.decocache.com/decocms/ab94208c-4439-4aec-a06c-c51747120e43/Qwen_logo.svg.png",raifle:r,relace:"https://assets.decocache.com/decocms/c5dbae73-3ce0-40ca-8433-c38783fb13a9/Screenshot-2026-01-08-at-18.52.09.png",sao10k:"https://assets.decocache.com/decocms/76eaa620-ce73-43d6-8817-272c1d498b53/images-(19).png","stepfun-ai":"https://assets.decocache.com/decocms/8892b883-4905-444e-b554-648565dc7fab/images-(16).png",switchpoint:"https://assets.decocache.com/decocms/0319d595-e0dd-4d8e-a0a3-b20ff4cbddcb/images-(4).jpeg",tencent:"https://assets.decocache.com/decocms/80f2f7bd-f9ea-4fcf-b89c-c58823a389ed/images-(3).jpeg",thedrummer:"https://assets.decocache.com/decocms/5c6c09fc-cf9d-43a1-a1c3-4a1ef367b824/images-(17).png",thudm:r,tngtech:"https://assets.decocache.com/decocms/5b5648ad-f858-4687-b67b-212cf186b62d/images-(7).png",undi95:r,xiaomi:"https://assets.decocache.com/decocms/2d7191b7-fc80-4867-a431-6d443d691cfc/images-(4).png","x-ai":"https://assets.decocache.com/webdraw/7a8003ff-8f2d-4988-8693-3feb20e87eca/xai.svg","z-ai":"https://assets.decocache.com/decocms/12a0877f-c978-4880-88d1-09097e606e2f/Z.ai_(company_logo).svg.png"};export{r as D,I as P,A as a,q as b,D as c,j as g,C as u};
@@ -1,4 +1,4 @@
1
- import{j as r,R as w,r as n,ac as m,be as O,z as M,a9 as I,T as z,D as F,G as A,bf as D,F as G,b5 as L,aa as H,a0 as k,H as V,c as i,y as p,bg as v}from"./index-SkQC2bL2.js";var x="AlertDialog",[W]=H(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(w,{...a,...t,modal:!0})};N.displayName=x;var Y="AlertDialogTrigger",y=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});y.displayName=Y;var q="AlertDialogPortal",j=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(G,{...a,...t})};j.displayName=q;var B="AlertDialogOverlay",_=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(V,{...o,...a,ref:e})});_.displayName=B;var g="AlertDialogContent",[J,K]=W(g),Q=L("AlertDialogContent"),b=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=n.useRef(null),P=m(e,c),u=n.useRef(null);return r.jsx(O,{contentName:g,titleName:h,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(M,{role:"alertdialog",...s,...o,ref:P,onOpenAutoFocus:I(o.onOpenAutoFocus,f=>{f.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});b.displayName=g;var h="AlertDialogTitle",R=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});R.displayName=h;var $="AlertDialogDescription",E=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(F,{...o,...a,ref:e})});E.displayName=$;var U="AlertDialogAction",C=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=U;var S="AlertDialogCancel",T=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K(S,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});T.displayName=S;var X=({contentRef:l})=>{const e=`\`${g}\` requires a description for the component to be accessible for screen reader users.
1
+ import{j as r,R as w,r as n,ac as m,be as O,z as M,a9 as I,T as z,D as F,G as A,bf as D,F as G,b5 as L,aa as H,a0 as k,H as V,c as i,y as p,bg as v}from"./index-DJtnEPc7.js";var x="AlertDialog",[W]=H(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(w,{...a,...t,modal:!0})};N.displayName=x;var Y="AlertDialogTrigger",y=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});y.displayName=Y;var q="AlertDialogPortal",j=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(G,{...a,...t})};j.displayName=q;var B="AlertDialogOverlay",_=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(V,{...o,...a,ref:e})});_.displayName=B;var g="AlertDialogContent",[J,K]=W(g),Q=L("AlertDialogContent"),b=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=n.useRef(null),P=m(e,c),u=n.useRef(null);return r.jsx(O,{contentName:g,titleName:h,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(M,{role:"alertdialog",...s,...o,ref:P,onOpenAutoFocus:I(o.onOpenAutoFocus,f=>{f.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:f=>f.preventDefault(),onInteractOutside:f=>f.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});b.displayName=g;var h="AlertDialogTitle",R=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});R.displayName=h;var $="AlertDialogDescription",E=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(F,{...o,...a,ref:e})});E.displayName=$;var U="AlertDialogAction",C=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});C.displayName=U;var S="AlertDialogCancel",T=n.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K(S,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});T.displayName=S;var X=({contentRef:l})=>{const e=`\`${g}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${g}\` by passing a \`${$}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
@@ -1 +1 @@
1
- import{c as l,g as m,j as t,A as f,S as h,k as x,l as r,m as p,N as u}from"./index-SkQC2bL2.js";function d(){const e=l.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function g(){const e=l.c(6);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=m(a);if(n==="accept-invitation"){let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(f,{children:t.jsx(h,{})}),e[1]=c):c=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(x,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:"accept-invitation"})})}),e[2]=i):i=e[2];let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs(t.Fragment,{children:[c,i,t.jsx(p,{children:t.jsx(d,{})})]}),e[3]=o):o=e[3],o}let s;return e[4]!==n?(s=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:n})}),e[4]=n,e[5]=s):s=e[5],s}export{g as default};
1
+ import{c as l,g as m,j as t,A as f,S as h,k as x,l as r,m as p,N as u}from"./index-DJtnEPc7.js";function d(){const e=l.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(u,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function g(){const e=l.c(6);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=m(a);if(n==="accept-invitation"){let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(f,{children:t.jsx(h,{})}),e[1]=c):c=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(x,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:"accept-invitation"})})}),e[2]=i):i=e[2];let o;return e[3]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs(t.Fragment,{children:[c,i,t.jsx(p,{children:t.jsx(d,{})})]}),e[3]=o):o=e[3],o}let s;return e[4]!==n?(s=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(r,{pathname:n})}),e[4]=n,e[5]=s):s=e[5],s}export{g as default};