@decocms/mesh 2.52.0 → 2.53.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 (138) hide show
  1. package/dist/client/assets/{AlertCircle-BV-9KV54.js → AlertCircle-CUosFGNd.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-DOleepq-.js → ArrowLeft-CW6UTxaz.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-CTHR9b9g.js → ArrowUp-DQViolGS.js} +1 -1
  4. package/dist/client/assets/{Check-B_ssGKef.js → Check-D2dSwOsr.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-D50oUZGv.js → ChevronDown-BQcg3GVd.js} +1 -1
  6. package/dist/client/assets/{Code01-D-02qpMQ.js → Code01-BE_3ESgc.js} +1 -1
  7. package/dist/client/assets/{Copy01-CKz7ZcT_.js → Copy01-DXECPSKT.js} +1 -1
  8. package/dist/client/assets/{DotsHorizontal-Bz-Aodex.js → DotsHorizontal-C-G5ckUS.js} +1 -1
  9. package/dist/client/assets/{DotsVertical-DDPAhmiG.js → DotsVertical-BKPYeNIt.js} +1 -1
  10. package/dist/client/assets/{Download01-BCqljTfM.js → Download01-DfSyYiGh.js} +1 -1
  11. package/dist/client/assets/{Edit01-CtmglTd-.js → Edit01-B1Z5KLbC.js} +1 -1
  12. package/dist/client/assets/{File06-Byaqp0m7.js → File06-2DGjt4hs.js} +1 -1
  13. package/dist/client/assets/{FilterLines-01VwRFD1.js → FilterLines-BnzY_lhi.js} +1 -1
  14. package/dist/client/assets/{FlipBackward-CbJCZ2ap.js → FlipBackward-D4CXw7be.js} +1 -1
  15. package/dist/client/assets/{Grid01-D03UG1C2.js → Grid01-BjSv11LN.js} +1 -1
  16. package/dist/client/assets/{Home02-DUJ8vmhz.js → Home02-BZwvtXxZ.js} +1 -1
  17. package/dist/client/assets/{Image01-BxhtArxl.js → Image01-BphOjsIM.js} +1 -1
  18. package/dist/client/assets/{Inbox01-C8eSK0Or.js → Inbox01-DY3Scgnu.js} +1 -1
  19. package/dist/client/assets/{InfoCircle-zv4pB6Z2.js → InfoCircle-D9eFDDch.js} +1 -1
  20. package/dist/client/assets/{Key01-DTD2tv0i.js → Key01-6wOTm5ju.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-CFBNM492.js → LinkExternal01-OR0e2Yfm.js} +1 -1
  22. package/dist/client/assets/{List-fQCNczK3.js → List-COpk5CVa.js} +1 -1
  23. package/dist/client/assets/{Loading01-BlvTBCEj.js → Loading01-BwwKYDtF.js} +1 -1
  24. package/dist/client/assets/{Lock01-BHYhK1sW.js → Lock01-CbN_GdeR.js} +1 -1
  25. package/dist/client/assets/{Pin01-BRoo4TIE.js → Pin01-BizQ6g3R.js} +1 -1
  26. package/dist/client/assets/{Play-Cp4KV1ET.js → Play-BaS-lFep.js} +1 -1
  27. package/dist/client/assets/{Plus-DC2VdaI3.js → Plus-DFo2GFot.js} +1 -1
  28. package/dist/client/assets/{SearchMd-CX8E1sol.js → SearchMd-Bh0QJjEM.js} +1 -1
  29. package/dist/client/assets/{Share07-CeyaJ_UG.js → Share07-BYXU7wNl.js} +1 -1
  30. package/dist/client/assets/{Terminal-BJaxY_i8.js → Terminal-Fv-TNTFR.js} +1 -1
  31. package/dist/client/assets/{Trash01-N-KnxBAR.js → Trash01-CccVd7Bh.js} +1 -1
  32. package/dist/client/assets/{Upload01-Bl5_eWqH.js → Upload01-C2bCUV2p.js} +1 -1
  33. package/dist/client/assets/Users03-CDcB69PL.js +1 -0
  34. package/dist/client/assets/{X-IPns0kiv.js → X-DJomJuB1.js} +1 -1
  35. package/dist/client/assets/{XClose-_xD_4E96.js → XClose-DZXz07Zp.js} +1 -1
  36. package/dist/client/assets/agent-detail-tCJwYCyF.js +1 -0
  37. package/dist/client/assets/agents-BwpkbOHR.js +1 -0
  38. package/dist/client/assets/{alert-dialog-C-a6ZWhm.js → alert-dialog-BRa6_KDy.js} +1 -1
  39. package/dist/client/assets/{auth-catchall-DcgvudJF.js → auth-catchall-N0na9_20.js} +1 -1
  40. package/dist/client/assets/{avatar-Dyk-b-n3.js → avatar-Ck8-q6HY.js} +1 -1
  41. package/dist/client/assets/{badge-JKyboKZ4.js → badge-CZbH2WMS.js} +1 -1
  42. package/dist/client/assets/{binder-BsKWt4HA.js → binder-CQcXwjVp.js} +1 -1
  43. package/dist/client/assets/{button-kOXo0A85.js → button-B00_ydX0.js} +1 -1
  44. package/dist/client/assets/{card-BFflu5-1.js → card-BMvxppEq.js} +1 -1
  45. package/dist/client/assets/{checkbox-BNkcLUjt.js → checkbox-ImunmI7r.js} +1 -1
  46. package/dist/client/assets/{circle-alert-BJmqXS3V.js → circle-alert-CpXy4Hr8.js} +1 -1
  47. package/dist/client/assets/{collection-detail-Bn6tisnd.js → collection-detail-CYuIcnnl.js} +1 -1
  48. package/dist/client/assets/{collection-display-button-DI-ebzDR.js → collection-display-button-BPtWZQEo.js} +1 -1
  49. package/dist/client/assets/{collection-header-BwRlr8D_.js → collection-header-BNcRdMLH.js} +1 -1
  50. package/dist/client/assets/{collection-page-varm6OFV.js → collection-page-B7oO2n23.js} +1 -1
  51. package/dist/client/assets/{collection-search-CvGB-e6t.js → collection-search-Dckk_Ikz.js} +1 -1
  52. package/dist/client/assets/{collection-tab-D8IdcZ7E.js → collection-tab-DVvZlyTy.js} +1 -1
  53. package/dist/client/assets/{collection-table-wrapper-CxBbzamF.js → collection-table-wrapper-BF9XEwHD.js} +1 -1
  54. package/dist/client/assets/{connect-BTKTr797.js → connect-DJyguwtd.js} +1 -1
  55. package/dist/client/assets/{connection-card-DFWlym7J.js → connection-card-CgRN8Ayh.js} +1 -1
  56. package/dist/client/assets/connection-detail-uKqWBtPH.js +1 -0
  57. package/dist/client/assets/{connections-DQNfv12M.js → connections-y7jRQMEz.js} +1 -1
  58. package/dist/client/assets/constants-CApA9LvW.js +1 -0
  59. package/dist/client/assets/{constants-vNx5qYr4.js → constants-WkW0waEP.js} +1 -1
  60. package/dist/client/assets/{create-organization-dialog-CCqnHWS1.js → create-organization-dialog-Dt_N2MMJ.js} +1 -1
  61. package/dist/client/assets/{dialog-BFtfsOxE.js → dialog-qhbGhbZx.js} +1 -1
  62. package/dist/client/assets/{dropdown-menu-C1zXKmLZ.js → dropdown-menu-42ftE2oK.js} +1 -1
  63. package/dist/client/assets/{dynamic-plugin-layout-BlEDiG0F.js → dynamic-plugin-layout-DKOCLn6K.js} +1 -1
  64. package/dist/client/assets/{empty-state-CkkBSu0h.js → empty-state-BUcEAoKI.js} +1 -1
  65. package/dist/client/assets/{empty-state-UbxmZkNp.js → empty-state-CS9-P6od.js} +1 -1
  66. package/dist/client/assets/{env-vars-editor-DzlFBbyF.js → env-vars-editor-B9AW86vg.js} +1 -1
  67. package/dist/client/assets/{error-boundary-COBTKWN-.js → error-boundary-B15bMSig.js} +1 -1
  68. package/dist/client/assets/{extract-connection-data-aeTi4WXS.js → extract-connection-data-BDL-TEv2.js} +1 -1
  69. package/dist/client/assets/{file-browser-FoQEzkcC.js → file-browser-B7pbZypi.js} +2 -2
  70. package/dist/client/assets/{form-D5K-mHEp.js → form-BtpD-Mg0.js} +1 -1
  71. package/dist/client/assets/{grid-view-2nNfHEva.js → grid-view-DvOSXag8.js} +1 -1
  72. package/dist/client/assets/{home-CySoI98D.js → home-C_lsZqgH.js} +1 -1
  73. package/dist/client/assets/{index-BeY7naEd.js → index-3bBDO_0b.js} +1 -1
  74. package/dist/client/assets/{index-BqWAgAnn.js → index-AUAYH-kQ.js} +43 -43
  75. package/dist/client/assets/index-Bcf0VQgZ.css +1 -0
  76. package/dist/client/assets/{index-DsokbHgu.js → index-CxWk7Fwg.js} +1 -1
  77. package/dist/client/assets/{index-DL2qO0-_.js → index-Czllqz-2.js} +2 -2
  78. package/dist/client/assets/{index-KQ8CyL-e.js → index-DL0E9kqQ.js} +1 -1
  79. package/dist/client/assets/{index-XZ6br7wV.js → index-DirwRnbJ.js} +1 -1
  80. package/dist/client/assets/{infiniteQueryObserver-O4XCsEcu.js → infiniteQueryObserver-cVAe_2FL.js} +1 -1
  81. package/dist/client/assets/{input-BWLuHFym.js → input-CCqm-6CK.js} +1 -1
  82. package/dist/client/assets/{layout-DGDO8JsV.js → layout-BFy9cXIQ.js} +1 -1
  83. package/dist/client/assets/{localstorage-keys-B61c8Nm3.js → localstorage-keys-KyET-T_h.js} +1 -1
  84. package/dist/client/assets/{login-CD32rXCr.js → login-YfQaRXOk.js} +1 -1
  85. package/dist/client/assets/{mcp-oauth-CamgiVLA.js → mcp-oauth-A6Csj-pc.js} +1 -1
  86. package/dist/client/assets/{mcp-server-card-BCvzsEUo.js → mcp-server-card-m9JuE0nb.js} +1 -1
  87. package/dist/client/assets/{mcp-server-detail-ChBASU1s.js → mcp-server-detail-BsBLG9_9.js} +2 -2
  88. package/dist/client/assets/{members-DvUop9zd.js → members-xwUNGYDi.js} +1 -1
  89. package/dist/client/assets/{monaco-editor-DAw6ySE6.js → monaco-editor-Q_er1L0I.js} +1 -1
  90. package/dist/client/assets/{monitoring-CqjU2AnT.js → monitoring-_VT5f5Bq.js} +5 -5
  91. package/dist/client/assets/{oauth-callback-DBbQfGHv.js → oauth-callback-DWkO610z.js} +1 -1
  92. package/dist/client/assets/page-0dLxS1h-.js +1 -0
  93. package/dist/client/assets/{page-42VrlsaR.js → page-DFJw1vc5.js} +1 -1
  94. package/dist/client/assets/{pin-to-sidebar-button-Dod7ED9w.js → pin-to-sidebar-button-FlRaE5CN.js} +1 -1
  95. package/dist/client/assets/{plugin-empty-state-CRJS-_Mn.js → plugin-empty-state-rUw49Sla.js} +1 -1
  96. package/dist/client/assets/{plugin-header-BSfBq9u4.js → plugin-header-DBOF23Sq.js} +1 -1
  97. package/dist/client/assets/{plugins-DqYBdRNa.js → plugins-BN-3RFdx.js} +1 -1
  98. package/dist/client/assets/{popover-CjpIDlBK.js → popover-DB55iMbc.js} +1 -1
  99. package/dist/client/assets/{registry-utils-CbJdFKO5.js → registry-utils-C6h9Gx0x.js} +1 -1
  100. package/dist/client/assets/{resizable-BTuE7JTx.js → resizable-CJYOs9td.js} +1 -1
  101. package/dist/client/assets/{resource-tabs-BFmXbLJU.js → resource-tabs-CwoGib18.js} +1 -1
  102. package/dist/client/assets/{select-MknfzZ97.js → select-BQyV0pOn.js} +1 -1
  103. package/dist/client/assets/{settings-SaznwSMb.js → settings-DJgCVswE.js} +1 -1
  104. package/dist/client/assets/shell-layout-BafaBoHC.js +3 -0
  105. package/dist/client/assets/{spinner-1I7nn8Wp.js → spinner-BndxvZpI.js} +1 -1
  106. package/dist/client/assets/{switch-Chm9w9JU.js → switch-RY18eFtF.js} +1 -1
  107. package/dist/client/assets/{textarea-RbtecX7Y.js → textarea-CMLduiYq.js} +1 -1
  108. package/dist/client/assets/{tool-set-selector-CkN0nqAn.js → tool-set-selector-pswCeL17.js} +1 -1
  109. package/dist/client/assets/{tools-list-72srl-RI.js → tools-list-CaIW22pA.js} +1 -1
  110. package/dist/client/assets/{tooltip-C1NZOK0f.js → tooltip-Dpvr0rXq.js} +1 -1
  111. package/dist/client/assets/{typewriter-title-6ZW5-JJ8.js → typewriter-title-DonUWsRZ.js} +1 -1
  112. package/dist/client/assets/{use-binding-zAiYN8O2.js → use-binding-DETlsMC2.js} +1 -1
  113. package/dist/client/assets/{use-collections-VBKxjUv0.js → use-collections-DGIB8J28.js} +1 -1
  114. package/dist/client/assets/{use-connection-2Fr9IAjt.js → use-connection-B5trZtD3.js} +1 -1
  115. package/dist/client/assets/{use-create-virtual-mcp-YsqZHc18.js → use-create-virtual-mcp-C1gVg8Cb.js} +1 -1
  116. package/dist/client/assets/{use-list-state-D3jnRVjn.js → use-list-state-DmUxkG5Z.js} +1 -1
  117. package/dist/client/assets/{use-mcp-prompts-B1VV42SE.js → use-mcp-prompts-Dj17zuNr.js} +1 -1
  118. package/dist/client/assets/{use-members-CwzNzeHv.js → use-members-D9yKU0hW.js} +1 -1
  119. package/dist/client/assets/{use-mobile-CGRAcCRy.js → use-mobile-8fEdz_YY.js} +1 -1
  120. package/dist/client/assets/{use-organization-settings-BLzmckM5.js → use-organization-settings-U0agG2h9.js} +1 -1
  121. package/dist/client/assets/{use-virtual-mcp-bFwjwdoF.js → use-virtual-mcp-Bi5F5F6f.js} +1 -1
  122. package/dist/client/assets/useInfiniteQuery-Cl5a5iyP.js +1 -0
  123. package/dist/client/assets/{useMutation-DovD4v9N.js → useMutation-C9EFCZz_.js} +1 -1
  124. package/dist/client/assets/useQuery-Gixvofai.js +1 -0
  125. package/dist/client/assets/{view-mode-toggle-DvUJ6WYM.js → view-mode-toggle-KIDFLeEj.js} +1 -1
  126. package/dist/client/assets/{workflow-DgXQxSf2.js → workflow-daJYPL0_.js} +1 -1
  127. package/dist/client/index.html +2 -2
  128. package/package.json +1 -1
  129. package/dist/client/assets/CpuChip02-1S35XCw9.js +0 -1
  130. package/dist/client/assets/agent-detail-CFHXx5RC.js +0 -1
  131. package/dist/client/assets/agents-bFzMocMo.js +0 -1
  132. package/dist/client/assets/connection-detail-kcBx0vbd.js +0 -1
  133. package/dist/client/assets/constants-36ynutkd.js +0 -1
  134. package/dist/client/assets/index-BXgcsaLF.css +0 -1
  135. package/dist/client/assets/page-C9YeHuNE.js +0 -1
  136. package/dist/client/assets/shell-layout-D4LShiOG.js +0 -3
  137. package/dist/client/assets/useInfiniteQuery-B460HLvV.js +0 -1
  138. package/dist/client/assets/useQuery-DlNiDu4m.js +0 -1
