@decocms/mesh 2.84.0 → 2.85.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/client/assets/{AlertCircle-DeobVPaG.js → AlertCircle-Dv-pGVbe.js} +1 -1
- package/dist/client/assets/ArrowLeft-DmjHPtds.js +1 -0
- package/dist/client/assets/{ArrowUp-CsOsDXPa.js → ArrowUp-CNNhUiSK.js} +1 -1
- package/dist/client/assets/{Calendar-Dgp6D2He.js → Calendar-DvFZbDSm.js} +1 -1
- package/dist/client/assets/{Check-B7tiH-XX.js → Check-D0-doi3D.js} +1 -1
- package/dist/client/assets/{CheckCircle-vLELf6tG.js → CheckCircle-B7BcMa43.js} +1 -1
- package/dist/client/assets/{CheckDone01-W_IvTmR4.js → CheckDone01-BFFxKfwE.js} +1 -1
- package/dist/client/assets/{ChevronDown-4fM-ZApw.js → ChevronDown-DhDohZgY.js} +1 -1
- package/dist/client/assets/{ChevronRight-C9SvVl2H.js → ChevronRight-YlJxRSER.js} +1 -1
- package/dist/client/assets/{Code01-CtE9Fgo6.js → Code01-BALFVt_U.js} +1 -1
- package/dist/client/assets/{Copy01-mHAXegMf.js → Copy01-CdI1uSIx.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-Cn6V45R5.js → DotsHorizontal-BBNdFqaM.js} +1 -1
- package/dist/client/assets/{DotsVertical-C_NxHUxM.js → DotsVertical-eKFCZgNz.js} +1 -1
- package/dist/client/assets/{Download01-BjmCpoji.js → Download01-ByYU943d.js} +1 -1
- package/dist/client/assets/{Edit01-RMPmKiuh.js → Edit01-BLqaLVsN.js} +1 -1
- package/dist/client/assets/{File02-DW2JTynl.js → File02-ChsZyHSt.js} +1 -1
- package/dist/client/assets/{File06-BoQ3aZMK.js → File06-ZuO2Pzkt.js} +1 -1
- package/dist/client/assets/{FilterLines-C51ysYKP.js → FilterLines-kdqwOMYU.js} +1 -1
- package/dist/client/assets/{Globe02-CHTxbuvC.js → Globe02-R_O247ek.js} +1 -1
- package/dist/client/assets/{Grid01-Dvk1xwJ4.js → Grid01-Hl_fTaOZ.js} +1 -1
- package/dist/client/assets/{Home02-DOyHFJiI.js → Home02-DCuV9I0Z.js} +1 -1
- package/dist/client/assets/{Image01-BoPpKFMP.js → Image01-UevfVWVa.js} +1 -1
- package/dist/client/assets/{Inbox01-DVhoyxIp.js → Inbox01-DkILVHwB.js} +1 -1
- package/dist/client/assets/{InfoCircle-CAfYuO0K.js → InfoCircle-OFmSmQRy.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DxKrKPgL.js → LinkExternal01-CzCmb0H9.js} +1 -1
- package/dist/client/assets/{List-BdoaC21s.js → List-CziLidfU.js} +1 -1
- package/dist/client/assets/{Loading01-MSLql51R.js → Loading01-Bnk-9-nZ.js} +1 -1
- package/dist/client/assets/{Lock01-CCP_kajf.js → Lock01-D1Ke74xN.js} +1 -1
- package/dist/client/assets/{Pin01-DTGNcumy.js → Pin01-BY5CK8qS.js} +1 -1
- package/dist/client/assets/{Play-BQy9xsnN.js → Play-D6Lfsz7v.js} +1 -1
- package/dist/client/assets/{Plus-cL6uctg7.js → Plus-BsvHyKJ8.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Cn69ijk0.js → RefreshCcw01-BjGY5EQM.js} +1 -1
- package/dist/client/assets/{SearchMd-9opLTbt7.js → SearchMd-B2tl0hgr.js} +1 -1
- package/dist/client/assets/{Settings01-CymY9V-E.js → Settings01-DFEntEgk.js} +1 -1
- package/dist/client/assets/{Settings02-D0x9l-th.js → Settings02-BKH7FnCM.js} +1 -1
- package/dist/client/assets/{Share07-DtkOeKXz.js → Share07-BoaRx3Mk.js} +1 -1
- package/dist/client/assets/{Terminal-Dhv-FFhT.js → Terminal-DAZzR_ZP.js} +1 -1
- package/dist/client/assets/{Tool01-Dx-yLjWZ.js → Tool01-CwDTk-Rs.js} +1 -1
- package/dist/client/assets/{Trash01-BYpgehDe.js → Trash01-DCp8kuDe.js} +1 -1
- package/dist/client/assets/{Upload01-CizOzq5O.js → Upload01-u4nRmrqT.js} +1 -1
- package/dist/client/assets/{Users03-CA846Mh0.js → Users03-B2zsfnpN.js} +1 -1
- package/dist/client/assets/{X-DpveZ1aP.js → X-CERPEbZp.js} +1 -1
- package/dist/client/assets/{XClose-CfG5NO72.js → XClose-Vbmhp4-x.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-CRroINZQ.js → agent-connections-preview-C8us1TXi.js} +1 -1
- package/dist/client/assets/agent-detail-DPvjIJq8.js +1 -0
- package/dist/client/assets/{agents-CZXDFdz9.js → agents-B_Mc2Y0p.js} +1 -1
- package/dist/client/assets/{alert-dialog-CEzvbVBM.js → alert-dialog-DZUHuYRj.js} +1 -1
- package/dist/client/assets/{auth-catchall-CtFwpTdR.js → auth-catchall-WiUbh3Vy.js} +1 -1
- package/dist/client/assets/{avatar-DQriEO9g.js → avatar-BlXkFPmj.js} +1 -1
- package/dist/client/assets/{badge-c1ZDS4lj.js → badge-DspY47ru.js} +1 -1
- package/dist/client/assets/{binder-Bq3_4LhY.js → binder-Dm6uKx_q.js} +1 -1
- package/dist/client/assets/{breadcrumb--xT5xhrI.js → breadcrumb-Ds3Lal_V.js} +1 -1
- package/dist/client/assets/{button-CaHjtgMH.js → button-DyxB0Yk5.js} +1 -1
- package/dist/client/assets/{card-188R77No.js → card-Czo4WORA.js} +1 -1
- package/dist/client/assets/{checkbox-BAAj2fcH.js → checkbox-BJHuci-0.js} +1 -1
- package/dist/client/assets/{circle-alert-Bgl4tjaY.js → circle-alert-CFYGWMlI.js} +1 -1
- package/dist/client/assets/{collection-detail-ByJKKzFi.js → collection-detail-CtGRRRDt.js} +3 -3
- package/dist/client/assets/{collection-search-HoWi-uQh.js → collection-search-B1sfCtHP.js} +1 -1
- package/dist/client/assets/{collection-tab-LmXN6j57.js → collection-tab-C0EGq1kq.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-8d_2ogD8.js → collection-table-wrapper-CWAiVtOh.js} +1 -1
- package/dist/client/assets/{collection-tabs-BgX62hK_.js → collection-tabs-BBncsSV1.js} +1 -1
- package/dist/client/assets/{command-acDiQnsv.js → command-DwjGvSxM.js} +1 -1
- package/dist/client/assets/{connect-DHfoqZeq.js → connect-79qxws_p.js} +1 -1
- package/dist/client/assets/{connection-card-Bvx5R369.js → connection-card-BNG8RiKR.js} +1 -1
- package/dist/client/assets/connection-detail-DpJ2obA4.js +1 -0
- package/dist/client/assets/{connections-h5stFQau.js → connections-BOIKCGcJ.js} +1 -1
- package/dist/client/assets/constants-Bo5G03e3.js +1 -0
- package/dist/client/assets/{constants-DLL8NriC.js → constants-DeSBGDil.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-KlMp4qjX.js → create-organization-dialog-DTTLW3st.js} +1 -1
- package/dist/client/assets/{create-project-dialog-B3qmL-St.js → create-project-dialog-b2rgBy6I.js} +1 -1
- package/dist/client/assets/{dialog-Je7S_n4B.js → dialog-RkqsUuro.js} +1 -1
- package/dist/client/assets/{dropdown-menu-6ZQ-yg3S.js → dropdown-menu-DJfLCcXj.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-CizeXBED.js → dynamic-plugin-layout-C-BX9dZD.js} +1 -1
- package/dist/client/assets/{empty-state-DuUoirVq.js → empty-state-B1qLg3Wj.js} +1 -1
- package/dist/client/assets/{empty-state-Cglctsv2.js → empty-state-C70KsS8J.js} +1 -1
- package/dist/client/assets/{env-vars-editor-C9cKLeQr.js → env-vars-editor-hgEfXkCQ.js} +1 -1
- package/dist/client/assets/{error-boundary-DEpo81VO.js → error-boundary-BWYaX2Wu.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DqOBaFRo.js → extract-connection-data-CYX0n8Dz.js} +1 -1
- package/dist/client/assets/{file-browser-CVJSKTZS.js → file-browser-luwLtvt1.js} +2 -2
- package/dist/client/assets/{form-eIVV-J09.js → form-CPHFoWqg.js} +1 -1
- package/dist/client/assets/{grid-view-Cr52HZSj.js → grid-view-BYwAtmMs.js} +1 -1
- package/dist/client/assets/{home-CTqFE2fy.js → home-6BSXWwE-.js} +1 -1
- package/dist/client/assets/{index-9O2flk3F.js → index-BleD0AWt.js} +1 -1
- package/dist/client/assets/{index-CbNc0YVi.js → index-Cj2ccTyE.js} +1 -1
- package/dist/client/assets/{index-1FNA2NMp.js → index-CkIIowTe.js} +1 -1
- package/dist/client/assets/{index-NCAPotMz.js → index-Cu9TDLt5.js} +1 -1
- package/dist/client/assets/{index-CDSE7RqG.js → index-DIarRfAA.js} +1 -1
- package/dist/client/assets/index-DjoTHPX-.js +25 -0
- package/dist/client/assets/{index-BP5xHVRF.js → index-DyoRyDg0.js} +2 -2
- package/dist/client/assets/index-NuPnrQEp.js +1 -0
- package/dist/client/assets/{index-DSuycUKc.js → index-ZW5LgkfR.js} +95 -95
- package/dist/client/assets/index-tYpHqvxs.css +1 -0
- package/dist/client/assets/{infiniteQueryObserver-DFgsWYE3.js → infiniteQueryObserver-4tHvFsCT.js} +1 -1
- package/dist/client/assets/{input-BYKrnlY1.js → input-BGIEfDaw.js} +1 -1
- package/dist/client/assets/{integration-icon-Y1ojuvRD.js → integration-icon-BRZY1p3G.js} +1 -1
- package/dist/client/assets/{label-CUkyLZ_S.js → label-nYOkPUBD.js} +1 -1
- package/dist/client/assets/{layout-BhJZaZF8.js → layout-CiQVyOtU.js} +1 -1
- package/dist/client/assets/{localstorage-keys-uz6xAIc7.js → localstorage-keys-BVi4c9Wu.js} +1 -1
- package/dist/client/assets/{login-BTG1UHZ2.js → login-ZhUdP3Du.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BSElItdx.js → mcp-oauth-D5ZIKdBG.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Dj8YPxHe.js → mcp-server-card-BluZeoJV.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-Bq02ivSO.js → mcp-server-detail-DA38ZVYK.js} +2 -2
- package/dist/client/assets/members-CcwWOeY4.js +3 -0
- package/dist/client/assets/{monaco-editor-ISS3tjaj.js → monaco-editor-D8XjYu_I.js} +1 -1
- package/dist/client/assets/{monitoring-DwKvPUfp.js → monitoring-CDhjTLeQ.js} +1 -1
- package/dist/client/assets/{oauth-callback-DkWmsnwk.js → oauth-callback-BeReH52R.js} +1 -1
- package/dist/client/assets/{page-DHvXJfyM.js → page-BL5oRGL8.js} +1 -1
- package/dist/client/assets/page-KDOuYuNd.js +1 -0
- package/dist/client/assets/{plugin-empty-state-BlvwQjtt.js → plugin-empty-state-DJs75tbR.js} +1 -1
- package/dist/client/assets/{plugin-header-CMMjHqBI.js → plugin-header-B9k5Jlo7.js} +1 -1
- package/dist/client/assets/{popover-0PZkfvQx.js → popover-CRq_6wOS.js} +1 -1
- package/dist/client/assets/{project-layout-DrtrZXRE.js → project-layout-BNYVyor9.js} +1 -1
- package/dist/client/assets/{project-settings-D1POFx5m.js → project-settings-BB9OYyku.js} +1 -1
- package/dist/client/assets/{projects-list-WIBXwQbi.js → projects-list-tCSe-p9p.js} +1 -1
- package/dist/client/assets/{registry-utils-tzXl-1LP.js → registry-utils-BSsNDH8z.js} +1 -1
- package/dist/client/assets/{resizable-1OTgE7WS.js → resizable-IICqdC0P.js} +1 -1
- package/dist/client/assets/{select-C3cCqPPl.js → select-f15wOonn.js} +1 -1
- package/dist/client/assets/{shell-layout-Cba6DBEb.js → shell-layout-Du8t77ur.js} +4 -4
- package/dist/client/assets/{spinner-C93Wqcgz.js → spinner-DnPscNbk.js} +1 -1
- package/dist/client/assets/{store-invite-Cg6GDp3D.js → store-invite-OC-5AI4v.js} +1 -1
- package/dist/client/assets/{switch-D1hmikqH.js → switch-BIO6p3F2.js} +1 -1
- package/dist/client/assets/{table-I9cwN_fJ.js → table-BECdubXZ.js} +1 -1
- package/dist/client/assets/{tasks-B_6Mkgqa.js → tasks-07lkw73y.js} +1 -1
- package/dist/client/assets/{textarea-DQKbZOJF.js → textarea-Beyy6QRE.js} +1 -1
- package/dist/client/assets/{tools-list-BB-J8w9I.js → tools-list-B4uqUufu.js} +1 -1
- package/dist/client/assets/{topbar-portal-YDFUK5ME.js → topbar-portal-BkkURAkp.js} +1 -1
- package/dist/client/assets/{typewriter-title-NPqFp9ey.js → typewriter-title-CXc5iNqe.js} +1 -1
- package/dist/client/assets/{use-binding-eVzJ84ZZ.js → use-binding-jnlj8haE.js} +1 -1
- package/dist/client/assets/{use-connection-Dr483fc2.js → use-connection-CdUUg5oM.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BMMjVvtG.js → use-create-virtual-mcp-Brpfqy1S.js} +1 -1
- package/dist/client/assets/use-deco-chat-open-BIqIiDW-.js +23 -0
- package/dist/client/assets/{use-install-from-registry-D-uRqpkm.js → use-install-from-registry-zPimeqjE.js} +1 -1
- package/dist/client/assets/{use-list-state-Crb7X_KW.js → use-list-state-C8dJBLRY.js} +1 -1
- package/dist/client/assets/{use-llm-DMxQiXS5.js → use-llm-AxlP2IMZ.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-n2y1aXdw.js → use-mcp-prompts-B4-jhghr.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D5uKhZdh.js → use-mcp-tools-CwSPwOy3.js} +1 -1
- package/dist/client/assets/{use-mobile-BG01tXEp.js → use-mobile-CZgmHxJy.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BOgqOHG5.js → use-organization-settings-7U_CYDtf.js} +1 -1
- package/dist/client/assets/{use-project-BXCfG1rp.js → use-project-DHmrO9yE.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BKDa8fdJ.js → use-virtual-mcp-B_EKKbiX.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DiBxunOm.js +1 -0
- package/dist/client/assets/{useMutation-xI92doIX.js → useMutation-BZJqJibi.js} +1 -1
- package/dist/client/assets/useQuery-B0sG-lD7.js +1 -0
- package/dist/client/assets/utils-CDly9l2F.js +1 -0
- package/dist/client/assets/{view-mode-toggle-CJh4RBXl.js → view-mode-toggle-DFlygBbR.js} +1 -1
- package/dist/client/assets/{workflow-BRGJkOOc.js → workflow-CyeaW6pw.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +199 -253
- package/dist/server/server.js +166 -220
- package/package.json +1 -1
- package/dist/client/assets/agent-detail-Cd2Rwbj4.js +0 -1
- package/dist/client/assets/connection-detail-BJZN3Ku4.js +0 -1
- package/dist/client/assets/constants-Dbui3Xcr.js +0 -1
- package/dist/client/assets/index-BEdPWc-P.css +0 -1
- package/dist/client/assets/index-DdE2vL1_.js +0 -1
- package/dist/client/assets/index-_A3ax9us.js +0 -25
- package/dist/client/assets/members-DkmO8hoH.js +0 -3
- package/dist/client/assets/page-0NtxB3kF.js +0 -1
- package/dist/client/assets/use-deco-chat-open-DDkpn4wX.js +0 -23
- package/dist/client/assets/useInfiniteQuery-B5e3lO4h.js +0 -1
- package/dist/client/assets/useQuery-DLTRHzuH.js +0 -1
- package/dist/client/assets/utils-NsYXf4VI.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as g,g as y,t as e}from"./index-
|
|
1
|
+
import{u as g,g as y,t as e}from"./index-DyoRyDg0.js";import{u as C}from"./use-binding-jnlj8haE.js";import{g as S,h as v}from"./use-connection-CdUUg5oM.js";import{e as B}from"./extract-connection-data-CYX0n8Dz.js";import{f as I,c as P,e as _}from"./registry-utils-BSsNDH8z.js";function w(t){return t.startsWith("@")?t:`@${t}`}function F(){const{org:t}=g(),{data:s}=y.useSession(),i=S(),l=v(),u=C(l);return{installByBinding:async r=>{if(!t||!s?.user?.id){e.error("Not authenticated");return}const d=w(r),a=(await Promise.all(u.map(async o=>{const c=I(o.tools);if(!c)return null;try{const p=await P(o.id,t.id,c,{where:{appName:d}});return _(p??[])[0]??null}catch{return null}}))).find(o=>o!==null);if(!a){e.error(`MCP Server not found in registry: ${r}`);return}const n=B(a,t.id,s.user.id),m=n.connection_type==="STDIO",f=!!n.connection_url,h=m&&n.connection_headers&&typeof n.connection_headers=="object"&&"command"in n.connection_headers;if(!f&&!h){e.error("This MCP Server cannot be connected: no connection method available");return}return await i.create.mutateAsync(n),{id:n.id,connection:n}},isInstalling:i.create.isPending}}export{F as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as b,c as N,u as B,K as I,j as x}from"./index-
|
|
1
|
+
import{r as b,c as N,u as B,K as I,j as x}from"./index-DyoRyDg0.js";import{A as _}from"./avatar-BlXkFPmj.js";import{c as C}from"./utils-CDly9l2F.js";import{u as L}from"./useQuery-B0sG-lD7.js";import{a as U,u as D}from"./constants-DeSBGDil.js";import{u as P}from"./use-mobile-CZgmHxJy.js";const A=({size:i=24,color:e="currentColor",...t})=>b.createElement("svg",{viewBox:"0 0 24 24",width:i,height:i,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},b.createElement("path",{d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.173 1.173 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287Z"}),b.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));A.displayName="Eye";function R(i){const e=N.c(11),{org:t}=B();let c;e[0]!==t.id?(c={connectionId:U,orgId:t.id},e[0]=t.id,e[1]=c):c=e[1];const r=D(c);let s;e[2]!==i?(s=I.user(i),e[2]=i,e[3]=s):s=e[3];let o;e[4]!==r||e[5]!==i?(o=async()=>{const p=await r.callTool({name:"USER_GET",arguments:{id:i}});return(p.structuredContent??p).user},e[4]=r,e[5]=i,e[6]=o):o=e[6];const a=!!i;let l;return e[7]!==s||e[8]!==o||e[9]!==a?(l={queryKey:s,queryFn:o,staleTime:3e5,retry:1,enabled:a},e[7]=s,e[8]=o,e[9]=a,e[10]=l):l=e[10],L(l)}function H(i){const e=N.c(39),{id:t,size:c,showEmail:r,className:s}=i,o=c===void 0?"xs":c,a=r===void 0?!1:r,{data:l,isLoading:p,isError:j}=R(t);if(p){let u;e[0]!==s?(u=C("flex items-center gap-2",s),e[0]=s,e[1]=u):u=e[1];let n;e[2]!==o?(n=x.jsx(_.Skeleton,{shape:"circle",size:o}),e[2]=o,e[3]=n):n=e[3];let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),e[4]=g):g=e[4];let h;e[5]!==a?(h=a&&x.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"}),e[5]=a,e[6]=h):h=e[6];let w;e[7]!==h?(w=x.jsxs("div",{className:"flex flex-col gap-1",children:[g,h]}),e[7]=h,e[8]=w):w=e[8];let M;return e[9]!==u||e[10]!==n||e[11]!==w?(M=x.jsxs("div",{className:u,children:[n,w]}),e[9]=u,e[10]=n,e[11]=w,e[12]=M):M=e[12],M}if(j||!l){let u;e[13]!==s?(u=C("flex items-center gap-2",s),e[13]=s,e[14]=u):u=e[14];let n;e[15]!==o?(n=x.jsx(_,{shape:"circle",size:o,fallback:"?",muted:!0}),e[15]=o,e[16]=n):n=e[16];let g;e[17]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx("div",{className:"flex flex-col",children:x.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[17]=g):g=e[17];let h;return e[18]!==u||e[19]!==n?(h=x.jsxs("div",{className:u,children:[n,g]}),e[18]=u,e[19]=n,e[20]=h):h=e[20],h}let v;e[21]!==s?(v=C("flex items-center gap-2",s),e[21]=s,e[22]=v):v=e[22];const y=l.image??void 0;let m;e[23]!==o||e[24]!==y||e[25]!==l.name?(m=x.jsx(_,{shape:"circle",size:o,url:y,fallback:l.name}),e[23]=o,e[24]=y,e[25]=l.name,e[26]=m):m=e[26];let d;e[27]!==l.name?(d=x.jsx("div",{className:"text-sm font-medium",children:l.name}),e[27]=l.name,e[28]=d):d=e[28];let f;e[29]!==a||e[30]!==l.email?(f=a&&x.jsx("div",{className:"text-xs text-muted-foreground",children:l.email}),e[29]=a,e[30]=l.email,e[31]=f):f=e[31];let S;e[32]!==d||e[33]!==f?(S=x.jsxs("div",{className:"flex flex-col",children:[d,f]}),e[32]=d,e[33]=f,e[34]=S):S=e[34];let E;return e[35]!==v||e[36]!==m||e[37]!==S?(E=x.jsxs("div",{className:v,children:[m,S]}),e[35]=v,e[36]=m,e[37]=S,e[38]=E):E=e[38],E}function W(i){const e=`deco-filters-${i}`,[t,c]=b.useState(()=>{try{const s=globalThis.localStorage?.getItem(e);if(s)return JSON.parse(s)}catch(s){console.error("Failed to parse stored filters:",s)}return[]});return[t,s=>{c(s);try{globalThis.localStorage?.setItem(e,JSON.stringify(s))}catch(o){console.error("Failed to save filters:",o)}}]}function z(i){const e=N.c(7),[t,c]=b.useState(i),[r,s]=b.useState(i?"desc":null);let o;e[0]!==r||e[1]!==t?(o=p=>{t!==p?(c(p),s("asc")):r==="asc"?s("desc"):r==="desc"&&(c(void 0),s(null))},e[0]=r,e[1]=t,e[2]=o):o=e[2];const a=o;let l;return e[3]!==a||e[4]!==r||e[5]!==t?(l={sortKey:t,sortDirection:r,handleSort:a},e[3]=a,e[4]=r,e[5]=t,e[6]=l):l=e[6],l}function q(i,e){const t=N.c(12),c=e===void 0?"cards":e,r=P(),s=b.useRef(r),o=i?`deco-view-mode-${i}`:"deco-view-mode";let a;t[0]!==c||t[1]!==o?(a=()=>{const f=globalThis.localStorage?.getItem(o);return f==="cards"||f==="table"?f:c},t[0]=c,t[1]=o,t[2]=a):a=t[2];const[l,p]=b.useState(a);let j;t[3]!==o?(j=f=>{p(f),globalThis.localStorage?.setItem(o,f)},t[3]=o,t[4]=j):j=t[4];const v=j;let y,m;t[5]!==r||t[6]!==l?(y=()=>{!s.current&&r&&l==="table"&&p("cards"),s.current=r},m=[r,l],t[5]=r,t[6]=l,t[7]=y,t[8]=m):(y=t[7],m=t[8]),b.useEffect(y,m);let d;return t[9]!==v||t[10]!==l?(d=[l,v],t[9]=v,t[10]=l,t[11]=d):d=t[11],d}function X(i){const e=N.c(20),{namespace:t,resource:c,defaultSortKey:r,defaultViewMode:s}=i,o=r===void 0?"title":r,a=s===void 0?"table":s,[l,p]=b.useState(""),j=b.useDeferredValue(l),v=`${t}-${c}`,[y,m]=W(v),d=`mesh-${c}-filter-visible-${t}`;let f;e[0]!==d?(f=()=>globalThis.localStorage?.getItem(d)==="true",e[0]=d,e[1]=f):f=e[1];const[S,E]=b.useState(f);let u;e[2]!==d?(u=T=>{E(T),globalThis.localStorage?.setItem(d,String(T))},e[2]=d,e[3]=u):u=e[3];const n=u;let g;e[4]!==S||e[5]!==n?(g=()=>{n(!S)},e[4]=S,e[5]=n,e[6]=g):g=e[6];const h=g,[w,M]=q(`mesh-${c}-${t}`,a),{sortKey:k,sortDirection:K,handleSort:F}=z(o),V=k;let $;return e[7]!==S||e[8]!==y||e[9]!==F||e[10]!==l||e[11]!==j||e[12]!==n||e[13]!==m||e[14]!==M||e[15]!==K||e[16]!==V||e[17]!==h||e[18]!==w?($={search:l,searchTerm:j,setSearch:p,filters:y,setFilters:m,filterBarVisible:S,setFilterBarVisible:n,toggleFilterBar:h,viewMode:w,setViewMode:M,sortKey:V,sortDirection:K,handleSort:F},e[7]=S,e[8]=y,e[9]=F,e[10]=l,e[11]=j,e[12]=n,e[13]=m,e[14]=M,e[15]=K,e[16]=V,e[17]=h,e[18]=w,e[19]=$):$=e[19],$}export{H as U,A as s,X as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u}from"./index-
|
|
1
|
+
import{c,u}from"./index-DyoRyDg0.js";import{h as m,e as a}from"./use-connection-CdUUg5oM.js";import{j as p}from"./constants-DeSBGDil.js";import{a as C}from"./use-binding-jnlj8haE.js";function x(n,s){const o=c.c(5);let e;o[0]!==s?(e=s===void 0?{}:s,o[0]=s,o[1]=e):e=o[1];const r=e,{org:i}=u();let t;o[2]!==n||o[3]!==i.id?(t={connectionId:n,orgId:i.id},o[2]=n,o[3]=i.id,o[4]=t):t=o[4];const l=p(t);return a(n??"no-connection","LLM",l,r)}function j(){const n=c.c(2),s=m();let o;return n[0]!==s?(o={connections:s,binding:"LLMS"},n[0]=s,n[1]=o):o=n[1],C(o)}export{x as a,j as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,aV as u,aW as p,n as f}from"./index-
|
|
1
|
+
import{c as n,aV as u,aW as p,n as f}from"./index-DyoRyDg0.js";import{u as m}from"./useQuery-B0sG-lD7.js";import{K as c}from"./constants-DeSBGDil.js";async function y(o){if(!o.getServerCapabilities()?.resources)return{resources:[]};try{return await o.listResources()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{resources:[]};throw t}}async function R(o,e){return await o.readResource({uri:e})}function w(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function C(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpResourcesList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>y(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}async function P(o){if(!o.getServerCapabilities()?.prompts)return{prompts:[]};try{return await o.listPrompts()}catch(t){if(t instanceof u&&t.code===p.MethodNotFound)return{prompts:[]};throw t}}async function L(o,e,t){if(!o.getServerCapabilities()?.prompts)throw new Error("Prompts capability not supported");return await o.getPrompt({name:e,arguments:t??{}})}function T(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>P(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],f(a)}function g(o){const e=n.c(12);let t,s;e[0]!==o?({client:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let r;e[3]!==t?(r=c.mcpPromptsList(t),e[3]=t,e[4]=r):r=e[4];let i;e[5]!==t?(i=()=>P(t),e[5]=t,e[6]=i):i=e[6];const l=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==r||e[9]!==i||e[10]!==l?(a={...s,queryKey:r,queryFn:i,staleTime:l,retry:!1},e[7]=s,e[8]=r,e[9]=i,e[10]=l,e[11]=a):a=e[11],m(a)}export{y as a,g as b,w as c,C as d,L as g,P as l,R as r,T as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,n as p}from"./index-
|
|
1
|
+
import{c as m,n as p}from"./index-DyoRyDg0.js";import{u as q}from"./useQuery-B0sG-lD7.js";import{u as C}from"./useMutation-BZJqJibi.js";import{K as T}from"./constants-DeSBGDil.js";function w(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],p(n)}function F(r){const e=m.c(12);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let o;e[5]!==t?(o=async()=>await t.listTools(),e[5]=t,e[6]=o):o=e[6];const i=s.staleTime??3e4;let n;return e[7]!==s||e[8]!==l||e[9]!==o||e[10]!==i?(n={...s,queryKey:l,queryFn:o,staleTime:i,retry:!1},e[7]=s,e[8]=l,e[9]=o,e[10]=i,e[11]=n):n=e[11],q(n)}function P(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function $(r){const e=m.c(21);let t,s,l,o;e[0]!==r?({client:t,toolName:o,toolArguments:l,...s}=r,e[0]=r,e[1]=t,e[2]=s,e[3]=l,e[4]=o):(t=e[1],s=e[2],l=e[3],o=e[4]);let i,n,u;if(e[5]!==t||e[6]!==s||e[7]!==l||e[8]!==o){const y=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,y),e[5]=t,e[6]=s,e[7]=l,e[8]=o,e[9]=i,e[10]=n,e[11]=u}else i=e[9],n=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==o?(a=async()=>await t.callTool({name:o,arguments:l}),e[12]=t,e[13]=l,e[14]=o,e[15]=a):a=e[15];const f=s.staleTime??3e4;let c;return e[16]!==i||e[17]!==n||e[18]!==a||e[19]!==f?(c={...i,queryKey:n,queryFn:a,staleTime:f,retry:!1},e[16]=i,e[17]=n,e[18]=a,e[19]=f,e[20]=c):c=e[20],u(c)}function L(r){const e=m.c(8);let t,s;e[0]!==r?({client:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let l;e[3]!==t?(l=async i=>await t.callTool(i),e[3]=t,e[4]=l):l=e[4];let o;return e[5]!==s||e[6]!==l?(o={...s,mutationFn:l},e[5]=s,e[6]=l,e[7]=o):o=e[7],C(o)}export{L as a,$ as b,w as c,F as d,P as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,r}from"./index-
|
|
1
|
+
import{c as m,r}from"./index-DyoRyDg0.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,u as T,n as d,z as y,K as g}from"./index-
|
|
1
|
+
import{c as m,u as T,n as d,z as y,K as g}from"./index-DyoRyDg0.js";import{u as _}from"./useMutation-BZJqJibi.js";import{a as p,u as A}from"./constants-DeSBGDil.js";function D(e){const t=m.c(10),{org:i}=T();let l;t[0]!==i.id?(l={connectionId:p,orgId:i.id},t[0]=i.id,t[1]=l):l=t[1];const c=A(l);let u;t[2]!==e?(u=g.organizationSettings(e),t[2]=e,t[3]=u):u=t[3];let s;t[4]!==c||t[5]!==e?(s=async()=>{const a=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),r=a.structuredContent??a;return r||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[4]=c,t[5]=e,t[6]=s):s=t[6];let n;t[7]!==u||t[8]!==s?(n={queryKey:u,queryFn:s,staleTime:6e4},t[7]=u,t[8]=s,t[9]=n):n=t[9];const{data:o}=d(n);return o}function G(e){const t=m.c(13),i=y(),{org:l}=T();let c;t[0]!==l.id?(c={connectionId:p,orgId:l.id},t[0]=l.id,t[1]=c):c=t[1];const u=A(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const f=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return f.structuredContent??f},t[2]=u,t[3]=e,t[4]=s):s=t[4];let n;t[5]!==e||t[6]!==i?(n=S=>{i.setQueryData(g.organizationSettings(e),S)},t[5]=e,t[6]=i,t[7]=n):n=t[7];let o;t[8]!==s||t[9]!==n?(o={mutationFn:s,onSuccess:n},t[8]=s,t[9]=n,t[10]=o):o=t[10];const a=_(o);let r;return t[11]!==a?(r={update:a},t[11]=a,t[12]=r):r=t[12],r}export{G as a,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{K as m,c as C,n as T}from"./index-
|
|
1
|
+
import{K as m,c as C,n as T}from"./index-DyoRyDg0.js";import{u as y}from"./useQuery-B0sG-lD7.js";import{u as f,a}from"./constants-DeSBGDil.js";function S(t,s){const e=C.c(13);let r;e[0]!==t?(r={connectionId:a,orgId:t},e[0]=t,e[1]=r):r=e[1];const l=f(r);let u;e[2]!==t||e[3]!==s?(u=m.project(t,s),e[2]=t,e[3]=s,e[4]=u):u=e[4];let c;e[5]!==l||e[6]!==t||e[7]!==s?(c=async()=>{const p=await l.callTool({name:"PROJECT_GET",arguments:{organizationId:t,slug:s}});return(p.structuredContent??p).project},e[5]=l,e[6]=t,e[7]=s,e[8]=c):c=e[8];const o=!!t&&!!s;let n;return e[9]!==u||e[10]!==c||e[11]!==o?(n={queryKey:u,queryFn:c,enabled:o,staleTime:3e4},e[9]=u,e[10]=c,e[11]=o,e[12]=n):n=e[12],y(n)}function _(t,s){const e=f({connectionId:a,orgId:t}),r={queryKey:m.projects(t),queryFn:async()=>{const l=await e.callTool({name:"PROJECT_LIST",arguments:{organizationId:t}});return(l.structuredContent??l).projects.map(c=>({...c,organizationId:t}))},staleTime:3e4};return s?.suspense?T(r):y({...r,enabled:!!t})}export{_ as a,S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index-
|
|
1
|
+
import{c,u as r}from"./index-DyoRyDg0.js";import{e as a,u as C,d as I}from"./use-connection-CdUUg5oM.js";import{a as l,u}from"./constants-DeSBGDil.js";function m(i){const t=c.c(4);let o;t[0]!==i?(o=i===void 0?{}:i,t[0]=i,t[1]=o):o=t[1];const n=o,{org:e}=r();let s;t[2]!==e.id?(s={connectionId:l,orgId:e.id},t[2]=e.id,t[3]=s):s=t[3];const d=u(s);return a(e.id,"VIRTUAL_MCP",d,n)}function V(i){const t=c.c(2),{org:o}=r();let n;t[0]!==o.id?(n={connectionId:l,orgId:o.id},t[0]=o.id,t[1]=n):n=t[1];const e=u(n);return I(o.id,"VIRTUAL_MCP",i??void 0,e)}function p(){const i=c.c(2),{org:t}=r();let o;i[0]!==t.id?(o={connectionId:l,orgId:t.id},i[0]=t.id,i[1]=o):o=i[1];const n=u(o);return C(t.id,"VIRTUAL_MCP",n)}export{p as a,m as b,V as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-4tHvFsCT.js";import{a5 as i}from"./index-DyoRyDg0.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aO as l,aP as p,aQ as n,aR as d,aS as h,z as b,r as o,aT as m,aU as f}from"./index-
|
|
1
|
+
import{aO as l,aP as p,aQ as n,aR as d,aS as h,z as b,r as o,aT as m,aU as f}from"./index-DyoRyDg0.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a5 as u,a8 as s}from"./index-DyoRyDg0.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ac as a,ad as c}from"./index-DyoRyDg0.js";function e(...r){return a(c(r))}export{e as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,r as V,j as i}from"./index-
|
|
1
|
+
import{c as Y,r as V,j as i}from"./index-DyoRyDg0.js";import{c as n}from"./utils-CDly9l2F.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as P,g as z,m as M,r as E,j as t,O as L,c as _,aM as A}from"./index-
|
|
1
|
+
import{u as P,g as z,m as M,r as E,j as t,O as L,c as _,aM as A}from"./index-DyoRyDg0.js";import{e as F}from"./constants-DeSBGDil.js";import{C as T}from"./collection-tab-C0EGq1kq.js";import{g as G,h as H}from"./use-connection-CdUUg5oM.js";import{B as w}from"./button-DyxB0Yk5.js";import{E as U}from"./empty-state-B1qLg3Wj.js";import{E as D,i as J}from"./error-boundary-BWYaX2Wu.js";import{P as y}from"./index-NuPnrQEp.js";import{B as V,a as q,b as Q,c as X}from"./breadcrumb-Ds3Lal_V.js";import{a as Y,b as Z}from"./use-binding-jnlj8haE.js";import{i as K}from"./Loading01-Bnk-9-nZ.js";import{s as ee}from"./RefreshCcw01-BjGY5EQM.js";import{a as te}from"./Settings02-BKH7FnCM.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-CWAiVtOh.js";import"./dropdown-menu-DJfLCcXj.js";import"./ChevronRight-YlJxRSER.js";import"./utils-CDly9l2F.js";import"./ArrowUp-CNNhUiSK.js";import"./Check-D0-doi3D.js";import"./Grid01-Hl_fTaOZ.js";import"./List-CziLidfU.js";import"./integration-icon-BRZY1p3G.js";import"./index-CkIIowTe.js";import"./view-mode-toggle-DFlygBbR.js";import"./table-BECdubXZ.js";import"./collection-search-B1sfCtHP.js";import"./SearchMd-B2tl0hgr.js";import"./input-BGIEfDaw.js";import"./card-Czo4WORA.js";import"./Copy01-CdI1uSIx.js";import"./DotsVertical-eKFCZgNz.js";import"./Edit01-BLqaLVsN.js";import"./use-list-state-C8dJBLRY.js";import"./avatar-BlXkFPmj.js";import"./useQuery-B0sG-lD7.js";import"./use-mobile-CZgmHxJy.js";import"./Trash01-DCp8kuDe.js";import"./empty-state-C70KsS8J.js";import"./Inbox01-DkILVHwB.js";import"./constants-Bo5G03e3.js";import"./alert-dialog-DZUHuYRj.js";import"./Plus-BsvHyKJ8.js";import"./layout-CiQVyOtU.js";import"./useMutation-BZJqJibi.js";import"./binder-Dm6uKx_q.js";function se({title:n,description:e,wellKnownMcp:o,imageSrc:r,onConnected:i}){const c=G(),{org:{slug:p}}=P(),{data:a}=z.useSession(),u=M(),[m,k]=E.useState(!1),s=async()=>{if(!(!o||!a?.user?.id)){k(!0);try{const d=await c.create.mutateAsync(o);i?.(d.id),u({to:"/$org/$project/mcps/$connectionId",params:{org:p,project:L,connectionId:d.id}})}finally{k(!1)}}},N=()=>{u({to:"/$org/$project/mcps",params:{org:p,project:L},search:{action:"create"}})};return t.jsx(U,{image:r?t.jsx("img",{src:r,alt:n,width:336,height:320,className:"max-w-full h-auto"}):null,title:n,description:e,actions:t.jsxs(t.Fragment,{children:[t.jsxs(w,{variant:"outline",onClick:s,disabled:m||!o,children:[o?.icon&&t.jsx("img",{src:o.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${o?.title||"MCP"}`]}),t.jsx(w,{variant:"outline",onClick:N,children:"Custom Connection"})]})})}function ie(n){const e=_.c(35),{bindingName:o,collectionName:r,title:i,emptyState:c,wellKnownMcp:p}=n,{org:a}=P(),u=H();let m;e[0]!==u||e[1]!==o?(m={connections:u,binding:o},e[0]=u,e[1]=o,e[2]=m):m=e[2];const s=Y(m)[0],N=Z(s);let d;if(e[3]!==r||e[4]!==N){let l;e[6]!==r?(l=$=>$.name.toLowerCase()===r.toLowerCase(),e[6]=r,e[7]=l):l=e[7],d=N.find(l),e[3]=r,e[4]=N,e[5]=d}else d=e[5];const I=d,[W,O]=E.useState(null),B=s&&I&&(s.id||W);let f;e[8]!==i?(f=t.jsx(y.Header,{children:t.jsx(y.Header.Left,{children:t.jsx(V,{children:t.jsx(q,{children:t.jsx(Q,{children:t.jsx(X,{children:i})})})})})}),e[8]=i,e[9]=f):f=e[9];let x;e[10]!==s||e[11]!==a||e[12]!==i?(x=l=>{const{error:$,resetError:R}=l;return 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(J,{className:"h-6 w-6 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("h3",{className:"text-lg font-medium",children:["Failed to load ",i.toLowerCase()]}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:$?.message||"Unable to connect to the server. Please check that it is running and accessible."})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs(w,{variant:"outline",onClick:R,children:[t.jsx(ee,{className:"size-4"}),"Try again"]}),s&&t.jsx(w,{variant:"outline",asChild:!0,children:t.jsxs(A,{to:"/$org/$project/mcps/$connectionId",params:{org:a.slug,project:L,connectionId:s.id},search:{tab:"settings"},children:[t.jsx(te,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=s,e[11]=a,e[12]=i,e[13]=x):x=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(K,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=S):S=e[14];let g;e[15]!==i?(g=i.toLowerCase(),e[15]=i,e[16]=g):g=e[16];let h;e[17]!==g?(h=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[S,t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Loading ",g,"..."]})]}),e[17]=g,e[18]=h):h=e[18];let j;e[19]!==I||e[20]!==s||e[21]!==c||e[22]!==a||e[23]!==B||e[24]!==p?(j=B?t.jsx(T,{connectionId:s.id,org:a.slug,activeCollection:I}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(se,{title:c.title,description:c.description,wellKnownMcp:p,imageSrc:c.imageSrc,onConnected:l=>{O(l)}})}),e[19]=I,e[20]=s,e[21]=c,e[22]=a,e[23]=B,e[24]=p,e[25]=j):j=e[25];let C;e[26]!==h||e[27]!==j?(C=t.jsx(E.Suspense,{fallback:h,children:j}),e[26]=h,e[27]=j,e[28]=C):C=e[28];let b;e[29]!==x||e[30]!==C?(b=t.jsx(y.Content,{children:t.jsx(D,{fallback:x,children:C})}),e[29]=x,e[30]=C,e[31]=b):b=e[31];let v;return e[32]!==b||e[33]!==f?(v=t.jsxs(y,{children:[f,b]}),e[32]=b,e[33]=f,e[34]=v):v=e[34],v}function Xe(){const n=_.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(ie,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Install MCP Studio to create and manage automated workflows with multiple steps and integrations."},wellKnownMcp:F()}),n[0]=e):e=n[0],e}export{Xe as default};
|
package/dist/client/index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>MCP Mesh</title>
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-DyoRyDg0.js"></script>
|
|
7
|
+
<link rel="stylesheet" crossorigin href="/assets/index-tYpHqvxs.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="root"></div>
|