@decocms/mesh 2.109.0 → 2.110.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-BTG7SkIE.js → AlertCircle-54XkBG75.js} +1 -1
- package/dist/client/assets/{AlertOctagon-DYhTqihQ.js → AlertOctagon-D-n2_Ity.js} +1 -1
- package/dist/client/assets/{AlertTriangle-BMGMq36M.js → AlertTriangle-ZoXqH5xx.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BnTFWkDF.js → ArrowLeft-CYxjro91.js} +1 -1
- package/dist/client/assets/{ArrowUp-DyxBaaUh.js → ArrowUp-DRhMKIK5.js} +1 -1
- package/dist/client/assets/{Check-Twncsx2J.js → Check-BHtow5c6.js} +1 -1
- package/dist/client/assets/{CheckCircle-B9yMcclT.js → CheckCircle-DaStCoYU.js} +1 -1
- package/dist/client/assets/{CheckDone01-5Ey_F_TB.js → CheckDone01-BkzpeEp8.js} +1 -1
- package/dist/client/assets/{ChevronDown-DRFuBDK4.js → ChevronDown-DIu5de-X.js} +1 -1
- package/dist/client/assets/{ChevronRight-CK4GlTKY.js → ChevronRight-Ds0FvHp6.js} +1 -1
- package/dist/client/assets/{Clock-DQ0IbXhE.js → Clock-CwhFkG9v.js} +1 -1
- package/dist/client/assets/{Code01-CRg-SkZm.js → Code01-CfpShGlI.js} +1 -1
- package/dist/client/assets/{Container-BChLeS3s.js → Container-DZaD5nKa.js} +1 -1
- package/dist/client/assets/{Copy01-D9X-eXOx.js → Copy01-qW8IV1YX.js} +1 -1
- package/dist/client/assets/{Dataflow03-Br20xBcq.js → Dataflow03-1bin_Ob0.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CuVly-vS.js → DotsHorizontal-BU6_dxo0.js} +1 -1
- package/dist/client/assets/{DotsVertical-DZrYpBGP.js → DotsVertical-BRM5SG1z.js} +1 -1
- package/dist/client/assets/{Download01-CQU0OinT.js → Download01-C-bkrJJ_.js} +1 -1
- package/dist/client/assets/{Edit01-DAlsOQRJ.js → Edit01-BFKPZm51.js} +1 -1
- package/dist/client/assets/{Eye-BFoh1Im6.js → Eye-Ci58n8nv.js} +1 -1
- package/dist/client/assets/{File02-C7wAMy8R.js → File02-nqEm0je3.js} +1 -1
- package/dist/client/assets/{File06-CvVxiO3C.js → File06-BrnW1ZQ1.js} +1 -1
- package/dist/client/assets/{FilterLines-BIFUP_x_.js → FilterLines-PVC9VLDF.js} +1 -1
- package/dist/client/assets/{Globe01-CwV6iRub.js → Globe01-7CpfXn5N.js} +1 -1
- package/dist/client/assets/{Globe02-DAPNmmeF.js → Globe02-B27PYM5b.js} +1 -1
- package/dist/client/assets/{Grid01-DhcsAdBg.js → Grid01-CCE4xs16.js} +1 -1
- package/dist/client/assets/{Home02-E5eZOwbf.js → Home02-BfUb9zF_.js} +1 -1
- package/dist/client/assets/{Image01-s6I8DvoN.js → Image01-CbvGPZGr.js} +1 -1
- package/dist/client/assets/{Inbox01-B9su4ewM.js → Inbox01-B8fBrw9y.js} +1 -1
- package/dist/client/assets/{InfoCircle-DIUcjPMz.js → InfoCircle-7KhXK-2T.js} +1 -1
- package/dist/client/assets/{Key01-Cp47SUgU.js → Key01-ZjbbdeBE.js} +1 -1
- package/dist/client/assets/{LinkExternal01-QERiUkx9.js → LinkExternal01-C6wGiaKd.js} +1 -1
- package/dist/client/assets/{List-hgWOcs2s.js → List-CnAhQJaO.js} +1 -1
- package/dist/client/assets/{Loading01-B3VITid1.js → Loading01-CQxnYIyy.js} +1 -1
- package/dist/client/assets/{Lock01-DzL0-wO5.js → Lock01-BXsNu63z.js} +1 -1
- package/dist/client/assets/{Pin01-Bo0Wv0-G.js → Pin01-CQimXkz7.js} +1 -1
- package/dist/client/assets/{Play-DPPAwpQc.js → Play-CCFAjpE1.js} +1 -1
- package/dist/client/assets/{Plus-flqXS_7c.js → Plus-ldykr1Qs.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BAqmqLli.js → RefreshCcw01-DH9n4JeZ.js} +1 -1
- package/dist/client/assets/{RefreshCw01-T4CnUx-i.js → RefreshCw01-DsWpmHoM.js} +1 -1
- package/dist/client/assets/{Save01-DkeiVIoO.js → Save01-DYGYdg7I.js} +1 -1
- package/dist/client/assets/{SearchMd-CSI-x5Ag.js → SearchMd-CJBYDik4.js} +1 -1
- package/dist/client/assets/{Settings01-D6cOaU0s.js → Settings01-DZTt6EoC.js} +1 -1
- package/dist/client/assets/{Settings02-DefIRfsZ.js → Settings02-By12van4.js} +1 -1
- package/dist/client/assets/{Share07-BatXimVn.js → Share07-lImhPS0j.js} +1 -1
- package/dist/client/assets/{Terminal-gVdepVY2.js → Terminal-DVM8ToJY.js} +1 -1
- package/dist/client/assets/{Tool01-DpcLow0b.js → Tool01-CKCbyA0K.js} +1 -1
- package/dist/client/assets/{Trash01-DJ3WnIqi.js → Trash01-DTuEjPqc.js} +1 -1
- package/dist/client/assets/{Upload01-wEAZac_6.js → Upload01-CbgKMs6Z.js} +1 -1
- package/dist/client/assets/{Users03-D9j8cs_f.js → Users03-Bn4RTBQO.js} +1 -1
- package/dist/client/assets/{X-CYtFcR8E.js → X-PXGrxqUi.js} +1 -1
- package/dist/client/assets/{XCircle-DAsMwRtR.js → XCircle-DkU1KZH1.js} +1 -1
- package/dist/client/assets/{XClose-B9SXGArQ.js → XClose-CwEytWmM.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-CZgqs_sQ.js → agent-connections-preview-gRx2v-zj.js} +1 -1
- package/dist/client/assets/{agent-detail-BL9109In.js → agent-detail-xJqhPPyM.js} +1 -1
- package/dist/client/assets/{agents-Cd9beoj8.js → agents-U0juIVTU.js} +1 -1
- package/dist/client/assets/alert-dialog-DeTFKcxV.js +7 -0
- package/dist/client/assets/{auth-catchall-DMX6SpeC.js → auth-catchall-BGozAjlz.js} +1 -1
- package/dist/client/assets/{avatar-C7PBbtcy.js → avatar-BwRAYU0T.js} +1 -1
- package/dist/client/assets/{badge-zET6KpjD.js → badge-D7RdE5x4.js} +1 -1
- package/dist/client/assets/{binder-DsvBx_9P.js → binder-D1ZOF1Sc.js} +1 -1
- package/dist/client/assets/{breadcrumb-BQdkR1kY.js → breadcrumb-C8b5zMor.js} +1 -1
- package/dist/client/assets/{button-B1-7VHy5.js → button-B1_AjrAy.js} +1 -1
- package/dist/client/assets/{card-CUl7yMSH.js → card-CuDdPQFh.js} +1 -1
- package/dist/client/assets/{checkbox-Ycppn1KJ.js → checkbox-BAHzYzRq.js} +1 -1
- package/dist/client/assets/{circle-alert-m27psUsB.js → circle-alert-D8AbrLxa.js} +1 -1
- package/dist/client/assets/{collection-detail-DqVfmV5V.js → collection-detail-Dy_G4wsA.js} +1 -1
- package/dist/client/assets/{collection-tab-B0vxyNPO.js → collection-tab-aDh_bgum.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CiVHtKfG.js → collection-table-wrapper-7diw-YMI.js} +1 -1
- package/dist/client/assets/{collection-tabs-BHSqqtem.js → collection-tabs-CR2V6cwH.js} +1 -1
- package/dist/client/assets/{command-DXpfq2KQ.js → command-CgyAO0Ne.js} +1 -1
- package/dist/client/assets/{connect-CqDaPp1I.js → connect-tVhvROi8.js} +1 -1
- package/dist/client/assets/{connection-card-QXC-dXAI.js → connection-card-Cg4aLOaW.js} +1 -1
- package/dist/client/assets/{connection-detail-xTLY0OXk.js → connection-detail-CPywuZSh.js} +1 -1
- package/dist/client/assets/{connections-BwW-ERBP.js → connections-CPTTerhe.js} +1 -1
- package/dist/client/assets/{constants-tFX1afYz.js → constants-D3TKhQyR.js} +1 -1
- package/dist/client/assets/constants-DfKBjJcd.js +1 -0
- package/dist/client/assets/{create-organization-dialog-C9bqisoB.js → create-organization-dialog-C5Cn0159.js} +1 -1
- package/dist/client/assets/{create-project-dialog-CQfm9GiD.js → create-project-dialog-CbnOarMk.js} +1 -1
- package/dist/client/assets/{dialog-sGMzpzJR.js → dialog-BIx4eChJ.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BJG-AeRv.js → dropdown-menu-Bqe_ZQT7.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-31p8BEwY.js → dynamic-plugin-layout-daiqbOX4.js} +1 -1
- package/dist/client/assets/{empty-state-DDDsL_jY.js → empty-state-3DPCxrDd.js} +1 -1
- package/dist/client/assets/{empty-state-rhTOCE1V.js → empty-state-BRTEyQic.js} +1 -1
- package/dist/client/assets/{env-vars-editor-BStHrTds.js → env-vars-editor-BnFnFKjL.js} +1 -1
- package/dist/client/assets/{error-boundary-D1ilYYxc.js → error-boundary-D3lg8C_F.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bea8jdyv.js → extract-connection-data-D-KC8N1g.js} +1 -1
- package/dist/client/assets/{file-browser-Bi4H9hqm.js → file-browser-DYQzip2l.js} +2 -2
- package/dist/client/assets/{form-DhN7T_ed.js → form-CSMGXcSP.js} +1 -1
- package/dist/client/assets/{grid-view-Dvjf96cg.js → grid-view-CvriK_Te.js} +1 -1
- package/dist/client/assets/{home-Cl_di1hc.js → home-BHmXDNE_.js} +1 -1
- package/dist/client/assets/{index-C_KYsx1n.js → index-BEXpTjUJ.js} +6 -6
- package/dist/client/assets/{index-3iOmRpwp.js → index-BoIFTJw3.js} +1 -1
- package/dist/client/assets/{index-BfgRaEZs.js → index-CEEGRjv-.js} +1 -1
- package/dist/client/assets/{index-eN5WPehG.js → index-D0P8wRBl.js} +1 -1
- package/dist/client/assets/{index-ChGa282z.js → index-D291fSpc.js} +1 -1
- package/dist/client/assets/{index-DZj3EVeo.js → index-DGQeUY5q.js} +1 -1
- package/dist/client/assets/{index-Dzn_GLVS.js → index-DWPOfnC9.js} +1 -1
- package/dist/client/assets/{index-45Kg6aLu.js → index-DXIsw0zh.js} +3 -3
- package/dist/client/assets/{index-BQJqxhJO.js → index-PQ5Y9l5r.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DQBlV4K7.js → infiniteQueryObserver-BEZRxvfD.js} +1 -1
- package/dist/client/assets/{input-u2QVvm6o.js → input-CBsHg1ZU.js} +1 -1
- package/dist/client/assets/{integration-icon-BY0sSmsG.js → integration-icon-B6mCYbtH.js} +1 -1
- package/dist/client/assets/{label-BuBm6LTc.js → label-BAn78i4V.js} +1 -1
- package/dist/client/assets/{layout-BzQJfQX5.js → layout-CJ8IA4Pt.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DV5O1bxJ.js → localstorage-keys-5bqIWFww.js} +1 -1
- package/dist/client/assets/{login-vAvPpURH.js → login-W6QtfXRU.js} +1 -1
- package/dist/client/assets/{markdown-BJdEYtml.js → markdown-CGk5zbs1.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DmWivpL5.js → mcp-oauth-CZMbNN44.js} +1 -1
- package/dist/client/assets/mcp-server-card-e0XUR5Yq.js +1 -0
- package/dist/client/assets/{mcp-server-detail-CqMu9AFr.js → mcp-server-detail-Caq-098C.js} +2 -2
- package/dist/client/assets/{members-BX2PMK8N.js → members-zrxPuh2o.js} +1 -1
- package/dist/client/assets/{monitoring-BMu_SNHP.js → monitoring-_ny0UhM9.js} +2 -2
- package/dist/client/assets/{monitoring-dashboard-edit-CwKMR-h8.js → monitoring-dashboard-edit-DRWSHAcl.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-bzXxHOyH.js → monitoring-dashboard-view-Dg5Q-4l_.js} +1 -1
- package/dist/client/assets/{oauth-callback-WRpc6qbg.js → oauth-callback-DF4NcQuR.js} +1 -1
- package/dist/client/assets/page-B6wNBPH1.js +1 -0
- package/dist/client/assets/{page-_Vi7DPpw.js → page-CuOig4S9.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B_zjYcay.js → plugin-empty-state-BU6c0L07.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DvPlpthq.js → plugin-empty-state-DmaS8xBx.js} +1 -1
- package/dist/client/assets/{plugin-header-DfmvvFYa.js → plugin-header-Dj0RMbq4.js} +1 -1
- package/dist/client/assets/{plugin-header-BJbnfrfC.js → plugin-header-DnM-ONcb.js} +1 -1
- package/dist/client/assets/{popover-HfYRFN5H.js → popover-Bb6R9icK.js} +1 -1
- package/dist/client/assets/{project-layout-DWhu_REh.js → project-layout-Dn_PaFa7.js} +1 -1
- package/dist/client/assets/{project-settings-BCgZRUOC.js → project-settings-C1t3TKB3.js} +1 -1
- package/dist/client/assets/{projects-list-BgwSgFHH.js → projects-list-DwR0s7rf.js} +1 -1
- package/dist/client/assets/{readme-viewer-DuiAklr2.js → readme-viewer-Dw7Qf_Tx.js} +1 -1
- package/dist/client/assets/registry-layout-JBbhTkeO.js +5 -0
- package/dist/client/assets/registry-utils-CqH2sLA9.js +1 -0
- package/dist/client/assets/{reports-layout-DrnrOsfm.js → reports-layout-CmFSnl69.js} +2 -2
- package/dist/client/assets/{reset-password-DQuuf3hj.js → reset-password-CVTGYB35.js} +1 -1
- package/dist/client/assets/{resizable-C5yHp-8Z.js → resizable-CTqqQjcd.js} +1 -1
- package/dist/client/assets/{save-actions-B4sDLlOL.js → save-actions-CwdkcgkS.js} +1 -1
- package/dist/client/assets/{scroll-area-Ci9L6Qi1.js → scroll-area-CchW-N3-.js} +1 -1
- package/dist/client/assets/{select-0SgtyZSO.js → select-Dtkbt4-O.js} +1 -1
- package/dist/client/assets/{shell-layout-qKn05A_i.js → shell-layout-eLdU35ux.js} +3 -3
- package/dist/client/assets/{spinner-Ccp4rHkD.js → spinner-CQv4OdiY.js} +1 -1
- package/dist/client/assets/{store-invite-VAIQ0qYN.js → store-invite-D-J92Dqo.js} +1 -1
- package/dist/client/assets/{switch-BAkn60iQ.js → switch-RGSyl6UC.js} +1 -1
- package/dist/client/assets/{table-GP96KEc-.js → table-D_QygT6-.js} +1 -1
- package/dist/client/assets/{tasks-DWXha9ce.js → tasks-CYirgWP_.js} +1 -1
- package/dist/client/assets/{textarea-CcWPifLG.js → textarea-Bs1SDhbD.js} +1 -1
- package/dist/client/assets/{time-range-picker-B8TAeOyr.js → time-range-picker-9QegZlTC.js} +1 -1
- package/dist/client/assets/{toggle-group-CVJLBTo7.js → toggle-group-BMOUBfIJ.js} +1 -1
- package/dist/client/assets/{tools-list-3dr1HVBB.js → tools-list-B0vbhECW.js} +1 -1
- package/dist/client/assets/{tooltip-C1FsdbX7.js → tooltip-Dp5lhZb-.js} +1 -1
- package/dist/client/assets/{topbar-portal-DnuubJJg.js → topbar-portal-BMMpyuIo.js} +1 -1
- package/dist/client/assets/{typewriter-title-qDDHjvIc.js → typewriter-title-C_l4tadT.js} +1 -1
- package/dist/client/assets/{use-binding-Bj1WNTF6.js → use-binding-CCMbm9JJ.js} +1 -1
- package/dist/client/assets/{use-connection-9Baq0dyu.js → use-connection-BQuQwDk4.js} +1 -1
- package/dist/client/assets/{use-copy-Dntr3tOT.js → use-copy-B35KQJbq.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bjkj0KGk.js → use-create-virtual-mcp-CExHv6Kc.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-ChcY3dml.js → use-deco-chat-open-XtGRSas5.js} +6 -6
- package/dist/client/assets/{use-install-from-registry-CK6pulyz.js → use-install-from-registry-szNBcx44.js} +1 -1
- package/dist/client/assets/{use-list-state-CSyX28S5.js → use-list-state-qVi7m5eK.js} +1 -1
- package/dist/client/assets/{use-llm-DkpnMPOg.js → use-llm-DjuAxzNV.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-0RIhBw0D.js → use-mcp-prompts-BVHx-kiG.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B1i5V7kV.js → use-mcp-tools-DqcNzzRD.js} +1 -1
- package/dist/client/assets/{use-mobile-5ueA37BO.js → use-mobile-DIAoFlrU.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CqVxq31T.js → use-organization-settings-W2sWkYV6.js} +1 -1
- package/dist/client/assets/{use-project-R6SuPOGJ.js → use-project-gbXgodP7.js} +1 -1
- package/dist/client/assets/{use-view-mode-BD_mLg6M.js → use-view-mode-BBke-t6c.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BhTjSJtU.js → use-virtual-mcp-DaDbSDv1.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-1kxc2B4E.js +1 -0
- package/dist/client/assets/{useMutation-ChH-SNuD.js → useMutation-B0HsJHYQ.js} +1 -1
- package/dist/client/assets/useQuery-BB1xkDqD.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-NieK84q6.js +1 -0
- package/dist/client/assets/{workflow-DmhNckam.js → workflow-BJgxWVo7.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +201 -201
- package/dist/server/migrate.js +187 -187
- package/dist/server/server.js +180 -180
- package/package.json +1 -1
- package/dist/client/assets/alert-dialog-BVNo2Zvd.js +0 -7
- package/dist/client/assets/constants-Kr_IWMQh.js +0 -1
- package/dist/client/assets/mcp-server-card-CNZsNwOH.js +0 -1
- package/dist/client/assets/page-BZ2TOLvy.js +0 -1
- package/dist/client/assets/registry-layout-BAVbL4YG.js +0 -5
- package/dist/client/assets/registry-utils-72xro0Cc.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CqGCOPd8.js +0 -1
- package/dist/client/assets/useQuery-DBhv1CGp.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CFTwc8uJ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as y,d as g,t as e}from"./index-
|
|
1
|
+
import{u as y,d as g,t as e}from"./index-DXIsw0zh.js";import{u as C}from"./use-binding-CCMbm9JJ.js";import{g as S,h as v}from"./use-connection-BQuQwDk4.js";import{e as B}from"./extract-connection-data-D-KC8N1g.js";import{f as I,c as P,e as _}from"./registry-utils-CqH2sLA9.js";function w(t){return t.startsWith("@")?t:`@${t}`}function F(){const{org:t}=y(),{data:s}=g.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{c as w,u as C,K as D,j as u,r as K}from"./index-
|
|
1
|
+
import{c as w,u as C,K as D,j as u,r as K}from"./index-DXIsw0zh.js";import{A as M}from"./avatar-BwRAYU0T.js";import{c as B}from"./button-B1_AjrAy.js";import{u as P}from"./useQuery-BB1xkDqD.js";import{a as k,u as A}from"./constants-D3TKhQyR.js";import{u as L}from"./use-view-mode-BBke-t6c.js";function R(c){const e=w.c(11),{org:i}=C();let n;e[0]!==i.id?(n={connectionId:k,orgId:i.id},e[0]=i.id,e[1]=n):n=e[1];const o=A(n);let t;e[2]!==c?(t=D.user(c),e[2]=c,e[3]=t):t=e[3];let l;e[4]!==o||e[5]!==c?(l=async()=>{const y=await o.callTool({name:"USER_GET",arguments:{id:c}});return(y.structuredContent??y).user},e[4]=o,e[5]=c,e[6]=l):l=e[6];const f=!!c;let s;return e[7]!==t||e[8]!==l||e[9]!==f?(s={queryKey:t,queryFn:l,staleTime:3e5,retry:1,enabled:f},e[7]=t,e[8]=l,e[9]=f,e[10]=s):s=e[10],P(s)}function Y(c){const e=w.c(39),{id:i,size:n,showEmail:o,className:t}=c,l=n===void 0?"xs":n,f=o===void 0?!1:o,{data:s,isLoading:y,isError:N}=R(i);if(y){let a;e[0]!==t?(a=B("flex items-center gap-2",t),e[0]=t,e[1]=a):a=e[1];let r;e[2]!==l?(r=u.jsx(M.Skeleton,{shape:"circle",size:l}),e[2]=l,e[3]=r):r=e[3];let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("div",{className:"h-3 w-24 bg-muted animate-pulse rounded"}),e[4]=d):d=e[4];let m;e[5]!==f?(m=f&&u.jsx("div",{className:"h-2 w-32 bg-muted animate-pulse rounded"}),e[5]=f,e[6]=m):m=e[6];let p;e[7]!==m?(p=u.jsxs("div",{className:"flex flex-col gap-1",children:[d,m]}),e[7]=m,e[8]=p):p=e[8];let b;return e[9]!==a||e[10]!==r||e[11]!==p?(b=u.jsxs("div",{className:a,children:[r,p]}),e[9]=a,e[10]=r,e[11]=p,e[12]=b):b=e[12],b}if(N||!s){let a;e[13]!==t?(a=B("flex items-center gap-2",t),e[13]=t,e[14]=a):a=e[14];let r;e[15]!==l?(r=u.jsx(M,{shape:"circle",size:l,fallback:"?",muted:!0}),e[15]=l,e[16]=r):r=e[16];let d;e[17]===Symbol.for("react.memo_cache_sentinel")?(d=u.jsx("div",{className:"flex flex-col",children:u.jsx("div",{className:"text-sm text-muted-foreground",children:"Unknown User"})}),e[17]=d):d=e[17];let m;return e[18]!==a||e[19]!==r?(m=u.jsxs("div",{className:a,children:[r,d]}),e[18]=a,e[19]=r,e[20]=m):m=e[20],m}let v;e[21]!==t?(v=B("flex items-center gap-2",t),e[21]=t,e[22]=v):v=e[22];const j=s.image??void 0;let g;e[23]!==l||e[24]!==j||e[25]!==s.name?(g=u.jsx(M,{shape:"circle",size:l,url:j,fallback:s.name}),e[23]=l,e[24]=j,e[25]=s.name,e[26]=g):g=e[26];let x;e[27]!==s.name?(x=u.jsx("div",{className:"text-sm font-medium",children:s.name}),e[27]=s.name,e[28]=x):x=e[28];let S;e[29]!==f||e[30]!==s.email?(S=f&&u.jsx("div",{className:"text-xs text-muted-foreground",children:s.email}),e[29]=f,e[30]=s.email,e[31]=S):S=e[31];let h;e[32]!==x||e[33]!==S?(h=u.jsxs("div",{className:"flex flex-col",children:[x,S]}),e[32]=x,e[33]=S,e[34]=h):h=e[34];let F;return e[35]!==v||e[36]!==g||e[37]!==h?(F=u.jsxs("div",{className:v,children:[g,h]}),e[35]=v,e[36]=g,e[37]=h,e[38]=F):F=e[38],F}function q(c){const e=`deco-filters-${c}`,[i,n]=K.useState(()=>{try{const t=globalThis.localStorage?.getItem(e);if(t)return JSON.parse(t)}catch(t){console.error("Failed to parse stored filters:",t)}return[]});return[i,t=>{n(t);try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch(l){console.error("Failed to save filters:",l)}}]}function z(c){const e=w.c(7),[i,n]=K.useState(c),[o,t]=K.useState(c?"desc":null);let l;e[0]!==o||e[1]!==i?(l=y=>{i!==y?(n(y),t("asc")):o==="asc"?t("desc"):o==="desc"&&(n(void 0),t(null))},e[0]=o,e[1]=i,e[2]=l):l=e[2];const f=l;let s;return e[3]!==f||e[4]!==o||e[5]!==i?(s={sortKey:i,sortDirection:o,handleSort:f},e[3]=f,e[4]=o,e[5]=i,e[6]=s):s=e[6],s}function H(c){const e=w.c(20),{namespace:i,resource:n,defaultSortKey:o,defaultViewMode:t}=c,l=o===void 0?"title":o,f=t===void 0?"table":t,[s,y]=K.useState(""),N=K.useDeferredValue(s),v=`${i}-${n}`,[j,g]=q(v),x=`mesh-${n}-filter-visible-${i}`;let S;e[0]!==x?(S=()=>globalThis.localStorage?.getItem(x)==="true",e[0]=x,e[1]=S):S=e[1];const[h,F]=K.useState(S);let a;e[2]!==x?(a=T=>{F(T),globalThis.localStorage?.setItem(x,String(T))},e[2]=x,e[3]=a):a=e[3];const r=a;let d;e[4]!==h||e[5]!==r?(d=()=>{r(!h)},e[4]=h,e[5]=r,e[6]=d):d=e[6];const m=d,[p,b]=L(`mesh-${n}-${i}`,f),{sortKey:U,sortDirection:E,handleSort:V}=z(l),_=U;let $;return e[7]!==h||e[8]!==j||e[9]!==V||e[10]!==s||e[11]!==N||e[12]!==r||e[13]!==g||e[14]!==b||e[15]!==E||e[16]!==_||e[17]!==m||e[18]!==p?($={search:s,searchTerm:N,setSearch:y,filters:j,setFilters:g,filterBarVisible:h,setFilterBarVisible:r,toggleFilterBar:m,viewMode:p,setViewMode:b,sortKey:_,sortDirection:E,handleSort:V},e[7]=h,e[8]=j,e[9]=V,e[10]=s,e[11]=N,e[12]=r,e[13]=g,e[14]=b,e[15]=E,e[16]=_,e[17]=m,e[18]=p,e[19]=$):$=e[19],$}export{Y as U,H as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u}from"./index-
|
|
1
|
+
import{c,u}from"./index-DXIsw0zh.js";import{h as m,e as a}from"./use-connection-BQuQwDk4.js";import{j as p}from"./constants-D3TKhQyR.js";import{a as C}from"./use-binding-CCMbm9JJ.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,
|
|
1
|
+
import{c as n,b1 as u,b2 as p,n as f}from"./index-DXIsw0zh.js";import{u as m}from"./useQuery-BB1xkDqD.js";import{K as c}from"./constants-D3TKhQyR.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 b(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=()=>b(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=()=>b(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,b 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-DXIsw0zh.js";import{u as q}from"./useQuery-BB1xkDqD.js";import{u as C}from"./useMutation-B0HsJHYQ.js";import{K as T}from"./constants-D3TKhQyR.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-DXIsw0zh.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-DXIsw0zh.js";import{u as _}from"./useMutation-B0HsJHYQ.js";import{a as p,u as A}from"./constants-D3TKhQyR.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-DXIsw0zh.js";import{u as y}from"./useQuery-BB1xkDqD.js";import{u as f,a}from"./constants-D3TKhQyR.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 as p,r as f}from"./index-
|
|
1
|
+
import{c as p,r as f}from"./index-DXIsw0zh.js";import{u as w}from"./use-mobile-DIAoFlrU.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,u as r}from"./index-
|
|
1
|
+
import{c,u as r}from"./index-DXIsw0zh.js";import{e as a,u as C,d as I}from"./use-connection-BQuQwDk4.js";import{a as l,u}from"./constants-D3TKhQyR.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-BEZRxvfD.js";import{B as i}from"./index-DXIsw0zh.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aU as l,aV as p,aW as n,aX as d,aY as h,z as b,r as o,aZ as m,a_ as f}from"./index-DXIsw0zh.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{B as u,aa as s}from"./index-DXIsw0zh.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-BEZRxvfD.js";import{B as u,D as n}from"./index-DXIsw0zh.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as w,d as K,b as q,r as $,j as t,O as B,c as k,
|
|
1
|
+
import{u as w,d as K,b as q,r as $,j as t,O as B,c as k,aD as G,z as Q,K as W,t as A}from"./index-DXIsw0zh.js";import{a as J,u as V,e as Y}from"./constants-D3TKhQyR.js";import{C as X}from"./collection-tab-aDh_bgum.js";import{g as Z,h as ee}from"./use-connection-BQuQwDk4.js";import{B as I}from"./button-B1_AjrAy.js";import{E as R}from"./empty-state-BRTEyQic.js";import{E as te}from"./error-boundary-D3lg8C_F.js";import{P as x}from"./index-D0P8wRBl.js";import{B as F,a as z,b as M,c as T}from"./breadcrumb-C8b5zMor.js";import{a as ne,b as se}from"./use-binding-CCMbm9JJ.js";import{i as ie}from"./AlertTriangle-ZoXqH5xx.js";import{i as oe}from"./Loading01-CQxnYIyy.js";import{s as le}from"./RefreshCcw01-DH9n4JeZ.js";import{a as re}from"./Settings02-By12van4.js";import{u as ce}from"./useMutation-B0HsJHYQ.js";import{e as ae}from"./Dataflow03-1bin_Ob0.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-7diw-YMI.js";import"./dropdown-menu-Bqe_ZQT7.js";import"./Check-BHtow5c6.js";import"./ChevronRight-Ds0FvHp6.js";import"./ArrowUp-DRhMKIK5.js";import"./Grid01-CCE4xs16.js";import"./List-CnAhQJaO.js";import"./tooltip-Dp5lhZb-.js";import"./index-DGQeUY5q.js";import"./table-D_QygT6-.js";import"./card-CuDdPQFh.js";import"./integration-icon-B6mCYbtH.js";import"./Container-DZaD5nKa.js";import"./Copy01-qW8IV1YX.js";import"./DotsVertical-BRM5SG1z.js";import"./Edit01-BFKPZm51.js";import"./Eye-Ci58n8nv.js";import"./Trash01-DTuEjPqc.js";import"./empty-state-3DPCxrDd.js";import"./Inbox01-B8fBrw9y.js";import"./use-list-state-qVi7m5eK.js";import"./avatar-BwRAYU0T.js";import"./useQuery-BB1xkDqD.js";import"./use-view-mode-BBke-t6c.js";import"./use-mobile-DIAoFlrU.js";import"./constants-DfKBjJcd.js";import"./alert-dialog-DeTFKcxV.js";import"./Plus-ldykr1Qs.js";import"./layout-CJ8IA4Pt.js";import"./SearchMd-CJBYDik4.js";import"./input-CBsHg1ZU.js";import"./binder-D1ZOF1Sc.js";function me({title:n,description:e,wellKnownMcp:o,imageSrc:c,onConnected:i}){const a=Z(),{org:{slug:s}}=w(),{data:r}=K.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=ne(d)[0],u=se(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,[D,U]=$.useState(null),_=l&&E&&(l.id||D);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:H}=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(ie,{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:H,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 mt(){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{mt 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-DXIsw0zh.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-wH_SO4wu.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|