@decocms/mesh 2.59.4 → 2.59.6
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/client/assets/{AlertCircle-DcHEglIM.js → AlertCircle-BFXBDrUr.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Dlm4CF9d.js → ArrowLeft-CDtoEGeL.js} +1 -1
- package/dist/client/assets/{ArrowUp-CC-2uYGu.js → ArrowUp-BDaeP-ZF.js} +1 -1
- package/dist/client/assets/{Calendar-PdB3o_9d.js → Calendar-Do1_EcNl.js} +1 -1
- package/dist/client/assets/{Check-BzMGOxMB.js → Check-C7bGyGOC.js} +1 -1
- package/dist/client/assets/{ChevronDown-BV0rwdFr.js → ChevronDown-DY2hRH3P.js} +1 -1
- package/dist/client/assets/{Code01-KWN4ist8.js → Code01-Bti_O9RL.js} +1 -1
- package/dist/client/assets/{Copy01-DH_iV9-n.js → Copy01-Cql6iNiT.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CFL9xkGv.js → DotsHorizontal-Bn70vF_C.js} +1 -1
- package/dist/client/assets/{DotsVertical-DOgWrY6o.js → DotsVertical-55vBqpF9.js} +1 -1
- package/dist/client/assets/{Download01-npnn9kWB.js → Download01-CY_txTIU.js} +1 -1
- package/dist/client/assets/{Edit01-CH6U7DHj.js → Edit01-BcXXA0Bn.js} +1 -1
- package/dist/client/assets/{File02-Cuc-ZPtg.js → File02-CZ_CP680.js} +1 -1
- package/dist/client/assets/{File06-BUwGdOjl.js → File06-OiAbO58I.js} +1 -1
- package/dist/client/assets/{FilterLines-ia0H5bBk.js → FilterLines-8ygYuAAi.js} +1 -1
- package/dist/client/assets/{Grid01-DmaR0g3f.js → Grid01-Bdrpv4xX.js} +1 -1
- package/dist/client/assets/{Home02-Cagj2miO.js → Home02-BeNorB_C.js} +1 -1
- package/dist/client/assets/{Image01-BCcbzsoK.js → Image01-DvLyxsOA.js} +1 -1
- package/dist/client/assets/{Inbox01-DoVQ3gCk.js → Inbox01-BPkfViyI.js} +1 -1
- package/dist/client/assets/{InfoCircle-qTETvFXb.js → InfoCircle-BJ2AMXf3.js} +1 -1
- package/dist/client/assets/{Key01-CHZQ8Cf-.js → Key01-D8HCSb8P.js} +1 -1
- package/dist/client/assets/{LinkExternal01-Cq8yx7fP.js → LinkExternal01-BrLuchvz.js} +1 -1
- package/dist/client/assets/{List-DZ53jWcW.js → List-bC7xiZ2s.js} +1 -1
- package/dist/client/assets/{Loading01-Bo9vDQAp.js → Loading01-BiNUjLDw.js} +1 -1
- package/dist/client/assets/{Lock01-C1QZkjy0.js → Lock01-Bg5yU8Wj.js} +1 -1
- package/dist/client/assets/{Pin01-NWg5BL2M.js → Pin01-iTXtWrRE.js} +1 -1
- package/dist/client/assets/{Play-D2yqwct8.js → Play-C3Hph8xY.js} +1 -1
- package/dist/client/assets/{Plus-DAW17Fqf.js → Plus-BuZ2XoBN.js} +1 -1
- package/dist/client/assets/{SearchMd-D9E7kgub.js → SearchMd-BeBVRrdw.js} +1 -1
- package/dist/client/assets/{Share07-CN4FUsWW.js → Share07-DldJlk64.js} +1 -1
- package/dist/client/assets/{Terminal-1HZulC_H.js → Terminal-EcSYzT5u.js} +1 -1
- package/dist/client/assets/{Tool01-Ir04gLyn.js → Tool01-CH0MYN-2.js} +1 -1
- package/dist/client/assets/{Trash01-BUkAP1vf.js → Trash01-DSwoFZY0.js} +1 -1
- package/dist/client/assets/{Upload01-DPPzM8Sw.js → Upload01-CpcqtTNa.js} +1 -1
- package/dist/client/assets/{Users03-DscKVk_U.js → Users03-B6orUjW9.js} +1 -1
- package/dist/client/assets/{X-DyyqPnhR.js → X-DLZk4kqC.js} +1 -1
- package/dist/client/assets/{XClose-nvPI0OtD.js → XClose-C2SJXRFh.js} +1 -1
- package/dist/client/assets/agent-detail-1edzdNo4.js +1 -0
- package/dist/client/assets/{agents-DepniFRU.js → agents-CA-rSchF.js} +1 -1
- package/dist/client/assets/{alert-dialog-QzYPe_ae.js → alert-dialog-Dllib4My.js} +2 -2
- package/dist/client/assets/{auth-catchall-COlMpx6Y.js → auth-catchall-BOn2OyMJ.js} +1 -1
- package/dist/client/assets/{avatar-KkS1NpLz.js → avatar-BfuaGHdb.js} +1 -1
- package/dist/client/assets/{badge-CfH2vrIM.js → badge-DF_3zhMz.js} +1 -1
- package/dist/client/assets/{binder-Cyeq_Zec.js → binder-CC8WnynZ.js} +1 -1
- package/dist/client/assets/{button-D_0RTXDt.js → button-0ydgHweE.js} +1 -1
- package/dist/client/assets/{card-BmOa96dk.js → card-DFhzHX-B.js} +1 -1
- package/dist/client/assets/{checkbox-CUtYbeQD.js → checkbox-JnNCVINs.js} +1 -1
- package/dist/client/assets/{circle-alert-BnmazpCh.js → circle-alert-C96B7toE.js} +1 -1
- package/dist/client/assets/{collapsible-0N2BB6Bm.js → collapsible-CDAezpyL.js} +1 -1
- package/dist/client/assets/{collection-detail-CeAvZaUS.js → collection-detail-ClXHe-PG.js} +1 -1
- package/dist/client/assets/{collection-display-button-Cm0zQnM_.js → collection-display-button-C0Qj_mDn.js} +1 -1
- package/dist/client/assets/{collection-header-CbT_At3k.js → collection-header-CHcRbSVg.js} +1 -1
- package/dist/client/assets/{collection-page-CpAhF9Tg.js → collection-page-pQhPuVgo.js} +1 -1
- package/dist/client/assets/{collection-search-DRZ8ScZP.js → collection-search-rOPXHeEr.js} +1 -1
- package/dist/client/assets/{collection-tab-CyuO9CaU.js → collection-tab-e3o0S9Wa.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CspbeKNx.js → collection-table-wrapper-C4t2ZZhF.js} +1 -1
- package/dist/client/assets/{connect-Dx3Myol5.js → connect-DP_OT-gv.js} +1 -1
- package/dist/client/assets/{connection-card-C6VYrDSx.js → connection-card-BLTFMSZS.js} +1 -1
- package/dist/client/assets/{connection-detail-BAO1w9SL.js → connection-detail-C5TmRjj1.js} +1 -1
- package/dist/client/assets/{connections-xwpD87cp.js → connections-I2Vy-typ.js} +1 -1
- package/dist/client/assets/{constants-D8fdcBr8.js → constants-Mpett05j.js} +1 -1
- package/dist/client/assets/constants-OFVhPv4G.js +1 -0
- package/dist/client/assets/{create-organization-dialog-D96wehG4.js → create-organization-dialog-WqiCWTM4.js} +1 -1
- package/dist/client/assets/{dialog-B-A0vnh-.js → dialog-6FUpHXs_.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CMmh8IDN.js → dropdown-menu-CvHFB3Gz.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-D5OcFZH0.js → dynamic-plugin-layout-Mnd5muQb.js} +1 -1
- package/dist/client/assets/{empty-state-BS0aVQHO.js → empty-state-7hq4AubF.js} +1 -1
- package/dist/client/assets/{empty-state-DKQ_J1zp.js → empty-state-BJnVPwS4.js} +1 -1
- package/dist/client/assets/env-vars-editor--TqeS791.js +1 -0
- package/dist/client/assets/{error-boundary-ynZ9rF8y.js → error-boundary-B6RXO2oI.js} +1 -1
- package/dist/client/assets/{extract-connection-data-5Dbbyfmc.js → extract-connection-data-Cl2cHkSz.js} +1 -1
- package/dist/client/assets/{file-browser-DWYmbjoP.js → file-browser-EXbuz5vW.js} +2 -2
- package/dist/client/assets/{form-DngqlMy0.js → form-Bu0daHLu.js} +1 -1
- package/dist/client/assets/{grid-view-DBdpM4tG.js → grid-view-C6S8iSjv.js} +1 -1
- package/dist/client/assets/{home-Dh3O7N9x.js → home-2CTqvtNy.js} +1 -1
- package/dist/client/assets/{index-C_CYTppS.js → index-6m1DUVC_.js} +1 -1
- package/dist/client/assets/{index-B8BaCPuX.js → index-BDvGMi--.js} +8 -8
- package/dist/client/assets/{index-BWcrkV98.js → index-CXUcNyKS.js} +1 -1
- package/dist/client/assets/{index-BtGsFE3_.js → index-CymrbMj5.js} +1 -1
- package/dist/client/assets/{index-Dho9MRVw.js → index-DZqSbjFw.js} +32 -32
- package/dist/client/assets/index-Ez2DTosS.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-DDmbfPGP.js → infiniteQueryObserver-DmKtj9SR.js} +1 -1
- package/dist/client/assets/{input-trZWilTG.js → input-u1hHzCA4.js} +1 -1
- package/dist/client/assets/{layout-BZ8_9wgI.js → layout-DspSCzsh.js} +1 -1
- package/dist/client/assets/localstorage-keys-DpM3uKv7.js +1 -0
- package/dist/client/assets/{login-D61ut3BQ.js → login-DoMEd-lv.js} +1 -1
- package/dist/client/assets/{mcp-oauth-kjSe-9sd.js → mcp-oauth-C7tn4XA4.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DkR0AaJs.js → mcp-server-card-HpdQ81Kj.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Bq0lDMH3.js → mcp-server-detail-DhHV0S77.js} +2 -2
- package/dist/client/assets/{members-DqAGtLhZ.js → members-NoyLiC53.js} +1 -1
- package/dist/client/assets/{monaco-editor-KzPiR_VS.js → monaco-editor-CZ0mtshA.js} +1 -1
- package/dist/client/assets/{monitoring-DkEahA8B.js → monitoring-rg9mX2h3.js} +1 -1
- package/dist/client/assets/{oauth-callback-C_OPSpWp.js → oauth-callback-BskSq0jW.js} +1 -1
- package/dist/client/assets/{page-BQkgsSw9.js → page-BpnXhWf3.js} +1 -1
- package/dist/client/assets/{page-DWOf0lbq.js → page-KXdqzJaF.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-Cdnz6iok.js → pin-to-sidebar-button-Bsv2_7kr.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Dr-6CK5g.js → plugin-empty-state-rg6DAYSw.js} +1 -1
- package/dist/client/assets/{plugin-header-CAC6QLaV.js → plugin-header-Cnc4tGD7.js} +1 -1
- package/dist/client/assets/plugins-CW7mTNa6.js +1 -0
- package/dist/client/assets/{popover-Bkt9Kfhi.js → popover-DEmRxXmY.js} +1 -1
- package/dist/client/assets/{registry-utils-tiv71gSA.js → registry-utils-BFBDFgyu.js} +1 -1
- package/dist/client/assets/{resizable-BdOXbYHL.js → resizable-akHzriSj.js} +1 -1
- package/dist/client/assets/{resource-tabs-G-U5EIhm.js → resource-tabs-1el8gNET.js} +1 -1
- package/dist/client/assets/{select-reGYS0Ly.js → select-BKwPUbTK.js} +1 -1
- package/dist/client/assets/{settings-zvu2qyde.js → settings-ZWpf163v.js} +1 -1
- package/dist/client/assets/{shell-layout-C-8OlUFV.js → shell-layout-D0SSCuI2.js} +2 -2
- package/dist/client/assets/{spinner-E8mBz_Z6.js → spinner-Bwqz03rl.js} +1 -1
- package/dist/client/assets/{store-invite-DnYGNBjx.js → store-invite-DJTXOg3a.js} +1 -1
- package/dist/client/assets/{switch-t5mcsF2Z.js → switch-DNIxf6Z3.js} +1 -1
- package/dist/client/assets/{textarea-x7X_L353.js → textarea-CLIBzUIu.js} +1 -1
- package/dist/client/assets/{tools-list-DQZuaE9M.js → tools-list-DopNeyHc.js} +1 -1
- package/dist/client/assets/{tooltip-Cw2xVvTD.js → tooltip-9zLX7HP0.js} +1 -1
- package/dist/client/assets/{typewriter-title-BK26jx8M.js → typewriter-title-BJariIWR.js} +2 -2
- package/dist/client/assets/{use-binding-BVBmgj67.js → use-binding-B1LqCJr8.js} +1 -1
- package/dist/client/assets/{use-collections-CVO4vm4G.js → use-collections-DtjYeVzj.js} +1 -1
- package/dist/client/assets/{use-connection-BU-nKbTz.js → use-connection-BzhGWFyL.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Cr2fOp7g.js → use-create-virtual-mcp-D-7Y6G3j.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-D-b5da72.js → use-deco-chat-open-CrQFHW7J.js} +1 -1
- package/dist/client/assets/{use-list-state-ClsnlmlI.js → use-list-state-BfmIALu7.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B5zcyY9X.js → use-mcp-prompts-C2Az2O1z.js} +1 -1
- package/dist/client/assets/{use-members-CVUMGKct.js → use-members-KzHxearI.js} +1 -1
- package/dist/client/assets/{use-mobile-VoJXvE1W.js → use-mobile-VtwOaDa5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CeE0FyqT.js → use-organization-settings-DMGaX8N0.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DbjvrtSR.js → use-virtual-mcp-D3UgDP8i.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CaX6JmUq.js +1 -0
- package/dist/client/assets/{useMutation-Lj_Cbq0P.js → useMutation-BReaxe_W.js} +1 -1
- package/dist/client/assets/useQuery-KlPPWaKy.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-jy6MmqiZ.js +1 -0
- package/dist/client/assets/{view-mode-toggle-BagEO4CJ.js → view-mode-toggle-DR9UFNqr.js} +1 -1
- package/dist/client/assets/{workflow-BuhbYm_s.js → workflow-B1lnmdqO.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +163 -163
- package/dist/server/migrate.js +148 -148
- package/dist/server/server.js +140 -140
- package/package.json +1 -1
- package/dist/client/assets/agent-detail-pV-lC3Zh.js +0 -1
- package/dist/client/assets/constants-rfrR0uMr.js +0 -1
- package/dist/client/assets/env-vars-editor-BFfuzqB5.js +0 -1
- package/dist/client/assets/index-DaiP89U7.js +0 -1
- package/dist/client/assets/localstorage-keys-B7V7cQcH.js +0 -1
- package/dist/client/assets/plugins-57qT4Dil.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CVAyTLiO.js +0 -1
- package/dist/client/assets/useQuery-C2zqJzGD.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BS0TxHG_.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as N,o as G,n as O,s as j,_ as Pe,v as gt,w as bt,j as t,x as xe,az as vt,R as jt,I as Nt,z as Ce,D as Ct,B as qe,E as yt,c as _,u as Me,an as Re,l as _t,a as kt,b9 as wt,bm as St,k as Tt,h as It,av as Et}from"./index-Dho9MRVw.js";import{u as At,C as Ot,a as Dt}from"./collapsible-0N2BB6Bm.js";import{I as ie,E as Pt}from"./empty-state-DKQ_J1zp.js";import{E as fe,i as Mt}from"./error-boundary-ynZ9rF8y.js";import{P as Rt}from"./pin-to-sidebar-button-Cdnz6iok.js";import{u as $t}from"./use-deco-chat-open-D-b5da72.js";import{B as $e}from"./badge-CfH2vrIM.js";import{c as U,B}from"./button-D_0RTXDt.js";import{I as He}from"./input-trZWilTG.js";import{S as zt}from"./switch-t5mcsF2Z.js";import{T as Lt}from"./textarea-x7X_L353.js";import{T as K,b as ye,c as q,a as Y}from"./tooltip-Cw2xVvTD.js";import{b as Vt,u as Ye}from"./use-connection-BU-nKbTz.js";import{u as Ft,a as Bt}from"./use-virtual-mcp-DbjvrtSR.js";import{i as Ze}from"./Grid01-DmaR0g3f.js";import{n as Gt}from"./select-reGYS0Ly.js";import{i as ze}from"./File02-Cuc-ZPtg.js";import{a as Le,i as Ut}from"./Tool01-Ir04gLyn.js";import{i as Ve}from"./Loading01-Bo9vDQAp.js";import{i as Ht}from"./Play-D2yqwct8.js";import{s as We}from"./Plus-DAW17Fqf.js";import{i as Wt}from"./Share07-CN4FUsWW.js";import{b as Kt,V as qt}from"./layout-BZ8_9wgI.js";import{C as Yt}from"./collection-search-DRZ8ScZP.js";import{C as Fe}from"./checkbox-CUtYbeQD.js";import{e as Zt,a as Je,D as Qe,b as Jt,c as Qt}from"./dialog-B-A0vnh-.js";import{f as Xt}from"./use-collections-CVO4vm4G.js";import{u as Be}from"./constants-D8fdcBr8.js";import{c as es,u as ts}from"./use-mcp-prompts-B5zcyY9X.js";import{s as Xe}from"./slugify-CEUa2lfQ.js";import{I as ss,R as ls,a as os}from"./index-BWcrkV98.js";import{i as et}from"./Check-BzMGOxMB.js";import{i as ns}from"./Code01-KWN4ist8.js";import{a as is}from"./Copy01-DH_iV9-n.js";import{i as _e}from"./InfoCircle-qTETvFXb.js";import"./use-binding-BVBmgj67.js";import"./binder-Cyeq_Zec.js";import"./useSuspenseInfiniteQuery-BS0TxHG_.js";import"./infiniteQueryObserver-DDmbfPGP.js";import"./localstorage-keys-B7V7cQcH.js";import"./useQuery-C2zqJzGD.js";import"./useMutation-Lj_Cbq0P.js";import"./popover-Bkt9Kfhi.js";import"./ChevronDown-BV0rwdFr.js";import"./File06-BUwGdOjl.js";import"./Image01-BCcbzsoK.js";import"./SearchMd-D9E7kgub.js";import"./Pin01-NWg5BL2M.js";import"./use-organization-settings-CeE0FyqT.js";import"./ArrowLeft-Dlm4CF9d.js";import"./X-DyyqPnhR.js";const tt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"M4 7h11m0 0-4 4m4-4-4-4M4 17h16m0 0-4 4m4-4-4-4"}));tt.displayName="ArrowsRight";const st=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.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"}));st.displayName="Circle";const lt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.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"}));lt.displayName="CpuChip02";const he=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.createElement("path",{d:"m9.75 20.75 1.473.818c.284.158.425.237.576.268.133.027.27.027.402 0 .15-.031.292-.11.576-.268l1.473-.818m-9-2.5-1.427-.793c-.3-.166-.45-.25-.558-.368a1 1 0 0 1-.215-.364C3 16.573 3 16.401 3 16.06V14.5m0-5V7.942c0-.343 0-.514.05-.667a1 1 0 0 1 .215-.364c.109-.119.258-.202.558-.368L5.25 5.75m4.5-2.5 1.473-.818c.284-.158.425-.237.576-.267a1 1 0 0 1 .402 0c.15.03.292.11.576.267l1.473.818m4.5 2.5 1.427.793c.3.166.45.25.558.368a1 1 0 0 1 .215.364c.05.153.05.324.05.667V9.5m0 5v1.559c0 .342 0 .514-.05.666a.999.999 0 0 1-.215.364c-.109.119-.258.202-.558.368l-1.427.793m-9-7.5L12 12m0 0 2.25-1.25M12 12v2.5M3 7l2.25 1.25m13.5 0L21 7m-9 12.5V22"}));he.displayName="CubeOutline";const ot=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.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"}));ot.displayName="Lightbulb02";const nt=({size:l=24,color:e="currentColor",...s})=>N.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},N.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"}));nt.displayName="Save01";const rs=G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:O(j()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:O(j()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),as=G({id:j().describe("Unique identifier for the virtual MCP"),title:j().describe("Human-readable name for the virtual MCP"),description:j().nullable().describe("Description of the virtual MCP"),icon:j().nullable().describe("Icon URL for the virtual MCP"),created_at:j().describe("When the virtual MCP was created"),updated_at:j().describe("When the virtual MCP was last updated"),created_by:j().describe("User ID who created the virtual MCP"),updated_by:j().optional().describe("User ID who last updated the virtual MCP"),organization_id:j().describe("Organization ID this virtual MCP belongs to"),status:Pe(["active","inactive"]).describe("Current status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(rs).describe("Connections with their selected tools, resources, and prompts")});G({title:j().min(1).max(255).describe("Name for the virtual MCP"),description:j().nullable().optional().describe("Optional description"),icon:j().nullable().optional().describe("Optional icon URL"),status:Pe(["active","inactive"]).optional().default("active").describe("Initial status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().optional().describe("Selected tool names (null/undefined = all tools included)"),selected_resources:O(j()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources included)"),selected_prompts:O(j()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts included)")})).describe("Connections to include with their selected tools/resources/prompts")});G({title:j().min(1).max(255).optional().describe("New name"),description:j().nullable().optional().describe("New description (null to clear)"),icon:j().nullable().optional().describe("New icon URL (null to clear)"),status:Pe(["active","inactive"]).optional().describe("New status"),metadata:G({instructions:j().optional().describe("MCP server instructions")}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:O(G({connection_id:j().describe("Connection ID"),selected_tools:O(j()).nullable().optional().describe("Selected tool names (null/undefined = all tools included)"),selected_resources:O(j()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources included)"),selected_prompts:O(j()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts included)")})).optional().describe("New connections (replaces existing)")});var ge="Tabs",[cs]=yt(ge,[qe]),it=qe(),[ds,Ge]=cs(ge),rt=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,onValueChange:n,defaultValue:i,orientation:d="horizontal",dir:r,activationMode:c="automatic",...u}=l,m=gt(r),[a,p]=bt({prop:o,onChange:n,defaultProp:i??"",caller:ge});return t.jsx(ds,{scope:s,baseId:vt(),value:a,onValueChange:p,orientation:d,dir:m,activationMode:c,children:t.jsx(xe.div,{dir:m,"data-orientation":d,...u,ref:e})})});rt.displayName=ge;var at="TabsList",ct=N.forwardRef((l,e)=>{const{__scopeTabs:s,loop:o=!0,...n}=l,i=Ge(at,s),d=it(s);return t.jsx(jt,{asChild:!0,...d,orientation:i.orientation,dir:i.dir,loop:o,children:t.jsx(xe.div,{role:"tablist","aria-orientation":i.orientation,...n,ref:e})})});ct.displayName=at;var dt="TabsTrigger",ut=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,disabled:n=!1,...i}=l,d=Ge(dt,s),r=it(s),c=ft(d.baseId,o),u=xt(d.baseId,o),m=o===d.value;return t.jsx(Nt,{asChild:!0,...r,focusable:!n,active:m,children:t.jsx(xe.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":u,"data-state":m?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:c,...i,ref:e,onMouseDown:Ce(l.onMouseDown,a=>{!n&&a.button===0&&a.ctrlKey===!1?d.onValueChange(o):a.preventDefault()}),onKeyDown:Ce(l.onKeyDown,a=>{[" ","Enter"].includes(a.key)&&d.onValueChange(o)}),onFocus:Ce(l.onFocus,()=>{const a=d.activationMode!=="manual";!m&&!n&&a&&d.onValueChange(o)})})})});ut.displayName=dt;var mt="TabsContent",pt=N.forwardRef((l,e)=>{const{__scopeTabs:s,value:o,forceMount:n,children:i,...d}=l,r=Ge(mt,s),c=ft(r.baseId,o),u=xt(r.baseId,o),m=o===r.value,a=N.useRef(m);return N.useEffect(()=>{const p=requestAnimationFrame(()=>a.current=!1);return()=>cancelAnimationFrame(p)},[]),t.jsx(Ct,{present:n||m,children:({present:p})=>t.jsx(xe.div,{"data-state":m?"active":"inactive","data-orientation":r.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...d,ref:e,style:{...l.style,animationDuration:a.current?"0s":void 0},children:p&&i})})});pt.displayName=mt;function ft(l,e){return`${l}-trigger-${e}`}function xt(l,e){return`${l}-content-${e}`}var us=rt,ms=ct,ps=ut,fs=pt;function xs(l){const e=_.c(10);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n===void 0?"pill":n;let d;e[4]!==s?(d=U("flex flex-col gap-2",s),e[4]=s,e[5]=d):d=e[5];let r;return e[6]!==o||e[7]!==d||e[8]!==i?(r=t.jsx(us,{"data-slot":"tabs","data-variant":i,className:d,...o}),e[6]=o,e[7]=d,e[8]=i,e[9]=r):r=e[9],r}function hs(l){const e=_.c(11);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n||"pill",d=i==="underline"?"flex h-[52px] items-center border-b border-border":i==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let r;e[4]!==s||e[5]!==d?(r=U(d,s),e[4]=s,e[5]=d,e[6]=r):r=e[6];let c;return e[7]!==i||e[8]!==o||e[9]!==r?(c=t.jsx(ms,{"data-slot":"tabs-list","data-variant":i,className:r,...o}),e[7]=i,e[8]=o,e[9]=r,e[10]=c):c=e[10],c}function ke(l){const e=_.c(11);let s,o,n;e[0]!==l?({className:s,variant:n,...o}=l,e[0]=l,e[1]=s,e[2]=o,e[3]=n):(s=e[1],o=e[2],n=e[3]);const i=n||"pill",d=i==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-foreground disabled:pointer-events-none disabled:opacity-50":i==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let r;e[4]!==s||e[5]!==d?(r=U(d,s),e[4]=s,e[5]=d,e[6]=r):r=e[6];let c;return e[7]!==i||e[8]!==o||e[9]!==r?(c=t.jsx(ps,{"data-slot":"tabs-trigger","data-variant":i,className:r,...o}),e[7]=i,e[8]=o,e[9]=r,e[10]=c):c=e[10],c}function we(l){const e=_.c(8);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("flex-1 outline-none h-full",s),e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==o||e[6]!==n?(i=t.jsx(fs,{"data-slot":"tabs-content",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Se(l){return l===null?"all":l?.length??0}function gs(l,e){const s=l[e];if(!s)return"";const o=[];return s.tools===null?o.push("all tools"):s.tools&&s.tools.length>0&&o.push(`${s.tools.length} tools`),s.resources===null?o.push("all resources"):s.resources&&s.resources.length>0&&o.push(`${s.resources.length} resources`),s.prompts===null?o.push("all prompts"):s.prompts&&s.prompts.length>0&&o.push(`${s.prompts.length} prompts`),o.join(", ")}function bs(l,e){const s=l[e];return s?!((s.tools===void 0||s.tools!==null&&s.tools.length===0)&&(s.resources===void 0||s.resources!==null&&s.resources.length===0)&&(s.prompts===void 0||s.prompts!==null&&s.prompts.length===0)):!1}const vs={tools:null,resources:null,prompts:null};function Te(){const l=_.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"flex items-center justify-center h-32",children:t.jsx(Ve,{className:"animate-spin text-muted-foreground",size:24})}),l[0]=e):e=l[0],e}function Ie(l){return({error:e})=>e?.message?.includes("Method not found")||e?.code===-32601?t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:l})}):t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(Mt,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e?.message||"An unexpected error occurred"})]})]})}function js(l){const e=_.c(18),{item:s,isSelected:o,onToggle:n,disabled:i}=l,d=i?"cursor-not-allowed opacity-50":"cursor-pointer",r=o?"bg-accent/25":"hover:bg-muted/50";let c;e[0]!==d||e[1]!==r?(c=U("flex items-start gap-3 p-4 rounded-lg transition-colors",d,r),e[0]=d,e[1]=r,e[2]=c):c=e[2];let u;e[3]!==s.name?(u=t.jsx("p",{className:"text-sm font-medium leading-none",children:s.name}),e[3]=s.name,e[4]=u):u=e[4];let m;e[5]!==s.description?(m=s.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:s.description}),e[5]=s.description,e[6]=m):m=e[6];let a;e[7]!==u||e[8]!==m?(a=t.jsxs("div",{className:"flex-1 min-w-0 space-y-2",children:[u,m]}),e[7]=u,e[8]=m,e[9]=a):a=e[9];let p;e[10]!==i||e[11]!==o||e[12]!==n?(p=t.jsx(Fe,{checked:o,onCheckedChange:n,disabled:i,className:"mt-0.5"}),e[10]=i,e[11]=o,e[12]=n,e[13]=p):p=e[13];let g;return e[14]!==c||e[15]!==a||e[16]!==p?(g=t.jsxs("label",{className:c,children:[a,p]}),e[14]=c,e[15]=a,e[16]=p,e[17]=g):g=e[17],g}function Ue(l){const e=_.c(32),{items:s,selections:o,onToggle:n,onToggleAll:i,emptyMessage:d,disabled:r}=l;let c,u,m,a,p;if(e[0]!==r||e[1]!==d||e[2]!==s||e[3]!==n||e[4]!==i||e[5]!==o){p=Symbol.for("react.early_return_sentinel");e:{const f=s.map(Ns);if(s.length===0){let y;e[11]!==d?(y=t.jsx("div",{className:"flex-1 overflow-auto px-4 py-3 space-y-1",children:t.jsx("div",{className:"flex items-center justify-center h-32 text-sm text-muted-foreground",children:d})}),e[11]=d,e[12]=y):y=e[12],p=y;break e}m="flex flex-col h-full";const C=r?"cursor-not-allowed opacity-50":"cursor-pointer";let v;e[13]!==C?(v=U("flex items-start gap-3 p-4",C),e[13]=C,e[14]=v):v=e[14];let x;e[15]!==s.length?(x=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsxs("span",{className:"text-sm font-medium",children:["Select All (",s.length,")"]})}),e[15]=s.length,e[16]=x):x=e[16];const w=o===null;let S;e[17]!==r||e[18]!==i||e[19]!==w?(S=t.jsx(Fe,{checked:w,onCheckedChange:i,disabled:r,className:"mt-0.5"}),e[17]=r,e[18]=i,e[19]=w,e[20]=S):S=e[20],e[21]!==S||e[22]!==v||e[23]!==x?(a=t.jsx("div",{className:"px-4 border-b border-border shrink-0",children:t.jsxs("label",{className:v,children:[x,S]})}),e[21]=S,e[22]=v,e[23]=x,e[24]=a):a=e[24],c="flex-1 overflow-auto px-4 py-3 space-y-1",u=s.map(y=>t.jsx(js,{item:y,isSelected:o===null||o?.includes(y.id),onToggle:()=>n(y.id,f),disabled:r},y.id))}e[0]=r,e[1]=d,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=c,e[7]=u,e[8]=m,e[9]=a,e[10]=p}else c=e[6],u=e[7],m=e[8],a=e[9],p=e[10];if(p!==Symbol.for("react.early_return_sentinel"))return p;let g;e[25]!==c||e[26]!==u?(g=t.jsx("div",{className:c,children:u}),e[25]=c,e[26]=u,e[27]=g):g=e[27];let h;return e[28]!==m||e[29]!==a||e[30]!==g?(h=t.jsxs("div",{className:m,children:[a,g]}),e[28]=m,e[29]=a,e[30]=g,e[31]=h):h=e[31],h}function Ns(l){return l.id}function Cs(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=Xt(m);let p;e[5]!==a.tools?(p=a.tools.map(ys),e[5]=a.tools,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No tools available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function ys(l){return{id:l.name,name:l.name,description:l.description}}function _s(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=es(m);let p;e[5]!==a.resources?(p=a.resources.map(ks),e[5]=a.resources,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No resources available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function ks(l){return{id:l.name||l.uri,name:l.name||l.uri,description:l.description}}function ws(l){const e=_.c(13),{connectionId:s,selections:o,onToggle:n,onToggleAll:i,disabled:d}=l,{org:r}=Me();let c;e[0]!==s||e[1]!==r.id?(c={connectionId:s,orgId:r.id},e[0]=s,e[1]=r.id,e[2]=c):c=e[2];const u=Be(c);let m;e[3]!==u?(m={client:u},e[3]=u,e[4]=m):m=e[4];const{data:a}=ts(m);let p;e[5]!==a.prompts?(p=a.prompts.map(Ss),e[5]=a.prompts,e[6]=p):p=e[6];const g=p;let h;return e[7]!==d||e[8]!==g||e[9]!==n||e[10]!==i||e[11]!==o?(h=t.jsx(Ue,{items:g,selections:o,onToggle:n,onToggleAll:i,emptyMessage:"No prompts available",disabled:d}),e[7]=d,e[8]=g,e[9]=n,e[10]=i,e[11]=o,e[12]=h):h=e[12],h}function Ss(l){return{id:l.name,name:l.name,description:l.description}}function Ts(l){const e=_.c(24),{connection:s,isSelected:o,hasSelections:n,summary:i,onClick:d,onToggleAll:r,disabled:c}=l,u=c?"cursor-not-allowed opacity-50":"cursor-pointer",m=o?"bg-accent":"hover:bg-muted/50";let a;e[0]!==u||e[1]!==m?(a=U("flex items-center gap-2 p-2 h-12 rounded-lg transition-colors",u,m),e[0]=u,e[1]=m,e[2]=a):a=e[2];const p=c?void 0:d;let g;e[3]!==s.icon||e[4]!==s.title?(g=t.jsx(ie,{icon:s.icon,name:s.title,size:"xs",className:"shrink-0"}),e[3]=s.icon,e[4]=s.title,e[5]=g):g=e[5];let h;e[6]!==s.title?(h=t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:s.title}),e[6]=s.title,e[7]=h):h=e[7];let f;e[8]!==n||e[9]!==i?(f=n&&i&&t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:i}),e[8]=n,e[9]=i,e[10]=f):f=e[10];let C;e[11]!==h||e[12]!==f?(C=t.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[h,f]}),e[11]=h,e[12]=f,e[13]=C):C=e[13];let v;e[14]!==c||e[15]!==n||e[16]!==r?(v=t.jsx(Fe,{checked:n,onCheckedChange:r,onClick:Is,disabled:c,className:"shrink-0"}),e[14]=c,e[15]=n,e[16]=r,e[17]=v):v=e[17];let x;return e[18]!==a||e[19]!==p||e[20]!==g||e[21]!==C||e[22]!==v?(x=t.jsxs("div",{className:a,onClick:p,children:[g,C,v]}),e[18]=a,e[19]=p,e[20]=g,e[21]=C,e[22]=v,e[23]=x):x=e[23],x}function Is(l){return l.stopPropagation()}function Es(l){const e=_.c(22),{allConnections:s,searchTerm:o,selectedId:n,hasSelections:i,getSelectionSummary:d,onConnectionClick:r,onToggleAll:c,disabled:u}=l;let m;e[0]!==s||e[1]!==o?(m=o?s.filter(h=>h.title.toLowerCase().includes(o.toLowerCase())||h.description?.toLowerCase().includes(o.toLowerCase())):s,e[0]=s,e[1]=o,e[2]=m):m=e[2];const a=m;if(a.length===0){const h=o?"No connections found":"No connections available";let f;return e[3]!==h?(f=t.jsx("div",{className:"flex items-center justify-center h-full text-sm text-muted-foreground p-4",children:h}),e[3]=h,e[4]=f):f=e[4],f}let p;if(e[5]!==u||e[6]!==a||e[7]!==d||e[8]!==i||e[9]!==r||e[10]!==c||e[11]!==n){let h;e[13]!==u||e[14]!==d||e[15]!==i||e[16]!==r||e[17]!==c||e[18]!==n?(h=f=>t.jsx(Ts,{connection:f,isSelected:n===f.id,hasSelections:i(f.id),summary:d(f.id),onClick:()=>r(f.id),onToggleAll:()=>c(f.id),disabled:u},f.id),e[13]=u,e[14]=d,e[15]=i,e[16]=r,e[17]=c,e[18]=n,e[19]=h):h=e[19],p=a.map(h),e[5]=u,e[6]=a,e[7]=d,e[8]=i,e[9]=r,e[10]=c,e[11]=n,e[12]=p}else p=e[12];let g;return e[20]!==p?(g=t.jsx("div",{className:"flex flex-col gap-0.5",children:p}),e[20]=p,e[21]=g):g=e[21],g}function As(l){const e={};for(const s of l)e[s.connection_id]={tools:s.selected_tools,resources:s.selected_resources??null,prompts:s.selected_prompts??null};return e}function Ee(l){return Object.entries(l).map(([e,s])=>({connection_id:e,selected_tools:s.tools,selected_resources:s.resources,selected_prompts:s.prompts}))}function Os(l,e){switch(e.type){case"SET_SEARCH_TERM":return{...l,searchTerm:e.payload};case"SET_SELECTED":return{...l,selectedId:e.payload};case"SET_ACTIVE_TAB":return{...l,activeTab:e.payload};case"RESET":return{searchTerm:"",selectedId:e.payload.selectedId??e.payload.firstConnectionId??null,activeTab:"tools"};case"SELECT_CONNECTION":return{...l,selectedId:e.payload,activeTab:"tools"};default:return l}}const Ke=(l,e)=>l.find(s=>s.id===e)??l[0];function Ds(l){const e=_.c(79),{open:s,onOpenChange:o,selectedId:n,form:i,connections:d}=l;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={},e[0]=r):r=e[0];const c=Vt(r);let u;e[1]!==c||e[2]!==n?(u=Ke(c,n)?.id??null,e[1]=c,e[2]=n,e[3]=u):u=e[3];let m;e[4]!==u?(m={activeTab:"tools",searchTerm:"",selectedId:u},e[4]=u,e[5]=m):m=e[5];const[a,p]=N.useReducer(Os,m);let g;e[6]!==d?(g=d??[],e[6]=d,e[7]=g):g=e[7];let h;e[8]!==g?(h=As(g),e[8]=g,e[9]=h):h=e[9];const f=h;let C;e[10]!==c||e[11]!==a.selectedId?(C=Ke(c,a.selectedId),e[10]=c,e[11]=a.selectedId,e[12]=C):C=e[12];const v=C;let x;e[13]!==f?(x=b=>bs(f,b),e[13]=f,e[14]=x):x=e[14];const w=x;let S;e[15]!==f?(S=b=>gs(f,b),e[15]=f,e[16]=S):S=e[16];const y=S;let L;e[17]!==i||e[18]!==f?(L=(b,k,E,W)=>{const oe=f[b]?.[k];let A;oe===null?A=W.filter(Ne=>Ne!==E):oe?.includes(E)?A=oe.filter(Ne=>Ne!==E):(A=[...oe??[],E],A.length===W.length&&(A=null));const ne={...f};ne[b]?ne[b]={...ne[b]}:ne[b]={tools:null,resources:null,prompts:null},ne[b][k]=A,i.setValue("connections",Ee(ne),{shouldDirty:!0,shouldTouch:!0})},e[17]=i,e[18]=f,e[19]=L):L=e[19];const T=L;let V;e[20]!==i||e[21]!==f?(V=(b,k)=>{const oe=f[b]?.[k]===null?[]:null,A={...f};A[b]?A[b]={...A[b]}:A[b]={tools:null,resources:null,prompts:null},A[b][k]=oe,i.setValue("connections",Ee(A),{shouldDirty:!0,shouldTouch:!0})},e[20]=i,e[21]=f,e[22]=V):V=e[22];const I=V;let D;e[23]!==T?(D=(b,k,E)=>T(b,"tools",k,E),e[23]=T,e[24]=D):D=e[24];const R=D;let P;e[25]!==T?(P=(b,k,E)=>T(b,"resources",k,E),e[25]=T,e[26]=P):P=e[26];const $=P;let M;e[27]!==T?(M=(b,k,E)=>T(b,"prompts",k,E),e[27]=T,e[28]=M):M=e[28];const z=M;let F;e[29]!==I?(F=b=>I(b,"tools"),e[29]=I,e[30]=F):F=e[30];const H=F;let re;e[31]!==I?(re=b=>I(b,"resources"),e[31]=I,e[32]=re):re=e[32];const be=re;let ae;e[33]!==I?(ae=b=>I(b,"prompts"),e[33]=I,e[34]=ae):ae=e[34];const ve=ae;let ce;e[35]!==i||e[36]!==f?(ce=b=>{const k=f[b],E=k&&k.tools===null&&k.resources===null&&k.prompts===null,W={...f};E?delete W[b]:W[b]=vs,i.setValue("connections",Ee(W),{shouldDirty:!0,shouldTouch:!0})},e[35]=i,e[36]=f,e[37]=ce):ce=e[37];const je=ce;let de;e[38]!==c||e[39]!==o||e[40]!==n?(de=b=>{b&&p({type:"RESET",payload:{selectedId:n,firstConnectionId:c[0]?.id??null}}),o(b)},e[38]=c,e[39]=o,e[40]=n,e[41]=de):de=e[41];const Z=de;let ue;e[42]===Symbol.for("react.memo_cache_sentinel")?(ue=b=>{p({type:"SELECT_CONNECTION",payload:b})},e[42]=ue):ue=e[42];const ht=ue;let me;e[43]===Symbol.for("react.memo_cache_sentinel")?(me=b=>p({type:"SET_SEARCH_TERM",payload:b}),e[43]=me):me=e[43];let J;e[44]!==a.searchTerm?(J=t.jsx(Yt,{value:a.searchTerm,onChange:me,placeholder:"Search connections..."}),e[44]=a.searchTerm,e[45]=J):J=e[45];let Q;e[46]!==c||e[47]!==a.searchTerm||e[48]!==a.selectedId||e[49]!==y||e[50]!==w||e[51]!==je?(Q=t.jsx("div",{className:"flex-1 overflow-auto p-2",children:t.jsx(Es,{allConnections:c,searchTerm:a.searchTerm,selectedId:a.selectedId,hasSelections:w,getSelectionSummary:y,onConnectionClick:ht,onToggleAll:je})}),e[46]=c,e[47]=a.searchTerm,e[48]=a.selectedId,e[49]=y,e[50]=w,e[51]=je,e[52]=Q):Q=e[52];let X;e[53]!==J||e[54]!==Q?(X=t.jsxs("div",{className:"w-full sm:w-72 sm:border-r border-b sm:border-b-0 border-border flex flex-col bg-background sm:h-full max-h-[40vh] sm:max-h-full",children:[J,Q]}),e[53]=J,e[54]=Q,e[55]=X):X=e[55];let ee;e[56]!==v||e[57]!==a.activeTab||e[58]!==a.selectedId||e[59]!==f||e[60]!==ve||e[61]!==be||e[62]!==H||e[63]!==z||e[64]!==$||e[65]!==R?(ee=t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:v&&a.selectedId?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"p-6 border-b border-border shrink-0",children:t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(ie,{icon:v.icon,name:v.title,size:"md",className:"shrink-0"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h2",{className:"text-lg font-semibold truncate",children:v.title}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]})}),t.jsx("div",{className:"flex-1 flex flex-col overflow-hidden",children:t.jsxs(xs,{value:a.activeTab,onValueChange:b=>p({type:"SET_ACTIVE_TAB",payload:b}),variant:"underline",className:"flex-1 flex flex-col overflow-hidden",children:[t.jsxs(hs,{variant:"underline",className:"shrink-0 px-6",children:[t.jsxs(ke,{value:"tools",variant:"underline",className:"gap-2",children:[t.jsx(Le,{size:16}),"Tools"]}),t.jsxs(ke,{value:"resources",variant:"underline",className:"gap-2",children:[t.jsx(he,{size:16}),"Resources"]}),t.jsxs(ke,{value:"prompts",variant:"underline",className:"gap-2",children:[t.jsx(ze,{size:16}),"Prompts"]})]}),t.jsx(we,{value:"tools",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Tools not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(Cs,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].tools:[],onToggle:(b,k)=>a.selectedId&&R(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&H(a.selectedId)})})})}),t.jsx(we,{value:"resources",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Resources not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(_s,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].resources:[],onToggle:(b,k)=>a.selectedId&&$(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&be(a.selectedId)})})})}),t.jsx(we,{value:"prompts",className:"flex-1 overflow-hidden mt-0",children:t.jsx(fe,{fallback:Ie("Prompts not supported by this server"),children:t.jsx(N.Suspense,{fallback:t.jsx(Te,{}),children:t.jsx(ws,{connectionId:a.selectedId,selections:a.selectedId&&f[a.selectedId]?f[a.selectedId].prompts:[],onToggle:(b,k)=>a.selectedId&&z(a.selectedId,b,k),onToggleAll:()=>a.selectedId&&ve(a.selectedId)})})})})]})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"Select a connection to view its tools, resources, and prompts"})}),e[56]=v,e[57]=a.activeTab,e[58]=a.selectedId,e[59]=f,e[60]=ve,e[61]=be,e[62]=H,e[63]=z,e[64]=$,e[65]=R,e[66]=ee):ee=e[66];let te;e[67]!==X||e[68]!==ee?(te=t.jsxs("div",{className:"flex-1 flex overflow-hidden min-h-0 flex-col sm:flex-row",children:[X,ee]}),e[67]=X,e[68]=ee,e[69]=te):te=e[69];let se;e[70]!==Z?(se=t.jsx(Zt,{className:"px-6 py-4 border-t border-border shrink-0",children:t.jsx(B,{variant:"outline",onClick:()=>Z(!1),children:"Done"})}),e[70]=Z,e[71]=se):se=e[71];let le;e[72]!==te||e[73]!==se?(le=t.jsxs(Je,{className:"sm:max-w-5xl h-[80vh] max-h-[80vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[te,se]}),e[72]=te,e[73]=se,e[74]=le):le=e[74];let pe;return e[75]!==Z||e[76]!==s||e[77]!==le?(pe=t.jsx(Qe,{open:s,onOpenChange:Z,children:le}),e[75]=Z,e[76]=s,e[77]=le,e[78]=pe):pe=e[78],pe}function Ps(l){const e=_.c(8);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("grid gap-3",s),e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==o||e[6]!==n?(i=t.jsx(ls,{"data-slot":"radio-group",className:n,...o}),e[5]=o,e[6]=n,e[7]=i):i=e[7],i}function Ae(l){const e=_.c(9);let s,o;e[0]!==l?({className:s,...o}=l,e[0]=l,e[1]=s,e[2]=o):(s=e[1],o=e[2]);let n;e[3]!==s?(n=U("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 i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(os,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:t.jsx(st,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})}),e[5]=i):i=e[5];let d;return e[6]!==o||e[7]!==n?(d=t.jsx(ss,{"data-slot":"radio-group-item",className:n,...o,children:i}),e[6]=o,e[7]=n,e[8]=d):d=e[8],d}function Ms(l){const s=new TextEncoder().encode(l),o=Array.from(s,n=>String.fromCharCode(n)).join("");return btoa(o)}function Rs(l){const e=_.c(10),{url:s}=l,[o,n]=N.useState(!1);let i;e[0]!==s?(i=async()=>{await navigator.clipboard.writeText(s),n(!0),Re.success("Agent URL copied to clipboard"),setTimeout(()=>n(!1),2e3)},e[0]=s,e[1]=i):i=e[1];const d=i;let r;e[2]!==o?(r=o?t.jsx(et,{size:20,className:"text-green-600"}):t.jsx(is,{size:20}),e[2]=o,e[3]=r):r=e[3];const c=o?"Copied!":"Copy URL";let u;e[4]!==c?(u=t.jsx("span",{className:"text-xs font-medium",children:c}),e[4]=c,e[5]=u):u=e[5];let m;return e[6]!==d||e[7]!==r||e[8]!==u?(m=t.jsxs(B,{type:"button",variant:"outline",onClick:d,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[r,u]}),e[6]=d,e[7]=r,e[8]=u,e[9]=m):m=e[9],m}function $s(l){const e=_.c(7),{url:s,serverName:o}=l;let n;e[0]!==o||e[1]!==s?(n=()=>{const u=Xe(o),a=Ms(JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Cursor"}},null,2)),p=`cursor://anysphere.cursor-deeplink/mcp/install?name=${encodeURIComponent(u)}&config=${encodeURIComponent(a)}`;window.open(p,"_blank"),Re.success("Opening Cursor...")},e[0]=o,e[1]=s,e[2]=n):n=e[2];const i=n;let d,r;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:"/logos/cursor.svg",alt:"Cursor",className:"h-5 w-5",style:{filter:"brightness(0) saturate(100%) invert(11%) sepia(8%) saturate(785%) hue-rotate(1deg) brightness(95%) contrast(89%)"}}),r=t.jsx("span",{className:"text-xs font-medium",children:"Install on Cursor"}),e[3]=d,e[4]=r):(d=e[3],r=e[4]);let c;return e[5]!==i?(c=t.jsxs(B,{type:"button",variant:"outline",onClick:i,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[d,r]}),e[5]=i,e[6]=c):c=e[6],c}function zs(l){const e=_.c(11),{url:s,serverName:o}=l,[n,i]=N.useState(!1);let d;e[0]!==o||e[1]!==s?(d=async()=>{const p=Xe(o),h=JSON.stringify({type:"http",url:s,headers:{"x-mesh-client":"Claude Code"}},null,2),f=`claude mcp add-json "${p}" '${h.replace(/'/g,"'\\''")}'`;await navigator.clipboard.writeText(f),i(!0),Re.success("Claude Code command copied to clipboard"),setTimeout(()=>i(!1),2e3)},e[0]=o,e[1]=s,e[2]=d):d=e[2];const r=d;let c;e[3]!==n?(c=n?t.jsx(et,{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]=c):c=e[4];const u=n?"Copied!":"Install on Claude";let m;e[5]!==u?(m=t.jsx("span",{className:"text-xs font-medium",children:u}),e[5]=u,e[6]=m):m=e[6];let a;return e[7]!==r||e[8]!==c||e[9]!==m?(a=t.jsxs(B,{type:"button",variant:"outline",onClick:r,className:"h-auto py-3 px-4 flex flex-col items-center gap-2",children:[c,m]}),e[7]=r,e[8]=c,e[9]=m,e[10]=a):a=e[10],a}function Ls(l){const e=_.c(40),{open:s,onOpenChange:o,virtualMcp:n}=l,[i,d]=N.useState("code_execution");let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=H=>{(H==="passthrough"||H==="smart_tool_selection"||H==="code_execution")&&d(H)},e[0]=r):r=e[0];const c=r;let u;e[1]!==i||e[2]!==n.id?(u=new URL(`/mcp/virtual-mcp/${n.id}`,window.location.origin),u.searchParams.set("mode",i),e[1]=i,e[2]=n.id,e[3]=u):u=e[3];let m;e[4]!==n.id||e[5]!==n.title?(m=n.title||`agent-${n.id?.slice(0,8)??"default"}`,e[4]=n.id,e[5]=n.title,e[6]=m):m=e[6];const a=m;let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(Jt,{children:t.jsx(Qt,{children:"Share Agent"})}),e[7]=p):p=e[7];let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{children:t.jsx("h4",{className:"text-sm font-medium text-foreground mt-1",children:"How should this agent work?"})}),e[8]=g):g=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(tt,{className:"size-5 text-muted-foreground"})}),e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Direct access"}),e[10]=f):f=e[10];let C;e[11]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[11]=C):C=e[11];let v;e[12]===Symbol.for("react.memo_cache_sentinel")?(v=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:[h,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[f,t.jsx(ye,{children:t.jsxs(q,{children:[C,t.jsx(Y,{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(Ae,{id:"mode-passthrough",value:"passthrough"})]}),e[12]=v):v=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ot,{className:"size-5 text-muted-foreground"})}),e[13]=x):x=e[13];let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"text-sm font-medium text-foreground",children:"Smart discovery"}),e[14]=w):w=e[14];let S;e[15]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[15]=S):S=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:[x,t.jsxs("div",{className:"flex-1 flex flex-col gap-1.5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w,t.jsx(ye,{children:t.jsxs(q,{children:[S,t.jsx(Y,{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(Ae,{id:"mode-smart",value:"smart_tool_selection"})]}),e[16]=y):y=e[16];let L;e[17]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("div",{className:"p-1.5 shrink-0",children:t.jsx(ns,{className:"size-5 text-muted-foreground"})}),e[17]=L):L=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 V;e[19]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx(K,{asChild:!0,children:t.jsx(_e,{className:"size-3.5 text-muted-foreground"})}),e[19]=V):V=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:[L,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(ye,{children:t.jsxs(q,{children:[V,t.jsx(Y,{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(Ae,{id:"mode-code",value:"code_execution"}),t.jsx($e,{variant:"outline",className:"absolute -top-2.5 left-1/2 -translate-x-1/2 bg-background z-10",children:"Recommended"})]}),e[20]=I):I=e[20];let D;e[21]!==i?(D=t.jsxs("div",{className:"flex flex-col gap-3",children:[g,t.jsxs(Ps,{value:i,onValueChange:c,className:"flex flex-col gap-4.5",children:[v,y,I]})]}),e[21]=i,e[22]=D):D=e[22];let R;e[23]!==u.href?(R=t.jsx(Rs,{url:u.href}),e[23]=u.href,e[24]=R):R=e[24];let P,$;e[25]!==a||e[26]!==u.href?(P=t.jsx($s,{url:u.href,serverName:a}),$=t.jsx(zs,{url:u.href,serverName:a}),e[25]=a,e[26]=u.href,e[27]=P,e[28]=$):(P=e[27],$=e[28]);let M;e[29]!==R||e[30]!==P||e[31]!==$?(M=t.jsx("div",{className:"flex flex-col gap-3 pt-2",children:t.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[R,P,$]})}),e[29]=R,e[30]=P,e[31]=$,e[32]=M):M=e[32];let z;e[33]!==D||e[34]!==M?(z=t.jsxs(Je,{className:"max-w-2xl max-h-[80vh] overflow-y-auto",children:[p,t.jsxs("div",{className:"flex flex-col gap-6",children:[D,M]})]}),e[33]=D,e[34]=M,e[35]=z):z=e[35];let F;return e[36]!==o||e[37]!==s||e[38]!==z?(F=t.jsx(Qe,{open:s,onOpenChange:o,children:z}),e[36]=o,e[37]=s,e[38]=z,e[39]=F):F=e[39],F}const Vs=as.pick({title:!0,description:!0,status:!0,metadata:!0,connections:!0}).extend({title:j().min(1,"Name is required").max(255)});function Fs(l,e){switch(e.type){case"SET_SHARE_DIALOG_OPEN":return{...l,shareDialogOpen:e.payload};case"SET_CONNECTION_DIALOG_OPEN":return{...l,connectionDialogOpen:e.payload};case"SET_EDITING_CONNECTION_ID":return{...l,editingConnectionId:e.payload};case"SET_SKILLS_OPEN":return{...l,skillsOpen:e.payload};default:return l}}function Oe(l){const e=_.c(3),{connection_id:s}=l,o=Ye(s);if(!o)return null;let n;return e[0]!==o.icon||e[1]!==o.title?(n=t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx(ie,{icon:o.icon,name:o.title,size:"xs"})}),e[0]=o.icon,e[1]=o.title,e[2]=n):n=e[2],n}Oe.Fallback=function(){return t.jsx("div",{className:"shrink-0 bg-background ring-1 ring-background rounded-lg",children:t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse"})})};function De(l){const e=_.c(27),{connection_id:s,selected_tools:o,selected_resources:n,selected_prompts:i,onClick:d}=l,r=Ye(s);if(!r)return null;let c;e[0]!==o?(c=Se(o),e[0]=o,e[1]=c):c=e[1];const u=c;let m;e[2]!==n?(m=Se(n),e[2]=n,e[3]=m):m=e[3];const a=m;let p;e[4]!==i?(p=Se(i),e[4]=i,e[5]=p):p=e[5];const g=p;let h;e[6]!==r.icon||e[7]!==r.title?(h=t.jsx(ie,{icon:r.icon,name:r.title,size:"xs"}),e[6]=r.icon,e[7]=r.title,e[8]=h):h=e[8];let f;e[9]!==r.title?(f=t.jsx("p",{className:"flex-1 text-sm font-normal text-foreground truncate",children:r.title}),e[9]=r.title,e[10]=f):f=e[10];let C;e[11]!==u?(C=u!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:u==="all"?"all":u}),t.jsx(Le,{size:12})]}),e[11]=u,e[12]=C):C=e[12];let v;e[13]!==a?(v=a!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:a==="all"?"all":a}),t.jsx(he,{size:12})]}),e[13]=a,e[14]=v):v=e[14];let x;e[15]!==g?(x=g!==0&&t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("span",{children:g==="all"?"all":g}),t.jsx(ze,{size:12})]}),e[15]=g,e[16]=x):x=e[16];let w;e[17]!==C||e[18]!==v||e[19]!==x?(w=t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[C,v,x]}),e[17]=C,e[18]=v,e[19]=x,e[20]=w):w=e[20];let S;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ze,{size:16,className:"text-muted-foreground shrink-0"}),e[21]=S):S=e[21];let y;return e[22]!==d||e[23]!==h||e[24]!==f||e[25]!==w?(y=t.jsxs("div",{onClick:d,className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border hover:bg-accent/50 transition-colors cursor-pointer",children:[h,f,w,S]}),e[22]=d,e[23]=h,e[24]=f,e[25]=w,e[26]=y):y=e[26],y}De.Fallback=function(){return t.jsxs("div",{className:"w-full h-12 flex items-center gap-2 px-3 rounded-lg border border-border",children:[t.jsx("div",{className:"size-5 rounded bg-muted animate-pulse shrink-0"}),t.jsx("div",{className:"flex-1 h-4 rounded bg-muted animate-pulse"}),t.jsxs($e,{variant:"secondary",className:"bg-muted h-5 gap-2 px-1.5 py-1 flex items-center",children:[t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(Le,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(he,{size:12})]}),t.jsxs("div",{className:"flex items-center gap-0.5 text-xs text-muted-foreground",children:[t.jsx("div",{className:"w-3 h-3 rounded bg-muted-foreground/20 animate-pulse"}),t.jsx(ze,{size:12})]})]}),t.jsx(Ze,{size:16,className:"text-muted-foreground shrink-0"})]})};function Bs({virtualMcp:l}){const s=wt().location.href,o=St(),n=Bt(),i=Tt({resolver:It(Vs),defaultValues:l}),d=i.watch("connections"),[r,c]=N.useReducer(Fs,{shareDialogOpen:!1,connectionDialogOpen:!1,editingConnectionId:null,skillsOpen:!1}),[,u]=$t(),{setVirtualMcpId:m}=At();N.useEffect(()=>{u(!0),m(l.id)},[l.id]);const a=()=>{m(l.id),u(!0)},p=i.formState.isDirty,g=async()=>{const x=i.getValues(),w=await n.update.mutateAsync({id:l.id,data:x});i.reset(w)},h=()=>{i.reset(l)},f=()=>{c({type:"SET_EDITING_CONNECTION_ID",payload:null}),c({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},C=x=>{c({type:"SET_EDITING_CONNECTION_ID",payload:x}),c({type:"SET_CONNECTION_DIALOG_OPEN",payload:!0})},v=n.update.isPending;return t.jsxs(Kt,{onBack:()=>o.history.back(),children:[t.jsxs(qt,{children:[t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!p||v,onClick:h,"aria-label":"Cancel",children:t.jsx(Ut,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Cancel"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",disabled:!p||v,onClick:g,"aria-label":"Save",children:v?t.jsx(Ve,{size:14,className:"animate-spin"}):t.jsx(nt,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Save"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsxs(B,{variant:"outline",size:"sm",className:"h-7 gap-1.5 px-2 border border-input",onClick:a,"aria-label":"Test Agent",children:[t.jsx(Ht,{size:14}),"Test Agent"]})})}),t.jsx(Y,{side:"bottom",children:"Test this agent in chat"})]}),t.jsxs(q,{delayDuration:0,children:[t.jsx(K,{asChild:!0,children:t.jsx("span",{className:"inline-block",children:t.jsx(B,{variant:"outline",size:"icon",className:"size-7 border border-input",onClick:()=>c({type:"SET_SHARE_DIALOG_OPEN",payload:!0}),"aria-label":"Share",children:t.jsx(Wt,{size:14})})})}),t.jsx(Y,{side:"bottom",children:"Share"})]}),t.jsx(Rt,{title:l.title,url:s,icon:l.icon??"cpu_chip"})]}),t.jsx("div",{className:"flex h-full w-full bg-background overflow-auto",children:t.jsxs("div",{className:"flex flex-col w-full",children:[t.jsxs("div",{className:"flex items-start justify-between gap-4 p-6 shrink-0",children:[t.jsxs("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[t.jsx(ie,{icon:l.icon,name:i.watch("title")||"Agent",size:"lg",className:"shrink-0 shadow-sm",fallbackIcon:t.jsx(lt,{})}),t.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[t.jsx(He,{...i.register("title"),className:"h-auto py-0.5 text-lg! font-medium leading-7 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Agent Name"}),t.jsx(He,{...i.register("description"),className:"h-auto py-0.5 text-base text-muted-foreground leading-6 px-1 -mx-1 border-transparent hover:bg-input/25 focus:border-input bg-transparent transition-all",placeholder:"Add a description..."})]})]}),t.jsx("div",{className:"flex items-center gap-2 shrink-0",children:t.jsx(zt,{checked:i.watch("status")==="active",onCheckedChange:x=>i.setValue("status",x?"active":"inactive",{shouldDirty:!0})})})]}),t.jsxs(Ot,{open:r.skillsOpen,onOpenChange:x=>c({type:"SET_SKILLS_OPEN",payload:x}),className:"border-t border-border shrink-0 max-h-[400px] overflow-hidden flex flex-col",children:[d.length===0?t.jsxs("button",{type:"button",onClick:f,className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"h-7 px-2 inline-flex items-center justify-center gap-1 rounded-md text-sm text-muted-foreground",children:[t.jsx(We,{size:14}),"Add"]})]}):t.jsx(Dt,{asChild:!0,children:t.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-6 py-4 hover:bg-muted/50 transition-colors cursor-pointer",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:"Skills"}),t.jsxs("div",{className:"flex items-center",children:[t.jsx("div",{className:"flex items-center -space-x-2 ease-(--ease-out-expo)",style:{width:r.skillsOpen?0:"auto",marginRight:r.skillsOpen?0:4,opacity:r.skillsOpen?0:1,pointerEvents:r.skillsOpen?"none":"auto",transitionProperty:"all",transitionDuration:r.skillsOpen?"0ms":"200ms"},children:d.slice(0,4).map(x=>t.jsx(N.Suspense,{fallback:t.jsx(Oe.Fallback,{}),children:t.jsx(Oe,{connection_id:x.connection_id})},x.connection_id))}),t.jsxs("div",{role:"button",tabIndex:0,className:"h-7 inline-flex items-center justify-center rounded-md text-sm text-muted-foreground overflow-hidden transition-all duration-200 ease-(--ease-out-expo) hover:bg-accent hover:text-accent-foreground",style:{width:r.skillsOpen?"auto":28,paddingLeft:r.skillsOpen?8:0,paddingRight:r.skillsOpen?8:0,gap:r.skillsOpen?4:0},onPointerDown:x=>{x.stopPropagation()},onClick:x=>{x.stopPropagation(),x.preventDefault(),f()},onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.stopPropagation(),x.preventDefault(),f())},children:[t.jsx(We,{size:14,className:"shrink-0"}),t.jsx("span",{className:"overflow-hidden whitespace-nowrap transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?"auto":0,opacity:r.skillsOpen?1:0},children:"Add"})]}),t.jsx("div",{className:"h-7 inline-flex items-center justify-center overflow-hidden transition-all duration-200 ease-(--ease-out-expo)",style:{width:r.skillsOpen?28:0,opacity:r.skillsOpen?1:0},children:t.jsx(Gt,{size:16,className:"shrink-0"})})]})]})}),t.jsx("div",{className:"grid overflow-hidden transition-[grid-template-rows] duration-200 ease-(--ease-out-expo)",style:{gridTemplateRows:r.skillsOpen?"1fr":"0fr"},children:t.jsx("div",{className:"min-h-0 overflow-hidden",children:t.jsx("div",{className:"overflow-y-auto max-h-[300px] mask-[linear-gradient(to_bottom,black_calc(100%-40px),transparent_100%)]",children:t.jsx("div",{className:"flex flex-col gap-2 px-6 pb-4 pt-2",children:d.map(x=>t.jsx(N.Suspense,{fallback:t.jsx(De.Fallback,{}),children:t.jsx(De,{connection_id:x.connection_id,selected_tools:x.selected_tools,selected_resources:x.selected_resources,selected_prompts:x.selected_prompts,onClick:()=>C(x.connection_id)})},x.connection_id))})})})})]}),t.jsxs("div",{className:"flex flex-col flex-1 p-6 border-t border-border overflow-auto",children:[t.jsx("p",{className:"text-sm font-medium text-muted-foreground mb-2",children:"Instructions"}),t.jsx(Et,{name:"metadata.instructions",control:i.control,render:({field:x})=>t.jsx(Lt,{...x,value:x.value??"",placeholder:"Write instructions here...",className:"min-h-[200px] resize-none text-sm placeholder:text-muted-foreground/50 leading-relaxed border-0 rounded-none shadow-none px-0 focus-visible:ring-0 focus-visible:ring-offset-0 focus:border-0 bg-transparent"})})]})]})}),t.jsx(Ds,{open:r.connectionDialogOpen,onOpenChange:x=>c({type:"SET_CONNECTION_DIALOG_OPEN",payload:x}),selectedId:r.editingConnectionId,form:i,connections:d}),t.jsx(Ls,{open:r.shareDialogOpen,onOpenChange:x=>c({type:"SET_SHARE_DIALOG_OPEN",payload:x}),virtualMcp:l})]})}function Gs(){const l=_.c(6),e=_t();let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org/agents/$agentId"},l[0]=s):s=l[0];const o=kt(s),{org:n,agentId:i}=o,d=Ft(i);if(!d){let c;return l[1]!==e||l[2]!==n?(c=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Pt,{title:"Agent not found",description:"This Agent may have been deleted or you may not have access.",actions:t.jsx(B,{variant:"outline",onClick:()=>e({to:"/$org/agents",params:{org:n}}),children:"Back to agents"})})}),l[1]=e,l[2]=n,l[3]=c):c=l[3],c}let r;return l[4]!==d?(r=t.jsx(Bs,{virtualMcp:d}),l[4]=d,l[5]=r):r=l[5],r}function Fl(){const l=_.c(1);let e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{children:t.jsx(N.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:t.jsx(Ve,{size:32,className:"animate-spin text-muted-foreground"})}),children:t.jsx(Gs,{})})}),l[0]=e):e=l[0],e}export{Fl as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as a,a0 as t}from"./index-Dho9MRVw.js";const e=a(t,{target:"draft-7"});export{e as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as f,_ as V,n as k,s as t,ap as j,aq as d,ar as x,as as R,c as W,j as c}from"./index-Dho9MRVw.js";import{B as H}from"./button-D_0RTXDt.js";import{I as N}from"./input-trZWilTG.js";import{s as O}from"./Plus-DAW17Fqf.js";import{s as U}from"./Trash01-BUkAP1vf.js";const L=f({authorizationEndpoint:t().url(),tokenEndpoint:t().url(),introspectionEndpoint:t().url().optional(),clientId:t(),clientSecret:t().optional(),scopes:k(t()),grantType:V(["authorization_code","client_credentials"])}),q=f({title:t().optional(),readOnlyHint:j().optional(),destructiveHint:j().optional(),idempotentHint:j().optional(),openWorldHint:j().optional()}),B=f({name:t(),description:t().optional(),inputSchema:d(t(),x()),outputSchema:d(t(),x()).optional(),annotations:q.optional(),_meta:d(t(),x()).optional()}),K=f({headers:d(t(),t()).optional()}),$=f({command:t().describe("Command to run (e.g., 'npx', 'node')"),args:k(t()).optional().describe("Command arguments"),cwd:t().optional().describe("Working directory"),envVars:d(t(),t()).optional().describe("Environment variables (encrypted in storage)")}),z=f({id:t().describe("Unique identifier for the connection"),title:t().describe("Human-readable name for the connection"),created_at:t().describe("When the connection was created"),updated_at:t().describe("When the connection was last updated"),created_by:t().describe("User ID who created the connection"),updated_by:t().optional().describe("User ID who last updated the connection"),organization_id:t().describe("Organization ID this connection belongs to"),description:t().nullable().describe("Description of the connection"),icon:t().nullable().describe("Icon URL for the connection"),app_name:t().nullable().describe("Associated app name"),app_id:t().nullable().describe("Associated app ID"),connection_type:V(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:t().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:t().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:R([$,K]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:L.nullable().describe("OAuth configuration"),configuration_state:d(t(),x()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:k(t()).nullable().optional().describe("Configuration scopes"),metadata:d(t(),x()).nullable().describe("Additional metadata (includes repository info)"),tools:k(B).nullable().describe("Discovered tools from MCP"),bindings:k(t()).nullable().describe("Detected bindings"),status:V(["active","inactive","error"]).describe("Current status")});z.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0});z.partial();function Y(o){return!!o&&"command"in o}function Z(o){return!o||!o.startsWith("virtual://")?null:o.replace("virtual://","")}function M(o){const e=o.toLowerCase();return!!(["secret","password","passwd","credential","private","token","bearer","jwt","refresh","session","api_key","apikey","auth_key","access_key","secret_key","private_key","service_key","encryption_key","signing_key","license_key","auth","oauth","client_secret","app_secret","webhook","signing","signature","database_url","db_url","mongo_uri","redis_url","postgres_url","mysql_url","connection_string","dsn","service_role","anon_key","supabase_key","openai","anthropic","stripe","twilio","sendgrid","resend","firebase","sentry","datadog","newrelic","new_relic","pplx","replicate","pinecone","cohere","hugging","hf_token","gh_token","npm_token","certificate","cert","ssl","tls","encryption","salt","hash","hmac","personal_access","github_pat","gitlab_pat","bitbucket_pat"].some(l=>e.includes(l))||["sk_","rk_","whsec_","pk_live","sk_live"].some(l=>e.startsWith(l))||["_key","_secret","_token","_password","_auth","_pat"].some(l=>e.endsWith(l)))}function ee(o){const e=W.c(34),{value:n,onChange:i,keyPlaceholder:A,valuePlaceholder:l,className:I}=o,_=A===void 0?"VARIABLE_NAME":A,b=l===void 0?"value...":l;let w;e[0]!==i||e[1]!==n?(w=()=>{i([...n,{key:"",value:""}])},e[0]=i,e[1]=n,e[2]=w):w=e[2];const D=w;let S;e[3]!==i||e[4]!==n?(S=r=>{i(n.filter((u,a)=>a!==r))},e[3]=i,e[4]=n,e[5]=S):S=e[5];const g=S;let C;e[6]!==i||e[7]!==n?(C=(r,u)=>{const a=[...n],s=a[r];s&&(a[r]={key:u,value:s.value},i(a))},e[6]=i,e[7]=n,e[8]=C):C=e[8];const v=C;let T;e[9]!==i||e[10]!==n?(T=(r,u)=>{const a=[...n],s=a[r];s&&(a[r]={key:s.key,value:u},i(a))},e[9]=i,e[10]=n,e[11]=T):T=e[11];const y=T;let p;if(e[12]!==v||e[13]!==g||e[14]!==y||e[15]!==_||e[16]!==n||e[17]!==b){let r;e[19]!==v||e[20]!==g||e[21]!==y||e[22]!==_||e[23]!==b?(r=(u,a)=>c.jsxs("div",{className:"flex gap-2 items-center",children:[c.jsx(N,{placeholder:_,value:u.key,onChange:s=>v(a,s.target.value),className:"h-10 rounded-lg flex-1 font-mono text-sm"}),c.jsx(N,{type:M(u.key)?"password":"text",placeholder:b,value:u.value,onChange:s=>y(a,s.target.value),className:"h-10 rounded-lg flex-1"}),c.jsx(H,{type:"button",variant:"ghost",size:"icon",className:"h-10 w-10 shrink-0 text-muted-foreground hover:text-destructive",onClick:()=>g(a),children:c.jsx(U,{size:16})})]},a),e[19]=v,e[20]=g,e[21]=y,e[22]=_,e[23]=b,e[24]=r):r=e[24],p=n.map(r),e[12]=v,e[13]=g,e[14]=y,e[15]=_,e[16]=n,e[17]=b,e[18]=p}else p=e[18];let E;e[25]===Symbol.for("react.memo_cache_sentinel")?(E=c.jsx(O,{size:16,className:"mr-1"}),e[25]=E):E=e[25];let m;e[26]!==D?(m=c.jsxs(H,{type:"button",variant:"outline",size:"sm",className:"w-full h-9 text-muted-foreground",onClick:D,children:[E,"Add Environment Variable"]}),e[26]=D,e[27]=m):m=e[27];let h;e[28]!==p||e[29]!==m?(h=c.jsxs("div",{className:"flex flex-col gap-2",children:[p,m]}),e[28]=p,e[29]=m,e[30]=h):h=e[30];let P;return e[31]!==I||e[32]!==h?(P=c.jsx("div",{className:I,children:h}),e[31]=I,e[32]=h,e[33]=P):P=e[33],P}function te(o){const e={};for(const{key:n,value:i}of o)n.trim()&&(e[n.trim()]=i);return e}function ne(o){return o?Object.entries(o).map(([e,n])=>({key:e,value:n})):[]}export{ee as E,te as e,Y as i,Z as p,ne as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as r,L as i,O as l,P as u,i as C,p as c,u as P}from"./index-Dho9MRVw.js";import{u as m,a as M,b as g,c as L,d,e as f,f as x,g as R}from"./use-collections-CVO4vm4G.js";import{u as T,a as y,b as A}from"./use-connection-BU-nKbTz.js";import{S as e}from"./constants-D8fdcBr8.js";import{K as b,a as h,W,c as w,g as I,b as O,d as _,e as D,f as V,h as E,i as Q,u as j}from"./constants-D8fdcBr8.js";import{g as U,l as k,a as v,r as F,u as H,b as J,c as N,d as Y}from"./use-mcp-prompts-B5zcyY9X.js";import{u as z,a as B,b as X}from"./use-virtual-mcp-DbjvrtSR.js";import{a as $,h as ss,i as es}from"./mcp-oauth-kjSe-9sd.js";import"./useMutation-Lj_Cbq0P.js";import"./useQuery-C2zqJzGD.js";export{r as ConnectionEntitySchema,b as KEYS,i as Locator,l as ORG_ADMIN_PROJECT_SLUG,u as ProjectContextProvider,h as SELF_MCP_ALIAS_ID,e as StreamableHTTPClientTransport,W as WellKnownOrgMCPId,$ as authenticateMcp,w as createMCPClient,I as getDecopilotId,U as getPrompt,O as getWellKnownCommunityRegistryConnection,_ as getWellKnownDecopilotVirtualMCP,D as getWellKnownMcpStudioConnection,V as getWellKnownOpenRouterConnection,E as getWellKnownRegistryConnection,ss as handleOAuthCallback,es as isConnectionAuthenticated,Q as isDecopilot,C as isStdioParameters,k as listPrompts,v as listResources,c as parseVirtualUrl,F as readResource,m as useCollectionActions,M as useCollectionItem,g as useCollectionList,T as useConnection,y as useConnectionActions,A as useConnections,j as useMCPClient,H as useMCPPromptsList,J as useMCPPromptsListQuery,N as useMCPResourcesList,Y as useMCPResourcesListQuery,L as useMCPToolCall,d as useMCPToolCallMutation,f as useMCPToolCallQuery,x as useMCPToolsList,R as useMCPToolsListQuery,P as useProjectContext,z as useVirtualMCP,B as useVirtualMCPActions,X as useVirtualMCPs};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as O,aa as I}from"./index-Dho9MRVw.js";import{u as x}from"./useQuery-C2zqJzGD.js";import{u as L}from"./useMutation-Lj_Cbq0P.js";function Q(e){try{return JSON.parse(e)}catch{return}}function y(e,s){const t=localStorage.getItem(e),o=t?Q(t):void 0,n=typeof s=="function"?s(o):o??s;if(o===void 0||n!==o)try{const a=JSON.stringify(n);localStorage.setItem(e,a)}catch{}return n}function A(e,s){const t=O.c(25),o=I();let n;t[0]!==e?(n=["localStorage",e],t[0]=e,t[1]=n):n=t[1];const a=n;let r,i;t[2]!==s||t[3]!==e?(r=()=>y(e,s),i=()=>y(e,s),t[2]=s,t[3]=e,t[4]=r,t[5]=i):(r=t[4],i=t[5]);let u;t[6]!==a||t[7]!==r||t[8]!==i?(u={queryKey:a,queryFn:r,initialData:i,staleTime:1/0,gcTime:1/0},t[6]=a,t[7]=r,t[8]=i,t[9]=u):u=t[9];const{data:v}=x(u);let l;t[10]!==e?(l=async c=>{const $=JSON.stringify(c);return localStorage.setItem(e,$),c},t[10]=e,t[11]=l):l=t[11];let m;t[12]!==o||t[13]!==a?(m=c=>{o.setQueryData(a,c)},t[12]=o,t[13]=a,t[14]=m):m=t[14];let h;t[15]!==l||t[16]!==m?(h={mutationFn:l,onSuccess:m},t[15]=l,t[16]=m,t[17]=h):h=t[17];const g=L(h);let d;t[18]!==g||t[19]!==o||t[20]!==a?(d=c=>{const $=o.getQueryData(a),C=typeof c=="function"?c($):c;g.mutate(C)},t[18]=g,t[19]=o,t[20]=a,t[21]=d):d=t[21];const p=d,S=v;let f;return t[22]!==p||t[23]!==S?(f=[S,p],t[22]=p,t[23]=S,t[24]=f):f=t[24],f}const D={assistantChatThreads:e=>`mesh:assistant-chat:threads:${e}`,messages:(e,s)=>`mesh:messages:${e}:${s}`,decoChatOpen:()=>"mesh:decochat:open",chatSelectedModel:e=>`mesh:chat:selectedModel:${e}`,assistantChatActiveThread:e=>`mesh:assistant-chat:active-thread:${e}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",sidebarOpen:()=>"mesh:sidebar-open",selectedRegistry:e=>`mesh:store:selected-registry:${e}`,orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,storeShowStdio:()=>"mesh:store:show-stdio",developerMode:()=>"mesh:user:developer-mode",pluginConnection:(e,s)=>`mesh:plugin:connection:${e}:${s}`};export{D as L,A as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as x,c as u,j as r,Z as L,u as O,l as A,ao as R,aT as h,an as N,b1 as D}from"./index-Dho9MRVw.js";import{C as I}from"./collection-header-CbT_At3k.js";import{C as M}from"./collection-page-CpAhF9Tg.js";import{u as T,a as F}from"./use-organization-settings-CeE0FyqT.js";import{c as f,B as b}from"./button-D_0RTXDt.js";import{S as H}from"./switch-t5mcsF2Z.js";import{i as W}from"./ArrowLeft-Dlm4CF9d.js";import"./collection-display-button-Cm0zQnM_.js";import"./dropdown-menu-CMmh8IDN.js";import"./Grid01-DmaR0g3f.js";import"./ArrowUp-CC-2uYGu.js";import"./Check-BzMGOxMB.js";import"./List-DZ53jWcW.js";import"./tooltip-Cw2xVvTD.js";import"./view-mode-toggle-BagEO4CJ.js";import"./useMutation-Lj_Cbq0P.js";import"./constants-D8fdcBr8.js";const S=({size:n=24,color:e="currentColor",...s})=>x.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},x.createElement("path",{d:"M7 22 17 2"}));S.displayName="SlashDivider";function Z(n){const e=u.c(4);let s;e[0]!==n?({...s}=n,e[0]=n,e[1]=s):s=e[1];let t;return e[2]!==s?(t=r.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...s}),e[2]=s,e[3]=t):t=e[3],t}function q(n){const e=u.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let i;e[3]!==s?(i=f("flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2",s),e[3]=s,e[4]=i):i=e[4];let a;return e[5]!==t||e[6]!==i?(a=r.jsx("ol",{"data-slot":"breadcrumb-list",className:i,...t}),e[5]=t,e[6]=i,e[7]=a):a=e[7],a}function C(n){const e=u.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let i;e[3]!==s?(i=f("inline-flex items-center gap-1.5",s),e[3]=s,e[4]=i):i=e[4];let a;return e[5]!==t||e[6]!==i?(a=r.jsx("li",{"data-slot":"breadcrumb-item",className:i,...t}),e[5]=t,e[6]=i,e[7]=a):a=e[7],a}function G(n){const e=u.c(10);let s,t,i;e[0]!==n?({asChild:s,className:t,...i}=n,e[0]=n,e[1]=s,e[2]=t,e[3]=i):(s=e[1],t=e[2],i=e[3]);const a=s?L:"a";let o;e[4]!==t?(o=f("hover:text-foreground transition-colors",t),e[4]=t,e[5]=o):o=e[5];let d;return e[6]!==a||e[7]!==i||e[8]!==o?(d=r.jsx(a,{"data-slot":"breadcrumb-link",className:o,...i}),e[6]=a,e[7]=i,e[8]=o,e[9]=d):d=e[9],d}function J(n){const e=u.c(8);let s,t;e[0]!==n?({className:s,...t}=n,e[0]=n,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let i;e[3]!==s?(i=f("text-foreground font-normal",s),e[3]=s,e[4]=i):i=e[4];let a;return e[5]!==t||e[6]!==i?(a=r.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:i,...t}),e[5]=t,e[6]=i,e[7]=a):a=e[7],a}function K(n){const e=u.c(12);let s,t,i;e[0]!==n?({children:s,className:t,...i}=n,e[0]=n,e[1]=s,e[2]=t,e[3]=i):(s=e[1],t=e[2],i=e[3]);let a;e[4]!==t?(a=f("[&>svg]:size-3.5 text-muted-foreground -rotate-12 opacity-50 list-none",t),e[4]=t,e[5]=a):a=e[5];let o;e[6]!==s?(o=s??r.jsx(S,{}),e[6]=s,e[7]=o):o=e[7];let d;return e[8]!==i||e[9]!==a||e[10]!==o?(d=r.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:a,...i,children:o}),e[8]=i,e[9]=a,e[10]=o,e[11]=d):d=e[11],d}function me(){const{org:n}=O(),e=A(),s=T(n.id),{update:t}=F(n.id),[i,a]=x.useState({}),[o,d]=x.useState(!1),p=s?.enabled_plugins??[],k=l=>{const c=i[l];return c!==void 0?c:p.includes(l)},w=()=>{const l=new Set(p);for(const[c,m]of Object.entries(i))m?l.add(c):l.delete(c);return Array.from(l)},j=Object.keys(i).length>0,y=(l,c)=>{const m=p.includes(l);a(c===m?g=>{const{[l]:v,...$}=g;return $}:g=>({...g,[l]:c}))},P=async()=>{d(!0);try{await t.mutateAsync({enabled_plugins:w()}),a({}),N.success("Plugin settings saved")}catch{N.error("Failed to save plugin settings")}finally{d(!1)}},E=()=>{a({})},z=l=>D.find(c=>c.pluginId===l),B=l=>h.find(m=>m.id===l)?.description??null;return r.jsxs(M,{children:[r.jsx(I,{title:r.jsx(Z,{children:r.jsxs(q,{children:[r.jsx(C,{children:r.jsx(G,{asChild:!0,children:r.jsx(R,{to:"/$org/settings",params:{org:n.slug},children:"Settings"})})}),r.jsx(K,{}),r.jsx(C,{children:r.jsx(J,{children:"Plugins"})})]})}),leftElement:r.jsx(b,{variant:"ghost",size:"icon",className:"size-8 text-muted-foreground",onClick:()=>e({to:"/$org/settings",params:{org:n.slug}}),children:r.jsx(W,{className:"size-4"})})}),r.jsx("div",{className:"flex-1 overflow-auto",children:r.jsx("div",{className:"flex h-full",children:r.jsx("div",{className:"flex-1 overflow-auto",children:r.jsx("div",{className:"p-5 max-w-2xl",children:r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Enable or disable plugins for your organization."})}),r.jsx("div",{className:"divide-y divide-border border-y border-border",children:h.map(l=>{const c=z(l.id),m=B(l.id),g=k(l.id);return r.jsxs("div",{className:"flex items-center justify-between gap-4 py-3",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[c?.icon&&r.jsx("div",{className:"flex-shrink-0 text-muted-foreground [&>svg]:size-4",children:c.icon}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"text-sm font-medium text-foreground",children:c?.label??l.id}),m&&r.jsx("p",{className:"text-xs text-muted-foreground",children:m})]})]}),r.jsx(H,{checked:g,onCheckedChange:v=>y(l.id,v),disabled:o})]},l.id)})}),h.length===0&&r.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),r.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[r.jsx(b,{onClick:P,disabled:!j||o,className:"min-w-24",children:o?"Saving...":"Save Changes"}),j&&r.jsx(b,{variant:"outline",onClick:E,disabled:o,children:"Cancel"})]})]})})})})})]})}export{me as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-DDmbfPGP.js";import{X as i}from"./index-Dho9MRVw.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{X as u,af as s}from"./index-Dho9MRVw.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-DDmbfPGP.js";import{X as u,Y as n}from"./index-Dho9MRVw.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|