@decocms/mesh 2.32.0 → 2.34.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.
- package/dist/README.md +1 -0
- package/dist/client/assets/{AlertCircle-BC5XMJnh.js → AlertCircle-BRWDZx_r.js} +1 -1
- package/dist/client/assets/{ArrowLeft-YLXxN85l.js → ArrowLeft-hhVT4Kgt.js} +1 -1
- package/dist/client/assets/{ArrowUp-B5D5I-e4.js → ArrowUp-07dwm1MA.js} +1 -1
- package/dist/client/assets/{Check-BJ8aD04h.js → Check-n_KiNdp_.js} +1 -1
- package/dist/client/assets/{ChevronDown-Dwu65bm7.js → ChevronDown-BDe2LrLc.js} +1 -1
- package/dist/client/assets/{Code01-D5im63O6.js → Code01-DPGq6TT6.js} +1 -1
- package/dist/client/assets/{Copy01-CzCGcpFB.js → Copy01-dSgWMnr9.js} +1 -1
- package/dist/client/assets/{CpuChip02-DL5MAhty.js → CpuChip02-D4-bIMj_.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-B8KoSTcW.js → DotsHorizontal-C5FFxgpO.js} +1 -1
- package/dist/client/assets/{DotsVertical-Q4BfP_OZ.js → DotsVertical-_ZO_fNF7.js} +1 -1
- package/dist/client/assets/{Download01-DdEO2Y20.js → Download01-H-0ecpIj.js} +1 -1
- package/dist/client/assets/{Edit01-BeUmNzHw.js → Edit01-nGCAvXPD.js} +1 -1
- package/dist/client/assets/{File06-Dbh0s9nF.js → File06-CbLEGD6l.js} +1 -1
- package/dist/client/assets/{FilterLines-DOm0e2np.js → FilterLines-CRZrobVY.js} +1 -1
- package/dist/client/assets/{FlipBackward-B0YDj6U2.js → FlipBackward-DEk7agK1.js} +1 -1
- package/dist/client/assets/{GitBranch01-7JSGEKWK.js → GitBranch01-8cUKFct3.js} +1 -1
- package/dist/client/assets/{Grid01-CxjwpfJx.js → Grid01-D_y10H_F.js} +1 -1
- package/dist/client/assets/{Home02-Mi1g3zml.js → Home02-CcZBoBXH.js} +1 -1
- package/dist/client/assets/{Image01-k29lIkxT.js → Image01-DAeUMBHm.js} +1 -1
- package/dist/client/assets/{Inbox01-C3SZugQ0.js → Inbox01-DYU61nmV.js} +1 -1
- package/dist/client/assets/{InfoCircle-BpN5-782.js → InfoCircle-B5w8XDv3.js} +1 -1
- package/dist/client/assets/{Key01-CfBi5Z2i.js → Key01-BMvQCi5l.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D9T5dDpq.js → LinkExternal01-Bi1B9G37.js} +1 -1
- package/dist/client/assets/{List-BH4t2L38.js → List-AGMu6Jg9.js} +1 -1
- package/dist/client/assets/{Loading01-Dk8ucN4u.js → Loading01-mNUVI85L.js} +1 -1
- package/dist/client/assets/{Lock01-C_cIWOtW.js → Lock01-B3WHG0KG.js} +1 -1
- package/dist/client/assets/{Play-CQprIR-2.js → Play-Cf7Any1j.js} +1 -1
- package/dist/client/assets/{Plus-DsxxHM8H.js → Plus-BBofXpHO.js} +1 -1
- package/dist/client/assets/{SearchMd-COziLDJJ.js → SearchMd-BCAxnQkD.js} +1 -1
- package/dist/client/assets/{Terminal-onO5xBIt.js → Terminal-rmcOb2qR.js} +1 -1
- package/dist/client/assets/{Trash01-Dz97bbYc.js → Trash01-r91jWYrx.js} +1 -1
- package/dist/client/assets/{Upload01-BX6LCIgm.js → Upload01-CHkKcKN6.js} +1 -1
- package/dist/client/assets/{X-IKzqhWHn.js → X-C-LXD8Fs.js} +1 -1
- package/dist/client/assets/{XClose-v1hlIgz0.js → XClose-Cuyiwbqc.js} +1 -1
- package/dist/client/assets/{agent-detail-DJ7sCPlX.js → agent-detail-Cgt9QWk4.js} +1 -1
- package/dist/client/assets/{agents-B2w5ERo_.js → agents-fnv41ET7.js} +1 -1
- package/dist/client/assets/{alert-dialog-DrQP8AK1.js → alert-dialog-b2qaVWQf.js} +1 -1
- package/dist/client/assets/{auth-catchall-CMrAfdfW.js → auth-catchall-CT8C3FiC.js} +1 -1
- package/dist/client/assets/{avatar-BJReLfGX.js → avatar-CJ18d1Yr.js} +1 -1
- package/dist/client/assets/{badge-DbdCj_uM.js → badge-BLC7Dsve.js} +1 -1
- package/dist/client/assets/{binder-D69FJEqF.js → binder-BG1MkJXb.js} +1 -1
- package/dist/client/assets/{button-PodD5p0U.js → button-CWaK1hUN.js} +1 -1
- package/dist/client/assets/{card-D-ovGS63.js → card-7SgaoQef.js} +1 -1
- package/dist/client/assets/{checkbox-6AvRm83v.js → checkbox-BWBpAWkB.js} +1 -1
- package/dist/client/assets/{collection-detail-CQJDYkNb.js → collection-detail-DUhOfUr0.js} +1 -1
- package/dist/client/assets/{collection-display-button-Dh09Ilcf.js → collection-display-button-DKWP6xRi.js} +1 -1
- package/dist/client/assets/{collection-header-BmH5wfr6.js → collection-header-I0z7H0ZC.js} +1 -1
- package/dist/client/assets/{collection-page-DQfIdy6i.js → collection-page-EuoaVB95.js} +1 -1
- package/dist/client/assets/{collection-search-4ynn1TPY.js → collection-search-CP09UmnI.js} +1 -1
- package/dist/client/assets/{collection-tab--D0SMzDr.js → collection-tab-Cyh1pe9u.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DNSd3m2k.js → collection-table-wrapper--qQDqi3a.js} +1 -1
- package/dist/client/assets/{connection-card-DnSsvBT0.js → connection-card-dyAZPnBc.js} +1 -1
- package/dist/client/assets/{connection-detail-DHFifhwE.js → connection-detail-BmS-s06n.js} +1 -1
- package/dist/client/assets/{connections-B9O8nDt9.js → connections-DBGBr_4l.js} +1 -1
- package/dist/client/assets/{constants-CmWKkXWd.js → constants-D7TSocv6.js} +1 -1
- package/dist/client/assets/constants-DSSgefWZ.js +1 -0
- package/dist/client/assets/{create-organization-dialog-CEW5VGHH.js → create-organization-dialog-DrmGwR9J.js} +1 -1
- package/dist/client/assets/{dialog-CWaQrwji.js → dialog-CkzeDWMv.js} +1 -1
- package/dist/client/assets/{dropdown-menu-D9Rmpcp9.js → dropdown-menu-eADXqdeC.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CBpne9DX.js → dynamic-plugin-layout-ObC7Ud51.js} +1 -1
- package/dist/client/assets/{empty-state-B-Xm_EaJ.js → empty-state-CfCSwnz1.js} +1 -1
- package/dist/client/assets/{empty-state-DqNObyCj.js → empty-state-zP-KbGlv.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CfgmDeU5.js → env-vars-editor-BI1TwkmM.js} +1 -1
- package/dist/client/assets/{error-boundary-BjOv2UWq.js → error-boundary-CG0YZ4B8.js} +1 -1
- package/dist/client/assets/{extract-connection-data-0XBBnZdV.js → extract-connection-data-DjJgYZHM.js} +1 -1
- package/dist/client/assets/{file-browser-B9wkG-Sl.js → file-browser-FetvDlId.js} +2 -2
- package/dist/client/assets/{form-vSEoY8gy.js → form-BJcgMy55.js} +1 -1
- package/dist/client/assets/{grid-view-DFrm-jAH.js → grid-view-DAtPq1rk.js} +1 -1
- package/dist/client/assets/{home-bVBdjE9M.js → home-563KzJx_.js} +1 -1
- package/dist/client/assets/{index-EWMtHb8y.js → index--CSmLs4y.js} +1 -1
- package/dist/client/assets/index-B0qsrDFa.css +1 -0
- package/dist/client/assets/{index-DuRBn85W.js → index-BMtR19Aw.js} +73 -73
- package/dist/client/assets/{index-964bfDMw.js → index-BipFUdjC.js} +2 -2
- package/dist/client/assets/{index-Cmw-k2HD.js → index-CJvrv3U6.js} +1 -1
- package/dist/client/assets/{index-wKTAGmPb.js → index-D8uhOq5u.js} +1 -1
- package/dist/client/assets/{index-B_Tj7K9k.js → index-q_aACm4R.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-KoZoIabU.js → infiniteQueryObserver-FEDpWaxK.js} +1 -1
- package/dist/client/assets/{input-Ej7Hdv-8.js → input-CJlzp_V5.js} +1 -1
- package/dist/client/assets/{layout-CXY5gq_4.js → layout-BHCzoCFv.js} +1 -1
- package/dist/client/assets/{localstorage-keys-D1mHOPHm.js → localstorage-keys-CqdQQHDa.js} +1 -1
- package/dist/client/assets/{login--5WB-nLi.js → login-DdZmNh4a.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BD4MGpFX.js → mcp-oauth-Da5yE9aW.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DS0l3oak.js → mcp-server-card-CYYL-dXF.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-CJwkhfLJ.js → mcp-server-detail-C2G-xpe0.js} +2 -2
- package/dist/client/assets/{members-BJW4tDMu.js → members-FKAvc6la.js} +1 -1
- package/dist/client/assets/{monaco-editor-3Me4XJ9I.js → monaco-editor-DkDnm6Tx.js} +1 -1
- package/dist/client/assets/{monitoring-CR4-lnND.js → monitoring-6KAEGPPJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-B8Ags9WE.js → oauth-callback-IuYTWMST.js} +1 -1
- package/dist/client/assets/{page-CN8DT11b.js → page-C36S8a5W.js} +1 -1
- package/dist/client/assets/page-C9G8C61g.js +21 -0
- package/dist/client/assets/{pin-to-sidebar-button-CYXcrmnE.js → pin-to-sidebar-button-WVVRk2lw.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DJU_t0en.js → plugin-empty-state-ByA0OkEn.js} +1 -1
- package/dist/client/assets/{plugin-header-DXCUdn_T.js → plugin-header-D5yHZtXf.js} +1 -1
- package/dist/client/assets/{plugins-Bl59udAj.js → plugins-OwUnN1ka.js} +1 -1
- package/dist/client/assets/{popover-DBItUBYK.js → popover-CshCl6w-.js} +1 -1
- package/dist/client/assets/{registry-utils-CPkD9bdu.js → registry-utils-D7Dqr6wv.js} +1 -1
- package/dist/client/assets/{resizable-ZQy6ZhoG.js → resizable-B1zLCIJb.js} +1 -1
- package/dist/client/assets/{resource-tabs-eTZinrmK.js → resource-tabs-CRbf__IW.js} +1 -1
- package/dist/client/assets/{select-AaQnf6IX.js → select-4bCSDmWU.js} +1 -1
- package/dist/client/assets/{settings-7r0XCBIy.js → settings-CR5PvLr2.js} +1 -1
- package/dist/client/assets/{shell-layout-Bi9hmLN-.js → shell-layout-FpAzDkjt.js} +1 -1
- package/dist/client/assets/{spinner-C--oN2eV.js → spinner-BipWRp7l.js} +1 -1
- package/dist/client/assets/{switch-uzDLGnXk.js → switch-C_F_zeuN.js} +1 -1
- package/dist/client/assets/{textarea-E7VOwyYz.js → textarea-BZmzcANs.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CQhszaVY.js → tool-set-selector-DMyguAVM.js} +1 -1
- package/dist/client/assets/{tools-list-BK4C4awn.js → tools-list-CM9pIRwn.js} +1 -1
- package/dist/client/assets/{tooltip-Bdoc9quu.js → tooltip-D3Kw0HUb.js} +1 -1
- package/dist/client/assets/{typewriter-title-BlMj2uGN.js → typewriter-title-zajICLfm.js} +1 -1
- package/dist/client/assets/{use-binding-DhM8knFB.js → use-binding-Ba3v4zMi.js} +1 -1
- package/dist/client/assets/{use-collections-xUu5CPtF.js → use-collections-BQHGs5iU.js} +1 -1
- package/dist/client/assets/{use-connection-Bqsa8RaS.js → use-connection-D03dTvtG.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CdxRkVjT.js → use-create-virtual-mcp-Cpzz-1zf.js} +1 -1
- package/dist/client/assets/{use-list-state-BmjPeRyR.js → use-list-state-B0KtA_q9.js} +1 -1
- package/dist/client/assets/{use-members-B5HINX4i.js → use-members-CHh5MLEe.js} +1 -1
- package/dist/client/assets/{use-mobile-CH4OC_dx.js → use-mobile-Q27OeJ4I.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BOpggtjG.js → use-organization-settings-CRV4VKdj.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-mbM9JS_c.js → use-virtual-mcp-CJ7FNu85.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-system-prompt-BlXwuykx.js → use-virtual-mcp-system-prompt-BfXjv37Y.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-shmHdaex.js +1 -0
- package/dist/client/assets/{useMutation-BABUvOV4.js → useMutation-BJoWTtTW.js} +1 -1
- package/dist/client/assets/useQuery-CcFgJIAV.js +1 -0
- package/dist/client/assets/{value-D8ri8g3W.js → value-C0VGfi9E.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-C-30gO9H.js → view-mode-toggle-BkNnvYv5.js} +1 -1
- package/dist/client/assets/{virtual-mcp-zquQbLgI.js → virtual-mcp-BBuKM0Zd.js} +1 -1
- package/dist/client/assets/{workflow-Dka00GsI.js → workflow-CxGNxRFo.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-B4USxFBv.js +0 -1
- package/dist/client/assets/index-D86tzVve.css +0 -1
- package/dist/client/assets/page-CCwujlJd.js +0 -21
- package/dist/client/assets/useInfiniteQuery-Dmu_NRFV.js +0 -1
- package/dist/client/assets/useQuery-B2QbSzDL.js +0 -1
package/dist/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M12 8v4m0 4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="AlertCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M19 12H5m0 0 7 7m-7-7 7-7"}));i.displayName="ArrowLeft";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 19V5m0 0-7 7m7-7 7 7"}));i.displayName="ArrowUp";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M20 6 9 17l-5-5"}));i.displayName="Check";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const n=({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:"m6 9 6 6 6-6"}));n.displayName="ChevronDown";export{n as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"m16 18 6-6-6-6M8 6l-6 6 6 6"}));i.displayName="Code01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const o=({size:e=24,color:t="currentColor",...a})=>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",...a},r.createElement("path",{d:"M5 15c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C2 13.398 2 12.932 2 12V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C3.52 2 4.08 2 5.2 2H12c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C15 3.602 15 4.068 15 5m-2.8 17h6.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-6.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 9 19.92 9 18.8 9h-6.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C9 10.52 9 11.08 9 12.2v6.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C10.52 22 11.08 22 12.2 22Z"}));o.displayName="Copy01";export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsHorizontal";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-BipFUdjC.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0-7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));i.displayName="DotsVertical";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const n=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M21 15v1.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.2V15m14-5-5 5m0 0-5-5m5 5V3"}));n.displayName="Download01";export{n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-BipFUdjC.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M2.876 18.116c.046-.414.069-.62.131-.814a2 2 0 0 1 .234-.485c.111-.17.259-.317.553-.61L17 3a2.828 2.828 0 1 1 4 4L7.794 20.206c-.294.294-.442.442-.611.553a2 2 0 0 1-.485.233c-.193.063-.4.086-.814.132L2.5 21.5l.376-3.384Z"}));i.displayName="Edit01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M16 13H8m8 4H8m2-8H8m6-7H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 4.28 4 5.12 4 6.8v10.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 22 7.12 22 8.8 22h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 19.72 20 18.88 20 17.2V8l-6-6Z"}));i.displayName="File06";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M6 12h12M3 6h18M9 18h6"}));i.displayName="FilterLines";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M3 9h13.5a4.5 4.5 0 1 1 0 9H12M3 9l4-4M3 9l4 4"}));i.displayName="FlipBackward";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));i.displayName="GitBranch01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-BipFUdjC.js";const o=({size:e=24,color:a="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"m9 18 6-6-6-6"}));o.displayName="ChevronRight";const c=({size:e=24,color:a="currentColor",...r})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:a,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},t.createElement("path",{d:"M8.4 3H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 3.76 3 4.04 3 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 10 4.04 10 4.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 9.24 10 8.96 10 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 3 8.96 3 8.4 3Zm11 0h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 3.76 14 4.04 14 4.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 10 15.04 10 15.6 10h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 9.24 21 8.96 21 8.4V4.6c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 3 19.96 3 19.4 3Zm0 11h-3.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C14 14.76 14 15.04 14 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 21 15.04 21 15.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C21 20.24 21 19.96 21 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C20.24 14 19.96 14 19.4 14Zm-11 0H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 14.76 3 15.04 3 15.6v3.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21h3.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C10 20.24 10 19.96 10 19.4v-3.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C9.24 14 8.96 14 8.4 14Z"}));c.displayName="Grid01";export{c,o as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const o=({size:e=24,color:t="currentColor",...a})=>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",...a},r.createElement("path",{d:"M9 21v-7.4c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 12 10.04 12 10.6 12h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 12.76 15 13.04 15 13.6V21M11.018 2.764 4.235 8.039c-.453.353-.68.53-.843.75a2 2 0 0 0-.318.65C3 9.704 3 9.991 3 10.565V17.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8v-7.235c0-.574 0-.861-.074-1.126a2.002 2.002 0 0 0-.318-.65c-.163-.22-.39-.397-.843-.75l-6.783-5.275c-.351-.273-.527-.41-.72-.462a1 1 0 0 0-.523 0c-.194.052-.37.189-.721.462Z"}));o.displayName="Home02";export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a}from"./index-
|
|
1
|
+
import{r as a}from"./index-BipFUdjC.js";const o=({size:e=24,color:r="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M16.2 21H6.931c-.605 0-.908 0-1.049-.12a.5.5 0 0 1-.173-.42c.014-.183.228-.397.657-.826l8.503-8.503c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L21 15v1.2M16.2 21c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 18.72 21 17.88 21 16.2M16.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 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4M10.5 8.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"}));o.displayName="Image01";export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const c=({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:"M2.5 12h3.382c.685 0 1.312.387 1.618 1 .306.613.933 1 1.618 1h5.764c.685 0 1.312-.387 1.618-1 .306-.613.933-1 1.618-1H21.5M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));c.displayName="Inbox01";export{c as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const i=({size:e=24,color:o="currentColor",...t})=>r.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:o,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},r.createElement("path",{d:"M12 16v-4m0-4h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));i.displayName="InfoCircle";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const a=({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:"M17 9a1.99 1.99 0 0 0-.586-1.414A1.994 1.994 0 0 0 15 7m0 8a6 6 0 1 0-5.946-5.193c.058.434.087.651.068.789a.853.853 0 0 1-.117.346c-.068.121-.187.24-.426.479l-5.11 5.11c-.173.173-.26.26-.322.36a1 1 0 0 0-.12.29C3 17.296 3 17.418 3 17.663V19.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H7v-2h2v-2h2l1.58-1.58c.238-.238.357-.357.478-.425a.852.852 0 0 1 .346-.117c.138-.02.355.01.789.068.264.036.533.054.807.054Z"}));a.displayName="Key01";export{a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const n=({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:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));n.displayName="LinkExternal01";export{n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-BipFUdjC.js";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M21 12H9m12-6H9m12 12H9m-4-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0-6a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm0 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));i.displayName="List";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));i.displayName="Loading01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const a=({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:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));a.displayName="Lock01";export{a as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./index-
|
|
1
|
+
import{r as t}from"./index-BipFUdjC.js";const a=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M21 10H3m13-8v4M8 2v4m-.2 16h8.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C21 19.72 21 18.88 21 17.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C18.72 4 17.88 4 16.2 4H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 6.28 3 7.12 3 8.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 22 6.12 22 7.8 22Z"}));a.displayName="Calendar";const i=({size:e=24,color:r="currentColor",...o})=>t.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},t.createElement("path",{d:"M5 4.99c0-.972 0-1.457.202-1.725a1 1 0 0 1 .738-.395c.335-.02.74.25 1.548.788l10.515 7.01c.668.446 1.002.668 1.118.949a1 1 0 0 1 0 .766c-.116.28-.45.503-1.118.948l-10.515 7.01c-.809.54-1.213.809-1.548.789a1 1 0 0 1-.738-.395C5 20.467 5 19.98 5 19.01V4.99Z"}));i.displayName="Play";export{i,a as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M12 5v14m-7-7h14"}));i.displayName="Plus";export{i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"m21 21-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z"}));i.displayName="SearchMd";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"m4 17 6-6-6-6m8 14h8"}));i.displayName="Terminal";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.js";const a=({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:"M16 6v-.8c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 2 13.92 2 12.8 2h-1.6c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C8 3.52 8 4.08 8 5.2V6m2 5.5v5m4-5v5M3 6h18m-2 0v11.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C16.72 22 15.88 22 14.2 22H9.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C5 19.72 5 18.88 5 17.2V6"}));a.displayName="Trash01";export{a as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M21 15v1.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.2V15m14-7-5-5m0 0L7 8m5-5v12"}));i.displayName="Upload01";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M17 7 7 17M7 7l10 10"}));i.displayName="X";export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-
|
|
1
|
+
import{r}from"./index-BipFUdjC.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:"M18 6 6 18M6 6l12 12"}));i.displayName="XClose";export{i as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S,c as M,j as t,e as qe,u as lt,f as nt,s as rt,b8 as it,bi as at,a as ct,b as dt,a0 as ze}from"./index-964bfDMw.js";import{I as Re,E as mt}from"./empty-state-B-Xm_EaJ.js";import{E as We}from"./error-boundary-BjOv2UWq.js";import{C as Ge}from"./checkbox-6AvRm83v.js";import{c as H,B as U}from"./button-PodD5p0U.js";import{i as ut}from"./ArrowLeft-YLXxN85l.js";import{p as ft,V as ht,u as xt}from"./virtual-mcp-zquQbLgI.js";import{a as He}from"./use-connection-Bqsa8RaS.js";import{C as pt}from"./collection-search-4ynn1TPY.js";import{I as Ae}from"./input-Ej7Hdv-8.js";import{s as gt}from"./Plus-DsxxHM8H.js";import{i as jt}from"./X-IKzqhWHn.js";import{P as bt}from"./pin-to-sidebar-button-CYXcrmnE.js";import{T as vt}from"./tool-set-selector-CQhszaVY.js";import{u as yt}from"./use-virtual-mcp-system-prompt-BlXwuykx.js";import{I as St,R as Nt,a as Ct,u as Ve}from"./index-wKTAGmPb.js";import{c as Le,K as De}from"./constants-CmWKkXWd.js";import{listPrompts as _t,listResources as wt}from"./index-Cmw-k2HD.js";import{b as kt,a as It}from"./use-virtual-mcp-mbM9JS_c.js";import{s as Ke}from"./slugify-CEUa2lfQ.js";import{B as Qe}from"./badge-DbdCj_uM.js";import{b as Tt,c as Mt,a as $t,D as Pt}from"./dialog-CWaQrwji.js";import{F as be,a as zt,b as ye,d as Se,f as Ne,c as Rt}from"./form-vSEoY8gy.js";import{R as At}from"./resource-tabs-eTZinrmK.js";import{S as Et,a as Vt,b as Lt,c as Dt,d as Fe}from"./select-AaQnf6IX.js";import{S as Ft}from"./switch-uzDLGnXk.js";import{T as Bt}from"./textarea-E7VOwyYz.js";import{b as Z,c as Y,T as J,a as X}from"./tooltip-Bdoc9quu.js";import{i as Ze}from"./Check-BJ8aD04h.js";import{i as Ot}from"./Code01-D5im63O6.js";import{a as Ut}from"./Copy01-CzCGcpFB.js";import{i as qt}from"./CpuChip02-DL5MAhty.js";import{i as Wt}from"./FlipBackward-B0YDj6U2.js";import{i as ve}from"./InfoCircle-BpN5-782.js";import{i as Pe}from"./Loading01-Dk8ucN4u.js";import{a as Gt,V as Ht,b as Kt}from"./layout-CXY5gq_4.js";import"./use-collections-xUu5CPtF.js";import"./useMutation-BABUvOV4.js";import"./useQuery-B2QbSzDL.js";import"./SearchMd-COziLDJJ.js";import"./use-organization-settings-BOpggtjG.js";import"./localstorage-keys-D1mHOPHm.js";import"./ChevronDown-Dwu65bm7.js";const Ye=({size:o=24,color:e="currentColor",...s})=>S.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},S.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Ye.displayName="ArrowsRight";const Je=({size:o=24,color:e="currentColor",...s})=>S.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},S.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"}));Je.displayName="Circle";const Xe=({size:o=24,color:e="currentColor",...s})=>S.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},S.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"}));Xe.displayName="Lightbulb02";const et=({size:o=24,color:e="currentColor",...s})=>S.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},S.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"}));et.displayName="Save01";const tt=({size:o=24,color:e="currentColor",...s})=>S.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},S.createElement("path",{d:"m8.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M21 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));tt.displayName="Share07";const Qt=S.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=H("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(Re,{icon:l.icon,name:l.title,size:"xs"}),s[2]=l.icon,s[3]=l.title,s[4]=f):f=s[4];let p;s[5]!==l.title?(p=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]=p):p=s[6];let x;s[7]!==m||s[8]!==f||s[9]!==p?(x=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:m,children:[f,p]}),s[7]=m,s[8]=f,s[9]=p,s[10]=x):x=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:Yt})]}),s[11]=i,s[12]=r,s[13]=c,s[14]=a,s[15]=g):g=s[15];let v;return s[16]!==u||s[17]!==x||s[18]!==g?(v=t.jsxs("div",{className:u,children:[x,g]}),s[16]=u,s[17]=x,s[18]=g,s[19]=v):v=s[19],v}),Zt=S.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=H("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 p=`item-${l}-${n.id}`;let x;s[10]!==r||s[11]!==i||s[12]!==p?(x=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(Ge,{id:p,checked:r,onCheckedChange:i,onClick:Jt})}),s[10]=r,s[11]=i,s[12]=p,s[13]=x):x=s[13];let g;return s[14]!==a||s[15]!==f||s[16]!==x?(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,x]}),s[14]=a,s[15]=f,s[16]=x,s[17]=g):g=s[17],g});function st({itemSet:o,onItemSetChange:e,getItems:s,itemLabel:l,emptyItemsMessage:n,extraContent:r,excludeVirtualMcpId:i}){const[a,m]=S.useState(""),c=S.useDeferredValue(a),[d,u]=S.useState("all"),[f,p]=S.useState(!1),x=S.useRef(new Set(Object.keys(o))),g=He({searchTerm:c.trim()||void 0}),v=i?g.filter(h=>h.connection_type!=="VIRTUAL"?!0:ft(h.connection_url)!==i):g,N=x.current,w=[...N.values()].map(h=>v.find(C=>C.id===h)).filter(h=>h!==void 0),_=v.filter(h=>!N.has(h.id)),j=[...w,..._],y=h=>{const C=o[h];return C!==void 0&&C.length>0},k=j.filter(h=>{if(d==="all")return!0;const C=y(h.id);return d==="selected"?C:d==="unselected"?!C:!0}),[T,$]=S.useState(j[0]?.id??null),I=T?j.find(h=>h.id===T)??null:null,P=I?s(I):[],E=(h,C)=>o[h]?.includes(C)??!1,z=(h,C)=>{const L=o[h]??[],D=L.includes(C),q={...o};if(D){const W=L.filter(K=>K!==C);W.length===0?delete q[h]:q[h]=W}else q[h]=[...L,C];e(q)},R=h=>{const C=j.find(B=>B.id===h);if(!C)return;const L=s(C);if(L.length===0)return;const D=o[h]??[],q=L.map(B=>B.id),W=D.length>0&&q.every(B=>D.includes(B)),K={...o};W?delete K[h]:(K[h]=q,$(h)),e(K)},V=h=>{$(h),p(!0)},F=()=>{p(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:H("w-full md:w-80 border-r border-border flex flex-col",f&&"hidden md:flex"),children:[t.jsx(pt,{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:H("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:H("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:H("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:k.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:k.map(h=>{const L=s(h).length,D=o[h.id]?.length??0;return t.jsx(Qt,{connection:h,isSelected:T===h.id,hasItemsEnabled:y(h.id),activeItemsCount:D,totalItemsCount:L,onSelect:()=>V(h.id),onToggle:()=>R(h.id)},h.id)})})})]}),t.jsx("div",{className:H("flex-1 flex-col",f?"flex":"hidden md:flex"),children:I?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(U,{variant:"ghost",size:"sm",onClick:F,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(ut,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(Re,{icon:I.icon,name:I.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:I.title}),I.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:I.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(h=>t.jsx(Zt,{connectionId:I.id,item:h,isSelected:E(I.id,h.id),onToggle:()=>z(I.id,h.id)},h.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 Yt(o){return o.stopPropagation()}function Jt(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(st,{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]=S.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 p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("code",{children:"*"}),e[12]=p):p=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",p," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=k=>i(k.target.value),e[14]=g):g=e[14];let v;e[15]!==d||e[16]!==r?(v=t.jsx(Ae,{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]=v):v=e[17];let N;e[18]!==r?(N=r.trim(),e[18]=r,e[19]=N):N=e[19];const w=!N;let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(gt,{size:16}),e[20]=_):_=e[20];let j;e[21]!==m||e[22]!==w?(j=t.jsx(U,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:w,children:_}),e[21]=m,e[22]=w,e[23]=j):j=e[23];let y;e[24]!==j||e[25]!==v?(y=t.jsxs("div",{className:"flex gap-2",children:[v,j]}),e[24]=j,e[25]=v,e[26]=y):y=e[26],u=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[x,y,f.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:f.map(k=>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:k}),t.jsx("button",{type:"button",onClick:()=>n(k),className:"text-muted-foreground hover:text-foreground",children:t.jsx(jt,{size:12})})]},k))})]}),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]=S.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,y)=>{const k=s[j]??[];k.includes(y)||l({...s,[j]:[...k,y]})},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,y)=>{const T=(s[j]??[]).filter($=>$!==y);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 p;e[8]!==l?(p=j=>{l(j)},e[8]=l,e[9]=p):p=e[9];const x=p;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 v=g;let N;e[13]!==d||e[14]!==f||e[15]!==i||e[16]!==v?(N=i?t.jsx(ss,{patterns:v,onAddPattern:j=>d(i,j),onRemovePattern:j=>f(i,j)}):null,e[13]=d,e[14]=f,e[15]=i,e[16]=v,e[17]=N):N=e[17];const w=N;let _;return e[18]!==r||e[19]!==w||e[20]!==m||e[21]!==x||e[22]!==s?(_=t.jsx("div",{className:"h-full",children:t.jsx(st,{itemSet:s,onItemSetChange:x,getItems:m,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:w,excludeVirtualMcpId:r})}),e[18]=r,e[19]=w,e[20]=m,e[21]=x,e[22]=s,e[23]=_):_=e[23],_}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=H("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(Nt,{"data-slot":"radio-group",className:n,...l}),e[5]=l,e[6]=n,e[7]=r):r=e[7],r}function $e(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=H("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(Je,{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(St,{"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=ht.pick({title:!0,description:!0,status:!0,tool_selection_mode:!0}).extend({title:rt().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 Oe(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]=S.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),n(!0),ze.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(Ut,{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(U,{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"),ze.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(U,{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]=S.useState(!1);let i;e[0]!==l||e[1]!==s?(i=async()=>{const f=Ke(l),x=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add "${f}" --config '${x.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),r(!0),ze.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(U,{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]=S.useState("code_execution");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=C=>{(C==="passthrough"||C==="smart_tool_selection"||C==="code_execution")&&i(C)},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 p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=p):p=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ye,{className:"size-5 text-muted-foreground"})}),e[9]=x):x=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 v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(J,{asChild:!0,children:t.jsx(ve,{className:"size-3.5 text-muted-foreground"})}),e[11]=v):v=e[11];let N;e[12]===Symbol.for("react.memo_cache_sentinel")?(N=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:[x,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(Z,{children:t.jsxs(Y,{children:[v,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($e,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=N):N=e[12];let w;e[13]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Xe,{className:"size-5 text-muted-foreground"})}),e[13]=w):w=e[13];let _;e[14]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=_):_=e[14];let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(J,{asChild:!0,children:t.jsx(ve,{className:"size-3.5 text-muted-foreground"})}),e[15]=j):j=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=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:[w,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[_,t.jsx(Z,{children:t.jsxs(Y,{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($e,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=y):y=e[16];let k;e[17]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ot,{className:"size-5 text-muted-foreground"})}),e[17]=k):k=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(J,{asChild:!0,children:t.jsx(ve,{className:"size-3.5 text-muted-foreground"})}),e[19]=$):$=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=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:[k,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(Z,{children:t.jsxs(Y,{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($e,{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]=I):I=e[20];let P;e[21]!==r?(P=t.jsxs("div",{className:"flex flex-col gap-3",children:[p,t.jsxs(ns,{value:r,onValueChange:m,className:"flex flex-col gap-4.5",children:[N,y,I]})]}),e[21]=r,e[22]=P):P=e[22];let E;e[23]!==c.href?(E=t.jsx(cs,{url:c.href}),e[23]=c.href,e[24]=E):E=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 V;e[29]!==E||e[30]!==z||e[31]!==R?(V=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[E,z,R]})}),e[29]=E,e[30]=z,e[31]=R,e[32]=V):V=e[32];let F;e[33]!==P||e[34]!==V?(F=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,V]})]}),e[33]=P,e[34]=V,e[35]=F):F=e[35];let h;return e[36]!==l||e[37]!==s||e[38]!==F?(h=t.jsx(Pt,{open:s,onOpenChange:l,children:F}),e[36]=l,e[37]=s,e[38]=F,e[39]=h):h=e[39],h}function fs(o){const e=M.c(31),{form:s,icon:l,virtualMcpId:n}=o,[r,i]=yt(n);let a;e[0]!==s?(a=s.watch("title")||"Agent",e[0]=s,e[1]=a):a=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(qt,{}),e[2]=m):m=e[2];let c;e[3]!==l||e[4]!==a?(c=t.jsx(Re,{icon:l,name:a,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:m}),e[3]=l,e[4]=a,e[5]=c):c=e[5];let d;e[6]!==s.control?(d=t.jsx(be,{control:s.control,name:"status",render:gs}),e[6]=s.control,e[7]=d):d=e[7];let u;e[8]!==c||e[9]!==d?(u=t.jsxs("div",{className:"flex items-start justify-between",children:[c,d]}),e[8]=c,e[9]=d,e[10]=u):u=e[10];let f;e[11]!==s.control?(f=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(be,{control:s.control,name:"title",render:ps}),t.jsx(be,{control:s.control,name:"description",render:xs})]}),e[11]=s.control,e[12]=f):f=e[12];let p;e[13]!==u||e[14]!==f?(p=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[u,f]}),e[13]=u,e[14]=f,e[15]=p):p=e[15];let x;e[16]!==s.control?(x=t.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:t.jsx(be,{control:s.control,name:"tool_selection_mode",render:hs})}),e[16]=s.control,e[17]=x):x=e[17];let g;e[18]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs("div",{children:[t.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:"System Prompt"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Stored locally for now"})]}),e[18]=g):g=e[18];let v;e[19]!==i?(v=j=>i(j.target.value),e[19]=i,e[20]=v):v=e[20];let N;e[21]!==r||e[22]!==v?(N=t.jsxs("div",{className:"flex flex-col gap-3 p-5",children:[g,t.jsx(Bt,{value:r,onChange:v,placeholder:"Enter system prompt instructions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})]}),e[21]=r,e[22]=v,e[23]=N):N=e[23];let w;e[24]!==N||e[25]!==p||e[26]!==x?(w=t.jsxs("div",{className:"flex flex-col",children:[p,x,N]}),e[24]=N,e[25]=p,e[26]=x,e[27]=w):w=e[27];let _;return e[28]!==s||e[29]!==w?(_=t.jsx("div",{className:"flex flex-col h-full overflow-auto",children:t.jsx(zt,{...s,children:w})}),e[28]=s,e[29]=w,e[30]=_):_=e[30],_}function hs(o){const{field:e}=o;return t.jsxs(ye,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(Rt,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Z,{children:t.jsxs(Y,{children:[t.jsx(J,{asChild:!0,children:t.jsx(U,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(ve,{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(Et,{value:e.value,onValueChange:e.onChange,children:[t.jsx(Se,{children:t.jsx(Vt,{className:"w-[180px]",children:t.jsx(Lt,{})})}),t.jsxs(Dt,{children:[t.jsx(Fe,{value:"inclusion",children:"Include Selected"}),t.jsx(Fe,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(Ne,{})]})}function xs(o){const{field:e}=o;return t.jsxs(ye,{className:"w-full space-y-0",children:[t.jsx(Se,{children:t.jsx(Ae,{...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(Ne,{})]})}function ps(o){const{field:e}=o;return t.jsxs(ye,{className:"w-full space-y-0",children:[t.jsx(Se,{children:t.jsx(Ae,{...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(Ne,{})]})}function gs(o){const{field:e}=o;return t.jsxs(ye,{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(Se,{children:t.jsx(Ft,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(Ne,{})]})}function js(o){const e=M.c(73),{virtualMcp:s,virtualMcpId:l,requestedTabId:n}=o,i=it().location.href,a=at();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/$org/agents/$agentId"},e[0]=m):m=e[0];const c=qe(m),d=It(),{org:u}=xt();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const p=He(f),x=p.map(Ss);let g;e[2]!==u?(g=b=>({queryKey:De.connectionPrompts(b),queryFn:async()=>{try{const A=await Le({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 v=Ve({queries:x.map(g)});let N;e[4]!==u?(N=b=>({queryKey:De.connectionResources(b),queryFn:async()=>{try{const A=await Le({connectionId:b,orgId:u.id});return await wt(A)}catch{return{resources:[]}}},staleTime:6e4,retry:!1}),e[4]=u,e[5]=N):N=e[5];const w=Ve({queries:x.map(N)}),_=new Map;x.forEach((b,A)=>{const Q=v[A];Q?.data?_.set(b,Q.data.prompts.map(ys)):_.set(b,[])});const j=new Map;x.forEach((b,A)=>{const Q=w[A];Q?.data?j.set(b,Q.data.resources.map(vs)):j.set(b,[])});let y;if(e[6]!==p){y=new Map;for(const b of p)b.tools&&b.tools.length>0&&y.set(b.id,b.tools.map(bs));e[6]=p,e[7]=y}else y=e[7];let k;e[8]!==y||e[9]!==s?(k=()=>Be(s,y),e[8]=y,e[9]=s,e[10]=k):k=e[10];const[T,$]=S.useState(k);let I;e[11]!==s?(I=()=>Oe(s),e[11]=s,e[12]=I):I=e[12];const[P,E]=S.useState(I);let z;e[13]!==s?(z=()=>Ue(s),e[13]=s,e[14]=z):z=e[14];const[R,V]=S.useState(z),[F,h]=S.useState(!1),[C,L]=S.useState(!1);let D;e[15]===Symbol.for("react.memo_cache_sentinel")?(D=b=>{$(b),h(!0)},e[15]=D):D=e[15];const q=D;let W;e[16]===Symbol.for("react.memo_cache_sentinel")?(W=b=>{E(b),h(!0)},e[16]=W):W=e[16];const K=W;let B;e[17]===Symbol.for("react.memo_cache_sentinel")?(B=b=>{V(b),h(!0)},e[17]=B):B=e[17];const ot=B;let ce;e[18]===Symbol.for("react.memo_cache_sentinel")?(ce=ct(is),e[18]=ce):ce=e[18];const Ce=s.tool_selection_mode??"inclusion";let de;e[19]!==Ce||e[20]!==s.description||e[21]!==s.status||e[22]!==s.title?(de={resolver:ce,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:Ce}},e[19]=Ce,e[20]=s.description,e[21]=s.status,e[22]=s.title,e[23]=de):de=e[23];const G=dt(de),_e=G.formState.isDirty||F;let me;e[24]!==d.update||e[25]!==y||e[26]!==G||e[27]!==R||e[28]!==P||e[29]!==T||e[30]!==l?(me=async()=>{try{const b=G.getValues(),A=as(T,P,R,y),Q={title:b.title,description:b.description,status:b.status,tool_selection_mode:b.tool_selection_mode,connections:A};await d.update.mutateAsync({id:l,data:Q}),G.reset(b),h(!1)}catch(b){console.error("Failed to save virtual MCP:",b)}},e[24]=d.update,e[25]=y,e[26]=G,e[27]=R,e[28]=P,e[29]=T,e[30]=l,e[31]=me):me=e[31];const we=me;let ue;e[32]!==y||e[33]!==G||e[34]!==s?(ue=()=>{G.reset({title:s.title,description:s.description,status:s.status,tool_selection_mode:s.tool_selection_mode??"inclusion"}),$(Be(s,y)),E(Oe(s)),V(Ue(s)),h(!1)},e[32]=y,e[33]=G,e[34]=s,e[35]=ue):ue=e[35];const ke=ue;let fe;e[36]===Symbol.for("react.memo_cache_sentinel")?(fe=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[36]=fe):fe=e[36];const Ee=fe,O=Ee.some(b=>b.id===n)?n:"settings";let he;e[37]!==c?(he=b=>{c({search:A=>({...A,tab:b}),replace:!0})},e[37]=c,e[38]=he):he=e[38];const Ie=he,ae=d.update.isPending;let ee;e[39]!==a.history?(ee=()=>a.history.back(),e[39]=a.history,e[40]=ee):ee=e[40];let te;e[41]!==O||e[42]!==Ie?(te=t.jsx(Gt,{children:t.jsx(At,{tabs:Ee,activeTab:O,onTabChange:Ie})}),e[41]=O,e[42]=Ie,e[43]=te):te=e[43];let se;e[44]!==ke||e[45]!==we||e[46]!==_e||e[47]!==ae?(se=_e&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(U,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ae,onClick:ke,"aria-label":"Cancel",children:t.jsx(Wt,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Cancel"})]})}),t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(U,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ae,onClick:we,"aria-label":"Save",children:ae?t.jsx(Pe,{size:14,className:"animate-spin"}):t.jsx(et,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Save"})]})})]}),e[44]=ke,e[45]=we,e[46]=_e,e[47]=ae,e[48]=se):se=e[48];let xe;e[49]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>L(!0),e[49]=xe):xe=e[49];let pe;e[50]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(U,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:xe,"aria-label":"Share",children:t.jsx(tt,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Share"})]})}),e[50]=pe):pe=e[50];const Te=s.icon??"cpu_chip";let oe;e[51]!==Te||e[52]!==i||e[53]!==s.title?(oe=t.jsx(bt,{title:s.title,url:i,icon:Te}),e[51]=Te,e[52]=i,e[53]=s.title,e[54]=oe):oe=e[54];let le;e[55]!==se||e[56]!==oe?(le=t.jsxs(Ht,{children:[se,pe,oe]}),e[55]=se,e[56]=oe,e[57]=le):le=e[57];let ge;e[58]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),e[58]=ge):ge=e[58];const Me=O==="settings"?t.jsx(fs,{form:G,icon:s.icon,virtualMcpId:l}):O==="tools"?t.jsx(vt,{toolSet:T,onToolSetChange:q,excludeVirtualMcpId:l}):O==="resources"?t.jsx(os,{resourceSet:P,onResourceSetChange:K,connectionResources:j,excludeVirtualMcpId:l}):O==="prompts"?t.jsx(Xt,{promptSet:R,onPromptSetChange:ot,connectionPrompts:_,excludeVirtualMcpId:l}):null;let ne;e[59]!==Me?(ne=t.jsx(S.Suspense,{fallback:ge,children:Me}),e[59]=Me,e[60]=ne):ne=e[60];let re;e[61]!==O||e[62]!==ne?(re=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(We,{children:ne},O)})})}),e[61]=O,e[62]=ne,e[63]=re):re=e[63];let ie;e[64]!==C||e[65]!==s?(ie=t.jsx(us,{open:C,onOpenChange:L,virtualMcp:s}),e[64]=C,e[65]=s,e[66]=ie):ie=e[66];let je;return e[67]!==ee||e[68]!==te||e[69]!==le||e[70]!==re||e[71]!==ie?(je=t.jsxs(Kt,{onBack:ee,children:[te,le,re,ie]}),e[67]=ee,e[68]=te,e[69]=le,e[70]=re,e[71]=ie,e[72]=je):je=e[72],je}function bs(o){return o.name}function vs(o){return{uri:o.uri,name:o.name,description:o.description}}function ys(o){return{name:o.name,description:o.description}}function Ss(o){return o.id}function Ns(){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=qe(e);let l;o[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},o[1]=l):l=o[1];const n=lt(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=nt(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(mt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(U,{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(js,{virtualMcp:d,virtualMcpId:i,requestedTabId:c}),o[6]=c,o[7]=d,o[8]=i,o[9]=u):u=o[9],u}function Cs(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(We,{children:t.jsx(S.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Ns,{})})}),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(Cs,{}),o[0]=e):e=o[0],e}export{po as default};
|
|
1
|
+
import{r as S,c as M,j as t,e as qe,u as lt,f as nt,s as rt,b8 as it,bi as at,a as ct,b as dt,a0 as ze}from"./index-BipFUdjC.js";import{I as Re,E as mt}from"./empty-state-CfCSwnz1.js";import{E as We}from"./error-boundary-CG0YZ4B8.js";import{C as Ge}from"./checkbox-BWBpAWkB.js";import{c as H,B as U}from"./button-CWaK1hUN.js";import{i as ut}from"./ArrowLeft-hhVT4Kgt.js";import{p as ft,V as ht,u as xt}from"./virtual-mcp-BBuKM0Zd.js";import{a as He}from"./use-connection-D03dTvtG.js";import{C as pt}from"./collection-search-CP09UmnI.js";import{I as Ae}from"./input-CJlzp_V5.js";import{s as gt}from"./Plus-BBofXpHO.js";import{i as jt}from"./X-C-LXD8Fs.js";import{P as bt}from"./pin-to-sidebar-button-WVVRk2lw.js";import{T as vt}from"./tool-set-selector-DMyguAVM.js";import{u as yt}from"./use-virtual-mcp-system-prompt-BfXjv37Y.js";import{I as St,R as Nt,a as Ct,u as Ve}from"./index-D8uhOq5u.js";import{c as Le,K as De}from"./constants-D7TSocv6.js";import{listPrompts as _t,listResources as wt}from"./index-CJvrv3U6.js";import{b as kt,a as It}from"./use-virtual-mcp-CJ7FNu85.js";import{s as Ke}from"./slugify-CEUa2lfQ.js";import{B as Qe}from"./badge-BLC7Dsve.js";import{b as Tt,c as Mt,a as $t,D as Pt}from"./dialog-CkzeDWMv.js";import{F as be,a as zt,b as ye,d as Se,f as Ne,c as Rt}from"./form-BJcgMy55.js";import{R as At}from"./resource-tabs-CRbf__IW.js";import{S as Et,a as Vt,b as Lt,c as Dt,d as Fe}from"./select-4bCSDmWU.js";import{S as Ft}from"./switch-C_F_zeuN.js";import{T as Bt}from"./textarea-BZmzcANs.js";import{b as Z,c as Y,T as J,a as X}from"./tooltip-D3Kw0HUb.js";import{i as Ze}from"./Check-n_KiNdp_.js";import{i as Ot}from"./Code01-DPGq6TT6.js";import{a as Ut}from"./Copy01-dSgWMnr9.js";import{i as qt}from"./CpuChip02-D4-bIMj_.js";import{i as Wt}from"./FlipBackward-DEk7agK1.js";import{i as ve}from"./InfoCircle-B5w8XDv3.js";import{i as Pe}from"./Loading01-mNUVI85L.js";import{a as Gt,V as Ht,b as Kt}from"./layout-BHCzoCFv.js";import"./use-collections-BQHGs5iU.js";import"./useMutation-BJoWTtTW.js";import"./useQuery-CcFgJIAV.js";import"./SearchMd-BCAxnQkD.js";import"./use-organization-settings-CRV4VKdj.js";import"./localstorage-keys-CqdQQHDa.js";import"./ChevronDown-BDe2LrLc.js";const Ye=({size:o=24,color:e="currentColor",...s})=>S.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},S.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));Ye.displayName="ArrowsRight";const Je=({size:o=24,color:e="currentColor",...s})=>S.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},S.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"}));Je.displayName="Circle";const Xe=({size:o=24,color:e="currentColor",...s})=>S.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},S.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"}));Xe.displayName="Lightbulb02";const et=({size:o=24,color:e="currentColor",...s})=>S.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},S.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"}));et.displayName="Save01";const tt=({size:o=24,color:e="currentColor",...s})=>S.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},S.createElement("path",{d:"m8.59 13.51 6.83 3.98m-.01-10.98-6.82 3.98M21 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm12 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}));tt.displayName="Share07";const Qt=S.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=H("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(Re,{icon:l.icon,name:l.title,size:"xs"}),s[2]=l.icon,s[3]=l.title,s[4]=f):f=s[4];let p;s[5]!==l.title?(p=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]=p):p=s[6];let x;s[7]!==m||s[8]!==f||s[9]!==p?(x=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:m,children:[f,p]}),s[7]=m,s[8]=f,s[9]=p,s[10]=x):x=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:Yt})]}),s[11]=i,s[12]=r,s[13]=c,s[14]=a,s[15]=g):g=s[15];let v;return s[16]!==u||s[17]!==x||s[18]!==g?(v=t.jsxs("div",{className:u,children:[x,g]}),s[16]=u,s[17]=x,s[18]=g,s[19]=v):v=s[19],v}),Zt=S.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=H("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 p=`item-${l}-${n.id}`;let x;s[10]!==r||s[11]!==i||s[12]!==p?(x=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(Ge,{id:p,checked:r,onCheckedChange:i,onClick:Jt})}),s[10]=r,s[11]=i,s[12]=p,s[13]=x):x=s[13];let g;return s[14]!==a||s[15]!==f||s[16]!==x?(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,x]}),s[14]=a,s[15]=f,s[16]=x,s[17]=g):g=s[17],g});function st({itemSet:o,onItemSetChange:e,getItems:s,itemLabel:l,emptyItemsMessage:n,extraContent:r,excludeVirtualMcpId:i}){const[a,m]=S.useState(""),c=S.useDeferredValue(a),[d,u]=S.useState("all"),[f,p]=S.useState(!1),x=S.useRef(new Set(Object.keys(o))),g=He({searchTerm:c.trim()||void 0}),v=i?g.filter(h=>h.connection_type!=="VIRTUAL"?!0:ft(h.connection_url)!==i):g,N=x.current,w=[...N.values()].map(h=>v.find(C=>C.id===h)).filter(h=>h!==void 0),_=v.filter(h=>!N.has(h.id)),j=[...w,..._],y=h=>{const C=o[h];return C!==void 0&&C.length>0},k=j.filter(h=>{if(d==="all")return!0;const C=y(h.id);return d==="selected"?C:d==="unselected"?!C:!0}),[T,$]=S.useState(j[0]?.id??null),I=T?j.find(h=>h.id===T)??null:null,P=I?s(I):[],E=(h,C)=>o[h]?.includes(C)??!1,z=(h,C)=>{const L=o[h]??[],D=L.includes(C),q={...o};if(D){const W=L.filter(K=>K!==C);W.length===0?delete q[h]:q[h]=W}else q[h]=[...L,C];e(q)},R=h=>{const C=j.find(B=>B.id===h);if(!C)return;const L=s(C);if(L.length===0)return;const D=o[h]??[],q=L.map(B=>B.id),W=D.length>0&&q.every(B=>D.includes(B)),K={...o};W?delete K[h]:(K[h]=q,$(h)),e(K)},V=h=>{$(h),p(!0)},F=()=>{p(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:H("w-full md:w-80 border-r border-border flex flex-col",f&&"hidden md:flex"),children:[t.jsx(pt,{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:H("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:H("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:H("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:k.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:k.map(h=>{const L=s(h).length,D=o[h.id]?.length??0;return t.jsx(Qt,{connection:h,isSelected:T===h.id,hasItemsEnabled:y(h.id),activeItemsCount:D,totalItemsCount:L,onSelect:()=>V(h.id),onToggle:()=>R(h.id)},h.id)})})})]}),t.jsx("div",{className:H("flex-1 flex-col",f?"flex":"hidden md:flex"),children:I?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(U,{variant:"ghost",size:"sm",onClick:F,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(ut,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx(Re,{icon:I.icon,name:I.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:I.title}),I.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:I.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(h=>t.jsx(Zt,{connectionId:I.id,item:h,isSelected:E(I.id,h.id),onToggle:()=>z(I.id,h.id)},h.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 Yt(o){return o.stopPropagation()}function Jt(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(st,{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]=S.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 p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("code",{children:"*"}),e[12]=p):p=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs("div",{className:"text-xs text-muted-foreground",children:["Add URI patterns to match multiple resources. Use ",p," for single segment and ",t.jsx("code",{children:"**"})," for multiple segments."]}),e[13]=x):x=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=k=>i(k.target.value),e[14]=g):g=e[14];let v;e[15]!==d||e[16]!==r?(v=t.jsx(Ae,{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]=v):v=e[17];let N;e[18]!==r?(N=r.trim(),e[18]=r,e[19]=N):N=e[19];const w=!N;let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(gt,{size:16}),e[20]=_):_=e[20];let j;e[21]!==m||e[22]!==w?(j=t.jsx(U,{type:"button",variant:"outline",size:"sm",onClick:m,disabled:w,children:_}),e[21]=m,e[22]=w,e[23]=j):j=e[23];let y;e[24]!==j||e[25]!==v?(y=t.jsxs("div",{className:"flex gap-2",children:[v,j]}),e[24]=j,e[25]=v,e[26]=y):y=e[26],u=t.jsxs("div",{className:"border-b border-border p-4 space-y-3",children:[x,y,f.length>0&&t.jsx("div",{className:"flex flex-wrap gap-2",children:f.map(k=>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:k}),t.jsx("button",{type:"button",onClick:()=>n(k),className:"text-muted-foreground hover:text-foreground",children:t.jsx(jt,{size:12})})]},k))})]}),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]=S.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,y)=>{const k=s[j]??[];k.includes(y)||l({...s,[j]:[...k,y]})},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,y)=>{const T=(s[j]??[]).filter($=>$!==y);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 p;e[8]!==l?(p=j=>{l(j)},e[8]=l,e[9]=p):p=e[9];const x=p;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 v=g;let N;e[13]!==d||e[14]!==f||e[15]!==i||e[16]!==v?(N=i?t.jsx(ss,{patterns:v,onAddPattern:j=>d(i,j),onRemovePattern:j=>f(i,j)}):null,e[13]=d,e[14]=f,e[15]=i,e[16]=v,e[17]=N):N=e[17];const w=N;let _;return e[18]!==r||e[19]!==w||e[20]!==m||e[21]!==x||e[22]!==s?(_=t.jsx("div",{className:"h-full",children:t.jsx(st,{itemSet:s,onItemSetChange:x,getItems:m,itemLabel:"resources",emptyItemsMessage:"This connection has no resources available",extraContent:w,excludeVirtualMcpId:r})}),e[18]=r,e[19]=w,e[20]=m,e[21]=x,e[22]=s,e[23]=_):_=e[23],_}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=H("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(Nt,{"data-slot":"radio-group",className:n,...l}),e[5]=l,e[6]=n,e[7]=r):r=e[7],r}function $e(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=H("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(Je,{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(St,{"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=ht.pick({title:!0,description:!0,status:!0,tool_selection_mode:!0}).extend({title:rt().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 Oe(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]=S.useState(!1);let r;e[0]!==s?(r=async()=>{await navigator.clipboard.writeText(s),n(!0),ze.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(Ut,{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(U,{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"),ze.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(U,{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]=S.useState(!1);let i;e[0]!==l||e[1]!==s?(i=async()=>{const f=Ke(l),x=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),g=`claude mcp add "${f}" --config '${x.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(g),r(!0),ze.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(U,{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]=S.useState("code_execution");let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=C=>{(C==="passthrough"||C==="smart_tool_selection"||C==="code_execution")&&i(C)},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 p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=p):p=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ye,{className:"size-5 text-muted-foreground"})}),e[9]=x):x=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 v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(J,{asChild:!0,children:t.jsx(ve,{className:"size-3.5 text-muted-foreground"})}),e[11]=v):v=e[11];let N;e[12]===Symbol.for("react.memo_cache_sentinel")?(N=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:[x,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(Z,{children:t.jsxs(Y,{children:[v,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($e,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=N):N=e[12];let w;e[13]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Xe,{className:"size-5 text-muted-foreground"})}),e[13]=w):w=e[13];let _;e[14]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=_):_=e[14];let j;e[15]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx(J,{asChild:!0,children:t.jsx(ve,{className:"size-3.5 text-muted-foreground"})}),e[15]=j):j=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=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:[w,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[_,t.jsx(Z,{children:t.jsxs(Y,{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($e,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=y):y=e[16];let k;e[17]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(Ot,{className:"size-5 text-muted-foreground"})}),e[17]=k):k=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(J,{asChild:!0,children:t.jsx(ve,{className:"size-3.5 text-muted-foreground"})}),e[19]=$):$=e[19];let I;e[20]===Symbol.for("react.memo_cache_sentinel")?(I=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:[k,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(Z,{children:t.jsxs(Y,{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($e,{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]=I):I=e[20];let P;e[21]!==r?(P=t.jsxs("div",{className:"flex flex-col gap-3",children:[p,t.jsxs(ns,{value:r,onValueChange:m,className:"flex flex-col gap-4.5",children:[N,y,I]})]}),e[21]=r,e[22]=P):P=e[22];let E;e[23]!==c.href?(E=t.jsx(cs,{url:c.href}),e[23]=c.href,e[24]=E):E=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 V;e[29]!==E||e[30]!==z||e[31]!==R?(V=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[E,z,R]})}),e[29]=E,e[30]=z,e[31]=R,e[32]=V):V=e[32];let F;e[33]!==P||e[34]!==V?(F=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,V]})]}),e[33]=P,e[34]=V,e[35]=F):F=e[35];let h;return e[36]!==l||e[37]!==s||e[38]!==F?(h=t.jsx(Pt,{open:s,onOpenChange:l,children:F}),e[36]=l,e[37]=s,e[38]=F,e[39]=h):h=e[39],h}function fs(o){const e=M.c(31),{form:s,icon:l,virtualMcpId:n}=o,[r,i]=yt(n);let a;e[0]!==s?(a=s.watch("title")||"Agent",e[0]=s,e[1]=a):a=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(qt,{}),e[2]=m):m=e[2];let c;e[3]!==l||e[4]!==a?(c=t.jsx(Re,{icon:l,name:a,size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:m}),e[3]=l,e[4]=a,e[5]=c):c=e[5];let d;e[6]!==s.control?(d=t.jsx(be,{control:s.control,name:"status",render:gs}),e[6]=s.control,e[7]=d):d=e[7];let u;e[8]!==c||e[9]!==d?(u=t.jsxs("div",{className:"flex items-start justify-between",children:[c,d]}),e[8]=c,e[9]=d,e[10]=u):u=e[10];let f;e[11]!==s.control?(f=t.jsxs("div",{className:"flex flex-col",children:[t.jsx(be,{control:s.control,name:"title",render:ps}),t.jsx(be,{control:s.control,name:"description",render:xs})]}),e[11]=s.control,e[12]=f):f=e[12];let p;e[13]!==u||e[14]!==f?(p=t.jsxs("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:[u,f]}),e[13]=u,e[14]=f,e[15]=p):p=e[15];let x;e[16]!==s.control?(x=t.jsx("div",{className:"flex flex-col gap-4 p-5 border-b border-border",children:t.jsx(be,{control:s.control,name:"tool_selection_mode",render:hs})}),e[16]=s.control,e[17]=x):x=e[17];let g;e[18]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsxs("div",{children:[t.jsx("h4",{className:"text-sm font-medium text-foreground mb-1",children:"System Prompt"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Stored locally for now"})]}),e[18]=g):g=e[18];let v;e[19]!==i?(v=j=>i(j.target.value),e[19]=i,e[20]=v):v=e[20];let N;e[21]!==r||e[22]!==v?(N=t.jsxs("div",{className:"flex flex-col gap-3 p-5",children:[g,t.jsx(Bt,{value:r,onChange:v,placeholder:"Enter system prompt instructions...",className:"min-h-[240px] resize-none text-sm leading-relaxed"})]}),e[21]=r,e[22]=v,e[23]=N):N=e[23];let w;e[24]!==N||e[25]!==p||e[26]!==x?(w=t.jsxs("div",{className:"flex flex-col",children:[p,x,N]}),e[24]=N,e[25]=p,e[26]=x,e[27]=w):w=e[27];let _;return e[28]!==s||e[29]!==w?(_=t.jsx("div",{className:"flex flex-col h-full overflow-auto",children:t.jsx(zt,{...s,children:w})}),e[28]=s,e[29]=w,e[30]=_):_=e[30],_}function hs(o){const{field:e}=o;return t.jsxs(ye,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsx(Rt,{className:"mb-0",children:"Selection Mode"}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Z,{children:t.jsxs(Y,{children:[t.jsx(J,{asChild:!0,children:t.jsx(U,{type:"button",variant:"ghost",size:"icon",className:"size-7","aria-label":"Selection mode help",children:t.jsx(ve,{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(Et,{value:e.value,onValueChange:e.onChange,children:[t.jsx(Se,{children:t.jsx(Vt,{className:"w-[180px]",children:t.jsx(Lt,{})})}),t.jsxs(Dt,{children:[t.jsx(Fe,{value:"inclusion",children:"Include Selected"}),t.jsx(Fe,{value:"exclusion",children:"Exclude Selected"})]})]})]})]}),t.jsx(Ne,{})]})}function xs(o){const{field:e}=o;return t.jsxs(ye,{className:"w-full space-y-0",children:[t.jsx(Se,{children:t.jsx(Ae,{...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(Ne,{})]})}function ps(o){const{field:e}=o;return t.jsxs(ye,{className:"w-full space-y-0",children:[t.jsx(Se,{children:t.jsx(Ae,{...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(Ne,{})]})}function gs(o){const{field:e}=o;return t.jsxs(ye,{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(Se,{children:t.jsx(Ft,{checked:e.value==="active",onCheckedChange:s=>e.onChange(s?"active":"inactive")})})]}),t.jsx(Ne,{})]})}function js(o){const e=M.c(73),{virtualMcp:s,virtualMcpId:l,requestedTabId:n}=o,i=it().location.href,a=at();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={from:"/$org/agents/$agentId"},e[0]=m):m=e[0];const c=qe(m),d=It(),{org:u}=xt();let f;e[1]===Symbol.for("react.memo_cache_sentinel")?(f={},e[1]=f):f=e[1];const p=He(f),x=p.map(Ss);let g;e[2]!==u?(g=b=>({queryKey:De.connectionPrompts(b),queryFn:async()=>{try{const A=await Le({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 v=Ve({queries:x.map(g)});let N;e[4]!==u?(N=b=>({queryKey:De.connectionResources(b),queryFn:async()=>{try{const A=await Le({connectionId:b,orgId:u.id});return await wt(A)}catch{return{resources:[]}}},staleTime:6e4,retry:!1}),e[4]=u,e[5]=N):N=e[5];const w=Ve({queries:x.map(N)}),_=new Map;x.forEach((b,A)=>{const Q=v[A];Q?.data?_.set(b,Q.data.prompts.map(ys)):_.set(b,[])});const j=new Map;x.forEach((b,A)=>{const Q=w[A];Q?.data?j.set(b,Q.data.resources.map(vs)):j.set(b,[])});let y;if(e[6]!==p){y=new Map;for(const b of p)b.tools&&b.tools.length>0&&y.set(b.id,b.tools.map(bs));e[6]=p,e[7]=y}else y=e[7];let k;e[8]!==y||e[9]!==s?(k=()=>Be(s,y),e[8]=y,e[9]=s,e[10]=k):k=e[10];const[T,$]=S.useState(k);let I;e[11]!==s?(I=()=>Oe(s),e[11]=s,e[12]=I):I=e[12];const[P,E]=S.useState(I);let z;e[13]!==s?(z=()=>Ue(s),e[13]=s,e[14]=z):z=e[14];const[R,V]=S.useState(z),[F,h]=S.useState(!1),[C,L]=S.useState(!1);let D;e[15]===Symbol.for("react.memo_cache_sentinel")?(D=b=>{$(b),h(!0)},e[15]=D):D=e[15];const q=D;let W;e[16]===Symbol.for("react.memo_cache_sentinel")?(W=b=>{E(b),h(!0)},e[16]=W):W=e[16];const K=W;let B;e[17]===Symbol.for("react.memo_cache_sentinel")?(B=b=>{V(b),h(!0)},e[17]=B):B=e[17];const ot=B;let ce;e[18]===Symbol.for("react.memo_cache_sentinel")?(ce=ct(is),e[18]=ce):ce=e[18];const Ce=s.tool_selection_mode??"inclusion";let de;e[19]!==Ce||e[20]!==s.description||e[21]!==s.status||e[22]!==s.title?(de={resolver:ce,defaultValues:{title:s.title,description:s.description,status:s.status,tool_selection_mode:Ce}},e[19]=Ce,e[20]=s.description,e[21]=s.status,e[22]=s.title,e[23]=de):de=e[23];const G=dt(de),_e=G.formState.isDirty||F;let me;e[24]!==d.update||e[25]!==y||e[26]!==G||e[27]!==R||e[28]!==P||e[29]!==T||e[30]!==l?(me=async()=>{try{const b=G.getValues(),A=as(T,P,R,y),Q={title:b.title,description:b.description,status:b.status,tool_selection_mode:b.tool_selection_mode,connections:A};await d.update.mutateAsync({id:l,data:Q}),G.reset(b),h(!1)}catch(b){console.error("Failed to save virtual MCP:",b)}},e[24]=d.update,e[25]=y,e[26]=G,e[27]=R,e[28]=P,e[29]=T,e[30]=l,e[31]=me):me=e[31];const we=me;let ue;e[32]!==y||e[33]!==G||e[34]!==s?(ue=()=>{G.reset({title:s.title,description:s.description,status:s.status,tool_selection_mode:s.tool_selection_mode??"inclusion"}),$(Be(s,y)),E(Oe(s)),V(Ue(s)),h(!1)},e[32]=y,e[33]=G,e[34]=s,e[35]=ue):ue=e[35];const ke=ue;let fe;e[36]===Symbol.for("react.memo_cache_sentinel")?(fe=[{id:"settings",label:"Settings"},{id:"tools",label:"Tools"},{id:"resources",label:"Resources"},{id:"prompts",label:"Prompts"}],e[36]=fe):fe=e[36];const Ee=fe,O=Ee.some(b=>b.id===n)?n:"settings";let he;e[37]!==c?(he=b=>{c({search:A=>({...A,tab:b}),replace:!0})},e[37]=c,e[38]=he):he=e[38];const Ie=he,ae=d.update.isPending;let ee;e[39]!==a.history?(ee=()=>a.history.back(),e[39]=a.history,e[40]=ee):ee=e[40];let te;e[41]!==O||e[42]!==Ie?(te=t.jsx(Gt,{children:t.jsx(At,{tabs:Ee,activeTab:O,onTabChange:Ie})}),e[41]=O,e[42]=Ie,e[43]=te):te=e[43];let se;e[44]!==ke||e[45]!==we||e[46]!==_e||e[47]!==ae?(se=_e&&t.jsxs(t.Fragment,{children:[t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(U,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ae,onClick:ke,"aria-label":"Cancel",children:t.jsx(Wt,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Cancel"})]})}),t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(U,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:ae,onClick:we,"aria-label":"Save",children:ae?t.jsx(Pe,{size:14,className:"animate-spin"}):t.jsx(et,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Save"})]})})]}),e[44]=ke,e[45]=we,e[46]=_e,e[47]=ae,e[48]=se):se=e[48];let xe;e[49]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>L(!0),e[49]=xe):xe=e[49];let pe;e[50]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(Z,{children:t.jsxs(Y,{delayDuration:0,children:[t.jsx(J,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(U,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:xe,"aria-label":"Share",children:t.jsx(tt,{size:14})})})}),t.jsx(X,{side:"bottom",children:"Share"})]})}),e[50]=pe):pe=e[50];const Te=s.icon??"cpu_chip";let oe;e[51]!==Te||e[52]!==i||e[53]!==s.title?(oe=t.jsx(bt,{title:s.title,url:i,icon:Te}),e[51]=Te,e[52]=i,e[53]=s.title,e[54]=oe):oe=e[54];let le;e[55]!==se||e[56]!==oe?(le=t.jsxs(Ht,{children:[se,pe,oe]}),e[55]=se,e[56]=oe,e[57]=le):le=e[57];let ge;e[58]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),e[58]=ge):ge=e[58];const Me=O==="settings"?t.jsx(fs,{form:G,icon:s.icon,virtualMcpId:l}):O==="tools"?t.jsx(vt,{toolSet:T,onToolSetChange:q,excludeVirtualMcpId:l}):O==="resources"?t.jsx(os,{resourceSet:P,onResourceSetChange:K,connectionResources:j,excludeVirtualMcpId:l}):O==="prompts"?t.jsx(Xt,{promptSet:R,onPromptSetChange:ot,connectionPrompts:_,excludeVirtualMcpId:l}):null;let ne;e[59]!==Me?(ne=t.jsx(S.Suspense,{fallback:ge,children:Me}),e[59]=Me,e[60]=ne):ne=e[60];let re;e[61]!==O||e[62]!==ne?(re=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(We,{children:ne},O)})})}),e[61]=O,e[62]=ne,e[63]=re):re=e[63];let ie;e[64]!==C||e[65]!==s?(ie=t.jsx(us,{open:C,onOpenChange:L,virtualMcp:s}),e[64]=C,e[65]=s,e[66]=ie):ie=e[66];let je;return e[67]!==ee||e[68]!==te||e[69]!==le||e[70]!==re||e[71]!==ie?(je=t.jsxs(Kt,{onBack:ee,children:[te,le,re,ie]}),e[67]=ee,e[68]=te,e[69]=le,e[70]=re,e[71]=ie,e[72]=je):je=e[72],je}function bs(o){return o.name}function vs(o){return{uri:o.uri,name:o.name,description:o.description}}function ys(o){return{name:o.name,description:o.description}}function Ss(o){return o.id}function Ns(){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=qe(e);let l;o[1]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},o[1]=l):l=o[1];const n=lt(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=nt(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(mt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(U,{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(js,{virtualMcp:d,virtualMcpId:i,requestedTabId:c}),o[6]=c,o[7]=d,o[8]=i,o[9]=u):u=o[9],u}function Cs(){const o=M.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(We,{children:t.jsx(S.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Pe,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Ns,{})})}),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(Cs,{}),o[0]=e):e=o[0],e}export{po as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ee,j as t,r as te,e as oe}from"./index-
|
|
1
|
+
import{c as ee,j as t,r as te,e as oe}from"./index-BipFUdjC.js";import{C as re}from"./collection-header-I0z7H0ZC.js";import{C as ne}from"./collection-page-EuoaVB95.js";import{C as ie}from"./collection-search-CP09UmnI.js";import{C as ae}from"./collection-table-wrapper--qQDqi3a.js";import{C as le}from"./connection-card-dyAZPnBc.js";import{E as q,I as ce}from"./empty-state-CfCSwnz1.js";import{E as de}from"./error-boundary-CG0YZ4B8.js";import{u as me,s as J}from"./use-list-state-B0KtA_q9.js";import{u as ue}from"./use-create-virtual-mcp-Cpzz-1zf.js";import{u as ge}from"./virtual-mcp-BBuKM0Zd.js";import{u as pe,a as he}from"./use-virtual-mcp-CJ7FNu85.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-b2qaVWQf.js";import{B as se}from"./badge-BLC7Dsve.js";import{B as G}from"./button-CWaK1hUN.js";import{D as Q,a as U,b as X,c as V}from"./dropdown-menu-eADXqdeC.js";import{i as x}from"./CpuChip02-D4-bIMj_.js";import{i as Y}from"./DotsVertical-_ZO_fNF7.js";import{i as Se}from"./Loading01-mNUVI85L.js";import{s as Z}from"./Trash01-r91jWYrx.js";import"./collection-display-button-DKWP6xRi.js";import"./ArrowUp-07dwm1MA.js";import"./Check-n_KiNdp_.js";import"./Grid01-D_y10H_F.js";import"./List-AGMu6Jg9.js";import"./tooltip-D3Kw0HUb.js";import"./view-mode-toggle-BkNnvYv5.js";import"./SearchMd-BCAxnQkD.js";import"./input-CJlzp_V5.js";import"./card-7SgaoQef.js";import"./use-mobile-Q27OeJ4I.js";import"./use-collections-BQHGs5iU.js";import"./useMutation-BJoWTtTW.js";import"./useQuery-CcFgJIAV.js";import"./constants-D7TSocv6.js";function be(e,r){switch(r.type){case"delete":return{mode:"deleting",virtualMcp:r.virtualMcp};case"close":return{mode:"idle"}}}function ve(){const e=ee.c(63),{org:r}=ge(),i=oe();let j;e[0]!==r.slug?(j={namespace:r.slug,resource:"agents"},e[0]=r.slug,e[1]=j):j=e[1];const s=me(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}=ue(C),B=he();let N;e[3]===Symbol.for("react.memo_cache_sentinel")?(N={mode:"idle"},e[3]=N):N=e[3];const[n,y]=te.useReducer(be,N);let D;e[4]!==B||e[5]!==n.mode||e[6]!==n.virtualMcp?(D=async()=>{if(n.mode!=="deleting")return;const o=n.virtualMcp.id;y({type:"close"});try{await B.delete.mutateAsync(o)}catch{}},e[4]=B,e[5]=n.mode,e[6]=n.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]!==r.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:r.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]=r.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=n.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=n.mode==="deleting"&&n.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(ie,{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]!==r.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(le,{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:r.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:r.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(ae,{columns:T,data:f,isLoading:!1,sortKey:s.sortKey,sortDirection:s.sortDirection,onSort:s.handleSort,onRowClick:o=>i({to:"/$org/agents/$agentId",params:{org:r.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]=r.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(ne,{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(ce,{icon:e.icon,name:e.title,size:"sm",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(x,{size:16})})}function jt(){const e=ee.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(de,{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]=r):r=e[0],r}export{jt as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,a9 as m,j as r,az as T,C as w,ab as O,m as A,R as M,T as I,D as z,P as F,aA as D,aB as L,ai as G,l as k,O as B,c as n}from"./index-
|
|
1
|
+
import{r as i,a9 as m,j as r,az as T,C as w,ab as O,m as A,R as M,T as I,D as z,P as F,aA as D,aB as L,ai as G,l as k,O as B,c as n}from"./index-BipFUdjC.js";import{c as p,b as v}from"./button-CWaK1hUN.js";var x="AlertDialog",[H]=G(x,[D]),d=D(),N=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(M,{...a,...t,modal:!0})};N.displayName=x;var V="AlertDialogTrigger",W=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(k,{...o,...a,ref:e})});W.displayName=V;var Y="AlertDialogPortal",y=l=>{const{__scopeAlertDialog:e,...t}=l,a=d(e);return r.jsx(F,{...a,...t})};y.displayName=Y;var q="AlertDialogOverlay",_=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(B,{...o,...a,ref:e})});_.displayName=q;var f="AlertDialogContent",[J,K]=H(f),Q=L("AlertDialogContent"),j=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,children:a,...o}=l,s=d(t),c=i.useRef(null),S=m(e,c),u=i.useRef(null);return r.jsx(T,{contentName:f,titleName:b,docsSlug:"alert-dialog",children:r.jsx(J,{scope:t,cancelRef:u,children:r.jsxs(w,{role:"alertdialog",...s,...o,ref:S,onOpenAutoFocus:O(o.onOpenAutoFocus,g=>{g.preventDefault(),u.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[r.jsx(Q,{children:a}),r.jsx(X,{contentRef:c})]})})})});j.displayName=f;var b="AlertDialogTitle",h=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(I,{...o,...a,ref:e})});h.displayName=b;var R="AlertDialogDescription",C=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(z,{...o,...a,ref:e})});C.displayName=R;var U="AlertDialogAction",E=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,o=d(t);return r.jsx(A,{...o,...a,ref:e})});E.displayName=U;var $="AlertDialogCancel",P=i.forwardRef((l,e)=>{const{__scopeAlertDialog:t,...a}=l,{cancelRef:o}=K($,t),s=d(t),c=m(e,o);return r.jsx(A,{...s,...a,ref:c})});P.displayName=$;var X=({contentRef:l})=>{const e=`\`${f}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${f}\` by passing a \`${R}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,u as m,j as n,A as o}from"./index-
|
|
1
|
+
import{c as r,u as m,j as n,A as o}from"./index-BipFUdjC.js";function i(){const e=r.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/auth/$pathname"},e[0]=t):t=e[0];const{pathname:s}=m(t);let a;return e[1]!==s?(a=n.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:n.jsx(o,{pathname:s})}),e[1]=s,e[2]=a):a=e[2],a}export{i as default};
|