@decocms/mesh 2.71.1 → 2.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/dist/client/assets/{AlertCircle-3QR0y8W6.js → AlertCircle-CHm1uTvc.js} +1 -1
  2. package/dist/client/assets/{ArrowUp-BodxzbKG.js → ArrowUp-CsvTcSKO.js} +1 -1
  3. package/dist/client/assets/{Calendar-DGYs9p01.js → Calendar-RaRlGUMn.js} +1 -1
  4. package/dist/client/assets/{Check-DKxLmorI.js → Check-CTaDpFbx.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-DnCsS3JZ.js → CheckCircle-BUL08lD-.js} +1 -1
  6. package/dist/client/assets/{CheckDone01--TgQ6PuW.js → CheckDone01-C9iBTpWu.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-D4GxGIq8.js → ChevronDown-BmbIYWgz.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-c9zV8moh.js → ChevronRight-C7PRdwhN.js} +1 -1
  9. package/dist/client/assets/{Code01--g0L9RTm.js → Code01-BHb1dfFm.js} +1 -1
  10. package/dist/client/assets/{Copy01-BA-Ix-Mb.js → Copy01-BHrubS15.js} +1 -1
  11. package/dist/client/assets/{DotsHorizontal-DGECYgiW.js → DotsHorizontal-BKEGXeRq.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-dEZsGaNC.js → DotsVertical-6bV4Jb02.js} +1 -1
  13. package/dist/client/assets/{Download01-D8K-ex_X.js → Download01-DCCcXkST.js} +1 -1
  14. package/dist/client/assets/{Edit01-CmR87Abc.js → Edit01-Ck6L4sn5.js} +1 -1
  15. package/dist/client/assets/{File02-DQyurYit.js → File02-Bdk2SiT1.js} +1 -1
  16. package/dist/client/assets/{File06-BVRF7sU6.js → File06-g3-IRgq5.js} +1 -1
  17. package/dist/client/assets/{FilterLines-CU5-9_eJ.js → FilterLines-CZJIfYWV.js} +1 -1
  18. package/dist/client/assets/{Globe02-kD5VSMhM.js → Globe02-nY9R9qg_.js} +1 -1
  19. package/dist/client/assets/{Grid01-1H_5bBEp.js → Grid01-CzUkHZSJ.js} +1 -1
  20. package/dist/client/assets/{Home02-CmimZ8ry.js → Home02-D9mVq7KP.js} +1 -1
  21. package/dist/client/assets/{Image01-DvVQGg3o.js → Image01-C213KIPf.js} +1 -1
  22. package/dist/client/assets/{Inbox01-DaZjvBHq.js → Inbox01-CXr_wpYC.js} +1 -1
  23. package/dist/client/assets/{InfoCircle-D88W6aZv.js → InfoCircle-DEUMb_Ke.js} +1 -1
  24. package/dist/client/assets/{LinkExternal01-BG70TvGv.js → LinkExternal01-CmQ2HPM6.js} +1 -1
  25. package/dist/client/assets/{List-3m_qAkQw.js → List-hntTIiNx.js} +1 -1
  26. package/dist/client/assets/{Loading01-OQLi83Gk.js → Loading01-B78uc8_j.js} +1 -1
  27. package/dist/client/assets/{Lock01-CFroRX-P.js → Lock01-rY0GklCm.js} +1 -1
  28. package/dist/client/assets/{Pin01-BtF71mI4.js → Pin01-B6bFgA7L.js} +1 -1
  29. package/dist/client/assets/{Play-n3p2AwCc.js → Play-CMxteKat.js} +1 -1
  30. package/dist/client/assets/{Plus-CamZ25HZ.js → Plus-B1DSIk_Y.js} +1 -1
  31. package/dist/client/assets/{SearchMd-CMsT_ewj.js → SearchMd-rxhL9uWW.js} +1 -1
  32. package/dist/client/assets/{Settings01-DLRo_g5I.js → Settings01-BBpmfPia.js} +1 -1
  33. package/dist/client/assets/{Share07-DBSgibs_.js → Share07-DNr4Gv0F.js} +1 -1
  34. package/dist/client/assets/{Terminal-goRyLnyD.js → Terminal-CvqFIFfF.js} +1 -1
  35. package/dist/client/assets/{Tool01-C4uY_h3W.js → Tool01-BWEJZQCA.js} +1 -1
  36. package/dist/client/assets/{Trash01-DoayzMxM.js → Trash01-CNJdNb2Z.js} +1 -1
  37. package/dist/client/assets/{Upload01-CMe4EY2M.js → Upload01-CtypJgSZ.js} +1 -1
  38. package/dist/client/assets/{Users03-CPa8wyG0.js → Users03-B_SbeQBk.js} +1 -1
  39. package/dist/client/assets/{X-DjzWAzfl.js → X-mZzFkOTX.js} +1 -1
  40. package/dist/client/assets/{XClose-CsbmAiAF.js → XClose-BwAC8sFB.js} +1 -1
  41. package/dist/client/assets/{agent-connections-preview-CvK0lrw7.js → agent-connections-preview-DieWCUjN.js} +1 -1
  42. package/dist/client/assets/agent-detail-CViIjBwu.js +1 -0
  43. package/dist/client/assets/{agents-DcV0PAPt.js → agents-CyHP3pcb.js} +1 -1
  44. package/dist/client/assets/{alert-dialog-DvhR6MYa.js → alert-dialog-BN06wH-l.js} +1 -1
  45. package/dist/client/assets/{auth-catchall-BULd9dc-.js → auth-catchall-DXrXBOXl.js} +1 -1
  46. package/dist/client/assets/{avatar-BeOUM-c3.js → avatar-2G5ouaDu.js} +1 -1
  47. package/dist/client/assets/{badge-CAqp4wuS.js → badge-tOUVTd9z.js} +1 -1
  48. package/dist/client/assets/{binder-Dl_fdkAq.js → binder-CbgCr5Rm.js} +1 -1
  49. package/dist/client/assets/{breadcrumb-BPTkT5qZ.js → breadcrumb-JfdGMaRd.js} +1 -1
  50. package/dist/client/assets/{button-D5ZVigg9.js → button-BKtq_PYU.js} +1 -1
  51. package/dist/client/assets/{card-SJC2htmM.js → card-C0u1Pmkw.js} +1 -1
  52. package/dist/client/assets/{checkbox-DOqdhbrT.js → checkbox-DmCTNQLX.js} +1 -1
  53. package/dist/client/assets/{circle-alert-DALZt6Ia.js → circle-alert-BNmG-8Wh.js} +1 -1
  54. package/dist/client/assets/collection-detail-CGH1Knd0.js +26 -0
  55. package/dist/client/assets/{collection-search-CmrOSxkd.js → collection-search-MQc1JOFA.js} +1 -1
  56. package/dist/client/assets/{collection-tab-DcWi6-VM.js → collection-tab-qHWWI3bH.js} +1 -1
  57. package/dist/client/assets/{collection-table-wrapper-vBjYl8bL.js → collection-table-wrapper-L4Z0dyO1.js} +1 -1
  58. package/dist/client/assets/{collection-tabs-CiJEhlnO.js → collection-tabs-CyRXUdkR.js} +1 -1
  59. package/dist/client/assets/{command-C5xFKb_5.js → command-Bqwb_7NQ.js} +1 -1
  60. package/dist/client/assets/{connect-ChjgF-sA.js → connect-D30M34Bx.js} +1 -1
  61. package/dist/client/assets/{connection-card-D2tP3_Yy.js → connection-card-CMQL70VR.js} +1 -1
  62. package/dist/client/assets/connection-detail-CQNN_rRv.js +1 -0
  63. package/dist/client/assets/{connections-tqhW_7Rc.js → connections-B7K4OdQw.js} +1 -1
  64. package/dist/client/assets/constants-DIAAKB_c.js +1 -0
  65. package/dist/client/assets/{constants-BUYb8__-.js → constants-PBHJ4h9F.js} +1 -1
  66. package/dist/client/assets/{create-organization-dialog-XeEeOZAr.js → create-organization-dialog-BOgbyqMq.js} +1 -1
  67. package/dist/client/assets/{create-project-dialog-C_x3oW1v.js → create-project-dialog-BxxiVX3V.js} +1 -1
  68. package/dist/client/assets/{dialog-Cfe0BARl.js → dialog-B8Jtq_Yp.js} +1 -1
  69. package/dist/client/assets/{dropdown-menu-XJuOVNha.js → dropdown-menu-C6Z4raJE.js} +1 -1
  70. package/dist/client/assets/{dynamic-plugin-layout-BoZB1FB7.js → dynamic-plugin-layout-CDgkhjuC.js} +1 -1
  71. package/dist/client/assets/{empty-state-Clfhj5oY.js → empty-state-B8XrD0Ub.js} +1 -1
  72. package/dist/client/assets/{empty-state-DbaNRAmj.js → empty-state-BXisfxVt.js} +1 -1
  73. package/dist/client/assets/{env-vars-editor-B_Tiymrw.js → env-vars-editor-8a4L674b.js} +1 -1
  74. package/dist/client/assets/{error-boundary-poUsbtfm.js → error-boundary-D9qG4zZt.js} +1 -1
  75. package/dist/client/assets/{estree-BOE5AzoZ.js → estree-CwOGYdhi.js} +2 -2
  76. package/dist/client/assets/{extract-connection-data-C36Hgi4g.js → extract-connection-data-CCyj_Y1X.js} +1 -1
  77. package/dist/client/assets/{file-browser-BfBDhEcz.js → file-browser-DInIgvl2.js} +2 -2
  78. package/dist/client/assets/{form-9-Pb579i.js → form-DQap4sDh.js} +1 -1
  79. package/dist/client/assets/{grid-view-CUc2gxvk.js → grid-view-BKnSWUuB.js} +1 -1
  80. package/dist/client/assets/{home-HnU6LY8q.js → home-DvvANWHB.js} +1 -1
  81. package/dist/client/assets/index--tmJoUux.js +25 -0
  82. package/dist/client/assets/{index-CasvHInh.js → index-BMXxQz0A.js} +1 -1
  83. package/dist/client/assets/{index-BuoWGjhI.js → index-C76QOf8q.js} +1 -1
  84. package/dist/client/assets/{index-D-FZcOMC.js → index-CCcWAtA_.js} +6 -6
  85. package/dist/client/assets/{index-C6nYoI1C.css → index-CP_rYaE5.css} +1 -1
  86. package/dist/client/assets/{index-BPTl2xOh.js → index-D12lWWsR.js} +1 -1
  87. package/dist/client/assets/index-D5w8F0R7.js +1 -0
  88. package/dist/client/assets/{index-DcojMUwg.js → index-DFZdUy6e.js} +1 -1
  89. package/dist/client/assets/{index-BwOTcL_8.js → index-UwBLOz8J.js} +2 -2
  90. package/dist/client/assets/{index-DOa9Uc_j.js → index-sFvIWgLs.js} +1 -1
  91. package/dist/client/assets/{infiniteQueryObserver-cPntdNLH.js → infiniteQueryObserver-BdhSYRBe.js} +1 -1
  92. package/dist/client/assets/{input-CLb5DS9b.js → input-Dh6Cjukb.js} +1 -1
  93. package/dist/client/assets/{integration-icon-Bf2CRysj.js → integration-icon-Biu6JpM0.js} +1 -1
  94. package/dist/client/assets/{layout-BP7942c0.js → layout-DWXfRazY.js} +1 -1
  95. package/dist/client/assets/{localstorage-keys-CiWIgky1.js → localstorage-keys-BWsOCDUX.js} +1 -1
  96. package/dist/client/assets/{login-FiEBi4Or.js → login-DoPkmmdP.js} +1 -1
  97. package/dist/client/assets/{mcp-oauth-B9GgDKSF.js → mcp-oauth-BQMyy4a5.js} +1 -1
  98. package/dist/client/assets/{mcp-server-card-CFUMmBRv.js → mcp-server-card-DxnHyWDy.js} +1 -1
  99. package/dist/client/assets/{mcp-server-detail-BZppJ46W.js → mcp-server-detail-BzBDrjZ5.js} +2 -2
  100. package/dist/client/assets/members-pjR_l8r-.js +3 -0
  101. package/dist/client/assets/{monaco-editor-DTJpuLmN.js → monaco-editor-XyXN2SEV.js} +2 -2
  102. package/dist/client/assets/{monitoring-CtjMBXjP.js → monitoring-BiXkhP0l.js} +3 -3
  103. package/dist/client/assets/{oauth-callback-B-K60EP0.js → oauth-callback-COK_3Woz.js} +1 -1
  104. package/dist/client/assets/{page-CPMOFPIV.js → page-Ca4TsO7U.js} +1 -1
  105. package/dist/client/assets/page-zhioOXqc.js +1 -0
  106. package/dist/client/assets/{plugin-empty-state-CYA7cl1b.js → plugin-empty-state-BWDzgwMT.js} +1 -1
  107. package/dist/client/assets/{plugin-header-DEroTZAh.js → plugin-header-Dm-T5OvY.js} +1 -1
  108. package/dist/client/assets/{popover-Cg1hAh9E.js → popover-Bn1QrYWJ.js} +1 -1
  109. package/dist/client/assets/{project-layout-DvvoQRcD.js → project-layout-DQQxPJ7M.js} +1 -1
  110. package/dist/client/assets/{project-settings-BDNCo4Mf.js → project-settings-Bq572DKS.js} +1 -1
  111. package/dist/client/assets/{projects-list-BJVOz5Jy.js → projects-list-D2y67tOl.js} +1 -1
  112. package/dist/client/assets/{registry-utils-DVSRHBf5.js → registry-utils-eTnhYK1Z.js} +1 -1
  113. package/dist/client/assets/{resizable-jofggeTS.js → resizable-Cth4qfOJ.js} +1 -1
  114. package/dist/client/assets/{select-DANNPdpC.js → select-CJ01X7RE.js} +1 -1
  115. package/dist/client/assets/{shell-layout-BCh3pu-1.js → shell-layout-Dmklwlc_.js} +2 -2
  116. package/dist/client/assets/{spinner-CJ9nslDm.js → spinner-CoIaSc2j.js} +1 -1
  117. package/dist/client/assets/{store-invite-Drr4aCfi.js → store-invite-CM-bUgIj.js} +1 -1
  118. package/dist/client/assets/{switch-DtIJc9SJ.js → switch-TZYuSAHJ.js} +1 -1
  119. package/dist/client/assets/{table-DjucqeVe.js → table-B7Ue2bk2.js} +1 -1
  120. package/dist/client/assets/{tasks-Bj_6qkxT.js → tasks-DvdoE4Ok.js} +1 -1
  121. package/dist/client/assets/{textarea-DQgI4KTD.js → textarea-D6y1LKj_.js} +1 -1
  122. package/dist/client/assets/{tools-list-C3zbRtxa.js → tools-list-fxJEZlSp.js} +1 -1
  123. package/dist/client/assets/{typewriter-title-BINp1X1h.js → typewriter-title-DR6tdNBL.js} +1 -1
  124. package/dist/client/assets/{use-binding-DYiJkibE.js → use-binding-ucSDtQ56.js} +1 -1
  125. package/dist/client/assets/{use-connection-DR5puEok.js → use-connection-BCPygOxC.js} +1 -1
  126. package/dist/client/assets/{use-create-virtual-mcp-ZYI04Bzi.js → use-create-virtual-mcp-u-AAtHmy.js} +1 -1
  127. package/dist/client/assets/use-deco-chat-open-DsNk3kZu.js +23 -0
  128. package/dist/client/assets/{use-install-from-registry-BjqK8J4_.js → use-install-from-registry-f8JxKFFW.js} +1 -1
  129. package/dist/client/assets/{use-list-state-Df5_sU1e.js → use-list-state-oNgAMbdK.js} +1 -1
  130. package/dist/client/assets/use-llm-Lxpo1ior.js +1 -0
  131. package/dist/client/assets/{use-mcp-prompts-BJj4NSvO.js → use-mcp-prompts-WwyO9-Nk.js} +1 -1
  132. package/dist/client/assets/{use-mcp-tools-iPkyEuZS.js → use-mcp-tools-eSLltC3i.js} +1 -1
  133. package/dist/client/assets/{use-mobile-CeOBxwLv.js → use-mobile-BUK8Wer1.js} +1 -1
  134. package/dist/client/assets/{use-organization-settings-Cujgjctm.js → use-organization-settings-BR3GSp3x.js} +1 -1
  135. package/dist/client/assets/{use-project-CxlPVRgR.js → use-project-DLsFLh3O.js} +1 -1
  136. package/dist/client/assets/{use-virtual-mcp-Cygajn0x.js → use-virtual-mcp-ByfXJ3SB.js} +1 -1
  137. package/dist/client/assets/useInfiniteQuery-BcqgMbS1.js +1 -0
  138. package/dist/client/assets/{useMutation-BKI7PbLi.js → useMutation-Cn2d2ilG.js} +1 -1
  139. package/dist/client/assets/useQuery-Dp4Sp9Q1.js +1 -0
  140. package/dist/client/assets/utils-CnoQZeDK.js +1 -0
  141. package/dist/client/assets/{view-mode-toggle-ShDby2Um.js → view-mode-toggle-BJkt6e92.js} +1 -1
  142. package/dist/client/assets/{workflow-DYTiP3gR.js → workflow-BP45xRRH.js} +1 -1
  143. package/dist/client/index.html +2 -2
  144. package/dist/server/cli.js +163 -163
  145. package/dist/server/server.js +145 -145
  146. package/package.json +1 -1
  147. package/dist/client/assets/agent-detail-GC8VKbM-.js +0 -1
  148. package/dist/client/assets/collection-detail-DKzQTLe7.js +0 -26
  149. package/dist/client/assets/connection-detail-cZeO4ex7.js +0 -1
  150. package/dist/client/assets/constants-B1JboK54.js +0 -1
  151. package/dist/client/assets/index-CVO_V2RR.js +0 -1
  152. package/dist/client/assets/index-De7qBXeW.js +0 -25
  153. package/dist/client/assets/members-BIQng2xK.js +0 -3
  154. package/dist/client/assets/page-AjDU3MsS.js +0 -1
  155. package/dist/client/assets/use-deco-chat-open-BYfYydiq.js +0 -23
  156. package/dist/client/assets/useInfiniteQuery-Bx4qsvMB.js +0 -1
  157. package/dist/client/assets/useQuery-DT5IkV6j.js +0 -1
  158. package/dist/client/assets/utils-Ot-eblW7.js +0 -1
