@decocms/mesh 2.75.0 → 2.77.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 (160) hide show
  1. package/dist/client/assets/{AlertCircle-BtLmHyy8.js → AlertCircle-oGnqqT1Z.js} +1 -1
  2. package/dist/client/assets/{ArrowUp-CS3ZollZ.js → ArrowUp-DyvHGnwT.js} +1 -1
  3. package/dist/client/assets/{Calendar-D6iDOsnM.js → Calendar-DH27yGmZ.js} +1 -1
  4. package/dist/client/assets/{Check-D3ubYXxc.js → Check-BlatIqwx.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-BLc2ASgN.js → CheckCircle-A7jAb6dO.js} +1 -1
  6. package/dist/client/assets/{CheckDone01-C2olQLcp.js → CheckDone01-6mjKztKu.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-DGc_B_pI.js → ChevronDown-CCp2JMaE.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-BTZr-xye.js → ChevronRight-BcCazbVH.js} +1 -1
  9. package/dist/client/assets/{Code01-BgIlNb0q.js → Code01-D97OsfSf.js} +1 -1
  10. package/dist/client/assets/{Copy01-VJRVowHJ.js → Copy01-DGJsTP15.js} +1 -1
  11. package/dist/client/assets/{DotsHorizontal-J1HamufO.js → DotsHorizontal-C2NdUnkY.js} +1 -1
  12. package/dist/client/assets/{DotsVertical-XxVvTjZe.js → DotsVertical-BahQdspO.js} +1 -1
  13. package/dist/client/assets/{Download01-B76QpppS.js → Download01-NaPFxXbm.js} +1 -1
  14. package/dist/client/assets/{Edit01-B5aM7o8H.js → Edit01-CSl-FU1V.js} +1 -1
  15. package/dist/client/assets/{File02-nG54lqZh.js → File02-DCmcNtYa.js} +1 -1
  16. package/dist/client/assets/{File06-BTrZX4-T.js → File06-BmPjFHnz.js} +1 -1
  17. package/dist/client/assets/{FilterLines-GHETfQYS.js → FilterLines-Bbx0mrEz.js} +1 -1
  18. package/dist/client/assets/{Globe02-Dk07oP0z.js → Globe02-B4QQLqTF.js} +1 -1
  19. package/dist/client/assets/{Grid01-RAa135S1.js → Grid01-CXhtcjgR.js} +1 -1
  20. package/dist/client/assets/{Home02-QIpDHMcj.js → Home02-DTzcdbjE.js} +1 -1
  21. package/dist/client/assets/{Image01-B2o6vVhA.js → Image01-Cw_RHYUi.js} +1 -1
  22. package/dist/client/assets/{Inbox01-VryQyU0X.js → Inbox01-Cd7KCD-D.js} +1 -1
  23. package/dist/client/assets/{InfoCircle-DNjRzSWE.js → InfoCircle-D87-HsMo.js} +1 -1
  24. package/dist/client/assets/{LinkExternal01-CDCzG7Bd.js → LinkExternal01-DAYrBD75.js} +1 -1
  25. package/dist/client/assets/{List-DS9PzQZf.js → List-BOdL1TDJ.js} +1 -1
  26. package/dist/client/assets/{Loading01-B_72CFT3.js → Loading01-DcUBqOzt.js} +1 -1
  27. package/dist/client/assets/{Lock01-D4kTXh33.js → Lock01-CJlTX6d9.js} +1 -1
  28. package/dist/client/assets/{Pin01-BnjsacaS.js → Pin01-Cetrd1z7.js} +1 -1
  29. package/dist/client/assets/{Play-vW8bpCNs.js → Play-76i3R5Mg.js} +1 -1
  30. package/dist/client/assets/{Plus-_EIrkETO.js → Plus-CBeTqgO0.js} +1 -1
  31. package/dist/client/assets/RefreshCcw01-qWaidSs5.js +1 -0
  32. package/dist/client/assets/{SearchMd-DglsF9__.js → SearchMd-DlO0jVus.js} +1 -1
  33. package/dist/client/assets/{Settings01-CFqjPjGn.js → Settings01-Dyku2FbW.js} +1 -1
  34. package/dist/client/assets/Settings02-CYlXe29M.js +1 -0
  35. package/dist/client/assets/{Share07-O85vTLMC.js → Share07-5RJmIBaS.js} +1 -1
  36. package/dist/client/assets/{Terminal-Cy7QpUCs.js → Terminal-CwhCdVNd.js} +1 -1
  37. package/dist/client/assets/{Tool01-DkjdoaMq.js → Tool01-SB9NL9XB.js} +1 -1
  38. package/dist/client/assets/{Trash01-CKqlebDm.js → Trash01-B5rQsNj_.js} +1 -1
  39. package/dist/client/assets/{Upload01-DYCMxAjY.js → Upload01-up-2G0Zk.js} +1 -1
  40. package/dist/client/assets/{Users03-CLwVIYNp.js → Users03-YVnet25Q.js} +1 -1
  41. package/dist/client/assets/{X-CSVVvPO3.js → X-CDixI9Fp.js} +1 -1
  42. package/dist/client/assets/{XClose-BOh776sq.js → XClose-9HhuzPl1.js} +1 -1
  43. package/dist/client/assets/{agent-connections-preview-DSNJFr0O.js → agent-connections-preview-D_HsP759.js} +1 -1
  44. package/dist/client/assets/agent-detail-CNliY0im.js +1 -0
  45. package/dist/client/assets/{agents-CZ4ZklqY.js → agents-DSOm54r8.js} +1 -1
  46. package/dist/client/assets/{alert-dialog-CMFFNJg5.js → alert-dialog-CezkcFZv.js} +1 -1
  47. package/dist/client/assets/{auth-catchall-Y9hKDakc.js → auth-catchall-Ddtu2gr8.js} +1 -1
  48. package/dist/client/assets/{avatar-C0cccS60.js → avatar-a-IdsKtd.js} +1 -1
  49. package/dist/client/assets/{badge-67pGhcsZ.js → badge-DyTP00ui.js} +1 -1
  50. package/dist/client/assets/{binder-BQNmKBxJ.js → binder-D3g26T9_.js} +1 -1
  51. package/dist/client/assets/{breadcrumb-C5T3dJE6.js → breadcrumb-CrQKEc0V.js} +1 -1
  52. package/dist/client/assets/{button-AB9cXWBb.js → button-IcLvDS7b.js} +1 -1
  53. package/dist/client/assets/{card-DatbcemW.js → card-DPhTtE1j.js} +1 -1
  54. package/dist/client/assets/{checkbox-lsjWL6i2.js → checkbox-BMOSGAPg.js} +1 -1
  55. package/dist/client/assets/{circle-alert-BctrA2dR.js → circle-alert-CUdPHotP.js} +1 -1
  56. package/dist/client/assets/collection-detail-CVwTrXbU.js +26 -0
  57. package/dist/client/assets/{collection-search-CNaPV8pR.js → collection-search-C9obF9Ju.js} +1 -1
  58. package/dist/client/assets/{collection-tab-DV_TP_WM.js → collection-tab-B0D5Ge1w.js} +1 -1
  59. package/dist/client/assets/{collection-table-wrapper-DSM2ewq2.js → collection-table-wrapper-B0DqLvbL.js} +1 -1
  60. package/dist/client/assets/{collection-tabs-CnXL2suk.js → collection-tabs-Bh3_w0C-.js} +1 -1
  61. package/dist/client/assets/{command-DDT6AGtU.js → command-xbgaBPKx.js} +1 -1
  62. package/dist/client/assets/{connect-Cvc6-UMK.js → connect-B1f578pl.js} +1 -1
  63. package/dist/client/assets/{connection-card-BoD60JtX.js → connection-card-DzzffrUK.js} +1 -1
  64. package/dist/client/assets/connection-detail-Dc9842ih.js +1 -0
  65. package/dist/client/assets/{connections-CkMfBeE_.js → connections-DMThZLY2.js} +1 -1
  66. package/dist/client/assets/{constants-Dd61XPju.js → constants-Bb6jn5pm.js} +1 -1
  67. package/dist/client/assets/constants-D3p69qeS.js +1 -0
  68. package/dist/client/assets/{create-organization-dialog-lVschU-T.js → create-organization-dialog-Cv4z3yf1.js} +1 -1
  69. package/dist/client/assets/{create-project-dialog-oeLTBCgQ.js → create-project-dialog-B-TMsdZD.js} +1 -1
  70. package/dist/client/assets/{dialog-V-G7cm4S.js → dialog-BP68A3-r.js} +1 -1
  71. package/dist/client/assets/{dropdown-menu-Cr68JTqs.js → dropdown-menu-C0weu07S.js} +1 -1
  72. package/dist/client/assets/{dynamic-plugin-layout-BDN43EV9.js → dynamic-plugin-layout-C3YR0WSk.js} +1 -1
  73. package/dist/client/assets/{empty-state-DTsFurx5.js → empty-state-BY2kT0YF.js} +1 -1
  74. package/dist/client/assets/{empty-state-DXDgk150.js → empty-state-CcIz0DtW.js} +1 -1
  75. package/dist/client/assets/{env-vars-editor-CJIkUQFq.js → env-vars-editor-DJJKlTL9.js} +1 -1
  76. package/dist/client/assets/{error-boundary-CyPUBnGI.js → error-boundary-Dxa9vN4s.js} +1 -1
  77. package/dist/client/assets/{estree-CwOGYdhi.js → estree-BOE5AzoZ.js} +2 -2
  78. package/dist/client/assets/{extract-connection-data-Cr8RzppI.js → extract-connection-data-qxA4zC_1.js} +1 -1
  79. package/dist/client/assets/{file-browser-BMnqO_1p.js → file-browser-C4JlHX7p.js} +2 -2
  80. package/dist/client/assets/{form-Dk1BQhBM.js → form-CPbw8FiC.js} +1 -1
  81. package/dist/client/assets/{grid-view-DowLXjS7.js → grid-view-Pi_wFmga.js} +1 -1
  82. package/dist/client/assets/{home-B0Y3Di4D.js → home-D9pqYJxL.js} +1 -1
  83. package/dist/client/assets/{index-D8Damm96.js → index-BE8lTkR-.js} +1 -1
  84. package/dist/client/assets/{index-CffYvbOk.js → index-BQaDRMwA.js} +1 -1
  85. package/dist/client/assets/{index-CMGKEOx9.js → index-Bofa5A4c.js} +1 -1
  86. package/dist/client/assets/{index-XIgm4U89.js → index-CIjJkh1w.js} +1 -1
  87. package/dist/client/assets/{index-DcpUI1e8.js → index-CV7G73w0.js} +1 -1
  88. package/dist/client/assets/{index-KcN9jfkO.js → index-ChHDKIbN.js} +6 -6
  89. package/dist/client/assets/{index-CLOGlhow.js → index-DIqndGeg.js} +1 -1
  90. package/dist/client/assets/{index-COO_eJWG.js → index-DauKEk3R.js} +2 -2
  91. package/dist/client/assets/index-Dw0obvD7.js +25 -0
  92. package/dist/client/assets/{infiniteQueryObserver-BPw7at1z.js → infiniteQueryObserver-BJxHLYt6.js} +1 -1
  93. package/dist/client/assets/{input-DpQoaQfS.js → input-BiH6tKYM.js} +1 -1
  94. package/dist/client/assets/{integration-icon-DzX6vjWU.js → integration-icon-D8EX8kVH.js} +1 -1
  95. package/dist/client/assets/{label-B4u_PB72.js → label-CL-z0zvN.js} +1 -1
  96. package/dist/client/assets/{layout-1uXnWnKk.js → layout-DS9ZU1FV.js} +1 -1
  97. package/dist/client/assets/{localstorage-keys-BM3WWg3m.js → localstorage-keys-CglJRhni.js} +1 -1
  98. package/dist/client/assets/{login-B56MGOs9.js → login-CQ4DI182.js} +1 -1
  99. package/dist/client/assets/{mcp-oauth-CKAjCVZP.js → mcp-oauth-pNbworXN.js} +1 -1
  100. package/dist/client/assets/{mcp-server-card-DoPF_WVv.js → mcp-server-card-CiBv2daD.js} +1 -1
  101. package/dist/client/assets/{mcp-server-detail-CkS0PbuH.js → mcp-server-detail-CWlOVXjE.js} +2 -2
  102. package/dist/client/assets/{members-BB1doSO5.js → members-DP31FB6R.js} +1 -1
  103. package/dist/client/assets/{monaco-editor-DEHFPbnX.js → monaco-editor-B3-QQ48f.js} +2 -2
  104. package/dist/client/assets/{monitoring-DOjL9t3e.js → monitoring-CEJjhEzo.js} +3 -3
  105. package/dist/client/assets/{oauth-callback-BBcJg1UX.js → oauth-callback-DwNVkFW_.js} +1 -1
  106. package/dist/client/assets/page-BYKRtBSp.js +1 -0
  107. package/dist/client/assets/{page-B3KFw8CR.js → page-UBkAPmC5.js} +1 -1
  108. package/dist/client/assets/{plugin-empty-state-NBfVVy0l.js → plugin-empty-state-BpFO_GZ3.js} +1 -1
  109. package/dist/client/assets/{plugin-header-BXDOmgaW.js → plugin-header-COGg6PEu.js} +1 -1
  110. package/dist/client/assets/{popover-BuD0r9BV.js → popover-JVz1MvYo.js} +1 -1
  111. package/dist/client/assets/{project-layout-Cnrq-SYE.js → project-layout-D_GhuXhx.js} +1 -1
  112. package/dist/client/assets/{project-settings-QWIujTPO.js → project-settings-YCZbbN-X.js} +1 -1
  113. package/dist/client/assets/{projects-list-D8sP5qSm.js → projects-list-DK4ua0bt.js} +1 -1
  114. package/dist/client/assets/{registry-utils-DBaLa5Rh.js → registry-utils-BAvR5D-B.js} +1 -1
  115. package/dist/client/assets/{resizable-CgvrBBsS.js → resizable-Z1lo2KUF.js} +1 -1
  116. package/dist/client/assets/{select-Bc3qnIp8.js → select-DWWlFXcM.js} +1 -1
  117. package/dist/client/assets/shell-layout-j0caJ6cv.js +12 -0
  118. package/dist/client/assets/{spinner-rSR6baPa.js → spinner-DDglcYN3.js} +1 -1
  119. package/dist/client/assets/{store-invite-pQr9-dk3.js → store-invite-DE3oTPEQ.js} +1 -1
  120. package/dist/client/assets/{switch-DdokomeM.js → switch-BU39MRXa.js} +1 -1
  121. package/dist/client/assets/{table-a_0ITwUC.js → table-DkKXRH0o.js} +1 -1
  122. package/dist/client/assets/{tasks-CTttayn-.js → tasks-B5becd8b.js} +1 -1
  123. package/dist/client/assets/{textarea-DYwKTx03.js → textarea-B0H-V_2P.js} +1 -1
  124. package/dist/client/assets/{tools-list-C7hTP47S.js → tools-list-BPmcCiBX.js} +1 -1
  125. package/dist/client/assets/{topbar-portal-_MNJb0ke.js → topbar-portal-COlO8Xo1.js} +1 -1
  126. package/dist/client/assets/{typewriter-title-BZ5Kpwdd.js → typewriter-title-Bwf3Eryu.js} +1 -1
  127. package/dist/client/assets/{use-binding-Dm7Ehllr.js → use-binding-BF44Dr3v.js} +1 -1
  128. package/dist/client/assets/{use-connection-0mxTykry.js → use-connection-DMc1ed7A.js} +1 -1
  129. package/dist/client/assets/{use-create-virtual-mcp-DokNG_Sw.js → use-create-virtual-mcp-DFreYzbI.js} +1 -1
  130. package/dist/client/assets/{use-deco-chat-open-ChpE6vuj.js → use-deco-chat-open-C_KGQyGq.js} +7 -7
  131. package/dist/client/assets/{use-install-from-registry-1t9k1vMV.js → use-install-from-registry--Nvk5mQH.js} +1 -1
  132. package/dist/client/assets/{use-list-state-iF5wqfMX.js → use-list-state-BHsqFECN.js} +1 -1
  133. package/dist/client/assets/{use-llm-cYoJ456l.js → use-llm-B0wA4ukF.js} +1 -1
  134. package/dist/client/assets/{use-mcp-prompts-DZbjmEdn.js → use-mcp-prompts-DnDIhnz1.js} +1 -1
  135. package/dist/client/assets/{use-mcp-tools-BQRPyYnS.js → use-mcp-tools-D7_YQODs.js} +1 -1
  136. package/dist/client/assets/{use-mobile-B5hu4mxq.js → use-mobile-DKBgr338.js} +1 -1
  137. package/dist/client/assets/{use-organization-settings-8Md9ygEM.js → use-organization-settings-DhaOb6f0.js} +1 -1
  138. package/dist/client/assets/{use-project-Dun345CA.js → use-project-DuJfQ5Lc.js} +1 -1
  139. package/dist/client/assets/{use-virtual-mcp-DSRU0zGP.js → use-virtual-mcp-Dx2SDNW7.js} +1 -1
  140. package/dist/client/assets/useInfiniteQuery-l-SVnEZQ.js +1 -0
  141. package/dist/client/assets/{useMutation-ClyYx3N6.js → useMutation-CR-ZbATX.js} +1 -1
  142. package/dist/client/assets/useQuery-t9jS7IDj.js +1 -0
  143. package/dist/client/assets/utils-B_eWxCLR.js +1 -0
  144. package/dist/client/assets/{view-mode-toggle-x6y4jYTo.js → view-mode-toggle-DL3lAsm5.js} +1 -1
  145. package/dist/client/assets/workflow-COg9B_We.js +1 -0
  146. package/dist/client/index.html +1 -1
  147. package/dist/server/cli.js +154 -154
  148. package/dist/server/server.js +127 -127
  149. package/package.json +1 -1
  150. package/dist/client/assets/agent-detail-CRgviLOX.js +0 -1
  151. package/dist/client/assets/collection-detail-HRUP2PWH.js +0 -26
  152. package/dist/client/assets/connection-detail-CGxZSMNC.js +0 -1
  153. package/dist/client/assets/constants-DBa8dlFt.js +0 -1
  154. package/dist/client/assets/index-CPvkxTJI.js +0 -25
  155. package/dist/client/assets/page-C7jIzvcm.js +0 -1
  156. package/dist/client/assets/shell-layout-BNnUTIs6.js +0 -12
  157. package/dist/client/assets/useInfiniteQuery-D6oUaKP2.js +0 -1
  158. package/dist/client/assets/useQuery-DUPTaiAP.js +0 -1
  159. package/dist/client/assets/utils-Ck2p4uOz.js +0 -1
  160. package/dist/client/assets/workflow-Da57Slbz.js +0 -1
