@decocms/mesh 2.27.0 → 2.28.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-3W_m-Fsi.js → AlertCircle-D-HQaPvJ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DYI8t286.js → ArrowLeft-BfT6OYKw.js} +1 -1
- package/dist/client/assets/{ArrowUp-vC2Zi9_R.js → ArrowUp-VBaHdRq-.js} +1 -1
- package/dist/client/assets/{Check-B4FhLTO4.js → Check-BIMeunsW.js} +1 -1
- package/dist/client/assets/{ChevronDown-BHnwuF4W.js → ChevronDown-Bzo4jTVZ.js} +1 -1
- package/dist/client/assets/{Code01-BtOJaBQv.js → Code01-BkJ2Jdb9.js} +1 -1
- package/dist/client/assets/{Copy01-PEpHJeOd.js → Copy01-j3ahYGeC.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-DVbPehNV.js → DotsHorizontal-Dj0eLBp9.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bzc4Gatf.js → DotsVertical-D2lj_AYp.js} +1 -1
- package/dist/client/assets/{Download01-C66SDE0R.js → Download01-CLZJYM20.js} +1 -1
- package/dist/client/assets/{Edit01-BNWHIUTG.js → Edit01-a_P9pnk_.js} +1 -1
- package/dist/client/assets/{File06-CK3PV4rY.js → File06-CPYxuNty.js} +1 -1
- package/dist/client/assets/{FilterLines-D7UwR7KZ.js → FilterLines-BwRxGahk.js} +1 -1
- package/dist/client/assets/{FlipBackward-BleS_v-U.js → FlipBackward-DhGkDKf6.js} +1 -1
- package/dist/client/assets/{GitBranch01-B5YMXdzm.js → GitBranch01-DBQws8-l.js} +1 -1
- package/dist/client/assets/{Grid01-Dcc_Kw-0.js → Grid01-BquZR1VL.js} +1 -1
- package/dist/client/assets/{Home02-CPYtby_b.js → Home02-DcgoPOFV.js} +1 -1
- package/dist/client/assets/{Image01-BIwZ6-CD.js → Image01-Cpq25cat.js} +1 -1
- package/dist/client/assets/{Inbox01-fwfxdmtU.js → Inbox01-CtR0XiS3.js} +1 -1
- package/dist/client/assets/{InfoCircle-2SHEljrK.js → InfoCircle-29sQibcK.js} +1 -1
- package/dist/client/assets/{Key01-SiAw-ip5.js → Key01-DnQ_ex_C.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BJuCFr7S.js → LinkExternal01-p1bwW_TU.js} +1 -1
- package/dist/client/assets/{List-C5kGBIj2.js → List-lGDL5roj.js} +1 -1
- package/dist/client/assets/{Loading01-BGZ1XiOQ.js → Loading01-Dcw87IUy.js} +1 -1
- package/dist/client/assets/{Lock01-BTxHCdF8.js → Lock01-cn0Zz-Fa.js} +1 -1
- package/dist/client/assets/{Play-Bt2r1Xrv.js → Play-CO-g-GHy.js} +1 -1
- package/dist/client/assets/{Plus-CNhfCKJP.js → Plus-CZmkhVHr.js} +1 -1
- package/dist/client/assets/{SearchMd-BFmtT6AB.js → SearchMd-218TYDPh.js} +1 -1
- package/dist/client/assets/{Terminal-b1QI07Qp.js → Terminal-ENFJEUmL.js} +1 -1
- package/dist/client/assets/{Trash01-CTUNxVBm.js → Trash01-CJ2CZnbQ.js} +1 -1
- package/dist/client/assets/{Upload01-vS7LmzJP.js → Upload01-CUCrbcc6.js} +1 -1
- package/dist/client/assets/{X-DZWdzEQ2.js → X-CfuZn8Kq.js} +1 -1
- package/dist/client/assets/{XClose-B6UZH6K7.js → XClose-BzYqKgb1.js} +1 -1
- package/dist/client/assets/{agent-detail-CdPNeu-w.js → agent-detail-u4pnE9If.js} +1 -1
- package/dist/client/assets/{agents-BMFOq1cD.js → agents-DhGwarWZ.js} +1 -1
- package/dist/client/assets/{alert-dialog-B1gGaxIy.js → alert-dialog-D3qq7Ulf.js} +1 -1
- package/dist/client/assets/{auth-catchall-BGfl9DyV.js → auth-catchall-B0T5008Z.js} +1 -1
- package/dist/client/assets/{avatar-BRM5gID6.js → avatar-CR7b4YKC.js} +1 -1
- package/dist/client/assets/{badge-DbfGipV0.js → badge-PIdfAYBi.js} +1 -1
- package/dist/client/assets/{binder-BhmVwgZs.js → binder-B3Zy5L74.js} +1 -1
- package/dist/client/assets/{button-DGFNdBvA.js → button-O3N8aiGL.js} +1 -1
- package/dist/client/assets/{card-C7V56esP.js → card-CFpOUyH4.js} +1 -1
- package/dist/client/assets/{checkbox-DewrwTF-.js → checkbox-CruW3VkW.js} +1 -1
- package/dist/client/assets/{collection-detail-Rb5y7Iwp.js → collection-detail-D-6-aP5Q.js} +3 -3
- package/dist/client/assets/{collection-display-button-sJ1vCkku.js → collection-display-button-CUmDctbt.js} +1 -1
- package/dist/client/assets/{collection-header-BLDLBpTZ.js → collection-header-CF4RYLzQ.js} +1 -1
- package/dist/client/assets/{collection-page-DfW6PFSb.js → collection-page-BJUsoaWR.js} +1 -1
- package/dist/client/assets/{collection-search-BbDYzv2F.js → collection-search-81-ih3bf.js} +1 -1
- package/dist/client/assets/{collection-tab-PNWFeuRB.js → collection-tab-BLNeB8Cv.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BBoyf5l0.js → collection-table-wrapper-j-3bOd_l.js} +1 -1
- package/dist/client/assets/{connection-CFT2rD3Y.js → connection-BgM7TMiK.js} +1 -1
- package/dist/client/assets/{connection-card-Cp5tWFAe.js → connection-card-CAkLdzsB.js} +1 -1
- package/dist/client/assets/connection-detail-C3k4yup9.js +1 -0
- package/dist/client/assets/{connections-Cl1oaJVk.js → connections-DeAhrxK8.js} +1 -1
- package/dist/client/assets/constants-B2-GwLQr.js +1 -0
- package/dist/client/assets/{create-organization-dialog-DShw3SrU.js → create-organization-dialog-BvEf2Nwg.js} +1 -1
- package/dist/client/assets/{dialog-DrRN5T9B.js → dialog-B6BwjyWa.js} +1 -1
- package/dist/client/assets/{dropdown-menu-IL1YwGEs.js → dropdown-menu-vYTr-u8L.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DOPRsROZ.js → dynamic-plugin-layout-FYLKawzh.js} +1 -1
- package/dist/client/assets/{empty-state-B6Fzia3k.js → empty-state-BDTD_g_m.js} +1 -1
- package/dist/client/assets/{empty-state-DG-8Rgwf.js → empty-state-D4eH0rtx.js} +1 -1
- package/dist/client/assets/{env-vars-editor-XVUBKNuI.js → env-vars-editor-BIFvTnWj.js} +1 -1
- package/dist/client/assets/{error-boundary-D8Ei-eQB.js → error-boundary-DYvzMS_F.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BEN3i8rq.js → extract-connection-data-Efwwsak_.js} +1 -1
- package/dist/client/assets/{file-browser-cmO42V9X.js → file-browser-DNNij11o.js} +2 -2
- package/dist/client/assets/{form-BHuxfep8.js → form-DhI4ICdy.js} +1 -1
- package/dist/client/assets/{grid-view-BeKlIdKt.js → grid-view-AKgIGWEW.js} +1 -1
- package/dist/client/assets/{home-BZYfDXfg.js → home-B0Paoo5s.js} +1 -1
- package/dist/client/assets/{index-CexdbKny.js → index-C56b_cI_.js} +2 -2
- package/dist/client/assets/{index-DZGZVyjC.js → index-DBeYYFLa.js} +1 -1
- package/dist/client/assets/{index-BIoHhQEt.css → index-I-Aus2DH.css} +1 -1
- package/dist/client/assets/{index-D089AfF2.js → index-KZtXBkv9.js} +2 -2
- package/dist/client/assets/{index-DHPXzWI2.js → index-LAihw3YM.js} +82 -83
- package/dist/client/assets/{index-6p8pYyVk.js → index-bCeyYX-g.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DSOFqwgw.js → infiniteQueryObserver-Ccd6UCRs.js} +1 -1
- package/dist/client/assets/{input-BTP3P3xF.js → input-B8dr2xuY.js} +1 -1
- package/dist/client/assets/{layout-Dx8oOx42.js → layout-D4dd9wBA.js} +1 -1
- package/dist/client/assets/localstorage-keys-CHL642CB.js +1 -0
- package/dist/client/assets/{login-DmVZeIiU.js → login-YSvjox7a.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CqdT5Ux6.js → mcp-oauth-CoKyDPqv.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Cz1RNfFs.js → mcp-server-card-BKySaZe3.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-DSM6uBPB.js → mcp-server-detail-BuHmUR08.js} +1 -1
- package/dist/client/assets/{members-Dz5hJ8N4.js → members-CKtgiavf.js} +1 -1
- package/dist/client/assets/{monaco-editor-cnPZS-Og.js → monaco-editor-Df06KUAc.js} +4 -4
- package/dist/client/assets/monitoring-BoLBx95Z.js +49 -0
- package/dist/client/assets/{oauth-callback-tX-qpwuB.js → oauth-callback-DvxbpxaQ.js} +1 -1
- package/dist/client/assets/{page-CC_yBF2y.js → page-UrH0zcaD.js} +1 -1
- package/dist/client/assets/page-tktv3k8G.js +21 -0
- package/dist/client/assets/{pin-to-sidebar-button-eQ5IXY3U.js → pin-to-sidebar-button-DU_kBzB0.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-hwolak6V.js → plugin-empty-state-Dp6a-FZs.js} +1 -1
- package/dist/client/assets/{plugin-header-B2HJl6uN.js → plugin-header-Dx2NttYe.js} +1 -1
- package/dist/client/assets/{plugins-C9YAju3R.js → plugins-D4ygNFd5.js} +1 -1
- package/dist/client/assets/popover-De1Vjc9m.js +1 -0
- package/dist/client/assets/{project-context-provider-D-EZcDmf.js → project-context-provider-COywY3tK.js} +1 -1
- package/dist/client/assets/{registry-utils-TUazuS7s.js → registry-utils-CF_sLZl9.js} +1 -1
- package/dist/client/assets/resizable-CQqagYf_.js +1 -0
- package/dist/client/assets/{resource-tabs-DtWwP8ma.js → resource-tabs-Czdekor7.js} +1 -1
- package/dist/client/assets/{select-AhxnOTSV.js → select-CLNrM3mY.js} +1 -1
- package/dist/client/assets/{settings-MTd4J0O6.js → settings-Dq8xa47S.js} +1 -1
- package/dist/client/assets/shell-layout-vKxWIRvj.js +3 -0
- package/dist/client/assets/{spinner-Dmre_I5T.js → spinner-BC6f4r5T.js} +1 -1
- package/dist/client/assets/{standalone-Cutp_BhH.js → standalone-DS4gw9AE.js} +1 -1
- package/dist/client/assets/{switch-D3vcgV_M.js → switch-DoQYofhq.js} +1 -1
- package/dist/client/assets/{textarea-nvtKfgZ6.js → textarea-DNEBSWY6.js} +1 -1
- package/dist/client/assets/{tool-set-selector-CJF-YyBy.js → tool-set-selector-DzYTtLA7.js} +1 -1
- package/dist/client/assets/{tools-list-CrCBPq5B.js → tools-list-Cf7wimT5.js} +1 -1
- package/dist/client/assets/{tooltip-Bzt9TSoy.js → tooltip-B3L5qQ-q.js} +1 -1
- package/dist/client/assets/{typewriter-title-Bzxh0wvC.js → typewriter-title-C4u9JNyH.js} +1 -1
- package/dist/client/assets/{use-binding-CBeJwSaf.js → use-binding-B9A9NAHS.js} +1 -1
- package/dist/client/assets/{use-collections-HpDaPUjt.js → use-collections-N0pkJ-Aj.js} +1 -1
- package/dist/client/assets/{use-connection-6IWs4Iz3.js → use-connection-Bstbrafe.js} +1 -1
- package/dist/client/assets/{use-connection-resources-DV53P-i_.js → use-connection-resources--8Dfs342.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DiLPU3nD.js → use-create-virtual-mcp-DAwCKSnJ.js} +1 -1
- package/dist/client/assets/{use-list-state-_1r07pIM.js → use-list-state-BomO6Trj.js} +1 -1
- package/dist/client/assets/{use-mcp-C6V524NJ.js → use-mcp-D0kKZ61R.js} +1 -1
- package/dist/client/assets/{use-members-BYodMH7B.js → use-members-DylLr02W.js} +1 -1
- package/dist/client/assets/{use-mobile-BbjF7byN.js → use-mobile-DZzbwOpy.js} +1 -1
- package/dist/client/assets/{use-organization-settings--vyLpBQ1.js → use-organization-settings-D-xbG6AE.js} +1 -1
- package/dist/client/assets/{use-tool-call-DMOQC5y3.js → use-tool-call-CJd0AVuj.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-XnL0ZUJn.js → use-virtual-mcp-CTV9SdwI.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-system-prompt-AMNsgyQB.js → use-virtual-mcp-system-prompt-Cbm9-h2h.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-WyRsxyGr.js +1 -0
- package/dist/client/assets/{useMutation-CVUYIVK0.js → useMutation-BvQww0cw.js} +1 -1
- package/dist/client/assets/useQuery-BxgLSpFj.js +1 -0
- package/dist/client/assets/{value-ZFhnirhh.js → value-CtIKibH2.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-a1m1pL_s.js → view-mode-toggle-BjNrnmhb.js} +1 -1
- package/dist/client/assets/{workflow-B1mp8_G0.js → workflow-C4pieNbS.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +168 -155
- package/dist/server/migrate.js +134 -134
- package/dist/server/server.js +154 -141
- package/package.json +1 -2
- package/dist/client/assets/connection-detail-cGn8ttlI.js +0 -1
- package/dist/client/assets/constants-B-C4kQbA.js +0 -1
- package/dist/client/assets/localstorage-keys-BpH8MrVb.js +0 -1
- package/dist/client/assets/monitoring-vXgaC9bi.js +0 -49
- package/dist/client/assets/page-DYwTybJ7.js +0 -21
- package/dist/client/assets/popover-ByUZTxRe.js +0 -1
- package/dist/client/assets/resizable-cj5ZM6OX.js +0 -1
- package/dist/client/assets/shell-layout-Dck6aPSx.js +0 -3
- package/dist/client/assets/useInfiniteQuery-DvoFb9Fx.js +0 -1
- package/dist/client/assets/useQuery-CDyjJxWa.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/mesh",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.28.0",
|
|
4
4
|
"description": "MCP Mesh - Self-hostable MCP Gateway for managing AI connections and tools",
|
|
5
5
|
"author": "Deco team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"date-fns": "^4.1.0",
|
|
102
102
|
"github-markdown-css": "^5.8.1",
|
|
103
103
|
"hono": "^4.10.7",
|
|
104
|
-
"idb-keyval": "^6.2.2",
|
|
105
104
|
"input-otp": "^1.4.2",
|
|
106
105
|
"jose": "^6.0.11",
|
|
107
106
|
"lucide-react": "^0.468.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as q,j as o,f as W,k as J,r as z,d as ce,b as ae,af as le}from"./index-CexdbKny.js";import{E as F,I as Q}from"./empty-state-DG-8Rgwf.js";import{E as X}from"./error-boundary-D8Ei-eQB.js";import{b as G,a as me}from"./use-connection-6IWs4Iz3.js";import{a as de}from"./use-binding-CBeJwSaf.js";import{u as ue,S as pe}from"./index-D089AfF2.js";import{u as fe,a as he}from"./use-connection-resources-DV53P-i_.js";import{B as xe}from"./button-DGFNdBvA.js";import{i as Y}from"./Loading01-BGZ1XiOQ.js";import{R as ge}from"./resource-tabs-DtWwP8ma.js";import{V as Z,a as be,b as je}from"./layout-Dx8oOx42.js";import{C as ye}from"./collection-tab-PNWFeuRB.js";import{C as ee}from"./collection-display-button-sJ1vCkku.js";import{C as te}from"./collection-search-BbDYzv2F.js";import{C as oe}from"./collection-table-wrapper-BBoyf5l0.js";import{P as se}from"./pin-to-sidebar-button-eQ5IXY3U.js";import{C as ne}from"./card-C7V56esP.js";import{R as Se,T as Ce}from"./tools-list-CrCBPq5B.js";import"./connection-CFT2rD3Y.js";import"./project-context-provider-D-EZcDmf.js";import"./use-collections-HpDaPUjt.js";import"./useMutation-CVUYIVK0.js";import"./binder-BhmVwgZs.js";import"./mcp-oauth-CqdT5Ux6.js";import"./env-vars-editor-XVUBKNuI.js";import"./input-BTP3P3xF.js";import"./Plus-CNhfCKJP.js";import"./Trash01-CTUNxVBm.js";import"./use-tool-call-DMOQC5y3.js";import"./useQuery-CDyjJxWa.js";import"./File06-CK3PV4rY.js";import"./Key01-SiAw-ip5.js";import"./badge-DbfGipV0.js";import"./form-BHuxfep8.js";import"./select-AhxnOTSV.js";import"./tooltip-Bzt9TSoy.js";import"./Check-B4FhLTO4.js";import"./ChevronDown-BHnwuF4W.js";import"./extract-connection-data-BEN3i8rq.js";import"./constants-B-C4kQbA.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-TUazuS7s.js";import"./generate-id-Dyweu44Y.js";import"./Terminal-b1QI07Qp.js";import"./use-virtual-mcp-XnL0ZUJn.js";import"./Grid01-Dcc_Kw-0.js";import"./index-DZGZVyjC.js";import"./index-6p8pYyVk.js";import"./index-DHPXzWI2.js";import"./X-DZWdzEQ2.js";import"./use-virtual-mcp-system-prompt-AMNsgyQB.js";import"./localstorage-keys-BpH8MrVb.js";import"./popover-ByUZTxRe.js";import"./Image01-BIwZ6-CD.js";import"./SearchMd-BFmtT6AB.js";import"./use-create-virtual-mcp-DiLPU3nD.js";import"./spinner-Dmre_I5T.js";import"./dialog-DrRN5T9B.js";import"./AlertCircle-3W_m-Fsi.js";import"./ArrowUp-vC2Zi9_R.js";import"./Edit01-BNWHIUTG.js";import"./Upload01-vS7LmzJP.js";import"./Copy01-PEpHJeOd.js";import"./monaco-editor-cnPZS-Og.js";import"./alert-dialog-B1gGaxIy.js";import"./well-known-mcp-DOEdYmKO.js";import"./ArrowLeft-DYI8t286.js";import"./dropdown-menu-IL1YwGEs.js";import"./DotsVertical-Bzc4Gatf.js";import"./use-list-state-_1r07pIM.js";import"./use-mobile-BbjF7byN.js";import"./empty-state-B6Fzia3k.js";import"./Inbox01-fwfxdmtU.js";import"./avatar-BRM5gID6.js";import"./List-C5kGBIj2.js";import"./view-mode-toggle-a1m1pL_s.js";import"./use-organization-settings--vyLpBQ1.js";function ve(t){const e=q.c(42),{prompts:r,connectionId:n,org:s,connectionTitle:a,connectionIcon:f,onPromptClick:j,showToolbar:g,emptyMessage:N}=t,V=g===void 0?!0:g,L=N===void 0?"This connection doesn't have any prompts yet.":N,p=W(),y=J().location.href,[l,i]=z.useState(""),[w,m]=z.useState("table"),[h,R]=z.useState("name"),[u,_]=z.useState("asc");let b;e[0]!==u||e[1]!==h?(b=x=>{h===x?(_(Ie),u==="desc"&&R(void 0)):(R(x),_("asc"))},e[0]=u,e[1]=h,e[2]=b):b=e[2];const T=b;let P;e[3]!==n||e[4]!==p||e[5]!==j||e[6]!==s?(P=x=>{j?j(x):n&&s&&p({to:"/$org/mcps/$connectionId/$collectionName/$itemId",params:{org:s,connectionId:n,collectionName:"prompts",itemId:encodeURIComponent(x.name)}})},e[3]=n,e[4]=p,e[5]=j,e[6]=s,e[7]=P):P=e[7];const M=P;let O;if(e[8]!==r||e[9]!==l||e[10]!==u||e[11]!==h){const x=!r||r.length===0?[]:l.trim()?(()=>{const S=l.toLowerCase();return r.filter(B=>B.name.toLowerCase().includes(S)||B.description&&B.description.toLowerCase().includes(S))})():r;O=!h||!u?x:[...x].sort((S,B)=>{const re=S[h]||"",ie=B[h]||"",H=String(re).localeCompare(String(ie));return u==="asc"?H:-H}),e[8]=r,e[9]=l,e[10]=u,e[11]=h,e[12]=O}else O=e[12];const d=O;let K;e[13]===Symbol.for("react.memo_cache_sentinel")?(K=[{id:"name",header:"Name",render:$e,sortable:!0},{id:"description",header:"Description",render:Te,cellClassName:"flex-1",sortable:!0}],e[13]=K):K=e[13];const A=K;let E;e[14]===Symbol.for("react.memo_cache_sentinel")?(E=A.filter(we).map(Ne),e[14]=E):E=e[14];const D=E;let $;e[15]!==f||e[16]!==a||e[17]!==T||e[18]!==V||e[19]!==u||e[20]!==h||e[21]!==y||e[22]!==w?($=V&&o.jsxs(Z,{children:[o.jsx(ee,{viewMode:w,onViewModeChange:m,sortKey:h,sortDirection:u,onSort:T,sortOptions:D}),o.jsx(se,{title:a?`${a}: Prompts`:"Prompts",url:y,icon:f??"description"})]}),e[15]=f,e[16]=a,e[17]=T,e[18]=V,e[19]=u,e[20]=h,e[21]=y,e[22]=w,e[23]=$):$=e[23];let I;e[24]===Symbol.for("react.memo_cache_sentinel")?(I=x=>{x.key==="Escape"&&(i(""),x.target.blur())},e[24]=I):I=e[24];let k;e[25]!==l?(k=o.jsx(te,{value:l,onChange:i,placeholder:"Search prompts...",onKeyDown:I}),e[25]=l,e[26]=k):k=e[26];let c;e[27]!==L||e[28]!==M||e[29]!==T||e[30]!==l||e[31]!==u||e[32]!==h||e[33]!==d||e[34]!==w?(c=w==="cards"?o.jsx("div",{className:"flex-1 overflow-auto p-5",children:d.length===0?o.jsx(F,{image:null,title:l?"No prompts found":"No prompts available",description:l?"Try adjusting your search terms":L}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:d.map(x=>o.jsx(ne,{className:"cursor-pointer transition-colors",onClick:()=>M(x),children:o.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[o.jsx(Q,{icon:null,name:x.name,size:"md",className:"shrink-0 shadow-sm"}),o.jsxs("div",{className:"flex flex-col gap-0",children:[o.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:x.name}),o.jsx("p",{className:"text-base text-muted-foreground line-clamp-2",children:x.description||"No description"})]})]})},x.name))})}):o.jsx(oe,{columns:A,data:d,isLoading:!1,sortKey:h,sortDirection:u,onSort:T,onRowClick:x=>M(x),emptyState:o.jsx(F,{image:null,title:l?"No prompts found":"No prompts available",description:l?"Try adjusting your search terms":L})}),e[27]=L,e[28]=M,e[29]=T,e[30]=l,e[31]=u,e[32]=h,e[33]=d,e[34]=w,e[35]=c):c=e[35];let C;e[36]!==k||e[37]!==c?(C=o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[k,c]}),e[36]=k,e[37]=c,e[38]=C):C=e[38];let v;return e[39]!==C||e[40]!==$?(v=o.jsxs(o.Fragment,{children:[$,C]}),e[39]=C,e[40]=$,e[41]=v):v=e[41],v}function Ne(t){return{id:t.id,label:typeof t.header=="string"?t.header:t.id}}function we(t){return t.sortable}function Te(t){return o.jsx("span",{className:"text-sm text-foreground",children:t.description||"—"})}function $e(t){return o.jsx("span",{className:"text-sm font-medium font-mono text-foreground",children:t.name})}function Ie(t){return t==="asc"?"desc":t==="desc"?null:"asc"}function ke(t){const e=q.c(6),{prompts:r,connectionId:n,org:s}=t,a=G(n),f=a?.title,j=a?.icon;let g;return e[0]!==n||e[1]!==s||e[2]!==r||e[3]!==f||e[4]!==j?(g=o.jsx(ve,{prompts:r,connectionId:n,org:s,connectionTitle:f,connectionIcon:j}),e[0]=n,e[1]=s,e[2]=r,e[3]=f,e[4]=j,e[5]=g):g=e[5],g}function Re(t){const e=q.c(2),{repository:r}=t;let n;return e[0]!==r?(n=o.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:o.jsx(Se,{repository:r})}),e[0]=r,e[1]=n):n=e[1],n}function _e(t){const e=q.c(39),{resources:r,connectionTitle:n,connectionIcon:s,onResourceClick:a,showToolbar:f,emptyMessage:j}=t,g=f===void 0?!0:f,N=j===void 0?"This connection doesn't have any resources yet.":j,L=J().location.href,[p,U]=z.useState(""),[y,l]=z.useState("table"),[i,w]=z.useState("name"),[m,h]=z.useState("asc");let R;e[0]!==m||e[1]!==i?(R=c=>{i===c?(h(De),m==="desc"&&w(void 0)):(w(c),h("asc"))},e[0]=m,e[1]=i,e[2]=R):R=e[2];const u=R;let _;e[3]!==a?(_=c=>{a&&a(c)},e[3]=a,e[4]=_):_=e[4];const b=_;let T;if(e[5]!==r||e[6]!==p||e[7]!==m||e[8]!==i){const c=!r||r.length===0?[]:p.trim()?(()=>{const C=p.toLowerCase();return r.filter(v=>v.uri.toLowerCase().includes(C)||v.name&&v.name.toLowerCase().includes(C)||v.description&&v.description.toLowerCase().includes(C))})():r;T=!i||!m?c:[...c].sort((C,v)=>{const x=C[i]||"",S=v[i]||"",B=String(x).localeCompare(String(S));return m==="asc"?B:-B}),e[5]=r,e[6]=p,e[7]=m,e[8]=i,e[9]=T}else T=e[9];const P=T;let M;e[10]===Symbol.for("react.memo_cache_sentinel")?(M=[{id:"name",header:"Name",render:Me,sortable:!0},{id:"uri",header:"URI",render:Ee,sortable:!0},{id:"description",header:"Description",render:Ae,cellClassName:"flex-1",sortable:!0},{id:"mimeType",header:"Type",render:Le,sortable:!0}],e[10]=M):M=e[10];const O=M;let d;e[11]===Symbol.for("react.memo_cache_sentinel")?(d=O.filter(Ve).map(Pe),e[11]=d):d=e[11];const K=d;let A;e[12]!==s||e[13]!==n||e[14]!==u||e[15]!==g||e[16]!==m||e[17]!==i||e[18]!==L||e[19]!==y?(A=g&&o.jsxs(Z,{children:[o.jsx(ee,{viewMode:y,onViewModeChange:l,sortKey:i,sortDirection:m,onSort:u,sortOptions:K}),o.jsx(se,{title:n?`${n}: Resources`:"Resources",url:L,icon:s??"folder"})]}),e[12]=s,e[13]=n,e[14]=u,e[15]=g,e[16]=m,e[17]=i,e[18]=L,e[19]=y,e[20]=A):A=e[20];let E;e[21]===Symbol.for("react.memo_cache_sentinel")?(E=c=>{c.key==="Escape"&&(U(""),c.target.blur())},e[21]=E):E=e[21];let D;e[22]!==p?(D=o.jsx(te,{value:p,onChange:U,placeholder:"Search resources...",onKeyDown:E}),e[22]=p,e[23]=D):D=e[23];let $;e[24]!==N||e[25]!==b||e[26]!==u||e[27]!==p||e[28]!==m||e[29]!==i||e[30]!==P||e[31]!==y?($=y==="cards"?o.jsx("div",{className:"flex-1 overflow-auto p-5",children:P.length===0?o.jsx(F,{image:null,title:p?"No resources found":"No resources available",description:p?"Try adjusting your search terms":N}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-4",children:P.map(c=>o.jsx(ne,{className:"cursor-pointer transition-colors",onClick:()=>b(c),children:o.jsxs("div",{className:"flex flex-col gap-4 p-6",children:[o.jsx(Q,{icon:null,name:c.name||c.uri,size:"md",className:"shrink-0 shadow-sm"}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:c.name||c.uri}),o.jsx("p",{className:"text-xs font-mono text-muted-foreground truncate",children:c.uri}),c.description&&o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-1",children:c.description})]})]})},c.uri))})}):o.jsx(oe,{columns:O,data:P,isLoading:!1,sortKey:i,sortDirection:m,onSort:u,onRowClick:c=>b(c),emptyState:o.jsx(F,{image:null,title:p?"No resources found":"No resources available",description:p?"Try adjusting your search terms":N})}),e[24]=N,e[25]=b,e[26]=u,e[27]=p,e[28]=m,e[29]=i,e[30]=P,e[31]=y,e[32]=$):$=e[32];let I;e[33]!==D||e[34]!==$?(I=o.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[D,$]}),e[33]=D,e[34]=$,e[35]=I):I=e[35];let k;return e[36]!==I||e[37]!==A?(k=o.jsxs(o.Fragment,{children:[A,I]}),e[36]=I,e[37]=A,e[38]=k):k=e[38],k}function Pe(t){return{id:t.id,label:typeof t.header=="string"?t.header:t.id}}function Ve(t){return t.sortable}function Le(t){return o.jsx("span",{className:"text-sm text-muted-foreground",children:t.mimeType||"—"})}function Ae(t){return o.jsx("span",{className:"text-sm text-foreground",children:t.description||"—"})}function Ee(t){return o.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:t.uri})}function Me(t){return o.jsx("span",{className:"text-sm font-medium text-foreground",children:t.name||t.uri})}function De(t){return t==="asc"?"desc":t==="desc"?null:"asc"}function Oe(t){const e=q.c(6),{resources:r,connectionId:n,org:s}=t,a=G(n),f=a?.title,j=a?.icon;let g;return e[0]!==n||e[1]!==s||e[2]!==r||e[3]!==f||e[4]!==j?(g=o.jsx(_e,{resources:r,connectionId:n,org:s,connectionTitle:f,connectionIcon:j}),e[0]=n,e[1]=s,e[2]=r,e[3]=f,e[4]=j,e[5]=g):g=e[5],g}function Be(t){const e=q.c(4),{tools:r,connectionId:n,org:s}=t;let a;return e[0]!==n||e[1]!==s||e[2]!==r?(a=o.jsx(Ce,{tools:r,connectionId:n,org:s}),e[0]=n,e[1]=s,e[2]=r,e[3]=a):a=e[3],a}function Ue(t){const e=q.c(62),{connection:r,connectionId:n,org:s,requestedTabId:a,collections:f,onUpdate:j,isUpdating:g,prompts:N,resources:V}=t,L=le();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={from:"/$org/mcps/$connectionId"},e[0]=p):p=e[0];const U=W(p);let y;e[1]!==n?(y={connectionId:n},e[1]=n,e[2]=y):y=e[2];const l=ue(y),i=l.isAuthenticated,w=r?.metadata?.repository,m=!!w?.url,h=r?.tools?.length??0,R=N.length,u=V.length;let _;e[3]===Symbol.for("react.memo_cache_sentinel")?(_={id:"settings",label:"Settings"},e[3]=_):_=e[3];let b;e[4]!==i||e[5]!==h?(b=i&&h>0?[{id:"tools",label:"Tools",count:h}]:[],e[4]=i,e[5]=h,e[6]=b):b=e[6];let T;e[7]!==i||e[8]!==R?(T=i&&R>0?[{id:"prompts",label:"Prompts",count:R}]:[],e[7]=i,e[8]=R,e[9]=T):T=e[9];let P;e[10]!==i||e[11]!==u?(P=i&&u>0?[{id:"resources",label:"Resources",count:u}]:[],e[10]=i,e[11]=u,e[12]=P):P=e[12];let M;if(e[13]!==f||e[14]!==m||e[15]!==i||e[16]!==b||e[17]!==T||e[18]!==P){let S;e[20]!==m?(S=m?[{id:"readme",label:"README"}]:[],e[20]=m,e[21]=S):S=e[21],M=[_,...b,...T,...P,...i?(f||[]).map(Ke):[],...S],e[13]=f,e[14]=m,e[15]=i,e[16]=b,e[17]=T,e[18]=P,e[19]=M}else M=e[19];const O=M,d=O.some(S=>S.id===a)?a:"settings";let K;e[22]!==U?(K=S=>{U({search:B=>({...B,tab:S}),replace:!0})},e[22]=U,e[23]=K):K=e[23];const A=K;let E;e[24]!==f?(E=f||[],e[24]=f,e[25]=E):E=e[25];let D;if(e[26]!==d||e[27]!==E){let S;e[29]!==d?(S=B=>B.name===d,e[29]=d,e[30]=S):S=e[30],D=E.find(S),e[26]=d,e[27]=E,e[28]=D}else D=e[28];const $=D;let I;e[31]!==L.history?(I=()=>L.history.back(),e[31]=L.history,e[32]=I):I=e[32];let k;e[33]!==d||e[34]!==A||e[35]!==O?(k=o.jsx(be,{children:o.jsx(ge,{tabs:O,activeTab:d,onTabChange:A})}),e[33]=d,e[34]=A,e[35]=O,e[36]=k):k=e[36];let c;e[37]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("div",{className:"flex h-full items-center justify-center",children:o.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),e[37]=c):c=e[37];let C;e[38]!==$||e[39]!==d||e[40]!==l.hasOAuthToken||e[41]!==l.isServerError||e[42]!==l.supportsOAuth||e[43]!==r||e[44]!==n||e[45]!==A||e[46]!==m||e[47]!==i||e[48]!==g||e[49]!==j||e[50]!==s||e[51]!==N||e[52]!==w||e[53]!==V?(C=o.jsx(z.Suspense,{fallback:c,children:d==="tools"?o.jsx(Be,{tools:r.tools??void 0,connectionId:n,org:s}):d==="prompts"?o.jsx(ke,{prompts:N,connectionId:n,org:s}):d==="resources"?o.jsx(Oe,{resources:V,connectionId:n,org:s}):d==="settings"?o.jsx(pe,{connection:r,onUpdate:j,isUpdating:g,isMCPAuthenticated:i,supportsOAuth:l.supportsOAuth,hasOAuthToken:l.hasOAuthToken,isServerError:l.isServerError,onViewReadme:m?()=>A("readme"):void 0}):d==="readme"&&m?o.jsx(Re,{repository:w}):$&&i?o.jsx(ye,{connectionId:n,org:s,activeCollection:$},d):o.jsx(F,{title:"Collection not found",description:"This collection may have been deleted or you may not have access."})}),e[38]=$,e[39]=d,e[40]=l.hasOAuthToken,e[41]=l.isServerError,e[42]=l.supportsOAuth,e[43]=r,e[44]=n,e[45]=A,e[46]=m,e[47]=i,e[48]=g,e[49]=j,e[50]=s,e[51]=N,e[52]=w,e[53]=V,e[54]=C):C=e[54];let v;e[55]!==d||e[56]!==C?(v=o.jsx("div",{className:"flex h-full w-full bg-background overflow-hidden",children:o.jsx("div",{className:"flex-1 flex flex-col min-w-0 bg-background overflow-auto",children:o.jsx(X,{children:C},d)})}),e[55]=d,e[56]=C,e[57]=v):v=e[57];let x;return e[58]!==I||e[59]!==k||e[60]!==v?(x=o.jsxs(je,{onBack:I,children:[k,v]}),e[58]=I,e[59]=k,e[60]=v,e[61]=x):x=e[61],x}function Ke(t){return{id:t.name,label:t.displayName}}function ze(){const t=q.c(29);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/$org/mcps/$connectionId"},t[0]=e):e=t[0];const r=W(e);let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/mcps/$connectionId"},t[1]=n):n=t[1];const{connectionId:s,org:a}=ce(n);let f;t[2]===Symbol.for("react.memo_cache_sentinel")?(f={from:"/shell/$org/mcps/$connectionId"},t[2]=f):f=t[2];const g=ae(f).tab||"settings",N=G(s),V=me(),L=de(N??void 0);let p;t[3]!==s?(p=[s],t[3]=s,t[4]=p):p=t[4];const{promptsMap:U}=fe(p);let y;t[5]!==s?(y=[s],t[5]=s,t[6]=y):y=t[6];const{resourcesMap:l}=he(y);let i;t[7]!==s||t[8]!==U?(i=U.get(s)??[],t[7]=s,t[8]=U,t[9]=i):i=t[9];const w=i;let m;t[10]!==s||t[11]!==l?(m=l.get(s)??[],t[10]=s,t[11]=l,t[12]=m):m=t[12];const h=m;let R;t[13]!==V.update||t[14]!==s?(R=async b=>{await V.update.mutateAsync({id:s,data:b})},t[13]=V.update,t[14]=s,t[15]=R):R=t[15];const u=R;if(!N){let b;return t[16]!==r||t[17]!==a?(b=o.jsx("div",{className:"flex h-full w-full bg-background",children:o.jsx(F,{title:"Connection not found",description:"This connection may have been deleted or you may not have access.",actions:o.jsx(xe,{variant:"outline",onClick:()=>r({to:"/$org/mcps",params:{org:a}}),children:"Back to connections"})})}),t[16]=r,t[17]=a,t[18]=b):b=t[18],b}let _;return t[19]!==V.update.isPending||t[20]!==L||t[21]!==N||t[22]!==s||t[23]!==u||t[24]!==a||t[25]!==w||t[26]!==g||t[27]!==h?(_=o.jsx(Ue,{org:a,connection:N,connectionId:s,requestedTabId:g,collections:L,onUpdate:u,isUpdating:V.update.isPending,prompts:w,resources:h}),t[19]=V.update.isPending,t[20]=L,t[21]=N,t[22]=s,t[23]=u,t[24]=a,t[25]=w,t[26]=g,t[27]=h,t[28]=_):_=t[28],_}function qe(){const t=q.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(X,{children:o.jsx(z.Suspense,{fallback:o.jsx("div",{className:"flex h-full items-center justify-center bg-background",children:o.jsx(Y,{size:32,className:"animate-spin text-muted-foreground"})}),children:o.jsx(ze,{})})}),t[0]=e):e=t[0],e}function ho(){const t=q.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(qe,{}),t[0]=e):e=t[0],e}export{ho as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aH as a,bC as t}from"./index-CexdbKny.js";const e="mcp.mesh",s=a(t,{target:"draft-7"});export{s as B,e as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as M,x as O}from"./index-CexdbKny.js";import{u as x}from"./useQuery-CDyjJxWa.js";import{u as I}from"./useMutation-CVUYIVK0.js";function L(e){try{return JSON.parse(e)}catch{return}}function $(e,s){const t=localStorage.getItem(e),o=t?L(t):void 0,n=typeof s=="function"?s(o):o??s;if(o===void 0||n!==o)try{const a=JSON.stringify(n);localStorage.setItem(e,a)}catch{}return n}function A(e,s){const t=M.c(25),o=O();let n;t[0]!==e?(n=["localStorage",e],t[0]=e,t[1]=n):n=t[1];const a=n;let r,i;t[2]!==s||t[3]!==e?(r=()=>$(e,s),i=()=>$(e,s),t[2]=s,t[3]=e,t[4]=r,t[5]=i):(r=t[4],i=t[5]);let u;t[6]!==a||t[7]!==r||t[8]!==i?(u={queryKey:a,queryFn:r,initialData:i,staleTime:1/0,gcTime:1/0},t[6]=a,t[7]=r,t[8]=i,t[9]=u):u=t[9];const{data:y}=x(u);let l;t[10]!==e?(l=async c=>{const v=JSON.stringify(c);return localStorage.setItem(e,v),c},t[10]=e,t[11]=l):l=t[11];let m;t[12]!==o||t[13]!==a?(m=c=>{o.setQueryData(a,c)},t[12]=o,t[13]=a,t[14]=m):m=t[14];let h;t[15]!==l||t[16]!==m?(h={mutationFn:l,onSuccess:m},t[15]=l,t[16]=m,t[17]=h):h=t[17];const g=I(h);let d;t[18]!==g||t[19]!==o||t[20]!==a?(d=c=>{const v=o.getQueryData(a),C=typeof c=="function"?c(v):c;g.mutate(C)},t[18]=g,t[19]=o,t[20]=a,t[21]=d):d=t[21];const p=d,S=y;let f;return t[22]!==p||t[23]!==S?(f=[S,p],t[22]=p,t[23]=S,t[24]=f):f=t[24],f}const D={decoChatOpen:()=>"mesh:decochat:open",threadManagerState:e=>`mesh:thread-manager-state:${e}`,chatSelectedModel:e=>`mesh:chat:selectedModel:${e}`,assistantChatActiveThread:(e,s)=>`mesh:assistant-chat:active-thread:${e}:${s}`,virtualMcpChatActiveThread:(e,s)=>`mesh:virtual-mcp-chat:active-thread:${e}:${s}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",sidebarOpen:()=>"mesh:sidebar-open",selectedRegistry:e=>`mesh:store:selected-registry:${e}`,orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,virtualMcpSystemPrompts:e=>`mesh:virtual-mcp:system-prompts:${e}`,storeShowStdio:()=>"mesh:store:show-stdio",developerMode:()=>"mesh:user:developer-mode",pluginConnection:(e,s)=>`mesh:plugin:connection:${e}:${s}`};export{D as L,A as u};
|