@decocms/mesh 2.91.0 → 2.92.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-D3uMaIep.js → AlertCircle-JJC72vZb.js} +1 -1
- package/dist/client/assets/{AlertOctagon-D8xrBki-.js → AlertOctagon-BePtFogj.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BjqYsLvO.js → ArrowLeft-k2C8DNqg.js} +1 -1
- package/dist/client/assets/{ArrowUp-BZmoIrId.js → ArrowUp-DLQ7QWh3.js} +1 -1
- package/dist/client/assets/{Check-BezMXh3m.js → Check-DasQ02Pt.js} +1 -1
- package/dist/client/assets/{CheckCircle-BJs6jTra.js → CheckCircle-D2rEikZt.js} +1 -1
- package/dist/client/assets/{CheckDone01-B8_tfP98.js → CheckDone01-xt699EU5.js} +1 -1
- package/dist/client/assets/{ChevronDown-Cvn22peU.js → ChevronDown-CXmX6uao.js} +1 -1
- package/dist/client/assets/{ChevronRight-CTxl6bgR.js → ChevronRight-C8MbJ12p.js} +1 -1
- package/dist/client/assets/{Clock-0kD4NxnQ.js → Clock-ELqNgthV.js} +1 -1
- package/dist/client/assets/{Code01-BQDW5YjG.js → Code01--Str4RNC.js} +1 -1
- package/dist/client/assets/{Copy01---hH64QW.js → Copy01-CSlmSwxo.js} +1 -1
- package/dist/client/assets/{Dataflow03-Ewf19tYQ.js → Dataflow03-Mi1iz9aI.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-KHWDbLx3.js → DotsHorizontal-BcE8J5Jg.js} +1 -1
- package/dist/client/assets/{DotsVertical-CMwmj3Es.js → DotsVertical-ofMX73dF.js} +1 -1
- package/dist/client/assets/{Download01-D2v6tnjT.js → Download01-CL6BFuU_.js} +1 -1
- package/dist/client/assets/{Edit01-DLX_Q0on.js → Edit01-DUAWGRbh.js} +1 -1
- package/dist/client/assets/{Eye-DRhYa9c6.js → Eye-BJD4qjn-.js} +1 -1
- package/dist/client/assets/{File02-CJp6EwHF.js → File02-Drv5yiC9.js} +1 -1
- package/dist/client/assets/{File06-DVtDhdE5.js → File06-WW9xExV2.js} +1 -1
- package/dist/client/assets/{FilterLines-BcYSGfMN.js → FilterLines-8UEKXRkf.js} +1 -1
- package/dist/client/assets/{Grid01-CgGHrqe5.js → Grid01--OATQkZJ.js} +1 -1
- package/dist/client/assets/{Home02-uUB8Atfq.js → Home02-Dbir6bO2.js} +1 -1
- package/dist/client/assets/{Image01-C2cIbm7r.js → Image01-CgyI5nkV.js} +1 -1
- package/dist/client/assets/{Inbox01-De5dzagw.js → Inbox01-B_oX0JFP.js} +1 -1
- package/dist/client/assets/{InfoCircle-CWs-zdhv.js → InfoCircle-z50zmTtA.js} +1 -1
- package/dist/client/assets/{LinkExternal01-7UvZi8_7.js → LinkExternal01-DDOK_fb4.js} +1 -1
- package/dist/client/assets/{List-B1anaj6z.js → List-yKA0eAs5.js} +1 -1
- package/dist/client/assets/{Loading01-CLaVZz2q.js → Loading01-DRZlvyxz.js} +1 -1
- package/dist/client/assets/{Lock01-DQZtigfQ.js → Lock01-C6ECykLg.js} +1 -1
- package/dist/client/assets/{Pin01-DbMTghLG.js → Pin01-X-NeFRs0.js} +1 -1
- package/dist/client/assets/{Play-DifJQu9t.js → Play-Ip4e4iPg.js} +1 -1
- package/dist/client/assets/{Plus-BSoD06T5.js → Plus-CC39NL3J.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-vEyX2U13.js → RefreshCcw01-DLNfG0kq.js} +1 -1
- package/dist/client/assets/{SearchMd-C3imEkj_.js → SearchMd-DeE1CuYO.js} +1 -1
- package/dist/client/assets/{Settings01-D8Z_Og0d.js → Settings01-BkDqg-cd.js} +1 -1
- package/dist/client/assets/{Settings02-DgNG_ojd.js → Settings02-BDnoMGd3.js} +1 -1
- package/dist/client/assets/{Share07-hI7-H_19.js → Share07-D2GYYDSa.js} +1 -1
- package/dist/client/assets/{Terminal-DY1lkBQp.js → Terminal-tPGK5r2R.js} +1 -1
- package/dist/client/assets/{Tool01-0C3r9eV1.js → Tool01-C4GCFeYj.js} +1 -1
- package/dist/client/assets/{Trash01-DMOrN3jw.js → Trash01-ClvOR7-J.js} +1 -1
- package/dist/client/assets/{Upload01-BexbsGa1.js → Upload01-CLqgdOFg.js} +1 -1
- package/dist/client/assets/{Users03-BwVADaNJ.js → Users03-BBPNW1to.js} +1 -1
- package/dist/client/assets/{X-Bl4EbJn_.js → X-DOihyf8T.js} +1 -1
- package/dist/client/assets/{XClose-9BHLBZyJ.js → XClose-DyY50xHQ.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-bfNWF9f4.js → agent-connections-preview-CGAZnueN.js} +1 -1
- package/dist/client/assets/{agent-detail-C0LVwYuk.js → agent-detail-1JpljEp1.js} +1 -1
- package/dist/client/assets/{agents-Da7CoTZX.js → agents-DNuC31gP.js} +1 -1
- package/dist/client/assets/{alert-dialog-COW9KsrJ.js → alert-dialog-CuqoikJl.js} +1 -1
- package/dist/client/assets/{auth-catchall-Cx74TIV5.js → auth-catchall-CFCgnn3p.js} +1 -1
- package/dist/client/assets/{avatar-B3_biBMx.js → avatar-hzVi0qjF.js} +1 -1
- package/dist/client/assets/{badge-BdBlFaz2.js → badge-DH-S0O_Q.js} +1 -1
- package/dist/client/assets/{binder-C_nJEmPU.js → binder-C-pHXVqC.js} +1 -1
- package/dist/client/assets/{breadcrumb-CFvRp0LA.js → breadcrumb-BrBw6BX2.js} +1 -1
- package/dist/client/assets/{button-DjRH1lB9.js → button-BWGxpgkJ.js} +1 -1
- package/dist/client/assets/{card-Crky3Dgs.js → card-Bhm1MVMa.js} +1 -1
- package/dist/client/assets/{checkbox-Buxpr0H5.js → checkbox-Ckp13cwa.js} +1 -1
- package/dist/client/assets/{circle-alert-B1x_VZv1.js → circle-alert-Cj4iZl-S.js} +1 -1
- package/dist/client/assets/{collection-detail-hSjhUQb2.js → collection-detail-B0q1Y-N_.js} +1 -1
- package/dist/client/assets/{collection-search-Bznozec1.js → collection-search-CKSfWzNF.js} +1 -1
- package/dist/client/assets/{collection-tab-ETUYU_1h.js → collection-tab-Drvb07YK.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-vIBxhjD_.js → collection-table-wrapper-BcUmQdNo.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bsw5t_Dk.js → collection-tabs-B34yJHKx.js} +1 -1
- package/dist/client/assets/{command-BAunXmp4.js → command-C1CMAvm8.js} +1 -1
- package/dist/client/assets/{connect-r9AFxBWi.js → connect-AmadpHAm.js} +1 -1
- package/dist/client/assets/{connection-card-BDRzJeyM.js → connection-card-b1FSv2db.js} +1 -1
- package/dist/client/assets/{connection-detail-BdzqkQsY.js → connection-detail-BFIm0GWj.js} +1 -1
- package/dist/client/assets/{connections-Ba704Ay2.js → connections-pGtdRAS1.js} +1 -1
- package/dist/client/assets/constants-B5eYrhGm.js +1 -0
- package/dist/client/assets/{constants-BbV5_Gvn.js → constants-s3RNplRW.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CjDiPAzO.js → create-organization-dialog-CXD76U4c.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BdjSvU61.js → create-project-dialog-C3vXPC5a.js} +1 -1
- package/dist/client/assets/{dialog-Ci90OZB_.js → dialog-DyiKQ1dN.js} +1 -1
- package/dist/client/assets/{dropdown-menu-D0d6DveS.js → dropdown-menu-BLJMVu3S.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Cde8Zw72.js → dynamic-plugin-layout-CNFL0p6G.js} +1 -1
- package/dist/client/assets/{empty-state-B1u2cnEd.js → empty-state-s7DkpkR3.js} +1 -1
- package/dist/client/assets/{empty-state-Db26F2g6.js → empty-state-ydiNmUyo.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CCksRmt4.js → env-vars-editor-BFYFntBV.js} +1 -1
- package/dist/client/assets/{error-boundary-DAtnvYEv.js → error-boundary-WjVfBMr5.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C1ap4UAi.js → extract-connection-data-DDtK-K2K.js} +1 -1
- package/dist/client/assets/{file-browser-vsIHIoyy.js → file-browser-icsCM2nI.js} +2 -2
- package/dist/client/assets/{form-DwpSVrp-.js → form-DqFRLt5-.js} +1 -1
- package/dist/client/assets/{grid-view-B0rAMSSu.js → grid-view-DcgYPGmF.js} +1 -1
- package/dist/client/assets/{home-BvOOt5Jz.js → home-BDgjd6LW.js} +1 -1
- package/dist/client/assets/{index-BWt7IZ6Z.js → index-B-F2n-yE.js} +71 -71
- package/dist/client/assets/{index-DF5Pmq_t.js → index-BWM3aCTf.js} +1 -1
- package/dist/client/assets/{index-DirGeY-G.js → index-BxqG7j4p.js} +1 -1
- package/dist/client/assets/{index-DA6l4j1R.js → index-CAzID6nM.js} +1 -1
- package/dist/client/assets/{index-CGRyA9w8.js → index-D2OJmb41.js} +2 -2
- package/dist/client/assets/{index-C0Cm9UFB.js → index-DKu3BTHr.js} +1 -1
- package/dist/client/assets/{index-CnWGXAB7.js → index-DPV0Kjka.js} +1 -1
- package/dist/client/assets/index-kmnk6Wke.js +25 -0
- package/dist/client/assets/{index-Bs-0nDVT.js → index-qHpBvkX3.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bz2qGnnL.js → infiniteQueryObserver-CYo5p2mW.js} +1 -1
- package/dist/client/assets/{input-BN8tWROr.js → input-DY8rI26k.js} +1 -1
- package/dist/client/assets/{integration-icon-C_JseQQS.js → integration-icon-Djimfwe7.js} +1 -1
- package/dist/client/assets/{label-DgY9ov9i.js → label-DGKCdGCq.js} +1 -1
- package/dist/client/assets/{layout-CBw836gt.js → layout-D7GhMvyu.js} +1 -1
- package/dist/client/assets/{localstorage-keys-nexyeweP.js → localstorage-keys-o2QWBUV_.js} +1 -1
- package/dist/client/assets/{login-CiVf3zef.js → login-BDSIBo7F.js} +1 -1
- package/dist/client/assets/{mcp-oauth-B6wyAMx4.js → mcp-oauth-rizkUF8Q.js} +1 -1
- package/dist/client/assets/{mcp-server-card-OYdKEPTN.js → mcp-server-card-C2r9r92M.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-CuJRzZD8.js → mcp-server-detail-Cth4vkoY.js} +2 -2
- package/dist/client/assets/{members-DkeJcxqi.js → members-DfDVvOtu.js} +1 -1
- package/dist/client/assets/{monitoring-egwPLjp0.js → monitoring-BHNemAYu.js} +1 -1
- package/dist/client/assets/{oauth-callback-CiwqJVg6.js → oauth-callback-B5nj0tZI.js} +1 -1
- package/dist/client/assets/{page-BmoxBndy.js → page-C_alf65j.js} +1 -1
- package/dist/client/assets/{page-YgKzJWRP.js → page-k4P37DmW.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Cg6QQuTW.js → plugin-empty-state-DS7VtA4o.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Bm8j6Yah.js → plugin-empty-state-Hqc03LAd.js} +1 -1
- package/dist/client/assets/{plugin-header-Za0zOP8_.js → plugin-header-DDDEP8y3.js} +1 -1
- package/dist/client/assets/{plugin-header-BiBPfNm9.js → plugin-header-d7QtObLH.js} +1 -1
- package/dist/client/assets/{popover-DBISvNt-.js → popover-WLs8_6tN.js} +1 -1
- package/dist/client/assets/{project-layout-wSllqfdZ.js → project-layout-C1SOGBmg.js} +1 -1
- package/dist/client/assets/{project-settings-B34SlsnE.js → project-settings-BbvorSrv.js} +1 -1
- package/dist/client/assets/{projects-list-KQgHFl7X.js → projects-list-DZXbxVfM.js} +1 -1
- package/dist/client/assets/{registry-utils-D9WTBcQy.js → registry-utils-DfkqiH_C.js} +1 -1
- package/dist/client/assets/{resizable-J8Aer48-.js → resizable-PK-tTV98.js} +1 -1
- package/dist/client/assets/{scroll-area-DMcUXGPI.js → scroll-area-PZo5Sdsi.js} +1 -1
- package/dist/client/assets/{select-CMUKnHD5.js → select-DdmubwP4.js} +1 -1
- package/dist/client/assets/{shell-layout-CSqxCJ3A.js → shell-layout-CO9iFUbu.js} +3 -3
- package/dist/client/assets/{spinner-BWmTCne_.js → spinner-C6Kek22_.js} +1 -1
- package/dist/client/assets/{store-invite-DQVzahJ1.js → store-invite-CMnOXSoG.js} +1 -1
- package/dist/client/assets/{switch-C-ipB4wM.js → switch-Bauhw3PB.js} +1 -1
- package/dist/client/assets/{table-CTqJjnnx.js → table-CAwXH5yg.js} +1 -1
- package/dist/client/assets/{tasks-DQVfyRle.js → tasks-DoH-9jzm.js} +1 -1
- package/dist/client/assets/{textarea-BqR62h0i.js → textarea-CQifMwqp.js} +1 -1
- package/dist/client/assets/{tools-list-1sYuTCQT.js → tools-list-C8K0MnkZ.js} +1 -1
- package/dist/client/assets/{topbar-portal-uY9HhOr1.js → topbar-portal-BGXc00U1.js} +1 -1
- package/dist/client/assets/{typewriter-title-rlX4QtWe.js → typewriter-title-D2-4SXoh.js} +1 -1
- package/dist/client/assets/{use-binding-CBFm-KJH.js → use-binding-_PfyiGKt.js} +1 -1
- package/dist/client/assets/{use-connection-TBbvY88o.js → use-connection-Dh4xEExr.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DkEEEEVB.js → use-create-virtual-mcp-BrsbPXXr.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-B3MDOzNO.js → use-deco-chat-open-BrNHyrAZ.js} +2 -2
- package/dist/client/assets/{use-install-from-registry-CanzeI6m.js → use-install-from-registry-BlssUIHC.js} +1 -1
- package/dist/client/assets/{use-list-state-CB60FBzS.js → use-list-state-Bqy1WBOH.js} +1 -1
- package/dist/client/assets/{use-llm-D5XtsGft.js → use-llm-1k_LFVx2.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DdiPSE2K.js → use-mcp-prompts-BzwsQRQF.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DreUeH6b.js → use-mcp-tools-sqAO9fdM.js} +1 -1
- package/dist/client/assets/{use-mobile-C8iqPQJB.js → use-mobile-Bxt0U9PS.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BjgTdt4t.js → use-organization-settings-DRFq3ID_.js} +1 -1
- package/dist/client/assets/{use-project-kGpYxwPL.js → use-project-HH64ZG0F.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-C7Kk1mBJ.js → use-virtual-mcp-DujRGKVj.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-lQA8Fm-H.js +1 -0
- package/dist/client/assets/{useMutation-Bm-DrAfF.js → useMutation-2knTMSjw.js} +1 -1
- package/dist/client/assets/useQuery-tpcwpEeR.js +1 -0
- package/dist/client/assets/{view-mode-toggle-a-_OzLvE.js → view-mode-toggle-Pd-BwkrK.js} +1 -1
- package/dist/client/assets/{workflow-Q7ys8Pux.js → workflow-DnDe_O3R.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +182 -182
- package/dist/server/server.js +163 -163
- package/package.json +1 -1
- package/dist/client/assets/constants-B-3MHVrP.js +0 -1
- package/dist/client/assets/index-B6v49bFc.js +0 -25
- package/dist/client/assets/useInfiniteQuery-XNPJlDVU.js +0 -1
- package/dist/client/assets/useQuery-DM_qidpz.js +0 -1
|
@@ -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-D2OJmb41.js";import{u as m}from"./useQuery-tpcwpEeR.js";import{K as c}from"./constants-s3RNplRW.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-D2OJmb41.js";import{u as q}from"./useQuery-tpcwpEeR.js";import{u as C}from"./useMutation-2knTMSjw.js";import{K as T}from"./constants-s3RNplRW.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-D2OJmb41.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-D2OJmb41.js";import{u as _}from"./useMutation-2knTMSjw.js";import{a as p,u as A}from"./constants-s3RNplRW.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-D2OJmb41.js";import{u as y}from"./useQuery-tpcwpEeR.js";import{u as f,a}from"./constants-s3RNplRW.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-D2OJmb41.js";import{e as a,u as C,d as I}from"./use-connection-Dh4xEExr.js";import{a as l,u}from"./constants-s3RNplRW.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-CYo5p2mW.js";import{a5 as i}from"./index-D2OJmb41.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aM as l,aN as p,aO as n,aP as d,aQ as h,z as b,r as o,aR as m,aS as f}from"./index-
|
|
1
|
+
import{aM as l,aN as p,aO as n,aP as d,aQ as h,z as b,r as o,aR as m,aS as f}from"./index-D2OJmb41.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-D2OJmb41.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,r as V,j as i}from"./index-
|
|
1
|
+
import{c as Y,r as V,j as i}from"./index-D2OJmb41.js";import{c as n}from"./button-BWGxpgkJ.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 w,g as H,m as q,r as $,j as t,O as B,c as k,aK as G,z as Q,K as W,t as A}from"./index-
|
|
1
|
+
import{u as w,g as H,m as q,r as $,j as t,O as B,c as k,aK as G,z as Q,K as W,t as A}from"./index-D2OJmb41.js";import{a as J,u as V,e as Y}from"./constants-s3RNplRW.js";import{C as X}from"./collection-tab-Drvb07YK.js";import{g as Z,h as ee}from"./use-connection-Dh4xEExr.js";import{B as I}from"./button-BWGxpgkJ.js";import{E as R}from"./empty-state-s7DkpkR3.js";import{E as te,i as ne}from"./error-boundary-WjVfBMr5.js";import{P as x}from"./index-BxqG7j4p.js";import{B as F,a as z,b as M,c as T}from"./breadcrumb-BrBw6BX2.js";import{a as se,b as ie}from"./use-binding-_PfyiGKt.js";import{i as oe}from"./Loading01-DRZlvyxz.js";import{s as le}from"./RefreshCcw01-DLNfG0kq.js";import{a as re}from"./Settings02-BDnoMGd3.js";import{u as ce}from"./useMutation-2knTMSjw.js";import{e as ae}from"./Dataflow03-Mi1iz9aI.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-BcUmQdNo.js";import"./dropdown-menu-BLJMVu3S.js";import"./ChevronRight-C8MbJ12p.js";import"./ArrowUp-DLQ7QWh3.js";import"./Check-DasQ02Pt.js";import"./Grid01--OATQkZJ.js";import"./List-yKA0eAs5.js";import"./integration-icon-Djimfwe7.js";import"./index-BWM3aCTf.js";import"./view-mode-toggle-Pd-BwkrK.js";import"./table-CAwXH5yg.js";import"./collection-search-CKSfWzNF.js";import"./SearchMd-DeE1CuYO.js";import"./input-DY8rI26k.js";import"./card-Bhm1MVMa.js";import"./Copy01-CSlmSwxo.js";import"./DotsVertical-ofMX73dF.js";import"./Edit01-DUAWGRbh.js";import"./Eye-BJD4qjn-.js";import"./Trash01-ClvOR7-J.js";import"./empty-state-ydiNmUyo.js";import"./Inbox01-B_oX0JFP.js";import"./use-list-state-Bqy1WBOH.js";import"./avatar-hzVi0qjF.js";import"./useQuery-tpcwpEeR.js";import"./use-mobile-Bxt0U9PS.js";import"./constants-B5eYrhGm.js";import"./alert-dialog-CuqoikJl.js";import"./Plus-CC39NL3J.js";import"./layout-D7GhMvyu.js";import"./binder-C-pHXVqC.js";function me({title:n,description:e,wellKnownMcp:o,imageSrc:c,onConnected:i}){const a=Z(),{org:{slug:s}}=w(),{data:r}=H.useSession(),m=q(),[d,p]=$.useState(!1),l=async()=>{if(!(!o||!r?.user?.id)){p(!0);try{const f=await a.create.mutateAsync(o);i?.(f.id),m({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{m({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:c?t.jsx("img",{src:c,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(I,{variant:"outline",onClick:l,disabled:d||!o,children:[o?.icon&&t.jsx("img",{src:o.icon,alt:"",className:"size-4"}),d?"Installing...":`Install ${o?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function de(n){const e=k.c(35),{bindingName:o,collectionName:c,title:i,emptyState:a,wellKnownMcp:s}=n,{org:r}=w(),m=ee();let d;e[0]!==m||e[1]!==o?(d={connections:m,binding:o},e[0]=m,e[1]=o,e[2]=d):d=e[2];const l=se(d)[0],u=ie(l);let f;if(e[3]!==c||e[4]!==u){let g;e[6]!==c?(g=L=>L.name.toLowerCase()===c.toLowerCase(),e[6]=c,e[7]=g):g=e[7],f=u.find(g),e[3]=c,e[4]=u,e[5]=f}else f=e[5];const E=f,[K,U]=$.useState(null),_=l&&E&&(l.id||K);let j;e[8]!==i?(j=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:i})})})})})}),e[8]=i,e[9]=j):j=e[9];let h;e[10]!==l||e[11]!==r||e[12]!==i?(h=g=>{const{error:L,resetError:D}=g;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(ne,{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:L?.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(I,{variant:"outline",onClick:D,children:[t.jsx(le,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(G,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(re,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=i,e[13]=h):h=e[13];let S;e[14]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(oe,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=S):S=e[14];let b;e[15]!==i?(b=i.toLowerCase(),e[15]=i,e[16]=b):b=e[16];let C;e[17]!==b?(C=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 ",b,"..."]})]}),e[17]=b,e[18]=C):C=e[18];let y;e[19]!==E||e[20]!==l||e[21]!==a||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:E}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(me,{title:a.title,description:a.description,wellKnownMcp:s,imageSrc:a.imageSrc,onConnected:g=>{U(g)}})}),e[19]=E,e[20]=l,e[21]=a,e[22]=r,e[23]=_,e[24]=s,e[25]=y):y=e[25];let P;e[26]!==C||e[27]!==y?(P=t.jsx($.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let N;e[29]!==h||e[30]!==P?(N=t.jsx(x.Content,{children:t.jsx(te,{fallback:h,children:P})}),e[29]=h,e[30]=P,e[31]=N):N=e[31];let v;return e[32]!==N||e[33]!==j?(v=t.jsxs(x,{children:[j,N]}),e[32]=N,e[33]=j,e[34]=v):v=e[34],v}function ue(){const n=k.c(12),{org:e,project:o}=w(),c=Q();let i;n[0]!==e.id?(i={connectionId:J,orgId:e.id},n[0]=e.id,n[1]=i):i=n[1];const a=V(i);let s;n[2]!==a||n[3]!==o?(s=async p=>{const l=o.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await a.callTool({name:"PROJECT_UPDATE",arguments:{projectId:o.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=a,n[3]=o,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==o||n[7]!==c?(r=()=>{c.invalidateQueries({queryKey:W.project(e.id,o.slug)}),c.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=o,n[7]=c,n[8]=r):r=n[8];let m;return n[9]!==s||n[10]!==r?(m={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=m):m=n[11],ce(m)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=k.c(12),{pluginId:o,title:c,description:i,icon:a}=n,s=ue();let r;e[0]!==s||e[1]!==o?(r=async()=>{try{await s.mutateAsync(o),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=o,e[2]=r):r=e[2];const m=r,d=a??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==m||e[5]!==p?(l=t.jsx(I,{onClick:m,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=m,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==i||e[8]!==d||e[9]!==l||e[10]!==c?(u=t.jsx(R,{image:d,title:c,description:i,actions:l}),e[7]=i,e[8]=d,e[9]=l,e[10]=c,e[11]=u):u=e[11],u}const O="workflows";function ct(){const n=k.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let a;n[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(z,{children:t.jsx(M,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=a):a=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[a,t.jsx(x.Content,{children:t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(fe,{pluginId:O,title:"Enable Workflows",description:"Automate multi-step processes by enabling the Workflows plugin. Once enabled you can create, run, and monitor workflows.",icon:t.jsx("div",{className:"bg-muted p-4 rounded-full",children:t.jsx(ae,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let i;return n[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(de,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=i):i=n[2],i}export{ct as default};
|
package/dist/client/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-D2OJmb41.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-tLM0E_qV.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|