@@ -1 +0,0 @@
1
- import{c as X,j as t,m as Ee,O as Se,aM as ct,u as at,bs as Ge,ai as vt,p as Nt,br as ze,r as Y,o as lt,b9 as yt,bh as _t,s as W,aj as Je,ak as Ct,a as St,f as wt,z as Tt,h as kt,k as Pt,i as It,t as Ce,K as Ye}from"./index-KcN9jfkO.js";import{E as ye}from"./empty-state-DXDgk150.js";import{E as dt}from"./error-boundary-CyPUBnGI.js";import{E as $t,r as At,e as mt}from"./env-vars-editor-CJIkUQFq.js";import{P as Xe,S as Vt}from"./index-CffYvbOk.js";import{b as Mt,a as Dt}from"./use-binding-Dm7Ehllr.js";import{u as Ot,S as Rt}from"./index-CPvkxTJI.js";import{f as Ke,g as ut}from"./use-connection-0mxTykry.js";import{u as Et}from"./constants-Dd61XPju.js";import{d as Lt}from"./use-mcp-tools-BQRPyYnS.js";import{b as Ut,d as Ft}from"./use-mcp-prompts-DZbjmEdn.js";import{a as Bt}from"./mcp-oauth-CKAjCVZP.js";import{b as Ze,c as zt,d as Xt,e as Kt,B as Wt,a as qt}from"./breadcrumb-C5T3dJE6.js";import{B as Fe}from"./button-AB9cXWBb.js";import{C as Ht}from"./collection-tabs-CnXL2suk.js";import{i as Re}from"./Loading01-B_72CFT3.js";import{V as We,a as Qt}from"./layout-1uXnWnKk.js";import{C as Gt}from"./collection-tab-DV_TP_WM.js";import{I as qe,n as Jt}from"./integration-icon-DzX6vjWU.js";import{B as Be}from"./badge-67pGhcsZ.js";import{D as Yt,a as Zt,b as es,c as et}from"./dropdown-menu-Cr68JTqs.js";import{F as G,a as ts,b as J,d as q,f as Z,c as te,e as ss}from"./form-Dk1BQhBM.js";import{I as ee}from"./input-DpQoaQfS.js";import{S as tt,a as st,b as nt,c as ot,d as Q}from"./select-Bc3qnIp8.js";import{i as pt}from"./CheckCircle-BLc2ASgN.js";import{t as ns}from"./ChevronDown-DGc_B_pI.js";import{s as Oe}from"./Globe02-Dk07oP0z.js";import{s as os}from"./use-deco-chat-open-ChpE6vuj.js";import{i as rs}from"./Terminal-Cy7QpUCs.js";import{s as is}from"./Trash01-CKqlebDm.js";import{t as He}from"./Users03-CLwVIYNp.js";import{s as cs}from"./XClose-BOh776sq.js";import{U as as}from"./use-list-state-iF5wqfMX.js";import{b as ls,a as ds}from"./use-virtual-mcp-DSRU0zGP.js";import{i as ms}from"./ChevronRight-BTZr-xye.js";import{s as us}from"./Plus-_EIrkETO.js";import{f as ps}from"./formatDistanceToNow-Cb2QZZJn.js";import{a as ft,C as xt}from"./collection-table-wrapper-DSM2ewq2.js";import{C as ht}from"./collection-search-CNaPV8pR.js";import{C as gt}from"./card-DatbcemW.js";import{R as fs,T as xs}from"./tools-list-C7hTP47S.js";import"./utils-Ck2p4uOz.js";import"./Pin01-BnjsacaS.js";import"./use-organization-settings-8Md9ygEM.js";import"./useMutation-ClyYx3N6.js";import"./binder-BQNmKBxJ.js";import"./File06-BTrZX4-T.js";import"./index-D8Damm96.js";import"./constants-DBa8dlFt.js";import"./registry-utils-DBaLa5Rh.js";import"./extract-connection-data-Cr8RzppI.js";import"./github-icon-Dp3wHhYE.js";import"./generate-id-Dyweu44Y.js";import"./use-install-from-registry-1t9k1vMV.js";import"./index-CLOGlhow.js";import"./circle-alert-BctrA2dR.js";import"./index-COO_eJWG.js";import"./X-CSVVvPO3.js";import"./popover-BuD0r9BV.js";import"./spinner-rSR6baPa.js";import"./dialog-V-G7cm4S.js";import"./AlertCircle-BtLmHyy8.js";import"./ArrowUp-CS3ZollZ.js";import"./Edit01-B5aM7o8H.js";import"./Check-D3ubYXxc.js";import"./Copy01-VJRVowHJ.js";import"./monaco-editor-DEHFPbnX.js";import"./localstorage-keys-BM3WWg3m.js";import"./useQuery-DUPTaiAP.js";import"./SearchMd-DglsF9__.js";import"./Code01-BgIlNb0q.js";import"./infiniteQueryObserver-BPw7at1z.js";import"./use-create-virtual-mcp-DokNG_Sw.js";import"./index-DcpUI1e8.js";import"./DotsVertical-XxVvTjZe.js";import"./empty-state-DTsFurx5.js";import"./Inbox01-VryQyU0X.js";import"./alert-dialog-CMFFNJg5.js";import"./index-CMGKEOx9.js";import"./label-B4u_PB72.js";import"./use-llm-cYoJ456l.js";import"./Grid01-RAa135S1.js";import"./Image01-B2o6vVhA.js";import"./avatar-C0cccS60.js";import"./use-mobile-B5hu4mxq.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./List-DS9PzQZf.js";import"./view-mode-toggle-x6y4jYTo.js";import"./table-a_0ITwUC.js";function hs(s){const e=X.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=X.c(20),{connectionId:n,connectionTitle:o,connectionDescription:r,connectionIcon:c,org:a,hasExistingVirtualMcps:f}=s,u=Ee(),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(Re,{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(Re,{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=X.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}=vt(),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?Nt(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(G,{control:s.control,name:"ui_type",render:({field:i})=>t.jsxs(J,{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(q,{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(Q,{value:"HTTP",children:"HTTP"}),t.jsx(Q,{value:"SSE",children:"SSE"}),t.jsx(Q,{value:"Websocket",children:"Websocket"}),p&&t.jsxs(t.Fragment,{children:[t.jsx(Q,{value:"NPX",children:"NPX Package"}),t.jsx(Q,{value:"STDIO",children:"Custom Command"})]})]})]}),t.jsx("div",{className:"w-px bg-border"}),t.jsx(G,{control:s.control,name:"connection_url",render:({field:b})=>t.jsx(J,{className:"flex-1 min-w-0",children:t.jsx(q,{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(q,{children:t.jsx(st,{className:"h-10",children:t.jsx(nt,{})})}),t.jsxs(ot,{children:[t.jsx(Q,{value:"HTTP",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"HTTP"]})}),t.jsx(Q,{value:"SSE",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Oe,{className:"w-4 h-4"}),"SSE"]})}),t.jsx(Q,{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(Q,{value:"NPX",children:t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(Jt,{className:"w-4 h-4"}),"NPX Package"]})}),t.jsx(Q,{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(G,{control:s.control,name:"npx_package",render:({field:i})=>t.jsxs(J,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"NPM Package"}),t.jsx(q,{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(G,{control:s.control,name:"stdio_command",render:({field:i})=>t.jsxs(J,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Command"}),t.jsx(q,{children:t.jsx(ee,{placeholder:"node, bun, python...",...i,value:i.value||"",className:"h-10 rounded-lg"})}),t.jsx(Z,{})]})}),t.jsx(G,{control:s.control,name:"stdio_args",render:({field:i})=>t.jsxs(J,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Arguments"}),t.jsx(q,{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(G,{control:s.control,name:"stdio_cwd",render:({field:i})=>t.jsxs(J,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Working Directory"}),t.jsx(q,{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(G,{control:s.control,name:"env_vars",render:({field:i})=>t.jsxs(J,{className:"flex flex-col gap-3",children:[t.jsx(te,{className:"text-xs text-muted-foreground font-medium",children:"Environment Variables"}),t.jsx(q,{children:t.jsx($t,{value:i.value??[],onChange:i.onChange})}),t.jsx(Z,{})]})}),c!=="NPX"&&c!=="STDIO"&&t.jsx(G,{control:s.control,name:"connection_token",render:({field:i})=>t.jsxs(J,{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(Yt,{children:[t.jsx(Zt,{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(ns,{size:12})]})})}),t.jsxs(es,{align:"start",children:[t.jsxs(et,{onClick:o,children:[t.jsx(os,{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(q,{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(ss,{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=X.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(G,{control:n.control,name:"title",render:Ns}),t.jsx(G,{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(ts,{...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(J,{className:"w-full space-y-0",children:[t.jsx(q,{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(J,{className:"flex-1 space-y-0",children:[t.jsx(q,{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=X.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=Ee(),d=ze().location.href,[l,j]=Y.useState(""),[T,v]=Y.useState("table"),[y,_]=Y.useState("name"),[N,h]=Y.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 H=l.toLowerCase();return n.filter(K=>K.name.toLowerCase().includes(H)||K.description&&K.description.toLowerCase().includes(H))})():n;A=!y||!N?S:[...S].sort((H,K)=>{const se=H[y]||"",ne=K[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 E;e[13]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"name",header:"Name",render:ws,sortable:!0},{id:"description",header:"Description",render:Ss,cellClassName:"flex-1",sortable:!0}],e[13]=E):E=e[13];const L=E;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(We,{children:[t.jsx(xt,{viewMode:T,onViewModeChange:v,sortKey:y,sortDirection:N,onSort:B,sortOptions:z}),t.jsx(Xe,{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=X.c(6),{prompts:n,connectionId:o,org:r}=s,c=Ke(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=X.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=X.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]=Y.useState(""),[d,l]=Y.useState("table"),[j,T]=Y.useState("name"),[v,y]=Y.useState("asc");let _;e[0]!==v||e[1]!==j?(_=g=>{j===g?(y(Rs),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]||"",H=O[j]||"",K=String(S).localeCompare(String(H));return v==="asc"?K:-K}),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 E=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(We,{children:[t.jsx(xt,{viewMode:d,onViewModeChange:l,sortKey:j,sortDirection:v,onSort:N,sortOptions:E}),t.jsx(Xe,{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 Rs(s){return s==="asc"?"desc":s==="desc"?null:"asc"}function Es(s){const e=X.c(6),{resources:n,connectionId:o,org:r}=s,c=Ke(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:W().min(1,"Key is required"),value:W()}),Us=lt({title:W().min(1,"Name is required"),description:W().nullable().optional(),ui_type:Ct(["HTTP","SSE","Websocket","NPX","STDIO"]),connection_url:W().optional(),connection_token:W().nullable().optional(),npx_package:W().optional(),stdio_command:W().optional(),stdio_args:W().optional(),stdio_cwd:W().optional(),env_vars:Je(Ls).optional(),configuration_scopes:Je(W()).nullable().optional(),configuration_state:yt(W(),_t()).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=X.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 Xs(s){return{command:s.command,args:s.args?.join(" ")??"",cwd:s.cwd??""}}function Ks(s,e){const n={command:"npx",args:["-y",s]},o=mt(e);return Object.keys(o).length>0&&(n.envVars=o),n}function Ws(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"&&It(s.connection_headers)){const o=s.connection_headers,r=At(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=Xs(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=Ks(s.npx_package||"",s.env_vars||[])):s.ui_type==="STDIO"?(e="STDIO",n="",r=Ws(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=X.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=Ee(b),l=Tt(),T=ze().location.href,v=ut();let y;e[1]!==o?(y={connectionId:o},e[1]=o,e[2]=y):y=e[2];const _=Ot(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 $=Dt(k).length>0,M=n?.metadata?.repository,A=!!M?.url;let I;e[5]===Symbol.for("react.memo_cache_sentinel")?(I=kt(Us),e[5]=I):I=e[5];let E;e[6]!==n?(E=it(n),e[6]=n,e[7]=E):E=e[7];let L;e[8]!==E?(L={resolver:I,values:E},e[8]=E,e[9]=L):L=e[9];const C=Pt(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 Bt({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 bt=new URL(`/mcp/${n.id}`,window.location.origin);await l.invalidateQueries({queryKey:Ye.isMCPAuthenticated(bt.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 H=S,K=m.length,se=p.length,ne=x.length,oe=K>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]!==K?(re=h&&oe?[{id:"tools",label:"Tools",count:i?void 0:K}]:[],e[24]=i,e[25]=h,e[26]=oe,e[27]=K,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,jt=h&&_e.some(Qs)?"tools":"settings",R=_e.some(w=>w.id===c)?c:jt;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]!==R||e[49]!==le){let w;e[51]!==R?(w=U=>U.name===R,e[51]=R,e[52]=w):w=e[52],Pe=le.find(w),e[48]=R,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(zt,{children:n.title})}),e[56]=n.title,e[57]=me):me=e[57];let Ae;e[58]!==de||e[59]!==me?(Ae=t.jsx(Wt,{children:t.jsxs(qt,{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(Vt,{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(Xe,{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(We,{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]!==H||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:H})}),e[73]=_.hasOAuthToken,e[74]=n,e[75]=C,e[76]=O,e[77]=H,e[78]=h,e[79]=xe):xe=e[79];let he;e[80]!==R||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(Ht,{tabs:_e,activeTab:R,onTabChange:ae,className:"flex-1"})}),e[80]=R,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(Re,{size:32,className:"animate-spin text-muted-foreground"})}),e[84]=Ve):Ve=e[84];let ge;e[85]!==Ie||e[86]!==R||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(Y.Suspense,{fallback:Ve,children:R==="tools"?t.jsx(Fs,{tools:m,connectionId:o,org:r,isLoading:i}):R==="prompts"?t.jsx(ks,{prompts:p,connectionId:o,org:r}):R==="resources"?t.jsx(Es,{resources:x,connectionId:o,org:r}):R==="settings"?t.jsx(Rt,{connection:n,form:C,hasMcpBinding:$,isMCPAuthenticated:h,supportsOAuth:_.supportsOAuth,isServerError:_.isServerError,onAuthenticate:O,onViewReadme:A?()=>ae("readme"):void 0}):R==="readme"&&A?t.jsx(Ps,{repository:M}):Ie&&h?t.jsx(Gt,{connectionId:o,org:r,activeCollection:Ie},R):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]=R,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]!==R||e[105]!==ge?(je=t.jsx("div",{className:"flex-1 overflow-auto",children:t.jsx(dt,{children:ge},R)}),e[104]=R,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(Qt,{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=X.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=Ee(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}=St(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=wt(f).tab??"",x=Ke(r),m=ut(),i=Mt(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=Et(b);let l;s[6]!==d?(l={client:d},s[6]=d,s[7]=l):l=s[7];const{data:j}=Ut(l);let T;s[8]!==d?(T={client:d},s[8]=d,s[9]=T):T=s[9];const{data:v}=Ft(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}=Lt(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 E;s[19]!==I?(E=I.map(Zs),s[19]=I,s[20]=E):E=s[20];const L=E;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=X.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(dt,{children:t.jsx(Y.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Re,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Js,{})})}),s[0]=e):e=s[0],e}function Uo(){const s=X.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{Uo as default};
@@ -1 +0,0 @@
1
- import{M as t,Q as a}from"./index-KcN9jfkO.js";const e=t(a,{target:"draft-7"});export{e as B};