@decocms/mesh 2.115.0 → 2.117.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-DiL2HrFE.js → AlertCircle-BeDT_HtY.js} +1 -1
- package/dist/client/assets/{AlertOctagon-2d8rAOd4.js → AlertOctagon-QuXKgQ4Q.js} +1 -1
- package/dist/client/assets/{AlertTriangle-VgUX_bsB.js → AlertTriangle-CpeNmzLj.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Br1qiDir.js → ArrowLeft-C9FgjUgL.js} +1 -1
- package/dist/client/assets/{ArrowUp-BjfCYJa6.js → ArrowUp-CA_4TfDf.js} +1 -1
- package/dist/client/assets/{Check-B14Bp2E0.js → Check-CNueXKa4.js} +1 -1
- package/dist/client/assets/{CheckCircle-qs5k2cFp.js → CheckCircle-B30C7Ky0.js} +1 -1
- package/dist/client/assets/{CheckDone01-COU71F1q.js → CheckDone01-DqdhuyiI.js} +1 -1
- package/dist/client/assets/{CheckVerified02-C_h0QKPV.js → CheckVerified02-DMYVFl8x.js} +1 -1
- package/dist/client/assets/{ChevronDown-DmZAA_RH.js → ChevronDown-Dee8Rzkh.js} +1 -1
- package/dist/client/assets/{ChevronRight-IL2oOJI2.js → ChevronRight-BFKyuaLR.js} +1 -1
- package/dist/client/assets/{Clock-BeB-7xuQ.js → Clock-DcOt9vBU.js} +1 -1
- package/dist/client/assets/{Code01-DnUALMy9.js → Code01-DIVdUEEy.js} +1 -1
- package/dist/client/assets/{Container-BGGgIzJh.js → Container-Bdkg5Azu.js} +1 -1
- package/dist/client/assets/{Copy01-BZzZvWHY.js → Copy01-3VuAEFqa.js} +1 -1
- package/dist/client/assets/{Dataflow03-BnILNUas.js → Dataflow03-DkdReOLA.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-C1qTqyiq.js → DotsHorizontal-Cm6mqww1.js} +1 -1
- package/dist/client/assets/{DotsVertical-B-SoXTlv.js → DotsVertical-By9o8N3R.js} +1 -1
- package/dist/client/assets/{Download01-CW2ve7I5.js → Download01-CxQx0CfH.js} +1 -1
- package/dist/client/assets/{Edit01-CA_byL8x.js → Edit01-Dn0qA4Fa.js} +1 -1
- package/dist/client/assets/{Eye-DuHzxuzN.js → Eye-DKDxswcA.js} +1 -1
- package/dist/client/assets/{File02-HWzOQAS5.js → File02-DH9hOxy4.js} +1 -1
- package/dist/client/assets/{File06-6ostm09J.js → File06-VYjQ2z3_.js} +1 -1
- package/dist/client/assets/{FilterLines-n9w8nbRb.js → FilterLines-ynIeikqw.js} +1 -1
- package/dist/client/assets/{Globe01-C7OLr5gu.js → Globe01-DVxgQyR0.js} +1 -1
- package/dist/client/assets/{Globe02-DCQdCg-U.js → Globe02-b9LENZ6B.js} +1 -1
- package/dist/client/assets/{Grid01--gwdVXxp.js → Grid01-DUtda9uA.js} +1 -1
- package/dist/client/assets/{Hash02-B3ztCRZG.js → Hash02-Dw_08A1w.js} +1 -1
- package/dist/client/assets/{Home02-5xEMThw1.js → Home02-ClPXGhcI.js} +1 -1
- package/dist/client/assets/{Image01-CHvGzt2y.js → Image01-C4HZ4Zao.js} +1 -1
- package/dist/client/assets/{Inbox01-D__eEiRp.js → Inbox01-nMEKh3cP.js} +1 -1
- package/dist/client/assets/{InfoCircle-BaJSxaGK.js → InfoCircle-CpJ9JrRf.js} +1 -1
- package/dist/client/assets/{Key01-CAUAOxiV.js → Key01-ChuPC-p3.js} +1 -1
- package/dist/client/assets/{LinkExternal01-UC_M5qWQ.js → LinkExternal01-PWzAqpnw.js} +1 -1
- package/dist/client/assets/{List-BJooyaoM.js → List-CKLUZ_VW.js} +1 -1
- package/dist/client/assets/{Loading01-1Zu_WpPr.js → Loading01-CamudhzM.js} +1 -1
- package/dist/client/assets/{Lock01-DPYIJ_nA.js → Lock01-BeTJRb0k.js} +1 -1
- package/dist/client/assets/{Pin01-DJanT9uS.js → Pin01-Dz4KJ15m.js} +1 -1
- package/dist/client/assets/{Play-CahYnURS.js → Play-BGL_a2LJ.js} +1 -1
- package/dist/client/assets/{Plus-CRFHrfK2.js → Plus-SyEjnSE4.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DuNb9sh9.js → RefreshCcw01-CqYyfJ9G.js} +1 -1
- package/dist/client/assets/{RefreshCw01-CppBn3YV.js → RefreshCw01-BSYC0kIK.js} +1 -1
- package/dist/client/assets/{Rows03-CjT39fIX.js → Rows03-CVpC9rtk.js} +1 -1
- package/dist/client/assets/{Save01-_XMAksec.js → Save01-DO1hEhxi.js} +1 -1
- package/dist/client/assets/{SearchMd-CZA5t4_M.js → SearchMd-CcOZ3J1s.js} +1 -1
- package/dist/client/assets/{Settings01-CmfD9-kk.js → Settings01-CVcrQdKI.js} +1 -1
- package/dist/client/assets/{Share07-tPlC5hop.js → Share07-CiXbTaKB.js} +1 -1
- package/dist/client/assets/{Shield01-BTe6K6H4.js → Shield01-ySArJjMl.js} +1 -1
- package/dist/client/assets/{Terminal-JVvp8Qza.js → Terminal-_VxivQ1F.js} +1 -1
- package/dist/client/assets/{Tool01-BY8zBv5Q.js → Tool01-kjwZ_DfI.js} +1 -1
- package/dist/client/assets/{Trash01-uafi7Ilf.js → Trash01-CthEEWHa.js} +1 -1
- package/dist/client/assets/{Upload01-j9dbqfwl.js → Upload01-DGHq-B-f.js} +1 -1
- package/dist/client/assets/{Users03-DcEKYrkA.js → Users03-C6wtpaWA.js} +1 -1
- package/dist/client/assets/{XCircle-BUqdRo4A.js → XCircle-CGrbp9z_.js} +1 -1
- package/dist/client/assets/{XClose-BmynBvu4.js → XClose-Ce3sBI6M.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-PbH9WU_0.js → agent-connections-preview-DKNowgRk.js} +1 -1
- package/dist/client/assets/{agent-detail-Cq0CB4eM.js → agent-detail-JmY0Uz4k.js} +1 -1
- package/dist/client/assets/{agents-6ayYcmP9.js → agents-CLA3FmYC.js} +1 -1
- package/dist/client/assets/{alert-dialog-BXLdEhYw.js → alert-dialog-EoSV6_8V.js} +1 -1
- package/dist/client/assets/{auth-catchall-BmN6aGyF.js → auth-catchall-DKx2Jejf.js} +1 -1
- package/dist/client/assets/{avatar-Bc7s3LEL.js → avatar-L1PL1ayJ.js} +1 -1
- package/dist/client/assets/{badge-D4AHLMOm.js → badge-CCE1KaWc.js} +1 -1
- package/dist/client/assets/{binder-c0e82ZKj.js → binder-BC9Wv1Ge.js} +1 -1
- package/dist/client/assets/{breadcrumb-DM1tOdpW.js → breadcrumb-DNYA-_ij.js} +1 -1
- package/dist/client/assets/{button-DlMEAXru.js → button-B7HyH-Uh.js} +1 -1
- package/dist/client/assets/{card-BJlwqw9P.js → card-C-0_lNug.js} +1 -1
- package/dist/client/assets/{checkbox-2ZZDRGKg.js → checkbox-B2exkiKb.js} +1 -1
- package/dist/client/assets/{circle-alert-BU4aPU4k.js → circle-alert-t4DeJ--d.js} +1 -1
- package/dist/client/assets/{collection-detail-CcvsZ6SX.js → collection-detail-B_yaQHdx.js} +1 -1
- package/dist/client/assets/{collection-tab-D1U8qcC9.js → collection-tab-WrGrhfbg.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CTR1SyIy.js → collection-table-wrapper-D0tfp6ae.js} +1 -1
- package/dist/client/assets/{collection-tabs-DX49JXWl.js → collection-tabs-C97wMcMs.js} +1 -1
- package/dist/client/assets/{command-CZie2XvG.js → command-BICIAkBj.js} +1 -1
- package/dist/client/assets/{connect-BuwxUgJG.js → connect-DobII6wG.js} +1 -1
- package/dist/client/assets/{connection-card-CI7L8iKE.js → connection-card-DKiGEKqq.js} +1 -1
- package/dist/client/assets/{connection-detail-CRaZ-Ye2.js → connection-detail-Czc0gPl-.js} +1 -1
- package/dist/client/assets/{connections-B0wIwXTZ.js → connections-CEzrYp9r.js} +1 -1
- package/dist/client/assets/constants-CG86Kieu.js +1 -0
- package/dist/client/assets/{constants-4GzD41KM.js → constants-zTlTQ-s2.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CfW7SB8o.js → create-organization-dialog-D3inyChm.js} +1 -1
- package/dist/client/assets/{create-project-dialog-dfuHufiJ.js → create-project-dialog-DStWDJyz.js} +1 -1
- package/dist/client/assets/{dialog-Cwnz3LEA.js → dialog-DZwwYB-k.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BJqdu9io.js → dropdown-menu-CjCphUtO.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-aRox8LyK.js → dynamic-plugin-layout-Do3oxBVH.js} +1 -1
- package/dist/client/assets/{empty-state-BkmlXyqb.js → empty-state-DkqG8Hqu.js} +1 -1
- package/dist/client/assets/{empty-state-BlBaHJ3u.js → empty-state-uNOuiWjX.js} +1 -1
- package/dist/client/assets/{env-vars-editor-qzHFuA5w.js → env-vars-editor-D67dFx2L.js} +1 -1
- package/dist/client/assets/{error-boundary-Dk3_bHxS.js → error-boundary-nhHtbH_I.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Cl1h0kax.js → extract-connection-data-BQcu6O4w.js} +1 -1
- package/dist/client/assets/{file-browser-BpuuoaOY.js → file-browser--5zfCt9I.js} +2 -2
- package/dist/client/assets/{form-B3bK9lhs.js → form-C__Se-gc.js} +1 -1
- package/dist/client/assets/{grid-view-tbrO-yA3.js → grid-view-DricZUwu.js} +1 -1
- package/dist/client/assets/{home-DEEFTVc1.js → home-CScbql-9.js} +1 -1
- package/dist/client/assets/{index-DGrxQVii.js → index-BdZpvmLN.js} +1 -1
- package/dist/client/assets/{index-oUlshpJJ.js → index-Bi-e0xzQ.js} +3 -3
- package/dist/client/assets/{index-MzZr0KB3.js → index-BlyVvX4m.js} +1 -1
- package/dist/client/assets/{index-1CQrZ9Zl.js → index-CZLAI6LF.js} +1 -1
- package/dist/client/assets/{index-DjF4GflS.js → index-D1HsOBPx.js} +1 -1
- package/dist/client/assets/{index-2jF2yJ2o.js → index-DCz2-LM2.js} +1 -1
- package/dist/client/assets/{index-CeXKeP7Z.js → index-KAr3Peh7.js} +1 -1
- package/dist/client/assets/{index-BPtZHCt5.js → index-W9sjhIH3.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CzTbTGuU.js → infiniteQueryObserver-DNS00oad.js} +1 -1
- package/dist/client/assets/{input-BTxNeBOO.js → input-CV0IyHA1.js} +1 -1
- package/dist/client/assets/{integration-icon-CTPrN73-.js → integration-icon-DbBoUTfS.js} +1 -1
- package/dist/client/assets/{label-bLbRV7ZJ.js → label-DJlc-dCS.js} +1 -1
- package/dist/client/assets/{layout-D-svMqBO.js → layout-BzWZWsG1.js} +1 -1
- package/dist/client/assets/{localstorage-keys-z-WZ22Zi.js → localstorage-keys-kUhSSpkB.js} +1 -1
- package/dist/client/assets/{login-D0xu4-Fa.js → login-Bsyucgz_.js} +1 -1
- package/dist/client/assets/{markdown-CgNryeyO.js → markdown-CLjWTZQW.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Dj71M6pS.js → mcp-oauth-Cv-Vv7lB.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Bc5AS-wf.js → mcp-server-card-DsdRkuUr.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-D02AsVR7.js → mcp-server-detail-D0UXP2Wf.js} +2 -2
- package/dist/client/assets/{members-EmtbbMjC.js → members-BetVYd73.js} +1 -1
- package/dist/client/assets/{monitoring-C-93CV4C.js → monitoring-DYNNygWn.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-Bdp6e51N.js → monitoring-dashboard-edit-Dz9ATxct.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-Bx7z2_z0.js → monitoring-dashboard-view-CufWZm2V.js} +1 -1
- package/dist/client/assets/{oauth-callback-CkkG9d7v.js → oauth-callback-DcETJDHX.js} +1 -1
- package/dist/client/assets/{page-ITQU-Zp8.js → page-BAolWY3l.js} +1 -1
- package/dist/client/assets/{page-BGugjR0I.js → page-CwE-GYdz.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-AgNFTQ0u.js → plugin-empty-state-C3ceUkNb.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DlghdeMy.js → plugin-empty-state-LXKnqiIZ.js} +1 -1
- package/dist/client/assets/{plugin-header-DxI4kgNA.js → plugin-header-Bs_1_ZLf.js} +1 -1
- package/dist/client/assets/{plugin-header-BiKI-0GN.js → plugin-header-DPngncJX.js} +1 -1
- package/dist/client/assets/{popover-DK0-mkfJ.js → popover-Doa2WmZx.js} +1 -1
- package/dist/client/assets/{project-layout-ClSoqo8C.js → project-layout-Chzqn7a8.js} +1 -1
- package/dist/client/assets/{projects-list-78EdWnMz.js → projects-list-DbbdsKoZ.js} +1 -1
- package/dist/client/assets/{ranking-layout-BipS-5d4.js → ranking-layout-B9w-IUcw.js} +1 -1
- package/dist/client/assets/{readme-viewer-CYVu4zA3.js → readme-viewer-B1hfMMDA.js} +1 -1
- package/dist/client/assets/{registry-layout-DuUFYDsK.js → registry-layout-pmNuLEj-.js} +1 -1
- package/dist/client/assets/{registry-utils-BJco7Nso.js → registry-utils-DUuNgxkO.js} +1 -1
- package/dist/client/assets/{reports-layout-DWL4B4XL.js → reports-layout-C_VEjY7i.js} +1 -1
- package/dist/client/assets/{reset-password-C7TFy7aQ.js → reset-password-DJ9buaXu.js} +1 -1
- package/dist/client/assets/{resizable-zYSMb8PO.js → resizable-DF5zct6_.js} +1 -1
- package/dist/client/assets/{save-actions-BdnWXMVf.js → save-actions-CQgOAn_J.js} +1 -1
- package/dist/client/assets/{scroll-area-30X2y975.js → scroll-area-4enWoJt2.js} +1 -1
- package/dist/client/assets/{select-Duopl7P2.js → select-DWD0v1iQ.js} +1 -1
- package/dist/client/assets/{shell-layout-CI23YHUg.js → shell-layout-QL6x_YTa.js} +1 -1
- package/dist/client/assets/{skeleton-CmCa76Pe.js → skeleton-Bl8OldYy.js} +1 -1
- package/dist/client/assets/{spinner--6L1PAKk.js → spinner-BLmAgQjq.js} +1 -1
- package/dist/client/assets/{store-invite-DNBT5DzD.js → store-invite-hWU0qPjn.js} +1 -1
- package/dist/client/assets/{switch-CzMTfJyd.js → switch-Bbs0hJSB.js} +1 -1
- package/dist/client/assets/{table-DPbr8gQl.js → table-qdWaG6rv.js} +1 -1
- package/dist/client/assets/{tasks-CqaWmm56.js → tasks-43KwpcUr.js} +1 -1
- package/dist/client/assets/{textarea-BNPURYr9.js → textarea-BM9yIjbb.js} +1 -1
- package/dist/client/assets/{time-range-picker-C-sEn-dP.js → time-range-picker-BJw7emBI.js} +1 -1
- package/dist/client/assets/{toggle-group-bVqu9tww.js → toggle-group-CBPaAms8.js} +1 -1
- package/dist/client/assets/{tools-list-D2XTdfAR.js → tools-list-BZbKPMXf.js} +1 -1
- package/dist/client/assets/{tooltip-BnwJ5PQp.js → tooltip-BRqbDzB0.js} +1 -1
- package/dist/client/assets/{topbar-portal-CrFEl7XT.js → topbar-portal-DFVDwZxt.js} +1 -1
- package/dist/client/assets/{typewriter-title-Dh7JaY-s.js → typewriter-title-DIjNHGtY.js} +1 -1
- package/dist/client/assets/{use-binding-CSl5A5cE.js → use-binding-BmXtAx4J.js} +1 -1
- package/dist/client/assets/{use-connection-CJPryUMd.js → use-connection-CClYhvEQ.js} +1 -1
- package/dist/client/assets/{use-copy-DELXo_w6.js → use-copy-CTf1Ucv_.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CEbxqW61.js → use-create-virtual-mcp-K3AM9Z5N.js} +1 -1
- package/dist/client/assets/{use-deco-chat-open-Bj4jxMD7.js → use-deco-chat-open-BMBO3145.js} +6 -6
- package/dist/client/assets/{use-install-from-registry-Vj4wJ4IH.js → use-install-from-registry-BAWt0mcG.js} +1 -1
- package/dist/client/assets/{use-list-state-cJ107QPf.js → use-list-state-CCBTDGCJ.js} +1 -1
- package/dist/client/assets/{use-llm-us82LJMh.js → use-llm-mBHjR_7D.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Sqkswu5s.js → use-mcp-prompts-CBDcBX2M.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dj4ni5D7.js → use-mcp-tools-BavCvJJV.js} +1 -1
- package/dist/client/assets/{use-mobile-EmqlWdQN.js → use-mobile-DrHpoELT.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CMrztk0j.js → use-organization-settings-CKyDGiTk.js} +1 -1
- package/dist/client/assets/{use-project-BYeZMfFI.js → use-project-96IUPhFg.js} +1 -1
- package/dist/client/assets/{use-settings-modal-tvp-XYtD.js → use-settings-modal-D7JjTvmt.js} +1 -1
- package/dist/client/assets/{use-view-mode-Dg_d9_Oy.js → use-view-mode-BshQz6D5.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BzAB1Jwk.js → use-virtual-mcp-B-Bh55kx.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DkHP58UU.js +1 -0
- package/dist/client/assets/{useMutation-kpLmB8S8.js → useMutation-aO9r1_oG.js} +1 -1
- package/dist/client/assets/useQuery-BBSKX1go.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CHxgAZWb.js +1 -0
- package/dist/client/assets/{workflow-DbuBBxB5.js → workflow-Bo8vs7Cf.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +224 -224
- package/dist/server/migrate.js +186 -186
- package/dist/server/server.js +198 -198
- package/package.json +1 -1
- package/dist/client/assets/constants-PL5hL4qd.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DS7Rp5Du.js +0 -1
- package/dist/client/assets/useQuery-Do4lYH9e.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-8nf2pI1w.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-Bi-e0xzQ.js";import{u as C}from"./use-binding-BmXtAx4J.js";import{g as S,h as v}from"./use-connection-CClYhvEQ.js";import{e as B}from"./extract-connection-data-BQcu6O4w.js";import{f as I,c as P,e as _}from"./registry-utils-DUuNgxkO.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-Bi-e0xzQ.js";import{A as M}from"./avatar-L1PL1ayJ.js";import{c as B}from"./button-B7HyH-Uh.js";import{u as P}from"./useQuery-BBSKX1go.js";import{a as k,u as A}from"./constants-zTlTQ-s2.js";import{u as L}from"./use-view-mode-BshQz6D5.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-Bi-e0xzQ.js";import{h as m,e as a}from"./use-connection-CClYhvEQ.js";import{j as p}from"./constants-zTlTQ-s2.js";import{a as C}from"./use-binding-BmXtAx4J.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,b2 as u,b3 as p,m as f}from"./index-
|
|
1
|
+
import{c as n,b2 as u,b3 as p,m as f}from"./index-Bi-e0xzQ.js";import{u as m}from"./useQuery-BBSKX1go.js";import{K as c}from"./constants-zTlTQ-s2.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 y,m as p}from"./index-
|
|
1
|
+
import{c as y,m as p}from"./index-Bi-e0xzQ.js";import{u as q}from"./useQuery-BBSKX1go.js";import{u as C}from"./useMutation-aO9r1_oG.js";import{K as T}from"./constants-zTlTQ-s2.js";function w(r){const e=y.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=y.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=y.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 m=JSON.stringify(l??{});u=p,i=s,n=T.mcpToolCall(t,o,m),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=y.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 m=JSON.stringify(l??{});u=q,i=s,n=T.mcpToolCall(t,o,m),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=y.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-Bi-e0xzQ.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 f,u as T,m as A,y as d,K as g}from"./index-
|
|
1
|
+
import{c as f,u as T,m as A,y as d,K as g}from"./index-Bi-e0xzQ.js";import{u as _}from"./useMutation-aO9r1_oG.js";import{a as p,u as y}from"./constants-zTlTQ-s2.js";function D(e){const t=f.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=y(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}=A(n);return o}function G(e){const t=f.c(13),i=d(),{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=y(c);let s;t[2]!==u||t[3]!==e?(s=async S=>{const m=await u.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...S}});return m.structuredContent??m},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,m as T}from"./index-
|
|
1
|
+
import{K as m,c as C,m as T}from"./index-Bi-e0xzQ.js";import{u as y}from"./useQuery-BBSKX1go.js";import{u as f,a}from"./constants-zTlTQ-s2.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{S as a,_ as u};
|
package/dist/client/assets/{use-settings-modal-tvp-XYtD.js → use-settings-modal-D7JjTvmt.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S,c as j,b as C,a as v,e as $}from"./index-
|
|
1
|
+
import{r as S,c as j,b as C,a as v,e as $}from"./index-Bi-e0xzQ.js";const x=({size:e=24,color:t="currentColor",...r})=>S.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},S.createElement("path",{d:"M15 21v-5.4c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 14 13.96 14 13.4 14h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 14.76 9 15.04 9 15.6V21M3 7a3 3 0 0 0 6 0 3 3 0 1 0 6 0 3 3 0 1 0 6 0M6.2 21h11.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C21 19.48 21 18.92 21 17.8V6.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C19.48 3 18.92 3 17.8 3H6.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C3 4.52 3 5.08 3 6.2v11.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C4.52 21 5.08 21 6.2 21Z"}));x.displayName="Building02";function k(e,t){return`project:${e}:${t}`}const E=new Set(["account.profile","account.preferences","account.experimental","org.general","org.plugins"]);function _(e){if(!e)return!1;if(E.has(e))return!0;const t=e.split(":");return t.length===3&&t[0]==="project"&&!!t[1]&&(t[2]==="general"||t[2]==="plugins"||t[2]==="danger")}function M(e){if(!e.startsWith("project:"))return null;const[,t,r]=e.split(":");return!t||!r?null:{slug:t,sub:r}}function w(){const e=j.c(17),t=C();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const o=v(r);let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},e[1]=c):c=e[1];const{org:s,project:n}=$(c);let i;e[2]!==o.settings?(i=_(o.settings)?o.settings:void 0,e[2]=o.settings,e[3]=i):i=e[3];const m=i,p=!!m;let a;e[4]!==t||e[5]!==s||e[6]!==n?(a=d=>{!s||!n||t({to:"/$org/$project",params:{org:s,project:n},search:{settings:d}})},e[4]=t,e[5]=s,e[6]=n,e[7]=a):a=e[7];const f=a;let l;e[8]!==t||e[9]!==s||e[10]!==n?(l=()=>{!s||!n||t({to:"/$org/$project",params:{org:s,project:n},search:{}})},e[8]=t,e[9]=s,e[10]=n,e[11]=l):l=e[11];const g=l,h=m??"account.preferences";let u;return e[12]!==g||e[13]!==p||e[14]!==f||e[15]!==h?(u={isOpen:p,activeSection:h,open:f,close:g},e[12]=g,e[13]=p,e[14]=f,e[15]=h,e[16]=u):u=e[16],u}export{k as a,M as p,x as t,w as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as f}from"./index-
|
|
1
|
+
import{c as p,r as f}from"./index-Bi-e0xzQ.js";import{u as w}from"./use-mobile-DrHpoELT.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-Bi-e0xzQ.js";import{e as a,u as C,d as I}from"./use-connection-CClYhvEQ.js";import{a as l,u}from"./constants-zTlTQ-s2.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-DNS00oad.js";import{z as i}from"./index-Bi-e0xzQ.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aV as l,aW as p,aX as n,aY as d,aZ as h,y as b,r as o,a_ as m,a$ as f}from"./index-
|
|
1
|
+
import{aV as l,aW as p,aX as n,aY as d,aZ as h,y as b,r as o,a_ as m,a$ as f}from"./index-Bi-e0xzQ.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{z as u,a8 as s}from"./index-Bi-e0xzQ.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-DNS00oad.js";import{z as u,B as n}from"./index-Bi-e0xzQ.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as N,u as w,d as q,b as G,j as t,O as B,c as L,aE as Q,y as J,K as W,t as A}from"./index-
|
|
1
|
+
import{r as N,u as w,d as q,b as G,j as t,O as B,c as L,aE as Q,y as J,K as W,t as A}from"./index-Bi-e0xzQ.js";import{a as Z,u as V,e as Y}from"./constants-zTlTQ-s2.js";import{C as X}from"./collection-tab-WrGrhfbg.js";import{g as ee,h as te}from"./use-connection-CClYhvEQ.js";import{B as I}from"./button-B7HyH-Uh.js";import{E as R}from"./empty-state-uNOuiWjX.js";import{E as ne}from"./error-boundary-nhHtbH_I.js";import{P as x}from"./index-KAr3Peh7.js";import{B as F,a as M,b as z,c as T}from"./breadcrumb-DNYA-_ij.js";import{a as se,b as ie}from"./use-binding-BmXtAx4J.js";import{i as oe}from"./AlertTriangle-CpeNmzLj.js";import{i as le}from"./Loading01-CamudhzM.js";import{s as re}from"./RefreshCcw01-CqYyfJ9G.js";import{u as ae}from"./useMutation-aO9r1_oG.js";import{e as ce}from"./Dataflow03-DkdReOLA.js";import"./generate-id-Dyweu44Y.js";import"./collection-table-wrapper-D0tfp6ae.js";import"./dropdown-menu-CjCphUtO.js";import"./Check-CNueXKa4.js";import"./ChevronRight-BFKyuaLR.js";import"./ArrowUp-CA_4TfDf.js";import"./Grid01-DUtda9uA.js";import"./List-CKLUZ_VW.js";import"./tooltip-BRqbDzB0.js";import"./table-qdWaG6rv.js";import"./card-C-0_lNug.js";import"./integration-icon-DbBoUTfS.js";import"./Container-Bdkg5Azu.js";import"./Copy01-3VuAEFqa.js";import"./DotsVertical-By9o8N3R.js";import"./Edit01-Dn0qA4Fa.js";import"./Eye-DKDxswcA.js";import"./Trash01-CthEEWHa.js";import"./empty-state-DkqG8Hqu.js";import"./Inbox01-nMEKh3cP.js";import"./use-list-state-CCBTDGCJ.js";import"./avatar-L1PL1ayJ.js";import"./useQuery-BBSKX1go.js";import"./use-view-mode-BshQz6D5.js";import"./use-mobile-DrHpoELT.js";import"./constants-CG86Kieu.js";import"./alert-dialog-EoSV6_8V.js";import"./Plus-SyEjnSE4.js";import"./layout-BzWZWsG1.js";import"./SearchMd-CcOZ3J1s.js";import"./input-CV0IyHA1.js";import"./binder-BC9Wv1Ge.js";const U=({size:n=24,color:e="currentColor",...i})=>N.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},N.createElement("path",{d:"m9.395 19.371.585 1.315a2.212 2.212 0 0 0 4.044 0l.584-1.315a2.426 2.426 0 0 1 2.47-1.423l1.43.152a2.212 2.212 0 0 0 2.023-3.502l-.847-1.164a2.428 2.428 0 0 1-.46-1.434c0-.513.163-1.014.464-1.429l.847-1.163a2.211 2.211 0 0 0-2.022-3.502l-1.43.152a2.433 2.433 0 0 1-1.47-.312 2.426 2.426 0 0 1-1-1.117l-.589-1.315a2.212 2.212 0 0 0-4.044 0L9.395 4.63c-.207.468-.557.86-1 1.117-.445.256-.96.365-1.47.312l-1.434-.152a2.212 2.212 0 0 0-2.023 3.502l.847 1.163a2.43 2.43 0 0 1 0 2.858l-.847 1.163a2.21 2.21 0 0 0 .786 3.273c.382.195.811.274 1.237.23l1.43-.153a2.434 2.434 0 0 1 2.474 1.43Z"}),N.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));U.displayName="Settings02";function de({title:n,description:e,wellKnownMcp:i,imageSrc:a,onConnected:o}){const c=ee(),{org:{slug:s}}=w(),{data:r}=q.useSession(),d=G(),[m,p]=N.useState(!1),l=async()=>{if(!(!i||!r?.user?.id)){p(!0);try{const f=await c.create.mutateAsync(i);o?.(f.id),d({to:"/$org/$project/mcps/$connectionId",params:{org:s,project:B,connectionId:f.id}})}finally{p(!1)}}},u=()=>{d({to:"/$org/$project/mcps",params:{org:s,project:B},search:{action:"create"}})};return t.jsx(R,{image:a?t.jsx("img",{src:a,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:m||!i,children:[i?.icon&&t.jsx("img",{src:i.icon,alt:"",className:"size-4"}),m?"Installing...":`Install ${i?.title||"MCP"}`]}),t.jsx(I,{variant:"outline",onClick:u,children:"Custom Connection"})]})})}function me(n){const e=L.c(35),{bindingName:i,collectionName:a,title:o,emptyState:c,wellKnownMcp:s}=n,{org:r}=w(),d=te();let m;e[0]!==d||e[1]!==i?(m={connections:d,binding:i},e[0]=d,e[1]=i,e[2]=m):m=e[2];const l=se(m)[0],u=ie(l);let f;if(e[3]!==a||e[4]!==u){let g;e[6]!==a?(g=$=>$.name.toLowerCase()===a.toLowerCase(),e[6]=a,e[7]=g):g=e[7],f=u.find(g),e[3]=a,e[4]=u,e[5]=f}else f=e[5];const S=f,[D,H]=N.useState(null),_=l&&S&&(l.id||D);let h;e[8]!==o?(h=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:o})})})})})}),e[8]=o,e[9]=h):h=e[9];let j;e[10]!==l||e[11]!==r||e[12]!==o?(j=g=>{const{error:$,resetError:K}=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(oe,{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 ",o.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(I,{variant:"outline",onClick:K,children:[t.jsx(re,{className:"size-4"}),"Try again"]}),l&&t.jsx(I,{variant:"outline",asChild:!0,children:t.jsxs(Q,{to:"/$org/$project/mcps/$connectionId",params:{org:r.slug,project:B,connectionId:l.id},search:{tab:"settings"},children:[t.jsx(U,{className:"size-4"}),"Connection Settings"]})})]})]})},e[10]=l,e[11]=r,e[12]=o,e[13]=j):j=e[13];let k;e[14]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),e[14]=k):k=e[14];let b;e[15]!==o?(b=o.toLowerCase(),e[15]=o,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:[k,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]!==S||e[20]!==l||e[21]!==c||e[22]!==r||e[23]!==_||e[24]!==s?(y=_?t.jsx(X,{connectionId:l.id,org:r.slug,activeCollection:S}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(de,{title:c.title,description:c.description,wellKnownMcp:s,imageSrc:c.imageSrc,onConnected:g=>{H(g)}})}),e[19]=S,e[20]=l,e[21]=c,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(N.Suspense,{fallback:C,children:y}),e[26]=C,e[27]=y,e[28]=P):P=e[28];let E;e[29]!==j||e[30]!==P?(E=t.jsx(x.Content,{children:t.jsx(ne,{fallback:j,children:P})}),e[29]=j,e[30]=P,e[31]=E):E=e[31];let v;return e[32]!==E||e[33]!==h?(v=t.jsxs(x,{children:[h,E]}),e[32]=E,e[33]=h,e[34]=v):v=e[34],v}function ue(){const n=L.c(12),{org:e,project:i}=w(),a=J();let o;n[0]!==e.id?(o={connectionId:Z,orgId:e.id},n[0]=e.id,n[1]=o):o=n[1];const c=V(o);let s;n[2]!==c||n[3]!==i?(s=async p=>{const l=i.enabledPlugins??[];if(l.includes(p))return;const u=[...l,p],f=await c.callTool({name:"PROJECT_UPDATE",arguments:{projectId:i.id,enabledPlugins:u}});return f.structuredContent??f},n[2]=c,n[3]=i,n[4]=s):s=n[4];let r;n[5]!==e.id||n[6]!==i||n[7]!==a?(r=()=>{a.invalidateQueries({queryKey:W.project(e.id,i.slug)}),a.invalidateQueries({queryKey:W.projects(e.id)})},n[5]=e.id,n[6]=i,n[7]=a,n[8]=r):r=n[8];let d;return n[9]!==s||n[10]!==r?(d={mutationFn:s,onSuccess:r,onError:pe},n[9]=s,n[10]=r,n[11]=d):d=n[11],ae(d)}function pe(n){A.error("Failed to enable plugin: "+(n instanceof Error?n.message:"Unknown error"))}function fe(n){const e=L.c(12),{pluginId:i,title:a,description:o,icon:c}=n,s=ue();let r;e[0]!==s||e[1]!==i?(r=async()=>{try{await s.mutateAsync(i),A.success("Plugin enabled!")}catch{}},e[0]=s,e[1]=i,e[2]=r):r=e[2];const d=r,m=c??null,p=s.isPending?"Enabling…":"Enable plugin";let l;e[3]!==s.isPending||e[4]!==d||e[5]!==p?(l=t.jsx(I,{onClick:d,disabled:s.isPending,children:p}),e[3]=s.isPending,e[4]=d,e[5]=p,e[6]=l):l=e[6];let u;return e[7]!==o||e[8]!==m||e[9]!==l||e[10]!==a?(u=t.jsx(R,{image:m,title:a,description:o,actions:l}),e[7]=o,e[8]=m,e[9]=l,e[10]=a,e[11]=u):u=e[11],u}const O="workflows";function at(){const n=L.c(3),{project:e}=w();if(!(e.enabledPlugins??[]).includes(O)){let c;n[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(x.Header,{children:t.jsx(x.Header.Left,{children:t.jsx(F,{children:t.jsx(M,{children:t.jsx(z,{children:t.jsx(T,{children:"Workflows"})})})})})}),n[0]=c):c=n[0];let s;return n[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs(x,{children:[c,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(ce,{className:"size-8 text-muted-foreground"})})})})})]}),n[1]=s):s=n[1],s}let o;return n[2]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(me,{bindingName:"WORKFLOW",collectionName:"workflow",title:"Workflows",emptyState:{title:"Create Workflows",description:"Run durable MCP tool calls in background."},wellKnownMcp:Y()}),n[2]=o):o=n[2],o}export{at 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-Bi-e0xzQ.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-Pglfh9Lp.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|