@decocms/mesh 2.133.1 → 2.133.2
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-C_-Exi_n.js → AlertCircle-BIVpB2eV.js} +1 -1
- package/dist/client/assets/{AlignLeft-DU7XXs04.js → AlignLeft-DWMdThfD.js} +1 -1
- package/dist/client/assets/{ArrowDown-Ci69NI9T.js → ArrowDown-CnXnoX-V.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DiQ6H1qe.js → ArrowLeft-CvCy8CyB.js} +1 -1
- package/dist/client/assets/{ArrowUp-YaPl1lq-.js → ArrowUp-8t9O2FqG.js} +1 -1
- package/dist/client/assets/{Check-AlxQ-j2G.js → Check-Bs28PslG.js} +1 -1
- package/dist/client/assets/{CheckCircle-BQbEhLAd.js → CheckCircle-BnSsCPeL.js} +1 -1
- package/dist/client/assets/{CheckDone01-CnA5MJ5u.js → CheckDone01-GZyUwk0p.js} +1 -1
- package/dist/client/assets/{CheckVerified02-9ppFNPbL.js → CheckVerified02-CmWWqvRE.js} +1 -1
- package/dist/client/assets/{ChevronDown-Bt1ewsqh.js → ChevronDown-CIw5H_8I.js} +1 -1
- package/dist/client/assets/{ChevronLeft-ZjYcxOdo.js → ChevronLeft-fmgWXUdB.js} +1 -1
- package/dist/client/assets/{ChevronRight-sqD7LMFa.js → ChevronRight-8LnYcsyR.js} +1 -1
- package/dist/client/assets/{Clock-CGeVATg-.js → Clock-D17OAEFV.js} +1 -1
- package/dist/client/assets/{Code01-X9LTEq8d.js → Code01-C0MNem7b.js} +1 -1
- package/dist/client/assets/{Container-Dt3fts2O.js → Container-C4kCziiV.js} +1 -1
- package/dist/client/assets/{Copy01-yMwUMo5Y.js → Copy01-Czr6qLQt.js} +1 -1
- package/dist/client/assets/{Dataflow03-GEBPM69Y.js → Dataflow03-COO3w9be.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-rnia2dDb.js → DotsHorizontal-cZJVkNRf.js} +1 -1
- package/dist/client/assets/{DotsVertical-DxigKHHt.js → DotsVertical-D9CMW5-2.js} +1 -1
- package/dist/client/assets/{Download01-axlmJqAw.js → Download01-B6ed2sYF.js} +1 -1
- package/dist/client/assets/{Edit01-Cg13Y9IR.js → Edit01-DLZcWIR-.js} +1 -1
- package/dist/client/assets/{Eye-D5VDCdLP.js → Eye-DPTzoZL8.js} +1 -1
- package/dist/client/assets/{File02-DasnEozT.js → File02-Cgzx7ek0.js} +1 -1
- package/dist/client/assets/{File06-B5xn-On2.js → File06-BzbT2v0z.js} +1 -1
- package/dist/client/assets/{FilterLines-7rCsQUMC.js → FilterLines-BilIABo8.js} +1 -1
- package/dist/client/assets/{Globe01-DghE3nSS.js → Globe01-BVjXPHzv.js} +1 -1
- package/dist/client/assets/{Globe02-DsDY7_VG.js → Globe02-vxtQsT0f.js} +1 -1
- package/dist/client/assets/{Grid01-C3osH3dx.js → Grid01-CILFuUHo.js} +1 -1
- package/dist/client/assets/{Hash02-D2cqLEQA.js → Hash02-BfcBwRkC.js} +1 -1
- package/dist/client/assets/{Home02-BwxX5zad.js → Home02-rg_Tmz0p.js} +1 -1
- package/dist/client/assets/{Image01-Dk65YqxA.js → Image01-B_6vFaZi.js} +1 -1
- package/dist/client/assets/{Inbox01-kmB3TeMO.js → Inbox01-DNp0SuVa.js} +1 -1
- package/dist/client/assets/{InfoCircle-C0U8p7zQ.js → InfoCircle-D_SeJKcX.js} +1 -1
- package/dist/client/assets/{Key01-CqhHrRJL.js → Key01-BjbQkebS.js} +1 -1
- package/dist/client/assets/{LayersTwo01-BFhpnCtq.js → LayersTwo01-BexG7k2g.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CW10Mj8C.js → LayoutLeft-CN9jLsLc.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DdPfa8wq.js → LinkExternal01-DPyIyKMU.js} +1 -1
- package/dist/client/assets/{List-iHNJ390y.js → List-BcuB27Kb.js} +1 -1
- package/dist/client/assets/{Loading01-SjZGs3Wk.js → Loading01-W-w3cVps.js} +1 -1
- package/dist/client/assets/{Lock01-CryAxM1F.js → Lock01-C37ifJ66.js} +1 -1
- package/dist/client/assets/{Play-CKKDGI7M.js → Play-BVXIxZqO.js} +1 -1
- package/dist/client/assets/{Plus-DXYydVCi.js → Plus-7RI9qITc.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-DT9wSPl_.js → RefreshCcw01-BM6X0J3F.js} +1 -1
- package/dist/client/assets/{Save01-w3vLU2XF.js → Save01-83pceB_J.js} +1 -1
- package/dist/client/assets/{SearchMd-CSKcblxx.js → SearchMd-BzFnoImC.js} +1 -1
- package/dist/client/assets/{Settings01-Dkx2ZoN9.js → Settings01-D3dDBLbY.js} +1 -1
- package/dist/client/assets/{Shield01-BqITe6MU.js → Shield01-qdbJX99G.js} +1 -1
- package/dist/client/assets/{Terminal-B4v75vOD.js → Terminal-DEkQfpQH.js} +1 -1
- package/dist/client/assets/{Trash01-CDDpTvNv.js → Trash01-BsNnpu_l.js} +1 -1
- package/dist/client/assets/{Upload01-DAiUnxPv.js → Upload01-Jb2KX5F9.js} +1 -1
- package/dist/client/assets/{Users03-BXHamAas.js → Users03-BY0qO7qD.js} +1 -1
- package/dist/client/assets/{X-BHBlYu74.js → X-B9LxUp5o.js} +1 -1
- package/dist/client/assets/{XCircle-Bm1DtLmf.js → XCircle-Dkkdz5ph.js} +1 -1
- package/dist/client/assets/{XClose-B0OIa3qG.js → XClose-7hYEQUhK.js} +1 -1
- package/dist/client/assets/{Zap-DYif66ZC.js → Zap-iEj-0nMA.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-131FyINm.js → agent-connections-preview-DNcTIqVr.js} +1 -1
- package/dist/client/assets/{agent-detail-BQD2V8eu.js → agent-detail-BdpmQjrg.js} +1 -1
- package/dist/client/assets/{agents-BChxlMJi.js → agents-kyg0nDcz.js} +1 -1
- package/dist/client/assets/{alert-dialog-DRnSCcWl.js → alert-dialog-DQT_qq2D.js} +1 -1
- package/dist/client/assets/{auth-catchall-qZjolz1d.js → auth-catchall--SSmWnAf.js} +1 -1
- package/dist/client/assets/{avatar-BsFgSPZd.js → avatar-CV6z8E70.js} +1 -1
- package/dist/client/assets/{badge-BZU2aZ4g.js → badge-DaJA40lr.js} +1 -1
- package/dist/client/assets/{binder-CXy7pGaI.js → binder-Bx_2YVEH.js} +1 -1
- package/dist/client/assets/{breadcrumb-CkhUU1qO.js → breadcrumb-h53M2ozZ.js} +1 -1
- package/dist/client/assets/{card-BiGYvdPr.js → card-HOT-tKY7.js} +1 -1
- package/dist/client/assets/{chart-x30PoZrw.js → chart-BIHnGavY.js} +1 -1
- package/dist/client/assets/{checkbox-DaiL5KlM.js → checkbox-C2xwBknU.js} +1 -1
- package/dist/client/assets/{circle-alert-D5aKQND0.js → circle-alert-BRVau5r5.js} +1 -1
- package/dist/client/assets/{collapsible-Bqyw5z5a.js → collapsible-DRIF4wXT.js} +1 -1
- package/dist/client/assets/{collection-detail-Bder-uOv.js → collection-detail-C8c5RTfO.js} +1 -1
- package/dist/client/assets/{collection-search-Bkt-jVWx.js → collection-search-DWb-q4sb.js} +1 -1
- package/dist/client/assets/{collection-tab-DILgyiiN.js → collection-tab-CGcalnFw.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-c85b97QJ.js → collection-table-wrapper-LUpcpQuR.js} +1 -1
- package/dist/client/assets/{collection-tabs-ywHh3L-3.js → collection-tabs-wwfnwWzq.js} +1 -1
- package/dist/client/assets/{command-BLXAYQCa.js → command-BL2WDnzB.js} +1 -1
- package/dist/client/assets/{connect-BJqi59zN.js → connect-BA2fi6ZL.js} +1 -1
- package/dist/client/assets/{connection-card-CRg7yGx3.js → connection-card-CbQYVkic.js} +1 -1
- package/dist/client/assets/{connection-detail-D1-5uzSn.js → connection-detail-CqhIu8V8.js} +1 -1
- package/dist/client/assets/{connections-D1tXy5Nn.js → connections-Bqt-ueC2.js} +1 -1
- package/dist/client/assets/{constants-2Gp-yGJ1.js → constants-Bj4b22ad.js} +1 -1
- package/dist/client/assets/constants-DTlOAYW2.js +1 -0
- package/dist/client/assets/{create-organization-dialog-CtQ-v5j4.js → create-organization-dialog-CHicv9TM.js} +1 -1
- package/dist/client/assets/{create-project-dialog-DpFucZww.js → create-project-dialog-BB0XeLGb.js} +1 -1
- package/dist/client/assets/{danger-CHhKecE7.js → danger-CYug_-FH.js} +1 -1
- package/dist/client/assets/{danger-zone-B1ksqQ3N.js → danger-zone-DJn-yaAs.js} +1 -1
- package/dist/client/assets/{decopilot-events-DlkvGkzj.js → decopilot-events-CdHUYzEf.js} +1 -1
- package/dist/client/assets/{dependencies-DO7dUDR7.js → dependencies-BQ4LI5wU.js} +1 -1
- package/dist/client/assets/{dialog-BeE7uUPn.js → dialog-DDOb23Pi.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B0Dgts11.js → dropdown-menu-BaaJ3KIr.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-ChmoTPch.js → dynamic-plugin-layout-DWZ0FIFu.js} +1 -1
- package/dist/client/assets/{editable-task-title--9hhF-R6.js → editable-task-title-nQdI1V_W.js} +1 -1
- package/dist/client/assets/{empty-state-DE4SQU5S.js → empty-state-cgNnxJVh.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CBMsqTh6.js → env-vars-editor-DIkYTN09.js} +1 -1
- package/dist/client/assets/{extract-connection-data-0trSaHAT.js → extract-connection-data-DSMZDJ4i.js} +1 -1
- package/dist/client/assets/{file-browser-0DYVKNPK.js → file-browser-B5uJssDR.js} +2 -2
- package/dist/client/assets/{form-DNs_mLgF.js → form-CZlsOGpj.js} +1 -1
- package/dist/client/assets/{general-CC_F5c1Q.js → general-BPWx4fPN.js} +1 -1
- package/dist/client/assets/{grid-view-Y6fAVOxf.js → grid-view-Bz5fCwwy.js} +1 -1
- package/dist/client/assets/{home-DXg-PZRS.js → home-DHOzeT_v.js} +1 -1
- package/dist/client/assets/{index-C_SwSaaG.js → index-B-s7dcGH.js} +1 -1
- package/dist/client/assets/{index-DTgZok4N.js → index-BiG-bBX7.js} +3 -3
- package/dist/client/assets/{index-BG6VshDR.js → index-BxikKkX5.js} +1 -1
- package/dist/client/assets/{index--9MdKIVD.js → index-CAR0mh84.js} +1 -1
- package/dist/client/assets/{index-eYcb2Cm9.js → index-CBDYR7h7.js} +1 -1
- package/dist/client/assets/{index-Gr3qtElA.js → index-D1gbzHrb.js} +1 -1
- package/dist/client/assets/{index-BMtw0aq_.js → index-ehKjC5PZ.js} +1 -1
- package/dist/client/assets/{index-C6fMaWPS.js → index-jbQKqjQl.js} +1 -1
- package/dist/client/assets/{index-DqmnWcee.js → index-mMuYpq4A.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Dy7IOO2y.js → infiniteQueryObserver-BZCRT6X1.js} +1 -1
- package/dist/client/assets/{input-CjsuYubG.js → input-BcOk4EWn.js} +1 -1
- package/dist/client/assets/{integration-icon-BqSOA-1d.js → integration-icon-DJplt18U.js} +1 -1
- package/dist/client/assets/{label-ND6ncjGS.js → label-BLk50aKt.js} +1 -1
- package/dist/client/assets/{layout-CKzU3ZCb.js → layout-6pwn8f6O.js} +1 -1
- package/dist/client/assets/{layout-K29HidGl.js → layout-BluQBehB.js} +1 -1
- package/dist/client/assets/{localstorage-keys-Cenhbz-P.js → localstorage-keys-BS2STbF7.js} +1 -1
- package/dist/client/assets/{login-oxVPXFpk.js → login-CGh2490Y.js} +1 -1
- package/dist/client/assets/{markdown-DI_NQ3zj.js → markdown-94xyd8w7.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D2qbe9d6.js → mcp-app-renderer-CPkL4-A0.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BGy49NaP.js → mcp-oauth-DhVZXZzz.js} +1 -1
- package/dist/client/assets/{mcp-server-card-Dn8mS4B0.js → mcp-server-card-Csi3P08i.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BJrSdPXE.js → mcp-server-detail-DPle4t4_.js} +2 -2
- package/dist/client/assets/{members-DZd5xLHT.js → members-DdERnJEy.js} +1 -1
- package/dist/client/assets/{monitoring-DpcldHRD.js → monitoring-DljoOm7H.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-Dua9qsND.js → monitoring-dashboard-edit-CA-n4NwW.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-X9A7Dt7e.js → monitoring-dashboard-view-CA9jMLxL.js} +1 -1
- package/dist/client/assets/{oauth-callback-CsqoN40N.js → oauth-callback-BeMNWxMx.js} +1 -1
- package/dist/client/assets/{page-Cx3Xt8ip.js → page-B-g-Vlk_.js} +1 -1
- package/dist/client/assets/{page-CLamcNIQ.js → page-Dd_JJkvy.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-Df_tIhim.js → plugin-empty-state-Beu1zYui.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BV6g5sMv.js → plugin-empty-state-C3IVEK8r.js} +1 -1
- package/dist/client/assets/{plugin-header-ClbYQgeN.js → plugin-header-B0VvIolY.js} +1 -1
- package/dist/client/assets/{plugin-header-CsoLpSwS.js → plugin-header-K9IDC0OG.js} +1 -1
- package/dist/client/assets/plugins-Cw7F1EwF.js +1 -0
- package/dist/client/assets/{popover-C2X8YaiC.js → popover-Cnhlur36.js} +1 -1
- package/dist/client/assets/{project-app-view-CkhQ-sFM.js → project-app-view-DdjQoakQ.js} +1 -1
- package/dist/client/assets/{project-layout-DcmZkb79.js → project-layout-COuxbNbP.js} +1 -1
- package/dist/client/assets/{project-plugins-BxtIWCHr.js → project-plugins-DlaP9lSP.js} +1 -1
- package/dist/client/assets/{projects-list-B9ZNjsmc.js → projects-list-Cjk5rvoU.js} +1 -1
- package/dist/client/assets/{readme-viewer-DQ57Paqf.js → readme-viewer-D1PTXNQQ.js} +1 -1
- package/dist/client/assets/{registry-layout-BOuKDda5.js → registry-layout-C_3CFS9T.js} +1 -1
- package/dist/client/assets/{registry-utils-BFXjOPvi.js → registry-utils-B4prNmYa.js} +1 -1
- package/dist/client/assets/{reports-layout-_5crmBff.js → reports-layout-BTeFiemL.js} +1 -1
- package/dist/client/assets/{reset-password-Qo3jQxbB.js → reset-password-BOnVZBj0.js} +1 -1
- package/dist/client/assets/{resizable-BotMD0Ea.js → resizable-BC2aG7ea.js} +1 -1
- package/dist/client/assets/{save-actions-BGfSClkF.js → save-actions-p2U4N3h5.js} +1 -1
- package/dist/client/assets/{scroll-area-CiqOJ4_4.js → scroll-area-CrSif9aa.js} +1 -1
- package/dist/client/assets/{select-CwGh16En.js → select-DJV0GpEL.js} +1 -1
- package/dist/client/assets/{shell-layout-DOy4fAYb.js → shell-layout-DkJCvYuh.js} +2 -2
- package/dist/client/assets/{sidebar-settings-Ctg4uu33.js → sidebar-settings-C9nkZoUb.js} +1 -1
- package/dist/client/assets/{skeleton-DZ7Qc_fE.js → skeleton-DhcP44Ov.js} +1 -1
- package/dist/client/assets/{spinner-CF1sqMoC.js → spinner-DSMOMT7g.js} +1 -1
- package/dist/client/assets/{store-invite-BbaXHihy.js → store-invite-CrF5fKpc.js} +1 -1
- package/dist/client/assets/{switch-BO1AHmQl.js → switch-CR-VYNUs.js} +1 -1
- package/dist/client/assets/{table-CZRzSdcB.js → table-DxvlU5EN.js} +1 -1
- package/dist/client/assets/{tabs-DkvkxCCI.js → tabs-C-5F-MJ5.js} +1 -1
- package/dist/client/assets/tasks-KFAnwTNo.js +1 -0
- package/dist/client/assets/{tasks-panel-Bl5BMQl6.js → tasks-panel-CmBpoAsV.js} +1 -1
- package/dist/client/assets/{textarea-Cp-ThsnH.js → textarea-Bkod2qAV.js} +1 -1
- package/dist/client/assets/{time-range-picker-CXsB0sBK.js → time-range-picker-CygOsj38.js} +1 -1
- package/dist/client/assets/{toggle-group-CIpiKQbG.js → toggle-group-CwfkuVwg.js} +1 -1
- package/dist/client/assets/{tools-list-BYhjzTws.js → tools-list-CmIBKUpX.js} +1 -1
- package/dist/client/assets/{tooltip-B2vpv_WH.js → tooltip-BacoSwd7.js} +1 -1
- package/dist/client/assets/{topbar-portal-Dy36ZPgB.js → topbar-portal-Dfkwqxry.js} +1 -1
- package/dist/client/assets/{types-DeMEWRHV.js → types-C6Uddd8z.js} +1 -1
- package/dist/client/assets/{use-binding-CXeaDqWF.js → use-binding-CoVeLP6R.js} +1 -1
- package/dist/client/assets/{use-connection-Du5eRm0t.js → use-connection-CsobI-JA.js} +1 -1
- package/dist/client/assets/{use-copy-5Xu6yo2D.js → use-copy-De63ENVh.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-EqzJGE7y.js → use-create-virtual-mcp-52zuHZ4A.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-D98zOCZs.js → use-install-from-registry-BUdVd5Au.js} +1 -1
- package/dist/client/assets/{use-list-state-Dxk-n9cc.js → use-list-state-DZ0uTI_k.js} +1 -1
- package/dist/client/assets/{use-llm-B4rO8f2r.js → use-llm-DTbAtUds.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-Bf8HKw75.js → use-mcp-resources-ucs4znYI.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-v3YYc4L1.js → use-mcp-tools-nHTt7uoJ.js} +1 -1
- package/dist/client/assets/{use-members-D4kqyRbv.js → use-members-C4nvWeOW.js} +1 -1
- package/dist/client/assets/{use-mobile-II1SQS1g.js → use-mobile-BwubTGYW.js} +1 -1
- package/dist/client/assets/{use-project-DEgKISl8.js → use-project-BVlUC7fM.js} +1 -1
- package/dist/client/assets/{use-settings-modal-BJVHprSk.js → use-settings-modal-BivXkS-c.js} +1 -1
- package/dist/client/assets/{use-view-mode-D38VMwz6.js → use-view-mode-RJVvlb7k.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CS7dIIbK.js → use-virtual-mcp-r6ou4ewu.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BZXsD1Nv.js +1 -0
- package/dist/client/assets/{useMutation-B99hCaMl.js → useMutation-Cxle_Mtw.js} +1 -1
- package/dist/client/assets/useQuery-Us1whSan.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DcGj9DQ4.js +1 -0
- package/dist/client/assets/{user-BncBYJfn.js → user-DiQL4i6w.js} +1 -1
- package/dist/client/assets/{workflow-DS5DwWhu.js → workflow-CY-tfdwy.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-DTNMmCfY.js +0 -1
- package/dist/client/assets/plugins-BA5p5lXm.js +0 -1
- package/dist/client/assets/tasks-BSVHqtcQ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DvriYWG_.js +0 -1
- package/dist/client/assets/useQuery-C-DbMOQt.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CX_HgzHm.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as C,j as t,B as R,c as D,n as xe,$ as re,E as ge,u as fe,m as ne,K as oe,aD as pe,e as he,b as je}from"./index-
|
|
1
|
+
import{r as C,j as t,B as R,c as D,n as xe,$ as re,E as ge,u as fe,m as ne,K as oe,aD as pe,e as he,b as je}from"./index-BiG-bBX7.js";import{a as be,u as ye}from"./constants-Bj4b22ad.js";import{p as ee,a as ce,s as ve,b as Ne,e as me,i as we,T as ke}from"./time-range-picker-CygOsj38.js";import{V as Se,a as $e}from"./layout-BluQBehB.js";import{b as de,c as Ce,d as Fe,e as Re,B as De,a as Te}from"./breadcrumb-h53M2ozZ.js";import{B as _e}from"./badge-DaJA40lr.js";import{I as ue}from"./input-BcOk4EWn.js";import{a as Pe,b as Ie,P as Me}from"./popover-Cnhlur36.js";import{S as ze,a as Be,b as Ee,c as Oe,d as Ae}from"./select-DJV0GpEL.js";import{T as Ke}from"./textarea-Bkod2qAV.js";import{T as Le,a as Ve,b as qe}from"./tooltip-BacoSwd7.js";import{i as Qe}from"./Code01-C0MNem7b.js";import{i as We}from"./FilterLines-BilIABo8.js";import{c as Ge}from"./Grid01-CILFuUHo.js";import{s as He}from"./Plus-7RI9qITc.js";import{s as Ye}from"./Trash01-BsNnpu_l.js";import{s as Ue}from"./XClose-7hYEQUhK.js";import"./Check-Bs28PslG.js";import"./Copy01-Czr6qLQt.js";import"./Download01-B6ed2sYF.js";import"./Key01-BjbQkebS.js";import"./Play-BVXIxZqO.js";import"./scroll-area-CrSif9aa.js";import"./spinner-DSMOMT7g.js";import"./ChevronDown-CIw5H_8I.js";import"./Clock-D17OAEFV.js";import"./ChevronLeft-fmgWXUdB.js";import"./ChevronRight-8LnYcsyR.js";import"./index-ehKjC5PZ.js";import"./localstorage-keys-BS2STbF7.js";import"./useQuery-Us1whSan.js";import"./useMutation-Cxle_Mtw.js";import"./index-BxikKkX5.js";const Je=[{value:"eq",label:"equals"},{value:"contains",label:"contains"},{value:"in",label:"in (list)"},{value:"exists",label:"exists"}];function Xe({value:s,onChange:e}){const[r,i]=C.useState(!1),[l,n]=C.useState("raw"),[c,o]=C.useState(s),[m,d]=C.useState(ee(s)),g=C.useRef(s);g.current!==s&&(g.current=s,o(s),d(ee(s)));const f=()=>{e(c.filter(a=>a.key.trim()))},p=()=>{const a=ce(m);o(a),e(a)},j=()=>{if(l==="raw"){const a=ce(m);o(a),n("form")}else d(ee(c)),n("raw")},v=(a,x)=>{const u=[...c],h=u[a];h&&(u[a]={key:x.key??h.key,operator:x.operator??h.operator,value:x.value??h.value},o(u))},b=()=>{o([...c,{key:"",operator:"eq",value:""}])},w=a=>{const x=c.filter((u,h)=>h!==a);o(x),d(ee(x)),e(x.filter(u=>u.key.trim()))},y=()=>{o([]),d(""),e([]),i(!1)},k=s.filter(a=>a.key.trim()).length;return t.jsxs("div",{className:"flex items-center gap-1.5",children:[s.filter(a=>a.key.trim()).map((a,x)=>{const u=a.operator==="exists"?`${a.key}?`:a.operator==="contains"?`${a.key}~${a.value}`:a.operator==="in"?`${a.key}@${a.value}`:`${a.key}=${a.value}`;return t.jsxs(_e,{variant:"secondary",className:"gap-1 pl-2 pr-1 h-7 text-xs font-mono font-normal cursor-default",children:[u,t.jsx("button",{type:"button",className:"ml-0.5 rounded-full p-0.5 hover:bg-muted-foreground/20 transition-colors",onClick:()=>{const h=s.filter(($,F)=>F!==x);e(h)},children:t.jsx(Ue,{size:12})})]},`${a.key}-${x}`)}),t.jsxs(Pe,{open:r,onOpenChange:i,children:[t.jsx(Ie,{asChild:!0,children:t.jsxs(R,{variant:"outline",size:"sm",className:"h-7 px-2 gap-1.5",children:[t.jsx(We,{className:"h-3.5 w-3.5 text-muted-foreground"}),k===0?t.jsx("span",{className:"text-sm",children:"Filter"}):t.jsx("span",{className:"text-sm",children:k})]})}),t.jsxs(Me,{className:"w-[380px] p-4",align:"end",sideOffset:4,children:[t.jsxs("div",{className:"flex items-center justify-between mb-3",children:[t.jsx("h4",{className:"text-sm font-medium",children:"Property Filters"}),t.jsxs(Le,{children:[t.jsx(Ve,{asChild:!0,children:t.jsx(R,{variant:"ghost",size:"icon",className:"h-6 w-6",onClick:j,children:l==="raw"?t.jsx(Ge,{size:14}):t.jsx(Qe,{size:14})})}),t.jsx(qe,{children:l==="raw"?"Switch to form view":"Switch to raw text"})]})]}),l==="raw"?t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(Ke,{placeholder:`Paste property filters here:
|
|
2
2
|
thread_id=abc123
|
|
3
3
|
user~test
|
|
4
4
|
debug?`,value:m,onChange:a=>d(a.target.value),onBlur:p,onKeyDown:a=>{a.key==="Enter"&&a.metaKey&&p()},className:"font-mono text-sm min-h-[80px] resize-none"}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:["One per line:"," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key=value"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key~contains"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key@in_list"})," ",t.jsx("code",{className:"bg-muted px-1 rounded",children:"key?"})]})]}):t.jsxs("div",{className:"space-y-3",children:[c.map((a,x)=>t.jsxs("div",{className:"p-2.5 rounded-md border border-border bg-muted/30 space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("span",{className:"text-xs text-muted-foreground",children:["Filter ",x+1]}),t.jsx(R,{variant:"ghost",size:"icon",className:"h-6 w-6 text-muted-foreground hover:text-destructive",onClick:()=>w(x),children:t.jsx(Ye,{size:12})})]}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(ue,{placeholder:"Key (e.g., thread_id)",value:a.key,onChange:u=>v(x,{key:u.target.value}),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&f()},className:"flex-1 font-mono text-sm"}),t.jsxs(ze,{value:a.operator,onValueChange:u=>{const h=[...c],$=h[x];$&&(h[x]={...$,operator:u,value:u==="exists"?"":$.value},o(h),e(h.filter(F=>F.key.trim())))},children:[t.jsx(Be,{className:"w-28",children:t.jsx(Ee,{})}),t.jsx(Oe,{children:Je.map(u=>t.jsx(Ae,{value:u.value,children:u.label},u.value))})]})]}),a.operator!=="exists"&&t.jsx(ue,{placeholder:"Value",value:a.value,onChange:u=>v(x,{value:u.target.value}),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&f()},className:"w-full font-mono text-sm"})]},x)),t.jsxs(R,{variant:"outline",size:"sm",className:"w-full",onClick:b,children:[t.jsx(He,{size:14,className:"mr-1.5"}),"Add filter"]})]}),k>0&&t.jsx(R,{variant:"ghost",size:"sm",className:"w-full mt-3 text-muted-foreground",onClick:y,children:"Clear all filters"})]})]})]})}function G(s,e){return e||Number.isInteger(s)?s>=1e6?`${(s/1e6).toFixed(1)}M`:s>=1e3?`${(s/1e3).toFixed(1)}K`:s.toLocaleString():s>=1e6?`${(s/1e6).toFixed(2)}M`:s>=1e3?`${(s/1e3).toFixed(2)}K`:s.toFixed(2)}function ae(s){return{sum:"Total",avg:"Average",min:"Minimum",max:"Maximum",count:"Count",last:"Latest"}[s]??s}function le(s){const e=D.c(7),{name:r,subtitle:i}=s;let l;e[0]!==r?(l=t.jsx("div",{className:"text-sm font-medium text-foreground",children:r}),e[0]=r,e[1]=l):l=e[1];let n;e[2]!==i?(n=t.jsx("div",{className:"text-xs text-muted-foreground",children:i}),e[2]=i,e[3]=n):n=e[3];let c;return e[4]!==l||e[5]!==n?(c=t.jsxs("div",{className:"px-4 py-3",children:[l,n]}),e[4]=l,e[5]=n,e[6]=c):c=e[6],c}function Ze(s){const e=D.c(13),{widget:r,result:i}=s,l=i?.value??0,n=r.aggregation.fn==="count",c=r.name;let o;e[0]!==r.aggregation.fn?(o=ae(r.aggregation.fn),e[0]=r.aggregation.fn,e[1]=o):o=e[1];let m;e[2]!==o||e[3]!==r.name?(m=t.jsx(le,{name:c,subtitle:o}),e[2]=o,e[3]=r.name,e[4]=m):m=e[4];let d;e[5]!==n||e[6]!==l?(d=G(l,n),e[5]=n,e[6]=l,e[7]=d):d=e[7];let g;e[8]!==d?(g=t.jsx("div",{className:"px-4 pb-4 mt-auto",children:t.jsx("div",{className:"text-4xl font-bold tabular-nums",children:d})}),e[8]=d,e[9]=g):g=e[9];let f;return e[10]!==m||e[11]!==g?(f=t.jsxs("div",{className:"border rounded-lg bg-card flex flex-col h-full",children:[m,g]}),e[10]=m,e[11]=g,e[12]=f):f=e[12],f}function et(s){const e=D.c(15),{widget:r,result:i}=s;let l,n;e[0]!==i?.groups?(l=i?.groups??[],n=Math.max(...l.map(tt),1),e[0]=i?.groups,e[1]=l,e[2]=n):(l=e[1],n=e[2]);const c=n;let o;e[3]!==r.aggregation.fn||e[4]!==r.aggregation.groupBy?(o=r.aggregation.groupBy?`Grouped by ${r.aggregation.groupBy}`:ae(r.aggregation.fn),e[3]=r.aggregation.fn,e[4]=r.aggregation.groupBy,e[5]=o):o=e[5];let m;e[6]!==o||e[7]!==r.name?(m=t.jsx(le,{name:r.name,subtitle:o}),e[6]=o,e[7]=r.name,e[8]=m):m=e[8];let d;e[9]!==l||e[10]!==c?(d=t.jsx("div",{className:"max-h-[300px] overflow-auto",children:l.length===0?t.jsx("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:"No data available for this query"}):t.jsx("div",{className:"divide-y",children:l.map(f=>t.jsxs("div",{className:"flex items-center gap-3 px-4 py-2",children:[t.jsx("span",{className:"text-sm truncate flex-1 min-w-0",children:f.key||"(empty)"}),t.jsxs("div",{className:"flex items-center gap-2 shrink-0 w-32",children:[t.jsx("div",{className:"flex-1 h-1.5 bg-muted rounded-full overflow-hidden",children:t.jsx("div",{className:"h-full bg-primary rounded-full",style:{width:`${f.value/c*100}%`}})}),t.jsx("span",{className:"text-xs tabular-nums text-muted-foreground w-10 text-right",children:G(f.value,!0)})]})]},f.key))})}),e[9]=l,e[10]=c,e[11]=d):d=e[11];let g;return e[12]!==m||e[13]!==d?(g=t.jsxs("div",{className:"border rounded-lg bg-card overflow-hidden flex flex-col h-full",children:[m,d]}),e[12]=m,e[13]=d,e[14]=g):g=e[14],g}function tt(s){return s.value}function st(s){const e=D.c(37),{widget:r,result:i}=s;let l,n,c,o,m,d,g,f,p;if(e[0]!==i?.timeseries||e[1]!==r.aggregation.fn||e[2]!==r.aggregation.interval||e[3]!==r.name){p=i?.timeseries??[],n=Math.max(...p.map(at),1);const a=p.reduce(rt,0);l=r.aggregation.fn==="count",f="border rounded-lg bg-card overflow-hidden flex flex-col h-full",d="flex items-start justify-between pr-4";const x=r.name;let u;e[13]!==r.aggregation.fn?(u=ae(r.aggregation.fn),e[13]=r.aggregation.fn,e[14]=u):u=e[14];const h=`${u} per ${r.aggregation.interval}`;e[15]!==h||e[16]!==r.name?(g=t.jsx(le,{name:x,subtitle:h}),e[15]=h,e[16]=r.name,e[17]=g):g=e[17],m="text-right pt-3",c="text-lg font-semibold tabular-nums leading-tight",o=G(a,l),e[0]=i?.timeseries,e[1]=r.aggregation.fn,e[2]=r.aggregation.interval,e[3]=r.name,e[4]=l,e[5]=n,e[6]=c,e[7]=o,e[8]=m,e[9]=d,e[10]=g,e[11]=f,e[12]=p}else l=e[4],n=e[5],c=e[6],o=e[7],m=e[8],d=e[9],g=e[10],f=e[11],p=e[12];let j;e[18]!==c||e[19]!==o?(j=t.jsx("div",{className:c,children:o}),e[18]=c,e[19]=o,e[20]=j):j=e[20];let v;e[21]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"text-xs text-muted-foreground",children:"total"}),e[21]=v):v=e[21];let b;e[22]!==m||e[23]!==j?(b=t.jsxs("div",{className:m,children:[j,v]}),e[22]=m,e[23]=j,e[24]=b):b=e[24];let w;e[25]!==d||e[26]!==g||e[27]!==b?(w=t.jsxs("div",{className:d,children:[g,b]}),e[25]=d,e[26]=g,e[27]=b,e[28]=w):w=e[28];let y;e[29]!==l||e[30]!==n||e[31]!==p?(y=t.jsx("div",{className:"px-4 pb-3 flex-1 flex flex-col min-h-0",children:p.length===0?t.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:"No data available"}):t.jsxs("div",{className:"flex-1 flex flex-col",children:[t.jsx("div",{className:"text-[10px] text-muted-foreground mb-1 tabular-nums",children:G(n,l)}),t.jsx("div",{className:"flex items-end gap-[2px] flex-1",children:p.map((a,x)=>t.jsx("div",{className:"group relative flex-1 bg-primary/70 rounded-t transition-all hover:bg-primary cursor-default",style:{height:`${a.value/n*100}%`,minHeight:a.value>0?"3px":"0px"},children:t.jsx("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-1.5 hidden group-hover:block z-10 pointer-events-none",children:t.jsx("div",{className:"bg-foreground text-background text-[10px] px-1.5 py-0.5 rounded whitespace-nowrap tabular-nums",children:G(a.value,l)})})},x))}),t.jsx("div",{className:"flex justify-between text-[10px] text-muted-foreground mt-1.5 tabular-nums",children:p.length>0&&(()=>{const a=new Date(p[0].timestamp),x=new Date(p[p.length-1].timestamp),$=x.getTime()-a.getTime()>864e5?{month:"short",day:"numeric"}:{hour:"2-digit",minute:"2-digit"};return t.jsxs(t.Fragment,{children:[t.jsx("span",{children:a.toLocaleString([],$)}),t.jsx("span",{children:x.toLocaleString([],$)})]})})()})]})}),e[29]=l,e[30]=n,e[31]=p,e[32]=y):y=e[32];let k;return e[33]!==w||e[34]!==y||e[35]!==f?(k=t.jsxs("div",{className:f,children:[w,y]}),e[33]=w,e[34]=y,e[35]=f,e[36]=k):k=e[36],k}function rt(s,e){return s+e.value}function at(s){return s.value}function lt(s){const e=D.c(81),{dashboardId:r,timeRange:i,propertyFilters:l,onEdit:n,onRefresh:c,onTimeRangeChange:o,onPropertyFiltersChange:m}=s,{org:d,project:g,locator:f}=fe();let p;e[0]!==d.id?(p={connectionId:be,orgId:d.id},e[0]=d.id,e[1]=p):p=e[1];const j=ye(p);let v;e[2]!==r||e[3]!==f?(v=oe.monitoringDashboardDetails(f,r),e[2]=r,e[3]=f,e[4]=v):v=e[4];let b;e[5]!==j||e[6]!==r?(b=async()=>{if(!j)throw new Error("MCP client not available");const N=await j.callTool({name:"MONITORING_DASHBOARD_GET",arguments:{id:r}});return N.structuredContent??N},e[5]=j,e[6]=r,e[7]=b):b=e[7];let w;e[8]!==v||e[9]!==b?(w={queryKey:v,queryFn:b},e[8]=v,e[9]=b,e[10]=w):w=e[10];const{data:y}=ne(w);let k,a,x;if(e[11]!==r||e[12]!==f||e[13]!==l||e[14]!==i.from||e[15]!==i.to){const N=l.filter(ot),S=ve(N);k=N.length>0?Ne(N):void 0,x=ne,a=oe.monitoringDashboardQuery(f,r,i.from,i.to,S||void 0),e[11]=r,e[12]=f,e[13]=l,e[14]=i.from,e[15]=i.to,e[16]=k,e[17]=a,e[18]=x}else k=e[16],a=e[17],x=e[18];let u;e[19]!==k||e[20]!==j||e[21]!==r||e[22]!==i.from||e[23]!==i.to?(u=async()=>{if(!j)throw new Error("MCP client not available");const N=me(i.from),S=me(i.to),W=N.date||new Date(Date.now()-864e5),se=S.date||new Date,ie=await j.callTool({name:"MONITORING_DASHBOARD_QUERY",arguments:{dashboardId:r,timeRange:{startDate:W.toISOString(),endDate:se.toISOString()},...k?{propertyFilters:k}:{}}});return ie.structuredContent??ie},e[19]=k,e[20]=j,e[21]=r,e[22]=i.from,e[23]=i.to,e[24]=u):u=e[24];let h;e[25]!==a||e[26]!==u?(h={queryKey:a,queryFn:u,refetchInterval:3e4},e[25]=a,e[26]=u,e[27]=h):h=e[27];const{data:$,isRefetching:F}=x(h);if(!y){let N;return e[28]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Dashboard not found"}),e[28]=N):N=e[28],N}let H;e[29]!==$?.results?(H=new Map($?.results?.map(nt)??[]),e[29]=$?.results,e[30]=H):H=e[30];const Q=H;let T;e[31]!==d.slug||e[32]!==g.slug?(T={org:d.slug,project:g.slug},e[31]=d.slug,e[32]=g.slug,e[33]=T):T=e[33];let Y;e[34]===Symbol.for("react.memo_cache_sentinel")?(Y={tab:"dashboards"},e[34]=Y):Y=e[34];let _;e[35]!==T?(_=t.jsx(de,{children:t.jsx(Fe,{asChild:!0,children:t.jsx(pe,{to:"/$org/$project/monitoring",params:T,search:Y,children:"Monitoring"})})}),e[35]=T,e[36]=_):_=e[36];let U;e[37]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(Re,{}),e[37]=U):U=e[37];let P;e[38]!==y.name?(P=t.jsx(de,{children:t.jsx(Ce,{children:y.name})}),e[38]=y.name,e[39]=P):P=e[39];let J;e[40]!==_||e[41]!==P?(J=t.jsx(De,{children:t.jsxs(Te,{children:[_,U,P]})}),e[40]=_,e[41]=P,e[42]=J):J=e[42];const te=J;let I;e[43]!==n?(I=n&&t.jsx(R,{variant:"outline",size:"icon",className:"h-7 w-7",onClick:n,children:t.jsx(we,{size:14})}),e[43]=n,e[44]=I):I=e[44];let X;e[45]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(re,{size:14}),e[45]=X):X=e[45];let M;e[46]!==c?(M=t.jsx(R,{variant:"outline",size:"icon",className:"h-7 w-7",onClick:c,children:X}),e[46]=c,e[47]=M):M=e[47];let z;e[48]!==m||e[49]!==l?(z=t.jsx(Xe,{value:l,onChange:m}),e[48]=m,e[49]=l,e[50]=z):z=e[50];let B;e[51]!==i.from||e[52]!==i.to?(B={from:i.from,to:i.to},e[51]=i.from,e[52]=i.to,e[53]=B):B=e[53];let E;e[54]!==o||e[55]!==B?(E=t.jsx(ke,{value:B,onChange:o,className:"min-w-0"}),e[54]=o,e[55]=B,e[56]=E):E=e[56];let O;e[57]!==I||e[58]!==M||e[59]!==z||e[60]!==E?(O=t.jsxs(Se,{children:[I,M,z,E]}),e[57]=I,e[58]=M,e[59]=z,e[60]=E,e[61]=O):O=e[61];let A;e[62]!==y.description?(A=y.description&&t.jsx("div",{className:"mb-6",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:y.description})}),e[62]=y.description,e[63]=A):A=e[63];let K;if(e[64]!==y.widgets||e[65]!==Q){let N;e[67]!==Q?(N=S=>{const W=Q.get(S.id),se=S.type==="metric"?"":"col-span-2";return t.jsxs("div",{className:se,children:[S.type==="metric"&&t.jsx(Ze,{widget:S,result:W}),S.type==="table"&&t.jsx(et,{widget:S,result:W}),S.type==="timeseries"&&t.jsx(st,{widget:S,result:W})]},S.id)},e[67]=Q,e[68]=N):N=e[68],K=y.widgets.map(N),e[64]=y.widgets,e[65]=Q,e[66]=K}else K=e[66];let L;e[69]!==K?(L=t.jsx("div",{className:"grid grid-cols-5 gap-4",ref:it,children:K}),e[69]=K,e[70]=L):L=e[70];let V;e[71]!==F?(V=F&&t.jsxs("div",{className:"fixed bottom-4 right-4 bg-background border rounded-lg px-3 py-2 shadow-lg flex items-center gap-2 text-sm",children:[t.jsx(re,{size:14,className:"animate-spin"}),"Refreshing..."]}),e[71]=F,e[72]=V):V=e[72];let q;e[73]!==A||e[74]!==L||e[75]!==V?(q=t.jsxs("div",{className:"flex-1 flex flex-col overflow-auto p-5",children:[A,L,V]}),e[73]=A,e[74]=L,e[75]=V,e[76]=q):q=e[76];let Z;return e[77]!==te||e[78]!==O||e[79]!==q?(Z=t.jsxs($e,{breadcrumb:te,children:[O,q]}),e[77]=te,e[78]=O,e[79]=q,e[80]=Z):Z=e[80],Z}function it(s){if(!s)return;const e=()=>{const i=(s.clientWidth-64)/5;s.style.gridAutoRows=`${i}px`};e(),new ResizeObserver(e).observe(s)}function nt(s){return[s.widgetId,s]}function ot(s){return s.key.trim()}function ct(s){const e=D.c(13),{dashboardId:r,onEdit:i}=s,l=xe();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"now-24h",to:"now"},e[0]=n):n=e[0];const[c,o]=C.useState(n);let m;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[1]=m):m=e[1];const[d,g]=C.useState(m);let f;e[2]!==r||e[3]!==l?(f=()=>{l.invalidateQueries({predicate:w=>w.queryKey[0]==="monitoringDashboardQuery"&&w.queryKey[2]===r})},e[2]=r,e[3]=l,e[4]=f):f=e[4];const p=f;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsx("div",{className:"flex-1 flex items-center justify-center text-muted-foreground",children:"Failed to load dashboard"}),e[5]=j):j=e[5];let v;e[6]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(re,{size:24,className:"animate-spin text-muted-foreground"})}),e[6]=v):v=e[6];let b;return e[7]!==r||e[8]!==p||e[9]!==i||e[10]!==d||e[11]!==c?(b=t.jsx(ge,{fallback:j,children:t.jsx(C.Suspense,{fallback:v,children:t.jsx(lt,{dashboardId:r,timeRange:c,propertyFilters:d,onEdit:i,onRefresh:p,onTimeRangeChange:o,onPropertyFiltersChange:g})})}),e[7]=r,e[8]=p,e[9]=i,e[10]=d,e[11]=c,e[12]=b):b=e[12],b}function Vt(){const s=D.c(9);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},s[0]=e):e=s[0];const{dashboardId:r}=he(e),{org:i,project:l}=fe(),n=je();let c;s[1]!==r||s[2]!==n||s[3]!==i.slug||s[4]!==l.slug?(c=()=>{n({to:"/$org/$project/monitoring/dashboards/$dashboardId/edit",params:{org:i.slug,project:l.slug,dashboardId:r}})},s[1]=r,s[2]=n,s[3]=i.slug,s[4]=l.slug,s[5]=c):c=s[5];const o=c;let m;return s[6]!==r||s[7]!==o?(m=t.jsx(ct,{dashboardId:r,onEdit:o}),s[6]=r,s[7]=o,s[8]=m):m=s[8],m}export{Vt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as e}from"./index-
|
|
1
|
+
import{r as i,j as e}from"./index-BiG-bBX7.js";import{i as n}from"./Loading01-W-w3cVps.js";import{h as l}from"./mcp-oauth-DhVZXZzz.js";function h(){const[s,c]=i.useState(null),[r,a]=i.useState(!1);return i.useEffect(()=>{(async()=>{try{const t=await l();if(!t.success){c(t.error||"MCP authentication failed"),setTimeout(()=>{window.close()},3e3);return}a(!0),setTimeout(()=>{window.close()},1500)}catch(t){c(t instanceof Error?t.message:String(t)),setTimeout(()=>{window.close()},3e3)}})()},[]),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 bg-background",children:e.jsxs("div",{className:"w-full max-w-md flex flex-col items-center justify-center gap-8",children:[r&&e.jsx("img",{src:"/empty-state-success.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),!r&&!s&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(n,{size:32,className:"animate-spin text-primary"})}),s&&e.jsx("img",{src:"/empty-state-error.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[e.jsx("h2",{className:"text-lg font-medium text-foreground",children:s?"Authentication Failed":r?"Authentication Successful":"Authentication in progress..."}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-2",children:"An error occurred during authentication:"}),e.jsx("p",{className:"text-destructive",children:s}),e.jsxs("p",{className:"mt-2",children:[e.jsx("br",{}),"This window will close automatically."]})]}):r?e.jsxs("p",{children:["Authentication complete.",e.jsx("br",{}),"This window will close automatically."]}):e.jsx("p",{children:"Processing authentication..."})})]})]})})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Q,r as U,u as re,K as ie,b_ as we,j as t,v as oe,B as Y,b as de,_ as me,$ as ue,O as fe,d as Ie,aC as Te,b$ as ne,E as Re,aE as Pe}from"./index-DTgZok4N.js";import{P as X}from"./index-BMtw0aq_.js";import{B as $e,a as ke,b as ze,c as Le}from"./breadcrumb-CkhUU1qO.js";import{i as xe}from"./FilterLines-7rCsQUMC.js";import{n as ge}from"./Inbox01-kmB3TeMO.js";import{i as se}from"./Loading01-SjZGs3Wk.js";import{i as pe}from"./SearchMd-CSKcblxx.js";import{u as he}from"./useQuery-C-DbMOQt.js";import{u as Fe}from"./useInfiniteQuery-DvriYWG_.js";import{a as Ee,f as _e,b as Oe}from"./registry-utils-BFXjOPvi.js";import{u as je,W as Ke,a as Ae,h as Me,b as Be}from"./constants-2Gp-yGJ1.js";import{f as De,g as ye,h as Ge}from"./use-connection-Du5eRm0t.js";import{s as We}from"./slugify-CEUa2lfQ.js";import{C as Ve,E as qe}from"./collection-search-Bkt-jVWx.js";import{M as ae}from"./mcp-server-card-Dn8mS4B0.js";import{I as Ue}from"./input-CjsuYubG.js";import{a as ve,b as be,P as Ne}from"./popover-C2X8YaiC.js";import{i as Ce}from"./Check-AlxQ-j2G.js";import{t as Se}from"./ChevronDown-Bt1ewsqh.js";import{s as te}from"./XClose-B0OIa3qG.js";import{s as He}from"./Plus-DXYydVCi.js";import{u as Je}from"./use-binding-CXeaDqWF.js";import{L as Qe,u as Ye}from"./localstorage-keys-Cenhbz-P.js";import"./tooltip-B2vpv_WH.js";import"./index-BG6VshDR.js";import"./ChevronRight-sqD7LMFa.js";import"./infiniteQueryObserver-Dy7IOO2y.js";import"./useMutation-B99hCaMl.js";import"./CheckVerified02-9ppFNPbL.js";import"./Globe02-DsDY7_VG.js";import"./Lock01-CryAxM1F.js";import"./Terminal-B4v75vOD.js";import"./card-BiGYvdPr.js";import"./integration-icon-BqSOA-1d.js";import"./Container-Dt3fts2O.js";import"./github-icon-Dp3wHhYE.js";import"./binder-CXy7pGaI.js";function Ze(s,e){const r=Q.c(4),[l,d]=U.useState(s),n=U.useRef(null),i=U.useRef(!0);let c,a;return r[0]!==e||r[1]!==s?(c=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{d(s)},e),()=>{n.current&&clearTimeout(n.current)}},a=[s,e],r[0]=e,r[1]=s,r[2]=c,r[3]=a):(c=r[2],a=r[3]),U.useEffect(c,a),l}function Xe(s){const e=Q.c(14),r=U.useRef(null),l=`scroll-position:${s}`,d=U.useRef(null);let n;e[0]!==l?(n=()=>{r.current&&sessionStorage.setItem(l,String(r.current.scrollTop))},e[0]=l,e[1]=n):n=e[1];const i=n;let c;e[2]!==l?(c=()=>{if(d.current===l)return;const j=sessionStorage.getItem(l);if(j&&r.current){const S=Number.parseInt(j,10);r.current.scrollTop=S}d.current=l},e[2]=l,e[3]=c):c=e[3];const a=c;let g;e[4]!==a||e[5]!==l?(g=()=>{d.current!==l&&a()},e[4]=a,e[5]=l,e[6]=g):g=e[6];const I=g;let o;e[7]!==a||e[8]!==l?(o=j=>{r.current=j,j&&d.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let m;return e[10]!==I||e[11]!==i||e[12]!==p?(m={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=m):m=e[13],m}const et=24;function tt(s){const e=Q.c(54),{registryId:r,listToolName:l,filtersToolName:d,search:n}=s,{org:i}=re();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[a,g]=U.useState(c);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),m=r||null;let j;e[2]!==i.id||e[3]!==m?(j={connectionId:m,orgId:i.id},e[2]=i.id,e[3]=m,e[4]=j):j=e[4];const S=je(j),R=!!d;let b;e[5]!==d||e[6]!==r?(b=ie.toolCall(r,d||"no-filters","{}"),e[5]=d,e[6]=r,e[7]=b):b=e[7];let N;e[8]!==S||e[9]!==d?(N=async()=>{if(!d)return{tags:[],categories:[]};const f=await S.callTool({name:d,arguments:{}});return f.structuredContent??f},e[8]=S,e[9]=d,e[10]=N):N=e[10];let P;e[11]!==b||e[12]!==N?(P={queryKey:b,queryFn:N,staleTime:36e5,retry:2},e[11]=b,e[12]=N,e[13]=P):P=e[13];const{data:$}=he(P);let h,C,k;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const f=n?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:n},{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}:void 0;h={limit:et,...a.length>0&&{tags:a},...o.length>0&&{categories:o},...f&&{where:f}},k=Fe,C=ie.toolCall(r,l,JSON.stringify(h)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=h,e[20]=C,e[21]=k}else h=e[19],C=e[20],k=e[21];let v;e[22]!==S||e[23]!==h||e[24]!==l?(v=async f=>{const{pageParam:Z}=f,le=Z?{...h,cursor:Z}:h,ee=await S.callTool({name:l,arguments:le});return ee.structuredContent??ee},e[22]=S,e[23]=h,e[24]=l,e[25]=v):v=e[25];let z;e[26]!==v||e[27]!==C?(z={queryKey:C,queryFn:v,initialPageParam:void 0,getNextPageParam:st,staleTime:36e5,placeholderData:we,retry:2},e[26]=v,e[27]=C,e[28]=z):z=e[28];const{data:w,fetchNextPage:x,hasNextPage:y,isFetchingNextPage:u,isFetching:T,isLoading:L,error:F}=k(z);let O;e:{if(!w?.pages||w.pages.length===0){O=null;break e}const f=w.pages[0];if(typeof f=="object"&&f!==null&&"totalCount"in f&&typeof f.totalCount=="number"){O=f.totalCount;break e}O=null}const K=O,E=w?.pages;let G;e[29]!==E?(G=Ee(E),e[29]=E,e[30]=G):G=e[30];const H=G;let W;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(W=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=W):W=e[34];const D=W,B=T&&!u&&!L&&D;let A;e[35]!==x||e[36]!==y||e[37]!==u?(A=()=>{y&&!u&&x()},e[35]=x,e[36]=y,e[37]=u,e[38]=A):A=e[38];const V=A,_=y??!1,M=R?$?.tags:void 0,q=R?$?.categories:void 0;let J;return e[39]!==D||e[40]!==T||e[41]!==u||e[42]!==B||e[43]!==L||e[44]!==H||e[45]!==F||e[46]!==V||e[47]!==o||e[48]!==a||e[49]!==_||e[50]!==M||e[51]!==q||e[52]!==K?(J={items:H,totalCount:K,hasMore:_,isLoadingMore:u,isFiltering:B,isInitialLoading:L,isFetching:T,error:F,loadMore:V,availableTags:M,availableCategories:q,selectedTags:a,selectedCategories:o,setSelectedTags:g,setSelectedCategories:p,hasActiveFilters:D},e[39]=D,e[40]=T,e[41]=u,e[42]=B,e[43]=L,e[44]=H,e[45]=F,e[46]=V,e[47]=o,e[48]=a,e[49]=_,e[50]=M,e[51]=q,e[52]=K,e[53]=J):J=e[53],J}function st(s){if(typeof s=="object"&&s!==null){const e=s.nextCursor||s.cursor;if(e)return e}}function rt(s,e){return[...s].sort((r,l)=>l.count-r.count).slice(0,e)}function ce(s){const e=Q.c(52),{label:r,items:l,selectedItems:d,onToggle:n,onClear:i}=s,[c,a]=U.useState(""),[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N,P,$,h;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==g||e[4]!==c||e[5]!==d){const x=[...c?l.filter(E=>E.value.toLowerCase().includes(c.toLowerCase())):l].sort(lt);m=d.length,p=ve,P=g,$=I;let y;e[17]!==r?(y=t.jsx("span",{children:r}),e[17]=r,e[18]=y):y=e[18];let u;e[19]!==m?(u=m>0&&t.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:m}),e[19]=m,e[20]=u):u=e[20];let T;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(Se,{size:14,className:"opacity-50"}),e[21]=T):T=e[21],e[22]!==u||e[23]!==y?(h=t.jsx(be,{asChild:!0,children:t.jsxs(Y,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[y,u,T]})}),e[22]=u,e[23]=y,e[24]=h):h=e[24],o=Ne,R="w-64 p-0",b="start";let L;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(pe,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=L):L=e[25];let F;e[26]!==r?(F=r.toLowerCase(),e[26]=r,e[27]=F):F=e[27];const O=`Search ${F}...`;let K;e[28]===Symbol.for("react.memo_cache_sentinel")?(K=E=>a(E.target.value),e[28]=K):K=e[28],e[29]!==c||e[30]!==O?(N=t.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:t.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[L,t.jsx(Ue,{type:"text",placeholder:O,value:c,onChange:K,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[29]=c,e[30]=O,e[31]=N):N=e[31],j="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",S=x.length===0?t.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):x.map(E=>{const G=d.includes(E.value);return t.jsxs("button",{onClick:()=>n(E.value),className:oe("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",G?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[t.jsxs("span",{className:"truncate flex items-center gap-2",children:[G&&t.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0"}),E.value]}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:E.count})]},E.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=g,e[4]=c,e[5]=d,e[6]=o,e[7]=p,e[8]=m,e[9]=j,e[10]=S,e[11]=R,e[12]=b,e[13]=N,e[14]=P,e[15]=$,e[16]=h}else o=e[6],p=e[7],m=e[8],j=e[9],S=e[10],R=e[11],b=e[12],N=e[13],P=e[14],$=e[15],h=e[16];let C;e[32]!==j||e[33]!==S?(C=t.jsx("div",{className:j,children:S}),e[32]=j,e[33]=S,e[34]=C):C=e[34];let k;e[35]!==r||e[36]!==i||e[37]!==m?(k=m>0&&t.jsx("div",{className:"p-2 border-t border-border",children:t.jsxs(Y,{variant:"ghost",size:"sm",onClick:i,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:["Clear ",r.toLowerCase()]})}),e[35]=r,e[36]=i,e[37]=m,e[38]=k):k=e[38];let v;e[39]!==o||e[40]!==k||e[41]!==R||e[42]!==b||e[43]!==N||e[44]!==C?(v=t.jsxs(o,{className:R,align:b,children:[N,C,k]}),e[39]=o,e[40]=k,e[41]=R,e[42]=b,e[43]=N,e[44]=C,e[45]=v):v=e[45];let z;return e[46]!==p||e[47]!==v||e[48]!==P||e[49]!==$||e[50]!==h?(z=t.jsxs(p,{open:P,onOpenChange:$,children:[h,v]}),e[46]=p,e[47]=v,e[48]=P,e[49]=$,e[50]=h,e[51]=z):z=e[51],z}function lt(s,e){return e.count-s.count}function nt(s){const e=Q.c(67),{availableTags:r,availableCategories:l,selectedTags:d,selectedCategories:n,onTagChange:i,onCategoryChange:c}=s,a=r&&r.length>0||l&&l.length>0,g=d.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==d?(I=y=>{d.includes(y)?i(d.filter(u=>u!==y)):i([...d,y])},e[0]=i,e[1]=d,e[2]=I):I=e[2];const o=I;let p;e[3]!==c||e[4]!==n?(p=y=>{n.includes(y)?c(n.filter(u=>u!==y)):c([...n,y])},e[3]=c,e[4]=n,e[5]=p):p=e[5];const m=p;let j;e[6]!==c||e[7]!==i?(j=()=>{i([]),c([])},e[6]=c,e[7]=i,e[8]=j):j=e[8];const S=j;let R,b,N,P,$,h,C;if(e[9]!==l||e[10]!==r||e[11]!==c||e[12]!==i||e[13]!==n||e[14]!==d||e[15]!==m||e[16]!==o){const y=l?rt(l,6):[];R=n,b=d,C=new Set(y.map(it)),$="flex items-center border-b border-border";let u;e[24]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:t.jsx(xe,{size:16})}),e[24]=u):u=e[24];let T;e[25]!==l||e[26]!==c||e[27]!==n||e[28]!==m?(T=l&&l.length>0&&t.jsx(ce,{label:"Categories",items:l,selectedItems:n,onToggle:m,onClear:()=>c([])}),e[25]=l,e[26]=c,e[27]=n,e[28]=m,e[29]=T):T=e[29];let L;e[30]!==r||e[31]!==i||e[32]!==d||e[33]!==o?(L=r&&r.length>0&&t.jsx(ce,{label:"Tags",items:r,selectedItems:d,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=d,e[33]=o,e[34]=L):L=e[34],e[35]!==L||e[36]!==T?(h=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[u,T,L]}),e[35]=L,e[36]=T,e[37]=h):h=e[37],N="flex items-center gap-3 flex-wrap px-5 py-3";let F;e[38]!==n||e[39]!==m?(F=O=>{const K=n.includes(O.value);return t.jsxs("div",{onClick:()=>m(O.value),className:oe("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",K?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[t.jsx("span",{children:O.value}),K&&t.jsx("span",{onClick:E=>{E.stopPropagation(),m(O.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},O.value)},e[38]=n,e[39]=m,e[40]=F):F=e[40],P=y.map(F),e[9]=l,e[10]=r,e[11]=c,e[12]=i,e[13]=n,e[14]=d,e[15]=m,e[16]=o,e[17]=R,e[18]=b,e[19]=N,e[20]=P,e[21]=$,e[22]=h,e[23]=C}else R=e[17],b=e[18],N=e[19],P=e[20],$=e[21],h=e[22],C=e[23];let k;if(e[41]!==R||e[42]!==m||e[43]!==C){let y;e[45]!==C?(y=T=>!C.has(T),e[45]=C,e[46]=y):y=e[46];let u;e[47]!==m?(u=T=>t.jsxs("div",{onClick:()=>m(T),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:T}),t.jsx("span",{onClick:L=>{L.stopPropagation(),m(T)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`cat-${T}`),e[47]=m,e[48]=u):u=e[48],k=R.filter(y).map(u),e[41]=R,e[42]=m,e[43]=C,e[44]=k}else k=e[44];let v;if(e[49]!==b||e[50]!==o){let y;e[52]!==o?(y=u=>t.jsxs("div",{onClick:()=>o(u),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:u}),t.jsx("span",{onClick:T=>{T.stopPropagation(),o(u)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`tag-${u}`),e[52]=o,e[53]=y):y=e[53],v=b.map(y),e[49]=b,e[50]=o,e[51]=v}else v=e[51];let z;e[54]!==S||e[55]!==g?(z=g&&t.jsxs(Y,{variant:"ghost",size:"sm",onClick:S,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[t.jsx(te,{size:14}),"Clear all"]}),e[54]=S,e[55]=g,e[56]=z):z=e[56];let w;e[57]!==z||e[58]!==N||e[59]!==P||e[60]!==k||e[61]!==v?(w=t.jsxs("div",{className:N,children:[P,k,v,z]}),e[57]=z,e[58]=N,e[59]=P,e[60]=k,e[61]=v,e[62]=w):w=e[62];let x;return e[63]!==w||e[64]!==$||e[65]!==h?(x=t.jsxs("div",{className:$,children:[h,w]}),e[63]=w,e[64]=$,e[65]=h,e[66]=x):x=e[66],x}function it(s){return s.value}function ot(s,e){if(!e)return s;const r=e.toLowerCase();return s.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function at(s){return s.verified===!0||s._meta?.["mcp.mesh"]?.verified===!0}function ct(s){const e=Q.c(55),{registryId:r,listToolName:l,filtersToolName:d,storePrivateOnly:n}=s,[i,c]=U.useState(""),a=Ze(i,300),g=de(),{org:I}=re(),{scrollRef:o,saveScrollPosition:p,handleScroll:m}=Xe(`store-discovery:${r}`);let j;e[0]!==a||e[1]!==d||e[2]!==l||e[3]!==r?(j={registryId:r,listToolName:l,filtersToolName:d,search:a},e[0]=a,e[1]=d,e[2]=l,e[3]=r,e[4]=j):j=e[4];const{items:S,hasMore:R,isLoadingMore:b,isInitialLoading:N,isFetching:P,error:$,loadMore:h,availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,setSelectedTags:w,setSelectedCategories:x,hasActiveFilters:y}=tt(j);let u,T,L,F;if(e[5]!==a||e[6]!==P||e[7]!==N||e[8]!==S||e[9]!==i||e[10]!==n){const _=i?ot(S,i):S;F=n?_.filter(mt):_,u=(i!==a||P)&&!N&&!!i,L=F.filter(at),T=F.filter(M=>!L.find(q=>q.id===M.id)),e[5]=a,e[6]=P,e[7]=N,e[8]=S,e[9]=i,e[10]=n,e[11]=u,e[12]=T,e[13]=L,e[14]=F}else u=e[11],T=e[12],L=e[13],F=e[14];const O=T;let K;e[15]!==g||e[16]!==I.slug||e[17]!==r||e[18]!==p?(K=_=>{p();const M=We(_.name||_.title||_.server?.title||""),q=typeof _.id=="string"&&_.id.includes("/"),J=typeof _.server?.name=="string"&&_.server.name.includes("/"),f=q&&!J?_.id:_.server?.name||_.id||"";g({to:"/$org/$project/store/$appName",params:{org:I.slug,project:fe,appName:M},search:{registryId:r,serverName:f}})},e[15]=g,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=K):K=e[19];const E=K;let G;e[20]!==m||e[21]!==R||e[22]!==b||e[23]!==h?(G=_=>{if(m(),!R||b)return;const M=_.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&h()},e[20]=m,e[21]=R,e[22]=b,e[23]=h,e[24]=G):G=e[24];const H=G;let W;e[25]!==u||e[26]!==i?(W=t.jsx(Ve,{value:i,onChange:c,placeholder:"Search for an MCP Server...",isSearching:u}),e[25]=u,e[26]=i,e[27]=W):W=e[27];let D;e[28]!==k||e[29]!==C||e[30]!==z||e[31]!==v||e[32]!==x||e[33]!==w?(D=t.jsx(nt,{availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,onTagChange:w,onCategoryChange:x}),e[28]=k,e[29]=C,e[30]=z,e[31]=v,e[32]=x,e[33]=w,e[34]=D):D=e[34];let B;e[35]!==O||e[36]!==$||e[37]!==E||e[38]!==y||e[39]!==R||e[40]!==N||e[41]!==b||e[42]!==u||e[43]!==i||e[44]!==L||e[45]!==F?(B=t.jsx("div",{className:"p-5",children:t.jsx("div",{children:$&&!N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"size-8 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"Could not load items from this registry. It may be temporarily offline."}),$.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:$.message})]}),t.jsxs(Y,{variant:"outline",size:"sm",onClick:dt,children:[t.jsx(ue,{className:"size-4"}),"Try again"]})]}):N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):F.length===0&&!y?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),t.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):F.length===0&&y&&!i?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(xe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&F.length===0&&!u?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):t.jsxs("div",{className:"flex flex-col gap-8",children:[u&&F.length===0&&t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),L.length>0&&t.jsx(ae,{items:L,title:"Verified",onItemClick:E}),O.length>0&&t.jsx(ae,{items:O,title:L.length>0?"All":"",onItemClick:E}),R&&b&&t.jsx("div",{className:"flex justify-center py-8",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(se,{size:20,className:"animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=O,e[36]=$,e[37]=E,e[38]=y,e[39]=R,e[40]=N,e[41]=b,e[42]=u,e[43]=i,e[44]=L,e[45]=F,e[46]=B):B=e[46];let A;e[47]!==H||e[48]!==o||e[49]!==B?(A=t.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:H,children:B}),e[47]=H,e[48]=o,e[49]=B,e[50]=A):A=e[50];let V;return e[51]!==W||e[52]!==D||e[53]!==A?(V=t.jsxs("div",{className:"flex flex-col h-full",children:[W,D,A]}),e[51]=W,e[52]=D,e[53]=A,e[54]=V):V=e[54],V}function dt(){return window.location.reload()}function mt(s){return s.is_public!==!0}function ut(s){const e=Q.c(11),{registryId:r,storePrivateOnly:l}=s,d=De(r),n=d?.tools;let i;e[0]!==n?(i=_e(n),e[0]=n,e[1]=i):i=e[1];const c=i;if(!c){let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"bg-muted p-3 rounded-full",children:t.jsx(ge,{className:"size-8 text-muted-foreground"})}),e[2]=m):m=e[2];let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[m,t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"This registry does not support listing store items, or the connection is not responding."})]})]}),e[3]=j):j=e[3],j}const a=d?.tools;let g;e[4]!==a?(g=Oe(a),e[4]=a,e[5]=g):g=e[5];const o=g||void 0;let p;return e[6]!==c||e[7]!==r||e[8]!==l||e[9]!==o?(p=t.jsx(ct,{registryId:r,listToolName:c,filtersToolName:o,storePrivateOnly:l}),e[6]=c,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function ft(s){const e=Q.c(43),{registries:r,value:l,onValueChange:d,onAddWellKnown:n,wellKnownRegistries:i,placeholder:c}=s,a=c===void 0?"Select a registry...":c,[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N;if(e[0]!==g||e[1]!==a||e[2]!==r||e[3]!==l){let w;e[12]!==l?(w=y=>y.id===l,e[12]=l,e[13]=w):w=e[13];const x=r.find(w);p=ve,b=g,N=I,o=be,R=!0,m="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(j=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] h-7 min-w-[160px]"),e[14]=j):j=e[14],S=x?t.jsxs("span",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}):t.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=g,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=m,e[7]=j,e[8]=S,e[9]=R,e[10]=b,e[11]=N}else o=e[4],p=e[5],m=e[6],j=e[7],S=e[8],R=e[9],b=e[10],N=e[11];let P;e[15]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Se,{className:"size-4 opacity-50"}),e[15]=P):P=e[15];let $;e[16]!==m||e[17]!==j||e[18]!==S?($=t.jsxs("button",{type:m,className:j,children:[S,P]}),e[16]=m,e[17]=j,e[18]=S,e[19]=$):$=e[19];let h;e[20]!==o||e[21]!==R||e[22]!==$?(h=t.jsx(o,{asChild:R,children:$}),e[20]=o,e[21]=R,e[22]=$,e[23]=h):h=e[23];let C;if(e[24]!==d||e[25]!==r||e[26]!==l){let w;e[28]!==d||e[29]!==l?(w=x=>t.jsxs("button",{type:"button",onClick:()=>{d(x.id??x.name),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}),l===(x.id??x.name)&&t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsx(Ce,{className:"size-4"})})]},x.id??x.name),e[28]=d,e[29]=l,e[30]=w):w=e[30],C=r.map(w),e[24]=d,e[25]=r,e[26]=l,e[27]=C}else C=e[27];let k;e[31]!==n||e[32]!==i?(k=i.length>0&&t.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[t.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(w=>t.jsxs("button",{type:"button",onClick:()=>{n(w),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?t.jsx("img",{src:w.icon,alt:w.title,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:w.title.slice(0,1).toUpperCase()}),t.jsx("span",{className:"flex-1",children:w.title})]}),t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:t.jsx(He,{size:16})})]},w.id??w.title))]}),e[31]=n,e[32]=i,e[33]=k):k=e[33];let v;e[34]!==C||e[35]!==k?(v=t.jsxs(Ne,{align:"end",className:"w-auto min-w-[200px] p-1",children:[C,k]}),e[34]=C,e[35]=k,e[36]=v):v=e[36];let z;return e[37]!==p||e[38]!==h||e[39]!==v||e[40]!==b||e[41]!==N?(z=t.jsxs(p,{open:b,onOpenChange:N,children:[h,v]}),e[37]=p,e[38]=h,e[39]=v,e[40]=b,e[41]=N,e[42]=z):z=e[42],z}function xt({registries:s,onConnected:e}){const r=ye(),{org:{slug:l}}=re(),{data:d}=Ie.useSession(),n=de(),[i,c]=U.useState(!1),a=s[0],g=async()=>{if(!(!a||!d?.user?.id)){c(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{c(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:fe},search:{action:"create"}})};return t.jsx(qe,{image:t.jsx("img",{src:"/store-empty-state.svg",alt:"No store connected",width:336,height:320,className:"max-w-full h-auto"}),title:"Connect to registry",description:"Connect to discover and use Connections from the community.",actions:t.jsxs(t.Fragment,{children:[t.jsxs(Y,{variant:"outline",onClick:g,disabled:i||!a,children:[a?.icon&&t.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),t.jsx(Y,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function gt(s){const e=Q.c(15),{error:r,onRetry:l,registryName:d}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let c;e[2]!==d?(c=t.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",t.jsx("strong",{children:d})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=d,e[3]=c):c=e[3];let a;e[4]!==r?(a=r?.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:r.message}),e[4]=r,e[5]=a):a=e[5];let g;e[6]!==c||e[7]!==a?(g=t.jsxs("div",{className:"space-y-2",children:[i,c,a]}),e[6]=c,e[7]=a,e[8]=g):g=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(ue,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=t.jsxs(Y,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==g||e[13]!==o?(p=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,g,o]}),e[12]=g,e[13]=o,e[14]=p):p=e[14],p}function ts(){const s=Q.c(49),{org:e,project:r}=re(),l=Ge(),d=ye(),n=Te(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,c=Je(l);let a;s[0]!==e.id?(a=Ke.SELF(e.id),s[0]=e.id,s[1]=a):a=s[1];const g=a,I=r.enabledPlugins,o=I==null||I.includes(ne),p=c.filter(f=>f.id!==g?!0:o);let m;s[2]!==g?(m=f=>f.id===g,s[2]=g,s[3]=m):m=s[3];const j=p.some(m);let S;s[4]!==e.id?(S={connectionId:Ae,orgId:e.id},s[4]=e.id,s[5]=S):S=s[5];const R=je(S);let b;s[6]!==r.id||s[7]!==R?(b=async()=>{const f=await R.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ne}});return f.structuredContent??f},s[6]=r.id,s[7]=R,s[8]=b):b=s[8];const{data:N}=he({queryKey:ie.projectPluginConfig(r.id??"",ne),queryFn:b,enabled:j&&!!r.id,staleTime:6e4}),P=N?.config?.settings;let $;s[9]!==P||s[10]!==g?($=f=>f.id===g&&P?{id:f.id,name:P.registryName||f.title,icon:P.registryIcon||f.icon||void 0}:{id:f.id,name:f.title,icon:f.icon||void 0},s[9]=P,s[10]=g,s[11]=$):$=s[11];const h=p.map($);let C;s[12]!==e.slug?(C=Qe.selectedRegistry(e.slug),s[12]=e.slug,s[13]=C):C=s[13];const[k,v]=Ye(C,ht);let z;s[14]!==k?(z=f=>f.id===k,s[14]=k,s[15]=z):z=s[15];const x=p.find(z)?.id||p[0]?.id||"",y=x===g&&P?.storePrivateOnly===!0;let u;s[16]!==e.id?(u=Me(e.id),s[16]=e.id,s[17]=u):u=s[17];let T;s[18]!==u?(T=[u],s[18]=u,s[19]=T):T=s[19];const L=T;let F;s[20]===Symbol.for("react.memo_cache_sentinel")?(F=[Be()],s[20]=F):F=s[20];const O=F;let K;s[21]!==d.create||s[22]!==v?(K=async f=>{const Z=await d.create.mutateAsync(f);v(Z.id)},s[21]=d.create,s[22]=v,s[23]=K):K=s[23];const E=K,G=new Set(p.map(pt)),H=L.filter(f=>f.id&&!G.has(f.id)),W=O.filter(f=>f.id&&!G.has(f.id));if(i){let f;return s[24]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{}),s[24]=f):f=s[24],f}let D;s[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(X.Header.Left,{children:t.jsx($e,{children:t.jsx(ke,{children:t.jsx(ze,{children:t.jsx(Le,{children:"Store"})})})})}),s[25]=D):D=s[25];let B;s[26]!==E?(B=async f=>E(f),s[26]=E,s[27]=B):B=s[27];let A;s[28]!==H||s[29]!==x||s[30]!==h||s[31]!==v||s[32]!==B?(A=t.jsxs(X.Header,{children:[D,t.jsx(X.Header.Right,{children:t.jsx(ft,{wellKnownRegistries:H,registries:h,value:x,onValueChange:v,onAddWellKnown:B,placeholder:"Select store..."})})]}),s[28]=H,s[29]=x,s[30]=h,s[31]=v,s[32]=B,s[33]=A):A=s[33];let V;s[34]!==x||s[35]!==h?(V=f=>{const{error:Z,resetError:le}=f;return t.jsx(gt,{error:Z,onRetry:le,registryName:h.find(ee=>ee.id===x)?.name??"registry"})},s[34]=x,s[35]=h,s[36]=V):V=s[36];let _;s[37]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),s[37]=_):_=s[37];let M;s[38]!==W||s[39]!==x||s[40]!==v||s[41]!==y?(M=t.jsx(U.Suspense,{fallback:_,children:x?t.jsx(ut,{registryId:x,storePrivateOnly:y}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(xt,{registries:W,onConnected:f=>{v(f)}})})}),s[38]=W,s[39]=x,s[40]=v,s[41]=y,s[42]=M):M=s[42];let q;s[43]!==V||s[44]!==M?(q=t.jsx(X.Content,{children:t.jsx(Re,{fallback:V,children:M})}),s[43]=V,s[44]=M,s[45]=q):q=s[45];let J;return s[46]!==A||s[47]!==q?(J=t.jsxs(X,{children:[A,q]}),s[46]=A,s[47]=q,s[48]=J):J=s[48],J}function pt(s){return s.id}function ht(s){return s??""}export{ts as default};
|
|
1
|
+
import{c as Q,r as U,u as re,K as ie,b_ as we,j as t,v as oe,B as Y,b as de,_ as me,$ as ue,O as fe,d as Ie,aC as Te,b$ as ne,E as Re,aE as Pe}from"./index-BiG-bBX7.js";import{P as X}from"./index-ehKjC5PZ.js";import{B as $e,a as ke,b as ze,c as Le}from"./breadcrumb-h53M2ozZ.js";import{i as xe}from"./FilterLines-BilIABo8.js";import{n as ge}from"./Inbox01-DNp0SuVa.js";import{i as se}from"./Loading01-W-w3cVps.js";import{i as pe}from"./SearchMd-BzFnoImC.js";import{u as he}from"./useQuery-Us1whSan.js";import{u as Fe}from"./useInfiniteQuery-BZXsD1Nv.js";import{a as Ee,f as _e,b as Oe}from"./registry-utils-B4prNmYa.js";import{u as je,W as Ke,a as Ae,h as Me,b as Be}from"./constants-Bj4b22ad.js";import{f as De,g as ye,h as Ge}from"./use-connection-CsobI-JA.js";import{s as We}from"./slugify-CEUa2lfQ.js";import{C as Ve,E as qe}from"./collection-search-DWb-q4sb.js";import{M as ae}from"./mcp-server-card-Csi3P08i.js";import{I as Ue}from"./input-BcOk4EWn.js";import{a as ve,b as be,P as Ne}from"./popover-Cnhlur36.js";import{i as Ce}from"./Check-Bs28PslG.js";import{t as Se}from"./ChevronDown-CIw5H_8I.js";import{s as te}from"./XClose-7hYEQUhK.js";import{s as He}from"./Plus-7RI9qITc.js";import{u as Je}from"./use-binding-CoVeLP6R.js";import{L as Qe,u as Ye}from"./localstorage-keys-BS2STbF7.js";import"./tooltip-BacoSwd7.js";import"./index-BxikKkX5.js";import"./ChevronRight-8LnYcsyR.js";import"./infiniteQueryObserver-BZCRT6X1.js";import"./useMutation-Cxle_Mtw.js";import"./CheckVerified02-CmWWqvRE.js";import"./Globe02-vxtQsT0f.js";import"./Lock01-C37ifJ66.js";import"./Terminal-DEkQfpQH.js";import"./card-HOT-tKY7.js";import"./integration-icon-DJplt18U.js";import"./Container-C4kCziiV.js";import"./github-icon-Dp3wHhYE.js";import"./binder-Bx_2YVEH.js";function Ze(s,e){const r=Q.c(4),[l,d]=U.useState(s),n=U.useRef(null),i=U.useRef(!0);let c,a;return r[0]!==e||r[1]!==s?(c=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{d(s)},e),()=>{n.current&&clearTimeout(n.current)}},a=[s,e],r[0]=e,r[1]=s,r[2]=c,r[3]=a):(c=r[2],a=r[3]),U.useEffect(c,a),l}function Xe(s){const e=Q.c(14),r=U.useRef(null),l=`scroll-position:${s}`,d=U.useRef(null);let n;e[0]!==l?(n=()=>{r.current&&sessionStorage.setItem(l,String(r.current.scrollTop))},e[0]=l,e[1]=n):n=e[1];const i=n;let c;e[2]!==l?(c=()=>{if(d.current===l)return;const j=sessionStorage.getItem(l);if(j&&r.current){const S=Number.parseInt(j,10);r.current.scrollTop=S}d.current=l},e[2]=l,e[3]=c):c=e[3];const a=c;let g;e[4]!==a||e[5]!==l?(g=()=>{d.current!==l&&a()},e[4]=a,e[5]=l,e[6]=g):g=e[6];const I=g;let o;e[7]!==a||e[8]!==l?(o=j=>{r.current=j,j&&d.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let m;return e[10]!==I||e[11]!==i||e[12]!==p?(m={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=m):m=e[13],m}const et=24;function tt(s){const e=Q.c(54),{registryId:r,listToolName:l,filtersToolName:d,search:n}=s,{org:i}=re();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[0]=c):c=e[0];const[a,g]=U.useState(c);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),m=r||null;let j;e[2]!==i.id||e[3]!==m?(j={connectionId:m,orgId:i.id},e[2]=i.id,e[3]=m,e[4]=j):j=e[4];const S=je(j),R=!!d;let b;e[5]!==d||e[6]!==r?(b=ie.toolCall(r,d||"no-filters","{}"),e[5]=d,e[6]=r,e[7]=b):b=e[7];let N;e[8]!==S||e[9]!==d?(N=async()=>{if(!d)return{tags:[],categories:[]};const f=await S.callTool({name:d,arguments:{}});return f.structuredContent??f},e[8]=S,e[9]=d,e[10]=N):N=e[10];let P;e[11]!==b||e[12]!==N?(P={queryKey:b,queryFn:N,staleTime:36e5,retry:2},e[11]=b,e[12]=N,e[13]=P):P=e[13];const{data:$}=he(P);let h,C,k;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const f=n?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:n},{field:["title"],operator:"contains",value:n},{field:["description"],operator:"contains",value:n}]}:void 0;h={limit:et,...a.length>0&&{tags:a},...o.length>0&&{categories:o},...f&&{where:f}},k=Fe,C=ie.toolCall(r,l,JSON.stringify(h)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=h,e[20]=C,e[21]=k}else h=e[19],C=e[20],k=e[21];let v;e[22]!==S||e[23]!==h||e[24]!==l?(v=async f=>{const{pageParam:Z}=f,le=Z?{...h,cursor:Z}:h,ee=await S.callTool({name:l,arguments:le});return ee.structuredContent??ee},e[22]=S,e[23]=h,e[24]=l,e[25]=v):v=e[25];let z;e[26]!==v||e[27]!==C?(z={queryKey:C,queryFn:v,initialPageParam:void 0,getNextPageParam:st,staleTime:36e5,placeholderData:we,retry:2},e[26]=v,e[27]=C,e[28]=z):z=e[28];const{data:w,fetchNextPage:x,hasNextPage:y,isFetchingNextPage:u,isFetching:T,isLoading:L,error:F}=k(z);let O;e:{if(!w?.pages||w.pages.length===0){O=null;break e}const f=w.pages[0];if(typeof f=="object"&&f!==null&&"totalCount"in f&&typeof f.totalCount=="number"){O=f.totalCount;break e}O=null}const K=O,E=w?.pages;let G;e[29]!==E?(G=Ee(E),e[29]=E,e[30]=G):G=e[30];const H=G;let W;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(W=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=W):W=e[34];const D=W,B=T&&!u&&!L&&D;let A;e[35]!==x||e[36]!==y||e[37]!==u?(A=()=>{y&&!u&&x()},e[35]=x,e[36]=y,e[37]=u,e[38]=A):A=e[38];const V=A,_=y??!1,M=R?$?.tags:void 0,q=R?$?.categories:void 0;let J;return e[39]!==D||e[40]!==T||e[41]!==u||e[42]!==B||e[43]!==L||e[44]!==H||e[45]!==F||e[46]!==V||e[47]!==o||e[48]!==a||e[49]!==_||e[50]!==M||e[51]!==q||e[52]!==K?(J={items:H,totalCount:K,hasMore:_,isLoadingMore:u,isFiltering:B,isInitialLoading:L,isFetching:T,error:F,loadMore:V,availableTags:M,availableCategories:q,selectedTags:a,selectedCategories:o,setSelectedTags:g,setSelectedCategories:p,hasActiveFilters:D},e[39]=D,e[40]=T,e[41]=u,e[42]=B,e[43]=L,e[44]=H,e[45]=F,e[46]=V,e[47]=o,e[48]=a,e[49]=_,e[50]=M,e[51]=q,e[52]=K,e[53]=J):J=e[53],J}function st(s){if(typeof s=="object"&&s!==null){const e=s.nextCursor||s.cursor;if(e)return e}}function rt(s,e){return[...s].sort((r,l)=>l.count-r.count).slice(0,e)}function ce(s){const e=Q.c(52),{label:r,items:l,selectedItems:d,onToggle:n,onClear:i}=s,[c,a]=U.useState(""),[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N,P,$,h;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==g||e[4]!==c||e[5]!==d){const x=[...c?l.filter(E=>E.value.toLowerCase().includes(c.toLowerCase())):l].sort(lt);m=d.length,p=ve,P=g,$=I;let y;e[17]!==r?(y=t.jsx("span",{children:r}),e[17]=r,e[18]=y):y=e[18];let u;e[19]!==m?(u=m>0&&t.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:m}),e[19]=m,e[20]=u):u=e[20];let T;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(Se,{size:14,className:"opacity-50"}),e[21]=T):T=e[21],e[22]!==u||e[23]!==y?(h=t.jsx(be,{asChild:!0,children:t.jsxs(Y,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[y,u,T]})}),e[22]=u,e[23]=y,e[24]=h):h=e[24],o=Ne,R="w-64 p-0",b="start";let L;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(pe,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=L):L=e[25];let F;e[26]!==r?(F=r.toLowerCase(),e[26]=r,e[27]=F):F=e[27];const O=`Search ${F}...`;let K;e[28]===Symbol.for("react.memo_cache_sentinel")?(K=E=>a(E.target.value),e[28]=K):K=e[28],e[29]!==c||e[30]!==O?(N=t.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:t.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[L,t.jsx(Ue,{type:"text",placeholder:O,value:c,onChange:K,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[29]=c,e[30]=O,e[31]=N):N=e[31],j="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",S=x.length===0?t.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):x.map(E=>{const G=d.includes(E.value);return t.jsxs("button",{onClick:()=>n(E.value),className:oe("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",G?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[t.jsxs("span",{className:"truncate flex items-center gap-2",children:[G&&t.jsx(Ce,{size:16,className:"text-muted-foreground shrink-0"}),E.value]}),t.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:E.count})]},E.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=g,e[4]=c,e[5]=d,e[6]=o,e[7]=p,e[8]=m,e[9]=j,e[10]=S,e[11]=R,e[12]=b,e[13]=N,e[14]=P,e[15]=$,e[16]=h}else o=e[6],p=e[7],m=e[8],j=e[9],S=e[10],R=e[11],b=e[12],N=e[13],P=e[14],$=e[15],h=e[16];let C;e[32]!==j||e[33]!==S?(C=t.jsx("div",{className:j,children:S}),e[32]=j,e[33]=S,e[34]=C):C=e[34];let k;e[35]!==r||e[36]!==i||e[37]!==m?(k=m>0&&t.jsx("div",{className:"p-2 border-t border-border",children:t.jsxs(Y,{variant:"ghost",size:"sm",onClick:i,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:["Clear ",r.toLowerCase()]})}),e[35]=r,e[36]=i,e[37]=m,e[38]=k):k=e[38];let v;e[39]!==o||e[40]!==k||e[41]!==R||e[42]!==b||e[43]!==N||e[44]!==C?(v=t.jsxs(o,{className:R,align:b,children:[N,C,k]}),e[39]=o,e[40]=k,e[41]=R,e[42]=b,e[43]=N,e[44]=C,e[45]=v):v=e[45];let z;return e[46]!==p||e[47]!==v||e[48]!==P||e[49]!==$||e[50]!==h?(z=t.jsxs(p,{open:P,onOpenChange:$,children:[h,v]}),e[46]=p,e[47]=v,e[48]=P,e[49]=$,e[50]=h,e[51]=z):z=e[51],z}function lt(s,e){return e.count-s.count}function nt(s){const e=Q.c(67),{availableTags:r,availableCategories:l,selectedTags:d,selectedCategories:n,onTagChange:i,onCategoryChange:c}=s,a=r&&r.length>0||l&&l.length>0,g=d.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==d?(I=y=>{d.includes(y)?i(d.filter(u=>u!==y)):i([...d,y])},e[0]=i,e[1]=d,e[2]=I):I=e[2];const o=I;let p;e[3]!==c||e[4]!==n?(p=y=>{n.includes(y)?c(n.filter(u=>u!==y)):c([...n,y])},e[3]=c,e[4]=n,e[5]=p):p=e[5];const m=p;let j;e[6]!==c||e[7]!==i?(j=()=>{i([]),c([])},e[6]=c,e[7]=i,e[8]=j):j=e[8];const S=j;let R,b,N,P,$,h,C;if(e[9]!==l||e[10]!==r||e[11]!==c||e[12]!==i||e[13]!==n||e[14]!==d||e[15]!==m||e[16]!==o){const y=l?rt(l,6):[];R=n,b=d,C=new Set(y.map(it)),$="flex items-center border-b border-border";let u;e[24]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:t.jsx(xe,{size:16})}),e[24]=u):u=e[24];let T;e[25]!==l||e[26]!==c||e[27]!==n||e[28]!==m?(T=l&&l.length>0&&t.jsx(ce,{label:"Categories",items:l,selectedItems:n,onToggle:m,onClear:()=>c([])}),e[25]=l,e[26]=c,e[27]=n,e[28]=m,e[29]=T):T=e[29];let L;e[30]!==r||e[31]!==i||e[32]!==d||e[33]!==o?(L=r&&r.length>0&&t.jsx(ce,{label:"Tags",items:r,selectedItems:d,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=d,e[33]=o,e[34]=L):L=e[34],e[35]!==L||e[36]!==T?(h=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[u,T,L]}),e[35]=L,e[36]=T,e[37]=h):h=e[37],N="flex items-center gap-3 flex-wrap px-5 py-3";let F;e[38]!==n||e[39]!==m?(F=O=>{const K=n.includes(O.value);return t.jsxs("div",{onClick:()=>m(O.value),className:oe("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",K?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[t.jsx("span",{children:O.value}),K&&t.jsx("span",{onClick:E=>{E.stopPropagation(),m(O.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},O.value)},e[38]=n,e[39]=m,e[40]=F):F=e[40],P=y.map(F),e[9]=l,e[10]=r,e[11]=c,e[12]=i,e[13]=n,e[14]=d,e[15]=m,e[16]=o,e[17]=R,e[18]=b,e[19]=N,e[20]=P,e[21]=$,e[22]=h,e[23]=C}else R=e[17],b=e[18],N=e[19],P=e[20],$=e[21],h=e[22],C=e[23];let k;if(e[41]!==R||e[42]!==m||e[43]!==C){let y;e[45]!==C?(y=T=>!C.has(T),e[45]=C,e[46]=y):y=e[46];let u;e[47]!==m?(u=T=>t.jsxs("div",{onClick:()=>m(T),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:T}),t.jsx("span",{onClick:L=>{L.stopPropagation(),m(T)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`cat-${T}`),e[47]=m,e[48]=u):u=e[48],k=R.filter(y).map(u),e[41]=R,e[42]=m,e[43]=C,e[44]=k}else k=e[44];let v;if(e[49]!==b||e[50]!==o){let y;e[52]!==o?(y=u=>t.jsxs("div",{onClick:()=>o(u),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[t.jsx("span",{children:u}),t.jsx("span",{onClick:T=>{T.stopPropagation(),o(u)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:t.jsx(te,{size:12})})]},`tag-${u}`),e[52]=o,e[53]=y):y=e[53],v=b.map(y),e[49]=b,e[50]=o,e[51]=v}else v=e[51];let z;e[54]!==S||e[55]!==g?(z=g&&t.jsxs(Y,{variant:"ghost",size:"sm",onClick:S,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[t.jsx(te,{size:14}),"Clear all"]}),e[54]=S,e[55]=g,e[56]=z):z=e[56];let w;e[57]!==z||e[58]!==N||e[59]!==P||e[60]!==k||e[61]!==v?(w=t.jsxs("div",{className:N,children:[P,k,v,z]}),e[57]=z,e[58]=N,e[59]=P,e[60]=k,e[61]=v,e[62]=w):w=e[62];let x;return e[63]!==w||e[64]!==$||e[65]!==h?(x=t.jsxs("div",{className:$,children:[h,w]}),e[63]=w,e[64]=$,e[65]=h,e[66]=x):x=e[66],x}function it(s){return s.value}function ot(s,e){if(!e)return s;const r=e.toLowerCase();return s.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function at(s){return s.verified===!0||s._meta?.["mcp.mesh"]?.verified===!0}function ct(s){const e=Q.c(55),{registryId:r,listToolName:l,filtersToolName:d,storePrivateOnly:n}=s,[i,c]=U.useState(""),a=Ze(i,300),g=de(),{org:I}=re(),{scrollRef:o,saveScrollPosition:p,handleScroll:m}=Xe(`store-discovery:${r}`);let j;e[0]!==a||e[1]!==d||e[2]!==l||e[3]!==r?(j={registryId:r,listToolName:l,filtersToolName:d,search:a},e[0]=a,e[1]=d,e[2]=l,e[3]=r,e[4]=j):j=e[4];const{items:S,hasMore:R,isLoadingMore:b,isInitialLoading:N,isFetching:P,error:$,loadMore:h,availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,setSelectedTags:w,setSelectedCategories:x,hasActiveFilters:y}=tt(j);let u,T,L,F;if(e[5]!==a||e[6]!==P||e[7]!==N||e[8]!==S||e[9]!==i||e[10]!==n){const _=i?ot(S,i):S;F=n?_.filter(mt):_,u=(i!==a||P)&&!N&&!!i,L=F.filter(at),T=F.filter(M=>!L.find(q=>q.id===M.id)),e[5]=a,e[6]=P,e[7]=N,e[8]=S,e[9]=i,e[10]=n,e[11]=u,e[12]=T,e[13]=L,e[14]=F}else u=e[11],T=e[12],L=e[13],F=e[14];const O=T;let K;e[15]!==g||e[16]!==I.slug||e[17]!==r||e[18]!==p?(K=_=>{p();const M=We(_.name||_.title||_.server?.title||""),q=typeof _.id=="string"&&_.id.includes("/"),J=typeof _.server?.name=="string"&&_.server.name.includes("/"),f=q&&!J?_.id:_.server?.name||_.id||"";g({to:"/$org/$project/store/$appName",params:{org:I.slug,project:fe,appName:M},search:{registryId:r,serverName:f}})},e[15]=g,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=K):K=e[19];const E=K;let G;e[20]!==m||e[21]!==R||e[22]!==b||e[23]!==h?(G=_=>{if(m(),!R||b)return;const M=_.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&h()},e[20]=m,e[21]=R,e[22]=b,e[23]=h,e[24]=G):G=e[24];const H=G;let W;e[25]!==u||e[26]!==i?(W=t.jsx(Ve,{value:i,onChange:c,placeholder:"Search for an MCP Server...",isSearching:u}),e[25]=u,e[26]=i,e[27]=W):W=e[27];let D;e[28]!==k||e[29]!==C||e[30]!==z||e[31]!==v||e[32]!==x||e[33]!==w?(D=t.jsx(nt,{availableTags:C,availableCategories:k,selectedTags:v,selectedCategories:z,onTagChange:w,onCategoryChange:x}),e[28]=k,e[29]=C,e[30]=z,e[31]=v,e[32]=x,e[33]=w,e[34]=D):D=e[34];let B;e[35]!==O||e[36]!==$||e[37]!==E||e[38]!==y||e[39]!==R||e[40]!==N||e[41]!==b||e[42]!==u||e[43]!==i||e[44]!==L||e[45]!==F?(B=t.jsx("div",{className:"p-5",children:t.jsx("div",{children:$&&!N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"size-8 text-destructive"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"Could not load items from this registry. It may be temporarily offline."}),$.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:$.message})]}),t.jsxs(Y,{variant:"outline",size:"sm",onClick:dt,children:[t.jsx(ue,{className:"size-4"}),"Try again"]})]}):N?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):F.length===0&&!y?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),t.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):F.length===0&&y&&!i?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(xe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&F.length===0&&!u?t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),t.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):t.jsxs("div",{className:"flex flex-col gap-8",children:[u&&F.length===0&&t.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),L.length>0&&t.jsx(ae,{items:L,title:"Verified",onItemClick:E}),O.length>0&&t.jsx(ae,{items:O,title:L.length>0?"All":"",onItemClick:E}),R&&b&&t.jsx("div",{className:"flex justify-center py-8",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(se,{size:20,className:"animate-spin"}),t.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=O,e[36]=$,e[37]=E,e[38]=y,e[39]=R,e[40]=N,e[41]=b,e[42]=u,e[43]=i,e[44]=L,e[45]=F,e[46]=B):B=e[46];let A;e[47]!==H||e[48]!==o||e[49]!==B?(A=t.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:H,children:B}),e[47]=H,e[48]=o,e[49]=B,e[50]=A):A=e[50];let V;return e[51]!==W||e[52]!==D||e[53]!==A?(V=t.jsxs("div",{className:"flex flex-col h-full",children:[W,D,A]}),e[51]=W,e[52]=D,e[53]=A,e[54]=V):V=e[54],V}function dt(){return window.location.reload()}function mt(s){return s.is_public!==!0}function ut(s){const e=Q.c(11),{registryId:r,storePrivateOnly:l}=s,d=De(r),n=d?.tools;let i;e[0]!==n?(i=_e(n),e[0]=n,e[1]=i):i=e[1];const c=i;if(!c){let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("div",{className:"bg-muted p-3 rounded-full",children:t.jsx(ge,{className:"size-8 text-muted-foreground"})}),e[2]=m):m=e[2];let j;return e[3]===Symbol.for("react.memo_cache_sentinel")?(j=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[m,t.jsxs("div",{className:"space-y-2",children:[t.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),t.jsx("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:"This registry does not support listing store items, or the connection is not responding."})]})]}),e[3]=j):j=e[3],j}const a=d?.tools;let g;e[4]!==a?(g=Oe(a),e[4]=a,e[5]=g):g=e[5];const o=g||void 0;let p;return e[6]!==c||e[7]!==r||e[8]!==l||e[9]!==o?(p=t.jsx(ct,{registryId:r,listToolName:c,filtersToolName:o,storePrivateOnly:l}),e[6]=c,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function ft(s){const e=Q.c(43),{registries:r,value:l,onValueChange:d,onAddWellKnown:n,wellKnownRegistries:i,placeholder:c}=s,a=c===void 0?"Select a registry...":c,[g,I]=U.useState(!1);let o,p,m,j,S,R,b,N;if(e[0]!==g||e[1]!==a||e[2]!==r||e[3]!==l){let w;e[12]!==l?(w=y=>y.id===l,e[12]=l,e[13]=w):w=e[13];const x=r.find(w);p=ve,b=g,N=I,o=be,R=!0,m="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(j=oe("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 hover:bg-accent hover:text-accent-foreground dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-lg border bg-transparent px-3 py-2 text-sm whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] h-7 min-w-[160px]"),e[14]=j):j=e[14],S=x?t.jsxs("span",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}):t.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=g,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=m,e[7]=j,e[8]=S,e[9]=R,e[10]=b,e[11]=N}else o=e[4],p=e[5],m=e[6],j=e[7],S=e[8],R=e[9],b=e[10],N=e[11];let P;e[15]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(Se,{className:"size-4 opacity-50"}),e[15]=P):P=e[15];let $;e[16]!==m||e[17]!==j||e[18]!==S?($=t.jsxs("button",{type:m,className:j,children:[S,P]}),e[16]=m,e[17]=j,e[18]=S,e[19]=$):$=e[19];let h;e[20]!==o||e[21]!==R||e[22]!==$?(h=t.jsx(o,{asChild:R,children:$}),e[20]=o,e[21]=R,e[22]=$,e[23]=h):h=e[23];let C;if(e[24]!==d||e[25]!==r||e[26]!==l){let w;e[28]!==d||e[29]!==l?(w=x=>t.jsxs("button",{type:"button",onClick:()=>{d(x.id??x.name),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[x.icon?t.jsx("img",{src:x.icon,alt:x.name,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:x.name.slice(0,1).toUpperCase()}),t.jsx("span",{children:x.name})]}),l===(x.id??x.name)&&t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsx(Ce,{className:"size-4"})})]},x.id??x.name),e[28]=d,e[29]=l,e[30]=w):w=e[30],C=r.map(w),e[24]=d,e[25]=r,e[26]=l,e[27]=C}else C=e[27];let k;e[31]!==n||e[32]!==i?(k=i.length>0&&t.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[t.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(w=>t.jsxs("button",{type:"button",onClick:()=>{n(w),I(!1)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?t.jsx("img",{src:w.icon,alt:w.title,className:"w-4 h-4 rounded"}):t.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:w.title.slice(0,1).toUpperCase()}),t.jsx("span",{className:"flex-1",children:w.title})]}),t.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:t.jsx(He,{size:16})})]},w.id??w.title))]}),e[31]=n,e[32]=i,e[33]=k):k=e[33];let v;e[34]!==C||e[35]!==k?(v=t.jsxs(Ne,{align:"end",className:"w-auto min-w-[200px] p-1",children:[C,k]}),e[34]=C,e[35]=k,e[36]=v):v=e[36];let z;return e[37]!==p||e[38]!==h||e[39]!==v||e[40]!==b||e[41]!==N?(z=t.jsxs(p,{open:b,onOpenChange:N,children:[h,v]}),e[37]=p,e[38]=h,e[39]=v,e[40]=b,e[41]=N,e[42]=z):z=e[42],z}function xt({registries:s,onConnected:e}){const r=ye(),{org:{slug:l}}=re(),{data:d}=Ie.useSession(),n=de(),[i,c]=U.useState(!1),a=s[0],g=async()=>{if(!(!a||!d?.user?.id)){c(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{c(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:fe},search:{action:"create"}})};return t.jsx(qe,{image:t.jsx("img",{src:"/store-empty-state.svg",alt:"No store connected",width:336,height:320,className:"max-w-full h-auto"}),title:"Connect to registry",description:"Connect to discover and use Connections from the community.",actions:t.jsxs(t.Fragment,{children:[t.jsxs(Y,{variant:"outline",onClick:g,disabled:i||!a,children:[a?.icon&&t.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),t.jsx(Y,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function gt(s){const e=Q.c(15),{error:r,onRetry:l,registryName:d}=s;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:t.jsx(me,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let c;e[2]!==d?(c=t.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",t.jsx("strong",{children:d})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=d,e[3]=c):c=e[3];let a;e[4]!==r?(a=r?.message&&t.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:r.message}),e[4]=r,e[5]=a):a=e[5];let g;e[6]!==c||e[7]!==a?(g=t.jsxs("div",{className:"space-y-2",children:[i,c,a]}),e[6]=c,e[7]=a,e[8]=g):g=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(ue,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=t.jsxs(Y,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==g||e[13]!==o?(p=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,g,o]}),e[12]=g,e[13]=o,e[14]=p):p=e[14],p}function ts(){const s=Q.c(49),{org:e,project:r}=re(),l=Ge(),d=ye(),n=Te(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,c=Je(l);let a;s[0]!==e.id?(a=Ke.SELF(e.id),s[0]=e.id,s[1]=a):a=s[1];const g=a,I=r.enabledPlugins,o=I==null||I.includes(ne),p=c.filter(f=>f.id!==g?!0:o);let m;s[2]!==g?(m=f=>f.id===g,s[2]=g,s[3]=m):m=s[3];const j=p.some(m);let S;s[4]!==e.id?(S={connectionId:Ae,orgId:e.id},s[4]=e.id,s[5]=S):S=s[5];const R=je(S);let b;s[6]!==r.id||s[7]!==R?(b=async()=>{const f=await R.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ne}});return f.structuredContent??f},s[6]=r.id,s[7]=R,s[8]=b):b=s[8];const{data:N}=he({queryKey:ie.projectPluginConfig(r.id??"",ne),queryFn:b,enabled:j&&!!r.id,staleTime:6e4}),P=N?.config?.settings;let $;s[9]!==P||s[10]!==g?($=f=>f.id===g&&P?{id:f.id,name:P.registryName||f.title,icon:P.registryIcon||f.icon||void 0}:{id:f.id,name:f.title,icon:f.icon||void 0},s[9]=P,s[10]=g,s[11]=$):$=s[11];const h=p.map($);let C;s[12]!==e.slug?(C=Qe.selectedRegistry(e.slug),s[12]=e.slug,s[13]=C):C=s[13];const[k,v]=Ye(C,ht);let z;s[14]!==k?(z=f=>f.id===k,s[14]=k,s[15]=z):z=s[15];const x=p.find(z)?.id||p[0]?.id||"",y=x===g&&P?.storePrivateOnly===!0;let u;s[16]!==e.id?(u=Me(e.id),s[16]=e.id,s[17]=u):u=s[17];let T;s[18]!==u?(T=[u],s[18]=u,s[19]=T):T=s[19];const L=T;let F;s[20]===Symbol.for("react.memo_cache_sentinel")?(F=[Be()],s[20]=F):F=s[20];const O=F;let K;s[21]!==d.create||s[22]!==v?(K=async f=>{const Z=await d.create.mutateAsync(f);v(Z.id)},s[21]=d.create,s[22]=v,s[23]=K):K=s[23];const E=K,G=new Set(p.map(pt)),H=L.filter(f=>f.id&&!G.has(f.id)),W=O.filter(f=>f.id&&!G.has(f.id));if(i){let f;return s[24]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(Pe,{}),s[24]=f):f=s[24],f}let D;s[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(X.Header.Left,{children:t.jsx($e,{children:t.jsx(ke,{children:t.jsx(ze,{children:t.jsx(Le,{children:"Store"})})})})}),s[25]=D):D=s[25];let B;s[26]!==E?(B=async f=>E(f),s[26]=E,s[27]=B):B=s[27];let A;s[28]!==H||s[29]!==x||s[30]!==h||s[31]!==v||s[32]!==B?(A=t.jsxs(X.Header,{children:[D,t.jsx(X.Header.Right,{children:t.jsx(ft,{wellKnownRegistries:H,registries:h,value:x,onValueChange:v,onAddWellKnown:B,placeholder:"Select store..."})})]}),s[28]=H,s[29]=x,s[30]=h,s[31]=v,s[32]=B,s[33]=A):A=s[33];let V;s[34]!==x||s[35]!==h?(V=f=>{const{error:Z,resetError:le}=f;return t.jsx(gt,{error:Z,onRetry:le,registryName:h.find(ee=>ee.id===x)?.name??"registry"})},s[34]=x,s[35]=h,s[36]=V):V=s[36];let _;s[37]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[t.jsx(se,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),s[37]=_):_=s[37];let M;s[38]!==W||s[39]!==x||s[40]!==v||s[41]!==y?(M=t.jsx(U.Suspense,{fallback:_,children:x?t.jsx(ut,{registryId:x,storePrivateOnly:y}):t.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:t.jsx(xt,{registries:W,onConnected:f=>{v(f)}})})}),s[38]=W,s[39]=x,s[40]=v,s[41]=y,s[42]=M):M=s[42];let q;s[43]!==V||s[44]!==M?(q=t.jsx(X.Content,{children:t.jsx(Re,{fallback:V,children:M})}),s[43]=V,s[44]=M,s[45]=q):q=s[45];let J;return s[46]!==A||s[47]!==q?(J=t.jsxs(X,{children:[A,q]}),s[46]=A,s[47]=q,s[48]=J):J=s[48],J}function pt(s){return s.id}function ht(s){return s??""}export{ts as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as j,c as b,j as s,v as D,E as ee,u as te,d as se,B as ie}from"./index-DTgZok4N.js";import{V as le,C as h}from"./index-Gr3qtElA.js";import{E as re,C as Z}from"./editable-task-title--9hhF-R6.js";import{a as G}from"./tasks-panel-Bl5BMQl6.js";import{u as U,a as oe}from"./collapsible-Bqyw5z5a.js";import{I as J}from"./integration-icon-BqSOA-1d.js";import{b as ne,P as ae,a as ce}from"./popover-C2X8YaiC.js";import{S as q}from"./skeleton-DZ7Qc_fE.js";import{i as me,d as de}from"./constants-2Gp-yGJ1.js";import{b as fe}from"./use-virtual-mcp-CS7dIIbK.js";import{i as ue}from"./ChevronRight-sqD7LMFa.js";import{t as Q}from"./Users03-BXHamAas.js";import{P as $}from"./index-BMtw0aq_.js";import{R,a as F,b as K}from"./resizable-BotMD0Ea.js";import"./spinner-CF1sqMoC.js";import"./tooltip-B2vpv_WH.js";import"./index-BG6VshDR.js";import"./decopilot-events-DlkvGkzj.js";import"./useQuery-C-DbMOQt.js";import"./dialog-BeE7uUPn.js";import"./X-BHBlYu74.js";import"./form-DNs_mLgF.js";import"./label-ND6ncjGS.js";import"./input-CjsuYubG.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-YaPl1lq-.js";import"./ChevronDown-Bt1ewsqh.js";import"./Edit01-Cg13Y9IR.js";import"./XCircle-Bm1DtLmf.js";import"./AlertCircle-C_-Exi_n.js";import"./select-CwGh16En.js";import"./Check-AlxQ-j2G.js";import"./tabs-DkvkxCCI.js";import"./localstorage-keys-Cenhbz-P.js";import"./useMutation-B99hCaMl.js";import"./ArrowLeft-DiQ6H1qe.js";import"./use-copy-5Xu6yo2D.js";import"./badge-BZU2aZ4g.js";import"./Code01-X9LTEq8d.js";import"./SearchMd-CSKcblxx.js";import"./use-create-virtual-mcp-EqzJGE7y.js";import"./use-mcp-resources-Bf8HKw75.js";import"./Copy01-yMwUMo5Y.js";import"./marked.esm-BaswSlok.js";import"./markdown-DI_NQ3zj.js";import"./mcp-app-renderer-D2qbe9d6.js";import"./types-DeMEWRHV.js";import"./Eye-D5VDCdLP.js";import"./Globe02-DsDY7_VG.js";import"./LayersTwo01-BFhpnCtq.js";import"./XClose-B0OIa3qG.js";import"./collection-search-Bkt-jVWx.js";import"./Loading01-SjZGs3Wk.js";import"./use-connection-Du5eRm0t.js";import"./generate-id-Dyweu44Y.js";import"./Clock-CGeVATg-.js";import"./Trash01-CDDpTvNv.js";import"./CheckCircle-BQbEhLAd.js";import"./ChevronLeft-ZjYcxOdo.js";import"./user-BncBYJfn.js";import"./avatar-BsFgSPZd.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./Plus-DXYydVCi.js";import"./use-llm-B4rO8f2r.js";import"./use-binding-CXeaDqWF.js";import"./binder-CXy7pGaI.js";import"./checkbox-DaiL5KlM.js";import"./AlignLeft-DU7XXs04.js";import"./Image01-Dk65YqxA.js";import"./RefreshCcw01-DT9wSPl_.js";import"./Settings01-Dkx2ZoN9.js";import"./useSuspenseInfiniteQuery-CX_HgzHm.js";import"./infiniteQueryObserver-Dy7IOO2y.js";import"./Container-Dt3fts2O.js";const X=({size:e=24,color:t="currentColor",...i})=>j.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},j.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));X.displayName="LayoutRight";const Y=({size:e=24,color:t="currentColor",...i})=>j.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},j.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));Y.displayName="MessageChatSquare";function pe(e){const t=b.c(15),{agent:i}=e,{setVirtualMcpId:p}=U();let c;t[0]!==i.id||t[1]!==p?(c=()=>{p(i.id)},t[0]=i.id,t[1]=p,t[2]=c):c=t[2];const r=c;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=D("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[3]=m):m=t[3];const f=`Select agent ${i.title}`;let o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Q,{size:20}),t[4]=o):o=t[4];let n;t[5]!==i.icon||t[6]!==i.title?(n=s.jsx(J,{icon:i.icon,name:i.title,fallbackIcon:o}),t[5]=i.icon,t[6]=i.title,t[7]=n):n=t[7];let l;t[8]!==i.title?(l=s.jsx("p",{className:"text-sm text-foreground text-center leading-tight line-clamp-2",children:i.title}),t[8]=i.title,t[9]=l):l=t[9];let a;return t[10]!==r||t[11]!==f||t[12]!==n||t[13]!==l?(a=s.jsxs("button",{type:"button",onClick:r,className:m,"aria-label":f,children:[n,l]}),t[10]=r,t[11]=f,t[12]=n,t[13]=l,t[14]=a):a=t[14],a}function xe(e){const t=b.c(14),{virtualMcps:i,selectedVirtualMcpId:p,onVirtualMcpChange:c}=e,[r,m]=j.useState(!1),f=j.useRef(null);let o,n;t[0]!==r?(o=()=>{r&&setTimeout(()=>{f.current?.focus()},0)},n=[r],t[0]=r,t[1]=o,t[2]=n):(o=t[1],n=t[2]),j.useEffect(o,n);let l;t[3]!==c?(l=N=>{c(N),m(!1)},t[3]=c,t[4]=l):l=t[4];const a=l;let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=D("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[5]=d):d=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(ne,{asChild:!0,children:s.jsxs("button",{type:"button",className:d,"aria-label":"See all agents",children:[s.jsx("div",{className:"size-12 rounded-lg bg-accent flex items-center justify-center shrink-0",children:s.jsx(ue,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=u):u=t[6];let x;t[7]!==a||t[8]!==p||t[9]!==i?(x=s.jsx(ae,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:s.jsx(le,{virtualMcps:i,selectedVirtualMcpId:p,onVirtualMcpChange:a,searchInputRef:f})}),t[7]=a,t[8]=p,t[9]=i,t[10]=x):x=t[10];let A;return t[11]!==r||t[12]!==x?(A=s.jsxs(ce,{open:r,onOpenChange:m,children:[u,x]}),t[11]=r,t[12]=x,t[13]=A):A=t[13],A}function he(){const e=b.c(20),t=fe(),{selectedVirtualMcp:i,setVirtualMcpId:p}=U();let c,r,m,f,o,n;if(e[0]!==t){o=Symbol.for("react.early_return_sentinel");e:{const x=t.filter(be).slice(0,6);if(x.length===0){o=null;break e}n=t.map(ge),m="w-full max-w-[800px]",e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("h2",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Recently used agents"}),e[7]=f):f=e[7],c="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",r=x.map(je)}e[0]=t,e[1]=c,e[2]=r,e[3]=m,e[4]=f,e[5]=o,e[6]=n}else c=e[1],r=e[2],m=e[3],f=e[4],o=e[5],n=e[6];if(o!==Symbol.for("react.early_return_sentinel"))return o;const l=i?.id??null;let a;e[8]!==p||e[9]!==l||e[10]!==n?(a=s.jsx(xe,{virtualMcps:n,selectedVirtualMcpId:l,onVirtualMcpChange:p}),e[8]=p,e[9]=l,e[10]=n,e[11]=a):a=e[11];let d;e[12]!==c||e[13]!==r||e[14]!==a?(d=s.jsxs("div",{className:c,children:[r,a]}),e[12]=c,e[13]=r,e[14]=a,e[15]=d):d=e[15];let u;return e[16]!==m||e[17]!==f||e[18]!==d?(u=s.jsxs("div",{className:m,children:[f,d]}),e[16]=m,e[17]=f,e[18]=d,e[19]=u):u=e[19],u}function je(e){return s.jsx(pe,{agent:e},e.id??"default")}function ge(e){return{id:e.id,title:e.title,description:e.description,icon:e.icon}}function be(e){return e.id!==null&&!me(e.id)}function Ne(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(q,{className:"h-5 w-40 mb-4"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"w-full max-w-[800px]",children:[t,s.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",children:Array.from({length:7}).map(Ce)})]}),e[1]=i):i=e[1],i}function Ce(e,t){return s.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 self-stretch",children:[s.jsx(q,{className:"size-6 rounded-md shrink-0"}),s.jsx(q,{className:"h-4 w-full"})]},t)}function ve(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(j.Suspense,{fallback:s.jsx(Ne,{}),children:s.jsx(he,{})}),e[0]=t):t=e[0],t}function Se(){const e=b.c(50),{org:t}=te(),{data:i}=se.useSession(),{modelsConnections:p,isChatEmpty:c,activeTaskId:r,tasks:m,selectedVirtualMcp:f}=oe();let o;if(e[0]!==r||e[1]!==m){let g;e[3]!==r?(g=P=>P.id===r,e[3]=r,e[4]=g):g=e[4],o=m.find(g),e[0]=r,e[1]=m,e[2]=o}else o=e[2];const n=o,[l,a]=j.useState(!1);let d;e[5]!==i?.user?.name?(d=i?.user?.name?.split(" ")[0]||"there",e[5]=i?.user?.name,e[6]=d):d=e[6];const u=d;let x;e[7]!==t.id?(x=de(t.id),e[7]=t.id,e[8]=x):x=e[8];const N=f??x;if(p.length===0){let g,P;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(R,{defaultSize:20,minSize:10,id:"tasks",order:1,children:s.jsx(G,{})}),P=s.jsx(F,{className:"bg-border/30"}),e[9]=g,e[10]=P):(g=e[9],P=e[10]);const W=l?50:80;let V;e[11]!==t?(V=s.jsx("div",{className:"flex flex-col h-full bg-background items-center justify-center",children:s.jsx(h.NoLlmBindingEmptyState,{org:t})}),e[11]=t,e[12]=V):V=e[12];let E;e[13]!==W||e[14]!==V?(E=s.jsx(R,{defaultSize:W,minSize:30,id:"main",order:2,children:V}),e[13]=W,e[14]=V,e[15]=E):E=e[15];let I;e[16]!==l?(I=l&&s.jsxs(s.Fragment,{children:[s.jsx(F,{className:"bg-border/30"}),s.jsx(R,{defaultSize:30,minSize:15,id:"context",order:3,children:s.jsx(Z,{onClose:()=>a(!1)})})]}),e[16]=l,e[17]=I):I=e[17];let B;return e[18]!==E||e[19]!==I?(B=s.jsxs(K,{direction:"horizontal",className:"size-full",children:[g,P,E,I]}),e[18]=E,e[19]=I,e[20]=B):B=e[20],B}let H,L;e[21]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(R,{defaultSize:20,minSize:10,id:"tasks",order:1,children:s.jsx(G,{})}),L=s.jsx(F,{className:"bg-border/30"}),e[21]=H,e[22]=L):(H=e[21],L=e[22]);const O=l?50:80;let C;e[23]!==n?(C=n?.title&&s.jsx(re,{taskId:n.id,text:n.title,className:"text-sm font-medium text-foreground"}),e[23]=n,e[24]=C):C=e[24];let v;e[25]!==C?(v=s.jsx($.Header.Left,{className:"gap-2",children:C}),e[25]=C,e[26]=v):v=e[26];let S;e[27]!==c||e[28]!==l?(S=!c&&s.jsx("button",{type:"button",onClick:()=>a(ye),className:D("flex size-7 items-center justify-center rounded-md border border-input hover:bg-accent transition-colors",l&&"bg-accent"),title:"Toggle context panel",children:s.jsx(X,{size:14,className:"text-muted-foreground"})}),e[27]=c,e[28]=l,e[29]=S):S=e[29];let y;e[30]!==S?(y=s.jsx($.Header.Right,{className:"gap-1",children:S}),e[30]=S,e[31]=y):y=e[31];let k;e[32]!==v||e[33]!==y?(k=s.jsxs($.Header,{className:"flex-none z-10 bg-background",children:[v,y]}),e[32]=v,e[33]=y,e[34]=k):k=e[34];let _;e[35]!==N||e[36]!==c||e[37]!==u?(_=c?s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center px-10 pb-32 pt-10",children:[s.jsxs("div",{className:"flex flex-col items-center w-full max-w-[600px]",children:[s.jsx("div",{className:"flex justify-center mb-4",children:s.jsx(J,{icon:N.icon,name:N.title,size:"md",fallbackIcon:s.jsx(Q,{size:20}),className:"size-12 rounded-xl border border-stone-200/60 shadow-sm aspect-square transition-opacity duration-200"})}),s.jsx("div",{className:"text-center mb-8",children:s.jsxs("p",{className:"text-xl font-medium text-foreground",children:["What's on your mind, ",u,"?"]})}),s.jsx("div",{className:"w-full",children:s.jsx(h.Input,{})}),s.jsx(h.IceBreakers,{className:"w-full"})]}),s.jsx("div",{className:"flex flex-col items-center w-full mt-4",children:s.jsx(ve,{})})]}):s.jsxs(s.Fragment,{children:[s.jsx(h.Main,{children:s.jsx(h.Messages,{})}),s.jsx(h.Footer,{children:s.jsx(h.Input,{onOpenContextPanel:()=>a(!0)})})]}),e[35]=N,e[36]=c,e[37]=u,e[38]=_):_=e[38];let z;e[39]!==k||e[40]!==_?(z=s.jsxs(h,{className:"h-full bg-background",children:[k,_]}),e[39]=k,e[40]=_,e[41]=z):z=e[41];let w;e[42]!==z||e[43]!==O?(w=s.jsx(R,{defaultSize:O,minSize:30,id:"main",order:2,children:z}),e[42]=z,e[43]=O,e[44]=w):w=e[44];let M;e[45]!==l?(M=l&&s.jsxs(s.Fragment,{children:[s.jsx(F,{className:"bg-border/30"}),s.jsx(R,{defaultSize:30,minSize:15,id:"context",order:3,children:s.jsx(Z,{onClose:()=>a(!1)})})]}),e[45]=l,e[46]=M):M=e[46];let T;return e[47]!==w||e[48]!==M?(T=s.jsxs(K,{direction:"horizontal",className:"size-full",children:[H,L,w,M]}),e[47]=w,e[48]=M,e[49]=T):T=e[49],T}function ye(e){return!e}function ke(e){const t=b.c(14),{error:i,onRetry:p}=e,c=i?.message?.includes("401")||i?.message?.toLowerCase().includes("unauthorized");let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs($.Header,{className:"flex-none",children:[s.jsx($.Header.Left,{className:"gap-2"}),s.jsx($.Header.Right,{className:"gap-1"})]}),t[0]=r):r=t[0];let m;t[1]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full mx-auto w-fit",children:s.jsx(Y,{className:"h-6 w-6 text-destructive"})}),t[1]=m):m=t[1];const f=c?"Unable to load models":"Something went wrong";let o;t[2]!==f?(o=s.jsx("h3",{className:"text-lg font-medium",children:f}),t[2]=f,t[3]=o):o=t[3];const n=c?"There was an authentication error while loading the models. This might be due to an expired session or invalid API key.":i?.message||"An unexpected error occurred";let l;t[4]!==n?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:n}),t[4]=n,t[5]=l):l=t[5];let a;t[6]!==o||t[7]!==l?(a=s.jsxs("div",{className:"space-y-2",children:[o,l]}),t[6]=o,t[7]=l,t[8]=a):a=t[8];let d;t[9]!==p?(d=s.jsx(ie,{variant:"outline",onClick:p,children:"Try again"}),t[9]=p,t[10]=d):d=t[10];let u;return t[11]!==a||t[12]!==d?(u=s.jsxs(h,{children:[r,s.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:s.jsxs("div",{className:"max-w-sm space-y-4",children:[m,a,d]})})]}),t[11]=a,t[12]=d,t[13]=u):u=t[13],u}function Kt(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ee,{fallback:_e,children:s.jsx(j.Suspense,{fallback:s.jsx(h.Skeleton,{}),children:s.jsx(Se,{})})}),e[0]=t):t=e[0],t}function _e(e){const{error:t,resetError:i}=e;return s.jsx(ke,{error:t,onRetry:i})}export{Kt as default};
|
|
1
|
+
import{r as j,c as b,j as s,v as D,E as ee,u as te,d as se,B as ie}from"./index-BiG-bBX7.js";import{V as le,C as h}from"./index-D1gbzHrb.js";import{E as re,C as Z}from"./editable-task-title-nQdI1V_W.js";import{a as G}from"./tasks-panel-CmBpoAsV.js";import{u as U,a as oe}from"./collapsible-DRIF4wXT.js";import{I as J}from"./integration-icon-DJplt18U.js";import{b as ne,P as ae,a as ce}from"./popover-Cnhlur36.js";import{S as q}from"./skeleton-DhcP44Ov.js";import{i as me,d as de}from"./constants-Bj4b22ad.js";import{b as fe}from"./use-virtual-mcp-r6ou4ewu.js";import{i as ue}from"./ChevronRight-8LnYcsyR.js";import{t as Q}from"./Users03-BY0qO7qD.js";import{P as $}from"./index-ehKjC5PZ.js";import{R,a as F,b as K}from"./resizable-BC2aG7ea.js";import"./spinner-DSMOMT7g.js";import"./tooltip-BacoSwd7.js";import"./index-BxikKkX5.js";import"./decopilot-events-CdHUYzEf.js";import"./useQuery-Us1whSan.js";import"./dialog-DDOb23Pi.js";import"./X-B9LxUp5o.js";import"./form-CZlsOGpj.js";import"./label-BLk50aKt.js";import"./input-BcOk4EWn.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-8t9O2FqG.js";import"./ChevronDown-CIw5H_8I.js";import"./Edit01-DLZcWIR-.js";import"./XCircle-Dkkdz5ph.js";import"./AlertCircle-BIVpB2eV.js";import"./select-DJV0GpEL.js";import"./Check-Bs28PslG.js";import"./tabs-C-5F-MJ5.js";import"./localstorage-keys-BS2STbF7.js";import"./useMutation-Cxle_Mtw.js";import"./ArrowLeft-CvCy8CyB.js";import"./use-copy-De63ENVh.js";import"./badge-DaJA40lr.js";import"./Code01-C0MNem7b.js";import"./SearchMd-BzFnoImC.js";import"./use-create-virtual-mcp-52zuHZ4A.js";import"./use-mcp-resources-ucs4znYI.js";import"./Copy01-Czr6qLQt.js";import"./marked.esm-BaswSlok.js";import"./markdown-94xyd8w7.js";import"./mcp-app-renderer-CPkL4-A0.js";import"./types-C6Uddd8z.js";import"./Eye-DPTzoZL8.js";import"./Globe02-vxtQsT0f.js";import"./LayersTwo01-BexG7k2g.js";import"./XClose-7hYEQUhK.js";import"./collection-search-DWb-q4sb.js";import"./Loading01-W-w3cVps.js";import"./use-connection-CsobI-JA.js";import"./generate-id-Dyweu44Y.js";import"./Clock-D17OAEFV.js";import"./Trash01-BsNnpu_l.js";import"./CheckCircle-BnSsCPeL.js";import"./ChevronLeft-fmgWXUdB.js";import"./user-DiQL4i6w.js";import"./avatar-CV6z8E70.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./Plus-7RI9qITc.js";import"./use-llm-DTbAtUds.js";import"./use-binding-CoVeLP6R.js";import"./binder-Bx_2YVEH.js";import"./checkbox-C2xwBknU.js";import"./AlignLeft-DWMdThfD.js";import"./Image01-B_6vFaZi.js";import"./RefreshCcw01-BM6X0J3F.js";import"./Settings01-D3dDBLbY.js";import"./useSuspenseInfiniteQuery-DcGj9DQ4.js";import"./infiniteQueryObserver-BZCRT6X1.js";import"./Container-C4kCziiV.js";const X=({size:e=24,color:t="currentColor",...i})=>j.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},j.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));X.displayName="LayoutRight";const Y=({size:e=24,color:t="currentColor",...i})=>j.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},j.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));Y.displayName="MessageChatSquare";function pe(e){const t=b.c(15),{agent:i}=e,{setVirtualMcpId:p}=U();let c;t[0]!==i.id||t[1]!==p?(c=()=>{p(i.id)},t[0]=i.id,t[1]=p,t[2]=c):c=t[2];const r=c;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=D("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[3]=m):m=t[3];const f=`Select agent ${i.title}`;let o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Q,{size:20}),t[4]=o):o=t[4];let n;t[5]!==i.icon||t[6]!==i.title?(n=s.jsx(J,{icon:i.icon,name:i.title,fallbackIcon:o}),t[5]=i.icon,t[6]=i.title,t[7]=n):n=t[7];let l;t[8]!==i.title?(l=s.jsx("p",{className:"text-sm text-foreground text-center leading-tight line-clamp-2",children:i.title}),t[8]=i.title,t[9]=l):l=t[9];let a;return t[10]!==r||t[11]!==f||t[12]!==n||t[13]!==l?(a=s.jsxs("button",{type:"button",onClick:r,className:m,"aria-label":f,children:[n,l]}),t[10]=r,t[11]=f,t[12]=n,t[13]=l,t[14]=a):a=t[14],a}function xe(e){const t=b.c(14),{virtualMcps:i,selectedVirtualMcpId:p,onVirtualMcpChange:c}=e,[r,m]=j.useState(!1),f=j.useRef(null);let o,n;t[0]!==r?(o=()=>{r&&setTimeout(()=>{f.current?.focus()},0)},n=[r],t[0]=r,t[1]=o,t[2]=n):(o=t[1],n=t[2]),j.useEffect(o,n);let l;t[3]!==c?(l=N=>{c(N),m(!1)},t[3]=c,t[4]=l):l=t[4];const a=l;let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=D("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[5]=d):d=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(ne,{asChild:!0,children:s.jsxs("button",{type:"button",className:d,"aria-label":"See all agents",children:[s.jsx("div",{className:"size-12 rounded-lg bg-accent flex items-center justify-center shrink-0",children:s.jsx(ue,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=u):u=t[6];let x;t[7]!==a||t[8]!==p||t[9]!==i?(x=s.jsx(ae,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:s.jsx(le,{virtualMcps:i,selectedVirtualMcpId:p,onVirtualMcpChange:a,searchInputRef:f})}),t[7]=a,t[8]=p,t[9]=i,t[10]=x):x=t[10];let A;return t[11]!==r||t[12]!==x?(A=s.jsxs(ce,{open:r,onOpenChange:m,children:[u,x]}),t[11]=r,t[12]=x,t[13]=A):A=t[13],A}function he(){const e=b.c(20),t=fe(),{selectedVirtualMcp:i,setVirtualMcpId:p}=U();let c,r,m,f,o,n;if(e[0]!==t){o=Symbol.for("react.early_return_sentinel");e:{const x=t.filter(be).slice(0,6);if(x.length===0){o=null;break e}n=t.map(ge),m="w-full max-w-[800px]",e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("h2",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Recently used agents"}),e[7]=f):f=e[7],c="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",r=x.map(je)}e[0]=t,e[1]=c,e[2]=r,e[3]=m,e[4]=f,e[5]=o,e[6]=n}else c=e[1],r=e[2],m=e[3],f=e[4],o=e[5],n=e[6];if(o!==Symbol.for("react.early_return_sentinel"))return o;const l=i?.id??null;let a;e[8]!==p||e[9]!==l||e[10]!==n?(a=s.jsx(xe,{virtualMcps:n,selectedVirtualMcpId:l,onVirtualMcpChange:p}),e[8]=p,e[9]=l,e[10]=n,e[11]=a):a=e[11];let d;e[12]!==c||e[13]!==r||e[14]!==a?(d=s.jsxs("div",{className:c,children:[r,a]}),e[12]=c,e[13]=r,e[14]=a,e[15]=d):d=e[15];let u;return e[16]!==m||e[17]!==f||e[18]!==d?(u=s.jsxs("div",{className:m,children:[f,d]}),e[16]=m,e[17]=f,e[18]=d,e[19]=u):u=e[19],u}function je(e){return s.jsx(pe,{agent:e},e.id??"default")}function ge(e){return{id:e.id,title:e.title,description:e.description,icon:e.icon}}function be(e){return e.id!==null&&!me(e.id)}function Ne(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(q,{className:"h-5 w-40 mb-4"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"w-full max-w-[800px]",children:[t,s.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",children:Array.from({length:7}).map(Ce)})]}),e[1]=i):i=e[1],i}function Ce(e,t){return s.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 self-stretch",children:[s.jsx(q,{className:"size-6 rounded-md shrink-0"}),s.jsx(q,{className:"h-4 w-full"})]},t)}function ve(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(j.Suspense,{fallback:s.jsx(Ne,{}),children:s.jsx(he,{})}),e[0]=t):t=e[0],t}function Se(){const e=b.c(50),{org:t}=te(),{data:i}=se.useSession(),{modelsConnections:p,isChatEmpty:c,activeTaskId:r,tasks:m,selectedVirtualMcp:f}=oe();let o;if(e[0]!==r||e[1]!==m){let g;e[3]!==r?(g=P=>P.id===r,e[3]=r,e[4]=g):g=e[4],o=m.find(g),e[0]=r,e[1]=m,e[2]=o}else o=e[2];const n=o,[l,a]=j.useState(!1);let d;e[5]!==i?.user?.name?(d=i?.user?.name?.split(" ")[0]||"there",e[5]=i?.user?.name,e[6]=d):d=e[6];const u=d;let x;e[7]!==t.id?(x=de(t.id),e[7]=t.id,e[8]=x):x=e[8];const N=f??x;if(p.length===0){let g,P;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(R,{defaultSize:20,minSize:10,id:"tasks",order:1,children:s.jsx(G,{})}),P=s.jsx(F,{className:"bg-border/30"}),e[9]=g,e[10]=P):(g=e[9],P=e[10]);const W=l?50:80;let V;e[11]!==t?(V=s.jsx("div",{className:"flex flex-col h-full bg-background items-center justify-center",children:s.jsx(h.NoLlmBindingEmptyState,{org:t})}),e[11]=t,e[12]=V):V=e[12];let E;e[13]!==W||e[14]!==V?(E=s.jsx(R,{defaultSize:W,minSize:30,id:"main",order:2,children:V}),e[13]=W,e[14]=V,e[15]=E):E=e[15];let I;e[16]!==l?(I=l&&s.jsxs(s.Fragment,{children:[s.jsx(F,{className:"bg-border/30"}),s.jsx(R,{defaultSize:30,minSize:15,id:"context",order:3,children:s.jsx(Z,{onClose:()=>a(!1)})})]}),e[16]=l,e[17]=I):I=e[17];let B;return e[18]!==E||e[19]!==I?(B=s.jsxs(K,{direction:"horizontal",className:"size-full",children:[g,P,E,I]}),e[18]=E,e[19]=I,e[20]=B):B=e[20],B}let H,L;e[21]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(R,{defaultSize:20,minSize:10,id:"tasks",order:1,children:s.jsx(G,{})}),L=s.jsx(F,{className:"bg-border/30"}),e[21]=H,e[22]=L):(H=e[21],L=e[22]);const O=l?50:80;let C;e[23]!==n?(C=n?.title&&s.jsx(re,{taskId:n.id,text:n.title,className:"text-sm font-medium text-foreground"}),e[23]=n,e[24]=C):C=e[24];let v;e[25]!==C?(v=s.jsx($.Header.Left,{className:"gap-2",children:C}),e[25]=C,e[26]=v):v=e[26];let S;e[27]!==c||e[28]!==l?(S=!c&&s.jsx("button",{type:"button",onClick:()=>a(ye),className:D("flex size-7 items-center justify-center rounded-md border border-input hover:bg-accent transition-colors",l&&"bg-accent"),title:"Toggle context panel",children:s.jsx(X,{size:14,className:"text-muted-foreground"})}),e[27]=c,e[28]=l,e[29]=S):S=e[29];let y;e[30]!==S?(y=s.jsx($.Header.Right,{className:"gap-1",children:S}),e[30]=S,e[31]=y):y=e[31];let k;e[32]!==v||e[33]!==y?(k=s.jsxs($.Header,{className:"flex-none z-10 bg-background",children:[v,y]}),e[32]=v,e[33]=y,e[34]=k):k=e[34];let _;e[35]!==N||e[36]!==c||e[37]!==u?(_=c?s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center px-10 pb-32 pt-10",children:[s.jsxs("div",{className:"flex flex-col items-center w-full max-w-[600px]",children:[s.jsx("div",{className:"flex justify-center mb-4",children:s.jsx(J,{icon:N.icon,name:N.title,size:"md",fallbackIcon:s.jsx(Q,{size:20}),className:"size-12 rounded-xl border border-stone-200/60 shadow-sm aspect-square transition-opacity duration-200"})}),s.jsx("div",{className:"text-center mb-8",children:s.jsxs("p",{className:"text-xl font-medium text-foreground",children:["What's on your mind, ",u,"?"]})}),s.jsx("div",{className:"w-full",children:s.jsx(h.Input,{})}),s.jsx(h.IceBreakers,{className:"w-full"})]}),s.jsx("div",{className:"flex flex-col items-center w-full mt-4",children:s.jsx(ve,{})})]}):s.jsxs(s.Fragment,{children:[s.jsx(h.Main,{children:s.jsx(h.Messages,{})}),s.jsx(h.Footer,{children:s.jsx(h.Input,{onOpenContextPanel:()=>a(!0)})})]}),e[35]=N,e[36]=c,e[37]=u,e[38]=_):_=e[38];let z;e[39]!==k||e[40]!==_?(z=s.jsxs(h,{className:"h-full bg-background",children:[k,_]}),e[39]=k,e[40]=_,e[41]=z):z=e[41];let w;e[42]!==z||e[43]!==O?(w=s.jsx(R,{defaultSize:O,minSize:30,id:"main",order:2,children:z}),e[42]=z,e[43]=O,e[44]=w):w=e[44];let M;e[45]!==l?(M=l&&s.jsxs(s.Fragment,{children:[s.jsx(F,{className:"bg-border/30"}),s.jsx(R,{defaultSize:30,minSize:15,id:"context",order:3,children:s.jsx(Z,{onClose:()=>a(!1)})})]}),e[45]=l,e[46]=M):M=e[46];let T;return e[47]!==w||e[48]!==M?(T=s.jsxs(K,{direction:"horizontal",className:"size-full",children:[H,L,w,M]}),e[47]=w,e[48]=M,e[49]=T):T=e[49],T}function ye(e){return!e}function ke(e){const t=b.c(14),{error:i,onRetry:p}=e,c=i?.message?.includes("401")||i?.message?.toLowerCase().includes("unauthorized");let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs($.Header,{className:"flex-none",children:[s.jsx($.Header.Left,{className:"gap-2"}),s.jsx($.Header.Right,{className:"gap-1"})]}),t[0]=r):r=t[0];let m;t[1]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full mx-auto w-fit",children:s.jsx(Y,{className:"h-6 w-6 text-destructive"})}),t[1]=m):m=t[1];const f=c?"Unable to load models":"Something went wrong";let o;t[2]!==f?(o=s.jsx("h3",{className:"text-lg font-medium",children:f}),t[2]=f,t[3]=o):o=t[3];const n=c?"There was an authentication error while loading the models. This might be due to an expired session or invalid API key.":i?.message||"An unexpected error occurred";let l;t[4]!==n?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:n}),t[4]=n,t[5]=l):l=t[5];let a;t[6]!==o||t[7]!==l?(a=s.jsxs("div",{className:"space-y-2",children:[o,l]}),t[6]=o,t[7]=l,t[8]=a):a=t[8];let d;t[9]!==p?(d=s.jsx(ie,{variant:"outline",onClick:p,children:"Try again"}),t[9]=p,t[10]=d):d=t[10];let u;return t[11]!==a||t[12]!==d?(u=s.jsxs(h,{children:[r,s.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:s.jsxs("div",{className:"max-w-sm space-y-4",children:[m,a,d]})})]}),t[11]=a,t[12]=d,t[13]=u):u=t[13],u}function Kt(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ee,{fallback:_e,children:s.jsx(j.Suspense,{fallback:s.jsx(h.Skeleton,{}),children:s.jsx(Se,{})})}),e[0]=t):t=e[0],t}function _e(e){const{error:t,resetError:i}=e;return s.jsx(ke,{error:t,onRetry:i})}export{Kt as default};
|
package/dist/client/assets/{plugin-empty-state-Df_tIhim.js → plugin-empty-state-Beu1zYui.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as t}from"./index-
|
|
1
|
+
import{c as s,j as t}from"./index-BiG-bBX7.js";import{e as r}from"./Dataflow03-COO3w9be.js";function a(){const o=s.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(r,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No workflows connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect a workflow provider to create and manage automated workflows with multiple steps and integrations."})]}),o[0]=e):e=o[0],e}export{a as default};
|
package/dist/client/assets/{plugin-empty-state-BV6g5sMv.js → plugin-empty-state-C3IVEK8r.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,j as t,aA as n}from"./index-
|
|
1
|
+
import{c as a,j as t,aA as n}from"./index-BiG-bBX7.js";function c(){const s=a.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(n,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No storage connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect an S3-compatible storage service to browse and manage files."})]}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,j as s,r as w}from"./index-
|
|
1
|
+
import{c as S,j as s,r as w}from"./index-BiG-bBX7.js";import{i as R}from"./Check-Bs28PslG.js";import{t as _}from"./ChevronDown-CIw5H_8I.js";import{e as y}from"./Dataflow03-COO3w9be.js";function E(x){const e=S.c(32),{connections:l,selectedConnectionId:r,onConnectionChange:N}=x,[n,z]=w.useState(!1),C=w.useRef(null);let p;if(e[0]!==l||e[1]!==r){let t;e[3]!==r?(t=u=>u.id===r,e[3]=r,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=r,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const k=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Workflows";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==n?(o=()=>z(!n),e[13]=n,e[14]=o):o=e[14];let c;e[15]!==i?(c=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=c):c=e[16];const v=i?.title||"Select provider";let a;e[17]!==v?(a=s.jsx("span",{children:v}),e[17]=v,e[18]=a):a=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(_,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==c||e[22]!==a?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[c,a,b]}),e[20]=o,e[21]=c,e[22]=a,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==n||e[26]!==N||e[27]!==r?(m=n&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===r&&s.jsx(R,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=n,e[26]=N,e[27]=r,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:k,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function H(x){const e=S.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{H as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,j as s,r as S,aA as y}from"./index-
|
|
1
|
+
import{c as w,j as s,r as S,aA as y}from"./index-BiG-bBX7.js";import{i as _}from"./Check-Bs28PslG.js";import{t as k}from"./ChevronDown-CIw5H_8I.js";function E(x){const e=w.c(32),{connections:l,selectedConnectionId:n,onConnectionChange:N}=x,[r,z]=S.useState(!1),C=S.useRef(null);let p;if(e[0]!==l||e[1]!==n){let t;e[3]!==n?(t=u=>u.id===n,e[3]=n,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=n,e[2]=p}else p=e[2];const i=p;let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=t=>{C.current?.contains(t.relatedTarget)||z(!1)},e[5]=j):j=e[5];const R=j;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Storage";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==r?(o=()=>z(!r),e[13]=r,e[14]=o):o=e[14];let a;e[15]!==i?(a=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),e[15]=i,e[16]=a):a=e[16];const v=i?.title||"Select storage";let c;e[17]!==v?(c=s.jsx("span",{children:v}),e[17]=v,e[18]=c):c=e[18];let b;e[19]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(k,{size:14}),e[19]=b):b=e[19];let d;e[20]!==o||e[21]!==a||e[22]!==c?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[a,c,b]}),e[20]=o,e[21]=a,e[22]=c,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==r||e[26]!==N||e[27]!==n?(m=r&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),z(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(y,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===n&&s.jsx(_,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=r,e[26]=N,e[27]=n,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:R,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function O(x){const e=w.c(2);let l;return e[0]!==x?(l=s.jsx(E,{...x}),e[0]=x,e[1]=l):l=e[1],l}export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as r,j as i}from"./index-BiG-bBX7.js";import{P as m}from"./project-plugins-DlaP9lSP.js";import"./useQuery-Us1whSan.js";import"./useMutation-Cxle_Mtw.js";import"./constants-Bj4b22ad.js";import"./switch-CR-VYNUs.js";import"./label-BLk50aKt.js";import"./Container-C4kCziiV.js";import"./use-connection-CsobI-JA.js";import"./use-binding-CoVeLP6R.js";import"./binder-Bx_2YVEH.js";import"./use-install-from-registry-BUdVd5Au.js";import"./extract-connection-data-DSMZDJ4i.js";import"./constants-DTlOAYW2.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-B4prNmYa.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-W-w3cVps.js";import"./Plus-7RI9qITc.js";import"./select-DJV0GpEL.js";import"./index-BxikKkX5.js";import"./Check-Bs28PslG.js";import"./ChevronDown-CIw5H_8I.js";function q(){const o=r.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{}),o[0]=t):t=o[0],t}export{q as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,G as $,j as c,aW as H,aH as G,I as A,H as _,M as g,aU as b,T as j,aV as L,aX as w,b0 as z,b1 as U,U as K,b2 as V,b3 as W,b4 as Z,aY as X,aZ as Y,a$ as q,c as R,v as B}from"./index-
|
|
1
|
+
import{r as i,G as $,j as c,aW as H,aH as G,I as A,H as _,M as g,aU as b,T as j,aV as L,aX as w,b0 as z,b1 as U,U as K,b2 as V,b3 as W,b4 as Z,aY as X,aZ as Y,a$ as q,c as R,v as B}from"./index-BiG-bBX7.js";var C="Popover",[E]=K(C,[w]),P=w(),[J,d]=E(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[u,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(H,{...p,children:c.jsx(J,{scope:e,contentId:G(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(b,{...s,...r,ref:e})});Q.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(S,o),s=P(o),a=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":k(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(b,{asChild:!0,...s,children:p})});y.displayName=S;var O="PopoverPortal",[ee,oe]=E(O,{forceMount:void 0}),M=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=d(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(L,{asChild:!0,container:n,children:r})})})};M.displayName=O;var v="PopoverContent",D=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=d(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});D.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return z(a)},[]),c.jsx(U,{as:te,allowPinchZoom:!0,children:c.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,u=p.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:h,...x}=t,f=d(v,o),m=P(o);return W(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(X,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(Y,{"data-state":k(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),I="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(I,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=I;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(q,{...n,...r,ref:e})});ce.displayName=ae;function k(t){return t?"open":"closed"}var ie=N,pe=y,le=M,ue=D;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=B("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let u;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(u=c.jsx(le,{children:c.jsx(ue,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=u):u=e[11],u}export{ge as P,fe as a,ve as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,e as g,j as i,r as _,E as I,u as P}from"./index-
|
|
1
|
+
import{c as x,e as g,j as i,r as _,E as I,u as P}from"./index-BiG-bBX7.js";import{f as C}from"./use-connection-CsobI-JA.js";import{u as M}from"./constants-Bj4b22ad.js";import{u as R}from"./use-mcp-tools-nHTt7uoJ.js";import{M as $}from"./mcp-app-renderer-CPkL4-A0.js";import{g as b,M as h}from"./types-C6Uddd8z.js";import"./useMutation-Cxle_Mtw.js";import"./useQuery-Us1whSan.js";import"./use-mcp-resources-ucs4znYI.js";const j={};function y(t){const e=x.c(8),{client:o,toolName:c,resourceURI:a}=t;let s;e[0]!==o||e[1]!==c?(s={client:o,toolName:c,toolArguments:j},e[0]=o,e[1]=c,e[2]=s):s=e[2];const{data:n}=R(s);let l;return e[3]!==o||e[4]!==a||e[5]!==c||e[6]!==n?(l=i.jsx($,{resourceURI:a,toolName:c,toolInput:j,toolResult:n,displayMode:"fullscreen",minHeight:h.fullscreen.minHeight,maxHeight:h.fullscreen.maxHeight,client:o,className:"h-full"}),e[3]=o,e[4]=a,e[5]=c,e[6]=n,e[7]=l):l=e[7],l}function v(t){const e=x.c(16),{connectionId:o,toolName:c}=t,{org:a}=P();let s;e[0]!==o||e[1]!==a.id?(s={connectionId:o,orgId:a.id},e[0]=o,e[1]=a.id,e[2]=s):s=e[2];const n=M(s),l=C(o),m=decodeURIComponent(c);let d,f;if(e[3]!==l?.tools||e[4]!==m){let r;e[7]!==m?(r=N=>N.name===m,e[7]=m,e[8]=r):r=e[8],f=(l?.tools??[]).find(r),d=f?._meta?b(f._meta):void 0,e[3]=l?.tools,e[4]=m,e[5]=d,e[6]=f}else d=e[5],f=e[6];const u=d;if(!l){let r;return e[9]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx("p",{className:"text-sm text-muted-foreground",children:"Connection not found"})}),e[9]=r):r=e[9],r}if(!f||!u){let r;return e[10]!==m?(r=i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',m,'" not found or has no UI']})}),e[10]=m,e[11]=r):r=e[11],r}let p;return e[12]!==n||e[13]!==m||e[14]!==u?(p=i.jsx(y,{client:n,toolName:m,resourceURI:u}),e[12]=n,e[13]=m,e[14]=u,e[15]=p):p=e[15],p}function w(){const t=x.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/$project/apps/$connectionId/$toolName"},t[0]=e):e=t[0];const{connectionId:o,toolName:c}=g(e),a=`${o}:${c}`;let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[i.jsx("div",{className:"size-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),i.jsx("span",{className:"text-sm",children:"Loading app..."})]})}),t[1]=s):s=t[1];let n;t[2]!==o||t[3]!==c?(n=i.jsx(_.Suspense,{fallback:s,children:i.jsx(v,{connectionId:o,toolName:c})}),t[2]=o,t[3]=c,t[4]=n):n=t[4];let l;return t[5]!==a||t[6]!==n?(l=i.jsx(I,{fallback:void 0,children:n},a),t[5]=a,t[6]=n,t[7]=l):l=t[7],l}export{w as default};
|