@@ -1 +1 @@
1
- import{c as u,l as m}from"./index-DL2qO0-_.js";import{u as c}from"./useQuery-DlNiDu4m.js";import{K as n}from"./constants-vNx5qYr4.js";async function f(r){return r.getServerCapabilities()?.resources?await r.listResources():{resources:[]}}async function q(r,e){return await r.readResource({uri:e})}function g(r){const e=u.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpResourcesList(t),e[3]=t,e[4]=i):i=e[4];let a;e[5]!==t?(a=()=>f(t),e[5]=t,e[6]=a):a=e[6];const o=s.staleTime??3e4;let l;return e[7]!==s||e[8]!==i||e[9]!==a||e[10]!==o?(l={...s,queryKey:i,queryFn:a,staleTime:o,retry:!1},e[7]=s,e[8]=i,e[9]=a,e[10]=o,e[11]=l):l=e[11],c(l)}async function p(r){return r.getServerCapabilities()?.prompts?await r.listPrompts():{prompts:[]}}async function R(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function w(r){const e=u.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let a;e[5]!==t?(a=()=>p(t),e[5]=t,e[6]=a):a=e[6];const o=s.staleTime??3e4;let l;return e[7]!==s||e[8]!==i||e[9]!==a||e[10]!==o?(l={...s,queryKey:i,queryFn:a,staleTime:o,retry:!1},e[7]=s,e[8]=i,e[9]=a,e[10]=o,e[11]=l):l=e[11],m(l)}function C(r){const e=u.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let a;e[5]!==t?(a=()=>p(t),e[5]=t,e[6]=a):a=e[6];const o=s.staleTime??3e4;let l;return e[7]!==s||e[8]!==i||e[9]!==a||e[10]!==o?(l={...s,queryKey:i,queryFn:a,staleTime:o,retry:!1},e[7]=s,e[8]=i,e[9]=a,e[10]=o,e[11]=l):l=e[11],c(l)}export{f as a,C as b,g as c,R as g,p as l,q as r,w as u};
1
+ import{c as u,l as m}from"./index-Czllqz-2.js";import{u as c}from"./useQuery-Gixvofai.js";import{K as n}from"./constants-WkW0waEP.js";async function f(r){return r.getServerCapabilities()?.resources?await r.listResources():{resources:[]}}async function q(r,e){return await r.readResource({uri:e})}function g(r){const e=u.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpResourcesList(t),e[3]=t,e[4]=i):i=e[4];let a;e[5]!==t?(a=()=>f(t),e[5]=t,e[6]=a):a=e[6];const o=s.staleTime??3e4;let l;return e[7]!==s||e[8]!==i||e[9]!==a||e[10]!==o?(l={...s,queryKey:i,queryFn:a,staleTime:o,retry:!1},e[7]=s,e[8]=i,e[9]=a,e[10]=o,e[11]=l):l=e[11],c(l)}async function p(r){return r.getServerCapabilities()?.prompts?await r.listPrompts():{prompts:[]}}async function R(r,e,t){if(!r.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await r.getPrompt({name:e,arguments:t??{}})}function w(r){const e=u.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let a;e[5]!==t?(a=()=>p(t),e[5]=t,e[6]=a):a=e[6];const o=s.staleTime??3e4;let l;return e[7]!==s||e[8]!==i||e[9]!==a||e[10]!==o?(l={...s,queryKey:i,queryFn:a,staleTime:o,retry:!1},e[7]=s,e[8]=i,e[9]=a,e[10]=o,e[11]=l):l=e[11],m(l)}function C(r){const e=u.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let i;e[3]!==t?(i=n.mcpPromptsList(t),e[3]=t,e[4]=i):i=e[4];let a;e[5]!==t?(a=()=>p(t),e[5]=t,e[6]=a):a=e[6];const o=s.staleTime??3e4;let l;return e[7]!==s||e[8]!==i||e[9]!==a||e[10]!==o?(l={...s,queryKey:i,queryFn:a,staleTime:o,retry:!1},e[7]=s,e[8]=i,e[9]=a,e[10]=o,e[11]=l):l=e[11],c(l)}export{f as a,C as b,g as c,R as g,p as l,q as r,w as u};
@@ -1 +1 @@
1
- import{c as n,u as o,l as u,K as i,e as a}from"./index-DL2qO0-_.js";function m(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:c},e[2]=t,e[3]=s):s=e[3],u(s)}function c(){return a.organization.listMembers()}export{m as u};
1
+ import{c as n,u as o,l as u,K as i,e as a}from"./index-Czllqz-2.js";function m(){const e=n.c(4),{locator:r}=o();let t;e[0]!==r?(t=i.members(r),e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s={queryKey:t,queryFn:c},e[2]=t,e[3]=s):s=e[3],u(s)}function c(){return a.organization.listMembers()}export{m as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-DL2qO0-_.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-Czllqz-2.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{c as m,u as T,l as d,N as y,K as g}from"./index-DL2qO0-_.js";import{u as _}from"./useMutation-DovD4v9N.js";import{a as p,u as A}from"./constants-vNx5qYr4.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
1
+ import{c as m,u as T,l as d,N as y,K as g}from"./index-Czllqz-2.js";import{u as _}from"./useMutation-C9EFCZz_.js";import{a as p,u as A}from"./constants-WkW0waEP.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
@@ -1 +1 @@
1
- import{c,u as r}from"./index-DL2qO0-_.js";import{b as a,u as C,a as I}from"./use-collections-VBKxjUv0.js";import{a as l,u}from"./constants-vNx5qYr4.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
1
+ import{c,u as r}from"./index-Czllqz-2.js";import{b as a,u as C,a as I}from"./use-collections-DGIB8J28.js";import{a as l,u}from"./constants-WkW0waEP.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-cVAe_2FL.js";import{W as i}from"./index-Czllqz-2.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{aP as l,aQ as p,aR as n,aS as d,aT as h,N as b,r as o,aU as m,aV as f}from"./index-DL2qO0-_.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
1
+ import{aP as l,aQ as p,aR as n,aS as d,aT as h,N as b,r as o,aU as m,aV as f}from"./index-Czllqz-2.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
@@ -0,0 +1 @@
1
+ import{W as u,X as s}from"./index-Czllqz-2.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -1 +1 @@
1
- import{c as Y,r as V,j as i}from"./index-DL2qO0-_.js";import{c as n}from"./button-kOXo0A85.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
1
+ import{c as Y,r as V,j as i}from"./index-Czllqz-2.js";import{c as n}from"./button-B00_ydX0.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
@@ -1 +1 @@
1
- import{u as k,e as L,f as P,r as v,j as e,c as B}from"./index-DL2qO0-_.js";import{d as _}from"./constants-vNx5qYr4.js";import{C as R}from"./collection-tab-D8IdcZ7E.js";import{a as z,b as A}from"./use-connection-2Fr9IAjt.js";import{B as y}from"./button-kOXo0A85.js";import{E as F}from"./empty-state-CkkBSu0h.js";import{C as M}from"./collection-header-BwRlr8D_.js";import{a as O,b as H}from"./use-binding-zAiYN8O2.js";import{i as T}from"./Loading01-BlvTBCEj.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-DI-ebzDR.js";import"./dropdown-menu-C1zXKmLZ.js";import"./Grid01-D03UG1C2.js";import"./ArrowUp-CTHR9b9g.js";import"./Check-B_ssGKef.js";import"./List-fQCNczK3.js";import"./tooltip-C1NZOK0f.js";import"./view-mode-toggle-DvUJ6WYM.js";import"./collection-search-CvGB-e6t.js";import"./SearchMd-CX8E1sol.js";import"./input-BWLuHFym.js";import"./card-BFflu5-1.js";import"./Copy01-CKz7ZcT_.js";import"./DotsVertical-DDPAhmiG.js";import"./Edit01-CtmglTd-.js";import"./use-list-state-D3jnRVjn.js";import"./use-mobile-CGRAcCRy.js";import"./Trash01-N-KnxBAR.js";import"./collection-table-wrapper-CxBbzamF.js";import"./empty-state-UbxmZkNp.js";import"./Inbox01-C8eSK0Or.js";import"./avatar-Dyk-b-n3.js";import"./useQuery-DlNiDu4m.js";import"./pin-to-sidebar-button-Dod7ED9w.js";import"./Pin01-BRoo4TIE.js";import"./use-organization-settings-BLzmckM5.js";import"./useMutation-DovD4v9N.js";import"./use-collections-VBKxjUv0.js";import"./constants-36ynutkd.js";import"./alert-dialog-C-a6ZWhm.js";import"./Plus-DC2VdaI3.js";import"./layout-DGDO8JsV.js";import"./ArrowLeft-DOleepq-.js";import"./binder-BsKWt4HA.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=k(),{data:h}=L.useSession(),p=P(),[a,w]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){w(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{w(!1)}}},j=()=>{p({to:"/$org/mcps",params:{org:m},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(y,{variant:"outline",onClick:l,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(y,{variant:"outline",onClick:j,children:"Custom Connection"})]})})}function q(i){const t=B.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=k(),p=A();let a;t[0]!==p||t[1]!==o?(a={connections:p,binding:o},t[0]=p,t[1]=o,t[2]=a):a=t[2];const l=O(a)[0],j=H(l);let c;if(t[3]!==n||t[4]!==j){let C;t[6]!==n?(C=$=>$.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=C):C=t[7],c=j.find(C),t[3]=n,t[4]=j,t[5]=c}else c=t[5];const S=c,[E,W]=v.useState(null),N=l&&S&&(l.id||E);let d;t[8]!==s?(d=e.jsx(M,{title:s}),t[8]=s,t[9]=d):d=t[9];let I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=I):I=t[10];let f;t[11]!==s?(f=s.toLowerCase(),t[11]=s,t[12]=f):f=t[12];let u;t[13]!==f?(u=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[I,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",f,"..."]})]}),t[13]=f,t[14]=u):u=t[14];let g;t[15]!==S||t[16]!==l||t[17]!==r||t[18]!==h||t[19]!==N||t[20]!==m?(g=N?e.jsx(R,{connectionId:l.id,org:h.slug,activeCollection:S}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(V,{title:r.title,description:r.description,wellKnownMcp:m,imageSrc:r.imageSrc,onConnected:C=>{W(C)}})}),t[15]=S,t[16]=l,t[17]=r,t[18]=h,t[19]=N,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==u||t[23]!==g?(x=e.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:e.jsx(v.Suspense,{fallback:u,children:g})}),t[22]=u,t[23]=g,t[24]=x):x=t[24];let b;return t[25]!==d||t[26]!==x?(b=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=b):b=t[27],b}function Rt(){const i=B.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:_()}),i[0]=t):t=i[0],t}export{Rt as default};
1
+ import{u as k,e as L,f as P,r as v,j as e,c as B}from"./index-Czllqz-2.js";import{d as _}from"./constants-WkW0waEP.js";import{C as R}from"./collection-tab-DVvZlyTy.js";import{a as z,b as A}from"./use-connection-B5trZtD3.js";import{B as y}from"./button-B00_ydX0.js";import{E as F}from"./empty-state-BUcEAoKI.js";import{C as M}from"./collection-header-BNcRdMLH.js";import{a as O,b as H}from"./use-binding-DETlsMC2.js";import{i as T}from"./Loading01-BwwKYDtF.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-BPtWZQEo.js";import"./dropdown-menu-42ftE2oK.js";import"./Grid01-BjSv11LN.js";import"./ArrowUp-DQViolGS.js";import"./Check-D2dSwOsr.js";import"./List-COpk5CVa.js";import"./tooltip-Dpvr0rXq.js";import"./view-mode-toggle-KIDFLeEj.js";import"./collection-search-Dckk_Ikz.js";import"./SearchMd-Bh0QJjEM.js";import"./input-CCqm-6CK.js";import"./card-BMvxppEq.js";import"./Copy01-DXECPSKT.js";import"./DotsVertical-BKPYeNIt.js";import"./Edit01-B1Z5KLbC.js";import"./use-list-state-DmUxkG5Z.js";import"./use-mobile-8fEdz_YY.js";import"./Trash01-CccVd7Bh.js";import"./collection-table-wrapper-BF9XEwHD.js";import"./empty-state-CS9-P6od.js";import"./Inbox01-DY3Scgnu.js";import"./avatar-Ck8-q6HY.js";import"./useQuery-Gixvofai.js";import"./pin-to-sidebar-button-FlRaE5CN.js";import"./Pin01-BizQ6g3R.js";import"./use-organization-settings-U0agG2h9.js";import"./useMutation-C9EFCZz_.js";import"./use-collections-DGIB8J28.js";import"./constants-CApA9LvW.js";import"./alert-dialog-BRa6_KDy.js";import"./Plus-DFo2GFot.js";import"./layout-BFy9cXIQ.js";import"./ArrowLeft-CW6UTxaz.js";import"./binder-CQcXwjVp.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=k(),{data:h}=L.useSession(),p=P(),[a,w]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){w(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{w(!1)}}},j=()=>{p({to:"/$org/mcps",params:{org:m},search:{action:"create"}})};return e.jsx(F,{image:n?e.jsx("img",{src:n,alt:i,width:336,height:320,className:"max-w-full h-auto"}):null,title:i,description:t,actions:e.jsxs(e.Fragment,{children:[e.jsxs(y,{variant:"outline",onClick:l,disabled:a||!o,children:[o?.icon&&e.jsx("img",{src:o.icon,alt:"",className:"size-4"}),a?"Installing...":`Install ${o?.title||"MCP"}`]}),e.jsx(y,{variant:"outline",onClick:j,children:"Custom Connection"})]})})}function q(i){const t=B.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=k(),p=A();let a;t[0]!==p||t[1]!==o?(a={connections:p,binding:o},t[0]=p,t[1]=o,t[2]=a):a=t[2];const l=O(a)[0],j=H(l);let c;if(t[3]!==n||t[4]!==j){let C;t[6]!==n?(C=$=>$.name.toLowerCase()===n.toLowerCase(),t[6]=n,t[7]=C):C=t[7],c=j.find(C),t[3]=n,t[4]=j,t[5]=c}else c=t[5];const S=c,[E,W]=v.useState(null),N=l&&S&&(l.id||E);let d;t[8]!==s?(d=e.jsx(M,{title:s}),t[8]=s,t[9]=d):d=t[9];let I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=I):I=t[10];let f;t[11]!==s?(f=s.toLowerCase(),t[11]=s,t[12]=f):f=t[12];let u;t[13]!==f?(u=e.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[I,e.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",f,"..."]})]}),t[13]=f,t[14]=u):u=t[14];let g;t[15]!==S||t[16]!==l||t[17]!==r||t[18]!==h||t[19]!==N||t[20]!==m?(g=N?e.jsx(R,{connectionId:l.id,org:h.slug,activeCollection:S}):e.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:e.jsx(V,{title:r.title,description:r.description,wellKnownMcp:m,imageSrc:r.imageSrc,onConnected:C=>{W(C)}})}),t[15]=S,t[16]=l,t[17]=r,t[18]=h,t[19]=N,t[20]=m,t[21]=g):g=t[21];let x;t[22]!==u||t[23]!==g?(x=e.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:e.jsx(v.Suspense,{fallback:u,children:g})}),t[22]=u,t[23]=g,t[24]=x):x=t[24];let b;return t[25]!==d||t[26]!==x?(b=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=b):b=t[27],b}function Rt(){const i=B.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(q,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:_()}),i[0]=t):t=i[0],t}export{Rt as default};
@@ -3,8 +3,8 @@
3
3
  <head>