@@ -1 +0,0 @@
1
- import{r as q,c as W,j as t,m as Re,O as Se,aN as ct,u as at,bu as Ge,ad as Nt,p as yt,bt as ze,o as lt,ba as _t,bi as Ct,s as K,ae as Je,af as St,a as wt,f as Tt,v as kt,h as Pt,k as It,i as $t,t as Ce,K as Ye}from"./index-D-FZcOMC.js";import{E as ye}from"./empty-state-Clfhj5oY.js";import{E as dt}from"./error-boundary-poUsbtfm.js";import{E as At,r as Vt,e as mt}from"./env-vars-editor-B_Tiymrw.js";import{P as We,S as Mt}from"./index-BuoWGjhI.js";import{b as Dt,a as Ot}from"./use-binding-DYiJkibE.js";import{u as Et,S as Rt}from"./index-De7qBXeW.js";import{f as Xe,g as ut}from"./use-connection-DR5puEok.js";import{u as Lt}from"./constants-BUYb8__-.js";import{d as Ut}from"./use-mcp-tools-iPkyEuZS.js";import{b as Ft,d as Bt}from"./use-mcp-prompts-BJj4NSvO.js";import{a as zt}from"./mcp-oauth-B9GgDKSF.js";import{b as Ze,c as Wt,d as Xt,e as Kt,B as qt,a as Ht}from"./breadcrumb-BPTkT5qZ.js";import{B as Fe}from"./button-D5ZVigg9.js";import{C as Qt}from"./collection-tabs-CiJEhlnO.js";import{i as Ee}from"./Loading01-OQLi83Gk.js";import{V as Ke,a as Gt}from"./layout-BP7942c0.js";import{C as Jt}from"./collection-tab-DcWi6-VM.js";import{I as qe,n as Yt}from"./integration-icon-Bf2CRysj.js";import{B as Be}from"./badge-CAqp4wuS.js";import{D as Zt,a as es,b as ts,c as et}from"./dropdown-menu-XJuOVNha.js";import{F as J,a as ss,b as Y,d as H,f as Z,c as te,e as ns}from"./form-9-Pb579i.js";import{I as ee}from"./input-CLb5DS9b.js";import{S as tt,a as st,b as nt,c as ot,d as G}from"./select-DANNPdpC.js";import{i as pt}from"./CheckCircle-DnCsS3JZ.js";import{t as os}from"./ChevronDown-D4GxGIq8.js";import{s as Oe}from"./Globe02-kD5VSMhM.js";import{i as rs}from"./Terminal-goRyLnyD.js";import{s as is}from"./Trash01-DoayzMxM.js";import{t as He}from"./Users03-CPa8wyG0.js";import{s as cs}from"./XClose-CsbmAiAF.js";import{U as as}from"./use-list-state-Df5_sU1e.js";import{b as ls,a as ds}from"./use-virtual-mcp-Cygajn0x.js";import{i as ms}from"./ChevronRight-c9zV8moh.js";import{s as us}from"./Plus-CamZ25HZ.js";import{f as ps}from"./formatDistanceToNow-Cb2QZZJn.js";import{a as ft,C as xt}from"./collection-table-wrapper-vBjYl8bL.js";import{C as ht}from"./collection-search-CmrOSxkd.js";import{C as gt}from"./card-SJC2htmM.js";import{R as fs,T as xs}from"./tools-list-C3zbRtxa.js";import"./utils-Ot-eblW7.js";import"./Pin01-BtF71mI4.js";import"./use-organization-settings-Cujgjctm.js";import"./useMutation-BKI7PbLi.js";import"./binder-Dl_fdkAq.js";import"./File06-BVRF7sU6.js";import"./index-DOa9Uc_j.js";import"./constants-B1JboK54.js";import"./registry-utils-DVSRHBf5.js";import"./extract-connection-data-C36Hgi4g.js";import"./github-icon-Dp3wHhYE.js";import"./generate-id-Dyweu44Y.js";import"./use-install-from-registry-BjqK8J4_.js";import"./index-BPTl2xOh.js";import"./circle-alert-DALZt6Ia.js";import"./index-BwOTcL_8.js";import"./X-DjzWAzfl.js";import"./use-deco-chat-open-BYfYydiq.js";import"./Code01--g0L9RTm.js";import"./infiniteQueryObserver-cPntdNLH.js";import"./localstorage-keys-CiWIgky1.js";import"./useQuery-DT5IkV6j.js";import"./popover-Cg1hAh9E.js";import"./Grid01-1H_5bBEp.js";import"./Image01-DvVQGg3o.js";import"./SearchMd-CMsT_ewj.js";import"./spinner-CJ9nslDm.js";import"./dialog-Cfe0BARl.js";import"./AlertCircle-3QR0y8W6.js";import"./ArrowUp-BodxzbKG.js";import"./Edit01-CmR87Abc.js";import"./Check-DKxLmorI.js";import"./Copy01-BA-Ix-Mb.js";import"./monaco-editor-DTJpuLmN.js";import"./use-create-virtual-mcp-ZYI04Bzi.js";import"./index-CVO_V2RR.js";import"./DotsVertical-dEZsGaNC.js";import"./empty-state-DbaNRAmj.js";import"./Inbox01-DaZjvBHq.js";import"./alert-dialog-DvhR6MYa.js";import"./index-CasvHInh.js";import"./avatar-BeOUM-c3.js";import"./use-mobile-CeOBxwLv.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./List-3m_qAkQw.js";import"./view-mode-toggle-ShDby2Um.js";import"./table-DjucqeVe.js";const jt=({size:s=24,color:e="currentColor",...n})=>q.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},q.createElement("path",{d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"}));jt.displayName="RefreshCcw01";function hs(s){const e=W.c(13),{virtualMcp:n,org:o}=s;let r;e[0]!==o||e[1]!==n.id?(r={org:o,project:Se,agentId:n.id},e[0]=o,e[1]=n.id,e[2]=r):r=e[2];let c;e[3]!==n.icon||e[4]!==n.title?(c=n.icon?t.jsx("img",{src:n.icon,alt:n.title,className:"w-5 h-5 rounded-md object-cover shrink-0"}):t.jsx("div",{className:"w-8 h-8 rounded-md bg-primary/10 flex items-center justify-center shrink-0",children:t.jsx(He,{size:16,className:"text-primary"})}),e[3]=n.icon,e[4]=n.title,e[5]=c):c=e[5];let a;e[6]!==n.title?(a=t.jsx("span",{className:"flex-1 text-sm font-medium text-foreground truncate",children:n.title}),e[6]=n.title,e[7]=a):a=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(ms,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),e[8]=f):f=e[8];let u;return e[9]!==r||e[10]!==c||e[11]!==a?(u=t.jsxs(ct,{to:"/$org/$project/agents/$agentId",params:r,className:"flex items-center gap-3 p-2 pr-1 rounded-lg hover:bg-muted/50 transition-colors group",children:[c,a,f]}),e[9]=r,e[10]=c,e[11]=a,e[12]=u):u=e[12],u}function rt(s){const e=W.c(20),{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a,hasExistingVirtualMcps:f}=s,u=Re(),p=ds();let x;e[0]!==p.create||e[1]!==r||e[2]!==c||e[3]!==n||e[4]!==o||e[5]!==u||e[6]!==a?(x=async()=>{const d=await p.create.mutateAsync({title:`${o} Agent`,description:r??null,icon:c??null,status:"active",connections:[{connection_id:n,selected_tools:null,selected_resources:null,selected_prompts:null}]});u({to:"/$org/$project/agents/$agentId",params:{org:a,project:Se,agentId:d.id}})},e[0]=p.create,e[1]=r,e[2]=c,e[3]=n,e[4]=o,e[5]=u,e[6]=a,e[7]=x):x=e[7];const m=x;if(f){let d;e[8]!==p.create.isPending?(d=p.create.isPending?t.jsx(Ee,{size:16,className:"animate-spin"}):t.jsx(us,{size:16}),e[8]=p.create.isPending,e[9]=d):d=e[9];let l;return e[10]!==p.create.isPending||e[11]!==m||e[12]!==d?(l=t.jsx(Fe,{variant:"ghost",className:"size-6 p-0",onClick:m,disabled:p.create.isPending,children:d}),e[10]=p.create.isPending,e[11]=m,e[12]=d,e[13]=l):l=e[13],l}let i;e[14]!==p.create.isPending?(i=p.create.isPending?t.jsx(Ee,{className:"animate-spin text-muted-foreground"}):t.jsx(He,{className:"size-3 text-muted-foreground"}),e[14]=p.create.isPending,e[15]=i):i=e[15];let b;return e[16]!==p.create.isPending||e[17]!==m||e[18]!==i?(b=t.jsxs(Fe,{variant:"outline",size:"sm",onClick:m,disabled:p.create.isPending,children:[i,"Create an agent"]}),e[16]=p.create.isPending,e[17]=m,e[18]=i,e[19]=b):b=e[19],b}function gs(s){const e=W.c(26),{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a}=s;let f;e[0]!==n?(f={filters:[{column:"connection_id",value:n}]},e[0]=n,e[1]=f):f=e[1];const u=ls(f);if(!(u.length>0)){let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("h4",{className:"text-xs text-muted-foreground font-medium",children:"Use in your IDE"}),e[2]=l):l=e[2];let j;return e[3]!==r||e[4]!==c||e[5]!==n||e[6]!==o||e[7]!==a?(j=t.jsxs("div",{className:"p-5 flex items-center justify-between gap-3",children:[l,t.jsx(rt,{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a,hasExistingVirtualMcps:!1})]}),e[3]=r,e[4]=c,e[5]=n,e[6]=o,e[7]=a,e[8]=j):j=e[8],j}let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("h4",{className:"text-xs text-muted-foreground font-medium",children:"Agents"}),e[9]=x):x=e[9];let m;e[10]!==r||e[11]!==c||e[12]!==n||e[13]!==o||e[14]!==a?(m=t.jsx("div",{className:"flex flex-col gap-1",children:t.jsxs("div",{className:"flex items-center justify-between",children:[x,t.jsx(rt,{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a,hasExistingVirtualMcps:!0})]})}),e[10]=r,e[11]=c,e[12]=n,e[13]=o,e[14]=a,e[15]=m):m=e[15];let i;if(e[16]!==a||e[17]!==u){let l;e[19]!==a?(l=j=>t.jsx(hs,{virtualMcp:j,org:a},j.id),e[19]=a,e[20]=l):l=e[20],i=u.map(l),e[16]=a,e[17]=u,e[18]=i}else i=e[18];let b;e[21]!==i?(b=t.jsx("div",{className:"flex flex-col gap-2",children:i}),e[21]=i,e[22]=b):b=e[22];let d;return e[23]!==m||e[24]!==b?(d=t.jsxs("div",{className:"p-5 flex flex-col gap-3",children:[m,b]}),e[23]=m,e[24]=b,e[25]=d):d=e[25],d}function js({form:s,connection:e,hasOAuthToken:n,onReauthenticate:o,onRemoveOAuth:r}){const c=Ge({control:s.control,name:"ui_type"}),a=Ge({control:s.control,name:"connection_url"}),{stdioEnabled:f}=Nt(),u=(()=>{if(typeof a!="string"||!a)return!1;try{const i=new URL(a);return i.hostname==="api.githubcopilot.com"&&i.pathname.replace(/\/+$/,"")==="/mcp"}catch{return!1}})(),p=f||e.connection_type==="STDIO",x=e.connection_type==="VIRTUAL",m=x?yt(e.connection_url):null;return x?t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Type"}),t.jsxs("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:[t.jsx(He,{className:"w-4 h-4 text-muted-foreground"}),t.jsx("span",{className:"text-sm",children:"Virtual MCP"})]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"This connection references a Virtual MCP. Tools and resources are aggregated dynamically from the Virtual MCP's underlying connections."})]}),m&&t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Virtual MCP ID"}),t.jsx("div",{className:"flex items-center gap-2 h-10 px-3 border border-border rounded-lg bg-muted/50",children:t.jsx("code",{className:"text-sm text-muted-foreground",children:m})})]})]}):t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[t.jsx(J,{control:s.control,name:"ui_type",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Connection"}),c!=="NPX"&&c!=="STDIO"?t.jsxs("div",{className:"flex items-stretch rounded-lg border border-border overflow-hidden",children:[t.jsxs(tt,{value:i.value,onValueChange:i.onChange,children:[t.jsx(H,{children:t.jsxs(st,{className:"h-10 w-auto min-w-[90px] border-0 rounded-none bg-muted/50 focus:ring-0 focus:ring-offset-0",children:[t.jsx(Oe,{className:"w-4 h-4 text-muted-foreground shrink-0"}),t.jsx(nt,{})]})}),t.jsxs(ot,{children:[t.jsx(G,{value:"HTTP",children:"HTTP"}),t.jsx(G,{value:"SSE",children:"SSE"}),t.jsx(G,{value:"Websocket",children:"Websocket"}),p&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:"NPX Package"}),t.jsx(G,{value:"STDIO",children:"Custom Command"})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(J,{control:s.control,name:"connection_url",render:({field:b})=>t.jsx(Y,{className:"flex-1 min-w-0",children:t.jsx(H,{children:t.jsx(ee,{placeholder:"https://example.com/mcp",...b,value:b.value??"",className:"h-10 border-0 rounded-none focus-visible:ring-0 focus-visible:ring-offset-0 bg-transparent"})})})})]}):t.jsxs(tt,{value:i.value,onValueChange:i.onChange,children:[t.jsx(H,{children:t.jsx(st,{className:"h-10",children:t.jsx(nt,{})})}),t.jsxs(ot,{children:[t.jsx(G,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(G,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(G,{value:"Websocket",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"Websocket"]})}),p&&t.jsxs(t.Fragment,{children:[t.jsx(G,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Yt,{className:"w-4 h-4"}),"NPX Package"]})}),t.jsx(G,{value:"STDIO",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(rs,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),t.jsx(Z,{})]})}),c==="NPX"&&t.jsx(J,{control:s.control,name:"npx_package",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"NPM Package"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"@perplexity-ai/mcp-server",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx(Z,{})]})}),c==="STDIO"&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[t.jsx(J,{control:s.control,name:"stdio_command",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Command"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"node, bun, python...",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx(Z,{})]})}),t.jsx(J,{control:s.control,name:"stdio_args",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Arguments"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"arg1 arg2 --flag value",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Space-separated arguments"}),t.jsx(Z,{})]})})]}),t.jsx(J,{control:s.control,name:"stdio_cwd",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Working Directory"}),t.jsx(H,{children:t.jsx(ee,{placeholder:"/path/to/project (optional)",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx(Z,{})]})})]}),(c==="NPX"||c==="STDIO")&&t.jsx(J,{control:s.control,name:"env_vars",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Environment Variables"}),t.jsx(H,{children:t.jsx(At,{value:i.value??[],onChange:i.onChange})}),t.jsx(Z,{})]})}),c!=="NPX"&&c!=="STDIO"&&t.jsx(J,{control:s.control,name:"connection_token",render:({field:i})=>t.jsxs(Y,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:u?"GitHub Personal Access Token":"Token"}),n?t.jsx("div",{className:"flex items-center gap-2",children:t.jsxs(Zt,{children:[t.jsx(es,{asChild:!0,children:t.jsx("button",{type:"button",className:"inline-flex items-center gap-1.5 cursor-pointer",children:t.jsxs(Be,{variant:"success",className:"gap-1.5",children:[t.jsx(pt,{size:12}),"Authenticated via OAuth",t.jsx(os,{size:12})]})})}),t.jsxs(ts,{align:"start",children:[t.jsxs(et,{onClick:o,children:[t.jsx(jt,{size:16}),"Re-authenticate"]}),t.jsxs(et,{variant:"destructive",onClick:r,children:[t.jsx(is,{size:16}),"Remove OAuth"]})]})]})}):e.connection_token&&i.value===null?t.jsxs("div",{className:"relative group",children:[t.jsx("div",{className:"h-10 px-3 flex items-center rounded-lg border border-border bg-muted/50 text-muted-foreground font-mono text-sm",children:"••••••••••••••••"}),t.jsx("button",{type:"button",onClick:()=>i.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 p-1 rounded hover:bg-muted opacity-0 group-hover:opacity-100 transition-opacity",title:"Clear and replace token",children:t.jsx(cs,{size:14,className:"text-muted-foreground"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(H,{children:t.jsx(ee,{type:"password",placeholder:u?"Paste your GitHub PAT":"Enter access token...",...i,value:i.value||"",className:"h-10 rounded-lg"})}),u&&t.jsxs(ns,{children:["Create a PAT at"," ",t.jsx("a",{href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"github.com/settings/personal-access-tokens"})]})]}),t.jsx(Z,{})]})})]})}function bs(s){const e=W.c(43),{form:n,connection:o,isMCPAuthenticated:r,hasOAuthToken:c,onReauthenticate:a,onRemoveOAuth:f}=s,{org:u}=at();let p;e[0]!==o.icon||e[1]!==o.title?(p=t.jsx(qe,{icon:o.icon,name:o.title,size:"lg",className:"shadow-sm"}),e[0]=o.icon,e[1]=o.title,e[2]=p):p=e[2];let x;e[3]!==n.control?(x=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(J,{control:n.control,name:"title",render:Ns}),t.jsx(J,{control:n.control,name:"description",render:vs})]}),e[3]=n.control,e[4]=x):x=e[4];let m;e[5]!==p||e[6]!==x?(m=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[p,x]}),e[5]=p,e[6]=x,e[7]=m):m=e[7];let i;e[8]!==o||e[9]!==n||e[10]!==c||e[11]!==a||e[12]!==f?(i=t.jsx(js,{form:n,connection:o,hasOAuthToken:c,onReauthenticate:a,onRemoveOAuth:f}),e[8]=o,e[9]=n,e[10]=c,e[11]=a,e[12]=f,e[13]=i):i=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Status"}),e[14]=b):b=e[14];let d;e[15]!==r?(d=t.jsxs("div",{className:"flex items-center justify-between py-1.5",children:[b,r?t.jsxs(Be,{variant:"success",className:"gap-1.5 bg-success-foreground text-success",children:[t.jsx(pt,{size:12}),"Connected"]}):t.jsx(Be,{variant:"outline",className:"text-muted-foreground",children:"Not connected"})]}),e[15]=r,e[16]=d):d=e[16];let l;e[17]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Created by"}),e[17]=l):l=e[17];let j;e[18]!==o.created_by?(j=t.jsxs("div",{className:"flex items-center justify-between py-1.5",children:[l,t.jsx(as,{id:o.created_by,size:"2xs"})]}),e[18]=o.created_by,e[19]=j):j=e[19];let T;e[20]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("span",{className:"text-xs text-muted-foreground font-medium",children:"Updated"}),e[20]=T):T=e[20];let v;e[21]!==o.updated_at?(v=o.updated_at?ps(new Date(o.updated_at),{addSuffix:!0}):"Unknown",e[21]=o.updated_at,e[22]=v):v=e[22];let y;e[23]!==v?(y=t.jsxs("div",{className:"flex items-center justify-between py-1.5",children:[T,t.jsx("span",{className:"text-sm text-foreground",children:v})]}),e[23]=v,e[24]=y):y=e[24];let _;e[25]!==y||e[26]!==d||e[27]!==j?(_=t.jsxs("div",{className:"flex flex-col gap-2 p-5 border-b border-border",children:[d,j,y]}),e[25]=y,e[26]=d,e[27]=j,e[28]=_):_=e[28];let N;e[29]!==o.description||e[30]!==o.icon||e[31]!==o.id||e[32]!==o.title||e[33]!==u.slug?(N=t.jsx(gs,{connectionId:o.id,connectionTitle:o.title,connectionDescription:o.description,connectionIcon:o.icon,org:u.slug}),e[29]=o.description,e[30]=o.icon,e[31]=o.id,e[32]=o.title,e[33]=u.slug,e[34]=N):N=e[34];let h;e[35]!==_||e[36]!==N||e[37]!==m||e[38]!==i?(h=t.jsxs("div",{className:"flex flex-col h-full overflow-auto",children:[m,i,_,N]}),e[35]=_,e[36]=N,e[37]=m,e[38]=i,e[39]=h):h=e[39];let k;return e[40]!==n||e[41]!==h?(k=t.jsx(ss,{...n,children:h}),e[40]=n,e[41]=h,e[42]=k):k=e[42],k}function vs(s){const{field:e}=s;return t.jsxs(Y,{className:"w-full space-y-0",children:[t.jsx(H,{children:t.jsx(ee,{...e,value:e.value||"",className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-2 -mx-2 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})}),t.jsx(Z,{})]})}function Ns(s){const{field:e}=s;return t.jsxs(Y,{className:"flex-1 space-y-0",children:[t.jsx(H,{children:t.jsx(ee,{...e,className:"h-auto py-0.5 text-lg! font-medium leading-7 px-2 -mx-2 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Connection Name"})}),t.jsx(Z,{})]})}function ys(s){const e=W.c(42),{prompts:n,connectionId:o,org:r,connectionTitle:c,connectionIcon:a,onPromptClick:f,showToolbar:u,emptyMessage:p}=s,x=u===void 0?!0:u,m=p===void 0?"This connection doesn't have any prompts yet.":p,i=Re(),d=ze().location.href,[l,j]=q.useState(""),[T,v]=q.useState("table"),[y,_]=q.useState("name"),[N,h]=q.useState("asc");let k;e[0]!==N||e[1]!==y?(k=S=>{y===S?(h(Ts),N==="desc"&&_(void 0)):(_(S),h("asc"))},e[0]=N,e[1]=y,e[2]=k):k=e[2];const B=k;let $;e[3]!==o||e[4]!==i||e[5]!==f||e[6]!==r?($=S=>{f?f(S):o&&r&&i({to:"/$org/$project/mcps/$connectionId/$collectionName/$itemId",params:{org:r,project:Se,connectionId:o,collectionName:"prompts",itemId:encodeURIComponent(S.name)}})},e[3]=o,e[4]=i,e[5]=f,e[6]=r,e[7]=$):$=e[7];const M=$;let A;if(e[8]!==n||e[9]!==l||e[10]!==N||e[11]!==y){const S=!n||n.length===0?[]:l.trim()?(()=>{const Q=l.toLowerCase();return n.filter(X=>X.name.toLowerCase().includes(Q)||X.description&&X.description.toLowerCase().includes(Q))})():n;A=!y||!N?S:[...S].sort((Q,X)=>{const se=Q[y]||"",ne=X[y]||"",oe=String(se).localeCompare(String(ne));return N==="asc"?oe:-oe}),e[8]=n,e[9]=l,e[10]=N,e[11]=y,e[12]=A}else A=e[12];const I=A;let R;e[13]===Symbol.for("react.memo_cache_sentinel")?(R=[{id:"name",header:"Name",render:ws,sortable:!0},{id:"description",header:"Description",render:Ss,cellClassName:"flex-1",sortable:!0}],e[13]=R):R=e[13];const L=R;let C;e[14]===Symbol.for("react.memo_cache_sentinel")?(C=L.filter(Cs).map(_s),e[14]=C):C=e[14];const z=C;let P;e[15]!==a||e[16]!==c||e[17]!==B||e[18]!==x||e[19]!==N||e[20]!==y||e[21]!==d||e[22]!==T?(P=x&&t.jsxs(Ke,{children:[t.jsx(xt,{viewMode:T,onViewModeChange:v,sortKey:y,sortDirection:N,onSort:B,sortOptions:z}),t.jsx(We,{title:c?`${c}: Prompts`:"Prompts",url:d,icon:a??"description"})]}),e[15]=a,e[16]=c,e[17]=B,e[18]=x,e[19]=N,e[20]=y,e[21]=d,e[22]=T,e[23]=P):P=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=S=>{S.key==="Escape"&&(j(""),S.target.blur())},e[24]=D):D=e[24];let V;e[25]!==l?(V=t.jsx(ht,{value:l,onChange:j,placeholder:"Search prompts...",onKeyDown:D}),e[25]=l,e[26]=V):V=e[26];let g;e[27]!==m||e[28]!==M||e[29]!==B||e[30]!==l||e[31]!==N||e[32]!==y||e[33]!==I||e[34]!==T?(g=T==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:I.length===0?t.jsx(ye,{image:null,title:l?"No prompts found":"No prompts available",description:l?"Try adjusting your search terms":m}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:I.map(S=>t.jsx(gt,{className:"cursor-pointer transition-colors",onClick:()=>M(S),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(qe,{icon:null,name:S.name,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:S.name}),t.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:S.description||"No description"})]})]})},S.name))})}):t.jsx(ft,{columns:L,data:I,isLoading:!1,sortKey:y,sortDirection:N,onSort:B,onRowClick:S=>M(S),emptyState:t.jsx(ye,{image:null,title:l?"No prompts found":"No prompts available",description:l?"Try adjusting your search terms":m})}),e[27]=m,e[28]=M,e[29]=B,e[30]=l,e[31]=N,e[32]=y,e[33]=I,e[34]=T,e[35]=g):g=e[35];let F;e[36]!==V||e[37]!==g?(F=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[V,g]}),e[36]=V,e[37]=g,e[38]=F):F=e[38];let O;return e[39]!==F||e[40]!==P?(O=t.jsxs(t.Fragment,{children:[P,F]}),e[39]=F,e[40]=P,e[41]=O):O=e[41],O}function _s(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function Cs(s){return s.sortable}function Ss(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function ws(s){return t.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:s.name})}function Ts(s){return s==="asc"?"desc":s==="desc"?null:"asc"}function ks(s){const e=W.c(6),{prompts:n,connectionId:o,org:r}=s,c=Xe(o),a=c?.title,f=c?.icon;let u;return e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==a||e[4]!==f?(u=t.jsx(ys,{prompts:n,connectionId:o,org:r,connectionTitle:a,connectionIcon:f}),e[0]=o,e[1]=r,e[2]=n,e[3]=a,e[4]=f,e[5]=u):u=e[5],u}function Ps(s){const e=W.c(2),{repository:n}=s;let o;return e[0]!==n?(o=t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:t.jsx(fs,{repository:n})}),e[0]=n,e[1]=o):o=e[1],o}function Is(s){const e=W.c(39),{resources:n,connectionTitle:o,connectionIcon:r,onResourceClick:c,showToolbar:a,emptyMessage:f}=s,u=a===void 0?!0:a,p=f===void 0?"This connection doesn't have any resources yet.":f,m=ze().location.href,[i,b]=q.useState(""),[d,l]=q.useState("table"),[j,T]=q.useState("name"),[v,y]=q.useState("asc");let _;e[0]!==v||e[1]!==j?(_=g=>{j===g?(y(Es),v==="desc"&&T(void 0)):(T(g),y("asc"))},e[0]=v,e[1]=j,e[2]=_):_=e[2];const N=_;let h;e[3]!==c?(h=g=>{c&&c(g)},e[3]=c,e[4]=h):h=e[4];const k=h;let B;if(e[5]!==n||e[6]!==i||e[7]!==v||e[8]!==j){const g=!n||n.length===0?[]:i.trim()?(()=>{const F=i.toLowerCase();return n.filter(O=>O.uri.toLowerCase().includes(F)||O.name&&O.name.toLowerCase().includes(F)||O.description&&O.description.toLowerCase().includes(F))})():n;B=!j||!v?g:[...g].sort((F,O)=>{const S=F[j]||"",Q=O[j]||"",X=String(S).localeCompare(String(Q));return v==="asc"?X:-X}),e[5]=n,e[6]=i,e[7]=v,e[8]=j,e[9]=B}else B=e[9];const $=B;let M;e[10]===Symbol.for("react.memo_cache_sentinel")?(M=[{id:"name",header:"Name",render:Os,sortable:!0},{id:"uri",header:"URI",render:Ds,sortable:!0},{id:"description",header:"Description",render:Ms,cellClassName:"flex-1",sortable:!0},{id:"mimeType",header:"Type",render:Vs,sortable:!0}],e[10]=M):M=e[10];const A=M;let I;e[11]===Symbol.for("react.memo_cache_sentinel")?(I=A.filter(As).map($s),e[11]=I):I=e[11];const R=I;let L;e[12]!==r||e[13]!==o||e[14]!==N||e[15]!==u||e[16]!==v||e[17]!==j||e[18]!==m||e[19]!==d?(L=u&&t.jsxs(Ke,{children:[t.jsx(xt,{viewMode:d,onViewModeChange:l,sortKey:j,sortDirection:v,onSort:N,sortOptions:R}),t.jsx(We,{title:o?`${o}: Resources`:"Resources",url:m,icon:r??"folder"})]}),e[12]=r,e[13]=o,e[14]=N,e[15]=u,e[16]=v,e[17]=j,e[18]=m,e[19]=d,e[20]=L):L=e[20];let C;e[21]===Symbol.for("react.memo_cache_sentinel")?(C=g=>{g.key==="Escape"&&(b(""),g.target.blur())},e[21]=C):C=e[21];let z;e[22]!==i?(z=t.jsx(ht,{value:i,onChange:b,placeholder:"Search resources...",onKeyDown:C}),e[22]=i,e[23]=z):z=e[23];let P;e[24]!==p||e[25]!==k||e[26]!==N||e[27]!==i||e[28]!==v||e[29]!==j||e[30]!==$||e[31]!==d?(P=d==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:$.length===0?t.jsx(ye,{image:null,title:i?"No resources found":"No resources available",description:i?"Try adjusting your search terms":p}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:$.map(g=>t.jsx(gt,{className:"cursor-pointer transition-colors",onClick:()=>k(g),children:t.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[t.jsx(qe,{icon:null,name:g.name||g.uri,size:"md",className:"shrink-0 shadow-sm"}),t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:g.name||g.uri}),t.jsx("p",{className:"text-xs font-mono text-muted-foreground truncate",children:g.uri}),g.description&&t.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-1",children:g.description})]})]})},g.uri))})}):t.jsx(ft,{columns:A,data:$,isLoading:!1,sortKey:j,sortDirection:v,onSort:N,onRowClick:g=>k(g),emptyState:t.jsx(ye,{image:null,title:i?"No resources found":"No resources available",description:i?"Try adjusting your search terms":p})}),e[24]=p,e[25]=k,e[26]=N,e[27]=i,e[28]=v,e[29]=j,e[30]=$,e[31]=d,e[32]=P):P=e[32];let D;e[33]!==z||e[34]!==P?(D=t.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[z,P]}),e[33]=z,e[34]=P,e[35]=D):D=e[35];let V;return e[36]!==D||e[37]!==L?(V=t.jsxs(t.Fragment,{children:[L,D]}),e[36]=D,e[37]=L,e[38]=V):V=e[38],V}function $s(s){return{id:s.id,label:typeof s.header=="string"?s.header:s.id}}function As(s){return s.sortable}function Vs(s){return t.jsx("span",{className:"text-sm text-muted-foreground",children:s.mimeType||"—"})}function Ms(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.description||"—"})}function Ds(s){return t.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:s.uri})}function Os(s){return t.jsx("span",{className:"text-sm font-medium text-foreground",children:s.name||s.uri})}function Es(s){return s==="asc"?"desc":s==="desc"?null:"asc"}function Rs(s){const e=W.c(6),{resources:n,connectionId:o,org:r}=s,c=Xe(o),a=c?.title,f=c?.icon;let u;return e[0]!==o||e[1]!==r||e[2]!==n||e[3]!==a||e[4]!==f?(u=t.jsx(Is,{resources:n,connectionId:o,org:r,connectionTitle:a,connectionIcon:f}),e[0]=o,e[1]=r,e[2]=n,e[3]=a,e[4]=f,e[5]=u):u=e[5],u}const Ls=lt({key:K().min(1,"Key is required"),value:K()}),Us=lt({title:K().min(1,"Name is required"),description:K().nullable().optional(),ui_type:St(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:K().optional(),connection_token:K().nullable().optional(),npx_package:K().optional(),stdio_command:K().optional(),stdio_args:K().optional(),stdio_cwd:K().optional(),env_vars:Je(Ls).optional(),configuration_scopes:Je(K()).nullable().optional(),configuration_state:_t(K(),Ct()).nullable().optional()}).refine(s=>s.ui_type==="NPX"?!!s.npx_package?.trim():!0,{message:"NPM package is required",path:["npx_package"]}).refine(s=>s.ui_type==="STDIO"?!!s.stdio_command?.trim():!0,{message:"Command is required",path:["stdio_command"]}).refine(s=>s.ui_type==="HTTP"||s.ui_type==="SSE"||s.ui_type==="Websocket"?!!s.connection_url?.trim():!0,{message:"URL is required",path:["connection_url"]});function Fs(s){const e=W.c(5),{tools:n,connectionId:o,org:r,isLoading:c}=s;let a;return e[0]!==o||e[1]!==c||e[2]!==r||e[3]!==n?(a=t.jsx(xs,{tools:n,connectionId:o,org:r,isLoading:c}),e[0]=o,e[1]=c,e[2]=r,e[3]=n,e[4]=a):a=e[4],a}function Bs(s){return s.command==="npx"}function zs(s){return s.args?.find(e=>!e.startsWith("-"))??""}function Ws(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function Xs(s,e){const n={command:"npx",args:["-y",s]},o=mt(e);return Object.keys(o).length>0&&(n.envVars=o),n}function Ks(s,e,n,o){const r={command:s};e.trim()&&(r.args=e.trim().split(/\s+/)),n?.trim()&&(r.cwd=n.trim());const c=mt(o);return Object.keys(c).length>0&&(r.envVars=c),r}function it(s,e){const n={title:s.title,description:s.description??"",configuration_state:s.configuration_state??{},configuration_scopes:s.configuration_scopes||[]};if(s.connection_type==="STDIO"&&$t(s.connection_headers)){const o=s.connection_headers,r=Vt(o.envVars);if(Bs(o)){const a=zs(o);return{...n,ui_type:"NPX",connection_url:"",connection_token:null,npx_package:a,stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:r}}const c=Ws(o);return{...n,ui_type:"STDIO",connection_url:"",connection_token:null,npx_package:"",stdio_command:c.command,stdio_args:c.args,stdio_cwd:c.cwd,env_vars:r}}return{...n,ui_type:s.connection_type,connection_url:s.connection_url??"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}function qs(s){let e,n=null,o=null,r=null;return s.ui_type==="NPX"?(e="STDIO",n="",r=Xs(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",r=Ks(s.stdio_command||"",s.stdio_args||"",s.stdio_cwd,s.env_vars||[])):(e=s.ui_type,n=s.connection_url||"",o=s.connection_token||null),{title:s.title,description:s.description||null,connection_type:e,connection_url:n,...o&&{connection_token:o},...r&&{connection_headers:r},configuration_state:s.configuration_state??null,configuration_scopes:s.configuration_scopes??null}}function Hs(s){const e=W.c(117),{connection:n,connectionId:o,org:r,requestedTabId:c,collections:a,onUpdate:f,isUpdating:u,prompts:p,resources:x,tools:m,isLoadingTools:i}=s;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/$org/$project/mcps/$connectionId"},e[0]=b):b=e[0];const d=Re(b),l=kt(),T=ze().location.href,v=ut();let y;e[1]!==o?(y={connectionId:o},e[1]=o,e[2]=y):y=e[2];const _=Et(y),h=n?.connection_type==="VIRTUAL"||_.isAuthenticated;let k;e[3]!==n?(k={connections:[n],binding:"MCP"},e[3]=n,e[4]=k):k=e[4];const $=Ot(k).length>0,M=n?.metadata?.repository,A=!!M?.url;let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=Pt(Us),e[5]=I):I=e[5];let R;e[6]!==n?(R=it(n),e[6]=n,e[7]=R):R=e[7];let L;e[8]!==R?(L={resolver:I,values:R},e[8]=R,e[9]=L):L=e[9];const C=It(L),z=C.formState.isDirty;let P;e[10]!==C||e[11]!==f?(P=async()=>{if(!await C.trigger())return;const U=C.getValues(),Ne=qs(U);await f(Ne),C.reset(U)},e[10]=C,e[11]=f,e[12]=P):P=e[12];const D=P;let V;e[13]!==n||e[14]!==C?(V=()=>{C.reset(it(n))},e[13]=n,e[14]=C,e[15]=V):V=e[15];const g=V;let F;e[16]!==n.id||e[17]!==v||e[18]!==l?(F=async()=>{const{token:w,tokenInfo:U,error:Ne}=await zt({connectionId:n.id});if(Ne||!w){Ce.error(`Authentication failed: ${Ne}`);return}if(U)try{const De=await fetch(`/api/connections/${n.id}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:U.accessToken,refreshToken:U.refreshToken,expiresIn:U.expiresIn,scope:U.scope,clientId:U.clientId,clientSecret:U.clientSecret,tokenEndpoint:U.tokenEndpoint})});if(!De.ok)console.error("Failed to save OAuth token:",await De.text()),await v.update.mutateAsync({id:n.id,data:{connection_token:w}});else try{await v.update.mutateAsync({id:n.id,data:{}})}catch(Qe){console.warn("Failed to refresh connection tools after OAuth:",Qe)}}catch(De){console.error("Error saving OAuth token:",De),await v.update.mutateAsync({id:n.id,data:{connection_token:w}})}else await v.update.mutateAsync({id:n.id,data:{connection_token:w}});const vt=new URL(`/mcp/${n.id}`,window.location.origin);await l.invalidateQueries({queryKey:Ye.isMCPAuthenticated(vt.href,null)}),Ce.success("Authentication successful")},e[16]=n.id,e[17]=v,e[18]=l,e[19]=F):F=e[19];const O=F;let S;e[20]!==n.id||e[21]!==l?(S=async()=>{try{const w=await fetch(`/api/connections/${n.id}/oauth-token`,{method:"DELETE",credentials:"include"});if(!w.ok){const Ne=await w.text();Ce.error(`Failed to remove OAuth: ${Ne}`);return}const U=new URL(`/mcp/${n.id}`,window.location.origin);await l.invalidateQueries({queryKey:Ye.isMCPAuthenticated(U.href,null)}),Ce.success("OAuth removed. You can now re-authenticate with a different account.")}catch(w){console.error("Error removing OAuth token:",w),Ce.error("Failed to remove OAuth")}},e[20]=n.id,e[21]=l,e[22]=S):S=e[22];const Q=S,X=m.length,se=p.length,ne=x.length,oe=X>0||i;let we;e[23]===Symbol.for("react.memo_cache_sentinel")?(we={id:"settings",label:"Settings"},e[23]=we):we=e[23];let re;e[24]!==i||e[25]!==h||e[26]!==oe||e[27]!==X?(re=h&&oe?[{id:"tools",label:"Tools",count:i?void 0:X}]:[],e[24]=i,e[25]=h,e[26]=oe,e[27]=X,e[28]=re):re=e[28];let ie;e[29]!==h||e[30]!==se?(ie=h&&se>0?[{id:"prompts",label:"Prompts",count:se}]:[],e[29]=h,e[30]=se,e[31]=ie):ie=e[31];let ce;e[32]!==h||e[33]!==ne?(ce=h&&ne>0?[{id:"resources",label:"Resources",count:ne}]:[],e[32]=h,e[33]=ne,e[34]=ce):ce=e[34];let Te;if(e[35]!==a||e[36]!==A||e[37]!==h||e[38]!==re||e[39]!==ie||e[40]!==ce){let w;e[42]!==A?(w=A?[{id:"readme",label:"README"}]:[],e[42]=A,e[43]=w):w=e[43],Te=[we,...re,...ie,...ce,...h?(a||[]).map(Gs):[],...w],e[35]=a,e[36]=A,e[37]=h,e[38]=re,e[39]=ie,e[40]=ce,e[41]=Te}else Te=e[41];const _e=Te,bt=h&&_e.some(Qs)?"tools":"settings",E=_e.some(w=>w.id===c)?c:bt;let ke;e[44]!==d?(ke=w=>{d({search:U=>({...U,tab:w}),replace:!0})},e[44]=d,e[45]=ke):ke=e[45];const ae=ke;let le;e[46]!==a?(le=a||[],e[46]=a,e[47]=le):le=e[47];let Pe;if(e[48]!==E||e[49]!==le){let w;e[51]!==E?(w=U=>U.name===E,e[51]=E,e[52]=w):w=e[52],Pe=le.find(w),e[48]=E,e[49]=le,e[50]=Pe}else Pe=e[50];const Ie=Pe;let de;e[53]!==r?(de=t.jsx(Ze,{children:t.jsx(Xt,{asChild:!0,children:t.jsx(ct,{to:"/$org/$project/mcps",params:{org:r,project:Se},children:"Connections"})})}),e[53]=r,e[54]=de):de=e[54];let $e;e[55]===Symbol.for("react.memo_cache_sentinel")?($e=t.jsx(Kt,{}),e[55]=$e):$e=e[55];let me;e[56]!==n.title?(me=t.jsx(Ze,{children:t.jsx(Wt,{children:n.title})}),e[56]=n.title,e[57]=me):me=e[57];let Ae;e[58]!==de||e[59]!==me?(Ae=t.jsx(qt,{children:t.jsxs(Ht,{children:[de,$e,me]})}),e[58]=de,e[59]=me,e[60]=Ae):Ae=e[60];const Le=Ae;let ue;e[61]!==D||e[62]!==g||e[63]!==z||e[64]!==u?(ue=t.jsx(Mt,{onSave:D,onUndo:g,isDirty:z,isSaving:u}),e[61]=D,e[62]=g,e[63]=z,e[64]=u,e[65]=ue):ue=e[65];const Ue=n.icon??"settings";let pe;e[66]!==n.title||e[67]!==Ue||e[68]!==T?(pe=t.jsx(We,{title:n.title,url:T,icon:Ue}),e[66]=n.title,e[67]=Ue,e[68]=T,e[69]=pe):pe=e[69];let fe;e[70]!==ue||e[71]!==pe?(fe=t.jsxs(Ke,{children:[ue,pe]}),e[70]=ue,e[71]=pe,e[72]=fe):fe=e[72];let xe;e[73]!==_.hasOAuthToken||e[74]!==n||e[75]!==C||e[76]!==O||e[77]!==Q||e[78]!==h?(xe=t.jsx("div",{className:"w-100 shrink-0 border-r border-border bg-background",children:t.jsx(bs,{form:C,connection:n,isMCPAuthenticated:h,hasOAuthToken:_.hasOAuthToken,onReauthenticate:O,onRemoveOAuth:Q})}),e[73]=_.hasOAuthToken,e[74]=n,e[75]=C,e[76]=O,e[77]=Q,e[78]=h,e[79]=xe):xe=e[79];let he;e[80]!==E||e[81]!==ae||e[82]!==_e?(he=t.jsx("div",{className:"shrink-0 flex items-center gap-4 px-5 py-3 border-b border-border",children:t.jsx(Qt,{tabs:_e,activeTab:E,onTabChange:ae,className:"flex-1"})}),e[80]=E,e[81]=ae,e[82]=_e,e[83]=he):he=e[83];let Ve;e[84]===Symbol.for("react.memo_cache_sentinel")?(Ve=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Ee,{size:32,className:"animate-spin text-muted-foreground"})}),e[84]=Ve):Ve=e[84];let ge;e[85]!==Ie||e[86]!==E||e[87]!==_.isServerError||e[88]!==_.supportsOAuth||e[89]!==n||e[90]!==o||e[91]!==C||e[92]!==O||e[93]!==ae||e[94]!==$||e[95]!==A||e[96]!==i||e[97]!==h||e[98]!==r||e[99]!==p||e[100]!==M||e[101]!==x||e[102]!==m?(ge=t.jsx(q.Suspense,{fallback:Ve,children:E==="tools"?t.jsx(Fs,{tools:m,connectionId:o,org:r,isLoading:i}):E==="prompts"?t.jsx(ks,{prompts:p,connectionId:o,org:r}):E==="resources"?t.jsx(Rs,{resources:x,connectionId:o,org:r}):E==="settings"?t.jsx(Rt,{connection:n,form:C,hasMcpBinding:$,isMCPAuthenticated:h,supportsOAuth:_.supportsOAuth,isServerError:_.isServerError,onAuthenticate:O,onViewReadme:A?()=>ae("readme"):void 0}):E==="readme"&&A?t.jsx(Ps,{repository:M}):Ie&&h?t.jsx(Jt,{connectionId:o,org:r,activeCollection:Ie},E):t.jsx(ye,{title:"Collection not found",description:"This collection may have been deleted or you may not have access."})}),e[85]=Ie,e[86]=E,e[87]=_.isServerError,e[88]=_.supportsOAuth,e[89]=n,e[90]=o,e[91]=C,e[92]=O,e[93]=ae,e[94]=$,e[95]=A,e[96]=i,e[97]=h,e[98]=r,e[99]=p,e[100]=M,e[101]=x,e[102]=m,e[103]=ge):ge=e[103];let je;e[104]!==E||e[105]!==ge?(je=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(dt,{children:ge},E)}),e[104]=E,e[105]=ge,e[106]=je):je=e[106];let be;e[107]!==he||e[108]!==je?(be=t.jsxs("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:[he,je]}),e[107]=he,e[108]=je,e[109]=be):be=e[109];let ve;e[110]!==xe||e[111]!==be?(ve=t.jsxs("div",{className:"flex h-full w-full bg-background overflow-hidden",children:[xe,be]}),e[110]=xe,e[111]=be,e[112]=ve):ve=e[112];let Me;return e[113]!==Le||e[114]!==fe||e[115]!==ve?(Me=t.jsxs(Gt,{breadcrumb:Le,children:[fe,ve]}),e[113]=Le,e[114]=fe,e[115]=ve,e[116]=Me):Me=e[116],Me}function Qs(s){return s.id==="tools"}function Gs(s){return{id:s.name,label:s.displayName}}function Js(){const s=W.c(43);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/$project/mcps/$connectionId"},s[0]=e):e=s[0];const n=Re(e);let o;s[1]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org/$project/mcps/$connectionId"},s[1]=o):o=s[1];const{connectionId:r,org:c}=wt(o),{org:a}=at();let f;s[2]===Symbol.for("react.memo_cache_sentinel")?(f={from:"/shell/$org/$project/mcps/$connectionId"},s[2]=f):f=s[2];const p=Tt(f).tab??"",x=Xe(r),m=ut(),i=Dt(x??void 0);let b;s[3]!==r||s[4]!==a.id?(b={connectionId:r,orgId:a.id},s[3]=r,s[4]=a.id,s[5]=b):b=s[5];const d=Lt(b);let l;s[6]!==d?(l={client:d},s[6]=d,s[7]=l):l=s[7];const{data:j}=Ft(l);let T;s[8]!==d?(T={client:d},s[8]=d,s[9]=T):T=s[9];const{data:v}=Bt(T),_=!(x?.connection_type==="VIRTUAL")&&x?.tools&&x.tools.length>0,N=!_;let h;s[10]!==d||s[11]!==N?(h={client:d,enabled:N},s[10]=d,s[11]=N,s[12]=h):h=s[12];const{data:k,isLoading:B}=Ut(h);let $;s[13]!==j?.prompts?($=j?.prompts??[],s[13]=j?.prompts,s[14]=$):$=s[14];let M;s[15]!==$?(M=$.map(en),s[15]=$,s[16]=M):M=s[16];const A=M;let I;s[17]!==v?.resources?(I=v?.resources??[],s[17]=v?.resources,s[18]=I):I=s[18];let R;s[19]!==I?(R=I.map(Zs),s[19]=I,s[20]=R):R=s[20];const L=R;let C;s[21]!==x||s[22]!==_||s[23]!==k?.tools?(C=_?x.tools??[]:(k?.tools??[]).map(Ys),s[21]=x,s[22]=_,s[23]=k?.tools,s[24]=C):C=s[24];const z=C;let P;s[25]!==m.update||s[26]!==r?(P=async g=>{await m.update.mutateAsync({id:r,data:g})},s[25]=m.update,s[26]=r,s[27]=P):P=s[27];const D=P;if(!x){let g;return s[28]!==n||s[29]!==c?(g=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ye,{title:"Connection not found",description:"This connection may have been deleted or you may not have access.",actions:t.jsx(Fe,{variant:"outline",onClick:()=>n({to:"/$org/$project/mcps",params:{org:c,project:Se}}),children:"Back to connections"})})}),s[28]=n,s[29]=c,s[30]=g):g=s[30],g}let V;return s[31]!==m.update.isPending||s[32]!==i||s[33]!==x||s[34]!==r||s[35]!==D||s[36]!==B||s[37]!==c||s[38]!==A||s[39]!==p||s[40]!==L||s[41]!==z?(V=t.jsx(Hs,{org:c,connection:x,connectionId:r,requestedTabId:p,collections:i,onUpdate:D,isUpdating:m.update.isPending,prompts:A,resources:L,tools:z,isLoadingTools:B}),s[31]=m.update.isPending,s[32]=i,s[33]=x,s[34]=r,s[35]=D,s[36]=B,s[37]=c,s[38]=A,s[39]=p,s[40]=L,s[41]=z,s[42]=V):V=s[42],V}function Ys(s){return{name:s.name,description:s.description,inputSchema:s.inputSchema}}function Zs(s){return{uri:s.uri,name:s.name,description:s.description}}function en(s){return{name:s.name,description:s.description}}function tn(){const s=W.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(dt,{children:t.jsx(q.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Js,{})})}),s[0]=e):e=s[0],e}function Ro(){const s=W.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(tn,{}),s[0]=e):e=s[0],e}export{Ro as default};
@@ -1 +0,0 @@
1
- import{F as t,G as a}from"./index-D-FZcOMC.js";const e=t(a,{target:"draft-7"});export{e as B};
@@ -1 +0,0 @@
1
- import{c as i,r as u,j as c}from"./index-D-FZcOMC.js";import{c as a}from"./utils-Ot-eblW7.js";function x(n,e){const s=u.Children.toArray(n);for(const l of s)if(u.isValidElement(l)&&l.type===e)return l;return null}function b(n){const e=i.c(5),{children:s,className:l}=n;let t;e[0]!==l?(t=a("flex flex-col h-full bg-background overflow-hidden",l),e[0]=l,e[1]=t):t=e[1];let r;return e[2]!==s||e[3]!==t?(r=c.jsx("div",{className:t,children:s}),e[2]=s,e[3]=t,e[4]=r):r=e[4],r}function p(n){const e=i.c(10),{children:s,className:l}=n;let t;e[0]!==s?(t=x(s,h),e[0]=s,e[1]=t):t=e[1];const r=t;let f;e[2]!==s?(f=x(s,g),e[2]=s,e[3]=f):f=e[3];const m=f;let o;e[4]!==l?(o=a("shrink-0 w-full bg-background border-b border-border h-12 overflow-x-auto","flex items-center justify-between gap-3 px-4 min-w-max",l),e[4]=l,e[5]=o):o=e[5];let d;return e[6]!==r||e[7]!==m||e[8]!==o?(d=c.jsxs("div",{className:o,children:[r,m]}),e[6]=r,e[7]=m,e[8]=o,e[9]=d):d=e[9],d}function h(n){const e=i.c(5),{children:s,className:l}=n;let t;e[0]!==l?(t=a("flex items-center gap-2 flex-shrink-0 overflow-hidden",l),e[0]=l,e[1]=t):t=e[1];let r;return e[2]!==s||e[3]!==t?(r=c.jsx("div",{className:t,children:s}),e[2]=s,e[3]=t,e[4]=r):r=e[4],r}function g(n){const e=i.c(5),{children:s,className:l}=n;let t;e[0]!==l?(t=a("flex items-center gap-2 flex-shrink-0 overflow-hidden border-l border-border pl-3",l),e[0]=l,e[1]=t):t=e[1];let r;return e[2]!==s||e[3]!==t?(r=c.jsx("div",{className:t,children:s}),e[2]=s,e[3]=t,e[4]=r):r=e[4],r}function j(n){const e=i.c(5),{children:s,className:l}=n;let t;e[0]!==l?(t=a("flex-1 overflow-auto",l),e[0]=l,e[1]=t):t=e[1];let r;return e[2]!==s||e[3]!==t?(r=c.jsx("div",{className:t,children:s}),e[2]=s,e[3]=t,e[4]=r):r=e[4],r}const w=Object.assign(b,{Header:Object.assign(p,{Left:h,Right:g}),Content:j});export{w as P};