@decocms/mesh 2.142.0 → 2.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Zx531KAn.js → AlertCircle-C33JEKEq.js} +1 -1
- package/dist/client/assets/{AlignLeft-CGBbKVHK.js → AlignLeft-REGjRwBJ.js} +1 -1
- package/dist/client/assets/{ArrowDown-BX-IIy5w.js → ArrowDown-aOFcd1rD.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D4dc0UBb.js → ArrowLeft-6J-waWbb.js} +1 -1
- package/dist/client/assets/{ArrowUp-dcB4aDLZ.js → ArrowUp-DHX-mOU2.js} +1 -1
- package/dist/client/assets/{Check-DXoRcZpn.js → Check-BQYRNFNB.js} +1 -1
- package/dist/client/assets/{CheckCircle-BP8hgPfe.js → CheckCircle-BspahUp0.js} +1 -1
- package/dist/client/assets/{CheckDone01-ca6APAHc.js → CheckDone01-CKFgRwhA.js} +1 -1
- package/dist/client/assets/{CheckVerified02-C_Ewexdw.js → CheckVerified02-BNn37Me9.js} +1 -1
- package/dist/client/assets/{ChevronDown-D04Buvau.js → ChevronDown-1tcTabrX.js} +1 -1
- package/dist/client/assets/{ChevronLeft-C8cqrSli.js → ChevronLeft-Bj3ue1eK.js} +1 -1
- package/dist/client/assets/{ChevronRight-CkAAxLvD.js → ChevronRight-DhQpCpKK.js} +1 -1
- package/dist/client/assets/{Clock-DwwOuQI4.js → Clock-C30Ff6vt.js} +1 -1
- package/dist/client/assets/{Code01-BLJKgev-.js → Code01-CycseZkv.js} +1 -1
- package/dist/client/assets/{Container-CSl1es2V.js → Container-BU5QPEDW.js} +1 -1
- package/dist/client/assets/{Copy01-B4eRdmVC.js → Copy01-Bub_iK1k.js} +1 -1
- package/dist/client/assets/{Dataflow03-SiitV-oV.js → Dataflow03-CP3uRpJJ.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-DzRIJPXY.js → DotsHorizontal-BCdQOVe0.js} +1 -1
- package/dist/client/assets/{DotsVertical-B6bpYQLL.js → DotsVertical-BSoYRiIr.js} +1 -1
- package/dist/client/assets/{Download01-DDnPOFFT.js → Download01-DYjfgXnI.js} +1 -1
- package/dist/client/assets/{Edit01-CoWrVJPj.js → Edit01-BIUDv_si.js} +1 -1
- package/dist/client/assets/{Edit05-BUQBpzoO.js → Edit05-B3UbFiYN.js} +1 -1
- package/dist/client/assets/{Eye-DNSEDYe8.js → Eye-CJ0GO8QL.js} +1 -1
- package/dist/client/assets/{File02-BXS3LEA8.js → File02-CJJT1Lsy.js} +1 -1
- package/dist/client/assets/{File06-h52WT7aG.js → File06-BzTcP1fd.js} +1 -1
- package/dist/client/assets/{FilterLines-CsjQLyQm.js → FilterLines-CgDlJMHC.js} +1 -1
- package/dist/client/assets/{Globe01-CSEqx1SJ.js → Globe01-pQgT6Pgy.js} +1 -1
- package/dist/client/assets/{Globe02-YyAAQROb.js → Globe02-DK-nDQII.js} +1 -1
- package/dist/client/assets/{Grid01-Ju9gLjOW.js → Grid01-Cv6nD-bp.js} +1 -1
- package/dist/client/assets/{Hash02-TG1GIkeV.js → Hash02-2uEkY5na.js} +1 -1
- package/dist/client/assets/{Home02-TzIRlDMK.js → Home02-Cuswvl5N.js} +1 -1
- package/dist/client/assets/{Image01-PGP5Jz22.js → Image01-_ugWt3d2.js} +1 -1
- package/dist/client/assets/{Inbox01-CjHNjCjB.js → Inbox01-B0oK7RI9.js} +1 -1
- package/dist/client/assets/{InfoCircle-CVW6wgFf.js → InfoCircle-WmJgMXWS.js} +1 -1
- package/dist/client/assets/{Key01-9PzzeBlc.js → Key01-DW6fqfWo.js} +1 -1
- package/dist/client/assets/{LayersTwo01-XOG8qRvr.js → LayersTwo01-BcA1LBal.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BcthWHLG.js → LayoutLeft-B9EmI1if.js} +1 -1
- package/dist/client/assets/{Link01-2BHrruNj.js → Link01-BnhQ6HaU.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CxAidvQ-.js → LinkExternal01-DYtAatm2.js} +1 -1
- package/dist/client/assets/{List-Bj4VjFJ6.js → List-BFACCNRk.js} +1 -1
- package/dist/client/assets/{Loading01-DF5pxnn8.js → Loading01-B8ixav8o.js} +1 -1
- package/dist/client/assets/{Lock01-CPqKu_Mb.js → Lock01-BOdqI63W.js} +1 -1
- package/dist/client/assets/{Play-CUMfSU-t.js → Play-CEbM08S_.js} +1 -1
- package/dist/client/assets/{Plus-CEtl-Eq7.js → Plus-D4t5EG83.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Bcbx9L0j.js → RefreshCcw01-CCgnRJd5.js} +1 -1
- package/dist/client/assets/{Save01-BtoFb1Cg.js → Save01-DynhEPAB.js} +1 -1
- package/dist/client/assets/{SearchMd-u1QGwQkU.js → SearchMd-B8KV3nui.js} +1 -1
- package/dist/client/assets/{Settings01-C1oZxROY.js → Settings01-BdGMn6lJ.js} +1 -1
- package/dist/client/assets/{Shield01-DoZAYqqP.js → Shield01-CpBrW2km.js} +1 -1
- package/dist/client/assets/{Terminal-DobKmqGm.js → Terminal-fmXnrrqs.js} +1 -1
- package/dist/client/assets/{Trash01-c47UOodj.js → Trash01-_Tzcparm.js} +1 -1
- package/dist/client/assets/{Upload01-C3K15n1N.js → Upload01-DtqvlWBL.js} +1 -1
- package/dist/client/assets/{Users03-Z0r1cCGf.js → Users03-Z1ByU7gs.js} +1 -1
- package/dist/client/assets/{X-CT_P09q2.js → X-DUw9p4mH.js} +1 -1
- package/dist/client/assets/{XCircle-BNAlXeL2.js → XCircle-B8o5NZjk.js} +1 -1
- package/dist/client/assets/{XClose-BIpOBHWg.js → XClose-DuxEOCv_.js} +1 -1
- package/dist/client/assets/{Zap-BYVebEYM.js → Zap-Bfu3dNEc.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-B76ZYrs2.js → agent-connections-preview-K7AOWu8a.js} +1 -1
- package/dist/client/assets/agent-detail-C94NpUEI.js +2 -0
- package/dist/client/assets/{agents-avEyjtsq.js → agents-BSKLOaMu.js} +1 -1
- package/dist/client/assets/{alert-dialog-DXvhyacf.js → alert-dialog-DaXpWdw0.js} +2 -2
- package/dist/client/assets/{auth-catchall-FvylLzD9.js → auth-catchall-COBLdahK.js} +1 -1
- package/dist/client/assets/{avatar-DGDgNwX-.js → avatar-Ci3kAkCl.js} +1 -1
- package/dist/client/assets/{badge-DtcA_2rB.js → badge-Bjvc5XIA.js} +1 -1
- package/dist/client/assets/{binder-CaZ6b20X.js → binder-D8s-h8oe.js} +1 -1
- package/dist/client/assets/{breadcrumb-DPLSdTx1.js → breadcrumb-mjrAJ44V.js} +1 -1
- package/dist/client/assets/{card-Bz05CYUR.js → card-DFLwXVkm.js} +1 -1
- package/dist/client/assets/{chart-DYrz9LTc.js → chart-qGX5OGhH.js} +1 -1
- package/dist/client/assets/{checkbox-JiwlvimE.js → checkbox-YMBbuKOZ.js} +1 -1
- package/dist/client/assets/{circle-alert-CtnOwoV2.js → circle-alert-DGdpKWGk.js} +1 -1
- package/dist/client/assets/collapsible-CxJfsyMO.js +23 -0
- package/dist/client/assets/{collection-detail-CBGjxXPP.js → collection-detail-DVcCqR3z.js} +2 -2
- package/dist/client/assets/{collection-display-button-CXc-TgEJ.js → collection-display-button-BxbTqYSq.js} +1 -1
- package/dist/client/assets/{collection-search-Dl5JvsI0.js → collection-search-C_6fMPfN.js} +1 -1
- package/dist/client/assets/{collection-tab-BlE4CTwD.js → collection-tab-Bh2VOYGp.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-eN4uWzLn.js → collection-table-wrapper-COmJ-B8Q.js} +1 -1
- package/dist/client/assets/{collection-tabs-CK4RWFd-.js → collection-tabs-DQrbo9Ay.js} +1 -1
- package/dist/client/assets/{command-BzF9LDzy.js → command-B1HOWPFt.js} +1 -1
- package/dist/client/assets/{connect-B1CrEofK.js → connect-CpLI2s8J.js} +1 -1
- package/dist/client/assets/{connection-card-CC22E-3G.js → connection-card-JlUaDjOw.js} +1 -1
- package/dist/client/assets/connection-detail-C_SdT5ck.js +1 -0
- package/dist/client/assets/{connection-status-B1K3m1_w.js → connection-status-8Ht5iRaJ.js} +1 -1
- package/dist/client/assets/{connections-BuggzhbD.js → connections-DeEqc0GM.js} +1 -1
- package/dist/client/assets/constants-BSa33005.js +1 -0
- package/dist/client/assets/{constants-CRvMLa9p.js → constants-Bbw6jN_V.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DIZjTiis.js → create-organization-dialog-V-msF1Jz.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Dut0dyR9.js → create-project-dialog-DaBc1e0V.js} +1 -1
- package/dist/client/assets/{danger-Dare7pC6.js → danger-BTw0q1dL.js} +1 -1
- package/dist/client/assets/{danger-zone-_BODcOmd.js → danger-zone-CROdw5xZ.js} +1 -1
- package/dist/client/assets/{decopilot-events-bTg09qGr.js → decopilot-events-CkaAIkUJ.js} +1 -1
- package/dist/client/assets/{dependencies-BT9TgTWZ.js → dependencies-mZgEmBs1.js} +1 -1
- package/dist/client/assets/{dialog-DSCIUn11.js → dialog-DP7DY4yr.js} +1 -1
- package/dist/client/assets/dropdown-menu-C6kuYZ7_.js +1 -0
- package/dist/client/assets/{dynamic-plugin-layout-CXCsSgRX.js → dynamic-plugin-layout-CjkQri2q.js} +1 -1
- package/dist/client/assets/{editable-task-title-DKlfwqLm.js → editable-task-title-C0JEoPnJ.js} +1 -1
- package/dist/client/assets/{empty-state-C64F3xDv.js → empty-state-DClv5r7C.js} +1 -1
- package/dist/client/assets/{env-vars-editor-ClFO22Eh.js → env-vars-editor-zacGIDRP.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CrY_sL6W.js → extract-connection-data-BZQA712X.js} +1 -1
- package/dist/client/assets/{file-browser-DSHBHgjG.js → file-browser-BMpcvnxm.js} +2 -2
- package/dist/client/assets/{form-CVLoDgzL.js → form-CCy4OYZh.js} +1 -1
- package/dist/client/assets/{general-CYKgldaV.js → general-DsCslUFr.js} +1 -1
- package/dist/client/assets/{grid-view-DvrbtUer.js → grid-view-BJN_C_nJ.js} +1 -1
- package/dist/client/assets/{home-BuzXHaZj.js → home-ZNtjrtnf.js} +1 -1
- package/dist/client/assets/{icon-picker-5LH0UiWF.js → icon-picker-DBuQoDjt.js} +1 -1
- package/dist/client/assets/index-4jzw9CYj.js +25 -0
- package/dist/client/assets/{index-jBnBTTB0.js → index-5xKQyQZE.js} +1 -1
- package/dist/client/assets/{index-BCf_VMXY.js → index-BwnxEimb.js} +1 -1
- package/dist/client/assets/{index-6Z25-w5a.js → index-CEKEKIun.js} +1 -1
- package/dist/client/assets/{index-CoyJj2VR.js → index-CdiDGOKq.js} +50 -50
- package/dist/client/assets/{index-A_CnuSis.js → index-CuGOLHld.js} +1 -1
- package/dist/client/assets/{index-Co1xrsbj.js → index-Dig2D0kL.js} +1 -1
- package/dist/client/assets/{index-B7Bu7nQ7.js → index-Dw9bGcxk.js} +1 -1
- package/dist/client/assets/{index-KAycGEnT.js → index-WgRy4XEz.js} +28 -28
- package/dist/client/assets/{infiniteQueryObserver-DctmDFEe.js → infiniteQueryObserver-6Sv1mY48.js} +1 -1
- package/dist/client/assets/{input-s8rw5Kfa.js → input-BJJ-HZyT.js} +1 -1
- package/dist/client/assets/{integration-icon-BAlg7muO.js → integration-icon-R2eYJYHC.js} +1 -1
- package/dist/client/assets/{label-lqq4AMOf.js → label-meKA8koQ.js} +1 -1
- package/dist/client/assets/{layout-BdJDt40T.js → layout-CIWWZ1ER.js} +1 -1
- package/dist/client/assets/{layout-CaxeqVAE.js → layout-Cny1vUWb.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DK1Id_ip.js → localstorage-keys-BUkugh6_.js} +1 -1
- package/dist/client/assets/{login--Bk_liKs.js → login-Dov4Ln-t.js} +1 -1
- package/dist/client/assets/{markdown-HCjujTl2.js → markdown-DdHbXzu-.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Bconp3w4.js → mcp-app-renderer-PyxYtSmQ.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DcSxwlYK.js → mcp-oauth-BUdDcINO.js} +1 -1
- package/dist/client/assets/{mcp-server-card-B0UwO4c6.js → mcp-server-card-wnDYG_0O.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-zb689o0t.js → mcp-server-detail-CAZe7uN6.js} +2 -2
- package/dist/client/assets/{members-A9Co33Fe.js → members-H_aHt8EH.js} +1 -1
- package/dist/client/assets/{monaco-editor-BGkR3-IA.js → monaco-editor-CYn377dR.js} +4 -4
- package/dist/client/assets/{monitoring-DtdfvOM5.js → monitoring-IVWnDVEz.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-GWWMfh0m.js → monitoring-dashboard-edit--p_6gE6M.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-Cm896dO-.js → monitoring-dashboard-view-pfH_ninA.js} +2 -2
- package/dist/client/assets/{oauth-callback-BSGOfJmL.js → oauth-callback-BBfWFUEO.js} +1 -1
- package/dist/client/assets/{page-PU0vqAHP.js → page-CcB9pt8_.js} +1 -1
- package/dist/client/assets/page-CsXX8k6j.js +1 -0
- package/dist/client/assets/{plugin-empty-state-CNAE295F.js → plugin-empty-state-BXGv0GDx.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BdIJtKhO.js → plugin-empty-state-PHb3h5Mu.js} +1 -1
- package/dist/client/assets/{plugin-header-C3hBljo3.js → plugin-header-BbwqgGs3.js} +1 -1
- package/dist/client/assets/{plugin-header-BO6BGJC7.js → plugin-header-Bn5QWmGt.js} +1 -1
- package/dist/client/assets/plugins-rCmASNpc.js +1 -0
- package/dist/client/assets/{popover-DSO1tjgf.js → popover-BSwvSWKq.js} +1 -1
- package/dist/client/assets/{project-app-view-DEVHaVoM.js → project-app-view-CU4S5SVV.js} +1 -1
- package/dist/client/assets/{project-layout-BZqAcTC3.js → project-layout-D2s_-ed-.js} +1 -1
- package/dist/client/assets/{project-plugins-DkIXV878.js → project-plugins-CFsL8fat.js} +1 -1
- package/dist/client/assets/{projects-list-DD9bayAR.js → projects-list-BwshQdVA.js} +1 -1
- package/dist/client/assets/{readme-viewer-DEgSduvy.js → readme-viewer-BKWT3e1y.js} +1 -1
- package/dist/client/assets/{registry-layout-BbOZb50w.js → registry-layout-DVHyhv6u.js} +1 -1
- package/dist/client/assets/{registry-utils-BJRD11-o.js → registry-utils-DwrfZsML.js} +1 -1
- package/dist/client/assets/{reports-layout-0fvVXIA9.js → reports-layout-CRWz25vV.js} +1 -1
- package/dist/client/assets/{reset-password-BBFIx6IU.js → reset-password-DwDCI2Lt.js} +1 -1
- package/dist/client/assets/{resizable-FDnvuXI8.js → resizable-CuAJwpCE.js} +1 -1
- package/dist/client/assets/{save-actions-BrexEzhw.js → save-actions-DSOaJsEB.js} +1 -1
- package/dist/client/assets/{scroll-area-BoIKmmj_.js → scroll-area-DFSZEFGu.js} +1 -1
- package/dist/client/assets/{select-XWfX294J.js → select-D5UCIms-.js} +1 -1
- package/dist/client/assets/shell-layout-Bi6EGRx-.js +3 -0
- package/dist/client/assets/{sidebar-settings-CYnkTQwX.js → sidebar-settings-Ens_v1-3.js} +1 -1
- package/dist/client/assets/{skeleton-l9u4bmPQ.js → skeleton-DJ9ksHdo.js} +1 -1
- package/dist/client/assets/{spinner-CQhhuHCn.js → spinner-C_jBik6U.js} +1 -1
- package/dist/client/assets/{store-invite-QKjyJOdx.js → store-invite-B4x6yCxM.js} +1 -1
- package/dist/client/assets/{switch-BTH5DtNC.js → switch-CHDqnzpR.js} +1 -1
- package/dist/client/assets/{table-CObvzzoK.js → table-KeNwDMbd.js} +1 -1
- package/dist/client/assets/{tabs-B62zcrrU.js → tabs-BWF5GtqN.js} +1 -1
- package/dist/client/assets/tasks-B4Nf2WMJ.js +1 -0
- package/dist/client/assets/tasks-panel-F9MkKd8u.js +1 -0
- package/dist/client/assets/{textarea-CKFVaVym.js → textarea-BbLT_f8Z.js} +1 -1
- package/dist/client/assets/{time-range-picker-C2BX3Ytm.js → time-range-picker-D8n6QptR.js} +1 -1
- package/dist/client/assets/{toggle-group-BWymC1w6.js → toggle-group-CGeB8kMK.js} +1 -1
- package/dist/client/assets/{tools-list-CBKDjlC9.js → tools-list-B15drLS3.js} +1 -1
- package/dist/client/assets/{tooltip-BD36KVkP.js → tooltip-Babiaq0d.js} +1 -1
- package/dist/client/assets/{topbar-portal-CyJ7_aXv.js → topbar-portal-Dp4BFYej.js} +1 -1
- package/dist/client/assets/{types-CgRNzZIg.js → types-BJf49Mfd.js} +1 -1
- package/dist/client/assets/{use-binding-eAl0-ngZ.js → use-binding-CAoXPeYp.js} +1 -1
- package/dist/client/assets/{use-collections-ROKIiOzV.js → use-collections-B-x23mni.js} +1 -1
- package/dist/client/assets/{use-connection-DWTVYLGI.js → use-connection-CfeJyAqX.js} +1 -1
- package/dist/client/assets/{use-copy-Cxp-hpbY.js → use-copy-CMFYl2Ga.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CWXwWPev.js → use-create-virtual-mcp-BQ2vLOYt.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-CzqEIQq2.js → use-install-from-registry-D80VT6Ub.js} +1 -1
- package/dist/client/assets/{use-list-state-cW6KZE3t.js → use-list-state-D-tKxlpi.js} +1 -1
- package/dist/client/assets/{use-llm-D0wV35M9.js → use-llm-BMRIZw-b.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-BTKxmEpv.js → use-mcp-resources-7Fl5_HS_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DkmUq8XI.js → use-mcp-tools-Bj_Ri2bf.js} +1 -1
- package/dist/client/assets/{use-members-Bksy3767.js → use-members-TEDVnI8Z.js} +1 -1
- package/dist/client/assets/{use-mobile-C7Xn-ZVB.js → use-mobile-PmmG7UNI.js} +1 -1
- package/dist/client/assets/{use-project-BZjOe5ok.js → use-project-IWwy_h7S.js} +1 -1
- package/dist/client/assets/{use-settings-modal-BpLqrFwi.js → use-settings-modal-C4b8mb1A.js} +1 -1
- package/dist/client/assets/{use-view-mode-DxCF7P6S.js → use-view-mode-DT0UZS0w.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DrNWNgvb.js → use-virtual-mcp-DXNTpzcv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D2ydKX7z.js +1 -0
- package/dist/client/assets/{useMutation-Ctk5b8uR.js → useMutation-DmgIjz65.js} +1 -1
- package/dist/client/assets/useQuery-C48kdbmo.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Dk_AfHIX.js +1 -0
- package/dist/client/assets/{user-BU3jjBpz.js → user-DC5rs3GH.js} +1 -1
- package/dist/client/assets/{workflow-BNkb2XNC.js → workflow-DaR6d6tq.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +181 -181
- package/dist/server/migrate.js +1 -1
- package/dist/server/server.js +167 -167
- package/package.json +1 -1
- package/dist/client/assets/agent-detail-ean34cyZ.js +0 -2
- package/dist/client/assets/collapsible-Dz6kdDQx.js +0 -23
- package/dist/client/assets/connection-detail-B-ICGeJ4.js +0 -1
- package/dist/client/assets/constants-I25hmjxi.js +0 -1
- package/dist/client/assets/dropdown-menu-DMgECNP1.js +0 -1
- package/dist/client/assets/index-Cg5VAr11.js +0 -25
- package/dist/client/assets/page-BjfHsKND.js +0 -1
- package/dist/client/assets/plugins-BttmmeIz.js +0 -1
- package/dist/client/assets/shell-layout-CfqRN6gC.js +0 -3
- package/dist/client/assets/tasks-DBMv6koR.js +0 -1
- package/dist/client/assets/tasks-panel-jUSk_q_P.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Clfr9I7T.js +0 -1
- package/dist/client/assets/useQuery-DCrAUBx5.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CG43fx0v.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,r as U,u as ne,K as oe,b_ as Re,j as s,v as ae,B as X,b as me,a1 as ue,a2 as fe,O as xe,d as Pe,aE as $e,b$ as ie,E as ke,aG as ze}from"./index-KAycGEnT.js";import{P as se}from"./index-A_CnuSis.js";import{B as Le,a as Fe,b as Ee,c as Oe}from"./breadcrumb-DPLSdTx1.js";import{i as ge}from"./FilterLines-CsjQLyQm.js";import{n as pe}from"./Inbox01-CjHNjCjB.js";import{i as le}from"./Loading01-DF5pxnn8.js";import{i as he}from"./SearchMd-u1QGwQkU.js";import{u as je}from"./useQuery-DCrAUBx5.js";import{u as _e}from"./useInfiniteQuery-Clfr9I7T.js";import{a as Ke,f as Ae,b as Me}from"./registry-utils-BJRD11-o.js";import{u as ye,W as Be,a as De,f as Ge,b as We}from"./constants-CRvMLa9p.js";import{u as Ve,a as ve,b as qe}from"./use-connection-DWTVYLGI.js";import{s as Ue}from"./slugify-CEUa2lfQ.js";import{C as He,E as Je}from"./collection-search-Dl5JvsI0.js";import{M as ce}from"./mcp-server-card-B0UwO4c6.js";import{I as Qe}from"./input-s8rw5Kfa.js";import{a as be,b as Ne,P as Ce}from"./popover-DSO1tjgf.js";import{i as Se}from"./Check-DXoRcZpn.js";import{t as we}from"./ChevronDown-D04Buvau.js";import{s as re}from"./XClose-BIpOBHWg.js";import{s as Ye}from"./Plus-CEtl-Eq7.js";import{u as Ze}from"./use-binding-eAl0-ngZ.js";import{L as Xe,u as et}from"./localstorage-keys-DK1Id_ip.js";import"./tooltip-BD36KVkP.js";import"./index-B7Bu7nQ7.js";import"./ChevronRight-CkAAxLvD.js";import"./infiniteQueryObserver-DctmDFEe.js";import"./use-collections-ROKIiOzV.js";import"./useMutation-Ctk5b8uR.js";import"./CheckVerified02-C_Ewexdw.js";import"./Globe02-YyAAQROb.js";import"./Lock01-CPqKu_Mb.js";import"./Terminal-DobKmqGm.js";import"./card-Bz05CYUR.js";import"./integration-icon-BAlg7muO.js";import"./Container-CSl1es2V.js";import"./github-icon-Dp3wHhYE.js";import"./binder-CaZ6b20X.js";function tt(t,e){const r=Y.c(4),[l,m]=U.useState(t),n=U.useRef(null),i=U.useRef(!0);let d,a;return r[0]!==e||r[1]!==t?(d=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{m(t)},e),()=>{n.current&&clearTimeout(n.current)}},a=[t,e],r[0]=e,r[1]=t,r[2]=d,r[3]=a):(d=r[2],a=r[3]),U.useEffect(d,a),l}function st(t){const e=Y.c(14),r=U.useRef(null),l=`scroll-position:${t}`,m=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 d;e[2]!==l?(d=()=>{if(m.current===l)return;const f=sessionStorage.getItem(l);if(f&&r.current){const k=Number.parseInt(f,10);r.current.scrollTop=k}m.current=l},e[2]=l,e[3]=d):d=e[3];const a=d;let u;e[4]!==a||e[5]!==l?(u=()=>{m.current!==l&&a()},e[4]=a,e[5]=l,e[6]=u):u=e[6];const I=u;let o;e[7]!==a||e[8]!==l?(o=f=>{r.current=f,f&&m.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let c;return e[10]!==I||e[11]!==i||e[12]!==p?(c={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=c):c=e[13],c}const rt=24;function lt(t){const e=Y.c(54),{registryId:r,listToolName:l,filtersToolName:m,search:n}=t,{org:i}=ne();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[0]=d):d=e[0];const[a,u]=U.useState(d);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),c=r||null;let f;e[2]!==i.id||e[3]!==c?(f={connectionId:c,orgId:i.id},e[2]=i.id,e[3]=c,e[4]=f):f=e[4];const k=ye(f),T=!!m;let C;e[5]!==m||e[6]!==r?(C=oe.toolCall(r,m||"no-filters","{}"),e[5]=m,e[6]=r,e[7]=C):C=e[7];let h;e[8]!==k||e[9]!==m?(h=async()=>{if(!m)return{tags:[],categories:[]};const K=await k.callTool({name:m,arguments:{}});return K.structuredContent??K},e[8]=k,e[9]=m,e[10]=h):h=e[10];let F;e[11]!==C||e[12]!==h?(F={queryKey:C,queryFn:h,staleTime:36e5,retry:2},e[11]=C,e[12]=h,e[13]=F):F=e[13];const{data:S}=je(F);let j,b,$;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const K=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;j={limit:rt,...a.length>0&&{tags:a},...o.length>0&&{categories:o},...K&&{where:K}},$=_e,b=oe.toolCall(r,l,JSON.stringify(j)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=j,e[20]=b,e[21]=$}else j=e[19],b=e[20],$=e[21];let R;e[22]!==k||e[23]!==j||e[24]!==l?(R=async K=>{const{pageParam:Z}=K,ee=Z?{...j,cursor:Z}:j,v=await k.callTool({name:l,arguments:ee});return v.structuredContent??v},e[22]=k,e[23]=j,e[24]=l,e[25]=R):R=e[25];let P;e[26]!==R||e[27]!==b?(P={queryKey:b,queryFn:R,initialPageParam:void 0,getNextPageParam:nt,staleTime:36e5,placeholderData:Re,retry:2},e[26]=R,e[27]=b,e[28]=P):P=e[28];const{data:N,fetchNextPage:w,hasNextPage:g,isFetchingNextPage:x,isFetching:y,isLoading:z,error:L}=$(P);let _;e:{if(!N?.pages||N.pages.length===0){_=null;break e}const K=N.pages[0];if(typeof K=="object"&&K!==null&&"totalCount"in K&&typeof K.totalCount=="number"){_=K.totalCount;break e}_=null}const A=_,O=N?.pages;let W;e[29]!==O?(W=Ke(O),e[29]=O,e[30]=W):W=e[30];const J=W;let B;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(B=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=B):B=e[34];const V=B,q=y&&!x&&!z&&V;let D;e[35]!==w||e[36]!==g||e[37]!==x?(D=()=>{g&&!x&&w()},e[35]=w,e[36]=g,e[37]=x,e[38]=D):D=e[38];const H=D,E=g??!1,M=T?S?.tags:void 0,G=T?S?.categories:void 0;let Q;return e[39]!==V||e[40]!==y||e[41]!==x||e[42]!==q||e[43]!==z||e[44]!==J||e[45]!==L||e[46]!==H||e[47]!==o||e[48]!==a||e[49]!==E||e[50]!==M||e[51]!==G||e[52]!==A?(Q={items:J,totalCount:A,hasMore:E,isLoadingMore:x,isFiltering:q,isInitialLoading:z,isFetching:y,error:L,loadMore:H,availableTags:M,availableCategories:G,selectedTags:a,selectedCategories:o,setSelectedTags:u,setSelectedCategories:p,hasActiveFilters:V},e[39]=V,e[40]=y,e[41]=x,e[42]=q,e[43]=z,e[44]=J,e[45]=L,e[46]=H,e[47]=o,e[48]=a,e[49]=E,e[50]=M,e[51]=G,e[52]=A,e[53]=Q):Q=e[53],Q}function nt(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function it(t,e){return[...t].sort((r,l)=>l.count-r.count).slice(0,e)}function de(t){const e=Y.c(52),{label:r,items:l,selectedItems:m,onToggle:n,onClear:i}=t,[d,a]=U.useState(""),[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h,F,S,j;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==u||e[4]!==d||e[5]!==m){const w=[...d?l.filter(O=>O.value.toLowerCase().includes(d.toLowerCase())):l].sort(ot);c=m.length,p=be,F=u,S=I;let g;e[17]!==r?(g=s.jsx("span",{children:r}),e[17]=r,e[18]=g):g=e[18];let x;e[19]!==c?(x=c>0&&s.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:c}),e[19]=c,e[20]=x):x=e[20];let y;e[21]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(we,{size:14,className:"opacity-50"}),e[21]=y):y=e[21],e[22]!==x||e[23]!==g?(j=s.jsx(Ne,{asChild:!0,children:s.jsxs(X,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[g,x,y]})}),e[22]=x,e[23]=g,e[24]=j):j=e[24],o=Ce,T="w-64 p-0",C="start";let z;e[25]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(he,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=z):z=e[25];let L;e[26]!==r?(L=r.toLowerCase(),e[26]=r,e[27]=L):L=e[27];const _=`Search ${L}...`;let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=O=>a(O.target.value),e[28]=A):A=e[28],e[29]!==d||e[30]!==_?(h=s.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[z,s.jsx(Qe,{type:"text",placeholder:_,value:d,onChange:A,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]=d,e[30]=_,e[31]=h):h=e[31],f="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",k=w.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):w.map(O=>{const W=m.includes(O.value);return s.jsxs("button",{onClick:()=>n(O.value),className:ae("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",W?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[W&&s.jsx(Se,{size:16,className:"text-muted-foreground shrink-0"}),O.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:O.count})]},O.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=u,e[4]=d,e[5]=m,e[6]=o,e[7]=p,e[8]=c,e[9]=f,e[10]=k,e[11]=T,e[12]=C,e[13]=h,e[14]=F,e[15]=S,e[16]=j}else o=e[6],p=e[7],c=e[8],f=e[9],k=e[10],T=e[11],C=e[12],h=e[13],F=e[14],S=e[15],j=e[16];let b;e[32]!==f||e[33]!==k?(b=s.jsx("div",{className:f,children:k}),e[32]=f,e[33]=k,e[34]=b):b=e[34];let $;e[35]!==r||e[36]!==i||e[37]!==c?($=c>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(X,{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]=c,e[38]=$):$=e[38];let R;e[39]!==o||e[40]!==$||e[41]!==T||e[42]!==C||e[43]!==h||e[44]!==b?(R=s.jsxs(o,{className:T,align:C,children:[h,b,$]}),e[39]=o,e[40]=$,e[41]=T,e[42]=C,e[43]=h,e[44]=b,e[45]=R):R=e[45];let P;return e[46]!==p||e[47]!==R||e[48]!==F||e[49]!==S||e[50]!==j?(P=s.jsxs(p,{open:F,onOpenChange:S,children:[j,R]}),e[46]=p,e[47]=R,e[48]=F,e[49]=S,e[50]=j,e[51]=P):P=e[51],P}function ot(t,e){return e.count-t.count}function at(t){const e=Y.c(67),{availableTags:r,availableCategories:l,selectedTags:m,selectedCategories:n,onTagChange:i,onCategoryChange:d}=t,a=r&&r.length>0||l&&l.length>0,u=m.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==m?(I=g=>{m.includes(g)?i(m.filter(x=>x!==g)):i([...m,g])},e[0]=i,e[1]=m,e[2]=I):I=e[2];const o=I;let p;e[3]!==d||e[4]!==n?(p=g=>{n.includes(g)?d(n.filter(x=>x!==g)):d([...n,g])},e[3]=d,e[4]=n,e[5]=p):p=e[5];const c=p;let f;e[6]!==d||e[7]!==i?(f=()=>{i([]),d([])},e[6]=d,e[7]=i,e[8]=f):f=e[8];const k=f;let T,C,h,F,S,j,b;if(e[9]!==l||e[10]!==r||e[11]!==d||e[12]!==i||e[13]!==n||e[14]!==m||e[15]!==c||e[16]!==o){const g=l?it(l,6):[];T=n,C=m,b=new Set(g.map(ct)),S="flex items-center border-b border-border";let x;e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(ge,{size:16})}),e[24]=x):x=e[24];let y;e[25]!==l||e[26]!==d||e[27]!==n||e[28]!==c?(y=l&&l.length>0&&s.jsx(de,{label:"Categories",items:l,selectedItems:n,onToggle:c,onClear:()=>d([])}),e[25]=l,e[26]=d,e[27]=n,e[28]=c,e[29]=y):y=e[29];let z;e[30]!==r||e[31]!==i||e[32]!==m||e[33]!==o?(z=r&&r.length>0&&s.jsx(de,{label:"Tags",items:r,selectedItems:m,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=m,e[33]=o,e[34]=z):z=e[34],e[35]!==z||e[36]!==y?(j=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[x,y,z]}),e[35]=z,e[36]=y,e[37]=j):j=e[37],h="flex items-center gap-3 flex-wrap px-5 py-3";let L;e[38]!==n||e[39]!==c?(L=_=>{const A=n.includes(_.value);return s.jsxs("div",{onClick:()=>c(_.value),className:ae("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",A?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[s.jsx("span",{children:_.value}),A&&s.jsx("span",{onClick:O=>{O.stopPropagation(),c(_.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},_.value)},e[38]=n,e[39]=c,e[40]=L):L=e[40],F=g.map(L),e[9]=l,e[10]=r,e[11]=d,e[12]=i,e[13]=n,e[14]=m,e[15]=c,e[16]=o,e[17]=T,e[18]=C,e[19]=h,e[20]=F,e[21]=S,e[22]=j,e[23]=b}else T=e[17],C=e[18],h=e[19],F=e[20],S=e[21],j=e[22],b=e[23];let $;if(e[41]!==T||e[42]!==c||e[43]!==b){let g;e[45]!==b?(g=y=>!b.has(y),e[45]=b,e[46]=g):g=e[46];let x;e[47]!==c?(x=y=>s.jsxs("div",{onClick:()=>c(y),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:[s.jsx("span",{children:y}),s.jsx("span",{onClick:z=>{z.stopPropagation(),c(y)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`cat-${y}`),e[47]=c,e[48]=x):x=e[48],$=T.filter(g).map(x),e[41]=T,e[42]=c,e[43]=b,e[44]=$}else $=e[44];let R;if(e[49]!==C||e[50]!==o){let g;e[52]!==o?(g=x=>s.jsxs("div",{onClick:()=>o(x),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:[s.jsx("span",{children:x}),s.jsx("span",{onClick:y=>{y.stopPropagation(),o(x)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`tag-${x}`),e[52]=o,e[53]=g):g=e[53],R=C.map(g),e[49]=C,e[50]=o,e[51]=R}else R=e[51];let P;e[54]!==k||e[55]!==u?(P=u&&s.jsxs(X,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[s.jsx(re,{size:14}),"Clear all"]}),e[54]=k,e[55]=u,e[56]=P):P=e[56];let N;e[57]!==P||e[58]!==h||e[59]!==F||e[60]!==$||e[61]!==R?(N=s.jsxs("div",{className:h,children:[F,$,R,P]}),e[57]=P,e[58]=h,e[59]=F,e[60]=$,e[61]=R,e[62]=N):N=e[62];let w;return e[63]!==N||e[64]!==S||e[65]!==j?(w=s.jsxs("div",{className:S,children:[j,N]}),e[63]=N,e[64]=S,e[65]=j,e[66]=w):w=e[66],w}function ct(t){return t.value}function dt(t,e){if(!e)return t;const r=e.toLowerCase();return t.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function mt(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function ut(t){const e=Y.c(55),{registryId:r,listToolName:l,filtersToolName:m,storePrivateOnly:n}=t,[i,d]=U.useState(""),a=tt(i,300),u=me(),{org:I}=ne(),{scrollRef:o,saveScrollPosition:p,handleScroll:c}=st(`store-discovery:${r}`);let f;e[0]!==a||e[1]!==m||e[2]!==l||e[3]!==r?(f={registryId:r,listToolName:l,filtersToolName:m,search:a},e[0]=a,e[1]=m,e[2]=l,e[3]=r,e[4]=f):f=e[4];const{items:k,hasMore:T,isLoadingMore:C,isInitialLoading:h,isFetching:F,error:S,loadMore:j,availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,setSelectedTags:N,setSelectedCategories:w,hasActiveFilters:g}=lt(f);let x,y,z,L;if(e[5]!==a||e[6]!==F||e[7]!==h||e[8]!==k||e[9]!==i||e[10]!==n){const E=i?dt(k,i):k;L=n?E.filter(xt):E,x=(i!==a||F)&&!h&&!!i,z=L.filter(mt),y=L.filter(M=>!z.find(G=>G.id===M.id)),e[5]=a,e[6]=F,e[7]=h,e[8]=k,e[9]=i,e[10]=n,e[11]=x,e[12]=y,e[13]=z,e[14]=L}else x=e[11],y=e[12],z=e[13],L=e[14];const _=y;let A;e[15]!==u||e[16]!==I.slug||e[17]!==r||e[18]!==p?(A=E=>{p();const M=Ue(E.name||E.title||E.server?.title||""),G=typeof E.id=="string"&&E.id.includes("/"),Q=typeof E.server?.name=="string"&&E.server.name.includes("/"),K=G&&!Q?E.id:E.server?.name||E.id||"";u({to:"/$org/$project/store/$appName",params:{org:I.slug,project:xe,appName:M},search:{registryId:r,serverName:K}})},e[15]=u,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=A):A=e[19];const O=A;let W;e[20]!==c||e[21]!==T||e[22]!==C||e[23]!==j?(W=E=>{if(c(),!T||C)return;const M=E.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&j()},e[20]=c,e[21]=T,e[22]=C,e[23]=j,e[24]=W):W=e[24];const J=W;let B;e[25]!==x||e[26]!==i?(B=s.jsx(He,{value:i,onChange:d,placeholder:"Search for an MCP Server...",isSearching:x}),e[25]=x,e[26]=i,e[27]=B):B=e[27];let V;e[28]!==$||e[29]!==b||e[30]!==P||e[31]!==R||e[32]!==w||e[33]!==N?(V=s.jsx(at,{availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,onTagChange:N,onCategoryChange:w}),e[28]=$,e[29]=b,e[30]=P,e[31]=R,e[32]=w,e[33]=N,e[34]=V):V=e[34];let q;e[35]!==_||e[36]!==S||e[37]!==O||e[38]!==g||e[39]!==T||e[40]!==h||e[41]!==C||e[42]!==x||e[43]!==i||e[44]!==z||e[45]!==L?(q=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:S&&!h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"size-8 text-destructive"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),s.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."}),S.message&&s.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:S.message})]}),s.jsxs(X,{variant:"outline",size:"sm",onClick:ft,children:[s.jsx(fe,{className:"size-4"}),"Try again"]})]}):h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):L.length===0&&!g?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),s.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):L.length===0&&g&&!i?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&L.length===0&&!x?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(he,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):s.jsxs("div",{className:"flex flex-col gap-8",children:[x&&L.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),z.length>0&&s.jsx(ce,{items:z,title:"Verified",onItemClick:O}),_.length>0&&s.jsx(ce,{items:_,title:z.length>0?"All":"",onItemClick:O}),T&&C&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(le,{size:20,className:"animate-spin"}),s.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=_,e[36]=S,e[37]=O,e[38]=g,e[39]=T,e[40]=h,e[41]=C,e[42]=x,e[43]=i,e[44]=z,e[45]=L,e[46]=q):q=e[46];let D;e[47]!==J||e[48]!==o||e[49]!==q?(D=s.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:J,children:q}),e[47]=J,e[48]=o,e[49]=q,e[50]=D):D=e[50];let H;return e[51]!==B||e[52]!==V||e[53]!==D?(H=s.jsxs("div",{className:"flex flex-col h-full",children:[B,V,D]}),e[51]=B,e[52]=V,e[53]=D,e[54]=H):H=e[54],H}function ft(){return window.location.reload()}function xt(t){return t.is_public!==!0}function gt(t){const e=Y.c(11),{registryId:r,storePrivateOnly:l}=t,m=Ve(r),n=m?.tools;let i;e[0]!==n?(i=Ae(n),e[0]=n,e[1]=i):i=e[1];const d=i;if(!d){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(pe,{className:"size-8 text-muted-foreground"})}),e[2]=c):c=e[2];let f;return e[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[c,s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),s.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]=f):f=e[3],f}const a=m?.tools;let u;e[4]!==a?(u=Me(a),e[4]=a,e[5]=u):u=e[5];const o=u||void 0;let p;return e[6]!==d||e[7]!==r||e[8]!==l||e[9]!==o?(p=s.jsx(ut,{registryId:r,listToolName:d,filtersToolName:o,storePrivateOnly:l}),e[6]=d,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function pt(t){const e=Y.c(43),{registries:r,value:l,onValueChange:m,onAddWellKnown:n,wellKnownRegistries:i,placeholder:d}=t,a=d===void 0?"Select a registry...":d,[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h;if(e[0]!==u||e[1]!==a||e[2]!==r||e[3]!==l){let N;e[12]!==l?(N=g=>g.id===l,e[12]=l,e[13]=N):N=e[13];const w=r.find(N);p=be,C=u,h=I,o=Ne,T=!0,c="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(f=ae("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]=f):f=e[14],k=w?s.jsxs("span",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}):s.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=u,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=c,e[7]=f,e[8]=k,e[9]=T,e[10]=C,e[11]=h}else o=e[4],p=e[5],c=e[6],f=e[7],k=e[8],T=e[9],C=e[10],h=e[11];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(we,{className:"size-4 opacity-50"}),e[15]=F):F=e[15];let S;e[16]!==c||e[17]!==f||e[18]!==k?(S=s.jsxs("button",{type:c,className:f,children:[k,F]}),e[16]=c,e[17]=f,e[18]=k,e[19]=S):S=e[19];let j;e[20]!==o||e[21]!==T||e[22]!==S?(j=s.jsx(o,{asChild:T,children:S}),e[20]=o,e[21]=T,e[22]=S,e[23]=j):j=e[23];let b;if(e[24]!==m||e[25]!==r||e[26]!==l){let N;e[28]!==m||e[29]!==l?(N=w=>s.jsxs("button",{type:"button",onClick:()=>{m(w.id??w.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:[s.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}),l===(w.id??w.name)&&s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(Se,{className:"size-4"})})]},w.id??w.name),e[28]=m,e[29]=l,e[30]=N):N=e[30],b=r.map(N),e[24]=m,e[25]=r,e[26]=l,e[27]=b}else b=e[27];let $;e[31]!==n||e[32]!==i?($=i.length>0&&s.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[s.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(N=>s.jsxs("button",{type:"button",onClick:()=>{n(N),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:[s.jsxs("div",{className:"flex items-center gap-2",children:[N.icon?s.jsx("img",{src:N.icon,alt:N.title,className:"w-4 h-4 rounded"}):s.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:N.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:N.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Ye,{size:16})})]},N.id??N.title))]}),e[31]=n,e[32]=i,e[33]=$):$=e[33];let R;e[34]!==b||e[35]!==$?(R=s.jsxs(Ce,{align:"end",className:"w-auto min-w-[200px] p-1",children:[b,$]}),e[34]=b,e[35]=$,e[36]=R):R=e[36];let P;return e[37]!==p||e[38]!==j||e[39]!==R||e[40]!==C||e[41]!==h?(P=s.jsxs(p,{open:C,onOpenChange:h,children:[j,R]}),e[37]=p,e[38]=j,e[39]=R,e[40]=C,e[41]=h,e[42]=P):P=e[42],P}function ht({registries:t,onConnected:e}){const r=ve(),{org:{slug:l}}=ne(),{data:m}=Pe.useSession(),n=me(),[i,d]=U.useState(!1),a=t[0],u=async()=>{if(!(!a||!m?.user?.id)){d(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{d(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:xe},search:{action:"create"}})};return s.jsx(Je,{image:s.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:s.jsxs(s.Fragment,{children:[s.jsxs(X,{variant:"outline",onClick:u,disabled:i||!a,children:[a?.icon&&s.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),s.jsx(X,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function jt(t){const e=Y.c(15),{error:r,onRetry:l,registryName:m}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let d;e[2]!==m?(d=s.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",s.jsx("strong",{children:m})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=m,e[3]=d):d=e[3];let a;e[4]!==r?(a=r?.message&&s.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 u;e[6]!==d||e[7]!==a?(u=s.jsxs("div",{className:"space-y-2",children:[i,d,a]}),e[6]=d,e[7]=a,e[8]=u):u=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(fe,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=s.jsxs(X,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==u||e[13]!==o?(p=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,u,o]}),e[12]=u,e[13]=o,e[14]=p):p=e[14],p}function ns(){const t=Y.c(53),{org:e,project:r}=ne(),l=qe(),m=ve(),n=$e(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,d=Ze(l);let a;t[0]!==e.id?(a=Be.SELF(e.id),t[0]=e.id,t[1]=a):a=t[1];const u=a,I=r.enabledPlugins,o=I==null||I.includes(ie);let p;t[2]!==u?(p=(v,te)=>v.id===u?1:te.id===u?-1:0,t[2]=u,t[3]=p):p=t[3];const c=d.filter(v=>v.id!==u?!0:o).sort(p);let f;t[4]!==u?(f=v=>v.id===u,t[4]=u,t[5]=f):f=t[5];const k=c.some(f);let T;t[6]!==e.id?(T={connectionId:De,orgId:e.id},t[6]=e.id,t[7]=T):T=t[7];const C=ye(T);let h;t[8]!==r.id||t[9]!==C?(h=async()=>{const v=await C.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ie}});return v.structuredContent??v},t[8]=r.id,t[9]=C,t[10]=h):h=t[10];const{data:F}=je({queryKey:oe.projectPluginConfig(r.id??"",ie),queryFn:h,enabled:k&&!!r.id,staleTime:6e4}),S=F?.config?.settings;let j;t[11]!==S||t[12]!==u?(j=v=>v.id===u&&S?{id:v.id,name:S.registryName||v.title,icon:S.registryIcon||v.icon||void 0}:{id:v.id,name:v.title,icon:v.icon||void 0},t[11]=S,t[12]=u,t[13]=j):j=t[13];const b=c.map(j);let $;t[14]!==e.slug?($=Xe.selectedRegistry(e.slug),t[14]=e.slug,t[15]=$):$=t[15];const[R,P]=et($,vt);let N;t[16]!==R?(N=v=>v.id===R,t[16]=R,t[17]=N):N=t[17];const w=c.find(N);let g;t[18]!==u?(g=v=>v.id!==u,t[18]=u,t[19]=g):g=t[19];const x=c.find(g),y=w?.id||x?.id||c[0]?.id||"",z=y===u&&S?.storePrivateOnly===!0;let L;t[20]!==e.id?(L=Ge(e.id),t[20]=e.id,t[21]=L):L=t[21];let _;t[22]!==L?(_=[L],t[22]=L,t[23]=_):_=t[23];const A=_;let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=[We()],t[24]=O):O=t[24];const W=O;let J;t[25]!==m.create||t[26]!==P?(J=async v=>{const te=await m.create.mutateAsync(v);P(te.id)},t[25]=m.create,t[26]=P,t[27]=J):J=t[27];const B=J,V=new Set(c.map(yt)),q=A.filter(v=>v.id&&!V.has(v.id)),D=W.filter(v=>v.id&&!V.has(v.id));if(i){let v;return t[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ze,{}),t[28]=v):v=t[28],v}let H;t[29]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(se.Header.Left,{children:s.jsx(Le,{children:s.jsx(Fe,{children:s.jsx(Ee,{children:s.jsx(Oe,{children:"Store"})})})})}),t[29]=H):H=t[29];let E;t[30]!==B?(E=async v=>B(v),t[30]=B,t[31]=E):E=t[31];let M;t[32]!==q||t[33]!==y||t[34]!==b||t[35]!==P||t[36]!==E?(M=s.jsxs(se.Header,{children:[H,s.jsx(se.Header.Right,{children:s.jsx(pt,{wellKnownRegistries:q,registries:b,value:y,onValueChange:P,onAddWellKnown:E,placeholder:"Select store..."})})]}),t[32]=q,t[33]=y,t[34]=b,t[35]=P,t[36]=E,t[37]=M):M=t[37];let G;t[38]!==y||t[39]!==b?(G=v=>{const{error:te,resetError:Ie}=v;return s.jsx(jt,{error:te,onRetry:Ie,registryName:b.find(Te=>Te.id===y)?.name??"registry"})},t[38]=y,t[39]=b,t[40]=G):G=t[40];let Q;t[41]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),t[41]=Q):Q=t[41];let K;t[42]!==D||t[43]!==y||t[44]!==P||t[45]!==z?(K=s.jsx(U.Suspense,{fallback:Q,children:y?s.jsx(gt,{registryId:y,storePrivateOnly:z}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(ht,{registries:D,onConnected:v=>{P(v)}})})}),t[42]=D,t[43]=y,t[44]=P,t[45]=z,t[46]=K):K=t[46];let Z;t[47]!==G||t[48]!==K?(Z=s.jsx(se.Content,{children:s.jsx(ke,{fallback:G,children:K})}),t[47]=G,t[48]=K,t[49]=Z):Z=t[49];let ee;return t[50]!==M||t[51]!==Z?(ee=s.jsxs(se,{children:[M,Z]}),t[50]=M,t[51]=Z,t[52]=ee):ee=t[52],ee}function yt(t){return t.id}function vt(t){return t??""}export{ns as default};
|
|
1
|
+
import{c as Y,r as U,u as ne,K as oe,c0 as Re,j as s,v as ae,B as X,b as me,a1 as ue,a2 as fe,O as xe,d as Pe,as as $e,c1 as ie,E as ke,au as ze}from"./index-WgRy4XEz.js";import{P as se}from"./index-CuGOLHld.js";import{B as Le,a as Fe,b as Ee,c as Oe}from"./breadcrumb-mjrAJ44V.js";import{i as ge}from"./FilterLines-CgDlJMHC.js";import{n as pe}from"./Inbox01-B0oK7RI9.js";import{i as le}from"./Loading01-B8ixav8o.js";import{i as he}from"./SearchMd-B8KV3nui.js";import{u as je}from"./useQuery-C48kdbmo.js";import{u as Ke}from"./useInfiniteQuery-D2ydKX7z.js";import{a as _e,f as Ae,b as Me}from"./registry-utils-DwrfZsML.js";import{u as ye,W as Be,a as De,f as Ge,b as We}from"./constants-Bbw6jN_V.js";import{u as Ve,a as ve,b as qe}from"./use-connection-CfeJyAqX.js";import{s as Ue}from"./slugify-CEUa2lfQ.js";import{C as He,E as Je}from"./collection-search-C_6fMPfN.js";import{M as ce}from"./mcp-server-card-wnDYG_0O.js";import{I as Qe}from"./input-BJJ-HZyT.js";import{a as be,b as Ne,P as Ce}from"./popover-BSwvSWKq.js";import{i as Se}from"./Check-BQYRNFNB.js";import{t as we}from"./ChevronDown-1tcTabrX.js";import{s as re}from"./XClose-DuxEOCv_.js";import{s as Ye}from"./Plus-D4t5EG83.js";import{u as Ze}from"./use-binding-CAoXPeYp.js";import{L as Xe,u as et}from"./localstorage-keys-BUkugh6_.js";import"./tooltip-Babiaq0d.js";import"./index-Dw9bGcxk.js";import"./ChevronRight-DhQpCpKK.js";import"./infiniteQueryObserver-6Sv1mY48.js";import"./use-collections-B-x23mni.js";import"./useMutation-DmgIjz65.js";import"./CheckVerified02-BNn37Me9.js";import"./Globe02-DK-nDQII.js";import"./Lock01-BOdqI63W.js";import"./Terminal-fmXnrrqs.js";import"./card-DFLwXVkm.js";import"./integration-icon-R2eYJYHC.js";import"./Container-BU5QPEDW.js";import"./github-icon-Dp3wHhYE.js";import"./binder-D8s-h8oe.js";function tt(t,e){const r=Y.c(4),[l,m]=U.useState(t),n=U.useRef(null),i=U.useRef(!0);let d,a;return r[0]!==e||r[1]!==t?(d=()=>{if(i.current){i.current=!1;return}return n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{m(t)},e),()=>{n.current&&clearTimeout(n.current)}},a=[t,e],r[0]=e,r[1]=t,r[2]=d,r[3]=a):(d=r[2],a=r[3]),U.useEffect(d,a),l}function st(t){const e=Y.c(14),r=U.useRef(null),l=`scroll-position:${t}`,m=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 d;e[2]!==l?(d=()=>{if(m.current===l)return;const f=sessionStorage.getItem(l);if(f&&r.current){const k=Number.parseInt(f,10);r.current.scrollTop=k}m.current=l},e[2]=l,e[3]=d):d=e[3];const a=d;let u;e[4]!==a||e[5]!==l?(u=()=>{m.current!==l&&a()},e[4]=a,e[5]=l,e[6]=u):u=e[6];const I=u;let o;e[7]!==a||e[8]!==l?(o=f=>{r.current=f,f&&m.current!==l&&requestAnimationFrame(()=>{a()})},e[7]=a,e[8]=l,e[9]=o):o=e[9];const p=o;let c;return e[10]!==I||e[11]!==i||e[12]!==p?(c={scrollRef:p,saveScrollPosition:i,handleScroll:I},e[10]=I,e[11]=i,e[12]=p,e[13]=c):c=e[13],c}const rt=24;function lt(t){const e=Y.c(54),{registryId:r,listToolName:l,filtersToolName:m,search:n}=t,{org:i}=ne();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[0]=d):d=e[0];const[a,u]=U.useState(d);let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=[],e[1]=I):I=e[1];const[o,p]=U.useState(I),c=r||null;let f;e[2]!==i.id||e[3]!==c?(f={connectionId:c,orgId:i.id},e[2]=i.id,e[3]=c,e[4]=f):f=e[4];const k=ye(f),T=!!m;let C;e[5]!==m||e[6]!==r?(C=oe.toolCall(r,m||"no-filters","{}"),e[5]=m,e[6]=r,e[7]=C):C=e[7];let h;e[8]!==k||e[9]!==m?(h=async()=>{if(!m)return{tags:[],categories:[]};const _=await k.callTool({name:m,arguments:{}});return _.structuredContent??_},e[8]=k,e[9]=m,e[10]=h):h=e[10];let F;e[11]!==C||e[12]!==h?(F={queryKey:C,queryFn:h,staleTime:36e5,retry:2},e[11]=C,e[12]=h,e[13]=F):F=e[13];const{data:S}=je(F);let j,b,$;if(e[14]!==l||e[15]!==r||e[16]!==n||e[17]!==o||e[18]!==a){const _=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;j={limit:rt,...a.length>0&&{tags:a},...o.length>0&&{categories:o},..._&&{where:_}},$=Ke,b=oe.toolCall(r,l,JSON.stringify(j)),e[14]=l,e[15]=r,e[16]=n,e[17]=o,e[18]=a,e[19]=j,e[20]=b,e[21]=$}else j=e[19],b=e[20],$=e[21];let R;e[22]!==k||e[23]!==j||e[24]!==l?(R=async _=>{const{pageParam:Z}=_,ee=Z?{...j,cursor:Z}:j,v=await k.callTool({name:l,arguments:ee});return v.structuredContent??v},e[22]=k,e[23]=j,e[24]=l,e[25]=R):R=e[25];let P;e[26]!==R||e[27]!==b?(P={queryKey:b,queryFn:R,initialPageParam:void 0,getNextPageParam:nt,staleTime:36e5,placeholderData:Re,retry:2},e[26]=R,e[27]=b,e[28]=P):P=e[28];const{data:N,fetchNextPage:w,hasNextPage:g,isFetchingNextPage:x,isFetching:y,isLoading:z,error:L}=$(P);let K;e:{if(!N?.pages||N.pages.length===0){K=null;break e}const _=N.pages[0];if(typeof _=="object"&&_!==null&&"totalCount"in _&&typeof _.totalCount=="number"){K=_.totalCount;break e}K=null}const A=K,O=N?.pages;let W;e[29]!==O?(W=_e(O),e[29]=O,e[30]=W):W=e[30];const J=W;let B;e[31]!==n||e[32]!==o.length||e[33]!==a.length?(B=a.length>0||o.length>0||!!n?.trim(),e[31]=n,e[32]=o.length,e[33]=a.length,e[34]=B):B=e[34];const V=B,q=y&&!x&&!z&&V;let D;e[35]!==w||e[36]!==g||e[37]!==x?(D=()=>{g&&!x&&w()},e[35]=w,e[36]=g,e[37]=x,e[38]=D):D=e[38];const H=D,E=g??!1,M=T?S?.tags:void 0,G=T?S?.categories:void 0;let Q;return e[39]!==V||e[40]!==y||e[41]!==x||e[42]!==q||e[43]!==z||e[44]!==J||e[45]!==L||e[46]!==H||e[47]!==o||e[48]!==a||e[49]!==E||e[50]!==M||e[51]!==G||e[52]!==A?(Q={items:J,totalCount:A,hasMore:E,isLoadingMore:x,isFiltering:q,isInitialLoading:z,isFetching:y,error:L,loadMore:H,availableTags:M,availableCategories:G,selectedTags:a,selectedCategories:o,setSelectedTags:u,setSelectedCategories:p,hasActiveFilters:V},e[39]=V,e[40]=y,e[41]=x,e[42]=q,e[43]=z,e[44]=J,e[45]=L,e[46]=H,e[47]=o,e[48]=a,e[49]=E,e[50]=M,e[51]=G,e[52]=A,e[53]=Q):Q=e[53],Q}function nt(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function it(t,e){return[...t].sort((r,l)=>l.count-r.count).slice(0,e)}function de(t){const e=Y.c(52),{label:r,items:l,selectedItems:m,onToggle:n,onClear:i}=t,[d,a]=U.useState(""),[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h,F,S,j;if(e[0]!==l||e[1]!==r||e[2]!==n||e[3]!==u||e[4]!==d||e[5]!==m){const w=[...d?l.filter(O=>O.value.toLowerCase().includes(d.toLowerCase())):l].sort(ot);c=m.length,p=be,F=u,S=I;let g;e[17]!==r?(g=s.jsx("span",{children:r}),e[17]=r,e[18]=g):g=e[18];let x;e[19]!==c?(x=c>0&&s.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:c}),e[19]=c,e[20]=x):x=e[20];let y;e[21]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(we,{size:14,className:"opacity-50"}),e[21]=y):y=e[21],e[22]!==x||e[23]!==g?(j=s.jsx(Ne,{asChild:!0,children:s.jsxs(X,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[g,x,y]})}),e[22]=x,e[23]=g,e[24]=j):j=e[24],o=Ce,T="w-64 p-0",C="start";let z;e[25]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(he,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=z):z=e[25];let L;e[26]!==r?(L=r.toLowerCase(),e[26]=r,e[27]=L):L=e[27];const K=`Search ${L}...`;let A;e[28]===Symbol.for("react.memo_cache_sentinel")?(A=O=>a(O.target.value),e[28]=A):A=e[28],e[29]!==d||e[30]!==K?(h=s.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[z,s.jsx(Qe,{type:"text",placeholder:K,value:d,onChange:A,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]=d,e[30]=K,e[31]=h):h=e[31],f="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",k=w.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):w.map(O=>{const W=m.includes(O.value);return s.jsxs("button",{onClick:()=>n(O.value),className:ae("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",W?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[W&&s.jsx(Se,{size:16,className:"text-muted-foreground shrink-0"}),O.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:O.count})]},O.value)}),e[0]=l,e[1]=r,e[2]=n,e[3]=u,e[4]=d,e[5]=m,e[6]=o,e[7]=p,e[8]=c,e[9]=f,e[10]=k,e[11]=T,e[12]=C,e[13]=h,e[14]=F,e[15]=S,e[16]=j}else o=e[6],p=e[7],c=e[8],f=e[9],k=e[10],T=e[11],C=e[12],h=e[13],F=e[14],S=e[15],j=e[16];let b;e[32]!==f||e[33]!==k?(b=s.jsx("div",{className:f,children:k}),e[32]=f,e[33]=k,e[34]=b):b=e[34];let $;e[35]!==r||e[36]!==i||e[37]!==c?($=c>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(X,{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]=c,e[38]=$):$=e[38];let R;e[39]!==o||e[40]!==$||e[41]!==T||e[42]!==C||e[43]!==h||e[44]!==b?(R=s.jsxs(o,{className:T,align:C,children:[h,b,$]}),e[39]=o,e[40]=$,e[41]=T,e[42]=C,e[43]=h,e[44]=b,e[45]=R):R=e[45];let P;return e[46]!==p||e[47]!==R||e[48]!==F||e[49]!==S||e[50]!==j?(P=s.jsxs(p,{open:F,onOpenChange:S,children:[j,R]}),e[46]=p,e[47]=R,e[48]=F,e[49]=S,e[50]=j,e[51]=P):P=e[51],P}function ot(t,e){return e.count-t.count}function at(t){const e=Y.c(67),{availableTags:r,availableCategories:l,selectedTags:m,selectedCategories:n,onTagChange:i,onCategoryChange:d}=t,a=r&&r.length>0||l&&l.length>0,u=m.length>0||n.length>0;if(!a)return null;let I;e[0]!==i||e[1]!==m?(I=g=>{m.includes(g)?i(m.filter(x=>x!==g)):i([...m,g])},e[0]=i,e[1]=m,e[2]=I):I=e[2];const o=I;let p;e[3]!==d||e[4]!==n?(p=g=>{n.includes(g)?d(n.filter(x=>x!==g)):d([...n,g])},e[3]=d,e[4]=n,e[5]=p):p=e[5];const c=p;let f;e[6]!==d||e[7]!==i?(f=()=>{i([]),d([])},e[6]=d,e[7]=i,e[8]=f):f=e[8];const k=f;let T,C,h,F,S,j,b;if(e[9]!==l||e[10]!==r||e[11]!==d||e[12]!==i||e[13]!==n||e[14]!==m||e[15]!==c||e[16]!==o){const g=l?it(l,6):[];T=n,C=m,b=new Set(g.map(ct)),S="flex items-center border-b border-border";let x;e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(ge,{size:16})}),e[24]=x):x=e[24];let y;e[25]!==l||e[26]!==d||e[27]!==n||e[28]!==c?(y=l&&l.length>0&&s.jsx(de,{label:"Categories",items:l,selectedItems:n,onToggle:c,onClear:()=>d([])}),e[25]=l,e[26]=d,e[27]=n,e[28]=c,e[29]=y):y=e[29];let z;e[30]!==r||e[31]!==i||e[32]!==m||e[33]!==o?(z=r&&r.length>0&&s.jsx(de,{label:"Tags",items:r,selectedItems:m,onToggle:o,onClear:()=>i([])}),e[30]=r,e[31]=i,e[32]=m,e[33]=o,e[34]=z):z=e[34],e[35]!==z||e[36]!==y?(j=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[x,y,z]}),e[35]=z,e[36]=y,e[37]=j):j=e[37],h="flex items-center gap-3 flex-wrap px-5 py-3";let L;e[38]!==n||e[39]!==c?(L=K=>{const A=n.includes(K.value);return s.jsxs("div",{onClick:()=>c(K.value),className:ae("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",A?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[s.jsx("span",{children:K.value}),A&&s.jsx("span",{onClick:O=>{O.stopPropagation(),c(K.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},K.value)},e[38]=n,e[39]=c,e[40]=L):L=e[40],F=g.map(L),e[9]=l,e[10]=r,e[11]=d,e[12]=i,e[13]=n,e[14]=m,e[15]=c,e[16]=o,e[17]=T,e[18]=C,e[19]=h,e[20]=F,e[21]=S,e[22]=j,e[23]=b}else T=e[17],C=e[18],h=e[19],F=e[20],S=e[21],j=e[22],b=e[23];let $;if(e[41]!==T||e[42]!==c||e[43]!==b){let g;e[45]!==b?(g=y=>!b.has(y),e[45]=b,e[46]=g):g=e[46];let x;e[47]!==c?(x=y=>s.jsxs("div",{onClick:()=>c(y),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:[s.jsx("span",{children:y}),s.jsx("span",{onClick:z=>{z.stopPropagation(),c(y)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`cat-${y}`),e[47]=c,e[48]=x):x=e[48],$=T.filter(g).map(x),e[41]=T,e[42]=c,e[43]=b,e[44]=$}else $=e[44];let R;if(e[49]!==C||e[50]!==o){let g;e[52]!==o?(g=x=>s.jsxs("div",{onClick:()=>o(x),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:[s.jsx("span",{children:x}),s.jsx("span",{onClick:y=>{y.stopPropagation(),o(x)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(re,{size:12})})]},`tag-${x}`),e[52]=o,e[53]=g):g=e[53],R=C.map(g),e[49]=C,e[50]=o,e[51]=R}else R=e[51];let P;e[54]!==k||e[55]!==u?(P=u&&s.jsxs(X,{variant:"ghost",size:"sm",onClick:k,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[s.jsx(re,{size:14}),"Clear all"]}),e[54]=k,e[55]=u,e[56]=P):P=e[56];let N;e[57]!==P||e[58]!==h||e[59]!==F||e[60]!==$||e[61]!==R?(N=s.jsxs("div",{className:h,children:[F,$,R,P]}),e[57]=P,e[58]=h,e[59]=F,e[60]=$,e[61]=R,e[62]=N):N=e[62];let w;return e[63]!==N||e[64]!==S||e[65]!==j?(w=s.jsxs("div",{className:S,children:[j,N]}),e[63]=N,e[64]=S,e[65]=j,e[66]=w):w=e[66],w}function ct(t){return t.value}function dt(t,e){if(!e)return t;const r=e.toLowerCase();return t.filter(l=>(l.name||l.title||"").toLowerCase().includes(r)||(l.description||l.server?.description||"").toLowerCase().includes(r))}function mt(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function ut(t){const e=Y.c(55),{registryId:r,listToolName:l,filtersToolName:m,storePrivateOnly:n}=t,[i,d]=U.useState(""),a=tt(i,300),u=me(),{org:I}=ne(),{scrollRef:o,saveScrollPosition:p,handleScroll:c}=st(`store-discovery:${r}`);let f;e[0]!==a||e[1]!==m||e[2]!==l||e[3]!==r?(f={registryId:r,listToolName:l,filtersToolName:m,search:a},e[0]=a,e[1]=m,e[2]=l,e[3]=r,e[4]=f):f=e[4];const{items:k,hasMore:T,isLoadingMore:C,isInitialLoading:h,isFetching:F,error:S,loadMore:j,availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,setSelectedTags:N,setSelectedCategories:w,hasActiveFilters:g}=lt(f);let x,y,z,L;if(e[5]!==a||e[6]!==F||e[7]!==h||e[8]!==k||e[9]!==i||e[10]!==n){const E=i?dt(k,i):k;L=n?E.filter(xt):E,x=(i!==a||F)&&!h&&!!i,z=L.filter(mt),y=L.filter(M=>!z.find(G=>G.id===M.id)),e[5]=a,e[6]=F,e[7]=h,e[8]=k,e[9]=i,e[10]=n,e[11]=x,e[12]=y,e[13]=z,e[14]=L}else x=e[11],y=e[12],z=e[13],L=e[14];const K=y;let A;e[15]!==u||e[16]!==I.slug||e[17]!==r||e[18]!==p?(A=E=>{p();const M=Ue(E.name||E.title||E.server?.title||""),G=typeof E.id=="string"&&E.id.includes("/"),Q=typeof E.server?.name=="string"&&E.server.name.includes("/"),_=G&&!Q?E.id:E.server?.name||E.id||"";u({to:"/$org/$project/store/$appName",params:{org:I.slug,project:xe,appName:M},search:{registryId:r,serverName:_}})},e[15]=u,e[16]=I.slug,e[17]=r,e[18]=p,e[19]=A):A=e[19];const O=A;let W;e[20]!==c||e[21]!==T||e[22]!==C||e[23]!==j?(W=E=>{if(c(),!T||C)return;const M=E.currentTarget;M.scrollHeight-M.scrollTop-M.clientHeight<200&&j()},e[20]=c,e[21]=T,e[22]=C,e[23]=j,e[24]=W):W=e[24];const J=W;let B;e[25]!==x||e[26]!==i?(B=s.jsx(He,{value:i,onChange:d,placeholder:"Search for an MCP Server...",isSearching:x}),e[25]=x,e[26]=i,e[27]=B):B=e[27];let V;e[28]!==$||e[29]!==b||e[30]!==P||e[31]!==R||e[32]!==w||e[33]!==N?(V=s.jsx(at,{availableTags:b,availableCategories:$,selectedTags:R,selectedCategories:P,onTagChange:N,onCategoryChange:w}),e[28]=$,e[29]=b,e[30]=P,e[31]=R,e[32]=w,e[33]=N,e[34]=V):V=e[34];let q;e[35]!==K||e[36]!==S||e[37]!==O||e[38]!==g||e[39]!==T||e[40]!==h||e[41]!==C||e[42]!==x||e[43]!==i||e[44]!==z||e[45]!==L?(q=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:S&&!h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-4",children:[s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"size-8 text-destructive"})}),s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry unavailable"}),s.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."}),S.message&&s.jsx("p",{className:"text-xs text-muted-foreground/60 font-mono max-w-md mx-auto truncate",children:S.message})]}),s.jsxs(X,{variant:"outline",size:"sm",onClick:ft,children:[s.jsx(fe,{className:"size-4"}),"Try again"]})]}):h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):L.length===0&&!g?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(pe,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),s.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):L.length===0&&g&&!i?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ge,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):i&&L.length===0&&!x?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(he,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):s.jsxs("div",{className:"flex flex-col gap-8",children:[x&&L.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),z.length>0&&s.jsx(ce,{items:z,title:"Verified",onItemClick:O}),K.length>0&&s.jsx(ce,{items:K,title:z.length>0?"All":"",onItemClick:O}),T&&C&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(le,{size:20,className:"animate-spin"}),s.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[35]=K,e[36]=S,e[37]=O,e[38]=g,e[39]=T,e[40]=h,e[41]=C,e[42]=x,e[43]=i,e[44]=z,e[45]=L,e[46]=q):q=e[46];let D;e[47]!==J||e[48]!==o||e[49]!==q?(D=s.jsx("div",{ref:o,className:"flex-1 overflow-y-auto",onScroll:J,children:q}),e[47]=J,e[48]=o,e[49]=q,e[50]=D):D=e[50];let H;return e[51]!==B||e[52]!==V||e[53]!==D?(H=s.jsxs("div",{className:"flex flex-col h-full",children:[B,V,D]}),e[51]=B,e[52]=V,e[53]=D,e[54]=H):H=e[54],H}function ft(){return window.location.reload()}function xt(t){return t.is_public!==!0}function gt(t){const e=Y.c(11),{registryId:r,storePrivateOnly:l}=t,m=Ve(r),n=m?.tools;let i;e[0]!==n?(i=Ae(n),e[0]=n,e[1]=i):i=e[1];const d=i;if(!d){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"bg-muted p-3 rounded-full",children:s.jsx(pe,{className:"size-8 text-muted-foreground"})}),e[2]=c):c=e[2];let f;return e[3]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full py-12 text-center space-y-4",children:[c,s.jsxs("div",{className:"space-y-2",children:[s.jsx("h3",{className:"text-lg font-medium",children:"Registry not available"}),s.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]=f):f=e[3],f}const a=m?.tools;let u;e[4]!==a?(u=Me(a),e[4]=a,e[5]=u):u=e[5];const o=u||void 0;let p;return e[6]!==d||e[7]!==r||e[8]!==l||e[9]!==o?(p=s.jsx(ut,{registryId:r,listToolName:d,filtersToolName:o,storePrivateOnly:l}),e[6]=d,e[7]=r,e[8]=l,e[9]=o,e[10]=p):p=e[10],p}function pt(t){const e=Y.c(43),{registries:r,value:l,onValueChange:m,onAddWellKnown:n,wellKnownRegistries:i,placeholder:d}=t,a=d===void 0?"Select a registry...":d,[u,I]=U.useState(!1);let o,p,c,f,k,T,C,h;if(e[0]!==u||e[1]!==a||e[2]!==r||e[3]!==l){let N;e[12]!==l?(N=g=>g.id===l,e[12]=l,e[13]=N):N=e[13];const w=r.find(N);p=be,C=u,h=I,o=Ne,T=!0,c="button",e[14]===Symbol.for("react.memo_cache_sentinel")?(f=ae("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]=f):f=e[14],k=w?s.jsxs("span",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}):s.jsx("span",{className:"text-muted-foreground",children:a}),e[0]=u,e[1]=a,e[2]=r,e[3]=l,e[4]=o,e[5]=p,e[6]=c,e[7]=f,e[8]=k,e[9]=T,e[10]=C,e[11]=h}else o=e[4],p=e[5],c=e[6],f=e[7],k=e[8],T=e[9],C=e[10],h=e[11];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(we,{className:"size-4 opacity-50"}),e[15]=F):F=e[15];let S;e[16]!==c||e[17]!==f||e[18]!==k?(S=s.jsxs("button",{type:c,className:f,children:[k,F]}),e[16]=c,e[17]=f,e[18]=k,e[19]=S):S=e[19];let j;e[20]!==o||e[21]!==T||e[22]!==S?(j=s.jsx(o,{asChild:T,children:S}),e[20]=o,e[21]=T,e[22]=S,e[23]=j):j=e[23];let b;if(e[24]!==m||e[25]!==r||e[26]!==l){let N;e[28]!==m||e[29]!==l?(N=w=>s.jsxs("button",{type:"button",onClick:()=>{m(w.id??w.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:[s.jsxs("div",{className:"flex items-center gap-2",children:[w.icon?s.jsx("img",{src:w.icon,alt:w.name,className:"w-4 h-4 rounded"}):s.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:w.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:w.name})]}),l===(w.id??w.name)&&s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(Se,{className:"size-4"})})]},w.id??w.name),e[28]=m,e[29]=l,e[30]=N):N=e[30],b=r.map(N),e[24]=m,e[25]=r,e[26]=l,e[27]=b}else b=e[27];let $;e[31]!==n||e[32]!==i?($=i.length>0&&s.jsxs("div",{className:"border-t border-border pt-1 mt-1",children:[s.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),i.map(N=>s.jsxs("button",{type:"button",onClick:()=>{n(N),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:[s.jsxs("div",{className:"flex items-center gap-2",children:[N.icon?s.jsx("img",{src:N.icon,alt:N.title,className:"w-4 h-4 rounded"}):s.jsx("span",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:N.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:N.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Ye,{size:16})})]},N.id??N.title))]}),e[31]=n,e[32]=i,e[33]=$):$=e[33];let R;e[34]!==b||e[35]!==$?(R=s.jsxs(Ce,{align:"end",className:"w-auto min-w-[200px] p-1",children:[b,$]}),e[34]=b,e[35]=$,e[36]=R):R=e[36];let P;return e[37]!==p||e[38]!==j||e[39]!==R||e[40]!==C||e[41]!==h?(P=s.jsxs(p,{open:C,onOpenChange:h,children:[j,R]}),e[37]=p,e[38]=j,e[39]=R,e[40]=C,e[41]=h,e[42]=P):P=e[42],P}function ht({registries:t,onConnected:e}){const r=ve(),{org:{slug:l}}=ne(),{data:m}=Pe.useSession(),n=me(),[i,d]=U.useState(!1),a=t[0],u=async()=>{if(!(!a||!m?.user?.id)){d(!0);try{const o=await r.create.mutateAsync(a);e?.(o.id)}finally{d(!1)}}},I=()=>{n({to:"/$org/$project/mcps",params:{org:l,project:xe},search:{action:"create"}})};return s.jsx(Je,{image:s.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:s.jsxs(s.Fragment,{children:[s.jsxs(X,{variant:"outline",onClick:u,disabled:i||!a,children:[a?.icon&&s.jsx("img",{src:a.icon,alt:"",className:"size-4"}),i?"Installing...":"Install Registry"]}),s.jsx(X,{variant:"outline",onClick:I,children:"Custom Connection"})]})})}function jt(t){const e=Y.c(15),{error:r,onRetry:l,registryName:m}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:s.jsx(ue,{className:"h-6 w-6 text-destructive"})}),e[0]=n):n=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("h3",{className:"text-lg font-medium",children:"Unable to load store"}),e[1]=i):i=e[1];let d;e[2]!==m?(d=s.jsxs("p",{className:"text-sm text-muted-foreground max-w-sm mx-auto",children:["The ",s.jsx("strong",{children:m})," registry is currently unreachable. This may be a temporary issue — try again in a moment."]}),e[2]=m,e[3]=d):d=e[3];let a;e[4]!==r?(a=r?.message&&s.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 u;e[6]!==d||e[7]!==a?(u=s.jsxs("div",{className:"space-y-2",children:[i,d,a]}),e[6]=d,e[7]=a,e[8]=u):u=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=s.jsx(fe,{className:"size-4"}),e[9]=I):I=e[9];let o;e[10]!==l?(o=s.jsxs(X,{variant:"outline",size:"sm",onClick:l,children:[I,"Try again"]}),e[10]=l,e[11]=o):o=e[11];let p;return e[12]!==u||e[13]!==o?(p=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[n,u,o]}),e[12]=u,e[13]=o,e[14]=p):p=e[14],p}function ns(){const t=Y.c(53),{org:e,project:r}=ne(),l=qe(),m=ve(),n=$e(),i=n.location.pathname.includes("/store/")&&n.location.pathname.split("/").length>3,d=Ze(l);let a;t[0]!==e.id?(a=Be.SELF(e.id),t[0]=e.id,t[1]=a):a=t[1];const u=a,I=r.enabledPlugins,o=I==null||I.includes(ie);let p;t[2]!==u?(p=(v,te)=>v.id===u?1:te.id===u?-1:0,t[2]=u,t[3]=p):p=t[3];const c=d.filter(v=>v.id!==u?!0:o).sort(p);let f;t[4]!==u?(f=v=>v.id===u,t[4]=u,t[5]=f):f=t[5];const k=c.some(f);let T;t[6]!==e.id?(T={connectionId:De,orgId:e.id},t[6]=e.id,t[7]=T):T=t[7];const C=ye(T);let h;t[8]!==r.id||t[9]!==C?(h=async()=>{const v=await C.callTool({name:"PROJECT_PLUGIN_CONFIG_GET",arguments:{projectId:r.id,pluginId:ie}});return v.structuredContent??v},t[8]=r.id,t[9]=C,t[10]=h):h=t[10];const{data:F}=je({queryKey:oe.projectPluginConfig(r.id??"",ie),queryFn:h,enabled:k&&!!r.id,staleTime:6e4}),S=F?.config?.settings;let j;t[11]!==S||t[12]!==u?(j=v=>v.id===u&&S?{id:v.id,name:S.registryName||v.title,icon:S.registryIcon||v.icon||void 0}:{id:v.id,name:v.title,icon:v.icon||void 0},t[11]=S,t[12]=u,t[13]=j):j=t[13];const b=c.map(j);let $;t[14]!==e.slug?($=Xe.selectedRegistry(e.slug),t[14]=e.slug,t[15]=$):$=t[15];const[R,P]=et($,vt);let N;t[16]!==R?(N=v=>v.id===R,t[16]=R,t[17]=N):N=t[17];const w=c.find(N);let g;t[18]!==u?(g=v=>v.id!==u,t[18]=u,t[19]=g):g=t[19];const x=c.find(g),y=w?.id||x?.id||c[0]?.id||"",z=y===u&&S?.storePrivateOnly===!0;let L;t[20]!==e.id?(L=Ge(e.id),t[20]=e.id,t[21]=L):L=t[21];let K;t[22]!==L?(K=[L],t[22]=L,t[23]=K):K=t[23];const A=K;let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=[We()],t[24]=O):O=t[24];const W=O;let J;t[25]!==m.create||t[26]!==P?(J=async v=>{const te=await m.create.mutateAsync(v);P(te.id)},t[25]=m.create,t[26]=P,t[27]=J):J=t[27];const B=J,V=new Set(c.map(yt)),q=A.filter(v=>v.id&&!V.has(v.id)),D=W.filter(v=>v.id&&!V.has(v.id));if(i){let v;return t[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ze,{}),t[28]=v):v=t[28],v}let H;t[29]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(se.Header.Left,{children:s.jsx(Le,{children:s.jsx(Fe,{children:s.jsx(Ee,{children:s.jsx(Oe,{children:"Store"})})})})}),t[29]=H):H=t[29];let E;t[30]!==B?(E=async v=>B(v),t[30]=B,t[31]=E):E=t[31];let M;t[32]!==q||t[33]!==y||t[34]!==b||t[35]!==P||t[36]!==E?(M=s.jsxs(se.Header,{children:[H,s.jsx(se.Header.Right,{children:s.jsx(pt,{wellKnownRegistries:q,registries:b,value:y,onValueChange:P,onAddWellKnown:E,placeholder:"Select store..."})})]}),t[32]=q,t[33]=y,t[34]=b,t[35]=P,t[36]=E,t[37]=M):M=t[37];let G;t[38]!==y||t[39]!==b?(G=v=>{const{error:te,resetError:Ie}=v;return s.jsx(jt,{error:te,onRetry:Ie,registryName:b.find(Te=>Te.id===y)?.name??"registry"})},t[38]=y,t[39]=b,t[40]=G):G=t[40];let Q;t[41]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(le,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),t[41]=Q):Q=t[41];let _;t[42]!==D||t[43]!==y||t[44]!==P||t[45]!==z?(_=s.jsx(U.Suspense,{fallback:Q,children:y?s.jsx(gt,{registryId:y,storePrivateOnly:z}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(ht,{registries:D,onConnected:v=>{P(v)}})})}),t[42]=D,t[43]=y,t[44]=P,t[45]=z,t[46]=_):_=t[46];let Z;t[47]!==G||t[48]!==_?(Z=s.jsx(se.Content,{children:s.jsx(ke,{fallback:G,children:_})}),t[47]=G,t[48]=_,t[49]=Z):Z=t[49];let ee;return t[50]!==M||t[51]!==Z?(ee=s.jsxs(se,{children:[M,Z]}),t[50]=M,t[51]=Z,t[52]=ee):ee=t[52],ee}function yt(t){return t.id}function vt(t){return t??""}export{ns as default};
|
|
@@ -0,0 +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-WgRy4XEz.js";import{V as le,C as h}from"./index-CdiDGOKq.js";import{E as re,C as Z}from"./editable-task-title-C0JEoPnJ.js";import{a as G}from"./tasks-panel-F9MkKd8u.js";import{u as U,a as oe}from"./collapsible-CxJfsyMO.js";import{I as J}from"./integration-icon-R2eYJYHC.js";import{b as ne,P as ae,a as ce}from"./popover-BSwvSWKq.js";import{S as q}from"./skeleton-DJ9ksHdo.js";import{i as me,d as de}from"./constants-Bbw6jN_V.js";import{b as fe}from"./use-virtual-mcp-DXNTpzcv.js";import{i as pe}from"./ChevronRight-DhQpCpKK.js";import{t as Q}from"./Users03-Z1ByU7gs.js";import{P as $}from"./index-CuGOLHld.js";import{R,a as F,b as K}from"./resizable-CuAJwpCE.js";import"./spinner-C_jBik6U.js";import"./tooltip-Babiaq0d.js";import"./index-Dw9bGcxk.js";import"./decopilot-events-CkaAIkUJ.js";import"./useQuery-C48kdbmo.js";import"./dialog-DP7DY4yr.js";import"./X-DUw9p4mH.js";import"./form-CCy4OYZh.js";import"./label-meKA8koQ.js";import"./input-BJJ-HZyT.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-DHX-mOU2.js";import"./ChevronDown-1tcTabrX.js";import"./Edit01-BIUDv_si.js";import"./Lock01-BOdqI63W.js";import"./XCircle-B8o5NZjk.js";import"./AlertCircle-C33JEKEq.js";import"./select-D5UCIms-.js";import"./Check-BQYRNFNB.js";import"./tabs-BWF5GtqN.js";import"./localstorage-keys-BUkugh6_.js";import"./useMutation-DmgIjz65.js";import"./ArrowLeft-6J-waWbb.js";import"./use-copy-CMFYl2Ga.js";import"./badge-Bjvc5XIA.js";import"./Code01-CycseZkv.js";import"./SearchMd-B8KV3nui.js";import"./use-create-virtual-mcp-BQ2vLOYt.js";import"./use-mcp-resources-7Fl5_HS_.js";import"./Copy01-Bub_iK1k.js";import"./marked.esm-BaswSlok.js";import"./markdown-DdHbXzu-.js";import"./mcp-app-renderer-PyxYtSmQ.js";import"./types-BJf49Mfd.js";import"./Eye-CJ0GO8QL.js";import"./Globe02-DK-nDQII.js";import"./LayersTwo01-BcA1LBal.js";import"./XClose-DuxEOCv_.js";import"./collection-search-C_6fMPfN.js";import"./Loading01-B8ixav8o.js";import"./use-connection-CfeJyAqX.js";import"./use-collections-B-x23mni.js";import"./generate-id-Dyweu44Y.js";import"./Clock-C30Ff6vt.js";import"./Trash01-_Tzcparm.js";import"./CheckCircle-BspahUp0.js";import"./ChevronLeft-Bj3ue1eK.js";import"./user-DC5rs3GH.js";import"./avatar-Ci3kAkCl.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./Plus-D4t5EG83.js";import"./dropdown-menu-C6kuYZ7_.js";import"./use-llm-BMRIZw-b.js";import"./use-binding-CAoXPeYp.js";import"./binder-D8s-h8oe.js";import"./checkbox-YMBbuKOZ.js";import"./AlignLeft-REGjRwBJ.js";import"./Image01-_ugWt3d2.js";import"./RefreshCcw01-CCgnRJd5.js";import"./Settings01-BdGMn6lJ.js";import"./useSuspenseInfiniteQuery-Dk_AfHIX.js";import"./infiniteQueryObserver-6Sv1mY48.js";import"./Container-BU5QPEDW.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 ue(e){const t=b.c(15),{agent:i}=e,{setVirtualMcpId:u}=U();let c;t[0]!==i.id||t[1]!==u?(c=()=>{u(i.id)},t[0]=i.id,t[1]=u,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:u,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 p;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=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(pe,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=p):p=t[6];let x;t[7]!==a||t[8]!==u||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:u,onVirtualMcpChange:a,searchInputRef:f})}),t[7]=a,t[8]=u,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:[p,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:u}=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]!==u||e[9]!==l||e[10]!==n?(a=s.jsx(xe,{virtualMcps:n,selectedVirtualMcpId:l,onVirtualMcpChange:u}),e[8]=u,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 p;return e[16]!==m||e[17]!==f||e[18]!==d?(p=s.jsxs("div",{className:m,children:[f,d]}),e[16]=m,e[17]=f,e[18]=d,e[19]=p):p=e[19],p}function je(e){return s.jsx(ue,{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:u,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 p=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(u.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]!==p?(_=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, ",p,"?"]})}),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]=p,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:u}=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]!==u?(d=s.jsx(ie,{variant:"outline",onClick:u,children:"Try again"}),t[9]=u,t[10]=d):d=t[10];let p;return t[11]!==a||t[12]!==d?(p=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]=p):p=t[13],p}function Qt(){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{Qt as default};
|
package/dist/client/assets/{plugin-empty-state-CNAE295F.js → plugin-empty-state-BXGv0GDx.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as s,j as t}from"./index-
|
|
1
|
+
import{c as s,j as t}from"./index-WgRy4XEz.js";import{e as r}from"./Dataflow03-CP3uRpJJ.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-BdIJtKhO.js → plugin-empty-state-PHb3h5Mu.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,j as t,
|
|
1
|
+
import{c as a,j as t,ar as n}from"./index-WgRy4XEz.js";function r(){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{r 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-WgRy4XEz.js";import{i as R}from"./Check-BQYRNFNB.js";import{t as _}from"./ChevronDown-1tcTabrX.js";import{e as y}from"./Dataflow03-CP3uRpJJ.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,
|
|
1
|
+
import{c as w,j as s,r as S,ar as y}from"./index-WgRy4XEz.js";import{i as _}from"./Check-BQYRNFNB.js";import{t as k}from"./ChevronDown-1tcTabrX.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-WgRy4XEz.js";import{P as m}from"./project-plugins-CFsL8fat.js";import"./useQuery-C48kdbmo.js";import"./useMutation-DmgIjz65.js";import"./constants-Bbw6jN_V.js";import"./switch-CHDqnzpR.js";import"./label-meKA8koQ.js";import"./Container-BU5QPEDW.js";import"./use-connection-CfeJyAqX.js";import"./use-collections-B-x23mni.js";import"./use-binding-CAoXPeYp.js";import"./binder-D8s-h8oe.js";import"./use-install-from-registry-D80VT6Ub.js";import"./extract-connection-data-BZQA712X.js";import"./constants-BSa33005.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-DwrfZsML.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-B8ixav8o.js";import"./Plus-D4t5EG83.js";import"./select-D5UCIms-.js";import"./index-Dw9bGcxk.js";import"./Check-BQYRNFNB.js";import"./ChevronDown-1tcTabrX.js";function v(){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{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,I as $,j as c,
|
|
1
|
+
import{r as i,I as $,j as c,a_ as L,av as z,M as A,J as b,T as g,aY as _,W as j,aZ as G,a$ as w,b4 as H,b5 as K,X as W,b6 as Z,b7 as J,b8 as U,b0 as V,b1 as X,b3 as Y,c as R,v as q}from"./index-WgRy4XEz.js";var C="Popover",[E]=W(C,[w]),P=w(),[B,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(L,{...p,children:c.jsx(B,{scope:e,contentId:z(),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(_,{...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(b.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(_,{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(G,{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=Z("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 H(a)},[]),c.jsx(K,{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 J(),c.jsx(U,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(V,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(X,{"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(b.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(Y,{...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=q("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 N,j as i,r as I,E as _,u as P}from"./index-
|
|
1
|
+
import{c as x,e as N,j as i,r as I,E as _,u as P}from"./index-WgRy4XEz.js";import{u as C}from"./use-connection-CfeJyAqX.js";import{u as M}from"./constants-Bbw6jN_V.js";import{u as R}from"./use-mcp-tools-Bj_Ri2bf.js";import{M as $}from"./mcp-app-renderer-PyxYtSmQ.js";import{g as b,M as h}from"./types-BJf49Mfd.js";import"./use-collections-B-x23mni.js";import"./useMutation-DmgIjz65.js";import"./useQuery-C48kdbmo.js";import"./use-mcp-resources-7Fl5_HS_.js";const j={};function y(t){const e=x.c(10),{client:o,resourceURI:m,tool:a}=t;let n;e[0]!==o||e[1]!==a.name?(n={client:o,toolName:a.name,toolArguments:j},e[0]=o,e[1]=a.name,e[2]=n):n=e[2];const{data:l}=R(n),c=a;let s;e[3]!==c?(s={tool:c},e[3]=c,e[4]=s):s=e[4];let f;return e[5]!==o||e[6]!==m||e[7]!==s||e[8]!==l?(f=i.jsx($,{resourceURI:m,toolInfo:s,toolInput:j,toolResult:l,displayMode:"fullscreen",minHeight:h.fullscreen.minHeight,maxHeight:h.fullscreen.maxHeight,client:o,className:"h-full"}),e[5]=o,e[6]=m,e[7]=s,e[8]=l,e[9]=f):f=e[9],f}function v(t){const e=x.c(16),{connectionId:o,toolName:m}=t,{org:a}=P();let n;e[0]!==o||e[1]!==a.id?(n={connectionId:o,orgId:a.id},e[0]=o,e[1]=a.id,e[2]=n):n=e[2];const l=M(n),c=C(o),s=decodeURIComponent(m);let f,d;if(e[3]!==c?.tools||e[4]!==s){let r;e[7]!==s?(r=g=>g.name===s,e[7]=s,e[8]=r):r=e[8],d=(c?.tools??[]).find(r),f=d?._meta?b(d._meta):void 0,e[3]=c?.tools,e[4]=s,e[5]=f,e[6]=d}else f=e[5],d=e[6];const u=f;if(!c){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(!d||!u){let r;return e[10]!==s?(r=i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',s,'" not found or has no UI']})}),e[10]=s,e[11]=r):r=e[11],r}let p;return e[12]!==l||e[13]!==u||e[14]!==d?(p=i.jsx(y,{client:l,resourceURI:u,tool:d}),e[12]=l,e[13]=u,e[14]=d,e[15]=p):p=e[15],p}function D(){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:m}=N(e),a=`${o}:${m}`;let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=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]=n):n=t[1];let l;t[2]!==o||t[3]!==m?(l=i.jsx(I.Suspense,{fallback:n,children:i.jsx(v,{connectionId:o,toolName:m})}),t[2]=o,t[3]=m,t[4]=l):l=t[4];let c;return t[5]!==a||t[6]!==l?(c=i.jsx(_,{fallback:void 0,children:l},a),t[5]=a,t[6]=l,t[7]=c):c=t[7],c}export{D as default};
|