4
4
  <title>MCP Mesh</title>
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <script type="module" crossorigin src="/assets/index-DL2qO0-_.js"></script>
7
- <link rel="stylesheet" crossorigin href="/assets/index-BXgcsaLF.css">
6
+ <script type="module" crossorigin src="/assets/index-Czllqz-2.js"></script>
7
+ <link rel="stylesheet" crossorigin href="/assets/index-Bcf0VQgZ.css">
8
8
  </head>
9
9
  <body>
10
10
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/mesh",
3
- "version": "2.52.0",
3
+ "version": "2.53.0",
4
4
  "description": "MCP Mesh - Self-hostable MCP Gateway for managing AI connections and tools",
5
5
  "author": "Deco team",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- import{r}from"./index-DL2qO0-_.js";const i=({size:e=24,color:t="currentColor",...o})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},r.createElement("path",{d:"M9 2v3m6-3v3M9 19v3m6-3v3m4-13h3m-3 5h3M2 9h3m-3 5h3m4.8 5h4.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 16.72 19 15.88 19 14.2V9.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C16.72 5 15.88 5 14.2 5H9.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C5 7.28 5 8.12 5 9.8v4.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C7.28 19 8.12 19 9.8 19Z"}));i.displayName="CpuChip02";export{i};
@@ -1 +0,0 @@
1
- import{r as y,c as M,j as t,p as nt,f as We,a as rt,g as it,V as at,s as ct,bg as dt,bq as mt,u as ut,b as ft,d as xt,a8 as Re}from"./index-DL2qO0-_.js";import{I as Ae,E as ht}from"./empty-state-CkkBSu0h.js";import{E as Ye}from"./error-boundary-COBTKWN-.js";import{C as Ge}from"./checkbox-BNkcLUjt.js";import{c as G,B as q}from"./button-kOXo0A85.js";import{i as pt}from"./ArrowLeft-DOleepq-.js";import{b as He}from"./use-connection-2Fr9IAjt.js";import{C as gt}from"./collection-search-CvGB-e6t.js";import{I as Ve}from"./input-BWLuHFym.js";import{s as jt}from"./Plus-DC2VdaI3.js";import{i as bt}from"./X-IPns0kiv.js";import{P as vt}from"./pin-to-sidebar-button-Dod7ED9w.js";import{T as yt}from"./tool-set-selector-CkN0nqAn.js";import{I as Nt,R as St,a as Ct,u as De}from"./index-DsokbHgu.js";import{c as Fe,K as Le}from"./constants-vNx5qYr4.js";import{l as _t,a as wt}from"./use-mcp-prompts-B1VV42SE.js";import{u as kt,a as It}from"./use-virtual-mcp-bFwjwdoF.js";import{s as Ke}from"./slugify-CEUa2lfQ.js";import{B as Qe}from"./badge-JKyboKZ4.js";import{b as Tt,c as Mt,a as $t,D as Pt}from"./dialog-BFtfsOxE.js";import{F as de,a as zt,b as me,d as ue,f as fe,c as Je}from"./form-D5K-mHEp.js";import{R as Rt}from"./resource-tabs-BFmXbLJU.js";import{S as At,a as Vt,b as Et,c as Dt,d as Oe}from"./select-MknfzZ97.js";import{S as Ft}from"./switch-Chm9w9JU.js";import{T as Lt}from"./textarea-RbtecX7Y.js";import{b as Q,c as J,T as Z,a as X}from"./tooltip-C1NZOK0f.js";import{i as Ze}from"./Check-B_ssGKef.js";import{i as Ot}from"./Code01-D-02qpMQ.js";import{a as Bt}from"./Copy01-CKz7ZcT_.js";import{i as qt}from"./CpuChip02-1S35XCw9.js";import{i as Ut}from"./FlipBackward-CbJCZ2ap.js";import{i as Ce}from"./InfoCircle-zv4pB6Z2.js";import{i as ze}from"./Loading01-BlvTBCEj.js";import{i as Wt}from"./Share07-CeyaJ_UG.js";import{a as Yt,V as Gt,b as Ht}from"./layout-DGDO8JsV.js";import"./use-collections-VBKxjUv0.js";import"./useMutation-DovD4v9N.js";import"./useQuery-DlNiDu4m.js";import"./SearchMd-CX8E1sol.js";import"./Pin01-BRoo4TIE.js";import"./use-organization-settings-BLzmckM5.js";import"./ChevronDown-D50oUZGv.js";const Xe=({size:o=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},y.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Xe.displayName="ArrowsRight";const et=({size:o=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},y.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));et.displayName="Circle";const tt=({size:o=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},y.createElement("path",{d:"M10 17.659V20a2 2 0 1 0 4 0v-2.341M12 2v1m-9 9H2m3.5-6.5-.6-.6m13.6.6.6-.6M22 12h-1m-3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"}));tt.displayName="Lightbulb02";const st=({size:o=24,color:e="currentColor",...s})=>y.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},y.createElement("path",{d:"M7 3v3.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C7.76 8 8.04 8 8.6 8h6.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C17 7.24 17 6.96 17 6.4V4m0 17v-6.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C16.24 13 15.96 13 15.4 13H8.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C7 13.76 7 14.04 7 14.6V21M21 9.325V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3h6.875c.489 0 .733 0 .963.055.204.05.4.13.579.24.201.123.374.296.72.642l3.126 3.126c.346.346.519.519.642.72.11.18.19.374.24.579.055.23.055.474.055.963Z"}));st.displayName="Save01";const Kt=y.memo(function(e){const s=M.c(20),{connection:l,isSelected:n,hasItemsEnabled:r,activeItemsCount:i,totalItemsCount:a,onSelect:m,onToggle:c}=e,d=n?"bg-accent/50":"hover:bg-muted/50";let u;s[0]!==d?(u=G("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),s[0]=d,s[1]=u):u=s[1];let f;s[2]!==l.icon||s[3]!==l.title?(f=t.jsx(Ae,{icon:l.icon,name:l.title,size:"xs"}),s[2]=l.icon,s[3]=l.title,s[4]=f):f=s[4];let h;s[5]!==l.title?(h=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:l.title})}),s[5]=l.title,s[6]=h):h=s[6];let p;s[7]!==m||s[8]!==f||s[9]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:m,children:[f,h]}),s[7]=m,s[8]=f,s[9]=h,s[10]=p):p=s[10];let g;s[11]!==i||s[12]!==r||s[13]!==c||s[14]!==a?(g=a>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[i,"/",a]}),t.jsx(Ge,{checked:r,onCheckedChange:c,onClick:Jt})]}),s[11]=i,s[12]=r,s[13]=c,s[14]=a,s[15]=g):g=s[15];let S;return s[16]!==u||s[17]!==p||s[18]!==g?(S=t.jsxs("div",{className:u,children:[p,g]}),s[16]=u,s[17]=p,s[18]=g,s[19]=S):S=s[19],S}),Qt=y.memo(function(e){const s=M.c(18),{connectionId:l,item:n,isSelected:r,onToggle:i}=e,a=`item-${l}-${n.id}`,m=r?"text-foreground":"text-muted-foreground";let c;s[0]!==m?(c=G("text-sm font-medium",m),s[0]=m,s[1]=c):c=s[1];let d;s[2]!==n.name||s[3]!==c?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:c,children:n.name})}),s[2]=n.name,s[3]=c,s[4]=d):d=s[4];let u;s[5]!==n.description?(u=n.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:n.description}),s[5]=n.description,s[6]=u):u=s[6];let f;s[7]!==d||s[8]!==u?(f=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,u]}),s[7]=d,s[8]=u,s[9]=f):f=s[9];const h=`item-${l}-${n.id}`;let p;s[10]!==r||s[11]!==i||s[12]!==h?(p=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(Ge,{id:h,checked:r,onCheckedChange:i,onClick:Zt})}),s[10]=r,s[11]=i,s[12]=h,s[13]=p):p=s[13];let g;return s[14]!==a||s[15]!==f||s[16]!==p?(g=t.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:a,children:[f,p]}),s[14]=a,s[15]=f,s[16]=p,s[17]=g):g=s[17],g});function ot({itemSet:o,onItemSetChange:e,getItems:s,itemLabel:l,emptyItemsMessage:n,extraContent:r,excludeVirtualMcpId:i}){const[a,m]=y.useState(""),c=y.useDeferredValue(a),[d,u]=y.useState("all"),[f,h]=y.useState(!1),p=y.useRef(new Set(Object.keys(o))),g=He({searchTerm:c.trim()||void 0}),S=i?g.filter(x=>x.connection_type!=="VIRTUAL"?!0:nt(x.connection_url)!==i):g,C=p.current,I=[...C.values()].map(x=>S.find(N=>N.id===x)).filter(x=>x!==void 0),k=S.filter(x=>!C.has(x.id)),j=[...I,...k],v=x=>{const N=o[x];return N!==void 0&&N.length>0},_=j.filter(x=>{if(d==="all")return!0;const N=v(x.id);return d==="selected"?N:d==="unselected"?!N:!0}),[T,$]=y.useState(j[0]?.id??null),w=T?j.find(x=>x.id===T)??null:null,P=w?s(w):[],V=(x,N)=>o[x]?.includes(N)??!1,z=(x,N)=>{const D=o[x]??[],F=D.includes(N),U={...o};if(F){const W=D.filter(H=>H!==N);W.length===0?delete U[x]:U[x]=W}else U[x]=[...D,N];e(U)},R=x=>{const N=j.find(O=>O.id===x);if(!N)return;const D=s(N);if(D.length===0)return;const F=o[x]??[],U=D.map(O=>O.id),W=F.length>0&&U.every(O=>F.includes(O)),H={...o};W?delete H[x]:(H[x]=U,$(x)),e(H)},E=x=>{$(x),h(!0)},L=()=>{h(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:G("w-full md:w-80 border-r border-border flex flex-col",f&&"hidden md:flex"),children:[t.jsx(gt,{value:a,onChange:m,placeholder:"Search Connections..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>u("all"),className:G("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>u("selected"),className:G("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>u("unselected"),className:G("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",d==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:_.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:a?"No connections found":d==="selected"?"No servers selected":d==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:_.map(x=>{const D=s(x).length,F=o[x.id]?.length??0;return t.jsx(Kt,{connection:x,isSelected:T===x.id,hasItemsEnabled:v(x.id),activeItemsCount:F,totalItemsCount:D,onSelect:()=>E(x.id),onToggle:()=>R(x.id)},x.id)})})})]}),t.jsx("div",{className:G("flex-1 flex-col",f?"flex":"hidden md:flex"),children:w?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[t.jsx(q,{variant:"ghost",size:"sm",onClick:L,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(pt,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(Ae,{icon:w.icon,name:w.title,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:w.title}),w.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:w.description})]})]})]}),r,t.jsx("div",{className:"flex-1 overflow-auto p-4",children:P.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:n||`This connection has no ${l} available`}):t.jsx("div",{className:"space-y-2",children:P.map(x=>t.jsx(Qt,{connectionId:w.id,item:x,isSelected:V(w.id,x.id),onToggle:()=>z(w.id,x.id)},x.id))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Select a connection to view its ",l]})})})]})}function Jt(o){return o.stopPropagation()}function Zt(o){return o.stopPropagation()}function Xt(o){const e=M.c(7),{promptSet:s,onPromptSetChange:l,connectionPrompts:n,excludeVirtualMcpId:r}=o;let i;e[0]!==n?(i=c=>(n.get(c.id)??[]).map(es),e[0]=n,e[1]=i):i=e[1];const a=i;let m;return e[2]!==r||e[3]!==a||e[4]!==l||e[5]!==s?(m=t.jsx(ot,{itemSet:s,onItemSetChange:l,getItems:a,itemLabel:"prompts",emptyItemsMessage:"This connection has no prompts available",excludeVirtualMcpId:r}),e[2]=r,e[3]=a,e[4]=l,e[5]=s,e[6]=m):m=e[6],m}function es(o){return{id:o.name,name:o.name,description:o.description}}function ts(o){return o.includes("*")}function ss(o){const e=M.c(27),{patterns:s,onAddPattern:l,onRemovePattern:n}=o,[r,i]=y.useState("");let a;e[0]!==r||e[1]!==l||e[2]!==s?(a=()=>{const f=r.trim();f&&!s.includes(f)&&(l(f),i(""))},e[0]=r,e[1]=l,e[2]=s,e[3]=a):a=e[3];const m=a;let c;e[4]!==m?(c=f=>{f.key==="Enter"&&(f.preventDefault(),m())},e[4]=m,e[5]=c):c=e[5];const d=c;let u;if(e[6]!==m||e[7]!==d||e[8]!==r||e[9]!==n||e[10]!==s){const f=s.filter(ts);let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("code",{children:"*"}),e[12]=h):h=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",h," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=p):p=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=_=>i(_.target.value),e[14]=g):g=e[14];let S;e[15]!==d||e[16]!==r?(S=t.jsx(Ve,{value:r,onChange:g,onKeyDown:d,placeholder:"e.g., file:///**/*.ts or db://users/*",className:"flex-1 text-sm"}),e[15]=d,e[16]=r,e[17]=S):S=e[17];let C;e[18]!==r?(C=r.trim(),e[18]=r,e[19]=C):C=e[19];const I=!C;let k;e[20]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(jt,{size:16}),e[20]=k):k=e[20];let j;e[21]!==m||e[22]!==I?(j=t.jsx(q,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:I,children:k}),e[21]=m,e[22]=I,e[23]=j):j=e[23];let v;e[24]!==j||e[25]!==S?(v=t.jsxs("div",{className:"flex gap-2",children:[S,j]}),e[24]=j,e[25]=S,e[26]=v):v=e[26],u=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[p,v,f.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:f.map(_=>t.jsxs("div",{className:"flex items-center gap-1 px-2 py-1 bg-muted rounded-md text-xs",children:[t.jsx("code",{className:"text-foreground",children:_}),t.jsx("button",{type:"button",onClick:()=>n(_),className:"text-muted-foreground hover:text-foreground",children:t.jsx(bt,{size:12})})]},_))})]}),e[6]=m,e[7]=d,e[8]=r,e[9]=n,e[10]=s,e[11]=u}else u=e[11];return u}function os(o){const e=M.c(24),{resourceSet:s,onResourceSetChange:l,connectionResources:n,excludeVirtualMcpId:r}=o,[i]=y.useState(null);let a;e[0]!==n?(a=j=>(n.get(j.id)??[]).map(ls),e[0]=n,e[1]=a):a=e[1];const m=a;let c;e[2]!==l||e[3]!==s?(c=(j,v)=>{const _=s[j]??[];_.includes(v)||l({...s,[j]:[..._,v]})},e[2]=l,e[3]=s,e[4]=c):c=e[4];const d=c;let u;e[5]!==l||e[6]!==s?(u=(j,v)=>{const T=(s[j]??[]).filter($=>$!==v);if(T.length===0){const $={...s};delete $[j],l($)}else l({...s,[j]:T})},e[5]=l,e[6]=s,e[7]=u):u=e[7];const f=u;let h;e[8]!==l?(h=j=>{l(j)},e[8]=l,e[9]=h):h=e[9];const p=h;let g;e[10]!==s||e[11]!==i?(g=i?s[i]??[]:[],e[10]=s,e[11]=i,e[12]=g):g=e[12];const S=g;let C;e[13]!==d||e[14]!==f||e[15]!==i||e[16]!==S?(C=i?t.jsx(ss,{patterns:S,onAddPattern:j=>d(i,j),onRemovePattern:j=>f(i,j)}):null,e[13]=d,e[14]=f,e[15]=i,e[16]=S,e[17]=C):C=e[17];const I=C;let k;return e[18]!==r||e[19]!==I||e[20]!==m||e[21]!==p||e[22]!==s?(k=t.jsx("div",{className:"h-full",children:t.jsx(ot,{itemSet:s,onItemSetChange:p,getItems:m,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:I,excludeVirtualMcpId:r})}),e[18]=r,e[19]=I,e[20]=m,e[21]=p,e[22]=s,e[23]=k):k=e[23],k}function ls(o){return{id:o.uri,name:o.name||o.uri,description:o.description||o.uri}}function ns(o){const e=M.c(8);let s,l;e[0]!==o?({className:s,...l}=o,e[0]=o,e[1]=s,e[2]=l):(s=e[1],l=e[2]);let n;e[3]!==s?(n=G("grid gap-3",s),e[3]=s,e[4]=n):n=e[4];let r;return e[5]!==l||e[6]!==n?(r=t.jsx(St,{"data-slot":"radio-group",className:n,...l}),e[5]=l,e[6]=n,e[7]=r):r=e[7],r}function Pe(o){const e=M.c(9);let s,l;e[0]!==o?({className:s,...l}=o,e[0]=o,e[1]=s,e[2]=l):(s=e[1],l=e[2]);let n;e[3]!==s?(n=G("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",s),e[3]=s,e[4]=n):n=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ct,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(et,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=r):r=e[5];let i;return e[6]!==l||e[7]!==n?(i=t.jsx(Nt,{"data-slot":"radio-group-item",className:n,...l,children:r}),e[6]=l,e[7]=n,e[8]=i):i=e[8],i}function rs(o){const s=new TextEncoder().encode(o),l=Array.from(s,n=>String.fromCharCode(n)).join("");return btoa(l)}const is=at.pick({title:!0,description:!0,status:!0,tool_selection_mode:!0,metadata:!0}).extend({title:ct().min(1,"Name is required").max(255)});function Be(o,e){const s={};for(const l of o.connections)if(l.selected_tools===null){const n=e.get(l.connection_id)??[];n.length>0&&(s[l.connection_id]=n)}else l.selected_tools.length>0&&(s[l.connection_id]=l.selected_tools);return s}function qe(o){const e={};for(const s of o.connections)s.selected_resources!==null&&s.selected_resources!==void 0&&s.selected_resources.length>0&&(e[s.connection_id]=s.selected_resources);return e}function Ue(o){const e={};for(const s of o.connections)s.selected_prompts!==null&&s.selected_prompts!==void 0&&s.selected_prompts.length>0&&(e[s.connection_id]=s.selected_prompts);return e}function as(o,e,s,l){const n=new Set([...Object.keys(o),...Object.keys(e),...Object.keys(s)]);return Array.from(n).map(r=>{const i=o[r]??[],a=l.get(r)??[],m=a.length>0&&a.every(c=>i.includes(c));return{connection_id:r,selected_tools:i.length===0||m?null:i,selected_resources:e[r]??null,selected_prompts:s[r]??null}})}function cs(o){const e=M.c(10),{url:s}=o,[l,n]=y.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),n(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=s,e[1]=r):r=e[1];const i=r;let a;e[2]!==l?(a=l?t.jsx(Ze,{size:20,className:"text-green-600"}):t.jsx(Bt,{size:20}),e[2]=l,e[3]=a):a=e[3];const m=l?"Copied!":"Copy URL";let c;e[4]!==m?(c=t.jsx("span",{className:"text-xs font-medium",children:m}),e[4]=m,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==a||e[8]!==c?(d=t.jsxs(q,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[a,c]}),e[6]=i,e[7]=a,e[8]=c,e[9]=d):d=e[9],d}function ds(o){const e=M.c(7),{url:s,serverName:l}=o;let n;e[0]!==l||e[1]!==s?(n=()=>{const c=Ke(l),u=rs(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),f=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(c)}&config=${encodeURIComponent(u)}`;window.open(f,"_blank"),Re.success("Opening Cursor...")},e[0]=l,e[1]=s,e[2]=n):n=e[2];const r=n;let i,a;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),a=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=i,e[4]=a):(i=e[3],a=e[4]);let m;return e[5]!==r?(m=t.jsxs(q,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[i,a]}),e[5]=r,e[6]=m):m=e[6],m}function ms(o){const e=M.c(11),{url:s,serverName:l}=o,[n,r]=y.useState(!1);let i;e[0]!==l||e[1]!==s?(i=async()=>{const f=Ke(l),p=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add "${f}" --config '${p.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),r(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=l,e[1]=s,e[2]=i):i=e[2];const a=i;let m;e[3]!==n?(m=n?t.jsx(Ze,{size:20,className:"text-green-600"}):t.jsx("img",{src:"/logos/Claude Code.svg",alt:"Claude Code",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(55%) sepia(31%) saturate(1264%) hue-rotate(331deg) brightness(92%) contrast(86%)"}}),e[3]=n,e[4]=m):m=e[4];const c=n?"Copied!":"Install on Claude";let d;e[5]!==c?(d=t.jsx("span",{className:"text-xs font-medium",children:c}),e[5]=c,e[6]=d):d=e[6];let u;return e[7]!==a||e[8]!==m||e[9]!==d?(u=t.jsxs(q,{type:"button",variant:"outline",onClick:a,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[m,d]}),e[7]=a,e[8]=m,e[9]=d,e[10]=u):u=e[10],u}function us(o){const e=M.c(40),{open:s,onOpenChange:l,virtualMcp:n}=o,[r,i]=y.useState("code_execution");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=N=>{(N==="passthrough"||N==="smart_tool_selection"||N==="code_execution")&&i(N)},e[0]=a):a=e[0];const m=a;let c;e[1]!==r||e[2]!==n.id?(c=new URL(`/mcp/virtual-mcp/${n.id}`,window.location.origin),c.searchParams.set("mode",r),e[1]=r,e[2]=n.id,e[3]=c):c=e[3];let d;e[4]!==n.id||e[5]!==n.title?(d=n.title||`agent-${n.id.slice(0,8)}`,e[4]=n.id,e[5]=n.title,e[6]=d):d=e[6];const u=d;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Tt,{children:t.jsx(Mt,{children:"Share Agent"})}),e[7]=f):f=e[7];let h;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=h):h=e[8];let p;e[9]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Xe,{className:"size-5 text-muted-foreground"})}),e[9]=p):p=e[9];let g;e[10]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=g):g=e[10];let S;e[11]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Z,{asChild:!0,children:t.jsx(Ce,{className:"size-3.5 text-muted-foreground"})}),e[11]=S):S=e[11];let C;e[12]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsxs("label",{htmlFor:"mode-passthrough",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[p,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[g,t.jsx(Q,{children:t.jsxs(J,{children:[S,t.jsx(X,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"All tools are exposed directly via tools/list. Best for small tool surfaces with deterministic behavior."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Best for small teams or when you need predictable behavior"})]}),t.jsx(Pe,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=C):C=e[12];let I;e[13]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(tt,{className:"size-5 text-muted-foreground"})}),e[13]=I):I=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=k):k=e[14];let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(Z,{asChild:!0,children:t.jsx(Ce,{className:"size-3.5 text-muted-foreground"})}),e[15]=j):j=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsxs("label",{htmlFor:"mode-smart",className:"flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[I,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[k,t.jsx(Q,{children:t.jsxs(J,{children:[j,t.jsx(X,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Uses meta-tools (GATEWAY_SEARCH_TOOLS, GATEWAY_DESCRIBE_TOOLS, GATEWAY_CALL_TOOL) to keep the tool list small and request details on demand."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Ideal for large teams with many tools - AI finds what it needs"})]}),t.jsx(Pe,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=v):v=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ot,{className:"size-5 text-muted-foreground"})}),e[17]=_):_=e[17];let T;e[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart execution"}),e[18]=T):T=e[18];let $;e[19]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(Z,{asChild:!0,children:t.jsx(Ce,{className:"size-3.5 text-muted-foreground"})}),e[19]=$):$=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsxs("label",{htmlFor:"mode-code",className:"relative flex items-center gap-3 px-3 py-5 rounded-lg border border-border hover:border-ring/50 cursor-pointer transition-colors has-checked:border-ring has-checked:bg-accent/5",children:[_,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[T,t.jsx(Q,{children:t.jsxs(J,{children:[$,t.jsx(X,{className:"max-w-xs",children:t.jsx("p",{className:"text-xs",children:"Exposes meta-tools for discovery + sandboxed execution (GATEWAY_RUN_CODE). Reduces overhead on large surfaces by shifting work into a controlled runtime."})})]})})]}),t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"Maximum flexibility - AI can write code to orchestrate tools"})]}),t.jsx(Pe,{id:"mode-code",value:"code_execution"}),t.jsx(Qe,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=w):w=e[20];let P;e[21]!==r?(P=t.jsxs("div",{className:"flex flex-col gap-3",children:[h,t.jsxs(ns,{value:r,onValueChange:m,className:"flex flex-col gap-4.5",children:[C,v,w]})]}),e[21]=r,e[22]=P):P=e[22];let V;e[23]!==c.href?(V=t.jsx(cs,{url:c.href}),e[23]=c.href,e[24]=V):V=e[24];let z,R;e[25]!==u||e[26]!==c.href?(z=t.jsx(ds,{url:c.href,serverName:u}),R=t.jsx(ms,{url:c.href,serverName:u}),e[25]=u,e[26]=c.href,e[27]=z,e[28]=R):(z=e[27],R=e[28]);let E;e[29]!==V||e[30]!==z||e[31]!==R?(E=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[V,z,R]})}),e[29]=V,e[30]=z,e[31]=R,e[32]=E):E=e[32];let L;e[33]!==P||e[34]!==E?(L=t.jsxs($t,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[f,t.jsxs("div",{className:"flex flex-col gap-6",children:[P,E]})]}),e[33]=P,e[34]=E,e[35]=L):L=e[35];let x;return e[36]!==l||e[37]!==s||e[38]!==L?(x=t.jsx(Pt,{open:s,onOpenChange:l,children:L}),e[36]=l,e[37]=s,e[38]=L,e[39]=x):x=e[39],x}function fs(o){const e=M.c(27),{form:s,icon:l}=o;let n;e[0]!==s?(n=s.watch("title")||"Agent",e[0]=s,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(qt,{}),e[2]=r):r=e[2];let i;e[3]!==l||e[4]!==n?(i=t.jsx(Ae,{icon:l,name:n,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:r}),e[3]=l,e[4]=n,e[5]=i):i=e[5];let a;e[6]!==s.control?(a=t.jsx(de,{control:s.control,name:"status",render:js}),e[6]=s.control,e[7]=a):a=e[7];let m;e[8]!==i||e[9]!==a?(m=t.jsxs("div",{className:"flex items-start justify-between",children:[i,a]}),e[8]=i,e[9]=a,e[10]=m):m=e[10];let c;e[11]!==s.control?(c=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(de,{control:s.control,name:"title",render:gs}),t.jsx(de,{control:s.control,name:"description",render:ps})]}),e[11]=s.control,e[12]=c):c=e[12];let d;e[13]!==m||e[14]!==c?(d=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[m,c]}),e[13]=m,e[14]=c,e[15]=d):d=e[15];let u;e[16]!==s.control?(u=t.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:t.jsx(de,{control:s.control,name:"tool_selection_mode",render:hs})}),e[16]=s.control,e[17]=u):u=e[17];let f;e[18]!==s.control?(f=t.jsx("div",{className:"flex flex-col gap-3 p-5",children:t.jsx(de,{control:s.control,name:"metadata",render:xs})}),e[18]=s.control,e[19]=f):f=e[19];let h;e[20]!==d||e[21]!==u||e[22]!==f?(h=t.jsxs("div",{className:"flex flex-col",children:[d,u,f]}),e[20]=d,e[21]=u,e[22]=f,e[23]=h):h=e[23];let p;return e[24]!==s||e[25]!==h?(p=t.jsx("div",{className:"flex flex-col h-full overflow-auto",children:t.jsx(zt,{...s,children:h})}),e[24]=s,e[25]=h,e[26]=p):p=e[26],p}function xs(o){const{field:e}=o;return t.jsxs(me,{children:[t.jsxs("div",{children:[t.jsx(Je,{className:"text-sm font-medium text-foreground mb-1",children:"Instructions"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Define the agent's role, capabilities, and behavior to guide how it interprets requests, uses available tools, and responds to users."})]}),t.jsx(ue,{children:t.jsx(Lt,{value:e.value?.instructions??"",onChange:s=>e.onChange({...e.value??{},instructions:s.target.value||void 0}),placeholder:"You are a helpful assistant that specializes in customer support. Your role is to help users resolve issues and answer questions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})}),t.jsx(fe,{})]})}function hs(o){const{field:e}=o;return t.jsxs(me,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(Je,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Q,{children:t.jsxs(J,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(q,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(Ce,{size:14,className:"text-muted-foreground"})})}),t.jsx(X,{side:"left",className:"max-w-sm",children:t.jsxs("div",{className:"text-xs space-y-1",children:[t.jsxs("div",{children:[t.jsx("strong",{children:"Include:"})," Only selected items are exposed."]}),t.jsxs("div",{children:[t.jsx("strong",{children:"Exclude:"})," All items except selected ones are exposed."]})]})})]})}),t.jsxs(At,{value:e.value,onValueChange:e.onChange,children:[t.jsx(ue,{children:t.jsx(Vt,{className:"w-[180px]",children:t.jsx(Et,{})})}),t.jsxs(Dt,{children:[t.jsx(Oe,{value:"inclusion",children:"Include Selected"}),t.jsx(Oe,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(fe,{})]})}function ps(o){const{field:e}=o;return t.jsxs(me,{className:"w-full space-y-0",children:[t.jsx(ue,{children:t.jsx(Ve,{...e,value:e.value||"",className:"h-auto text-base text-muted-foreground leading-6 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})}),t.jsx(fe,{})]})}function gs(o){const{field:e}=o;return t.jsxs(me,{className:"w-full space-y-0",children:[t.jsx(ue,{children:t.jsx(Ve,{...e,className:"h-auto text-lg! font-medium leading-7 px-0 border-transparent hover:border-input focus:border-input bg-transparent transition-all",placeholder:"Agent Name"})}),t.jsx(fe,{})]})}function js(o){const{field:e}=o;return t.jsxs(me,{children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Qe,{variant:e.value==="active"?"success":"outline",children:e.value==="active"?"Active":"Inactive"}),t.jsx(ue,{children:t.jsx(Ft,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(fe,{})]})}function bs(o){const e=M.c(76),{virtualMcp:s,virtualMcpId:l,requestedTabId:n}=o,i=dt().location.href,a=mt();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/$org/agents/$agentId"},e[0]=m):m=e[0];const c=We(m),d=It(),{org:u}=ut();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const h=He(f),p=h.map(Ss);let g;e[2]!==u?(g=b=>({queryKey:Le.connectionPrompts(b),queryFn:async()=>{try{const A=await Fe({connectionId:b,orgId:u.id});return await _t(A)}catch{return{prompts:[]}}},staleTime:6e4,retry:!1}),e[2]=u,e[3]=g):g=e[3];const S=De({queries:p.map(g)});let C;e[4]!==u?(C=b=>({queryKey:Le.connectionResources(b),queryFn:async()=>{try{const A=await Fe({connectionId:b,orgId:u.id});return await wt(A)}catch{return{resources:[]}}},staleTime:6e4,retry:!1}),e[4]=u,e[5]=C):C=e[5];const I=De({queries:p.map(C)}),k=new Map;p.forEach((b,A)=>{const K=S[A];K?.data?k.set(b,K.data.prompts.map(Ns)):k.set(b,[])});const j=new Map;p.forEach((b,A)=>{const K=I[A];K?.data?j.set(b,K.data.resources.map(ys)):j.set(b,[])});let v;if(e[6]!==h){v=new Map;for(const b of h)b.tools&&b.tools.length>0&&v.set(b.id,b.tools.map(vs));e[6]=h,e[7]=v}else v=e[7];let _;e[8]!==v||e[9]!==s?(_=()=>Be(s,v),e[8]=v,e[9]=s,e[10]=_):_=e[10];const[T,$]=y.useState(_);let w;e[11]!==s?(w=()=>qe(s),e[11]=s,e[12]=w):w=e[12];const[P,V]=y.useState(w);let z;e[13]!==s?(z=()=>Ue(s),e[13]=s,e[14]=z):z=e[14];const[R,E]=y.useState(z),[L,x]=y.useState(!1),[N,D]=y.useState(!1);let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=b=>{$(b),x(!0)},e[15]=F):F=e[15];const U=F;let W;e[16]===Symbol.for("react.memo_cache_sentinel")?(W=b=>{V(b),x(!0)},e[16]=W):W=e[16];const H=W;let O;e[17]===Symbol.for("react.memo_cache_sentinel")?(O=b=>{E(b),x(!0)},e[17]=O):O=e[17];const lt=O;let xe;e[18]===Symbol.for("react.memo_cache_sentinel")?(xe=ft(is),e[18]=xe):xe=e[18];const _e=s.tool_selection_mode??"inclusion";let ee;e[19]!==s.metadata?(ee=s.metadata??{instructions:""},e[19]=s.metadata,e[20]=ee):ee=e[20];let he;e[21]!==_e||e[22]!==ee||e[23]!==s.description||e[24]!==s.status||e[25]!==s.title?(he={resolver:xe,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:_e,metadata:ee}},e[21]=_e,e[22]=ee,e[23]=s.description,e[24]=s.status,e[25]=s.title,e[26]=he):he=e[26];const Y=xt(he),we=Y.formState.isDirty||L;let pe;e[27]!==d.update||e[28]!==v||e[29]!==Y||e[30]!==R||e[31]!==P||e[32]!==T||e[33]!==l?(pe=async()=>{try{const b=Y.getValues(),A=as(T,P,R,v),K={title:b.title,description:b.description,status:b.status,tool_selection_mode:b.tool_selection_mode,metadata:b.metadata,connections:A};await d.update.mutateAsync({id:l,data:K}),Y.reset(b),x(!1)}catch(b){console.error("Failed to save virtual MCP:",b)}},e[27]=d.update,e[28]=v,e[29]=Y,e[30]=R,e[31]=P,e[32]=T,e[33]=l,e[34]=pe):pe=e[34];const ke=pe;let ge;e[35]!==v||e[36]!==Y||e[37]!==s?(ge=()=>{Y.reset({title:s.title,description:s.description,status:s.status,tool_selection_mode:s.tool_selection_mode??"inclusion",metadata:s.metadata??{instructions:""}}),$(Be(s,v)),V(qe(s)),E(Ue(s)),x(!1)},e[35]=v,e[36]=Y,e[37]=s,e[38]=ge):ge=e[38];const Ie=ge;let je;e[39]===Symbol.for("react.memo_cache_sentinel")?(je=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[39]=je):je=e[39];const Ee=je,B=Ee.some(b=>b.id===n)?n:"settings";let be;e[40]!==c?(be=b=>{c({search:A=>({...A,tab:b}),replace:!0})},e[40]=c,e[41]=be):be=e[41];const Te=be,ce=d.update.isPending;let te;e[42]!==a.history?(te=()=>a.history.back(),e[42]=a.history,e[43]=te):te=e[43];let se;e[44]!==B||e[45]!==Te?(se=t.jsx(Yt,{children:t.jsx(Rt,{tabs:Ee,activeTab:B,onTabChange:Te})}),e[44]=B,e[45]=Te,e[46]=se):se=e[46];let oe;e[47]!==Ie||e[48]!==ke||e[49]!==we||e[50]!==ce?(oe=we&&t.jsxs(t.Fragment,{children:[t.jsx(Q,{children:t.jsxs(J,{delayDuration:0,children:[t.jsx(Z,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(q,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:Ie,"aria-label":"Cancel",children:t.jsx(Ut,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Cancel"})]})}),t.jsx(Q,{children:t.jsxs(J,{delayDuration:0,children:[t.jsx(Z,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(q,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ce,onClick:ke,"aria-label":"Save",children:ce?t.jsx(ze,{size:14,className:"animate-spin"}):t.jsx(st,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Save"})]})})]}),e[47]=Ie,e[48]=ke,e[49]=we,e[50]=ce,e[51]=oe):oe=e[51];let ve;e[52]===Symbol.for("react.memo_cache_sentinel")?(ve=()=>D(!0),e[52]=ve):ve=e[52];let ye;e[53]===Symbol.for("react.memo_cache_sentinel")?(ye=t.jsx(Q,{children:t.jsxs(J,{delayDuration:0,children:[t.jsx(Z,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(q,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:ve,"aria-label":"Share",children:t.jsx(Wt,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Share"})]})}),e[53]=ye):ye=e[53];const Me=s.icon??"cpu_chip";let le;e[54]!==Me||e[55]!==i||e[56]!==s.title?(le=t.jsx(vt,{title:s.title,url:i,icon:Me}),e[54]=Me,e[55]=i,e[56]=s.title,e[57]=le):le=e[57];let ne;e[58]!==oe||e[59]!==le?(ne=t.jsxs(Gt,{children:[oe,ye,le]}),e[58]=oe,e[59]=le,e[60]=ne):ne=e[60];let Ne;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ne=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(ze,{size:32,className:"animate-spin text-muted-foreground"})}),e[61]=Ne):Ne=e[61];const $e=B==="settings"?t.jsx(fs,{form:Y,icon:s.icon}):B==="tools"?t.jsx(yt,{toolSet:T,onToolSetChange:U,excludeVirtualMcpId:l}):B==="resources"?t.jsx(os,{resourceSet:P,onResourceSetChange:H,connectionResources:j,excludeVirtualMcpId:l}):B==="prompts"?t.jsx(Xt,{promptSet:R,onPromptSetChange:lt,connectionPrompts:k,excludeVirtualMcpId:l}):null;let re;e[62]!==$e?(re=t.jsx(y.Suspense,{fallback:Ne,children:$e}),e[62]=$e,e[63]=re):re=e[63];let ie;e[64]!==B||e[65]!==re?(ie=t.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:t.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-hidden",children:t.jsx("div",{className:"h-full overflow-auto",children:t.jsx(Ye,{children:re},B)})})}),e[64]=B,e[65]=re,e[66]=ie):ie=e[66];let ae;e[67]!==N||e[68]!==s?(ae=t.jsx(us,{open:N,onOpenChange:D,virtualMcp:s}),e[67]=N,e[68]=s,e[69]=ae):ae=e[69];let Se;return e[70]!==te||e[71]!==se||e[72]!==ne||e[73]!==ie||e[74]!==ae?(Se=t.jsxs(Ht,{onBack:te,children:[se,ne,ie,ae]}),e[70]=te,e[71]=se,e[72]=ne,e[73]=ie,e[74]=ae,e[75]=Se):Se=e[75],Se}function vs(o){return o.name}function ys(o){return{uri:o.uri,name:o.name,description:o.description}}function Ns(o){return{name:o.name,description:o.description}}function Ss(o){return o.id}function Cs(){const o=M.c(10);let e;o[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/agents/$agentId"},o[0]=e):e=o[0];const s=We(e);let l;o[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},o[1]=l):l=o[1];const n=rt(l),{org:r}=n,i=n.agentId??n.virtualMcpId??"";let a;o[2]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},o[2]=a):a=o[2];const c=it(a).tab||"settings",d=kt(i);if(!d){let f;return o[3]!==s||o[4]!==r?(f=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(ht,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(q,{variant:"outline",onClick:()=>s({to:"/$org/agents",params:{org:r}}),children:"Back to agents"})})}),o[3]=s,o[4]=r,o[5]=f):f=o[5],f}let u;return o[6]!==c||o[7]!==d||o[8]!==i?(u=t.jsx(bs,{virtualMcp:d,virtualMcpId:i,requestedTabId:c}),o[6]=c,o[7]=d,o[8]=i,o[9]=u):u=o[9],u}function _s(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ye,{children:t.jsx(y.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(ze,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Cs,{})})}),o[0]=e):e=o[0],e}function po(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(_s,{}),o[0]=e):e=o[0],e}export{po as default};
@@ -1 +0,0 @@
1
- import{c as ee,j as t,r as te,u as oe,f as ne}from"./index-DL2qO0-_.js";import{C as re}from"./collection-header-BwRlr8D_.js";import{C as ie}from"./collection-page-varm6OFV.js";import{C as ae}from"./collection-search-CvGB-e6t.js";import{C as le}from"./collection-table-wrapper-CxBbzamF.js";import{C as ce}from"./connection-card-DFWlym7J.js";import{E as q,I as de}from"./empty-state-CkkBSu0h.js";import{E as me}from"./error-boundary-COBTKWN-.js";import{u as ue,s as J}from"./use-list-state-D3jnRVjn.js";import{u as ge}from"./use-create-virtual-mcp-YsqZHc18.js";import{b as pe,a as he}from"./use-virtual-mcp-bFwjwdoF.js";import{c as fe,b as xe,d as je,A as Ce,e as we,g as Ne,a as ye,f as De}from"./alert-dialog-C-a6ZWhm.js";import{B as se}from"./badge-JKyboKZ4.js";import{B as G}from"./button-kOXo0A85.js";import{D as Q,a as U,b as X,c as V}from"./dropdown-menu-C1zXKmLZ.js";import{i as x}from"./CpuChip02-1S35XCw9.js";import{i as Y}from"./DotsVertical-DDPAhmiG.js";import{i as Se}from"./Loading01-BlvTBCEj.js";import{s as Z}from"./Trash01-N-KnxBAR.js";import"./collection-display-button-DI-ebzDR.js";import"./ArrowUp-CTHR9b9g.js";import"./Check-B_ssGKef.js";import"./Grid01-D03UG1C2.js";import"./List-fQCNczK3.js";import"./tooltip-C1NZOK0f.js";import"./view-mode-toggle-DvUJ6WYM.js";import"./SearchMd-CX8E1sol.js";import"./input-BWLuHFym.js";import"./card-BFflu5-1.js";import"./use-mobile-CGRAcCRy.js";import"./use-collections-VBKxjUv0.js";import"./useMutation-DovD4v9N.js";import"./useQuery-DlNiDu4m.js";import"./constants-vNx5qYr4.js";function be(e,n){switch(n.type){case"delete":return{mode:"deleting",virtualMcp:n.virtualMcp};case"close":return{mode:"idle"}}}function ve(){const e=ee.c(63),{org:n}=oe(),i=ne();let j;e[0]!==n.slug?(j={namespace:n.slug,resource:"agents"},e[0]=n.slug,e[1]=j):j=e[1];const s=ue(j),f=pe(s);let C;e[2]===Symbol.for("react.memo_cache_sentinel")?(C={navigateOnCreate:!0},e[2]=C):C=e[2];const{createVirtualMCP:O,isCreating:w}=ge(C),B=he();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[r,y]=te.useReducer(be,N);let D;e[4]!==B||e[5]!==r.mode||e[6]!==r.virtualMcp?(D=async()=>{if(r.mode!=="deleting")return;const o=r.virtualMcp.id;y({type:"close"});try{await B.delete.mutateAsync(o)}catch{}},e[4]=B,e[5]=r.mode,e[6]=r.virtualMcp,e[7]=D):D=e[7];const R=D;let S,b,v,k,A,_;e[8]===Symbol.for("react.memo_cache_sentinel")?(S={id:"icon",header:"",render:Ke,cellClassName:"w-16 shrink-0",wrap:!0},b={id:"title",header:"Name",render:Ee,cellClassName:"w-48 min-w-0 shrink-0",sortable:!0},v={id:"description",header:"Description",render:Pe,cellClassName:"flex-1 min-w-0",wrap:!0,sortable:!0},k={id:"mode",header:"Mode",accessor:$e,cellClassName:"w-[100px]"},A={id:"connections",header:"Connections",render:Me,cellClassName:"w-24 shrink-0"},_={id:"status",header:"Status",render:ze,cellClassName:"w-24 shrink-0",sortable:!0},e[8]=S,e[9]=b,e[10]=v,e[11]=k,e[12]=A,e[13]=_):(S=e[8],b=e[9],v=e[10],k=e[11],A=e[12],_=e[13]);let I;e[14]!==i||e[15]!==n.slug?(I=[S,b,v,k,A,_,{id:"actions",header:"",render:o=>t.jsxs(Q,{children:[t.jsx(U,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ie,children:t.jsx(Y,{size:20})})}),t.jsxs(X,{align:"end",onClick:_e,children:[t.jsxs(V,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}})},children:[t.jsx(J,{size:16}),"Open"]}),t.jsxs(V,{variant:"destructive",onClick:a=>{a.stopPropagation(),y({type:"delete",virtualMcp:o})},children:[t.jsx(Z,{size:16}),"Delete"]})]})]}),cellClassName:"w-12 shrink-0"}],e[14]=i,e[15]=n.slug,e[16]=I):I=e[16];const T=I,H=w?"Creating...":"Create Agent";let z;e[17]!==O||e[18]!==w||e[19]!==H?(z=t.jsx(G,{onClick:O,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",disabled:w,children:H}),e[17]=O,e[18]=w,e[19]=H,e[20]=z):z=e[20];const L=z,F=r.mode==="deleting";let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=o=>!o&&y({type:"close"}),e[21]=M):M=e[21];let $;e[22]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(fe,{children:"Delete Agent?"}),e[22]=$):$=e[22];const W=r.mode==="deleting"&&r.virtualMcp.title;let l;e[23]!==W?(l=t.jsxs(xe,{children:[$,t.jsxs(je,{children:["This action cannot be undone. This will permanently delete"," ",t.jsx("span",{className:"font-medium text-foreground",children:W}),"."]})]}),e[23]=W,e[24]=l):l=e[24];let P;e[25]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Ce,{children:"Cancel"}),e[25]=P):P=e[25];let c;e[26]!==R?(c=t.jsxs(we,{children:[P,t.jsx(Ne,{onClick:R,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),e[26]=R,e[27]=c):c=e[27];let d;e[28]!==l||e[29]!==c?(d=t.jsxs(ye,{children:[l,c]}),e[28]=l,e[29]=c,e[30]=d):d=e[30];let m;e[31]!==F||e[32]!==d?(m=t.jsx(De,{open:F,onOpenChange:M,children:d}),e[31]=F,e[32]=d,e[33]=m):m=e[33];let E;e[34]===Symbol.for("react.memo_cache_sentinel")?(E=[{id:"title",label:"Name"},{id:"description",label:"Description"},{id:"status",label:"Status"}],e[34]=E):E=e[34];let u;e[35]!==L||e[36]!==s.handleSort||e[37]!==s.setViewMode||e[38]!==s.sortDirection||e[39]!==s.sortKey||e[40]!==s.viewMode?(u=t.jsx(re,{title:"Agents",viewMode:s.viewMode,onViewModeChange:s.setViewMode,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,sortOptions:E,ctaButton:L}),e[35]=L,e[36]=s.handleSort,e[37]=s.setViewMode,e[38]=s.sortDirection,e[39]=s.sortKey,e[40]=s.viewMode,e[41]=u):u=e[41];let g;e[42]!==s?(g=o=>{o.key==="Escape"&&(s.setSearch(""),o.target.blur())},e[42]=s,e[43]=g):g=e[43];let p;e[44]!==s.search||e[45]!==s.setSearch||e[46]!==g?(p=t.jsx(ae,{value:s.search,onChange:s.setSearch,placeholder:"Search for an agent...",onKeyDown:g}),e[44]=s.search,e[45]=s.setSearch,e[46]=g,e[47]=p):p=e[47];let h;e[48]!==T||e[49]!==s.handleSort||e[50]!==s.search||e[51]!==s.sortDirection||e[52]!==s.sortKey||e[53]!==s.viewMode||e[54]!==i||e[55]!==n.slug||e[56]!==f?(h=s.viewMode==="cards"?t.jsx("div",{className:"flex-1 overflow-auto p-5",children:f.length===0?t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:s.search?"No agents found":"No agents yet",description:s.search?`No agents match "${s.search}"`:"Create an agent to aggregate tools from multiple Connections."}):t.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:f.map(o=>t.jsx(ce,{connection:{id:o.id,title:o.title,description:o.description,icon:o.icon,status:o.status},fallbackIcon:t.jsx(x,{}),onClick:()=>i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}}),footer:t.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.jsxs("span",{children:[o.connections.length," connection",o.connections.length!==1?"s":""]}),t.jsx("span",{children:"•"}),t.jsx("span",{children:o.tool_selection_mode==="exclusion"?"Exclude":"Include"})]}),headerActions:t.jsxs(Q,{children:[t.jsx(U,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",onClick:Ae,children:t.jsx(Y,{size:20})})}),t.jsxs(X,{align:"end",onClick:ke,children:[t.jsxs(V,{onClick:a=>{a.stopPropagation(),i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}})},children:[t.jsx(J,{size:16}),"Open"]}),t.jsxs(V,{variant:"destructive",onClick:a=>{a.stopPropagation(),y({type:"delete",virtualMcp:o})},children:[t.jsx(Z,{size:16}),"Delete"]})]})]})},o.id))})}):t.jsx(le,{columns:T,data:f,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>i({to:"/$org/agents/$agentId",params:{org:n.slug,agentId:o.id}}),emptyState:s.search?t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:"No agents found",description:`No agents match "${s.search}"`}):t.jsx(q,{image:t.jsx(x,{size:36,className:"text-muted-foreground"}),title:"No agents yet",description:"Create an agent to aggregate tools from multiple Connections."})}),e[48]=T,e[49]=s.handleSort,e[50]=s.search,e[51]=s.sortDirection,e[52]=s.sortKey,e[53]=s.viewMode,e[54]=i,e[55]=n.slug,e[56]=f,e[57]=h):h=e[57];let K;return e[58]!==m||e[59]!==u||e[60]!==p||e[61]!==h?(K=t.jsxs(ie,{children:[m,u,p,h]}),e[58]=m,e[59]=u,e[60]=p,e[61]=h,e[62]=K):K=e[62],K}function ke(e){return e.stopPropagation()}function Ae(e){return e.stopPropagation()}function _e(e){return e.stopPropagation()}function Ie(e){return e.stopPropagation()}function ze(e){return t.jsx(se,{variant:e.status==="active"?"default":"outline",children:e.status})}function Me(e){return t.jsx("span",{className:"text-sm text-muted-foreground",children:e.connections.length})}function $e(e){return t.jsx(se,{variant:"outline",className:"text-xs",children:e.tool_selection_mode==="exclusion"?"Exclude":"Include"})}function Pe(e){return t.jsx("span",{className:"text-sm text-foreground line-clamp-2",children:e.description||"—"})}function Ee(e){return t.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:e.title})}function Ke(e){return t.jsx(de,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(x,{size:16})})}function xt(){const e=ee.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(me,{children:t.jsx(te.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Se,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(ve,{})})}),e[0]=n):n=e[0],n}export{xt as default};
@@ -1 +0,0 @@
1
- import{c as Q,j as o,f as H,bg as X,r as q,a as ce,u as ae,g as le,bq as me}from"./index-DL2qO0-_.js";import{E as G,I as Y}from"./empty-state-CkkBSu0h.js";import{E as Z}from"./error-boundary-COBTKWN-.js";import{b as de}from"./use-binding-zAiYN8O2.js";import{u as ue,S as pe}from"./index-KQ8CyL-e.js";import{f as fe}from"./use-collections-VBKxjUv0.js";import{u as J,a as he}from"./use-connection-2Fr9IAjt.js";import{u as xe}from"./constants-vNx5qYr4.js";import{b as ge,c as be}from"./use-mcp-prompts-B1VV42SE.js";import{B as je}from"./button-kOXo0A85.js";import{R as ye}from"./resource-tabs-BFmXbLJU.js";import{i as ee}from"./Loading01-BlvTBCEj.js";import{V as te,a as Se,b as Ce}from"./layout-DGDO8JsV.js";import{C as ve}from"./collection-tab-D8IdcZ7E.js";import{C as oe}from"./collection-display-button-DI-ebzDR.js";import{C as se}from"./collection-search-CvGB-e6t.js";import{C as ne}from"./collection-table-wrapper-CxBbzamF.js";import{P as re}from"./pin-to-sidebar-button-Dod7ED9w.js";import{C as ie}from"./card-BFflu5-1.js";import{R as Ne,T as Te}from"./tools-list-72srl-RI.js";import"./binder-BsKWt4HA.js";import"./mcp-oauth-CamgiVLA.js";import"./env-vars-editor-DzlFBbyF.js";import"./input-BWLuHFym.js";import"./Plus-DC2VdaI3.js";import"./Trash01-N-KnxBAR.js";import"./File06-Byaqp0m7.js";import"./Key01-DTD2tv0i.js";import"./badge-JKyboKZ4.js";import"./dropdown-menu-C1zXKmLZ.js";import"./Grid01-D03UG1C2.js";import"./form-D5K-mHEp.js";import"./select-MknfzZ97.js";import"./tooltip-C1NZOK0f.js";import"./Check-B_ssGKef.js";import"./ChevronDown-D50oUZGv.js";import"./extract-connection-data-aeTi4WXS.js";import"./constants-36ynutkd.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-CbJdFKO5.js";import"./generate-id-Dyweu44Y.js";import"./CpuChip02-1S35XCw9.js";import"./Terminal-BJaxY_i8.js";import"./use-virtual-mcp-bFwjwdoF.js";import"./index-DsokbHgu.js";import"./index-XZ6br7wV.js";import"./circle-alert-BJmqXS3V.js";import"./index-BqWAgAnn.js";import"./X-IPns0kiv.js";import"./monaco-editor-DAw6ySE6.js";import"./infiniteQueryObserver-O4XCsEcu.js";import"./spinner-1I7nn8Wp.js";import"./localstorage-keys-B61c8Nm3.js";import"./useQuery-DlNiDu4m.js";import"./useMutation-DovD4v9N.js";import"./popover-CjpIDlBK.js";import"./Image01-BxhtArxl.js";import"./SearchMd-CX8E1sol.js";import"./dialog-BFtfsOxE.js";import"./AlertCircle-BV-9KV54.js";import"./ArrowUp-CTHR9b9g.js";import"./Edit01-CtmglTd-.js";import"./Copy01-CKz7ZcT_.js";import"./use-create-virtual-mcp-YsqZHc18.js";import"./ArrowLeft-DOleepq-.js";import"./DotsVertical-DDPAhmiG.js";import"./use-list-state-D3jnRVjn.js";import"./use-mobile-CGRAcCRy.js";import"./empty-state-UbxmZkNp.js";import"./Inbox01-C8eSK0Or.js";import"./avatar-Dyk-b-n3.js";import"./alert-dialog-C-a6ZWhm.js";import"./List-fQCNczK3.js";import"./view-mode-toggle-DvUJ6WYM.js";import"./Pin01-BRoo4TIE.js";import"./use-organization-settings-BLzmckM5.js";function we(t){const e=Q.c(42),{prompts:n,connectionId:s,org:r,connectionTitle:d,connectionIcon:l,onPromptClick:b,showToolbar:T,emptyMessage:E}=t,I=T===void 0?!0:T,R=E===void 0?"This connection doesn't have any prompts yet.":E,u=H(),x=X().location.href,[j,f]=q.useState(""),[g,i]=q.useState("table"),[p,w]=q.useState("name"),[m,D]=q.useState("asc");let V;e[0]!==m||e[1]!==p?(V=h=>{p===h?(D(_e),m==="desc"&&w(void 0)):(w(h),D("asc"))},e[0]=m,e[1]=p,e[2]=V):V=e[2];const v=V;let k;e[3]!==s||e[4]!==u||e[5]!==b||e[6]!==r?(k=h=>{b?b(h):s&&r&&u({to:"/$org/mcps/$connectionId/$collectionName/$itemId",params:{org:r,connectionId:s,collectionName:"prompts",itemId:encodeURIComponent(h.name)}})},e[3]=s,e[4]=u,e[5]=b,e[6]=r,e[7]=k):k=e[7];const _=k;let $;if(e[8]!==n||e[9]!==j||e[10]!==m||e[11]!==p){const h=!n||n.length===0?[]:j.trim()?(()=>{const K=j.toLowerCase();return n.filter(B=>B.name.toLowerCase().includes(K)||B.description&&B.description.toLowerCase().includes(K))})():n;$=!p||!m?h:[...h].sort((K,B)=>{const F=K[p]||"",U=B[p]||"",W=String(F).localeCompare(String(U));return m==="asc"?W:-W}),e[8]=n,e[9]=j,e[10]=m,e[11]=p,e[12]=$}else $=e[12];const N=$;let O;e[13]===Symbol.for("react.memo_cache_sentinel")?(O=[{id:"name",header:"Name",render:ke,sortable:!0},{id:"description",header:"Description",render:Re,cellClassName:"flex-1",sortable:!0}],e[13]=O):O=e[13];const L=O;let a;e[14]===Symbol.for("react.memo_cache_sentinel")?(a=L.filter(Ie).map($e),e[14]=a):a=e[14];const A=a;let y;e[15]!==l||e[16]!==d||e[17]!==v||e[18]!==I||e[19]!==m||e[20]!==p||e[21]!==x||e[22]!==g?(y=I&&o.jsxs(te,{children:[o.jsx(oe,{viewMode:g,onViewModeChange:i,sortKey:p,sortDirection:m,onSort:v,sortOptions:A}),o.jsx(re,{title:d?`${d}: Prompts`:"Prompts",url:x,icon:l??"description"})]}),e[15]=l,e[16]=d,e[17]=v,e[18]=I,e[19]=m,e[20]=p,e[21]=x,e[22]=g,e[23]=y):y=e[23];let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=h=>{h.key==="Escape"&&(f(""),h.target.blur())},e[24]=S):S=e[24];let C;e[25]!==j?(C=o.jsx(se,{value:j,onChange:f,placeholder:"Search prompts...",onKeyDown:S}),e[25]=j,e[26]=C):C=e[26];let c;e[27]!==R||e[28]!==_||e[29]!==v||e[30]!==j||e[31]!==m||e[32]!==p||e[33]!==N||e[34]!==g?(c=g==="cards"?o.jsx("div",{className:"flex-1 overflow-auto p-5",children:N.length===0?o.jsx(G,{image:null,title:j?"No prompts found":"No prompts available",description:j?"Try adjusting your search terms":R}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:N.map(h=>o.jsx(ie,{className:"cursor-pointer transition-colors",onClick:()=>_(h),children:o.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[o.jsx(Y,{icon:null,name:h.name,size:"md",className:"shrink-0 shadow-sm"}),o.jsxs("div",{className:"flex flex-col gap-0",children:[o.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:h.name}),o.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:h.description||"No description"})]})]})},h.name))})}):o.jsx(ne,{columns:L,data:N,isLoading:!1,sortKey:p,sortDirection:m,onSort:v,onRowClick:h=>_(h),emptyState:o.jsx(G,{image:null,title:j?"No prompts found":"No prompts available",description:j?"Try adjusting your search terms":R})}),e[27]=R,e[28]=_,e[29]=v,e[30]=j,e[31]=m,e[32]=p,e[33]=N,e[34]=g,e[35]=c):c=e[35];let P;e[36]!==C||e[37]!==c?(P=o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[C,c]}),e[36]=C,e[37]=c,e[38]=P):P=e[38];let M;return e[39]!==P||e[40]!==y?(M=o.jsxs(o.Fragment,{children:[y,P]}),e[39]=P,e[40]=y,e[41]=M):M=e[41],M}function $e(t){return{id:t.id,label:typeof t.header=="string"?t.header:t.id}}function Ie(t){return t.sortable}function Re(t){return o.jsx("span",{className:"text-sm text-foreground",children:t.description||"—"})}function ke(t){return o.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:t.name})}function _e(t){return t==="asc"?"desc":t==="desc"?null:"asc"}function Le(t){const e=Q.c(6),{prompts:n,connectionId:s,org:r}=t,d=J(s),l=d?.title,b=d?.icon;let T;return e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l||e[4]!==b?(T=o.jsx(we,{prompts:n,connectionId:s,org:r,connectionTitle:l,connectionIcon:b}),e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=b,e[5]=T):T=e[5],T}function Pe(t){const e=Q.c(2),{repository:n}=t;let s;return e[0]!==n?(s=o.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:o.jsx(Ne,{repository:n})}),e[0]=n,e[1]=s):s=e[1],s}function Me(t){const e=Q.c(39),{resources:n,connectionTitle:s,connectionIcon:r,onResourceClick:d,showToolbar:l,emptyMessage:b}=t,T=l===void 0?!0:l,E=b===void 0?"This connection doesn't have any resources yet.":b,R=X().location.href,[u,z]=q.useState(""),[x,j]=q.useState("table"),[f,g]=q.useState("name"),[i,p]=q.useState("asc");let w;e[0]!==i||e[1]!==f?(w=c=>{f===c?(p(Ue),i==="desc"&&g(void 0)):(g(c),p("asc"))},e[0]=i,e[1]=f,e[2]=w):w=e[2];const m=w;let D;e[3]!==d?(D=c=>{d&&d(c)},e[3]=d,e[4]=D):D=e[4];const V=D;let v;if(e[5]!==n||e[6]!==u||e[7]!==i||e[8]!==f){const c=!n||n.length===0?[]:u.trim()?(()=>{const P=u.toLowerCase();return n.filter(M=>M.uri.toLowerCase().includes(P)||M.name&&M.name.toLowerCase().includes(P)||M.description&&M.description.toLowerCase().includes(P))})():n;v=!f||!i?c:[...c].sort((P,M)=>{const h=P[f]||"",K=M[f]||"",B=String(h).localeCompare(String(K));return i==="asc"?B:-B}),e[5]=n,e[6]=u,e[7]=i,e[8]=f,e[9]=v}else v=e[9];const k=v;let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=[{id:"name",header:"Name",render:Be,sortable:!0},{id:"uri",header:"URI",render:Oe,sortable:!0},{id:"description",header:"Description",render:De,cellClassName:"flex-1",sortable:!0},{id:"mimeType",header:"Type",render:Ee,sortable:!0}],e[10]=_):_=e[10];const $=_;let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=$.filter(Ae).map(Ve),e[11]=N):N=e[11];const O=N;let L;e[12]!==r||e[13]!==s||e[14]!==m||e[15]!==T||e[16]!==i||e[17]!==f||e[18]!==R||e[19]!==x?(L=T&&o.jsxs(te,{children:[o.jsx(oe,{viewMode:x,onViewModeChange:j,sortKey:f,sortDirection:i,onSort:m,sortOptions:O}),o.jsx(re,{title:s?`${s}: Resources`:"Resources",url:R,icon:r??"folder"})]}),e[12]=r,e[13]=s,e[14]=m,e[15]=T,e[16]=i,e[17]=f,e[18]=R,e[19]=x,e[20]=L):L=e[20];let a;e[21]===Symbol.for("react.memo_cache_sentinel")?(a=c=>{c.key==="Escape"&&(z(""),c.target.blur())},e[21]=a):a=e[21];let A;e[22]!==u?(A=o.jsx(se,{value:u,onChange:z,placeholder:"Search resources...",onKeyDown:a}),e[22]=u,e[23]=A):A=e[23];let y;e[24]!==E||e[25]!==V||e[26]!==m||e[27]!==u||e[28]!==i||e[29]!==f||e[30]!==k||e[31]!==x?(y=x==="cards"?o.jsx("div",{className:"flex-1 overflow-auto p-5",children:k.length===0?o.jsx(G,{image:null,title:u?"No resources found":"No resources available",description:u?"Try adjusting your search terms":E}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:k.map(c=>o.jsx(ie,{className:"cursor-pointer transition-colors",onClick:()=>V(c),children:o.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[o.jsx(Y,{icon:null,name:c.name||c.uri,size:"md",className:"shrink-0 shadow-sm"}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:c.name||c.uri}),o.jsx("p",{className:"text-xs font-mono text-muted-foreground truncate",children:c.uri}),c.description&&o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-1",children:c.description})]})]})},c.uri))})}):o.jsx(ne,{columns:$,data:k,isLoading:!1,sortKey:f,sortDirection:i,onSort:m,onRowClick:c=>V(c),emptyState:o.jsx(G,{image:null,title:u?"No resources found":"No resources available",description:u?"Try adjusting your search terms":E})}),e[24]=E,e[25]=V,e[26]=m,e[27]=u,e[28]=i,e[29]=f,e[30]=k,e[31]=x,e[32]=y):y=e[32];let S;e[33]!==A||e[34]!==y?(S=o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[A,y]}),e[33]=A,e[34]=y,e[35]=S):S=e[35];let C;return e[36]!==S||e[37]!==L?(C=o.jsxs(o.Fragment,{children:[L,S]}),e[36]=S,e[37]=L,e[38]=C):C=e[38],C}function Ve(t){return{id:t.id,label:typeof t.header=="string"?t.header:t.id}}function Ae(t){return t.sortable}function Ee(t){return o.jsx("span",{className:"text-sm text-muted-foreground",children:t.mimeType||"—"})}function De(t){return o.jsx("span",{className:"text-sm text-foreground",children:t.description||"—"})}function Oe(t){return o.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:t.uri})}function Be(t){return o.jsx("span",{className:"text-sm font-medium text-foreground",children:t.name||t.uri})}function Ue(t){return t==="asc"?"desc":t==="desc"?null:"asc"}function Ke(t){const e=Q.c(6),{resources:n,connectionId:s,org:r}=t,d=J(s),l=d?.title,b=d?.icon;let T;return e[0]!==s||e[1]!==r||e[2]!==n||e[3]!==l||e[4]!==b?(T=o.jsx(Me,{resources:n,connectionId:s,org:r,connectionTitle:l,connectionIcon:b}),e[0]=s,e[1]=r,e[2]=n,e[3]=l,e[4]=b,e[5]=T):T=e[5],T}function ze(t){const e=Q.c(5),{tools:n,connectionId:s,org:r,isLoading:d}=t;let l;return e[0]!==s||e[1]!==d||e[2]!==r||e[3]!==n?(l=o.jsx(Te,{tools:n,connectionId:s,org:r,isLoading:d}),e[0]=s,e[1]=d,e[2]=r,e[3]=n,e[4]=l):l=e[4],l}function qe(t){const e=Q.c(66),{connection:n,connectionId:s,org:r,requestedTabId:d,collections:l,onUpdate:b,isUpdating:T,prompts:E,resources:I,tools:R,isLoadingTools:u}=t,z=me();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={from:"/$org/mcps/$connectionId"},e[0]=x):x=e[0];const j=H(x);let f;e[1]!==s?(f={connectionId:s},e[1]=s,e[2]=f):f=e[2];const g=ue(f),i=g.isAuthenticated,p=n?.metadata?.repository,w=!!p?.url,m=R.length,D=E.length,V=I.length,v=m>0||u;let k;e[3]===Symbol.for("react.memo_cache_sentinel")?(k={id:"settings",label:"Settings"},e[3]=k):k=e[3];let _;e[4]!==u||e[5]!==i||e[6]!==v||e[7]!==m?(_=i&&v?[{id:"tools",label:"Tools",count:u?void 0:m}]:[],e[4]=u,e[5]=i,e[6]=v,e[7]=m,e[8]=_):_=e[8];let $;e[9]!==i||e[10]!==D?($=i&&D>0?[{id:"prompts",label:"Prompts",count:D}]:[],e[9]=i,e[10]=D,e[11]=$):$=e[11];let N;e[12]!==i||e[13]!==V?(N=i&&V>0?[{id:"resources",label:"Resources",count:V}]:[],e[12]=i,e[13]=V,e[14]=N):N=e[14];let O;if(e[15]!==l||e[16]!==w||e[17]!==i||e[18]!==_||e[19]!==$||e[20]!==N){let U;e[22]!==w?(U=w?[{id:"readme",label:"README"}]:[],e[22]=w,e[23]=U):U=e[23],O=[k,..._,...$,...N,...i?(l||[]).map(Qe):[],...U],e[15]=l,e[16]=w,e[17]=i,e[18]=_,e[19]=$,e[20]=N,e[21]=O}else O=e[21];const L=O,a=L.some(U=>U.id===d)?d:"settings";let A;e[24]!==j?(A=U=>{j({search:W=>({...W,tab:U}),replace:!0})},e[24]=j,e[25]=A):A=e[25];const y=A;let S;e[26]!==l?(S=l||[],e[26]=l,e[27]=S):S=e[27];let C;if(e[28]!==a||e[29]!==S){let U;e[31]!==a?(U=W=>W.name===a,e[31]=a,e[32]=U):U=e[32],C=S.find(U),e[28]=a,e[29]=S,e[30]=C}else C=e[30];const c=C;let P;e[33]!==z.history?(P=()=>z.history.back(),e[33]=z.history,e[34]=P):P=e[34];let M;e[35]!==a||e[36]!==y||e[37]!==L?(M=o.jsx(Se,{children:o.jsx(ye,{tabs:L,activeTab:a,onTabChange:y})}),e[35]=a,e[36]=y,e[37]=L,e[38]=M):M=e[38];let h;e[39]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(ee,{size:32,className:"animate-spin text-muted-foreground"})}),e[39]=h):h=e[39];let K;e[40]!==c||e[41]!==a||e[42]!==g.hasOAuthToken||e[43]!==g.isServerError||e[44]!==g.supportsOAuth||e[45]!==n||e[46]!==s||e[47]!==y||e[48]!==w||e[49]!==u||e[50]!==i||e[51]!==T||e[52]!==b||e[53]!==r||e[54]!==E||e[55]!==p||e[56]!==I||e[57]!==R?(K=o.jsx(q.Suspense,{fallback:h,children:a==="tools"?o.jsx(ze,{tools:R,connectionId:s,org:r,isLoading:u}):a==="prompts"?o.jsx(Le,{prompts:E,connectionId:s,org:r}):a==="resources"?o.jsx(Ke,{resources:I,connectionId:s,org:r}):a==="settings"?o.jsx(pe,{connection:n,onUpdate:b,isUpdating:T,isMCPAuthenticated:i,supportsOAuth:g.supportsOAuth,hasOAuthToken:g.hasOAuthToken,isServerError:g.isServerError,onViewReadme:w?()=>y("readme"):void 0}):a==="readme"&&w?o.jsx(Pe,{repository:p}):c&&i?o.jsx(ve,{connectionId:s,org:r,activeCollection:c},a):o.jsx(G,{title:"Collection not found",description:"This collection may have been deleted or you may not have access."})}),e[40]=c,e[41]=a,e[42]=g.hasOAuthToken,e[43]=g.isServerError,e[44]=g.supportsOAuth,e[45]=n,e[46]=s,e[47]=y,e[48]=w,e[49]=u,e[50]=i,e[51]=T,e[52]=b,e[53]=r,e[54]=E,e[55]=p,e[56]=I,e[57]=R,e[58]=K):K=e[58];let B;e[59]!==a||e[60]!==K?(B=o.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:o.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-auto",children:o.jsx(Z,{children:K},a)})}),e[59]=a,e[60]=K,e[61]=B):B=e[61];let F;return e[62]!==P||e[63]!==M||e[64]!==B?(F=o.jsxs(Ce,{onBack:P,children:[M,B]}),e[62]=P,e[63]=M,e[64]=B,e[65]=F):F=e[65],F}function Qe(t){return{id:t.name,label:t.displayName}}function Fe(){const t=Q.c(43);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/mcps/$connectionId"},t[0]=e):e=t[0];const n=H(e);let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/mcps/$connectionId"},t[1]=s):s=t[1];const{connectionId:r,org:d}=ce(s),{org:l}=ae();let b;t[2]===Symbol.for("react.memo_cache_sentinel")?(b={from:"/shell/$org/mcps/$connectionId"},t[2]=b):b=t[2];const E=le(b).tab||"settings",I=J(r),R=he(),u=de(I??void 0);let z;t[3]!==r||t[4]!==l.id?(z={connectionId:r,orgId:l.id},t[3]=r,t[4]=l.id,t[5]=z):z=t[5];const x=xe(z);let j;t[6]!==x?(j={client:x},t[6]=x,t[7]=j):j=t[7];const{data:f}=ge(j);let g;t[8]!==x?(g={client:x},t[8]=x,t[9]=g):g=t[9];const{data:i}=be(g),p=I?.tools&&I.tools.length>0,w=!p;let m;t[10]!==x||t[11]!==w?(m={client:x,enabled:w},t[10]=x,t[11]=w,t[12]=m):m=t[12];const{data:D,isLoading:V}=fe(m);let v;t[13]!==f?.prompts?(v=f?.prompts??[],t[13]=f?.prompts,t[14]=v):v=t[14];let k;t[15]!==v?(k=v.map(He),t[15]=v,t[16]=k):k=t[16];const _=k;let $;t[17]!==i?.resources?($=i?.resources??[],t[17]=i?.resources,t[18]=$):$=t[18];let N;t[19]!==$?(N=$.map(Ge),t[19]=$,t[20]=N):N=t[20];const O=N;let L;t[21]!==I||t[22]!==p||t[23]!==D?.tools?(L=p?I.tools??[]:(D?.tools??[]).map(We),t[21]=I,t[22]=p,t[23]=D?.tools,t[24]=L):L=t[24];const a=L;let A;t[25]!==R.update||t[26]!==r?(A=async C=>{await R.update.mutateAsync({id:r,data:C})},t[25]=R.update,t[26]=r,t[27]=A):A=t[27];const y=A;if(!I){let C;return t[28]!==n||t[29]!==d?(C=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(G,{title:"Connection not found",description:"This connection may have been deleted or you may not have access.",actions:o.jsx(je,{variant:"outline",onClick:()=>n({to:"/$org/mcps",params:{org:d}}),children:"Back to connections"})})}),t[28]=n,t[29]=d,t[30]=C):C=t[30],C}let S;return t[31]!==R.update.isPending||t[32]!==u||t[33]!==I||t[34]!==r||t[35]!==y||t[36]!==V||t[37]!==d||t[38]!==_||t[39]!==E||t[40]!==O||t[41]!==a?(S=o.jsx(qe,{org:d,connection:I,connectionId:r,requestedTabId:E,collections:u,onUpdate:y,isUpdating:R.update.isPending,prompts:_,resources:O,tools:a,isLoadingTools:V}),t[31]=R.update.isPending,t[32]=u,t[33]=I,t[34]=r,t[35]=y,t[36]=V,t[37]=d,t[38]=_,t[39]=E,t[40]=O,t[41]=a,t[42]=S):S=t[42],S}function We(t){return{name:t.name,description:t.description,inputSchema:t.inputSchema}}function Ge(t){return{uri:t.uri,name:t.name,description:t.description}}function He(t){return{name:t.name,description:t.description}}function Je(){const t=Q.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Z,{children:o.jsx(q.Suspense,{fallback:o.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:o.jsx(ee,{size:32,className:"animate-spin text-muted-foreground"})}),children:o.jsx(Fe,{})})}),t[0]=e):e=t[0],e}function yo(){const t=Q.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(Je,{}),t[0]=e):e=t[0],e}export{yo as default};
@@ -1 +0,0 @@
1
- import{x as t,B as a}from"./index-DL2qO0-_.js";const e=t(a,{target:"draft-7"});export{e as B};