decocms 2.179.2 → 2.179.3
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-QngH9BVd.js → AlertCircle-DcuzO-dN.js} +1 -1
- package/dist/client/assets/{AlignLeft-BUW8XsMa.js → AlignLeft-DH6vJ97u.js} +1 -1
- package/dist/client/assets/{ArrowDown-Ba2t7m6d.js → ArrowDown-DrJY3Wf3.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DX2ldnBo.js → ArrowLeft-B0zQkfl0.js} +1 -1
- package/dist/client/assets/{ArrowUp-Wy3Qa9X3.js → ArrowUp-B4DKDJey.js} +1 -1
- package/dist/client/assets/{Building02-DW6RLSwU.js → Building02-B5vUKe4K.js} +1 -1
- package/dist/client/assets/{Check-CLxUgI8Z.js → Check-5nIJP_0B.js} +1 -1
- package/dist/client/assets/{CheckCircle-DDKCxiAn.js → CheckCircle-CPfAK_ok.js} +1 -1
- package/dist/client/assets/{CheckSquare-IgZnioYh.js → CheckSquare-Bd5OlGNx.js} +1 -1
- package/dist/client/assets/{CheckVerified02-Brnp4Z-Q.js → CheckVerified02-BImD45AM.js} +1 -1
- package/dist/client/assets/{ChevronDown-D0b1rvAp.js → ChevronDown-t60R5l2B.js} +1 -1
- package/dist/client/assets/{ChevronLeft-BOF7bp9d.js → ChevronLeft-lVdUD9SW.js} +1 -1
- package/dist/client/assets/{ChevronRight-BEUO8jhU.js → ChevronRight-3uKoJ2yX.js} +1 -1
- package/dist/client/assets/{ChevronUp-BWhuIqS7.js → ChevronUp-l7iXrppT.js} +1 -1
- package/dist/client/assets/{Clock-Aquumu5W.js → Clock-Cu62NiMl.js} +1 -1
- package/dist/client/assets/{Code01-_in0gxFd.js → Code01-DA4cXrzu.js} +1 -1
- package/dist/client/assets/{Container-b65PFshp.js → Container-Cvd3ILsk.js} +1 -1
- package/dist/client/assets/{Copy01-Ds0OKZs5.js → Copy01-DCmX2pvi.js} +1 -1
- package/dist/client/assets/{Dataflow03-CE4IJeUz.js → Dataflow03-SvWKmU9-.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-EK1-V4Yv.js → DotsHorizontal-DE3Ptwny.js} +1 -1
- package/dist/client/assets/{DotsVertical-Bo0fAyx-.js → DotsVertical-CZep1rYf.js} +1 -1
- package/dist/client/assets/{Download01-CN3AkzFm.js → Download01-DOZIvPhC.js} +1 -1
- package/dist/client/assets/{Edit01-BeW3IgwV.js → Edit01-Bh7u1xp-.js} +1 -1
- package/dist/client/assets/{Edit05-DDQmnS5O.js → Edit05-DwDDlBNQ.js} +1 -1
- package/dist/client/assets/{Eye-Cqad01Et.js → Eye-D3Q7o9JY.js} +1 -1
- package/dist/client/assets/{EyeOff-rTYDCZUH.js → EyeOff--TPuyP7J.js} +1 -1
- package/dist/client/assets/{File02-k_9AZvHT.js → File02-6xeEPCuC.js} +1 -1
- package/dist/client/assets/{File06-BAp2UeVQ.js → File06-BocZAjHf.js} +1 -1
- package/dist/client/assets/{FilterLines-BQVg1PzI.js → FilterLines-CUdG83Ae.js} +1 -1
- package/dist/client/assets/{Globe01-sBw0ReRO.js → Globe01-BTdgnOS2.js} +1 -1
- package/dist/client/assets/{Globe02-DlxZmkSI.js → Globe02-X8fGWI0t.js} +1 -1
- package/dist/client/assets/{Grid01-B9zEjFyx.js → Grid01-NkSMXhQ7.js} +1 -1
- package/dist/client/assets/{Home02-DsMimBHw.js → Home02-BmcJp5G2.js} +1 -1
- package/dist/client/assets/{Image01-zSA25K9S.js → Image01-RwxwuRZg.js} +1 -1
- package/dist/client/assets/{Inbox01-Bcon6dDK.js → Inbox01-B7dU6IpS.js} +1 -1
- package/dist/client/assets/{InfoCircle-CA8mfcG6.js → InfoCircle-BO2XWy7v.js} +1 -1
- package/dist/client/assets/{Key01-V3zgT2bk.js → Key01-CjhxaGrC.js} +1 -1
- package/dist/client/assets/{LayersTwo01-D3otbQFN.js → LayersTwo01-DEwkReGL.js} +1 -1
- package/dist/client/assets/{Link01-VlHez4tu.js → Link01-h9aUM7NA.js} +1 -1
- package/dist/client/assets/{LinkExternal01-vs3DKlfq.js → LinkExternal01-CmkQ0Pr-.js} +1 -1
- package/dist/client/assets/{List-D6xZGoxJ.js → List-BbeB05v1.js} +1 -1
- package/dist/client/assets/{Loading01-DQphO9Su.js → Loading01-D0sCOwf7.js} +1 -1
- package/dist/client/assets/{Lock01-Cbqd9PVH.js → Lock01-DFfVnVtc.js} +1 -1
- package/dist/client/assets/{Play-jCDYHrdu.js → Play-hGa2UcUZ.js} +1 -1
- package/dist/client/assets/{Plus-CURSuoDd.js → Plus-Dcf0Y3wA.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-oV1XFIRn.js → RefreshCcw01-BOXuamrY.js} +1 -1
- package/dist/client/assets/{Save01-CpNh-fPw.js → Save01-CA0I32a6.js} +1 -1
- package/dist/client/assets/{SearchMd-C8ADHGFY.js → SearchMd-BSRGE1t4.js} +1 -1
- package/dist/client/assets/{Settings01-B76KnDHb.js → Settings01-CCUkMwLj.js} +1 -1
- package/dist/client/assets/{Shield01-BodC6YjW.js → Shield01-BYpsgCVA.js} +1 -1
- package/dist/client/assets/{Terminal-BHkLJhoR.js → Terminal-ZymOmGb9.js} +1 -1
- package/dist/client/assets/{Tool01-DlbILfZg.js → Tool01-Doogi-IK.js} +1 -1
- package/dist/client/assets/{Trash01-CYMRq_nY.js → Trash01-Cs72bTP6.js} +1 -1
- package/dist/client/assets/{Upload01-BQ7z5iC5.js → Upload01-ByUvmqDm.js} +1 -1
- package/dist/client/assets/{Users03-DEpvReeu.js → Users03-CGvJARf5.js} +1 -1
- package/dist/client/assets/{X-BT_y3J3a.js → X-CD9ZB6hw.js} +1 -1
- package/dist/client/assets/{XClose-C-H07PEn.js → XClose-BxUlnJUs.js} +1 -1
- package/dist/client/assets/{Zap-BY3Hn1l9.js → Zap-0WHKFRes.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-DbwllQSw.js → agent-connections-preview-BEmLqtx5.js} +1 -1
- package/dist/client/assets/agent-detail-jg81y7ZA.js +2 -0
- package/dist/client/assets/agents-PmHD6Xb_.js +1 -0
- package/dist/client/assets/{ai-providers-logos-DGTpC_MW.js → ai-providers-logos-C_voEDmL.js} +1 -1
- package/dist/client/assets/{alert-dialog-BqCiJDa8.js → alert-dialog-qmvoIx9J.js} +3 -3
- package/dist/client/assets/{auth-catchall-DPwCqyhO.js → auth-catchall-ByYcT8WN.js} +1 -1
- package/dist/client/assets/automation-detail-C1-q2EzY.js +1 -0
- package/dist/client/assets/automations-C9eao1B2.js +1 -0
- package/dist/client/assets/avatar-DeGeJRAR.js +1 -0
- package/dist/client/assets/badge-Cjjl_FHP.js +1 -0
- package/dist/client/assets/{binder-CuBUxi11.js → binder-C1eSZFT4.js} +1 -1
- package/dist/client/assets/{breadcrumb-BWfepeob.js → breadcrumb-C8hDXS86.js} +1 -1
- package/dist/client/assets/{card-gfMzoGpr.js → card-CoyaoT6W.js} +1 -1
- package/dist/client/assets/{checkbox-DygphnIU.js → checkbox-D5DFx9da.js} +1 -1
- package/dist/client/assets/{collapsible-BJo6q_NJ.js → collapsible-DcaWkNTt.js} +1 -1
- package/dist/client/assets/{collection-detail-fTigPh-V.js → collection-detail-Dsgpohom.js} +3 -3
- package/dist/client/assets/{collection-display-button-C42ZnuS7.js → collection-display-button-BcIJp1SX.js} +1 -1
- package/dist/client/assets/{collection-search-Dzoe9W56.js → collection-search-nKZEJ_r3.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Bka5CUqj.js → collection-table-wrapper-Bq15EL3p.js} +1 -1
- package/dist/client/assets/{collection-tabs-D9qLvNTu.js → collection-tabs-qLP6ozkD.js} +1 -1
- package/dist/client/assets/{command-D_HBfmpj.js → command-Bk-fXiVb.js} +1 -1
- package/dist/client/assets/connection-card-BYUbg7iO.js +1 -0
- package/dist/client/assets/connection-detail-Zdtj4TKi.js +1 -0
- package/dist/client/assets/connections-CMaQr-QY.js +1 -0
- package/dist/client/assets/{constants-D5QZg84_.js → constants-DclZTqHf.js} +1 -1
- package/dist/client/assets/{context-CGMT963w.js → context-BFi-zuf6.js} +12 -12
- package/dist/client/assets/{create-organization-dialog-CeMf7qju.js → create-organization-dialog-pXQ89_sr.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Bs_mS8aj.js → create-project-dialog-M-dgrV_c.js} +1 -1
- package/dist/client/assets/{danger-gTdMMqBl.js → danger-DqsrtWLB.js} +1 -1
- package/dist/client/assets/{danger-zone-BE94J4G-.js → danger-zone-BhDM5wIc.js} +1 -1
- package/dist/client/assets/{dependencies-DQ9gMDrw.js → dependencies-CPYZFhhf.js} +1 -1
- package/dist/client/assets/dialog-DzGwvQ_K.js +1 -0
- package/dist/client/assets/drawer-CAX2URBi.js +1 -0
- package/dist/client/assets/{dropdown-menu-DE2pKopg.js → dropdown-menu-BcNYk9_F.js} +1 -1
- package/dist/client/assets/dynamic-plugin-layout-D0dkPO22.js +1 -0
- package/dist/client/assets/editable-task-title-BR-xQ-UT.js +16 -0
- package/dist/client/assets/{empty-state-BjCXvoyS.js → empty-state-BuGXY27l.js} +1 -1
- package/dist/client/assets/{empty-state-Bk9Z7Q-U.js → empty-state-CGSu9IQ9.js} +1 -1
- package/dist/client/assets/{env-vars-editor-BjeFjhEe.js → env-vars-editor-VoVbIy9n.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CZxT3XNH.js → extract-connection-data-DhU56Zd0.js} +1 -1
- package/dist/client/assets/{file-browser-C4MCCicp.js → file-browser-DIaRK0us.js} +2 -2
- package/dist/client/assets/{form-tOTNzCZe.js → form-DBjkdSps.js} +1 -1
- package/dist/client/assets/{general-DOjbT8YE.js → general-DCfBGmuh.js} +1 -1
- package/dist/client/assets/{generate-id-kfQDJb0K.js → generate-id-DRuK_WRM.js} +1 -1
- package/dist/client/assets/{grid-view-CM2kDBxz.js → grid-view-DsY2qZrB.js} +1 -1
- package/dist/client/assets/{home-rO4pkzPH.js → home-C52P_wmy.js} +1 -1
- package/dist/client/assets/{index-BLtI6TU9.js → index-BLNBD7Tl.js} +1 -1
- package/dist/client/assets/index-BObCXgKJ.js +1 -0
- package/dist/client/assets/{index-DyL93sTY.js → index-BzPzEjOV.js} +1 -1
- package/dist/client/assets/index-COFAW4F5.js +1 -0
- package/dist/client/assets/index-CubWD7-P.css +1 -0
- package/dist/client/assets/index-DMmNh7jR.js +218 -0
- package/dist/client/assets/index-DYAF-Vgt.js +1 -0
- package/dist/client/assets/index-DiczHAor.js +1 -0
- package/dist/client/assets/{index-DjVQ8cwy.js → index-Dumm3WtY.js} +2 -2
- package/dist/client/assets/{index-Bwlq4qOs.js → index-PFtbLrE4.js} +1 -1
- package/dist/client/assets/{index-DiHcYCxZ.js → index-bHgla3gL.js} +1 -1
- package/dist/client/assets/index-hmkE8HuP.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-XS4LWR6q.js → infiniteQueryObserver-CZ8w6Ao-.js} +1 -1
- package/dist/client/assets/input-Bt_nejZh.js +1 -0
- package/dist/client/assets/{integration-icon-C9GR_8Ea.js → integration-icon-Dyr7fOYU.js} +1 -1
- package/dist/client/assets/{label-DJvdRQ2A.js → label-DTNkd20e.js} +1 -1
- package/dist/client/assets/layout-Ck4QNb1R.js +1 -0
- package/dist/client/assets/{layout-10Sxtyop.js → layout-VG2uM_nk.js} +1 -1
- package/dist/client/assets/login-x4JJuKeA.js +1 -0
- package/dist/client/assets/{logo-upload-iqCQyRXD.js → logo-upload-7WcycT9q.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C3qFwvPf.js → mcp-app-renderer-hLmmzHl_.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DCDS8v4f.js → mcp-server-card-CwYAe4vO.js} +1 -1
- package/dist/client/assets/mcp-server-detail-CjZvaa-f.js +2 -0
- package/dist/client/assets/{members-CykhAYWe.js → members-Sgl6kVS6.js} +1 -1
- package/dist/client/assets/{monaco-editor-DQf5JSy_.js → monaco-editor-BS1-hh4n.js} +4 -4
- package/dist/client/assets/monitoring-DWB-fw7M.js +4 -0
- package/dist/client/assets/monitoring-dashboard-edit-DdNrWKBz.js +1 -0
- package/dist/client/assets/{monitoring-dashboard-view-CXCG5P_H.js → monitoring-dashboard-view-BUxqPLpn.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-BfoeteQX.js → monitoring-stats-row-CiWvBCYV.js} +2 -2
- package/dist/client/assets/{oauth-callback-CXrwzvh_.js → oauth-callback-7ed5Z9Xs.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-bQZvbhnr.js → oauth-callback-ai-provider-qEm-Q5-E.js} +1 -1
- package/dist/client/assets/{org-ai-providers-4gYTufEL.js → org-ai-providers-CUAlOa9f.js} +1 -1
- package/dist/client/assets/page-BQl7Ie3w.js +1 -0
- package/dist/client/assets/page-DfQnSuW1.js +1 -0
- package/dist/client/assets/{plugin-empty-state-cb7GbeKy.js → plugin-empty-state-DUosCqGd.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CEvZCNFj.js → plugin-empty-state-qFDP0Nr2.js} +1 -1
- package/dist/client/assets/{plugin-header-C4ZfQdcs.js → plugin-header-BeGFVTX4.js} +1 -1
- package/dist/client/assets/{plugin-header-Do_HgCfI.js → plugin-header-CJlxZY-i.js} +1 -1
- package/dist/client/assets/plugins-CzL725OF.js +1 -0
- package/dist/client/assets/popover-CF2iI6mL.js +1 -0
- package/dist/client/assets/project-app-view-lqZ02NJN.js +1 -0
- package/dist/client/assets/project-layout-CBbKmowd.js +1 -0
- package/dist/client/assets/{project-plugins-C18qk0lc.js → project-plugins-DqmH9sWQ.js} +1 -1
- package/dist/client/assets/{projects-list-CtvT2y9h.js → projects-list-Bz_1RhAg.js} +1 -1
- package/dist/client/assets/{registry-layout-Cvu5zKVR.js → registry-layout-6H7s-msc.js} +2 -2
- package/dist/client/assets/{registry-utils-Bx7--rIH.js → registry-utils-DZHZD5gP.js} +1 -1
- package/dist/client/assets/{reset-password-CSswd9M3.js → reset-password-3HgT81EI.js} +1 -1
- package/dist/client/assets/{resizable-B0HQ1vuq.js → resizable-BwEPpKFX.js} +1 -1
- package/dist/client/assets/{save-actions-BxTuQTa4.js → save-actions-Z-_7bu1u.js} +1 -1
- package/dist/client/assets/scroll-area-CwrVaRUF.js +1 -0
- package/dist/client/assets/select-hHfKwVbN.js +1 -0
- package/dist/client/assets/select-virtual-mcp-DsImheli.js +1 -0
- package/dist/client/assets/shell-layout-Bh0wZbL8.js +3 -0
- package/dist/client/assets/{sidebar-settings-pZmI7pGH.js → sidebar-settings-U5rAu7py.js} +1 -1
- package/dist/client/assets/{skeleton-NLo71_Sb.js → skeleton-BvrwcS3X.js} +1 -1
- package/dist/client/assets/spinner-CSLYV8gq.js +1 -0
- package/dist/client/assets/{store-invite-CP9PWG-2.js → store-invite-z_eVOBRF.js} +1 -1
- package/dist/client/assets/switch-CoYIum7D.js +1 -0
- package/dist/client/assets/{table-BK1bAac3.js → table-BSLV9H8I.js} +1 -1
- package/dist/client/assets/tabs-sTqc1_U2.js +1 -0
- package/dist/client/assets/{task-status-DCsPkppQ.js → task-status-CrO2oj_v.js} +37 -37
- package/dist/client/assets/tasks-CazLoC59.js +1 -0
- package/dist/client/assets/tasks-panel-DBJx0hs6.js +1 -0
- package/dist/client/assets/textarea-CgJ5x-hs.js +1 -0
- package/dist/client/assets/{time-range-picker-CEhZhu7c.js → time-range-picker-BCm8UHQI.js} +1 -1
- package/dist/client/assets/toggle-group-C20N8vss.js +1 -0
- package/dist/client/assets/{tools-list-DGVVcYEB.js → tools-list-JehNbMf9.js} +1 -1
- package/dist/client/assets/tooltip-DHJtaI_Z.js +1 -0
- package/dist/client/assets/{topbar-portal-DLbOrsQP.js → topbar-portal-jewy4fLu.js} +1 -1
- package/dist/client/assets/{types-BOmhR0hZ.js → types-BtTmvTe4.js} +1 -1
- package/dist/client/assets/{use-automations-CPlNdxed.js → use-automations-D-X6Oij9.js} +1 -1
- package/dist/client/assets/{use-collections-Le9CzDbY.js → use-collections-DhavVshD.js} +1 -1
- package/dist/client/assets/{use-connection-CNeKPAtP.js → use-connection-CVlyXslk.js} +1 -1
- package/dist/client/assets/{use-copy-CR_0d0zs.js → use-copy-DkDz3lds.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BOxl7MdZ.js → use-create-virtual-mcp-DZAv89rZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CbBHKCjw.js → use-infinite-scroll-j2WybGGN.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-Ckutd61H.js → use-install-from-registry-Ch6GOwHv.js} +1 -1
- package/dist/client/assets/{use-list-state-DrSbpG8C.js → use-list-state-Baq-X1EV.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D4XXlnov.js → use-mcp-prompts-BDRKUj7D.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-BueR0w1E.js → use-mcp-resources-BxIahbOo.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CFyULGGP.js → use-mcp-tools-kv4r4Zvn.js} +1 -1
- package/dist/client/assets/{use-members-Bgz9FSqE.js → use-members-Coq2XO1k.js} +1 -1
- package/dist/client/assets/{use-project-RpN1fut9.js → use-project-XBmxO4XX.js} +1 -1
- package/dist/client/assets/{use-store-discovery-BS96E_Li.js → use-store-discovery-D-xa6Q86.js} +1 -1
- package/dist/client/assets/use-view-mode-CdGajc1j.js +1 -0
- package/dist/client/assets/{use-virtual-mcp-DGT5zflo.js → use-virtual-mcp-DCxXK_bv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-H-W7n7En.js +1 -0
- package/dist/client/assets/{useMutation-Betr8yis.js → useMutation-DrLoVqQ7.js} +1 -1
- package/dist/client/assets/useQuery-B-AaJTeZ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Czq4y4BP.js +1 -0
- package/dist/client/assets/{user-ChA79mrb.js → user-8V0wpye0.js} +1 -1
- package/dist/client/assets/workflow-Bb3JE-XH.js +1 -0
- package/dist/client/index.html +3 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/pg-cloudflare/README.md +112 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +31 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +152 -0
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/dist/server/node_modules/pg-cloudflare/package.json +39 -0
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +166 -0
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/dist/server/node_modules/pg-connection-string/LICENSE +21 -0
- package/dist/server/node_modules/pg-connection-string/README.md +105 -0
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/dist/server/node_modules/pg-connection-string/index.d.ts +36 -0
- package/dist/server/node_modules/pg-connection-string/index.js +231 -0
- package/dist/server/node_modules/pg-connection-string/package.json +52 -0
- package/dist/server/node_modules/pg-pool/LICENSE +21 -0
- package/dist/server/node_modules/pg-pool/README.md +357 -0
- package/dist/server/node_modules/pg-pool/esm/index.mjs +5 -0
- package/dist/server/node_modules/pg-pool/index.js +517 -0
- package/dist/server/node_modules/pg-pool/package.json +51 -0
- package/dist/server/node_modules/pg-protocol/LICENSE +21 -0
- package/dist/server/node_modules/pg-protocol/README.md +3 -0
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js +23 -0
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +15 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +16 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +81 -0
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +530 -0
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +6 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js +15 -0
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +162 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js +160 -0
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +252 -0
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +24 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js +324 -0
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +189 -0
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/dist/server/node_modules/pg-protocol/esm/index.js +11 -0
- package/dist/server/node_modules/pg-protocol/package.json +45 -0
- package/dist/server/node_modules/pg-protocol/src/b.ts +25 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +85 -0
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +575 -0
- package/dist/server/node_modules/pg-protocol/src/index.ts +11 -0
- package/dist/server/node_modules/pg-protocol/src/messages.ts +262 -0
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +276 -0
- package/dist/server/node_modules/pg-protocol/src/parser.ts +413 -0
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +274 -0
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +1 -0
- package/dist/server/node_modules/pg-types/.travis.yml +7 -0
- package/dist/server/node_modules/pg-types/Makefile +14 -0
- package/dist/server/node_modules/pg-types/README.md +75 -0
- package/dist/server/node_modules/pg-types/index.d.ts +137 -0
- package/dist/server/node_modules/pg-types/index.js +47 -0
- package/dist/server/node_modules/pg-types/index.test-d.ts +21 -0
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/dist/server/node_modules/pg-types/lib/builtins.js +73 -0
- package/dist/server/node_modules/pg-types/lib/textParsers.js +215 -0
- package/dist/server/node_modules/pg-types/package.json +42 -0
- package/dist/server/node_modules/pg-types/test/index.js +24 -0
- package/dist/server/node_modules/pg-types/test/types.js +597 -0
- package/dist/server/node_modules/pgpass/README.md +74 -0
- package/dist/server/node_modules/pgpass/lib/helper.js +233 -0
- package/dist/server/node_modules/pgpass/lib/index.js +23 -0
- package/dist/server/node_modules/pgpass/package.json +41 -0
- package/dist/server/node_modules/postgres-array/index.d.ts +4 -0
- package/dist/server/node_modules/postgres-array/index.js +97 -0
- package/dist/server/node_modules/postgres-array/license +21 -0
- package/dist/server/node_modules/postgres-array/package.json +35 -0
- package/dist/server/node_modules/postgres-array/readme.md +43 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/postgres-date/license +21 -0
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/postgres-interval/license +21 -0
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/node_modules/xtend/.jshintrc +30 -0
- package/dist/server/node_modules/xtend/LICENSE +20 -0
- package/dist/server/node_modules/xtend/README.md +32 -0
- package/dist/server/node_modules/xtend/immutable.js +19 -0
- package/dist/server/node_modules/xtend/mutable.js +17 -0
- package/dist/server/node_modules/xtend/package.json +55 -0
- package/dist/server/node_modules/xtend/test.js +103 -0
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/LayoutLeft-CbUmiI7I.js +0 -1
- package/dist/client/assets/agent-detail-DqMa-yjy.js +0 -2
- package/dist/client/assets/agents-DXD0J3OW.js +0 -1
- package/dist/client/assets/automation-detail-bmoX3GK-.js +0 -1
- package/dist/client/assets/automations-Dp1WjxxK.js +0 -1
- package/dist/client/assets/avatar-BoRF-Me1.js +0 -1
- package/dist/client/assets/badge-DIWKuwVU.js +0 -1
- package/dist/client/assets/connection-card-DuHVLZ35.js +0 -1
- package/dist/client/assets/connection-detail-vcbLbssZ.js +0 -1
- package/dist/client/assets/connections-14pDMsUe.js +0 -1
- package/dist/client/assets/dialog-B8WS5FOh.js +0 -1
- package/dist/client/assets/dynamic-plugin-layout-yMvA298P.js +0 -1
- package/dist/client/assets/editable-task-title-oggBOZ_d.js +0 -16
- package/dist/client/assets/index-B09Yemt1.js +0 -1
- package/dist/client/assets/index-CAsAeYNN.css +0 -1
- package/dist/client/assets/index-CMImT9Gt.js +0 -1
- package/dist/client/assets/index-D-6rbOIG.js +0 -1
- package/dist/client/assets/index-DnJ6a24w.js +0 -218
- package/dist/client/assets/index-hCeFdkUk.js +0 -1
- package/dist/client/assets/index-qrpgIqks.js +0 -1
- package/dist/client/assets/input-BBKBJVKe.js +0 -1
- package/dist/client/assets/layout-BjyFY_1R.js +0 -1
- package/dist/client/assets/login-ClPbfjlJ.js +0 -1
- package/dist/client/assets/mcp-server-detail-lOR_wUNJ.js +0 -2
- package/dist/client/assets/monitoring-BPuhRE0m.js +0 -4
- package/dist/client/assets/monitoring-dashboard-edit-BVtLOBNe.js +0 -1
- package/dist/client/assets/page-CCXJyUyN.js +0 -1
- package/dist/client/assets/page-DB3QLlpA.js +0 -1
- package/dist/client/assets/plugins-pEgOY1Nz.js +0 -1
- package/dist/client/assets/popover-vDURg2rv.js +0 -1
- package/dist/client/assets/project-app-view-DfCIvrF7.js +0 -1
- package/dist/client/assets/project-layout-CkMdq05b.js +0 -1
- package/dist/client/assets/scroll-area-dsTSFUPi.js +0 -1
- package/dist/client/assets/select-Bbaj2HCW.js +0 -1
- package/dist/client/assets/select-virtual-mcp-CZJoA7HG.js +0 -1
- package/dist/client/assets/sheet-B_-2ygzJ.js +0 -1
- package/dist/client/assets/shell-layout-Ca5Bbhzi.js +0 -3
- package/dist/client/assets/spinner-EdHFCjIL.js +0 -1
- package/dist/client/assets/switch-bfk4EFAk.js +0 -1
- package/dist/client/assets/tabs-aIY_aIUV.js +0 -1
- package/dist/client/assets/tasks-Dw1i-69W.js +0 -1
- package/dist/client/assets/tasks-panel-CEAgXi7r.js +0 -1
- package/dist/client/assets/textarea-lF0m7xkk.js +0 -1
- package/dist/client/assets/toggle-group-Dak-s1p3.js +0 -1
- package/dist/client/assets/tooltip-Csc3oeTz.js +0 -1
- package/dist/client/assets/use-mobile-Y3tADOOl.js +0 -1
- package/dist/client/assets/use-view-mode-BeRbE5Df.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ChOuKh6v.js +0 -1
- package/dist/client/assets/useQuery-mzOsnjYJ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DFs2FFlW.js +0 -1
- package/dist/client/assets/workflow-CBDfcQFP.js +0 -1
- package/dist/server/node_modules/pg/README.md +0 -95
- package/dist/server/node_modules/pg/esm/index.mjs +0 -20
- package/dist/server/node_modules/pg/lib/client.js +0 -743
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -171
- package/dist/server/node_modules/pg/lib/connection.js +0 -221
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +0 -122
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -212
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -43
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -89
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -91
- package/dist/server/node_modules/pg/lib/index.js +0 -73
- package/dist/server/node_modules/pg/lib/native/client.js +0 -323
- package/dist/server/node_modules/pg/lib/native/index.js +0 -2
- package/dist/server/node_modules/pg/lib/native/query.js +0 -165
- package/dist/server/node_modules/pg/lib/query.js +0 -252
- package/dist/server/node_modules/pg/lib/result.js +0 -109
- package/dist/server/node_modules/pg/lib/stream.js +0 -83
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -217
- package/dist/server/node_modules/pg/package.json +0 -76
- /package/dist/server/node_modules/{pg → pg-cloudflare}/LICENSE +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h}from"./index-
|
|
1
|
+
import{r as h}from"./index-DMmNh7jR.js";var w=(o,i,l,s,c,t,m,d)=>{let r=document.documentElement,u=["light","dark"];function n(e){(Array.isArray(o)?o:[o]).forEach(a=>{let p=a==="class",S=p&&t?c.map(f=>t[f]||f):c;p?(r.classList.remove(...S),r.classList.add(t&&t[e]?t[e]:e)):r.setAttribute(a,e)}),y(e)}function y(e){d&&u.includes(e)&&(r.style.colorScheme=e)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)n(s);else try{let e=localStorage.getItem(i)||l,a=m&&e==="system"?g():e;n(a)}catch{}};h.createContext(void 0);h.memo(({forcedTheme:o,storageKey:i,attribute:l,enableSystem:s,enableColorScheme:c,defaultTheme:t,value:m,themes:d,nonce:r,scriptProps:u})=>{let n=JSON.stringify([l,i,t,o,d,m,s,c]).slice(1,-1);return h.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?r:"",dangerouslySetInnerHTML:{__html:`(${w.toString()})(${n})`}})});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as i,L as l,O as u,P as n,V as C,a as c,h as P,i as p,b as m,p as M,s as E,u as L}from"./index-
|
|
1
|
+
import{C as i,L as l,O as u,P as n,V as C,a as c,h as P,i as p,b as m,p as M,s as E,u as L}from"./index-DMmNh7jR.js";import{E as T,b as g,a as O,c as S,u as x,d as _,e as R}from"./use-collections-DhavVshD.js";import{u as y,a as b,b as A}from"./use-connection-CVlyXslk.js";import{S as e}from"./constants-DclZTqHf.js";import{K as I,a as h,W as V,c as U,g as K,b as W,d as N,e as Q,i as w,u as F,f as Y}from"./constants-DclZTqHf.js";import{u as G,a as k,b as v,c as B,d as H}from"./use-mcp-tools-kv4r4Zvn.js";import{l as q,r as z,u as X,a as Z,b as $}from"./use-mcp-resources-BxIahbOo.js";import{g as es,l as as,u as ts,a as os}from"./use-mcp-prompts-BDRKUj7D.js";import{u as is,a as ls,b as us}from"./use-virtual-mcp-DCxXK_bv.js";import{A as Cs,D as cs}from"./decopilot-events-Brt4gAR6.js";import{D as ps,a as ms,c as Ms,e as Es,g as Ls,s as ds}from"./usage-BW6ztpN6.js";import"./useMutation-DrLoVqQ7.js";import"./useQuery-B-AaJTeZ.js";export{Cs as ALL_DECOPILOT_EVENT_TYPES,i as ConnectionEntitySchema,cs as DECOPILOT_EVENTS,ps as DEFAULT_MODEL_PREFERENCES,T as EMPTY_COLLECTION_LIST_RESULT,I as KEYS,l as Locator,u as ORG_ADMIN_PROJECT_SLUG,n as ProjectContextProvider,h as SELF_MCP_ALIAS_ID,e as StreamableHTTPClientTransport,C as VirtualMCPEntitySchema,V as WellKnownOrgMCPId,ms as addUsage,c as authenticateMcp,g as buildCollectionQueryKey,O as buildOrderByExpression,S as buildWhereExpression,Ms as calculateUsageStats,U as createMCPClient,Es as emptyUsageStats,Ls as getCostFromUsage,K as getDecopilotId,es as getPrompt,W as getWellKnownCommunityRegistryConnection,N as getWellKnownDecopilotVirtualMCP,Q as getWellKnownRegistryConnection,P as handleOAuthCallback,p as isConnectionAuthenticated,w as isDecopilot,m as isStdioParameters,as as listPrompts,q as listResources,M as parseVirtualUrl,z as readResource,ds as selectDefaultModel,E as setOAuthRedirectOrigin,x as useCollectionActions,_ as useCollectionItem,R as useCollectionList,y as useConnection,b as useConnectionActions,A as useConnections,F as useMCPClient,Y as useMCPClientOptional,ts as useMCPPromptsList,os as useMCPPromptsListQuery,X as useMCPReadResource,Z as useMCPResourcesList,$ as useMCPResourcesListQuery,G as useMCPToolCall,k as useMCPToolCallMutation,v as useMCPToolCallQuery,B as useMCPToolsList,H as useMCPToolsListQuery,L as useProjectContext,is as useVirtualMCP,ls as useVirtualMCPActions,us as useVirtualMCPs};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,a9 as q,aA as R,ab as Ee,af as ke,ag as Se,ac as xe,aB as j}from"./index-DMmNh7jR.js";var de=1,Ie=.9,Ce=.8,Re=.17,Q=.1,Z=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Z,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Z,I.length))):(h*=Re,u>0&&(h*=Math.pow(Z,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Q&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Q>h&&(h=x*Q)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:U=!1,vimBindings:A=!0,...B}=t,H=q(),ne=q(),N=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")J(),W(),w(1,G);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(N);y?y.focus():(a=document.getElementById(H))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),T=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{J(),W(),r.current.value||G(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{J(),s?.getAttribute("id")===e&&G(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:H,inputId:N,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),O=m.getAttribute("id");return((g=e.get(O))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function G(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function J(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],O=le(S,y);r.current.filtered.items.set(g,O),O>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function X(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function Y(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?Ne(s,V):Te(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):Y(e)}let ie=()=>X(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):Y(1)},ce=e=>{e.preventDefault(),e.metaKey?X(0):e.altKey?ue(-1):Y(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...B,"cmdk-root":"",onKeyDown:e=>{var o;(o=B.onKeyDown)==null||o.call(B,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),X(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:T.inputId,id:T.labelId,style:Je},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:T},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;U(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function U(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:B,onSelect:H,forceMount:ne,keywords:N,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:U,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Be=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Oe=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Ue=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),He=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Ye=Object.assign(be,{List:Oe,Item:Ve,Input:Be,Group:je,Separator:Le,Dialog:ze,Empty:Ue,Loading:He});function Ne(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Te(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ge(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ge(l),{ref:l.ref},r(l.props.children)):r(l)}var Je={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Ye as _};
|
package/dist/client/assets/{infiniteQueryObserver-XS4LWR6q.js → infiniteQueryObserver-CZ8w6Ao-.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ak as d,ap as f,aq as v,ar as b}from"./index-DMmNh7jR.js";var N=class extends d{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:f()})}getOptimisticResult(e){return e.behavior=f(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:P,isError:c,isRefetchError:g}=i,r=s.fetchMeta?.fetchMore?.direction,h=c&&r==="forward",o=a&&r==="forward",n=c&&r==="backward",u=a&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:b(t,s.data),hasPreviousPage:v(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:u,isRefetchError:g&&!h&&!n,isRefetching:P&&!o&&!u}}};export{N as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as s,D as a,j as d}from"./index-DMmNh7jR.js";function f(l){const e=s.c(10);let i,r,t;e[0]!==l?({className:i,type:t,...r}=l,e[0]=l,e[1]=i,e[2]=r,e[3]=t):(i=e[1],r=e[2],t=e[3]);let n;e[4]!==i?(n=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-lg border bg-transparent px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] bg-background","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==n||e[8]!==t?(o=d.jsx("input",{type:t,"data-slot":"input",className:n,...r}),e[6]=r,e[7]=n,e[8]=t,e[9]=o):o=e[9],o}export{f as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as z,j as h,r as L,D as v}from"./index-
|
|
1
|
+
import{c as z,j as h,r as L,D as v}from"./index-DMmNh7jR.js";import{n as k}from"./Container-Cvd3ILsk.js";const C={"2xs":"h-4 w-4",xs:"h-6 w-6",sm:"h-9 w-9",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-14 w-14"},y={"2xs":"min-w-4",xs:"min-w-6",sm:"min-w-9",md:"min-w-12",lg:"min-w-16",xl:"min-w-14"},A={"2xs":8,xs:12,sm:16,md:24,lg:32,xl:28};function $(g){const e=z.c(7),{icon:s,name:o,size:x,className:n,fallbackIcon:l}=g,t=x===void 0?"md":x,u=s??"no-icon";let c;return e[0]!==n||e[1]!==l||e[2]!==s||e[3]!==o||e[4]!==t||e[5]!==u?(c=h.jsx(D,{icon:s,name:o,size:t,className:n,fallbackIcon:l},u),e[0]=n,e[1]=l,e[2]=s,e[3]=o,e[4]=t,e[5]=u,e[6]=c):c=e[6],c}function D(g){const e=z.c(24),{icon:s,name:o,size:x,className:n,fallbackIcon:l}=g,t=x===void 0?"md":x,[u,c]=L.useState(!1),_=!!s&&u,j=C[t],b=y[t];let i;e[0]!==n||e[1]!==j||e[2]!==b?(i=v("rounded-lg border border-border shrink-0 overflow-hidden aspect-square",j,b,n),e[0]=n,e[1]=j,e[2]=b,e[3]=i):i=e[3];const p=s||void 0,E=!_&&"hidden";let r;e[4]!==E?(r=v("h-full w-full object-cover",E),e[4]=E,e[5]=r):r=e[5];let w,I;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=()=>c(!1),I=()=>c(!0),e[6]=w,e[7]=I):(w=e[6],I=e[7]);let a;e[8]!==o||e[9]!==p||e[10]!==r?(a=h.jsx("img",{src:p,alt:o,className:r,onError:w,onLoad:I}),e[8]=o,e[9]=p,e[10]=r,e[11]=a):a=e[11];const N=_&&"hidden";let m;e[12]!==N?(m=v("h-full w-full flex items-center justify-center bg-muted/20",N),e[12]=N,e[13]=m):m=e[13];let d;e[14]!==l||e[15]!==t?(d=l??h.jsx(k,{size:A[t],className:"text-muted-foreground"}),e[14]=l,e[15]=t,e[16]=d):d=e[16];let f;e[17]!==m||e[18]!==d?(f=h.jsx("div",{className:m,children:d}),e[17]=m,e[18]=d,e[19]=f):f=e[19];let S;return e[20]!==a||e[21]!==f||e[22]!==i?(S=h.jsxs("div",{className:i,children:[a,f]}),e[20]=a,e[21]=f,e[22]=i,e[23]=S):S=e[23],S}export{$ as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as n,D as r,j as i,aj as p}from"./index-DMmNh7jR.js";function c(l){const e=n.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=i.jsx(p,{"data-slot":"label",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}export{c as L};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t,a6 as ie,c as W,au as re,e as ae,g as ne,D as X,r as Y,u as ce,G as q,O as K,av as me,P as de}from"./index-DMmNh7jR.js";import{S as M}from"./skeleton-BvrwcS3X.js";import{u as fe}from"./use-project-XBmxO4XX.js";import{i as xe,P as d}from"./index-DYAF-Vgt.js";import{b as w,d as Q,B as ee,a as te,e as V,c as se}from"./breadcrumb-C8hDXS86.js";import{i as je}from"./ArrowLeft-B0zQkfl0.js";import{n as he}from"./Container-Cvd3ILsk.js";import{t as ue}from"./Settings01-CCUkMwLj.js";import{i as pe}from"./Zap-0WHKFRes.js";import"./useQuery-B-AaJTeZ.js";import"./constants-DclZTqHf.js";import"./useMutation-DrLoVqQ7.js";import"./tooltip-DHJtaI_Z.js";import"./index-COFAW4F5.js";import"./X-CD9ZB6hw.js";import"./ChevronRight-3uKoJ2yX.js";const oe=[{key:"general",label:"General",icon:t.jsx(ue,{size:14})},{key:"dependencies",label:"Connections",icon:t.jsx(he,{size:14})},{key:"sidebar",label:"Sidebar",icon:t.jsx(xe,{size:14})},{key:"plugins",label:"Features",icon:t.jsx(pe,{size:14})},{key:"danger",label:"Danger Zone",icon:t.jsx(ie,{size:14})}];function ge(e){const s=W.c(10),{onNavigate:r}=e,{location:n}=re(),$=ae();let a;s[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},s[0]=a):a=s[0];const f=ne(a);let x;s[1]!==$||s[2]!==r||s[3]!==f?(x=i=>{const j=`/${f.org}/${f.project}/settings/${i}`;$({href:j}),r?.(i)},s[1]=$,s[2]=r,s[3]=f,s[4]=x):x=s[4];const l=x;let c;s[5]!==l||s[6]!==n?(c=oe.map(i=>{const j=n.pathname.endsWith(`/settings/${i.key}`);return t.jsxs("button",{type:"button",onClick:()=>l(i.key),className:X("flex items-center gap-2.5 px-2 py-1.5 rounded-md text-sm text-left w-full transition-colors",j?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[t.jsx("span",{className:"shrink-0",children:i.icon}),t.jsx("span",{className:"truncate",children:i.label})]},i.key)}),s[5]=l,s[6]=n,s[7]=c):c=s[7];let o;return s[8]!==c?(o=t.jsx("div",{className:"w-full sm:w-52 shrink-0 sm:border-r border-border bg-sidebar/50 overflow-y-auto py-3 flex flex-col gap-0.5 px-2 flex-1",children:c}),s[8]=c,s[9]=o):o=s[9],o}function le(){const e=W.c(3);let s,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(M,{className:"h-6 w-48"}),r=t.jsx(M,{className:"h-4 w-80"}),e[0]=s,e[1]=r):(s=e[0],r=e[1]);let n;return e[2]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsxs("div",{className:"flex flex-col gap-4 pt-2",children:[s,r,t.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[t.jsx(M,{className:"h-12 w-full"}),t.jsx(M,{className:"h-12 w-full"})]})]}),e[2]=n):n=e[2],n}function be(){const e=W.c(60);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[0]=s):s=e[0];const r=ne(s),{org:n}=ce(),$=r.project,{location:a}=re(),[f,x]=Y.useState(!0),{data:l,isLoading:c}=fe(n.id,$);let o;e[1]!==a?(o=oe.find(m=>a.pathname.endsWith(`/settings/${m.key}`)),e[1]=a,e[2]=o):o=e[2];const j=o?.label??"Settings";if(c||!l){let m;e[3]!==r.org?(m=t.jsx(w,{children:t.jsx(Q,{asChild:!0,children:t.jsx(q,{to:"/$org/$project/projects",params:{org:r.org,project:K},children:"Projects"})})}),e[3]=r.org,e[4]=m):m=e[4];let H;e[5]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsx(V,{}),e[5]=H):H=e[5];let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(w,{children:t.jsx(se,{children:"Settings"})}),e[6]=T):T=e[6];let k;e[7]!==m?(k=t.jsx(d.Header,{children:t.jsx(d.Header.Left,{children:t.jsx(ee,{children:t.jsxs(te,{children:[m,H,T]})})})}),e[7]=m,e[8]=k):k=e[8];let A;e[9]===Symbol.for("react.memo_cache_sentinel")?(A=t.jsx(d.Content,{children:t.jsx("div",{className:"p-8",children:t.jsx(le,{})})}),e[9]=A):A=e[9];let D;return e[10]!==k?(D=t.jsxs(d,{children:[k,A]}),e[10]=k,e[11]=D):D=e[11],D}const F=l.slug===K;let C;e[12]!==l.description||e[13]!==l.enabledPlugins||e[14]!==l.id||e[15]!==l.name||e[16]!==l.organizationId||e[17]!==l.slug||e[18]!==l.ui||e[19]!==F?(C={id:l.id,organizationId:l.organizationId,slug:l.slug,name:l.name,description:l.description,enabledPlugins:l.enabledPlugins,ui:l.ui,isOrgAdmin:F},e[12]=l.description,e[13]=l.enabledPlugins,e[14]=l.id,e[15]=l.name,e[16]=l.organizationId,e[17]=l.slug,e[18]=l.ui,e[19]=F,e[20]=C):C=e[20];const J=C;let h;e[21]!==r.org?(h=t.jsx(w,{children:t.jsx(Q,{asChild:!0,children:t.jsx(q,{to:"/$org/$project/projects",params:{org:r.org,project:K},children:"Projects"})})}),e[21]=r.org,e[22]=h):h=e[22];let z;e[23]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx(V,{}),e[23]=z):z=e[23];let u;e[24]!==r.org||e[25]!==l.slug?(u={org:r.org,project:l.slug},e[24]=r.org,e[25]=l.slug,e[26]=u):u=e[26];let p;e[27]!==l.name||e[28]!==u?(p=t.jsx(w,{children:t.jsx(Q,{asChild:!0,children:t.jsx(q,{to:"/$org/$project",params:u,children:l.name})})}),e[27]=l.name,e[28]=u,e[29]=p):p=e[29];let I;e[30]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(V,{}),e[30]=I):I=e[30];let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(w,{children:t.jsx(se,{children:"Settings"})}),e[31]=L):L=e[31];let g;e[32]!==h||e[33]!==p?(g=t.jsx(d.Header,{children:t.jsx(d.Header.Left,{children:t.jsx(ee,{children:t.jsxs(te,{children:[h,z,p,I,L]})})})}),e[32]=h,e[33]=p,e[34]=g):g=e[34];const U=f?"hidden":"flex";let b;e[35]!==U?(b=X(U,"sm:flex flex-col w-full sm:w-auto"),e[35]=U,e[36]=b):b=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ge,{onNavigate:()=>x(!0)}),e[37]=B):B=e[37];let S;e[38]!==b?(S=t.jsx("div",{className:b,children:B}),e[38]=b,e[39]=S):S=e[39];const Z=f?"flex":"hidden";let y;e[40]!==Z?(y=X(Z,"sm:flex flex-1 min-w-0 flex-col overflow-hidden"),e[40]=Z,e[41]=y):y=e[41];let E;e[42]===Symbol.for("react.memo_cache_sentinel")?(E=()=>x(!1),e[42]=E):E=e[42];let G;e[43]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsxs("button",{type:"button",onClick:E,className:"rounded-md p-1 opacity-70 hover:opacity-100 transition-opacity",children:[t.jsx(je,{size:16}),t.jsx("span",{className:"sr-only",children:"Back"})]}),e[43]=G):G=e[43];let _;e[44]!==j?(_=t.jsxs("div",{className:"flex items-center gap-2 px-4 py-3 border-b border-border sm:hidden",children:[G,t.jsx("span",{className:"text-sm font-semibold",children:j})]}),e[44]=j,e[45]=_):_=e[45];let O;e[46]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("div",{className:"flex-1 overflow-y-auto p-5 sm:p-8",children:t.jsx(Y.Suspense,{fallback:t.jsx(le,{}),children:t.jsx(me,{})})}),e[46]=O):O=e[46];let v;e[47]!==y||e[48]!==_?(v=t.jsxs("div",{className:y,children:[_,O]}),e[47]=y,e[48]=_,e[49]=v):v=e[49];let N;e[50]!==S||e[51]!==v?(N=t.jsxs(d.Content,{className:"flex",children:[S,v]}),e[50]=S,e[51]=v,e[52]=N):N=e[52];let P;e[53]!==g||e[54]!==N?(P=t.jsxs(d,{children:[g,N]}),e[53]=g,e[54]=N,e[55]=P):P=e[55];let R;return e[56]!==J||e[57]!==n||e[58]!==P?(R=t.jsx(de,{org:n,project:J,children:P}),e[56]=J,e[57]=n,e[58]=P,e[59]=R):R=e[59],R}function Oe(){const e=W.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(Y.Suspense,{fallback:null,children:t.jsx(be,{})}),e[0]=s):s=e[0],s}export{Oe as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r,
|
|
1
|
+
import{c as p,r,as as w,j as n}from"./index-DMmNh7jR.js";import{P as x}from"./index-DYAF-Vgt.js";const R=r.createContext(null);function H(m){const e=p.c(3),{children:l}=m,t=r.useContext(R);if(!t?.tabsEl)return null;let s;return e[0]!==l||e[1]!==t.tabsEl?(s=w.createPortal(l,t.tabsEl),e[0]=l,e[1]=t.tabsEl,e[2]=s):s=e[2],s}function L(m){const e=p.c(3),{children:l}=m,t=r.useContext(R);if(!t?.actionsEl)return null;let s;return e[0]!==l||e[1]!==t.actionsEl?(s=w.createPortal(l,t.actionsEl),e[0]=l,e[1]=t.actionsEl,e[2]=s):s=e[2],s}function $(m){const e=p.c(18),{children:l,breadcrumb:t}=m,[s,y]=r.useState(null),[j,C]=r.useState(null),S=r.useRef(null),V=r.useRef(null);let E;e[0]===Symbol.for("react.memo_cache_sentinel")?(E=c=>{S.current=c,c&&y(c)},e[0]=E):E=e[0];const g=E;let b;e[1]===Symbol.for("react.memo_cache_sentinel")?(b=c=>{V.current=c,c&&C(c)},e[1]=b):b=e[1];const v=b;let a;e[2]!==j||e[3]!==s?(a={tabsEl:s,actionsEl:j},e[2]=j,e[3]=s,e[4]=a):a=e[4];let o;e[5]!==t?(o=n.jsx(x.Header.Left,{children:t}),e[5]=t,e[6]=o):o=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsxs(x.Header.Right,{children:[n.jsx("div",{ref:g,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),n.jsx("div",{ref:v,className:"flex items-center gap-2 shrink-0"})]}),e[7]=h):h=e[7];let i;e[8]!==o?(i=n.jsxs(x.Header,{children:[o,h]}),e[8]=o,e[9]=i):i=e[9];let f;e[10]!==l?(f=n.jsx(x.Content,{children:l}),e[10]=l,e[11]=f):f=e[11];let u;e[12]!==i||e[13]!==f?(u=n.jsxs(x,{children:[i,f]}),e[12]=i,e[13]=f,e[14]=u):u=e[14];let d;return e[15]!==a||e[16]!==u?(d=n.jsx(R,{value:a,children:u}),e[15]=a,e[16]=u,e[17]=d):d=e[17],d}export{L as V,$ as a,H as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as Q,r as x,f as p,j as e,B as g,D as T,d as ne,S as W,N as ae,c as ie}from"./index-DMmNh7jR.js";import{u as B}from"./useMutation-DrLoVqQ7.js";import{I}from"./input-Bt_nejZh.js";function oe({redirectUrl:s,callbackUrl:r="/"}){const{emailAndPassword:l,resetPassword:u,emailOtp:i,socialProviders:d}=Q(),[n,j]=x.useState(""),[y,D]=x.useState(""),[b,_]=x.useState(""),[C,O]=x.useState(""),[A,L]=x.useState(!1),[R,N]=x.useState(()=>!l.enabled&&i.enabled?"emailOtp":globalThis.localStorage?.getItem("hasLoggedIn")!=="true"?"signUp":"signIn"),[c,S]=x.useState(""),[$,Y]=x.useState(!1),m=R==="signUp",f=R==="forgotPassword",v=R==="emailOtp",z=B({mutationFn:async({email:t,password:a,name:M})=>{try{if(m){const h=await p.signUp.email({email:t,password:a,name:M||""});if(h.error)throw new Error(h.error.message||"Sign up failed");return h}else{const h=await p.signIn.email({email:t,password:a});if(h.error)throw new Error(h.error.message||"Sign in failed");return h}}catch(h){throw h instanceof Error?h:new Error("Authentication failed")}},onSuccess:()=>{globalThis.localStorage?.setItem("hasLoggedIn","true"),window.location.href=s??r}}),F=B({mutationFn:async({email:t})=>{const a=await p.requestPasswordReset({email:t,redirectTo:"/reset-password"});if(a.error)throw new Error(a.error.message||"Failed to send reset email");return a},onSuccess:()=>{Y(!0)}}),k=B({mutationFn:async({email:t})=>{const a=await p.emailOtp.sendVerificationOtp({email:t,type:"sign-in"});if(a.error)throw new Error(a.error.message||"Failed to send code");return a},onSuccess:()=>{L(!0)}}),E=B({mutationFn:async({email:t,otp:a})=>{const M=await p.signIn.emailOtp({email:t,otp:a});if(M.error)throw new Error(M.error.message||"Invalid code");return M},onSuccess:()=>{globalThis.localStorage?.setItem("hasLoggedIn","true"),window.location.href=s??r}}),q=t=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t),V=()=>{n.trim()&&!q(n)&&S("Invalid email address")},X=t=>{if(t.preventDefault(),!q(n)){S("Invalid email address");return}z.mutate({email:n,password:y,name:b})},Z=t=>{if(t.preventDefault(),!q(n)){S("Invalid email address");return}F.mutate({email:n})},ee=t=>{if(t.preventDefault(),!q(n)){S("Invalid email address");return}k.mutate({email:n})},te=t=>{t.preventDefault(),E.mutate({email:n,otp:C})},P=t=>a=>{t(a.target.value),G&&z.reset(),H&&F.reset(),J&&(k.reset(),E.reset()),t===j&&c&&S("")},U=t=>{N(t),_(""),O(""),L(!1),S(""),Y(!1),z.reset(),F.reset(),k.reset(),E.reset()},o=z.isPending||F.isPending||k.isPending||E.isPending,G=z.error,H=F.error,J=k.error||E.error,w=m?n.trim()&&y.trim()&&b.trim():f?n.trim():v?A?C.trim():n.trim():n.trim()&&y.trim(),se=t=>{if(!t)return null;const a=t.message.toLowerCase();return a.includes("unauthorized")||a.includes("401")?"Invalid email or password. Please try again.":a.includes("already exists")||a.includes("409")?"An account with this email already exists. Try signing in instead.":a.includes("network")||a.includes("fetch")?"Network error. Please check your connection and try again.":a.includes("rate limit")||a.includes("429")?"Too many attempts. Please wait a moment and try again.":a.includes("invalid")&&a.includes("otp")?"Invalid or expired code. Please try again.":t.message||"An error occurred. Please try again."},K=G||H||J,re=f?"Reset your password":v?A?"Enter verification code":"Sign in with email code":m?"Create your account":"Login or signup below";return e.jsxs("div",{className:"mx-auto w-full min-h-full md:min-h-0 max-w-md grid gap-6 content-center bg-card p-6 md:p-10 border border-primary-foreground/20",children:[e.jsx("div",{className:"flex justify-center",children:e.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12"})}),e.jsx("div",{className:"text-center space-y-1",children:e.jsx("p",{className:"text-sm text-foreground/70",children:re})}),K&&e.jsx("div",{className:"rounded-xl bg-destructive/10 p-3 text-sm text-destructive text-center",children:se(K)}),$&&e.jsx("div",{className:"rounded-xl bg-emerald-500/10 p-3 text-sm text-emerald-600 dark:text-emerald-400 text-center",children:"Check your email for a password reset link."}),!f&&d.enabled&&e.jsx("div",{className:"grid gap-3",children:d.providers.map(t=>e.jsxs(g,{type:"button",variant:"outline",size:"lg",className:"w-full font-medium",disabled:o,onClick:()=>{p.signIn.social({provider:t.name,callbackURL:s??r})},children:[t.icon&&e.jsx("img",{src:t.icon,alt:"",className:"h-5 w-5","aria-hidden":"true"}),"Continue with"," ",t.name.charAt(0).toUpperCase()+t.name.slice(1)]},t.name))}),!f&&d.enabled&&(l.enabled||i.enabled)&&e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-px flex-1 bg-border"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"or"}),e.jsx("div",{className:"h-px flex-1 bg-border"})]}),v&&i.enabled&&e.jsx(e.Fragment,{children:A?e.jsxs("form",{onSubmit:te,className:"grid gap-4",children:[e.jsxs("div",{className:"rounded-xl bg-muted/50 p-3 text-sm text-muted-foreground text-center",children:["Code sent to ",n]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Verification code"}),e.jsx(I,{type:"text",placeholder:"Enter code",value:C,onChange:P(O),required:!0,disabled:o,autoFocus:!0,inputMode:"numeric",autoComplete:"one-time-code"})]}),e.jsx(g,{type:"submit",disabled:o||!w,className:"w-full font-semibold",size:"lg",children:o?"Verifying...":"Verify"}),e.jsx(g,{type:"button",variant:"ghost",onClick:()=>{L(!1),O(""),k.reset(),E.reset()},disabled:o,className:"text-sm text-muted-foreground hover:text-foreground",children:"Use a different email"})]}):e.jsxs("form",{onSubmit:ee,className:"grid gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Email"}),e.jsx(I,{type:"email",placeholder:"you@example.com",value:n,onChange:P(j),onBlur:V,required:!0,disabled:o,"aria-invalid":!!c}),c&&e.jsx("p",{className:"text-xs text-destructive mt-1.5",children:c})]}),e.jsx(g,{type:"submit",disabled:o||!w,className:"w-full font-semibold",size:"lg",children:o?"Sending...":"Send code"})]})}),f&&l.enabled&&!$&&e.jsxs("form",{onSubmit:Z,className:"grid gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Email"}),e.jsx(I,{type:"email",placeholder:"you@example.com",value:n,onChange:P(j),onBlur:V,required:!0,disabled:o,"aria-invalid":!!c}),c&&e.jsx("p",{className:"text-xs text-destructive mt-1.5",children:c})]}),e.jsx(g,{type:"submit",disabled:o||!w,className:"w-full font-semibold",size:"lg",children:o?"Sending...":"Send reset link"})]}),!f&&!v&&l.enabled&&e.jsxs("form",{onSubmit:X,className:"grid gap-4",children:[e.jsx("div",{className:T("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",m?"max-h-[200px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:e.jsxs("div",{className:T("p-1",!m&&"pointer-events-none"),children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Name"}),e.jsx(I,{type:"text",placeholder:"Your name",value:b,onChange:P(_),required:!0,disabled:o||!m,"aria-hidden":!m})]})}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Email"}),e.jsx(I,{type:"email",placeholder:"you@example.com",value:n,onChange:P(j),onBlur:V,required:!0,disabled:o,"aria-invalid":!!c}),c&&e.jsx("p",{className:"text-xs text-destructive mt-1.5",children:c})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-2",children:[e.jsx("label",{className:"block text-sm font-medium text-foreground",children:"Password"}),!m&&u.enabled&&e.jsx("button",{type:"button",onClick:()=>U("forgotPassword"),className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Forgot password?"})]}),e.jsx(I,{type:"password",placeholder:"••••••••",value:y,onChange:P(D),required:!0,disabled:o})]}),e.jsx("div",{className:T("overflow-hidden transition-all duration-300 ease-[cubic-bezier(0.075,0.82,0.165,1)]",w?"max-h-[100px] opacity-100 translate-y-0":"max-h-0 opacity-0 -translate-y-2"),children:e.jsx("div",{className:T("p-1",!w&&"pointer-events-none"),children:e.jsx(g,{type:"submit",disabled:o||!w,className:T("w-full font-semibold"),size:"lg","aria-hidden":!w,children:o?m?"Creating account...":"Signing in...":"Continue"})})})]}),!f&&i.enabled&&l.enabled&&!v&&e.jsx("div",{className:"text-center",children:e.jsx(g,{type:"button",variant:"link",onClick:()=>U("emailOtp"),disabled:o,className:"text-sm text-muted-foreground hover:text-foreground",children:"Sign in with email code instead"})}),v&&l.enabled&&e.jsx("div",{className:"text-center",children:e.jsx(g,{type:"button",variant:"link",onClick:()=>U("signIn"),disabled:o,className:"text-sm text-muted-foreground hover:text-foreground",children:"Sign in with password instead"})}),e.jsx("div",{className:"text-center",children:f?e.jsx(g,{type:"button",variant:"link",onClick:()=>U("signIn"),disabled:o,className:"text-sm text-muted-foreground hover:text-foreground",children:"Back to sign in"}):!v&&l.enabled?e.jsx(g,{type:"button",variant:"link",onClick:()=>U(m?"signIn":"signUp"),disabled:o,className:"text-sm text-muted-foreground hover:text-foreground",children:m?"Already have an account? Sign in":"Don't have an account? Sign up"}):null}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground pt-4",children:[e.jsx("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),e.jsx("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"hover:text-foreground transition-colors",children:"Privacy Policy"})]})]})}function le({redirectTo:s}){const[r,l]=x.useState(null);return x.useEffect(()=>{let u=!1;return(async()=>{try{let i;for(let d=0;d<5&&(i=await fetch("/api/auth/custom/local-session",{method:"POST",credentials:"include"}),!(i.ok||i.status<500));d++)await new Promise(n=>setTimeout(n,Math.min(1e3*2**d,1e4)));if(!i?.ok){const d=await i?.json().catch(()=>({}));throw new Error(d?.error||"Auto-login failed")}if(!u){const d=s.startsWith("/")&&!s.startsWith("//")?s:"/";window.location.href=d}}catch(i){u||l(i instanceof Error?i.message:"Auto-login failed")}})(),()=>{u=!0}},[s]),r?e.jsx("div",{className:"flex min-h-screen items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsxs("p",{className:"text-destructive mb-2",children:["Auto-login failed: ",r]}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Try restarting the server."})]})}):e.jsx(W,{})}function de(s){if(!s.client_id||s.response_type!=="code")return null;const r=new URLSearchParams;return s.client_id&&r.set("client_id",s.client_id),s.redirect_uri&&r.set("redirect_uri",s.redirect_uri),s.response_type&&r.set("response_type",s.response_type),s.state&&r.set("state",s.state),s.scope&&r.set("scope",s.scope),s.code_challenge&&r.set("code_challenge",s.code_challenge),s.code_challenge_method&&r.set("code_challenge_method",s.code_challenge_method),`/api/auth/mcp/authorize?${r.toString()}`}function ce(s){const r=ie.c(5),{callbackURL:l,providerId:u}=s;let i,d;r[0]!==l||r[1]!==u?(i=()=>{(async()=>await p.signIn.sso({providerId:u,callbackURL:l}))()},d=[u,l],r[0]=l,r[1]=u,r[2]=i,r[3]=d):(i=r[2],d=r[3]),x.useEffect(i,d);let n;return r[4]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(W,{}),r[4]=n):n=r[4],n}function he(){const s=p.useSession(),r=ne({from:"/login"}),{next:l="/",client_id:u,redirect_uri:i,response_type:d,state:n,scope:j,code_challenge:y,code_challenge_method:D}=r,b=l.startsWith("/")&&!l.startsWith("//")?l:"/",{sso:_,emailAndPassword:C,magicLink:O,emailOtp:A,socialProviders:L,localMode:R}=Q(),N=de({client_id:u,redirect_uri:i,response_type:d,state:n,scope:j,code_challenge:y,code_challenge_method:D}),c=N||b;return s.data?N?(window.location.href=N,e.jsx(W,{})):e.jsx(ae,{to:b}):R?e.jsx(le,{redirectTo:c}):_.enabled?e.jsx(ce,{callbackURL:c,providerId:_.providerId}):C.enabled||O.enabled||A.enabled||L.enabled?e.jsxs("main",{className:"relative flex min-h-screen items-stretch md:items-center justify-center bg-gradient-to-br from-brand to-brand/75 p-1 md:p-4",children:[e.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle, var(--brand-foreground) 1px, transparent 1px)",backgroundSize:"16px 16px",opacity:.15}}),e.jsxs("div",{className:"relative z-10 w-full md:w-auto",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-screen h-px bg-brand-foreground/15"}),e.jsx("div",{className:"absolute bottom-0 left-1/2 -translate-x-1/2 w-screen h-px bg-brand-foreground/15"}),e.jsx("div",{className:"absolute left-0 top-1/2 -translate-y-1/2 w-px h-screen bg-brand-foreground/15"}),e.jsx("div",{className:"absolute right-0 top-1/2 -translate-y-1/2 w-px h-screen bg-brand-foreground/15"}),e.jsx(oe,{redirectUrl:N,callbackUrl:b})]})]}):e.jsx("div",{children:"No login options available"})}export{he as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as F,r as B,v as w,j as t,B as k}from"./index-
|
|
1
|
+
import{c as F,r as B,v as w,j as t,B as k}from"./index-DMmNh7jR.js";import{i as E}from"./Upload01-ByUvmqDm.js";import{i as S}from"./X-CD9ZB6hw.js";function M(L){const e=F.c(28),{value:s,onChange:l,name:b,disabled:r}=L,a=B.useRef(null);let f;e[0]!==l?(f=y=>{const N=y.target.files?.[0];if(N){if(N.size>2097152){w.error("Image must be smaller than 2MB");return}const o=new FileReader;o.onerror=()=>{const C=o.error;console.error("FileReader error:",C),w.error(C?.message||"Failed to read image file. Please try again."),a.current&&(a.current.value="")},o.onloadend=()=>{o.readyState===FileReader.DONE&&o.result&&l(o.result),a.current&&(a.current.value="")},o.readAsDataURL(N)}},e[0]=l,e[1]=f):f=e[1];const v=f;let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{a.current?.click()},e[2]=h):h=e[2];const R=h;let x;e[3]!==l?(x=y=>{y.stopPropagation(),l("")},e[3]=l,e[4]=x):x=e[4];const n=x;let i;e[5]!==r||e[6]!==v?(i=t.jsx("input",{type:"file",ref:a,className:"hidden",accept:"image/*",onChange:v,disabled:r}),e[5]=r,e[6]=v,e[7]=i):i=e[7];let c;e[8]!==r||e[9]!==n||e[10]!==b||e[11]!==s?(c=s?t.jsxs("div",{className:"relative group",children:[t.jsx("div",{className:"h-20 w-20 rounded-lg border border-border bg-muted/20 overflow-hidden",children:t.jsx("img",{src:s,alt:b||"Logo",className:"w-full h-full object-cover"})}),t.jsx("button",{type:"button",onClick:n,disabled:r,className:"absolute -top-2 -right-2 h-6 w-6 rounded-full bg-destructive text-destructive-foreground opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:t.jsx(S,{className:"h-3 w-3"})})]}):t.jsxs("button",{type:"button",onClick:R,disabled:r,className:"h-20 w-20 rounded-lg border-2 border-dashed border-border hover:border-foreground/50 hover:bg-accent/50 transition-colors flex flex-col items-center justify-center gap-1 text-muted-foreground hover:text-foreground disabled:opacity-50 disabled:pointer-events-none",children:[t.jsx(E,{className:"h-5 w-5"}),t.jsx("span",{className:"text-xs",children:"Upload"})]}),e[8]=r,e[9]=n,e[10]=b,e[11]=s,e[12]=c):c=e[12];const j=s?"Change Logo":"Upload Logo";let d;e[13]!==r||e[14]!==j?(d=t.jsx(k,{type:"button",variant:"outline",size:"sm",onClick:R,disabled:r,className:"mb-2",children:j}),e[13]=r,e[14]=j,e[15]=d):d=e[15];let m;e[16]!==r||e[17]!==n||e[18]!==s?(m=s&&t.jsx(k,{type:"button",variant:"ghost",size:"sm",onClick:n,disabled:r,className:"ml-2",children:"Remove"}),e[16]=r,e[17]=n,e[18]=s,e[19]=m):m=e[19];let p;e[20]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx("p",{className:"text-xs text-muted-foreground mt-2",children:"Recommended: Square image, at least 200x200px. Max 2MB."}),e[20]=p):p=e[20];let u;e[21]!==d||e[22]!==m?(u=t.jsxs("div",{className:"flex-1",children:[d,m,p]}),e[21]=d,e[22]=m,e[23]=u):u=e[23];let g;return e[24]!==u||e[25]!==i||e[26]!==c?(g=t.jsxs("div",{className:"flex items-start gap-4",children:[i,c,u]}),e[24]=u,e[25]=i,e[26]=c,e[27]=g):g=e[27],g}export{M as L};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as O,c as Z,D as _,j as d}from"./index-
|
|
1
|
+
import{r as O,c as Z,D as _,j as d}from"./index-DMmNh7jR.js";import{u as V}from"./use-mcp-resources-BxIahbOo.js";import{o as Q,N as q,A as K}from"./types-BtTmvTe4.js";const $=["default-src 'none'","script-src 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'","style-src 'unsafe-inline'","img-src * data: blob:","font-src data:","connect-src 'none'","frame-src 'none'","worker-src blob:","form-action 'none'","base-uri 'none'"].join("; ");function Y(o,e={}){const n=`<meta http-equiv="Content-Security-Policy" content="${J(e)}">`,s=/<head(\s[^>]*)?>|<HEAD(\s[^>]*)?>/i,c=o.match(s);if(c){const i=(c.index??0)+c[0].length;return o.slice(0,i)+`
|
|
2
2
|
`+n+o.slice(i)}const a=/<html(\s[^>]*)?>|<HTML(\s[^>]*)?>/i,r=o.match(a);if(r){const i=(r.index??0)+r[0].length;return o.slice(0,i)+`
|
|
3
3
|
<head>
|
|
4
4
|
`+n+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as Z,c as V,D as H,j as n,B as J}from"./index-
|
|
1
|
+
import{r as Z,c as V,D as H,j as n,B as J}from"./index-DMmNh7jR.js";import{a as K,b as Q,T as X}from"./tooltip-DHJtaI_Z.js";import{i as F}from"./CheckVerified02-BImD45AM.js";import{s as Y}from"./Globe02-X8fGWI0t.js";import{i as ee}from"./Lock01-DFfVnVtc.js";import{s as te}from"./Plus-Dcf0Y3wA.js";import{i as se}from"./Terminal-ZymOmGb9.js";import{C as le}from"./card-CoyaoT6W.js";import{I as ie}from"./integration-icon-Dyr7fOYU.js";import{g as ne}from"./registry-utils-DZHZD5gP.js";const W=({size:s=24,color:e="currentColor",...i})=>Z.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},Z.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));W.displayName="Server01";function ae(s){if(!s.includes("/"))return s;const e=s.split("/"),i=e[0],l=e[1];if(!i||!l)return s;if(i.includes(".")){const a=i.split("."),r=a[a.length-1]||i,c=l.replace(/^mcp-?/,"").replace(/-?mcp$/,"").replace(/^server-?/,"").replace(/-?server$/,"");return!c||c.length<2?r:c}return l}function re(s){const e=V.c(2),{protocol:i,className:l}=s;let a;return e[0]!==l?(a={http:n.jsx(Y,{className:l}),sse:n.jsx(W,{className:l}),stdio:n.jsx(se,{className:l})},e[0]=l,e[1]=a):a=e[1],a[i]}function ce(s){switch(s){case"http":return"HTTP";case"sse":return"SSE";case"stdio":return"STDIO"}}function oe(s){const e=V.c(9),{protocol:i}=s;let l;e[0]!==i?(l=H("flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-medium shrink-0",{http:"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",sse:"bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",stdio:"bg-purple-100 text-purple-700 dark:bg-purple-900/30 dark:text-purple-400"}[i]),e[0]=i,e[1]=l):l=e[1];let a,r;e[2]!==i?(a=n.jsx(re,{protocol:i,className:"w-3 h-3"}),r=ce(i),e[2]=i,e[3]=a,e[4]=r):(a=e[3],r=e[4]);let c;return e[5]!==l||e[6]!==a||e[7]!==r?(c=n.jsxs("div",{className:l,children:[a,r]}),e[5]=l,e[6]=a,e[7]=r,e[8]=c):c=e[8],c}function me(s){const e=V.c(73),{icon:i,displayName:l,description:a,onClick:r}=s,t=(s.variant??"store")==="server",m=t?s.hostname:null,f=t?s.protocol:null,p=t?s.isInstalling:!1,x=t?s.actionLabel:void 0,d=t?null:s.scopeName,o=t?!1:s.isVerified,u=t?!1:s.isOfficial,h=t?!0:s.canInstall,R=t?"p-4":"p-6";let g;e[0]!==R?(g=H("cursor-pointer hover:bg-muted/50 transition-colors",R),e[0]=R,e[1]=g):g=e[1];const A=t?"gap-3":"gap-4";let v;e[2]!==A?(v=H("flex flex-col h-full relative",A),e[2]=A,e[3]=v):v=e[3];const G=t?"sm":"md";let j;e[4]!==l||e[5]!==i||e[6]!==G?(j=n.jsx(ie,{icon:i,name:l,size:G,className:"shadow-sm shrink-0"}),e[4]=l,e[5]=i,e[6]=G,e[7]=j):j=e[7];const U=t?"text-sm":"text-base";let N;e[8]!==U?(N=H("flex items-center gap-2 font-medium min-w-0",U),e[8]=U,e[9]=N):N=e[9];let C;e[10]!==l?(C=n.jsx("span",{className:"truncate",children:l}),e[10]=l,e[11]=C):C=e[11];let b;e[12]!==u||e[13]!==t?(b=!t&&u&&n.jsx(F,{size:16,className:"text-primary shrink-0"}),e[12]=u,e[13]=t,e[14]=b):b=e[14];let k;e[15]!==u||e[16]!==t||e[17]!==o?(k=!t&&!u&&o&&n.jsx(F,{size:16,className:"text-success shrink-0"}),e[15]=u,e[16]=t,e[17]=o,e[18]=k):k=e[18];let y;e[19]!==h||e[20]!==t?(y=!t&&!h&&n.jsx(ee,{size:16,className:"text-muted-foreground shrink-0"}),e[19]=h,e[20]=t,e[21]=y):y=e[21];let I;e[22]!==t||e[23]!==f?(I=t&&f&&n.jsx(oe,{protocol:f}),e[22]=t,e[23]=f,e[24]=I):I=e[24];let w;e[25]!==k||e[26]!==y||e[27]!==I||e[28]!==N||e[29]!==C||e[30]!==b?(w=n.jsx(K,{asChild:!0,children:n.jsxs("div",{className:N,children:[C,b,k,y,I]})}),e[25]=k,e[26]=y,e[27]=I,e[28]=N,e[29]=C,e[30]=b,e[31]=w):w=e[31];let S;e[32]!==l?(S=n.jsx("p",{children:l}),e[32]=l,e[33]=S):S=e[33];let $;e[34]!==h||e[35]!==t?($=!t&&!h&&n.jsx("p",{className:"text-xs mt-1",children:"No connection available"}),e[34]=h,e[35]=t,e[36]=$):$=e[36];let P;e[37]!==S||e[38]!==$?(P=n.jsxs(Q,{children:[S,$]}),e[37]=S,e[38]=$,e[39]=P):P=e[39];let T;e[40]!==w||e[41]!==P?(T=n.jsxs(X,{children:[w,P]}),e[40]=w,e[41]=P,e[42]=T):T=e[42];let _;e[43]!==m||e[44]!==t||e[45]!==d?(_=(d||m)&&n.jsx("div",{className:H("text-muted-foreground truncate",t?"text-xs mt-0.5":"text-sm"),children:d||m}),e[43]=m,e[44]=t,e[45]=d,e[46]=_):_=e[46];let D;e[47]!==T||e[48]!==_?(D=n.jsx("div",{className:"flex gap-2 items-start min-w-0 flex-1",children:n.jsxs("div",{className:"min-w-0 flex-1",children:[T,_]})}),e[47]=T,e[48]=_,e[49]=D):D=e[49];let z;e[50]!==D||e[51]!==j?(z=n.jsxs("div",{className:"flex gap-3",children:[j,D]}),e[50]=D,e[51]=j,e[52]=z):z=e[52];let E;e[53]!==a?(E=a&&n.jsx("div",{className:"text-sm text-muted-foreground line-clamp-2",children:a}),e[53]=a,e[54]=E):E=e[54];let M;e[55]!==a||e[56]!==t?(M=!a&&!t&&n.jsx("div",{className:"text-sm text-muted-foreground line-clamp-2",children:"No description available"}),e[55]=a,e[56]=t,e[57]=M):M=e[57];let L;e[58]!==x||e[59]!==p||e[60]!==t||e[61]!==r?(L=t&&n.jsxs(J,{variant:"outline",size:"sm",onClick:q=>{q.stopPropagation(),r()},disabled:p,className:"w-full mt-auto cursor-pointer",children:[n.jsx(te,{size:16}),p?"Connecting...":x||"Connect"]}),e[58]=x,e[59]=p,e[60]=t,e[61]=r,e[62]=L):L=e[62];let B;e[63]!==z||e[64]!==E||e[65]!==M||e[66]!==L||e[67]!==v?(B=n.jsxs("div",{className:v,children:[z,E,M,L]}),e[63]=z,e[64]=E,e[65]=M,e[66]=L,e[67]=v,e[68]=B):B=e[68];let O;return e[69]!==r||e[70]!==g||e[71]!==B?(O=n.jsx(le,{className:g,onClick:r,children:B}),e[69]=r,e[70]=g,e[71]=B,e[72]=O):O=e[72],O}function de(s){const e=s.server,i=s._meta?.["mcp.mesh"],l=i?.friendly_name||s.name||e?.title||s.title||s.id||"Unnamed Item",a=i?.short_description||i?.mesh_description||e?.description||s.description||null,r=e?.icons?.[0]?.src||ne(e?.repository)||null,c=i?.verified??!1,t=i?.official??!1,m=(e?.remotes?.length??0)>0,f=(e?.packages?.length??0)>0,p=m||f;let x=l,d=null;if(l.includes("/")){const o=l.split("/");o.length>=2&&(d=o[0]||null,x=ae(l))}if(!d){const o=i?.scopeName,u=i?.appName;o&&u?d=`${o}/${u}`:o&&(d=o)}return!d&&s.id?.includes("/")&&(d=s.id),i?.friendly_name&&(x=i.friendly_name),{icon:r,scopeName:d,displayName:x,description:a,isVerified:c,isOfficial:t,canInstall:p}}function ke(s){const e=V.c(19),{items:i,title:l,onItemClick:a}=s;let r,c,t,m,f;if(e[0]!==i||e[1]!==a||e[2]!==l){f=Symbol.for("react.early_return_sentinel");e:{const d=i.filter(fe);if(d.length===0){f=null;break e}t="flex flex-col gap-4",e[8]!==l?(m=l&&n.jsx("div",{className:"flex items-center justify-between w-max gap-2",children:n.jsx("h2",{className:"text-lg font-medium",children:l})}),e[8]=l,e[9]=m):m=e[9],r="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4";let o;e[10]!==a?(o=u=>{const h=de(u);return n.jsx(me,{...h,onClick:()=>a(u)},u.id)},e[10]=a,e[11]=o):o=e[11],c=d.map(o)}e[0]=i,e[1]=a,e[2]=l,e[3]=r,e[4]=c,e[5]=t,e[6]=m,e[7]=f}else r=e[3],c=e[4],t=e[5],m=e[6],f=e[7];if(f!==Symbol.for("react.early_return_sentinel"))return f;let p;e[12]!==r||e[13]!==c?(p=n.jsx("div",{className:r,children:c}),e[12]=r,e[13]=c,e[14]=p):p=e[14];let x;return e[15]!==t||e[16]!==m||e[17]!==p?(x=n.jsxs("div",{className:t,children:[m,p]}),e[15]=t,e[16]=m,e[17]=p,e[18]=x):x=e[18],x}function fe(s){return s!=null}export{ke as M,me as a,W as b,ae as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DMmNh7jR.js","assets/index-CubWD7-P.css","assets/index-bHgla3gL.js","assets/use-collections-DhavVshD.js","assets/useMutation-DrLoVqQ7.js","assets/constants-DclZTqHf.js","assets/use-connection-CVlyXslk.js","assets/use-mcp-tools-kv4r4Zvn.js","assets/useQuery-B-AaJTeZ.js","assets/use-mcp-resources-BxIahbOo.js","assets/use-mcp-prompts-BDRKUj7D.js","assets/use-virtual-mcp-DCxXK_bv.js","assets/decopilot-events-Brt4gAR6.js","assets/usage-BW6ztpN6.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as W,c as F,j as t,B as ie,v as oe,D as Ye,K as ae,bU as xe,u as Me,e as Re,O as de,g as Je,d as Xe,z as Ze,w as et,f as tt,G as st,i as rt,a as nt}from"./index-DMmNh7jR.js";import{i as ot}from"./AlertCircle-DcuzO-dN.js";import{i as ge}from"./Loading01-D0sCOwf7.js";import{P as he,u as it}from"./index-DYAF-Vgt.js";import{c as at,T as lt,a as ct,b as dt}from"./tooltip-DHJtaI_Z.js";import{i as mt}from"./Check-5nIJP_0B.js";import{a as ut}from"./Copy01-DCmX2pvi.js";import{I as Ee}from"./integration-icon-Dyr7fOYU.js";import{i as ft}from"./CheckCircle-CPfAK_ok.js";import{t as pt}from"./ChevronDown-t60R5l2B.js";import{s as Ce}from"./Plus-Dcf0Y3wA.js";import{a as ht,c as xt,b as gt,D as vt}from"./dropdown-menu-BcNYk9_F.js";import{n as Se}from"./LinkExternal01-CmkQ0Pr-.js";import{E as bt}from"./empty-state-BuGXY27l.js";import{u as me}from"./useQuery-B-AaJTeZ.js";import{i as yt}from"./File06-BocZAjHf.js";import{j as Ae,u as jt,f as Nt,k as ke,b as wt,l as Ct,g as St}from"./registry-utils-DZHZD5gP.js";import{m as _e}from"./marked.esm-BaswSlok.js";import{a as kt}from"./tools-list-JehNbMf9.js";import{C as _t}from"./collection-tabs-qLP6ozkD.js";import{s as It}from"./Globe02-X8fGWI0t.js";import{a as Tt,b as Lt,e as Pt}from"./mcp-server-card-CwYAe4vO.js";import{i as Mt}from"./Terminal-ZymOmGb9.js";import{B as Rt,a as Et,b as Ie,d as At,e as Dt,c as $t}from"./breadcrumb-C8hDXS86.js";import{a as Ut,b as Vt,u as Bt}from"./use-connection-CVlyXslk.js";import{u as zt}from"./constants-DclZTqHf.js";import{u as Ft}from"./use-mcp-tools-kv4r4Zvn.js";import{e as Ot}from"./extract-connection-data-DhU56Zd0.js";import{s as Ht}from"./slugify-CEUa2lfQ.js";import{i as Gt}from"./InfoCircle-BO2XWy7v.js";import"./useMutation-DrLoVqQ7.js";import"./X-CD9ZB6hw.js";import"./index-COFAW4F5.js";import"./Container-Cvd3ILsk.js";import"./ChevronRight-3uKoJ2yX.js";import"./binder-C1eSZFT4.js";import"./collection-display-button-BcIJp1SX.js";import"./ArrowDown-DrJY3Wf3.js";import"./ArrowUp-B4DKDJey.js";import"./Grid01-NkSMXhQ7.js";import"./List-BbeB05v1.js";import"./badge-Cjjl_FHP.js";import"./collection-search-nKZEJ_r3.js";import"./SearchMd-BSRGE1t4.js";import"./input-Bt_nejZh.js";import"./collection-table-wrapper-Bq15EL3p.js";import"./table-BSLV9H8I.js";import"./card-CoyaoT6W.js";import"./types-BtTmvTe4.js";import"./Eye-D3Q7o9JY.js";import"./LayersTwo01-DEwkReGL.js";import"./layout-VG2uM_nk.js";import"./CheckVerified02-BImD45AM.js";import"./Lock01-DFfVnVtc.js";import"./use-collections-DhavVshD.js";import"./generate-id-DRuK_WRM.js";const De=({size:r=24,color:e="currentColor",...s})=>W.createElement("svg",{viewBox:"0 0 24 24",width:r,height:r,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},W.createElement("path",{d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"}));De.displayName="SearchLg";function qt(r){return r.replace(/<a[^>]*class="[^"]*anchor[^"]*"[^>]*>.*?<\/a>/gi,"")}function Kt(r){return r.replace(/<a\s+([^>]*href="[^"]*"[^>]*)>/gi,(e,s)=>{let n=e;return s.includes("target=")?n=n.replace(/target="[^"]*"/gi,'target="_blank"'):n=n.replace(/>/,' target="_blank">'),s.includes("rel=")?n=n.replace(/rel="[^"]*"/gi,'rel="noopener noreferrer"'):n=n.replace(/>/,' rel="noopener noreferrer">'),n})}function Wt(r){let e=qt(r);return e=Kt(e),e}async function Qt(r,e){try{const s=await fetch(`https://api.github.com/repos/${r}/${e}/readme`,{headers:{Accept:"application/vnd.github.v3.html"}});if(!s.ok){if(s.status===404)return null;throw new Error(`Failed to fetch README: ${s.statusText}`)}const n=await s.text();return Wt(n)}catch(s){return console.error("Error fetching README:",s),null}}function Yt(r){const e=F.c(3),{message:s}=r,n=s===void 0?"Loading MCP Server details...":s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(ge,{size:48,className:"animate-spin mb-4"}),e[0]=o):o=e[0];let a;return e[1]!==n?(a=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[o,t.jsx("p",{className:"text-sm text-muted-foreground",children:n})]}),e[1]=n,e[2]=a):a=e[2],a}function Jt(r){const e=F.c(9),{error:s,onBack:n}=r,o=s instanceof Error?s.message:s;let a,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(ot,{size:48,className:"text-destructive mb-4"}),l=t.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading MCP Server"}),e[0]=a,e[1]=l):(a=e[0],l=e[1]);let m;e[2]!==o?(m=t.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:o}),e[2]=o,e[3]=m):m=e[3];let c;e[4]!==n?(c=t.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back"}),e[4]=n,e[5]=c):c=e[5];let d;return e[6]!==m||e[7]!==c?(d=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[a,l,m,c]}),e[6]=m,e[7]=c,e[8]=d):d=e[8],d}function Xt(r){const e=F.c(5),{onBack:s}=r;let n,o,a;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(De,{size:48,className:"text-muted-foreground mb-4"}),o=t.jsx("h3",{className:"text-lg font-medium mb-2",children:"MCP Server not found"}),a=t.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:"The MCP Server you're looking for doesn't exist in this store."}),e[0]=n,e[1]=o,e[2]=a):(n=e[0],o=e[1],a=e[2]);let l;return e[3]!==s?(l=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n,o,a,t.jsx("button",{onClick:s,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back to Store"})]}),e[3]=s,e[4]=l):l=e[4],l}function Zt(r){const e=F.c(11),{breadcrumb:s,shareUrl:n}=r,[o,a]=W.useState(!1);let l;e[0]!==n?(l=async()=>{n&&(await navigator.clipboard.writeText(n),a(!0),oe.success("Share link copied to clipboard"),setTimeout(()=>a(!1),2e3))},e[0]=n,e[1]=l):l=e[1];const m=l;let c;e[2]!==s?(c=t.jsx(he.Header.Left,{children:s}),e[2]=s,e[3]=c):c=e[3];let d;e[4]!==o||e[5]!==m||e[6]!==n?(d=n&&t.jsx(he.Header.Right,{children:t.jsx(at,{children:t.jsxs(lt,{children:[t.jsx(ct,{asChild:!0,children:t.jsxs(ie,{variant:"outline",size:"sm",onClick:m,className:"gap-1.5 cursor-pointer",children:[o?t.jsx(mt,{size:16,className:"text-green-600"}):t.jsx(ut,{size:16}),t.jsx("span",{children:o?"Copied!":"Share"})]})}),t.jsx(dt,{children:t.jsx("p",{children:"Copy a universal link anyone can use to find this MCP"})})]})})}),e[4]=o,e[5]=m,e[6]=n,e[7]=d):d=e[7];let v;return e[8]!==c||e[9]!==d?(v=t.jsxs(he.Header,{children:[c,d]}),e[8]=c,e[9]=d,e[10]=v):v=e[10],v}function Te(r){const e=F.c(28),{versions:s,selectedIndex:n,onSelect:o,isInstalling:a,variant:l,showLabel:m}=r,c=a===void 0?!1:a,d=l===void 0?"default":l,v=m===void 0?!1:m,p=s[n],k=v?"sm":"default",f=d==="default"&&"rounded-l-none px-2 border-l-2 border-l-white/50";let g;e[0]!==f?(g=Ye("shrink-0 cursor-pointer",f),e[0]=f,e[1]=g):g=e[1];let h;e[2]!==p?.server?.version||e[3]!==v?(h=v&&t.jsxs("span",{className:"mr-1",children:["v",p?.server?.version||"unknown"]}),e[2]=p?.server?.version,e[3]=v,e[4]=h):h=e[4];const b=v?14:20;let x;e[5]!==b?(x=t.jsx(pt,{size:b}),e[5]=b,e[6]=x):x=e[6];let u;e[7]!==c||e[8]!==k||e[9]!==g||e[10]!==h||e[11]!==x||e[12]!==d?(u=t.jsx(ht,{asChild:!0,children:t.jsxs(ie,{variant:d,disabled:c,size:k,className:g,children:[h,x]})}),e[7]=c,e[8]=k,e[9]=g,e[10]=h,e[11]=x,e[12]=d,e[13]=u):u=e[13];let j;if(e[14]!==c||e[15]!==o||e[16]!==n||e[17]!==s){let I;e[19]!==c||e[20]!==o||e[21]!==n?(I=(S,_)=>{const E=S._meta?.["io.modelcontextprotocol.registry/official"];return t.jsx(xt,{onClick:()=>o(_),disabled:c,className:"cursor-pointer",children:t.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsxs("div",{className:"font-medium text-sm",children:["v",S.server?.version||"unknown"]}),E?.isLatest&&t.jsx("div",{className:"text-xs text-muted-foreground/50 font-semibold",children:"LATEST"})]}),_===n&&t.jsx(ft,{size:16,className:"text-muted-foreground shrink-0"})]})},_)},e[19]=c,e[20]=o,e[21]=n,e[22]=I):I=e[22],j=s.map(I),e[14]=c,e[15]=o,e[16]=n,e[17]=s,e[18]=j}else j=e[18];let N;e[23]!==j?(N=t.jsx(gt,{align:"end",className:"w-56 max-h-[300px] overflow-y-auto",children:j}),e[23]=j,e[24]=N):N=e[24];let L;return e[25]!==u||e[26]!==N?(L=t.jsxs(vt,{children:[u,N]}),e[25]=u,e[26]=N,e[27]=L):L=e[27],L}function es(r){const e=F.c(46),{data:s,itemVersions:n,onInstall:o,canInstall:a,isInstalling:l,hideInstallControls:m,selectedVersionIndex:c,onVersionChange:d}=r,v=a===void 0?!0:a,p=l===void 0?!1:l,k=m===void 0?!1:m,[f,g]=W.useState(0),h=c??f;let b;e[0]!==d?(b=P=>{g(P),d?.(P)},e[0]=d,e[1]=b):b=e[1];const x=b,u=n[h]||n[0];let j;e[2]!==u?.server?.remotes?(j=u?.server?.remotes??[],e[2]=u?.server?.remotes,e[3]=j):j=e[3];const N=j;let L;e[4]!==u?.server?.packages?(L=u?.server?.packages??[],e[4]=u?.server?.packages,e[5]=L):L=e[5];const S=L.length>0,_=N.length>0,E=N.findIndex(ss),y=E>=0?E:0;let J;e[6]!==y||e[7]!==S||e[8]!==_||e[9]!==o||e[10]!==h?(J=()=>{_?o(h,y,void 0):S&&o(h,void 0,0)},e[6]=y,e[7]=S,e[8]=_,e[9]=o,e[10]=h,e[11]=J):J=e[11];const R=J;let $;e[12]!==n||e[13]!==o||e[14]!==x?($=P=>{x(P);const H=n[P],Q=H?.server?.remotes??[],q=H?.server?.packages??[];if(Q.length>0){const se=Q.findIndex(ts);o(P,se>=0?se:0,void 0)}else q.length>0&&o(P,void 0,0)},e[12]=n,e[13]=o,e[14]=x,e[15]=$):$=e[15];const X=$;let C;e[16]!==s.icon||e[17]!==s.name?(C=t.jsx(Ee,{icon:s.icon,name:s.name,size:"lg",className:"shrink-0 shadow-sm"}),e[16]=s.icon,e[17]=s.name,e[18]=C):C=e[18];let A;e[19]!==s.name?(A=t.jsx("h1",{className:"text-3xl font-medium",children:s.name}),e[19]=s.name,e[20]=A):A=e[20];let U;e[21]!==s.verified?(U=s.verified&&t.jsx("img",{src:"/verified-badge.svg",alt:"Verified",className:"w-5 h-5 shrink-0"}),e[21]=s.verified,e[22]=U):U=e[22];let z;e[23]!==A||e[24]!==U?(z=t.jsxs("div",{className:"flex items-center gap-2",children:[A,U]}),e[23]=A,e[24]=U,e[25]=z):z=e[25];let O;e[26]!==s.shortDescription?(O=s.shortDescription&&t.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:s.shortDescription}),e[26]=s.shortDescription,e[27]=O):O=e[27];let V;e[28]!==z||e[29]!==O?(V=t.jsxs("div",{className:"flex-1 min-w-0",children:[z,O]}),e[28]=z,e[29]=O,e[30]=V):V=e[30];let T;e[31]!==v||e[32]!==R||e[33]!==X||e[34]!==k||e[35]!==p||e[36]!==n||e[37]!==h||e[38]!==x?(T=v&&!k?t.jsx("div",{className:"shrink-0 flex items-center gap-2",children:n.length>1?t.jsxs("div",{className:"flex",children:[t.jsxs(ie,{variant:"default",size:"sm",onClick:R,disabled:p,className:"shrink-0 rounded-r-none cursor-pointer",children:[t.jsx(Ce,{size:20}),p?"Connecting...":"Connect"]}),t.jsx(Te,{versions:n,selectedIndex:h,onSelect:X,isInstalling:p,variant:"outline"})]}):t.jsxs(ie,{variant:"default",size:"sm",onClick:R,disabled:n.length===0||p,className:"shrink-0 cursor-pointer",children:[t.jsx(Ce,{size:20}),p?"Connecting...":"Connect"]})}):k?n.length>1?t.jsx("div",{className:"shrink-0",children:t.jsx(Te,{versions:n,selectedIndex:h,onSelect:x,isInstalling:p,variant:"outline",showLabel:!0})}):null:t.jsx("div",{className:"shrink-0 px-4 py-2 text-sm text-muted-foreground bg-muted rounded-lg",children:"Cannot be connected"}),e[31]=v,e[32]=R,e[33]=X,e[34]=k,e[35]=p,e[36]=n,e[37]=h,e[38]=x,e[39]=T):T=e[39];let w;e[40]!==V||e[41]!==T?(w=t.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between",children:[V,T]}),e[40]=V,e[41]=T,e[42]=w):w=e[42];let B;return e[43]!==w||e[44]!==C?(B=t.jsxs("div",{className:"flex items-center gap-4 py-8 px-5 border-b border-border",children:[C,w]}),e[43]=w,e[44]=C,e[45]=B):B=e[45],B}function ts(r){return r.type?.toLowerCase()==="http"||r.type?.toLowerCase()==="streamable-http"}function ss(r){return r.type?.toLowerCase()==="http"||r.type?.toLowerCase()==="streamable-http"}function rs(r){if(!r)return"—";try{const e=new Date(r);return isNaN(e.getTime())?"—":e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"—"}}function ns(r){const e=F.c(47),{data:s,publisherInfo:n,selectedItem:o}=r;let a;e[0]!==s.description?(a=s.description&&t.jsxs("div",{className:"px-5 pb-5 border-b border-border",children:[t.jsx("h2",{className:"text-base font-medium mb-3",children:"Overview"}),t.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.description})]}),e[0]=s.description,e[1]=a):a=e[1];const l=s.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":s.publisher;let m;e[2]!==n.logo||e[3]!==l?(m=t.jsx(Ee,{icon:n.logo,name:l,size:"sm",className:"shrink-0 shadow-sm"}),e[2]=n.logo,e[3]=l,e[4]=m):m=e[4];let c;e[5]!==s.publisher?(c=s.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":s.publisher.charAt(0).toUpperCase()+s.publisher.slice(1),e[5]=s.publisher,e[6]=c):c=e[6];let d;e[7]!==c?(d=t.jsx("div",{className:"font-medium",children:c}),e[7]=c,e[8]=d):d=e[8];let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"text-xs text-muted-foreground",children:"Publisher"}),e[9]=v):v=e[9];let p;e[10]!==d?(p=t.jsxs("div",{children:[d,v]}),e[10]=d,e[11]=p):p=e[11];let k;e[12]!==m||e[13]!==p?(k=t.jsx("div",{className:"px-5 border-b border-border",children:t.jsxs("div",{className:"flex items-center gap-3 py-5",children:[m,p]})}),e[12]=m,e[13]=p,e[14]=k):k=e[14];let f;e[15]!==s.version?(f=s.version&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Version"}),t.jsxs("span",{className:"text-muted-foreground uppercase text-xs",children:["v",s.version]})]}),e[15]=s.version,e[16]=f):f=e[16];let g;e[17]!==s.tags?(g=s.tags&&s.tags.length>0&&t.jsxs("div",{className:"flex justify-between items-start text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Tags"}),t.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:s.tags.map(is)})]}),e[17]=s.tags,e[18]=g):g=e[18];let h;e[19]!==s.categories?(h=s.categories&&s.categories.length>0&&t.jsxs("div",{className:"flex justify-between items-start text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Categories"}),t.jsx("div",{className:"flex flex-wrap gap-1 justify-end max-w-[60%]",children:s.categories.map(os)})]}),e[19]=s.categories,e[20]=h):h=e[20];let b;e[21]!==s.connectionType?(b=s.connectionType&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Connection Type"}),t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:s.connectionType})]}),e[21]=s.connectionType,e[22]=b):b=e[22];let x;e[23]!==s.schemaVersion?(x=s.schemaVersion&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Schema Version"}),t.jsx("span",{className:"text-muted-foreground text-xs",children:s.schemaVersion})]}),e[23]=s.schemaVersion,e[24]=x):x=e[24];let u;e[25]!==s.websiteUrl?(u=s.websiteUrl&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Website"}),t.jsxs("a",{href:s.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[t.jsx("span",{children:"Visit"}),t.jsx(Se,{size:14})]})]}),e[25]=s.websiteUrl,e[26]=u):u=e[26];let j;e[27]!==s.repository?(j=s.repository?.url&&t.jsxs("div",{className:"flex justify-between items-center text-sm",children:[t.jsx("span",{className:"text-foreground text-sm",children:"Source"}),t.jsxs("a",{href:s.repository.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[t.jsx("span",{children:"GitHub"}),t.jsx(Se,{size:14})]})]}),e[27]=s.repository,e[28]=j):j=e[28];let N;e[29]!==g||e[30]!==h||e[31]!==b||e[32]!==x||e[33]!==u||e[34]!==j||e[35]!==f?(N=t.jsxs("div",{className:"px-5 py-5 border-b border-border space-y-4",children:[f,g,h,b,x,u,j]}),e[29]=g,e[30]=h,e[31]=b,e[32]=x,e[33]=u,e[34]=j,e[35]=f,e[36]=N):N=e[36];let L;e[37]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("span",{className:"text-foreground text-sm",children:"Last Updated"}),e[37]=L):L=e[37];let I;e[38]!==o.updated_at?(I=rs(o.updated_at),e[38]=o.updated_at,e[39]=I):I=e[39];let S;e[40]!==I?(S=t.jsxs("div",{className:"px-5 py-5 text-sm flex justify-between items-center border-b border-border",children:[L,t.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:I})]}),e[40]=I,e[41]=S):S=e[41];let _;return e[42]!==a||e[43]!==N||e[44]!==S||e[45]!==k?(_=t.jsxs("div",{className:"lg:col-span-1 flex flex-col pt-5",children:[a,k,N,S]}),e[42]=a,e[43]=N,e[44]=S,e[45]=k,e[46]=_):_=e[46],_}function os(r){return t.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:r},r)}function is(r){return t.jsx("span",{className:"text-xs bg-muted px-2 py-0.5 rounded",children:r},r)}function Le(r){const e=F.c(18),{repository:s,html:n,isLoading:o,queryKey:a}=r;let l,m,c,d;e[0]!==n||e[1]!==a||e[2]!==s?(l=s?Ae(s):null,m=!!l&&n===void 0,d=me,c=a??ae.githubReadme(l?.owner,l?.repo),e[0]=n,e[1]=a,e[2]=s,e[3]=l,e[4]=m,e[5]=c,e[6]=d):(l=e[3],m=e[4],c=e[5],d=e[6]);let v;e[7]!==l?(v=async()=>l?Qt(l.owner,l.repo):null,e[7]=l,e[8]=v):v=e[8];let p;e[9]!==m||e[10]!==c||e[11]!==v?(p={queryKey:c,queryFn:v,enabled:m,staleTime:36e5,gcTime:864e5},e[9]=m,e[10]=c,e[11]=v,e[12]=p):p=e[12];const{data:k,isLoading:f}=d(p),g=n??k;if(o??(m&&f)){let u;return e[13]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx("div",{className:"flex items-center justify-center h-full",children:t.jsx(ge,{size:32,className:"animate-spin text-muted-foreground"})}),e[13]=u):u=e[13],u}if(!g){let u;return e[14]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center p-6",children:[t.jsx(yt,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"README not found"}),t.jsx("p",{className:"text-muted-foreground max-w-md",children:"This repository doesn't have a README file, or it's not publicly accessible."})]}),e[14]=u):u=e[14],u}let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b={backgroundColor:"transparent"},e[15]=b):b=e[15];let x;return e[16]!==g?(x=t.jsx("div",{className:"p-5 markdown-body",style:b,dangerouslySetInnerHTML:{__html:g}}),e[16]=g,e[17]=x):x=e[17],x}const as=[{value:"http",label:"HTTP"},{value:"sse",label:"SSE"},{value:"stdio",label:"STDIO"},{value:"all",label:"All"}],ls={docs:"Documentation",bindings:"Workers Bindings",builds:"Workers Builds",observability:"Observability",radar:"Radar",containers:"Containers",browser:"Browser Rendering",logs:"Logpush",autorag:"AutoRAG",auditlogs:"Audit Logs",graphql:"GraphQL",dex:"DEX Monitoring",casb:"CASB"};function cs(r){if(!r)return"Local";try{return new URL(r).hostname}catch{return r}}function ds(r){if(!r)return"local";try{const e=new URL(r).hostname;return e.split(".")[0]||e}catch{return"unknown"}}function ms(r){const e=ls[r.toLowerCase()];return e||r.replace(/[-_]/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function us(r){if(!r)return"http";const e=r.toLowerCase();return e==="sse"?"sse":e==="stdio"?"stdio":"http"}function fs(r){return r.map((e,s)=>{const n=us(e.type),o=cs(e.url),a=ds(e.url),l=e.title||e.name||ms(a);return{index:s,protocol:n,url:e.url,hostname:o,serviceName:a,displayName:l,name:e.name,title:e.title,description:e.description,_type:e._type,_index:e._index}})}function ps(r){const e=F.c(2),{protocol:s,className:n}=r;let o;return e[0]!==n?(o={http:t.jsx(It,{className:n}),sse:t.jsx(Lt,{className:n}),stdio:t.jsx(Mt,{className:n})},e[0]=n,e[1]=o):o=e[1],o[s]}function hs(r){const e=F.c(10),{options:s,selected:n,onSelect:o}=r;if(s.length<=1)return null;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx("span",{className:"text-sm text-muted-foreground",children:"Protocol:"}),e[0]=a):a=e[0];let l;if(e[1]!==o||e[2]!==s||e[3]!==n){let c;e[5]!==o||e[6]!==n?(c=d=>t.jsxs(ie,{variant:n===d.value?"default":"outline",size:"sm",onClick:()=>o(d.value),className:"cursor-pointer",children:[t.jsx(ps,{protocol:d.value==="all"?"http":d.value,className:"w-4 h-4 mr-1"}),d.label]},d.value),e[5]=o,e[6]=n,e[7]=c):c=e[7],l=s.map(c),e[1]=o,e[2]=s,e[3]=n,e[4]=l}else l=e[4];let m;return e[8]!==l?(m=t.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[a,t.jsx("div",{className:"flex gap-1",children:l})]}),e[8]=l,e[9]=m):m=e[9],m}function xs(r){const e=F.c(11),{servers:s,onInstall:n,isInstalling:o,icon:a,mcpName:l,showStdio:m}=r,c=o===void 0?!1:o,d=m===void 0?!1:m,v=d?s:s.filter(ys),p=fs(v),k=p.length<13?"all":"http",[f,g]=W.useState(k);let h;e:{if(f==="all"){h="all";break e}let y;if(e[0]!==f?(y=R=>R.protocol===f,e[0]=f,e[1]=y):y=e[1],p.some(y)){h=f;break e}if(p.length<13){h="all";break e}h=p[0]?.protocol??"http"}const b=h,x=b==="all"?p:p.filter(y=>y.protocol===b),u=new Set(p.map(bs));let j=as.filter(y=>y.value==="all"||u.has(y.value));d||(j=j.filter(vs));const N=u.size<=1?j.filter(gs):j,L="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4";let I;e[2]!==a||e[3]!==c||e[4]!==l||e[5]!==n?(I=y=>t.jsx(Tt,{variant:"server",icon:a??null,displayName:y.displayName,description:y.description??null,hostname:y.hostname,protocol:y.protocol,isInstalling:c,onClick:()=>n({type:y.protocol,url:y.url,name:y.name,title:y.title,description:y.description,_type:y._type,_index:y._index})},`${y.hostname}-${y.protocol}-${y.index}`),e[2]=a,e[3]=c,e[4]=l,e[5]=n,e[6]=I):I=e[6];const S=x.map(I);let _;e[7]!==S?(_=t.jsx("div",{className:L,children:S}),e[7]=S,e[8]=_):_=e[8];let E;return e[9]!==x.length?(E=x.length===0&&t.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No servers match the selected filter."}),e[9]=x.length,e[10]=E):E=e[10],t.jsxs("div",{className:"p-5",children:[t.jsx(hs,{options:N,selected:b,onSelect:g}),_,E]})}function gs(r){return r.value!=="all"}function vs(r){return r.value!=="stdio"}function bs(r){return r.protocol}function ys(r){return r.type?.toLowerCase()!=="stdio"}async function Pe(r){return(await xe(async()=>{const{default:s}=await import("./purify.es-CovBOfck.js");return{default:s}},[])).default.sanitize(r,{USE_PROFILES:{html:!0},FORBID_TAGS:["style","form"],FORBID_ATTR:["style"]})}function js(r){const e=F.c(53),{data:s,availableTabs:n,effectiveActiveTabId:o,effectiveTools:a,isLoadingTools:l,onTabChange:m,servers:c,onInstallServer:d,isInstalling:v,mcpIcon:p,mcpName:k,showStdio:f}=r,g=l===void 0?!1:l;let h;e[0]!==c?(h=c===void 0?[]:c,e[0]=c,e[1]=h):h=e[1];const b=h,x=v===void 0?!1:v,u=f===void 0?!1:f;let j;e[2]!==s.readmeMarkdown?(j=s.readmeMarkdown?.trim(),e[2]=s.readmeMarkdown,e[3]=j):j=e[3];const N=!!j;let L;e[4]!==s.readmeUrl?(L=s.readmeUrl?.trim(),e[4]=s.readmeUrl,e[5]=L):L=e[5];const I=!!L;let S;e[6]!==s.readmeMarkdown?(S=ae.storeReadmeUrl(`embedded:${s.readmeMarkdown}`),e[6]=s.readmeMarkdown,e[7]=S):S=e[7];let _;e[8]!==s.readmeMarkdown?(_=async()=>{const q=_e.parse(s.readmeMarkdown??"",{async:!1});return Pe(q)},e[8]=s.readmeMarkdown,e[9]=_):_=e[9];let E;e[10]!==N||e[11]!==S||e[12]!==_?(E={queryKey:S,queryFn:_,enabled:N,staleTime:1/0},e[10]=N,e[11]=S,e[12]=_,e[13]=E):E=e[13];const{data:y,isLoading:J}=me(E);let R;e[14]!==s.readmeUrl?(R=ae.storeReadmeUrl(s.readmeUrl),e[14]=s.readmeUrl,e[15]=R):R=e[15];let $;e[16]!==s.readmeUrl?($=async()=>{if(!s.readmeUrl)return null;const q=await fetch(s.readmeUrl);if(!q.ok)throw new Error(`Failed to fetch README (${q.status})`);const te=await q.text();return Pe(_e.parse(te,{async:!1}))},e[16]=s.readmeUrl,e[17]=$):$=e[17];const X=I&&!N;let C;e[18]!==R||e[19]!==$||e[20]!==X?(C={queryKey:R,queryFn:$,enabled:X,staleTime:36e5,gcTime:864e5},e[18]=R,e[19]=$,e[20]=X,e[21]=C):C=e[21];const{data:A,isLoading:U}=me(C),z=y??A??null,O=N&&J||!N&&U;let V;e[22]!==a?(V=a.map(Ns),e[22]=a,e[23]=V):V=e[23];const T=V;let w;e[24]!==n||e[25]!==o||e[26]!==m?(w=n.length>0&&t.jsx("div",{className:"px-4 py-2 border-b border-border bg-background",children:t.jsx(_t,{tabs:n,activeTab:o,onTabChange:m})}),e[24]=n,e[25]=o,e[26]=m,e[27]=w):w=e[27];let B;e[28]!==o||e[29]!==x||e[30]!==p||e[31]!==k||e[32]!==d||e[33]!==b||e[34]!==u?(B=o==="servers"&&b.length>0&&t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:t.jsx(xs,{servers:b,onInstall:q=>d?.(q),isInstalling:x,icon:p,mcpName:k,showStdio:u})}),e[28]=o,e[29]=x,e[30]=p,e[31]=k,e[32]=d,e[33]=b,e[34]=u,e[35]=B):B=e[35];let P;e[36]!==o||e[37]!==a.length||e[38]!==g||e[39]!==T?(P=o==="tools"&&t.jsx("div",{className:"flex flex-col flex-1",children:g?t.jsxs("div",{className:"flex items-center justify-center p-8",children:[t.jsx(ge,{size:24,className:"animate-spin"}),t.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:"Loading tools..."})]}):a.length>0?t.jsx(kt,{tools:T,showToolbar:!1,emptyMessage:"This MCP Server doesn't have any tools."}):t.jsx(bt,{image:null,title:"No tools available",description:"This MCP Server doesn't have any tools."})}),e[36]=o,e[37]=a.length,e[38]=g,e[39]=T,e[40]=P):P=e[40];let H;e[41]!==z||e[42]!==O||e[43]!==s.repository||e[44]!==o||e[45]!==N||e[46]!==I?(H=o==="readme"&&t.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:N||I?t.jsx(Le,{html:z,isLoading:O}):t.jsx(Le,{repository:s?.repository})}),e[41]=z,e[42]=O,e[43]=s.repository,e[44]=o,e[45]=N,e[46]=I,e[47]=H):H=e[47];let Q;return e[48]!==w||e[49]!==B||e[50]!==P||e[51]!==H?(Q=t.jsxs("div",{className:"lg:col-span-2 flex flex-col border-l border-border",children:[w,B,P,H]}),e[48]=w,e[49]=B,e[50]=P,e[51]=H,e[52]=Q):Q=e[52],Q}function Ns(r){const e=r;return{name:e.name||"",description:e.description||void 0}}function ws(r,e){if(!r||!e)return;const s=e.toLowerCase();return r.find(n=>n.app_name?.toLowerCase()===s||n.app_id?.toLowerCase()===s||n.title.toLowerCase()===s)||r.find(n=>n.title.toLowerCase().includes(s))}function Cs(r,e,s,n,o){if(!e||e==="Unknown")return{count:0};if(e==="io.modelcontextprotocol.registry/official")return{logo:n?.icon||void 0,count:o??r.length};const a=e.toLowerCase(),l=r.filter(c=>(c._meta?.["io.modelcontextprotocol.registry/official"]?"io.modelcontextprotocol.registry/official":c.publisher||c._meta?.["mcp.mesh"]?.scopeName||"Unknown").toLowerCase()===a);return{logo:s?.icon||l[0]?.publisher_logo||l[0]?.icon||void 0,count:l.length}}function Ss(r){const e=r._meta?.["mcp.mesh"],s=r._meta?.["io.modelcontextprotocol.registry/official"],n=r.server??{},o=wt(n?.remotes?.[0]?.type),a=Ct(n?.$schema),l=r.id?.includes("/")?r.id.split("/")[0]:void 0,m=s?"io.modelcontextprotocol.registry/official":r.publisher||e?.scopeName||l||"Unknown",c=St(n.repository),d=r.icon||r.image||r.logo||n.icons?.[0]?.src||c||null,v=r.name||r.title||r.server?.title||"Unnamed Item",p=Pt(v),k=e?.friendly_name||p,f=e?.mesh_description||r.description||r.summary||n?.description||"",g=e?.short_description||null,h=typeof e?.readme=="string"?e.readme:null,b=typeof e?.readme_url=="string"?e.readme_url:null,x=e?.tags||[],u=e?.categories||[];return{name:k,description:f,shortDescription:g,readmeMarkdown:h,readmeUrl:b,icon:d,verified:r.verified||e?.verified,publisher:m,version:n.version||null,websiteUrl:n.websiteUrl||null,repository:n.repository||null,schemaVersion:a??null,connectionType:o,connectionUrl:n?.remotes?.[0]?.url||null,remoteUrl:n?.remotes?.[0]?.url||null,tags:x,categories:u,tools:r.tools||n.tools||e?.tools||[],models:r.models||n.models||e?.models||[],emails:r.emails||n.emails||e?.emails||[],analytics:r.analytics||n.analytics||e?.analytics,cdn:r.cdn||n.cdn||e?.cdn}}class ks extends W.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,s){console.error("Store MCP server detail error:",e,s)}render(){return this.state.hasError?t.jsx(Jt,{error:this.state.error||new Error("Unknown error"),onBack:this.props.onBack}):this.props.children}}function _s(){const{org:r}=Me(),e=Re(),{appName:s}=Je({strict:!1}),{registryId:n,serverName:o,stdio:a}=Xe({strict:!1}),[l,m]=it(Ze.storeShowStdio(),()=>!1),c=a==="true"?!0:a==="false"?!1:l;a!==void 0&&a==="true"!==l&&m(a==="true");const[d,v]=W.useState(null),[p,k]=W.useState(null),[f,g]=W.useState(null),[h,b]=W.useState(!1),x=et(),u=Ut(),j=Vt(),{data:N}=tt.useSession(),L=jt(j),I=n||L[0]?.id||"",S=Bt(I),_=Nt(S?.tools),E=ke(S?.tools??null,"_VERSIONS"),y=ke(S?.tools??null,"_GET"),J=!!o;let R="",$={};J?(R=E||y,$={name:o}):(R=_,$={});const X=zt({connectionId:I||null,orgId:r.id}),{data:C}=Ft({client:X,toolName:R,toolArguments:$,select:i=>i.structuredContent??i});let A=[],U=[],z=null;if(C){if(Array.isArray(C))A=C;else if(typeof C=="object"&&C!==null)if("totalCount"in C&&typeof C.totalCount=="number"&&(z=C.totalCount),"item"in C&&C.item){const i=C.item;A=[{id:i.id||"",title:i.title,server:i.server,_meta:i._meta}]}else{let i;"versions"in C&&Array.isArray(C.versions)?i="versions":"servers"in C&&Array.isArray(C.servers)?i="servers":i=Object.keys(C).find(M=>Array.isArray(C[M])),i&&(A=C[i],(i==="versions"||R?.includes("VERSIONS"))&&(U=A))}}const O=(()=>{const i=U.findIndex(M=>M._meta?.["io.modelcontextprotocol.registry/official"]?.isLatest===!0);return i>=0?i:0})(),V=p??O;let T=A.find(i=>{const M=i.name||i.title||i.server?.title||"";return Ht(M)===s});!T&&o&&(T=A.find(i=>i.id===o||i.server?.name===o||i.name===o||i.title===o));const w=T?Ss(T):null,B=(w?.tools?.length||0)>0,P=T?.server?.remotes?.[0]?.url||null,H=!B&&!!P,Q=me({queryKey:ae.remoteMcpTools(P),queryFn:async()=>{if(!P)return[];const{Client:i}=await xe(async()=>{const{Client:Z}=await import("./index-DMmNh7jR.js").then(D=>D.cX);return{Client:Z}},__vite__mapDeps([0,1])),{StreamableHTTPClientTransport:M}=await xe(async()=>{const{StreamableHTTPClientTransport:Z}=await import("./index-bHgla3gL.js");return{StreamableHTTPClientTransport:Z}},__vite__mapDeps([2,0,1,3,4,5,6,7,8,9,10,11,12,13])),G=new i({name:"mesh-store",version:"1.0.0"}),Y=new M(new URL(P),{requestInit:{headers:{Accept:"application/json, text/event-stream","Content-Type":"application/json"}}});try{return await G.connect(Y),((await G.listTools()).tools||[]).map(D=>({name:D.name,description:D.description}))}finally{await G.close().catch(console.error)}},enabled:H}),q=H&&Q.isLoading,te=Q.data??[],se=B?w?.tools||[]:te,$e=ws(j,w?.publisher),Ue=w?Cs(A,w.publisher,$e,S??null,z):{count:0},Ve=w?.repository?Ae(w.repository):null,Be=T?.server?.remotes??[],ze=T?.server?.packages??[],ue=[...Be.map((i,M)=>({...i,_type:"remote",_index:M})),...ze.map((i,M)=>({type:"stdio",url:void 0,name:i.name||i.identifier,title:i.name||i.identifier?.replace(/^@[^/]+\//,""),description:i.environmentVariables?.length?`Requires ${i.environmentVariables.length} environment variable(s)`:void 0,_type:"package",_index:M}))],ve=c?ue:ue.filter(i=>i.type?.toLowerCase()!=="stdio"),be=ve.length>1,re=[{id:"servers",label:"Servers",count:ve.length,visible:be},{id:"readme",label:"README",visible:!!w?.readmeMarkdown||!!w?.readmeUrl||!!w?.repository&&!!Ve},{id:"tools",label:"Tools",count:se.length,visible:B||te.length>0||!!P}].filter(i=>i.visible),Fe=re.find(i=>i.id==="servers")?.id||re.find(i=>i.id==="readme")?.id||re[0]?.id||"overview",Oe=d&&re.find(i=>i.id===d)?d:Fe,fe=async(i,M,G,Y)=>{const Z=U[i??0]||T;if(!Z||!r||!N?.user?.id)return;b(!0);const D=Ot(Z,r.id,N.user.id,{remoteIndex:G===void 0?M??0:void 0,packageIndex:G}),ne=D.connection_type==="STDIO",le=!!D.connection_url,Qe=ne&&D.connection_headers&&typeof D.connection_headers=="object"&&"command"in D.connection_headers;if(!le&&!Qe){oe.error("This MCP Server cannot be connected: no connection method available");return}Y&&(D.title=Y);try{const{id:K}=await u.create.mutateAsync(D),je=new URL(`/mcp/${K}`,window.location.origin),Ne=await rt({url:je.href,token:null});if(Ne.supportsOAuth&&!Ne.isAuthenticated){const{token:ce,tokenInfo:ee,error:we}=await nt({connectionId:K});if(we||!ce)oe.error(`Authentication failed: ${we}`);else{if(ee)try{(await fetch(`/api/connections/${K}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:ee.accessToken,refreshToken:ee.refreshToken,expiresIn:ee.expiresIn,scope:ee.scope,clientId:ee.clientId,clientSecret:ee.clientSecret,tokenEndpoint:ee.tokenEndpoint})})).ok?await u.update.mutateAsync({id:K,data:{}}):await u.update.mutateAsync({id:K,data:{connection_token:ce}})}catch{await u.update.mutateAsync({id:K,data:{connection_token:ce}})}else await u.update.mutateAsync({id:K,data:{connection_token:ce}});await x.invalidateQueries({queryKey:ae.isMCPAuthenticated(je.href,null)}),oe.success("Authentication successful")}}e({to:"/$org/$project/mcps",params:{org:r.slug,project:de},search:{tab:"connected"}})}catch(K){oe.error(`Failed to connect MCP Server: ${K instanceof Error?K.message:String(K)}`),b(!1)}},pe=async(i,M,G)=>{const Y=U[i??0]||T;if(!Y)return;const Z=Y.id??Y.title,D=j.filter(ne=>ne.app_name===Z||ne.title===Y.title);if(D.length>0){const le=`${Y.title||"MCP Server"} (${D.length+1})`;g({step:"warning",existing:D,pendingArgs:[i,M,G],suggestedName:le,customName:le});return}fe(i,M,G)},He=()=>{e({to:"/$org/$project/mcps",params:{org:r.slug,project:de}})};if(!T)return t.jsx(Xt,{onBack:He});if(!w)return null;const Ge=(T?.server?.remotes?.length??0)>0,qe=(T?.server?.packages?.length??0)>0,ye=Ge||qe,Ke=t.jsx(Rt,{children:t.jsxs(Et,{children:[t.jsx(Ie,{children:t.jsx(At,{asChild:!0,children:t.jsx(st,{to:"/$org/$project/mcps",params:{org:r.slug,project:de},children:"Connections"})})}),t.jsx(Dt,{}),t.jsx(Ie,{children:t.jsx($t,{children:w.name})})]})}),We=(()=>{const i=new URL(`/store/${encodeURIComponent(s||"")}`,window.location.origin);return o&&i.searchParams.set("serverName",o),i.href})();return t.jsxs("div",{className:"flex flex-col h-full border-l border-border",children:[f&&t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:()=>g(null),children:t.jsx("div",{className:"bg-background border rounded-lg shadow-lg p-6 max-w-md w-full mx-4",onClick:i=>i.stopPropagation(),children:f.step==="warning"?t.jsxs(t.Fragment,{children:[t.jsx("h3",{className:"text-lg font-semibold mb-2",children:"MCP Already Installed"}),t.jsxs("p",{className:"text-sm text-muted-foreground mb-3",children:["You already have"," ",t.jsx("strong",{children:f.existing.length})," instance",f.existing.length!==1?"s":""," of this MCP installed:"]}),t.jsx("ul",{className:"text-sm space-y-1 mb-4 max-h-32 overflow-auto",children:f.existing.map(i=>t.jsxs("li",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx("span",{className:"font-medium text-foreground",children:i.title}),t.jsxs("span",{className:"text-xs",children:["(",i.created_at?new Date(i.created_at).toLocaleDateString():"—",")"]})]},i.id))}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md border hover:bg-muted/50 transition-colors",onClick:()=>g(null),children:"Cancel"}),t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",onClick:()=>g({...f,step:"rename"}),children:"Install Anyway"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx("h3",{className:"text-lg font-semibold mb-2",children:"Choose a name"}),t.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Give this instance a different name to distinguish it, or keep the suggested one."}),t.jsx("input",{type:"text",className:"w-full rounded-md border bg-transparent px-3 py-2 text-sm mb-4 focus:outline-none focus:ring-2 focus:ring-primary",value:f.customName,onChange:i=>g({...f,customName:i.target.value}),onKeyDown:i=>{if(i.key==="Enter"){const M=f.customName.trim()||f.suggestedName,G=f.pendingArgs;g(null),fe(...G,M)}},autoFocus:!0}),t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md border hover:bg-muted/50 transition-colors",onClick:()=>g({...f,step:"warning"}),children:"Back"}),t.jsx("button",{type:"button",className:"px-3 py-1.5 text-sm rounded-md bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",onClick:()=>{const i=f.customName.trim()||f.suggestedName,M=f.pendingArgs;g(null),fe(...M,i)},children:"Install"})]})]})})}),t.jsx(Zt,{breadcrumb:Ke,shareUrl:We}),t.jsx("div",{className:"flex-1 overflow-y-auto h-full",children:t.jsx("div",{className:"h-full",children:t.jsxs("div",{className:"h-full",children:[!ye&&t.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm text-amber-900",children:[t.jsx(Gt,{size:16,className:"inline mr-2"}),"This MCP Server cannot be connected - no connection method available."]}),t.jsx(es,{data:w,itemVersions:U.length>0?U:[T],onInstall:pe,canInstall:ye,isInstalling:h,hideInstallControls:be,selectedVersionIndex:V,onVersionChange:k}),t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 min-h-[677px]",children:[t.jsx(ns,{data:w,publisherInfo:Ue,selectedItem:T}),t.jsx(js,{data:w,availableTabs:re,effectiveActiveTabId:Oe,effectiveTools:se,isLoadingTools:q,onTabChange:v,servers:ue,onInstallServer:i=>{i._type==="remote"?pe(V,i._index,void 0):pe(V,void 0,i._index)},isInstalling:h,mcpIcon:w.icon,mcpName:w.name,showStdio:c})]})]})})})]})}function Pr(){const r=F.c(6),{org:e}=Me(),s=Re();let n;r[0]!==s||r[1]!==e.slug?(n=()=>{s({to:"/$org/$project/mcps",params:{org:e.slug,project:de}})},r[0]=s,r[1]=e.slug,r[2]=n):n=r[2];const o=n;let a;r[3]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(W.Suspense,{fallback:t.jsx(Yt,{}),children:t.jsx(_s,{})}),r[3]=a):a=r[3];let l;return r[4]!==o?(l=t.jsx(ks,{onBack:o,children:a}),r[4]=o,r[5]=l):l=r[5],l}export{Pr as default};
|