decocms 2.366.7 → 2.366.8
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-DFcOa31f.js → AlertCircle-Dyh2dUBt.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CbOlEr1w.js → ArrowNarrowLeft-DOeeOVat.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-C6axmKPR.js → ArrowUpRight-C5h8eEJl.js} +1 -1
- package/dist/client/assets/{Check-JQri_6PS.js → Check-BBN8jtrj.js} +1 -1
- package/dist/client/assets/{CheckCircle-B6HzfzYv.js → CheckCircle-BodpoDGR.js} +1 -1
- package/dist/client/assets/{ChevronDown-CNNU2L0m.js → ChevronDown-BHt79TDc.js} +1 -1
- package/dist/client/assets/{ChevronRight-BuVcgGSu.js → ChevronRight-CgiGzJK2.js} +1 -1
- package/dist/client/assets/{ChevronUp-DyIOyS2u.js → ChevronUp-Hv5s5GCl.js} +1 -1
- package/dist/client/assets/{Container-Cy3AGglh.js → Container-CmZ_UAMx.js} +1 -1
- package/dist/client/assets/{DotsVertical-DIehc2A5.js → DotsVertical-BFb-15-m.js} +1 -1
- package/dist/client/assets/{FilterLines-DHlq5ZtE.js → FilterLines-BNco6Knh.js} +1 -1
- package/dist/client/assets/{HardDrive-CAAHpLeS.js → HardDrive-Bs4cIN_I.js} +1 -1
- package/dist/client/assets/{Key01-C29UL5qH.js → Key01-BOHiIHj-.js} +1 -1
- package/dist/client/assets/{LayoutLeft-5sSkIfFI.js → LayoutLeft-NsiLg-Hz.js} +1 -1
- package/dist/client/assets/{LinkExternal01-QpHHOJbZ.js → LinkExternal01-DXkr_udM.js} +1 -1
- package/dist/client/assets/{Lock01-Ju5ifHNn.js → Lock01-BheAsQQx.js} +1 -1
- package/dist/client/assets/{Monitor01-DHHvwXbl.js → Monitor01-BkzEm6bw.js} +1 -1
- package/dist/client/assets/{Palette-CJqBw6AH.js → Palette-DPP_bV0e.js} +1 -1
- package/dist/client/assets/{Play-DPs1Pbq2.js → Play-BqGgMbL5.js} +1 -1
- package/dist/client/assets/{Plus-DgrNRFK5.js → Plus-C5l4faC1.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Bf15qfNS.js → RefreshCcw01-Cr7WlxPS.js} +1 -1
- package/dist/client/assets/{SearchMd-CuY4_41I.js → SearchMd-rTsELW21.js} +1 -1
- package/dist/client/assets/{Settings02-Cjzbasby.js → Settings02-BSu9v11-.js} +1 -1
- package/dist/client/assets/{Shield01-rI42zX_N.js → Shield01-BzHuCaEB.js} +1 -1
- package/dist/client/assets/{Star01-CiaU9xFe.js → Star01-HKceyVo1.js} +1 -1
- package/dist/client/assets/{Stars02-BHNtUcIC.js → Stars02-LrVE5fus.js} +1 -1
- package/dist/client/assets/{Sun-DA9iSyj3.js → Sun-D9eEy7za.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B0nDhziZ.js → SwitchHorizontal01-C1fzb4rn.js} +1 -1
- package/dist/client/assets/{Tool01-BpLh90bx.js → Tool01-DHXrZh_c.js} +1 -1
- package/dist/client/assets/{Trash01-BU1vvG1i.js → Trash01-v5Dy47Wj.js} +1 -1
- package/dist/client/assets/{Upload01-D2aoviL7.js → Upload01-p8VtXdXS.js} +1 -1
- package/dist/client/assets/{User01-BUxAdPGO.js → User01-CtanRIko.js} +1 -1
- package/dist/client/assets/{Users01-X9W80ATA.js → Users01-BbxKMG6t.js} +1 -1
- package/dist/client/assets/{Users03-DERc_3KT.js → Users03-Bq46oqMB.js} +1 -1
- package/dist/client/assets/{X-CpxCwBcO.js → X-DkujvqvQ.js} +1 -1
- package/dist/client/assets/{XCircle-BlhQtOFW.js → XCircle-BkF11s9b.js} +1 -1
- package/dist/client/assets/{XClose-6T_HfnSF.js → XClose-DgRHRNhM.js} +1 -1
- package/dist/client/assets/{Zap-C_gPmGTu.js → Zap-XzlBn_sj.js} +1 -1
- package/dist/client/assets/{ZapSquare-D-9nYZGQ.js → ZapSquare-sMv-roxP.js} +1 -1
- package/dist/client/assets/{accordion-CBF1VPy1.js → accordion-dqQUHOnH.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-WM_qTQCr.js → add-connection-dialog-Doxko4pY.js} +1 -1
- package/dist/client/assets/{agent-icon-BZLvaskO.js → agent-icon-q6iHyexc.js} +1 -1
- package/dist/client/assets/{agent-icons-ZEbpuDyp.js → agent-icons-A7w_l1KK.js} +1 -1
- package/dist/client/assets/{agents-list-BD4seTwq.js → agents-list-_CO5Xl7p.js} +1 -1
- package/dist/client/assets/{ai-providers-Dps_1J2i.js → ai-providers-B1ZbPwoq.js} +1 -1
- package/dist/client/assets/{alert-CmozMRgO.js → alert-DL1cbRoM.js} +1 -1
- package/dist/client/assets/{alert-dialog-Bzj7Dj8A.js → alert-dialog-B_i_ps7f.js} +1 -1
- package/dist/client/assets/{auth-catchall-Ck-h53ka.js → auth-catchall-AHvA5vWD.js} +1 -1
- package/dist/client/assets/{auth-split-layout-COCXQjkb.js → auth-split-layout-CT4AkDzg.js} +1 -1
- package/dist/client/assets/{automation-list-row-BK4XzBrA.js → automation-list-row-DxuoSGb8.js} +1 -1
- package/dist/client/assets/{automations-BIQRZeWE.js → automations-CmZJlJt9.js} +1 -1
- package/dist/client/assets/{avatar-DCmff7mq.js → avatar-BRyrVRDm.js} +1 -1
- package/dist/client/assets/{badge-ONnaTLOr.js → badge-BTq6_dwU.js} +1 -1
- package/dist/client/assets/{brand-context-DWdSQDXw.js → brand-context-D5z_TG2J.js} +1 -1
- package/dist/client/assets/{card-BsL17xby.js → card-CSM7jg8b.js} +1 -1
- package/dist/client/assets/{chat-context-4LDn0s0C.js → chat-context-CICjyzMY.js} +1 -1
- package/dist/client/assets/{checkbox-CupWiQrC.js → checkbox-Dz5JG34i.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C_FSoZy8.js → cli-auth-success-CvhsqEgg.js} +1 -1
- package/dist/client/assets/{collection-detail-rvEMorEg.js → collection-detail-CzazaoJP.js} +1 -1
- package/dist/client/assets/{collection-display-button-BMPAqbiG.js → collection-display-button-mD3oc4np.js} +1 -1
- package/dist/client/assets/{collection-search-DBZ50buZ.js → collection-search-BRyI5tKN.js} +1 -1
- package/dist/client/assets/{collection-search-Um_OB9Yj.js → collection-search-CXtVb7nz.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dtog_f2p.js → collection-table-wrapper-C7oTCBDJ.js} +1 -1
- package/dist/client/assets/{collection-tabs-DBGScRHK.js → collection-tabs-BzSk0IWN.js} +1 -1
- package/dist/client/assets/{collections-B7Zm82Yd.js → collections-BvhsS_z2.js} +1 -1
- package/dist/client/assets/{command-BbOyBJF2.js → command-CE-N-Fow.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-BB6OqliN.js → connect-desktop-dialog-C-R7zEUP.js} +1 -1
- package/dist/client/assets/{connection-card-CfeWMSHF.js → connection-card-PlQwrunz.js} +1 -1
- package/dist/client/assets/{connection-detail-pLHIqTQT.js → connection-detail-B7sBzrsj.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CU39ex55.js → connection-form-helpers-BPskqY8x.js} +1 -1
- package/dist/client/assets/{connections-Dcfpl5Vt.js → connections-BO5GNb9A.js} +1 -1
- package/dist/client/assets/{constants-z8N0NNar.js → constants-B8os5nMI.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BmH40IlP.js → decopilot-sse-pool-CibYuCaE.js} +1 -1
- package/dist/client/assets/{dialog-1TuinsgZ.js → dialog-C40tWbjB.js} +1 -1
- package/dist/client/assets/{domain-settings-CK5mrQIi.js → domain-settings-CzQQxHOD.js} +1 -1
- package/dist/client/assets/{drawer-DQoKQZB2.js → drawer-im0a0-JE.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dzjyztci.js → dropdown-menu-nlgjcLMp.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-VBJnbblQ.js → dynamic-plugin-layout-DlWKLIeK.js} +1 -1
- package/dist/client/assets/{empty-state-oNm48kH8.js → empty-state-Cw3XK_Gs.js} +1 -1
- package/dist/client/assets/{empty-state-DoRCByZ3.js → empty-state-Rnc2dhkR.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DhUh4JIU.js → extract-connection-data-D00SSnkh.js} +1 -1
- package/dist/client/assets/{features-BLue5eI4.js → features-DZ0ghQyn.js} +1 -1
- package/dist/client/assets/{file-explorer-CEsWFSVG.js → file-explorer-DMwROQk0.js} +1 -1
- package/dist/client/assets/{files-DnOIW6UR.js → files-mqgIbtsb.js} +1 -1
- package/dist/client/assets/{form-BACtGvj-.js → form-C2fWcpmD.js} +1 -1
- package/dist/client/assets/{general-D8M9QTub.js → general-BGSI6aBj.js} +1 -1
- package/dist/client/assets/{generate-id-D8MMm0i_.js → generate-id-DzmzOPfM.js} +1 -1
- package/dist/client/assets/{github-repo-picker-rt9Vt0dE.js → github-repo-picker-C0GpV9eM.js} +1 -1
- package/dist/client/assets/{hooks-BsbVht9n.js → hooks-NevP65mb.js} +1 -1
- package/dist/client/assets/{hover-card-CxINYsQV.js → hover-card-RfUTMsZA.js} +1 -1
- package/dist/client/assets/{import-from-deco-dialog-C0AXmTvu.js → import-from-deco-dialog-B0MmDUtr.js} +1 -1
- package/dist/client/assets/{index-raVE4iMU.js → index-Bf7aO1A-.js} +2 -2
- package/dist/client/assets/{index-CZPd3hrs.js → index-Bj3Gsvmx.js} +4 -4
- package/dist/client/assets/{index-BuEd39Tz.js → index-BlXuTZUL.js} +1 -1
- package/dist/client/assets/{index-D2D8zFsJ.js → index-CP1SUcsr.js} +1 -1
- package/dist/client/assets/{index-CdAXbXCD.js → index-CPUASH8Y.js} +1 -1
- package/dist/client/assets/{index-B7X0Dr5K.js → index-CbpIdzH6.js} +1 -1
- package/dist/client/assets/{index-DRu0KGyt.js → index-Ce5SKvT1.js} +1 -1
- package/dist/client/assets/{index-Bid6pGzX.js → index-D1V7gFaI.js} +1 -1
- package/dist/client/assets/{index-DsfxL555.js → index-D3AvleZU.js} +1 -1
- package/dist/client/assets/{index-zqEjYnv0.js → index-D3GzwlSX.js} +1 -1
- package/dist/client/assets/{index-CSjyCM-u.js → index-DBGGjq4P.js} +1 -1
- package/dist/client/assets/{index-DktH-nwk.js → index-DBIBJV0k.js} +1 -1
- package/dist/client/assets/{index-5btRi0pB.js → index-DGa9X7kA.js} +1 -1
- package/dist/client/assets/{index-oYU8P956.js → index-DPqqDw7W.js} +1 -1
- package/dist/client/assets/{index-DOyZEChd.js → index-DokSGh4p.js} +1 -1
- package/dist/client/assets/{index-Btb-lxzO.js → index-DsxbUaF_.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-ZgItTY4U.js → infiniteQueryObserver-Cv7QlLOi.js} +1 -1
- package/dist/client/assets/{input-CcEL_8zI.js → input-Fpo5hVEP.js} +1 -1
- package/dist/client/assets/{integration-icon-C6CHfqhT.js → integration-icon-DX7WoZFw.js} +1 -1
- package/dist/client/assets/{label-P_F_-Q8z.js → label-FRw7B4TG.js} +1 -1
- package/dist/client/assets/{layout-Cy8BIgv4.js → layout-DRV6GiLr.js} +1 -1
- package/dist/client/assets/{login-C0__NyWq.js → login-CfCMY-Xx.js} +1 -1
- package/dist/client/assets/{members-CvLryIsr.js → members-xAPoZeMG.js} +1 -1
- package/dist/client/assets/{monaco-editor-BeYwPRx7.js → monaco-editor-BqbZT3K3.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-oa232c6w.js → monitoring-stats-row-BFEaeHW_.js} +1 -1
- package/dist/client/assets/{oauth-callback-nhW5Hk7K.js → oauth-callback-ZvrYBv1e.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CBGn5V2N.js → oauth-callback-ai-provider-BUr_Gk3g.js} +1 -1
- package/dist/client/assets/{onboarding-CJebl9bX.js → onboarding-DAlRszwq.js} +1 -1
- package/dist/client/assets/{org-layout-C77vl6Iy.js → org-layout-CG7hQKSm.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-iBgNZvjR.js → org-plugin-layout-B2xqOhgA.js} +1 -1
- package/dist/client/assets/{pair-D5k2ePIl.js → pair-D1bgeRCX.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C6vbSsTR.js → plugin-empty-state-CuVTFSVp.js} +1 -1
- package/dist/client/assets/{plugin-header-CERNSvWs.js → plugin-header-CLNGHNmz.js} +1 -1
- package/dist/client/assets/{plugin-layout-Dqtz19-C.js → plugin-layout-DD5D4ZYp.js} +1 -1
- package/dist/client/assets/{popover-Biu5bUpE.js → popover-BkyXjLv-.js} +1 -1
- package/dist/client/assets/{profile-CiZbXHxj.js → profile-DJyl7mco.js} +1 -1
- package/dist/client/assets/{project-app-view-C5c0g4mg.js → project-app-view-BBzvPrjP.js} +1 -1
- package/dist/client/assets/registry-CZacfzmC.js +2 -0
- package/dist/client/assets/{registry-layout-BV5ALzTv.js → registry-layout-DmSpIEFO.js} +1 -1
- package/dist/client/assets/{required-auth-layout-6caiGmq6.js → required-auth-layout-CawOOa2O.js} +1 -1
- package/dist/client/assets/{reset-password-D0Ak5nrj.js → reset-password-rYx9wxY5.js} +1 -1
- package/dist/client/assets/{roles-DaLbowGy.js → roles-DRxguWZW.js} +1 -1
- package/dist/client/assets/{search-input-DN3bxChj.js → search-input-DglPcAnH.js} +1 -1
- package/dist/client/assets/{secrets-B6jYZgCT.js → secrets-DmZX9LsT.js} +1 -1
- package/dist/client/assets/{sections-editor-2l7dT3ea.js → sections-editor-BMpgMeff.js} +1 -1
- package/dist/client/assets/{select-BI295XE-.js → select-ufdAhrF_.js} +1 -1
- package/dist/client/assets/{settings-layout-0UTQAxIu.js → settings-layout-BBUh6Vlw.js} +1 -1
- package/dist/client/assets/{settings-section-DCgrgvZN.js → settings-section-DbssupiX.js} +1 -1
- package/dist/client/assets/{shell-controls-B5In6zvk.js → shell-controls-wYSme1hd.js} +1 -1
- package/dist/client/assets/{shell-layout-B4sASmIz.js → shell-layout-iPI2JI8_.js} +1 -1
- package/dist/client/assets/{sidebar-BQJxM_Xs.js → sidebar-CkEPveNS.js} +1 -1
- package/dist/client/assets/{skeleton-Cz-aBL4t.js → skeleton-DYoQoQqq.js} +1 -1
- package/dist/client/assets/{sortable.esm-CVet_wfm.js → sortable.esm-DUaPlB_W.js} +1 -1
- package/dist/client/assets/{spinner-CW1wo-Y2.js → spinner-CvW_7LWr.js} +1 -1
- package/dist/client/assets/{sso-DLX1tDyb.js → sso-BQiNOjXF.js} +1 -1
- package/dist/client/assets/{store-yTIcf52L.js → store-DkONcJaZ.js} +1 -1
- package/dist/client/assets/store-registry-DdExMpCJ.js +2 -0
- package/dist/client/assets/{switch-Cgc8prv4.js → switch-C_oh8iVS.js} +1 -1
- package/dist/client/assets/{table-Guyc6r0i.js → table-Dy93uecr.js} +1 -1
- package/dist/client/assets/{tabs-CbnJ7Xfx.js → tabs-Bnmd0UmR.js} +1 -1
- package/dist/client/assets/{task-status-D5nCekWh.js → task-status-Bn2_Ktxd.js} +1 -1
- package/dist/client/assets/{textarea-CUr0kaZB.js → textarea-Cna17PTh.js} +1 -1
- package/dist/client/assets/{toggle-group-D-Azql3v.js → toggle-group-Cwno-ULj.js} +1 -1
- package/dist/client/assets/{toolbar-DWP3DcTB.js → toolbar-BBemLolp.js} +1 -1
- package/dist/client/assets/{tools-list-Yx20h0-O.js → tools-list-DF6pe9Ta.js} +1 -1
- package/dist/client/assets/{tooltip-BrUaJepM.js → tooltip-Kfr4gA8D.js} +1 -1
- package/dist/client/assets/{types-C22VRq2r.js → types-DLDiONif.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DWeBiBfE.js → use-ai-providers-CewbWKWW.js} +1 -1
- package/dist/client/assets/{use-collections-DBbGR_3H.js → use-collections-JGA7MsfD.js} +1 -1
- package/dist/client/assets/{use-connection-3197jn_F.js → use-connection-IocO3s2Q.js} +1 -1
- package/dist/client/assets/{use-copy-DeOqBGNE.js → use-copy-DQ7SkKXE.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CDYPVS3p.js → use-create-virtual-mcp-BSfa--sD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Blm-Cns4.js → use-debounced-autosave-DWrKZmHW.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CgDNCbAv.js → use-delete-connection-Bg4nH-Nd.js} +1 -1
- package/dist/client/assets/{use-file-configs-CkITamMd.js → use-file-configs-DDjVwmYE.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C3Cp1KLu.js → use-infinite-scroll-jDpA-_cW.js} +1 -1
- package/dist/client/assets/{use-list-state-D2ojxj9D.js → use-list-state--Z7pVdDS.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DgIPs9M6.js → use-mcp-prompts-CvpPBs_y.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DycYaXyV.js → use-mcp-tools-POhiNXdT.js} +1 -1
- package/dist/client/assets/{use-members-XY8cJPkc.js → use-members-cPnrxPK_.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-VrXIL0dL.js → use-navigate-to-agent-DIIPigDX.js} +1 -1
- package/dist/client/assets/{use-org-auth-client--KUUMHp0.js → use-org-auth-client-DOzELmrd.js} +1 -1
- package/dist/client/assets/{use-org-sso-mHvkRXYR.js → use-org-sso-CyDwJDEM.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DvMKsAzI.js → use-organization-roles-CZP0dNKh.js} +1 -1
- package/dist/client/assets/{use-organization-settings-yjaKZxoH.js → use-organization-settings-DJc_W4n4.js} +1 -1
- package/dist/client/assets/{use-registry-connections-CPtKKagv.js → use-registry-connections-SwizXZVX.js} +1 -1
- package/dist/client/assets/{use-secrets-DaKsY9Qa.js → use-secrets-BAD7O6nA.js} +1 -1
- package/dist/client/assets/{use-status-sounds-piyGyRnD.js → use-status-sounds-RHGSJdHR.js} +1 -1
- package/dist/client/assets/{use-view-mode-FiZLQ7H4.js → use-view-mode-isYjr9TL.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-wzufKfmA.js → use-virtual-mcp-D3NBTQSJ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CedWd5FM.js +1 -0
- package/dist/client/assets/{useRouterState-C5I8d05V.js → useRouterState-CD2kdIEW.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Cu6z25rm.js +1 -0
- package/dist/client/assets/{user-CGJGTWyL.js → user-Csugwi5K.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-BV9N1_6z.js → view-mode-toggle-DXRcEzPg.js} +1 -1
- package/dist/client/assets/{workflow-BhGQkDG3.js → workflow-DvcXfyy4.js} +1 -1
- package/dist/client/assets/workflow-detail-BrOvUZpc.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esm/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/esnext/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js +6 -36
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/generated/root.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js +0 -15
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/build/src/trace/internal.js.map +1 -1
- package/dist/server/node_modules/@opentelemetry/otlp-transformer/package.json +14 -12
- package/dist/server/node_modules/{pg → pg-connection-string}/LICENSE +3 -3
- 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/protobufjs/dist/light/protobuf.js +10 -13
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/dist/server/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/dist/server/node_modules/protobufjs/dist/protobuf.js +55 -14
- package/dist/server/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/dist/server/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/dist/server/node_modules/protobufjs/package.json +1 -1
- package/dist/server/node_modules/protobufjs/src/message.js +3 -7
- package/dist/server/node_modules/protobufjs/src/object.js +6 -3
- package/dist/server/node_modules/protobufjs/src/parse.js +45 -1
- package/dist/server/node_modules/protobufjs/src/type.js +0 -1
- package/package.json +1 -1
- package/dist/client/assets/registry-a_Y0eqBG.js +0 -2
- package/dist/client/assets/store-registry-ClO-HCd4.js +0 -2
- package/dist/client/assets/useInfiniteQuery-Dn69KZzX.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CFbzjyFd.js +0 -1
- package/dist/client/assets/workflow-detail-CgGFXY1-.js +0 -1
- package/dist/server/node_modules/pg/README.md +0 -89
- package/dist/server/node_modules/pg/lib/client.js +0 -631
- package/dist/server/node_modules/pg/lib/connection-parameters.js +0 -167
- package/dist/server/node_modules/pg/lib/connection.js +0 -223
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +0 -186
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +0 -37
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +0 -83
- package/dist/server/node_modules/pg/lib/crypto/utils.js +0 -9
- package/dist/server/node_modules/pg/lib/defaults.js +0 -84
- package/dist/server/node_modules/pg/lib/index.js +0 -58
- package/dist/server/node_modules/pg/lib/native/client.js +0 -307
- 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 -241
- package/dist/server/node_modules/pg/lib/result.js +0 -107
- package/dist/server/node_modules/pg/lib/stream.js +0 -28
- package/dist/server/node_modules/pg/lib/type-overrides.js +0 -35
- package/dist/server/node_modules/pg/lib/utils.js +0 -204
- package/dist/server/node_modules/pg/package.json +0 -64
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as oe,q as ie,D as le,F as ge,G as fe,a as re,t as Y,o as L,K as Z,j as s,C as ee,J as xe,P as X,e as T,r as K,B as H,c as pe,z as he,U as te}from"./index-raVE4iMU.js";import{P as G}from"./index-oYU8P956.js";import{u as je}from"./use-org-auth-client--KUUMHp0.js";import{u as ve}from"./use-debounced-autosave-Blm-Cns4.js";import{A as be}from"./avatar-DCmff7mq.js";import{I as ae}from"./input-CcEL_8zI.js";import{S as J,a as W,b as Q,c as ye,d as Se}from"./settings-section-DCgrgvZN.js";import{D as Ce}from"./domain-settings-CK5mrQIi.js";import{u as _e,a as se,K as Ne,P as ze,D as De,c as we,S as Ae,v as Pe,b as Ie,C as Oe,s as ke,d as Ee}from"./sortable.esm-CVet_wfm.js";import{i as Fe,S as Te,u as Re}from"./constants-z8N0NNar.js";import{b as ce}from"./use-virtual-mcp-wzufKfmA.js";import{P as $e,a as Le,b as Me}from"./popover-Biu5bUpE.js";import{C as qe}from"./collection-search-DBZ50buZ.js";import{S as Ke}from"./skeleton-Cz-aBL4t.js";import{ab as Be}from"./agent-icon-BZLvaskO.js";import{s as Ve}from"./Plus-DgrNRFK5.js";import{a as de}from"./Users03-DERc_3KT.js";import{i as He}from"./X-CpxCwBcO.js";import{I as me}from"./integration-icon-C6CHfqhT.js";import{b as Ue,c as Ge}from"./use-organization-settings-yjaKZxoH.js";import{c as Qe,b as Ye,d as Ze,f as Je,e as We,g as Xe,a as et,A as tt}from"./alert-dialog-Bzj7Dj8A.js";import"./sidebar-BQJxM_Xs.js";import"./LayoutLeft-5sSkIfFI.js";import"./tooltip-BrUaJepM.js";import"./User01-BUxAdPGO.js";import"./card-BsL17xby.js";import"./ArrowUpRight-C6axmKPR.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-Cgc8prv4.js";import"./use-collections-DBbGR_3H.js";import"./SearchMd-CuY4_41I.js";import"./AlertCircle-DFcOa31f.js";import"./Tool01-BpLh90bx.js";import"./Stars02-BHNtUcIC.js";import"./SwitchHorizontal01-B0nDhziZ.js";import"./RefreshCcw01-Bf15qfNS.js";import"./ArrowNarrowLeft-CbOlEr1w.js";import"./XCircle-BlhQtOFW.js";import"./ZapSquare-D-9nYZGQ.js";import"./CheckCircle-B6HzfzYv.js";import"./Check-JQri_6PS.js";import"./ChevronDown-CNNU2L0m.js";import"./ChevronRight-BuVcgGSu.js";import"./ChevronUp-DyIOyS2u.js";import"./DotsVertical-DIehc2A5.js";import"./Container-Cy3AGglh.js";import"./FilterLines-DHlq5ZtE.js";import"./Star01-CiaU9xFe.js";import"./Palette-CJqBw6AH.js";import"./HardDrive-CAAHpLeS.js";import"./Key01-C29UL5qH.js";import"./LinkExternal01-QpHHOJbZ.js";import"./Lock01-Ju5ifHNn.js";import"./Monitor01-DHHvwXbl.js";import"./Sun-DA9iSyj3.js";import"./Play-DPs1Pbq2.js";import"./Settings02-Cjzbasby.js";import"./Shield01-rI42zX_N.js";import"./Trash01-BU1vvG1i.js";import"./Upload01-D2aoviL7.js";import"./Users01-X9W80ATA.js";import"./XClose-6T_HfnSF.js";import"./Zap-C_gPmGTu.js";const st=xe({name:X().min(1,"Name is required").max(255,"Name is too long"),slug:X().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:X().optional()});function nt(e){const t=T.c(13),{value:l,onChange:r,name:c,disabled:f}=e,n=K.useRef(null);let j;t[0]===Symbol.for("react.memo_cache_sentinel")?(j=()=>n.current?.click(),t[0]=j):j=t[0];const u=j;let v;t[1]!==r?(v=w=>{const g=w.target.files?.[0];if(!g)return;if(g.size>2097152){L.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=ot,h.onloadend=()=>{h.result&&r(h.result),n.current&&(n.current.value="")},h.readAsDataURL(g)},t[1]=r,t[2]=v):v=t[2];const o=v;let i;t[3]!==f||t[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:f}),t[3]=f,t[4]=o,t[5]=i):i=t[5];const d=l||void 0,m=c??"?";let x;t[6]!==d||t[7]!==m?(x=s.jsx(be,{url:d,fallback:m,shape:"square",size:"base"}),t[6]=d,t[7]=m,t[8]=x):x=t[8];let p;return t[9]!==f||t[10]!==i||t[11]!==x?(p=s.jsxs("button",{type:"button",onClick:u,disabled:f,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,x]}),t[9]=f,t[10]=i,t[11]=x,t[12]=p):p=t[12],p}function ot(){return L.error("Failed to read image")}function it(){const e=oe(),{org:t}=ie(),l=je(),r=le(),c=ge({resolver:fe(st),values:{name:t.name??"",slug:t.slug??"",logo:t.logo??""}}),f=re({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const d=await l.organization.update({data:i});if(d?.error)throw new Error(d.error.message||"Failed to update organization");return d},onSuccess:(o,i)=>{Y("organization_settings_updated",{organization_id:t.id,fields:Object.keys(i)}),r.invalidateQueries({queryKey:Z.organizations()}),r.invalidateQueries({queryKey:Z.activeOrganization(t.slug)}),L.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==t.slug&&e({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{Y("organization_settings_update_failed",{organization_id:t.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),L.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:j}=ve({save:async()=>{const o=c.control._formState.dirtyFields;if(Object.keys(o).length===0||!await c.trigger())return;const d=c.getValues(),m=c.control._defaultValues;c.reset(d,{keepValues:!0});try{await f.mutateAsync(d)}catch{c.reset(m,{keepValues:!0})}}}),u=c.formState.errors,v=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(J,{children:s.jsxs(W,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(nt,{value:c.watch("logo"),onChange:o=>{c.setValue("logo",o??"",{shouldDirty:!0}),j()},name:c.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(ee,{control:c.control,name:"name",render:({field:o})=>s.jsx(ae,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),j()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[v&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:v}),s.jsx(ee,{control:c.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const d=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");c.setValue("slug",d,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),j()}})})]})}),(u.name||u.slug||u.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[u.name&&s.jsx("p",{className:"text-xs text-destructive",children:u.name.message}),u.slug&&s.jsx("p",{className:"text-xs text-destructive",children:u.slug.message}),u.logo&&s.jsx("p",{className:"text-xs text-destructive",children:u.logo.message})]})]})})}const ne=8;function lt(e,t){const l=t.find(r=>r.id===e);return l?{id:e,title:l.title,icon:l.icon??null,kind:"custom"}:{id:e,title:e,icon:null,kind:"missing"}}function rt(e){const t=T.c(39),{agent:l,onRemove:r}=e;let c;t[0]!==l.id?(c={id:l.id},t[0]=l.id,t[1]=c):c=t[1];const{attributes:f,listeners:n,setNodeRef:j,transform:u,transition:v,isDragging:o}=Ie(c);let i;t[2]!==u?(i=Oe.Transform.toString(u),t[2]=u,t[3]=i):i=t[3];const d=o?.5:void 0,m=o?100:void 0;let x;t[4]!==i||t[5]!==d||t[6]!==m||t[7]!==v?(x={transform:i,transition:v,opacity:d,zIndex:m},t[4]=i,t[5]=d,t[6]=m,t[7]=v,t[8]=x):x=t[8];const p=x,w=o&&"shadow-lg";let g;t[9]!==w?(g=pe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",w),t[9]=w,t[10]=g):g=t[10];const h=`Drag to reorder ${l.title}`;let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Be,{size:14}),t[11]=S):S=t[11];let N;t[12]!==f||t[13]!==n||t[14]!==h?(N=s.jsx("button",{type:"button",...f,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:S}),t[12]=f,t[13]=n,t[14]=h,t[15]=N):N=t[15];let C;t[16]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(de,{size:14}),t[16]=C):C=t[16];let b;t[17]!==l.icon||t[18]!==l.title?(b=s.jsx(me,{icon:l.icon,name:l.title,size:"xs",fallbackIcon:C}),t[17]=l.icon,t[18]=l.title,t[19]=b):b=t[19];let _;t[20]!==l.title?(_=s.jsx("span",{className:"text-sm text-foreground truncate",children:l.title}),t[20]=l.title,t[21]=_):_=t[21];const P=l.kind==="custom"?"Custom agent":"Unavailable";let y;t[22]!==P?(y=s.jsx("span",{className:"text-xs text-muted-foreground",children:P}),t[22]=P,t[23]=y):y=t[23];let A;t[24]!==_||t[25]!==y?(A=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[_,y]}),t[24]=_,t[25]=y,t[26]=A):A=t[26];const z=`Remove ${l.title}`;let D;t[27]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(He,{size:14}),t[27]=D):D=t[27];let a;t[28]!==r||t[29]!==z?(a=s.jsx("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":z,children:D}),t[28]=r,t[29]=z,t[30]=a):a=t[30];let I;return t[31]!==j||t[32]!==p||t[33]!==N||t[34]!==b||t[35]!==A||t[36]!==a||t[37]!==g?(I=s.jsxs("div",{ref:j,style:p,className:g,children:[N,b,A,a]}),t[31]=j,t[32]=p,t[33]=N,t[34]=b,t[35]=A,t[36]=a,t[37]=g,t[38]=I):I=t[38],I}function at(e){const t=T.c(39),{selectedIds:l,onAdd:r}=e,[c,f]=K.useState(!1),[n,j]=K.useState(""),u=ce();let v;t[0]!==l?(v=new Set(l),t[0]=l,t[1]=v):v=t[1];const o=v;let i,d,m,x,p,w,g,h,S,N;if(t[2]!==u||t[3]!==r||t[4]!==c||t[5]!==n||t[6]!==o){const P=n.toLowerCase();let y;t[17]!==o?(y=a=>a.id!==null&&!Fe(a.id)&&!o.has(a.id),t[17]=o,t[18]=y):y=t[18];const A=u.filter(y).filter(a=>!n||a.title.toLowerCase().includes(P));let z;t[19]!==r?(z=a=>{r(a),f(!1),j("")},t[19]=r,t[20]=z):z=t[20];const D=z;d=$e,h=c,S=f,t[21]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Le,{asChild:!0,children:s.jsxs(H,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),t[21]=N):N=t[21],i=Me,p="w-[320px] p-0 overflow-hidden",w="start",t[22]!==n?(g=s.jsx(qe,{value:n,onChange:j,placeholder:"Search agents..."}),t[22]=n,t[23]=g):g=t[23],m="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",x=A.length>0?s.jsx("div",{className:"flex flex-col gap-1",children:A.map(a=>s.jsxs("button",{type:"button",onClick:()=>D(a.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(me,{icon:a.icon,name:a.title,size:"xs",fallbackIcon:s.jsx(de,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:a.title})]},a.id))}):s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),t[2]=u,t[3]=r,t[4]=c,t[5]=n,t[6]=o,t[7]=i,t[8]=d,t[9]=m,t[10]=x,t[11]=p,t[12]=w,t[13]=g,t[14]=h,t[15]=S,t[16]=N}else i=t[7],d=t[8],m=t[9],x=t[10],p=t[11],w=t[12],g=t[13],h=t[14],S=t[15],N=t[16];let C;t[24]!==m||t[25]!==x?(C=s.jsx("div",{className:m,children:x}),t[24]=m,t[25]=x,t[26]=C):C=t[26];let b;t[27]!==i||t[28]!==C||t[29]!==p||t[30]!==w||t[31]!==g?(b=s.jsxs(i,{className:p,align:w,children:[g,C]}),t[27]=i,t[28]=C,t[29]=p,t[30]=w,t[31]=g,t[32]=b):b=t[32];let _;return t[33]!==d||t[34]!==b||t[35]!==h||t[36]!==S||t[37]!==N?(_=s.jsxs(d,{open:h,onOpenChange:S,children:[N,b]}),t[33]=d,t[34]=b,t[35]=h,t[36]=S,t[37]=N,t[38]=_):_=t[38],_}function ct(){const e=T.c(61),t=Ue(),l=ce(),r=Ge();let c;e[0]!==t?.ids?(c=t?.ids??[],e[0]=t?.ids,e[1]=c):c=e[1];const f=c,[n,j]=K.useState(f);let u;e[2]!==n||e[3]!==f?(u=n.length!==f.length||n.some((k,F)=>k!==f[F]),e[2]=n,e[3]=f,e[4]=u):u=e[4];const v=u;let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},e[5]=o):o=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:ke},e[6]=i):i=e[6];const d=_e(se(ze,o),se(Ne,i));let m;e[7]!==n?(m=k=>{const{active:F,over:M}=k;if(!M||F.id===M.id)return;const q=n.indexOf(F.id),$=n.indexOf(M.id);q===-1||$===-1||j(Ee([...n],q,$))},e[7]=n,e[8]=m):m=e[8];const x=m;let p;e[9]!==n?(p=k=>{n.includes(k)||j([...n,k])},e[9]=n,e[10]=p):p=e[10];const w=p;let g;e[11]!==n?(g=k=>{j(n.filter(F=>F!==k))},e[11]=n,e[12]=g):g=e[12];const h=g;let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{j([])},e[13]=S):S=e[13];const N=S;let C;e[14]!==n||e[15]!==r?(C=()=>{r.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length}),L.success("Default home agents updated")},onError:dt})},e[14]=n,e[15]=r,e[16]=C):C=e[16];const b=C;let _,P,y,A,z,D,a;if(e[17]!==l||e[18]!==n||e[19]!==x||e[20]!==h||e[21]!==d||e[22]!==r.isPending){let k;e[30]!==l?(k=$=>lt($,l),e[30]=l,e[31]=k):k=e[31];const F=n.map(k);y=Math.max(0,n.length-ne),P=J,z="Default home agents";const M=r.isPending||n.length===0;let q;e[32]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(he,{size:14}),e[32]=q):q=e[32],e[33]!==M?(D=s.jsxs(H,{type:"button",variant:"ghost",size:"sm",onClick:N,disabled:M,children:[q,"Clear all"]}),e[33]=M,e[34]=D):D=e[34],_=W,a="px-5 py-5 flex flex-col gap-3",A=F.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(De,{sensors:d,collisionDetection:we,onDragEnd:x,children:s.jsx(Ae,{items:n,strategy:Pe,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:F.map(($,ue)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[ue===ne&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(rt,{agent:$,onRemove:()=>h($.id)})]},$.id))})})}),e[17]=l,e[18]=n,e[19]=x,e[20]=h,e[21]=d,e[22]=r.isPending,e[23]=_,e[24]=P,e[25]=y,e[26]=A,e[27]=z,e[28]=D,e[29]=a}else _=e[23],P=e[24],y=e[25],A=e[26],z=e[27],D=e[28],a=e[29];let I;e[35]!==n||e[36]!==w?(I=s.jsx(at,{selectedIds:n,onAdd:w}),e[35]=n,e[36]=w,e[37]=I):I=e[37];let O;e[38]!==y?(O=y>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[y," agent",y===1?"":"s"," won't fit on the home view"]}),e[38]=y,e[39]=O):O=e[39];let E;e[40]!==I||e[41]!==O?(E=s.jsxs("div",{className:"flex items-center justify-between",children:[I,O]}),e[40]=I,e[41]=O,e[42]=E):E=e[42];let R;e[43]!==A||e[44]!==E||e[45]!==a?(R=s.jsxs("div",{className:a,children:[A,E]}),e[43]=A,e[44]=E,e[45]=a,e[46]=R):R=e[46];let B;e[47]!==b||e[48]!==f||e[49]!==v||e[50]!==r.isPending?(B=v&&s.jsxs(ye,{children:[s.jsx(H,{type:"button",variant:"outline",onClick:()=>j(f),disabled:r.isPending,children:"Cancel"}),s.jsx(H,{type:"button",onClick:b,disabled:r.isPending,children:r.isPending?"Saving…":"Save"})]}),e[47]=b,e[48]=f,e[49]=v,e[50]=r.isPending,e[51]=B):B=e[51];let V;e[52]!==_||e[53]!==R||e[54]!==B?(V=s.jsxs(_,{children:[R,B]}),e[52]=_,e[53]=R,e[54]=B,e[55]=V):V=e[55];let U;return e[56]!==P||e[57]!==z||e[58]!==D||e[59]!==V?(U=s.jsx(P,{title:z,actions:D,children:V}),e[56]=P,e[57]=z,e[58]=D,e[59]=V,e[60]=U):U=e[60],U}function dt(e){L.error(e instanceof Error?e.message:"Failed to update default home agents")}function mt(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(J,{title:"Default home agents",children:s.jsx(W,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(ut)})})}),e[0]=t):t=e[0],t}function ut(e,t){return s.jsx(Ke,{className:"h-12 w-full rounded-lg"},t)}function gt(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(K.Suspense,{fallback:s.jsx(mt,{}),children:s.jsx(ct,{})}),e[0]=t):t=e[0],t}function ft(){const e=T.c(47),{org:t}=ie(),l=oe(),r=le(),[c,f]=K.useState(!1),[n,j]=K.useState("");let u;e[0]!==t.id||e[1]!==t.slug?(u={connectionId:Te,orgSlug:t.slug,orgId:t.id},e[0]=t.id,e[1]=t.slug,e[2]=u):u=e[2];const v=Re(u);let o;e[3]!==t.id||e[4]!==v?(o=async()=>{const O=await v.callTool({name:"ORGANIZATION_DELETE",arguments:{id:t.id}});if(O.isError){const E=O.content,R=Array.isArray(E)&&E[0]?.type==="text"&&typeof E[0].text=="string"?E[0].text:"Failed to delete organization";throw new Error(R)}},e[3]=t.id,e[4]=v,e[5]=o):o=e[5];let i;e[6]!==l||e[7]!==t.id||e[8]!==t.slug||e[9]!==r?(i=()=>{Y("organization_deleted",{organization_id:t.id}),localStorage.getItem(te.lastOrgSlug())===t.slug&&localStorage.removeItem(te.lastOrgSlug()),r.removeQueries({queryKey:Z.activeOrganization(t.slug)}),r.invalidateQueries({queryKey:Z.organizations()}),L.success("Organization deleted"),l({to:"/"})},e[6]=l,e[7]=t.id,e[8]=t.slug,e[9]=r,e[10]=i):i=e[10];let d;e[11]!==o||e[12]!==i?(d={mutationFn:o,onSuccess:i,onError:xt},e[11]=o,e[12]=i,e[13]=d):d=e[13];const m=re(d);let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=()=>f(!0),e[14]=x):x=e[14];let p;e[15]!==m.isPending?(p=s.jsx(J,{title:"Danger Zone",description:"Irreversible actions that affect your entire organization.",children:s.jsx(W,{className:"border-destructive/40",children:s.jsx(Q,{title:"Delete organization",description:"Permanently delete this organization and all of its data. This action cannot be undone.",action:s.jsx(H,{variant:"destructive",size:"sm",onClick:x,disabled:m.isPending,children:"Delete"})})})}),e[15]=m.isPending,e[16]=p):p=e[16];let w;e[17]===Symbol.for("react.memo_cache_sentinel")?(w=O=>{f(O),O||j("")},e[17]=w):w=e[17];let g;e[18]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Qe,{children:"Delete Organization?"}),e[18]=g):g=e[18];let h;e[19]!==t.name?(h=s.jsxs("p",{children:["This will permanently delete all data associated with"," ",s.jsx("span",{className:"font-medium text-foreground",children:t.name}),". This action cannot be undone."]}),e[19]=t.name,e[20]=h):h=e[20];let S;e[21]!==t.name?(S=s.jsxs("p",{className:"mt-3 mb-1.5",children:["Type"," ",s.jsx("span",{className:"font-medium text-foreground",children:t.name})," ","to confirm:"]}),e[21]=t.name,e[22]=S):S=e[22];let N;e[23]===Symbol.for("react.memo_cache_sentinel")?(N=O=>j(O.target.value),e[23]=N):N=e[23];let C;e[24]!==n||e[25]!==t.name?(C=s.jsx(ae,{value:n,onChange:N,placeholder:t.name,autoFocus:!0}),e[24]=n,e[25]=t.name,e[26]=C):C=e[26];let b;e[27]!==C||e[28]!==h||e[29]!==S?(b=s.jsxs(Ye,{children:[g,s.jsx(Ze,{asChild:!0,children:s.jsxs("div",{children:[h,S,C]})})]}),e[27]=C,e[28]=h,e[29]=S,e[30]=b):b=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Je,{children:"Cancel"}),e[31]=_):_=e[31];let P;e[32]!==m?(P=()=>m.mutate(),e[32]=m,e[33]=P):P=e[33];const y=n!==t.name||m.isPending,A=m.isPending?"Deleting…":"Delete organization";let z;e[34]!==P||e[35]!==y||e[36]!==A?(z=s.jsxs(We,{children:[_,s.jsx(Xe,{onClick:P,disabled:y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:A})]}),e[34]=P,e[35]=y,e[36]=A,e[37]=z):z=e[37];let D;e[38]!==b||e[39]!==z?(D=s.jsxs(et,{children:[b,z]}),e[38]=b,e[39]=z,e[40]=D):D=e[40];let a;e[41]!==c||e[42]!==D?(a=s.jsx(tt,{open:c,onOpenChange:w,children:D}),e[41]=c,e[42]=D,e[43]=a):a=e[43];let I;return e[44]!==a||e[45]!==p?(I=s.jsxs(s.Fragment,{children:[p,a]}),e[44]=a,e[45]=p,e[46]=I):I=e[46],I}function xt(e){L.error(e instanceof Error?e.message:"Failed to delete organization")}function pt(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Se,{children:[s.jsx(G.Title,{children:"Organization"}),s.jsx(it,{}),s.jsx(Ce,{}),s.jsx(gt,{}),s.jsx(ft,{})]})})})}),e[0]=t):t=e[0],t}function zs(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(pt,{}),e[0]=t):t=e[0],t}export{zs as default};
|
|
1
|
+
import{f as oe,q as ie,D as le,F as ge,G as fe,a as re,t as Y,o as L,K as Z,j as s,C as ee,J as xe,P as X,e as T,r as K,B as H,c as pe,z as he,U as te}from"./index-Bf7aO1A-.js";import{P as G}from"./index-DPqqDw7W.js";import{u as je}from"./use-org-auth-client-DOzELmrd.js";import{u as ve}from"./use-debounced-autosave-DWrKZmHW.js";import{A as be}from"./avatar-BRyrVRDm.js";import{I as ae}from"./input-Fpo5hVEP.js";import{S as J,a as W,b as Q,c as ye,d as Se}from"./settings-section-DbssupiX.js";import{D as Ce}from"./domain-settings-CzQQxHOD.js";import{u as _e,a as se,K as Ne,P as ze,D as De,c as we,S as Ae,v as Pe,b as Ie,C as Oe,s as ke,d as Ee}from"./sortable.esm-DUaPlB_W.js";import{i as Fe,S as Te,u as Re}from"./constants-B8os5nMI.js";import{b as ce}from"./use-virtual-mcp-D3NBTQSJ.js";import{P as $e,a as Le,b as Me}from"./popover-BkyXjLv-.js";import{C as qe}from"./collection-search-BRyI5tKN.js";import{S as Ke}from"./skeleton-DYoQoQqq.js";import{ab as Be}from"./agent-icon-q6iHyexc.js";import{s as Ve}from"./Plus-C5l4faC1.js";import{a as de}from"./Users03-Bq46oqMB.js";import{i as He}from"./X-DkujvqvQ.js";import{I as me}from"./integration-icon-DX7WoZFw.js";import{b as Ue,c as Ge}from"./use-organization-settings-DJc_W4n4.js";import{c as Qe,b as Ye,d as Ze,f as Je,e as We,g as Xe,a as et,A as tt}from"./alert-dialog-B_i_ps7f.js";import"./sidebar-CkEPveNS.js";import"./LayoutLeft-NsiLg-Hz.js";import"./tooltip-Kfr4gA8D.js";import"./User01-CtanRIko.js";import"./card-CSM7jg8b.js";import"./ArrowUpRight-C5h8eEJl.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-C_oh8iVS.js";import"./use-collections-JGA7MsfD.js";import"./SearchMd-rTsELW21.js";import"./AlertCircle-Dyh2dUBt.js";import"./Tool01-DHXrZh_c.js";import"./Stars02-LrVE5fus.js";import"./SwitchHorizontal01-C1fzb4rn.js";import"./RefreshCcw01-Cr7WlxPS.js";import"./ArrowNarrowLeft-DOeeOVat.js";import"./XCircle-BkF11s9b.js";import"./ZapSquare-sMv-roxP.js";import"./CheckCircle-BodpoDGR.js";import"./Check-BBN8jtrj.js";import"./ChevronDown-BHt79TDc.js";import"./ChevronRight-CgiGzJK2.js";import"./ChevronUp-Hv5s5GCl.js";import"./DotsVertical-BFb-15-m.js";import"./Container-CmZ_UAMx.js";import"./FilterLines-BNco6Knh.js";import"./Star01-HKceyVo1.js";import"./Palette-DPP_bV0e.js";import"./HardDrive-Bs4cIN_I.js";import"./Key01-BOHiIHj-.js";import"./LinkExternal01-DXkr_udM.js";import"./Lock01-BheAsQQx.js";import"./Monitor01-BkzEm6bw.js";import"./Sun-D9eEy7za.js";import"./Play-BqGgMbL5.js";import"./Settings02-BSu9v11-.js";import"./Shield01-BzHuCaEB.js";import"./Trash01-v5Dy47Wj.js";import"./Upload01-p8VtXdXS.js";import"./Users01-BbxKMG6t.js";import"./XClose-DgRHRNhM.js";import"./Zap-XzlBn_sj.js";const st=xe({name:X().min(1,"Name is required").max(255,"Name is too long"),slug:X().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:X().optional()});function nt(e){const t=T.c(13),{value:l,onChange:r,name:c,disabled:f}=e,n=K.useRef(null);let j;t[0]===Symbol.for("react.memo_cache_sentinel")?(j=()=>n.current?.click(),t[0]=j):j=t[0];const u=j;let v;t[1]!==r?(v=w=>{const g=w.target.files?.[0];if(!g)return;if(g.size>2097152){L.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=ot,h.onloadend=()=>{h.result&&r(h.result),n.current&&(n.current.value="")},h.readAsDataURL(g)},t[1]=r,t[2]=v):v=t[2];const o=v;let i;t[3]!==f||t[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:f}),t[3]=f,t[4]=o,t[5]=i):i=t[5];const d=l||void 0,m=c??"?";let x;t[6]!==d||t[7]!==m?(x=s.jsx(be,{url:d,fallback:m,shape:"square",size:"base"}),t[6]=d,t[7]=m,t[8]=x):x=t[8];let p;return t[9]!==f||t[10]!==i||t[11]!==x?(p=s.jsxs("button",{type:"button",onClick:u,disabled:f,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,x]}),t[9]=f,t[10]=i,t[11]=x,t[12]=p):p=t[12],p}function ot(){return L.error("Failed to read image")}function it(){const e=oe(),{org:t}=ie(),l=je(),r=le(),c=ge({resolver:fe(st),values:{name:t.name??"",slug:t.slug??"",logo:t.logo??""}}),f=re({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const d=await l.organization.update({data:i});if(d?.error)throw new Error(d.error.message||"Failed to update organization");return d},onSuccess:(o,i)=>{Y("organization_settings_updated",{organization_id:t.id,fields:Object.keys(i)}),r.invalidateQueries({queryKey:Z.organizations()}),r.invalidateQueries({queryKey:Z.activeOrganization(t.slug)}),L.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==t.slug&&e({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{Y("organization_settings_update_failed",{organization_id:t.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),L.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:j}=ve({save:async()=>{const o=c.control._formState.dirtyFields;if(Object.keys(o).length===0||!await c.trigger())return;const d=c.getValues(),m=c.control._defaultValues;c.reset(d,{keepValues:!0});try{await f.mutateAsync(d)}catch{c.reset(m,{keepValues:!0})}}}),u=c.formState.errors,v=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(J,{children:s.jsxs(W,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(nt,{value:c.watch("logo"),onChange:o=>{c.setValue("logo",o??"",{shouldDirty:!0}),j()},name:c.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(ee,{control:c.control,name:"name",render:({field:o})=>s.jsx(ae,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),j()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[v&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:v}),s.jsx(ee,{control:c.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const d=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");c.setValue("slug",d,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),j()}})})]})}),(u.name||u.slug||u.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[u.name&&s.jsx("p",{className:"text-xs text-destructive",children:u.name.message}),u.slug&&s.jsx("p",{className:"text-xs text-destructive",children:u.slug.message}),u.logo&&s.jsx("p",{className:"text-xs text-destructive",children:u.logo.message})]})]})})}const ne=8;function lt(e,t){const l=t.find(r=>r.id===e);return l?{id:e,title:l.title,icon:l.icon??null,kind:"custom"}:{id:e,title:e,icon:null,kind:"missing"}}function rt(e){const t=T.c(39),{agent:l,onRemove:r}=e;let c;t[0]!==l.id?(c={id:l.id},t[0]=l.id,t[1]=c):c=t[1];const{attributes:f,listeners:n,setNodeRef:j,transform:u,transition:v,isDragging:o}=Ie(c);let i;t[2]!==u?(i=Oe.Transform.toString(u),t[2]=u,t[3]=i):i=t[3];const d=o?.5:void 0,m=o?100:void 0;let x;t[4]!==i||t[5]!==d||t[6]!==m||t[7]!==v?(x={transform:i,transition:v,opacity:d,zIndex:m},t[4]=i,t[5]=d,t[6]=m,t[7]=v,t[8]=x):x=t[8];const p=x,w=o&&"shadow-lg";let g;t[9]!==w?(g=pe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",w),t[9]=w,t[10]=g):g=t[10];const h=`Drag to reorder ${l.title}`;let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Be,{size:14}),t[11]=S):S=t[11];let N;t[12]!==f||t[13]!==n||t[14]!==h?(N=s.jsx("button",{type:"button",...f,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:S}),t[12]=f,t[13]=n,t[14]=h,t[15]=N):N=t[15];let C;t[16]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(de,{size:14}),t[16]=C):C=t[16];let b;t[17]!==l.icon||t[18]!==l.title?(b=s.jsx(me,{icon:l.icon,name:l.title,size:"xs",fallbackIcon:C}),t[17]=l.icon,t[18]=l.title,t[19]=b):b=t[19];let _;t[20]!==l.title?(_=s.jsx("span",{className:"text-sm text-foreground truncate",children:l.title}),t[20]=l.title,t[21]=_):_=t[21];const P=l.kind==="custom"?"Custom agent":"Unavailable";let y;t[22]!==P?(y=s.jsx("span",{className:"text-xs text-muted-foreground",children:P}),t[22]=P,t[23]=y):y=t[23];let A;t[24]!==_||t[25]!==y?(A=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[_,y]}),t[24]=_,t[25]=y,t[26]=A):A=t[26];const z=`Remove ${l.title}`;let D;t[27]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(He,{size:14}),t[27]=D):D=t[27];let a;t[28]!==r||t[29]!==z?(a=s.jsx("button",{type:"button",onClick:r,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":z,children:D}),t[28]=r,t[29]=z,t[30]=a):a=t[30];let I;return t[31]!==j||t[32]!==p||t[33]!==N||t[34]!==b||t[35]!==A||t[36]!==a||t[37]!==g?(I=s.jsxs("div",{ref:j,style:p,className:g,children:[N,b,A,a]}),t[31]=j,t[32]=p,t[33]=N,t[34]=b,t[35]=A,t[36]=a,t[37]=g,t[38]=I):I=t[38],I}function at(e){const t=T.c(39),{selectedIds:l,onAdd:r}=e,[c,f]=K.useState(!1),[n,j]=K.useState(""),u=ce();let v;t[0]!==l?(v=new Set(l),t[0]=l,t[1]=v):v=t[1];const o=v;let i,d,m,x,p,w,g,h,S,N;if(t[2]!==u||t[3]!==r||t[4]!==c||t[5]!==n||t[6]!==o){const P=n.toLowerCase();let y;t[17]!==o?(y=a=>a.id!==null&&!Fe(a.id)&&!o.has(a.id),t[17]=o,t[18]=y):y=t[18];const A=u.filter(y).filter(a=>!n||a.title.toLowerCase().includes(P));let z;t[19]!==r?(z=a=>{r(a),f(!1),j("")},t[19]=r,t[20]=z):z=t[20];const D=z;d=$e,h=c,S=f,t[21]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(Le,{asChild:!0,children:s.jsxs(H,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),t[21]=N):N=t[21],i=Me,p="w-[320px] p-0 overflow-hidden",w="start",t[22]!==n?(g=s.jsx(qe,{value:n,onChange:j,placeholder:"Search agents..."}),t[22]=n,t[23]=g):g=t[23],m="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",x=A.length>0?s.jsx("div",{className:"flex flex-col gap-1",children:A.map(a=>s.jsxs("button",{type:"button",onClick:()=>D(a.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(me,{icon:a.icon,name:a.title,size:"xs",fallbackIcon:s.jsx(de,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:a.title})]},a.id))}):s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),t[2]=u,t[3]=r,t[4]=c,t[5]=n,t[6]=o,t[7]=i,t[8]=d,t[9]=m,t[10]=x,t[11]=p,t[12]=w,t[13]=g,t[14]=h,t[15]=S,t[16]=N}else i=t[7],d=t[8],m=t[9],x=t[10],p=t[11],w=t[12],g=t[13],h=t[14],S=t[15],N=t[16];let C;t[24]!==m||t[25]!==x?(C=s.jsx("div",{className:m,children:x}),t[24]=m,t[25]=x,t[26]=C):C=t[26];let b;t[27]!==i||t[28]!==C||t[29]!==p||t[30]!==w||t[31]!==g?(b=s.jsxs(i,{className:p,align:w,children:[g,C]}),t[27]=i,t[28]=C,t[29]=p,t[30]=w,t[31]=g,t[32]=b):b=t[32];let _;return t[33]!==d||t[34]!==b||t[35]!==h||t[36]!==S||t[37]!==N?(_=s.jsxs(d,{open:h,onOpenChange:S,children:[N,b]}),t[33]=d,t[34]=b,t[35]=h,t[36]=S,t[37]=N,t[38]=_):_=t[38],_}function ct(){const e=T.c(61),t=Ue(),l=ce(),r=Ge();let c;e[0]!==t?.ids?(c=t?.ids??[],e[0]=t?.ids,e[1]=c):c=e[1];const f=c,[n,j]=K.useState(f);let u;e[2]!==n||e[3]!==f?(u=n.length!==f.length||n.some((k,F)=>k!==f[F]),e[2]=n,e[3]=f,e[4]=u):u=e[4];const v=u;let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},e[5]=o):o=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:ke},e[6]=i):i=e[6];const d=_e(se(ze,o),se(Ne,i));let m;e[7]!==n?(m=k=>{const{active:F,over:M}=k;if(!M||F.id===M.id)return;const q=n.indexOf(F.id),$=n.indexOf(M.id);q===-1||$===-1||j(Ee([...n],q,$))},e[7]=n,e[8]=m):m=e[8];const x=m;let p;e[9]!==n?(p=k=>{n.includes(k)||j([...n,k])},e[9]=n,e[10]=p):p=e[10];const w=p;let g;e[11]!==n?(g=k=>{j(n.filter(F=>F!==k))},e[11]=n,e[12]=g):g=e[12];const h=g;let S;e[13]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{j([])},e[13]=S):S=e[13];const N=S;let C;e[14]!==n||e[15]!==r?(C=()=>{r.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length}),L.success("Default home agents updated")},onError:dt})},e[14]=n,e[15]=r,e[16]=C):C=e[16];const b=C;let _,P,y,A,z,D,a;if(e[17]!==l||e[18]!==n||e[19]!==x||e[20]!==h||e[21]!==d||e[22]!==r.isPending){let k;e[30]!==l?(k=$=>lt($,l),e[30]=l,e[31]=k):k=e[31];const F=n.map(k);y=Math.max(0,n.length-ne),P=J,z="Default home agents";const M=r.isPending||n.length===0;let q;e[32]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(he,{size:14}),e[32]=q):q=e[32],e[33]!==M?(D=s.jsxs(H,{type:"button",variant:"ghost",size:"sm",onClick:N,disabled:M,children:[q,"Clear all"]}),e[33]=M,e[34]=D):D=e[34],_=W,a="px-5 py-5 flex flex-col gap-3",A=F.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(De,{sensors:d,collisionDetection:we,onDragEnd:x,children:s.jsx(Ae,{items:n,strategy:Pe,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:F.map(($,ue)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[ue===ne&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(rt,{agent:$,onRemove:()=>h($.id)})]},$.id))})})}),e[17]=l,e[18]=n,e[19]=x,e[20]=h,e[21]=d,e[22]=r.isPending,e[23]=_,e[24]=P,e[25]=y,e[26]=A,e[27]=z,e[28]=D,e[29]=a}else _=e[23],P=e[24],y=e[25],A=e[26],z=e[27],D=e[28],a=e[29];let I;e[35]!==n||e[36]!==w?(I=s.jsx(at,{selectedIds:n,onAdd:w}),e[35]=n,e[36]=w,e[37]=I):I=e[37];let O;e[38]!==y?(O=y>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[y," agent",y===1?"":"s"," won't fit on the home view"]}),e[38]=y,e[39]=O):O=e[39];let E;e[40]!==I||e[41]!==O?(E=s.jsxs("div",{className:"flex items-center justify-between",children:[I,O]}),e[40]=I,e[41]=O,e[42]=E):E=e[42];let R;e[43]!==A||e[44]!==E||e[45]!==a?(R=s.jsxs("div",{className:a,children:[A,E]}),e[43]=A,e[44]=E,e[45]=a,e[46]=R):R=e[46];let B;e[47]!==b||e[48]!==f||e[49]!==v||e[50]!==r.isPending?(B=v&&s.jsxs(ye,{children:[s.jsx(H,{type:"button",variant:"outline",onClick:()=>j(f),disabled:r.isPending,children:"Cancel"}),s.jsx(H,{type:"button",onClick:b,disabled:r.isPending,children:r.isPending?"Saving…":"Save"})]}),e[47]=b,e[48]=f,e[49]=v,e[50]=r.isPending,e[51]=B):B=e[51];let V;e[52]!==_||e[53]!==R||e[54]!==B?(V=s.jsxs(_,{children:[R,B]}),e[52]=_,e[53]=R,e[54]=B,e[55]=V):V=e[55];let U;return e[56]!==P||e[57]!==z||e[58]!==D||e[59]!==V?(U=s.jsx(P,{title:z,actions:D,children:V}),e[56]=P,e[57]=z,e[58]=D,e[59]=V,e[60]=U):U=e[60],U}function dt(e){L.error(e instanceof Error?e.message:"Failed to update default home agents")}function mt(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(J,{title:"Default home agents",children:s.jsx(W,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(ut)})})}),e[0]=t):t=e[0],t}function ut(e,t){return s.jsx(Ke,{className:"h-12 w-full rounded-lg"},t)}function gt(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(K.Suspense,{fallback:s.jsx(mt,{}),children:s.jsx(ct,{})}),e[0]=t):t=e[0],t}function ft(){const e=T.c(47),{org:t}=ie(),l=oe(),r=le(),[c,f]=K.useState(!1),[n,j]=K.useState("");let u;e[0]!==t.id||e[1]!==t.slug?(u={connectionId:Te,orgSlug:t.slug,orgId:t.id},e[0]=t.id,e[1]=t.slug,e[2]=u):u=e[2];const v=Re(u);let o;e[3]!==t.id||e[4]!==v?(o=async()=>{const O=await v.callTool({name:"ORGANIZATION_DELETE",arguments:{id:t.id}});if(O.isError){const E=O.content,R=Array.isArray(E)&&E[0]?.type==="text"&&typeof E[0].text=="string"?E[0].text:"Failed to delete organization";throw new Error(R)}},e[3]=t.id,e[4]=v,e[5]=o):o=e[5];let i;e[6]!==l||e[7]!==t.id||e[8]!==t.slug||e[9]!==r?(i=()=>{Y("organization_deleted",{organization_id:t.id}),localStorage.getItem(te.lastOrgSlug())===t.slug&&localStorage.removeItem(te.lastOrgSlug()),r.removeQueries({queryKey:Z.activeOrganization(t.slug)}),r.invalidateQueries({queryKey:Z.organizations()}),L.success("Organization deleted"),l({to:"/"})},e[6]=l,e[7]=t.id,e[8]=t.slug,e[9]=r,e[10]=i):i=e[10];let d;e[11]!==o||e[12]!==i?(d={mutationFn:o,onSuccess:i,onError:xt},e[11]=o,e[12]=i,e[13]=d):d=e[13];const m=re(d);let x;e[14]===Symbol.for("react.memo_cache_sentinel")?(x=()=>f(!0),e[14]=x):x=e[14];let p;e[15]!==m.isPending?(p=s.jsx(J,{title:"Danger Zone",description:"Irreversible actions that affect your entire organization.",children:s.jsx(W,{className:"border-destructive/40",children:s.jsx(Q,{title:"Delete organization",description:"Permanently delete this organization and all of its data. This action cannot be undone.",action:s.jsx(H,{variant:"destructive",size:"sm",onClick:x,disabled:m.isPending,children:"Delete"})})})}),e[15]=m.isPending,e[16]=p):p=e[16];let w;e[17]===Symbol.for("react.memo_cache_sentinel")?(w=O=>{f(O),O||j("")},e[17]=w):w=e[17];let g;e[18]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Qe,{children:"Delete Organization?"}),e[18]=g):g=e[18];let h;e[19]!==t.name?(h=s.jsxs("p",{children:["This will permanently delete all data associated with"," ",s.jsx("span",{className:"font-medium text-foreground",children:t.name}),". This action cannot be undone."]}),e[19]=t.name,e[20]=h):h=e[20];let S;e[21]!==t.name?(S=s.jsxs("p",{className:"mt-3 mb-1.5",children:["Type"," ",s.jsx("span",{className:"font-medium text-foreground",children:t.name})," ","to confirm:"]}),e[21]=t.name,e[22]=S):S=e[22];let N;e[23]===Symbol.for("react.memo_cache_sentinel")?(N=O=>j(O.target.value),e[23]=N):N=e[23];let C;e[24]!==n||e[25]!==t.name?(C=s.jsx(ae,{value:n,onChange:N,placeholder:t.name,autoFocus:!0}),e[24]=n,e[25]=t.name,e[26]=C):C=e[26];let b;e[27]!==C||e[28]!==h||e[29]!==S?(b=s.jsxs(Ye,{children:[g,s.jsx(Ze,{asChild:!0,children:s.jsxs("div",{children:[h,S,C]})})]}),e[27]=C,e[28]=h,e[29]=S,e[30]=b):b=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Je,{children:"Cancel"}),e[31]=_):_=e[31];let P;e[32]!==m?(P=()=>m.mutate(),e[32]=m,e[33]=P):P=e[33];const y=n!==t.name||m.isPending,A=m.isPending?"Deleting…":"Delete organization";let z;e[34]!==P||e[35]!==y||e[36]!==A?(z=s.jsxs(We,{children:[_,s.jsx(Xe,{onClick:P,disabled:y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:A})]}),e[34]=P,e[35]=y,e[36]=A,e[37]=z):z=e[37];let D;e[38]!==b||e[39]!==z?(D=s.jsxs(et,{children:[b,z]}),e[38]=b,e[39]=z,e[40]=D):D=e[40];let a;e[41]!==c||e[42]!==D?(a=s.jsx(tt,{open:c,onOpenChange:w,children:D}),e[41]=c,e[42]=D,e[43]=a):a=e[43];let I;return e[44]!==a||e[45]!==p?(I=s.jsxs(s.Fragment,{children:[p,a]}),e[44]=a,e[45]=p,e[46]=I):I=e[46],I}function xt(e){L.error(e instanceof Error?e.message:"Failed to delete organization")}function pt(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(G,{children:s.jsx(G.Content,{children:s.jsx(G.Body,{children:s.jsxs(Se,{children:[s.jsx(G.Title,{children:"Organization"}),s.jsx(it,{}),s.jsx(Ce,{}),s.jsx(gt,{}),s.jsx(ft,{})]})})})}),e[0]=t):t=e[0],t}function zs(){const e=T.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(pt,{}),e[0]=t):t=e[0],t}export{zs as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as r}from"./collections-
|
|
1
|
+
import{B as r}from"./collections-BvhsS_z2.js";import{bR as o}from"./index-Bf7aO1A-.js";const m=o(r,{target:"draft-7"});let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",l=(t=21)=>{let e="",a=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)e+=n[a[t]&63];return e};function s(t){return`${t}_${l()}`}export{m as B,s as g};
|
package/dist/client/assets/{github-repo-picker-rt9Vt0dE.js → github-repo-picker-C0GpV9eM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as G,j as t,r as A,q,b as J,D as K,I as W,H as Z,R as U,l as M,a as X,o as H,K as B,n as ee,c as D,s as te}from"./index-
|
|
1
|
+
import{e as G,j as t,r as A,q,b as J,D as K,I as W,H as Z,R as U,l as M,a as X,o as H,K as B,n as ee,c as D,s as te}from"./index-Bf7aO1A-.js";import{a as ne}from"./use-virtual-mcp-D3NBTQSJ.js";import{a as V}from"./use-navigate-to-agent-DIIPigDX.js";import{c as se,d as oe,a as re,b as ie}from"./dialog-C40tWbjB.js";import{C as F}from"./checkbox-Dz5JG34i.js";import{C as le}from"./collection-search-CXtVb7nz.js";import{b as ae,u as ce}from"./use-connection-IocO3s2Q.js";import{W as ue,u as P,S as Q}from"./constants-B8os5nMI.js";import{i as Y}from"./RefreshCcw01-Cr7WlxPS.js";import{i as de}from"./Lock01-BheAsQQx.js";import{n as me}from"./agent-icon-q6iHyexc.js";import{a as fe}from"./use-mcp-tools-POhiNXdT.js";import{e as ge}from"./extract-connection-data-D00SSnkh.js";const pe=`<svg width="74" height="84" viewBox="0 0 74 84" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
2
|
<path d="M63.4462 15.3005C63.1414 15.2764 57.2333 15.1845 57.2333 15.1845C57.2333 15.1845 52.2906 10.3849 51.8019 9.89426C51.6127 9.71981 51.3729 9.60981 51.1172 9.58008V83.0253L73.2664 77.5175C73.2664 77.5175 64.2277 16.3953 64.1696 15.9772C64.1417 15.7997 64.055 15.6366 63.9235 15.5139C63.7919 15.3913 63.6255 15.3162 63.4462 15.3005Z" fill="#171717"/>
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.748 0.00356357C34.8334 -0.0568526 36.5759 0.651298 37.9307 2.10122C38.0276 2.20613 38.1209 2.31463 38.2109 2.42544L38.2354 2.42349C38.4434 2.40657 38.6494 2.38638 38.8574 2.38638H38.8672C41.9831 2.3913 44.5571 4.16796 46.3184 7.527C46.8023 8.4621 47.2004 9.43976 47.5068 10.4469L49.9883 9.67837C50.3609 9.56961 51.315 9.42163 51.8037 9.90981L51.9922 82.3883L51.1162 83.0387L0 74.1979C0.0195597 74.0466 6.09952 27.0238 6.3291 25.3629C6.63636 23.1661 6.70922 23.0933 9.03906 22.361L16.957 19.9079C17.4531 16.377 19.1884 11.8165 21.4746 8.18423C24.7237 3.02487 28.7273 0.119714 32.748 0.00356357ZM38.8408 26.7077C38.8133 26.694 36.5926 25.6009 32.2842 25.8747C21.032 26.5853 15.9341 34.4515 16.4229 42.2213C17.0059 51.4485 26.2283 51.1199 26.584 56.734C26.6686 58.0922 25.8271 60.0114 23.4658 60.1588C19.8562 60.3883 15.3438 56.9831 15.3438 56.9831L13.6191 64.3249C13.6191 64.3249 18.1021 69.1296 26.2432 68.6149C33.027 68.1895 37.7351 62.759 37.2344 54.8249C36.5981 44.7397 25.2729 43.7966 25.002 39.4948C24.9512 38.7038 25.0055 35.556 29.9932 35.2418C33.3786 35.0279 36.2354 36.3195 36.2666 36.3336L38.8408 26.7077ZM32.8262 2.6813C26.6181 2.86014 21.2028 12.5587 19.8213 19.0211L26.8311 16.8512C27.6101 12.7476 29.5648 8.48928 32.1221 5.74868C33.0162 4.76667 34.0719 3.94401 35.2432 3.31704H35.2451C34.5654 2.87005 33.7695 2.66203 32.8262 2.6813ZM36.9775 5.46548C35.7921 5.95366 34.7952 6.80972 34.0791 7.57583C32.1608 9.63716 30.5951 12.7807 29.7725 15.9391L38.3057 13.2956C38.3322 11.0721 38.0904 7.7854 36.9775 5.46548ZM39.7568 5.14907C40.7052 7.59721 40.9505 10.4321 40.9795 12.4694L44.9473 11.2389C44.3133 9.17981 42.8075 5.72907 39.7568 5.14907Z" fill="#393939"/>
|
|
4
4
|
</svg>`,xe=`data:image/svg+xml,${encodeURIComponent(pe)}`,De={title:"New Website",description:"Website cloned from a public template",url:"https://github.com/decocms/webapp-template",owner:"decocms",name:"webapp-template"},qe={title:"Shopify Headless Store",description:"Shopify Headless Store cloned from a public template",url:"https://github.com/Shopify/hydrogen-demo-store",owner:"Shopify",name:"hydrogen-demo-store",icon:xe};function Be(){const s=G.c(6),e=ne(),n=V();let o;s[0]!==e.create||s[1]!==n?(o=async i=>{const m=await e.create.mutateAsync({title:i.title,description:i.description,icon:i.icon??null,status:"active",pinned:!0,connections:[],metadata:{githubRepo:{url:i.url,owner:i.owner,name:i.name},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}}});return m.id&&n(m.id),m},s[0]=e.create,s[1]=n,s[2]=o):o=s[2];const c=o;let r;return s[3]!==e.create.isPending||s[4]!==c?(r={createFromTemplate:c,isCreating:e.create.isPending},s[3]=e.create.isPending,s[4]=c,s[5]=r):r=s[5],r}function $(s){const e=G.c(4),{size:n,className:o}=s;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=c):c=e[0];let r;return e[1]!==o||e[2]!==n?(r=t.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:o,children:c}),e[1]=o,e[2]=n,e[3]=r):r=e[3],r}function he(s,e){const n=G.c(4),[o,c]=A.useState(s);let r,i;return n[0]!==e||n[1]!==s?(r=()=>{const m=setTimeout(()=>c(s),e);return()=>clearTimeout(m)},i=[s,e],n[0]=e,n[1]=s,n[2]=r,n[3]=i):(r=n[2],i=n[3]),A.useEffect(r,i),o}function ye(s,e){const n=G.c(12),{org:o}=q();let c;n[0]!==o.id?(c=ue.REGISTRY(o.id),n[0]=o.id,n[1]=c):c=n[1];const r=c;let i;n[2]!==o.id||n[3]!==o.slug||n[4]!==r?(i={connectionId:r,orgId:o.id,orgSlug:o.slug},n[2]=o.id,n[3]=o.slug,n[4]=r,n[5]=i):i=n[5];const m=P(i);let x;n[6]!==s?(x={name:s},n[6]=s,n[7]=x):x=n[7];const p=e?.enabled??!0;let h;return n[8]!==m||n[9]!==x||n[10]!==p?(h={client:m,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:x,enabled:p,staleTime:3e5,select:be},n[8]=m,n[9]=x,n[10]=p,n[11]=h):h=n[11],fe(h)}function be(s){return s.structuredContent?.item??null}const je="deco/mcp-github";function we(s){const{org:e}=q(),{data:n}=J.useSession(),o=ae(),c=K(),[r,i]=A.useState("idle"),[m,x]=A.useState(null),[p,h]=A.useState(null),{data:b,isLoading:a}=ye(je,{enabled:s.enabled}),C=A.useRef(!1);s.enabled&&b&&!a&&!C.current&&n?.user?.id&&r==="idle"&&(C.current=!0,j());async function j(){if(!(!b||!n?.user?.id||!e))try{i("installing"),x(null);const u=ge(b,e.id,n.user.id,{remoteIndex:0});if(!u.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:y}=await o.create.mutateAsync(u);i("authenticating");const S=new URL(`/api/${e.slug}/mcp/${y}`,window.location.origin),d=await W({url:S.href,token:null,orgId:e.id});if(d.supportsOAuth&&!d.isAuthenticated){const{token:v,tokenInfo:g,error:I}=await Z({connectionId:y,orgSlug:e.slug,scope:"offline_access"});if(I||!v){try{await o.delete.mutateAsync(y)}catch{}throw new Error(I??"No token received from GitHub")}if(g)try{(await fetch(`/api/${e.slug}/connections/${y}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:g.accessToken,refreshToken:g.refreshToken,expiresIn:g.expiresIn,scope:g.scope,clientId:g.clientId,clientSecret:g.clientSecret,tokenEndpoint:g.tokenEndpoint})})).ok||await o.update.mutateAsync({id:y,data:{connection_token:v}})}catch{await o.update.mutateAsync({id:y,data:{connection_token:v}})}}U(c,e.id),h(u),i("ready")}catch(u){x(u instanceof Error?u.message:String(u)),i("error")}}function w(){i("idle"),x(null),h(null),C.current=!1}return s.enabled&&a&&r==="idle"?{status:"installing",error:null,connection:null,retry:w}:{status:r,error:m,connection:p,retry:w}}const L=[{key:"auto-respond-to-issues",triggerType:"github.issues.opened",nameSuffix:"auto-respond to issues",label:"Auto-respond to new issues",defaultEnabled:!0,instructions:({owner:s,name:e})=>`A new GitHub issue has been opened in ${s}/${e}. Read the issue, explore relevant code, create a branch, implement the fix, and open a PR referencing the issue number.`},{key:"review-incoming-prs",triggerType:"github.pull_request.opened",nameSuffix:"review incoming PRs",label:"Review incoming pull requests",defaultEnabled:!0,instructions:({owner:s,name:e})=>`A pull request was opened in ${s}/${e}. Read the diff, summarize what changed, flag risks (security, perf, breaking changes), and leave a review comment.`},{key:"note-merged-prs",triggerType:"github.pull_request.closed",nameSuffix:"note merged/closed PRs",label:"Note merged or closed PRs",defaultEnabled:!1,instructions:({owner:s,name:e})=>`A pull request was closed in ${s}/${e}. If it was merged, update changelog/release notes as appropriate.`}];function Ce(s,e){const n=new Set;if(s.paramsSchema)for(const c of Object.keys(s.paramsSchema))n.add(c);if(Array.isArray(s.params))for(const c of s.params)n.add(c.name);else if(s.params&&typeof s.params=="object")for(const c of Object.keys(s.params))n.add(c);if(n.has("repo"))return{repo:`${e.owner}/${e.name}`};const o={};return n.has("owner")&&(o.owner=e.owner),n.has("name")&&(o.name=e.name),n.has("repository")&&(o.repository=`${e.owner}/${e.name}`),o}async function Se({githubCallTool:s,selfCallTool:e,virtualMcpId:n,repo:o,connectionId:c,selectedKeys:r}){const i=await s({name:"TRIGGER_LIST",arguments:{}}),m=i.structuredContent??i,x=new Map((m.triggers??[]).map(a=>[a.type,a])),p=L.filter(a=>r.has(a.key)),h=await Promise.allSettled(p.map(async a=>{const C=x.get(a.triggerType);if(!C)throw new Error(`Trigger ${a.triggerType} not exposed`);const j=await e({name:"AUTOMATION_CREATE",arguments:{name:`${o.name}: ${a.nameSuffix}`,virtual_mcp_id:n,messages:a.instructions(o),active:!0}}),w=(j.structuredContent??j).id;if(!w)throw new Error(`AUTOMATION_CREATE returned no id for ${a.key}`);await e({name:"AUTOMATION_TRIGGER_ADD",arguments:{automation_id:w,type:"event",connection_id:c,event_type:a.triggerType,params:Ce(C,o)}})})),b=h.filter(a=>a.status==="rejected").length;return b>0&&console.error("Some GitHub automations failed to set up:",h.filter(a=>a.status==="rejected")),{total:h.length,failed:b}}function Fe(s){const e=G.c(21),{open:n,onOpenChange:o,title:c,hideAutoRespondCheckbox:r,onImportComplete:i}=s,m=c===void 0?"Import from GitHub":c,x=r===void 0?!1:r,[p,h]=A.useState(null);let b;e[0]!==m?(b=t.jsx(se,{className:"sr-only",children:t.jsx(oe,{children:m})}),e[0]=m,e[1]=b):b=e[1];let a;e[2]!==p||e[3]!==m?(a=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:p?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>h(null),className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Back to accounts",children:t.jsx(Y,{size:16})}),t.jsx("img",{src:p.avatarUrl,alt:p.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:p.login})]}):t.jsxs(t.Fragment,{children:[t.jsx($,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:m})]})}),e[2]=p,e[3]=m,e[4]=a):a=e[4];let C;e[5]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(M,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=C):C=e[5];let j;e[6]!==o?(j=()=>o(!1),e[6]=o,e[7]=j):j=e[7];let w;e[8]!==x||e[9]!==i||e[10]!==p||e[11]!==j?(w=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(A.Suspense,{fallback:C,children:t.jsx(Ne,{onComplete:j,selectedInstallation:p,onSelectInstallation:h,hideAutoRespondCheckbox:x,onImportComplete:i})})}),e[8]=x,e[9]=i,e[10]=p,e[11]=j,e[12]=w):w=e[12];let u;e[13]!==b||e[14]!==a||e[15]!==w?(u=t.jsxs(re,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[b,a,w]}),e[13]=b,e[14]=a,e[15]=w,e[16]=u):u=e[16];let f;return e[17]!==o||e[18]!==n||e[19]!==u?(f=t.jsx(ie,{open:n,onOpenChange:o,children:u}),e[17]=o,e[18]=n,e[19]=u,e[20]=f):f=e[20],f}function Ne({onComplete:s,selectedInstallation:e,onSelectInstallation:n,hideAutoRespondCheckbox:o,onImportComplete:c}){const{org:r}=q(),i=K(),m=V(),[x,p]=A.useState(null),[h,b]=A.useState(!0),[a,C]=A.useState(()=>new Set(L.filter(l=>l.defaultEnabled).map(l=>l.key))),j=L.filter(l=>l.defaultEnabled).map(l=>l.key),w=o?new Set(j):h?a:new Set,u=ce({slug:"mcp-github"}),f=we({enabled:u.length===0}),y=u.length===1?u[0]??null:x,S=P({connectionId:y?.id??"",orgId:r.id,orgSlug:r.slug}),d=P({connectionId:Q,orgId:r.id,orgSlug:r.slug}),v=async(l,N)=>{try{const T=await S.callTool({name:"get_file_contents",arguments:{owner:l.owner,repo:l.name,path:N}});if(T.isError)return null;const O=T.content?.find(R=>R.type==="resource")?.resource?.text;if(!O)return null;try{const R=JSON.parse(O);return typeof R=="string"?R:JSON.stringify(R)}catch{return O}}catch{return null}},g=(l,N)=>{Promise.all([v(N,"AGENTS.md"),v(N,"CLAUDE.md")]).then(async([k,T])=>{const E=k??T??null;E&&(await d.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:l,data:{metadata:{instructions:E}}}}),U(i,r.id))}).catch(k=>{console.error("GitHub instructions fetch failed:",k)})},I=async({virtualMcpId:l,repo:N,connectionId:k,selectedKeys:T})=>{const{total:E,failed:O}=await Se({githubCallTool:R=>S.callTool(R),selfCallTool:R=>d.callTool(R),virtualMcpId:l,repo:N,connectionId:k,selectedKeys:T});O>0&&H.warning(`Set up ${E-O}/${E} GitHub automations. Add the rest from the automations view.`)},_=X({mutationFn:async l=>{if(!y||!e)throw new Error("No GitHub connection or installation");const N=y.id,k=await d.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:l.name,description:l.description||"Imported from GitHub",pinned:!0,icon:null,metadata:{githubRepo:{owner:l.owner,name:l.name,url:l.url,installationId:e.installationId,connectionId:N},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:N}]}}}),T=k.structuredContent??k,E=T.item.id;return w.size>0&&await I({virtualMcpId:E,repo:l,connectionId:N,selectedKeys:w}).catch(O=>{console.error("Failed to set up GitHub automations:",O),H.warning("Imported repo, but failed to set up GitHub automations. You can add triggers manually from the automations view.")}),{virtualMcpId:E,repo:l,connectionId:N,item:T.item}},onSuccess:({virtualMcpId:l,repo:N,connectionId:k,item:T})=>{if(i.setQueryData(B.collectionItem(d,r.id,"","VIRTUAL_MCP",l),{item:T}),U(i,r.id),g(l,N),c){c({virtualMcpId:l,repo:N,connectionId:k});return}H.success(`Imported ${N.name} from GitHub`),s(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),m(l)},onError:l=>{H.error("Failed to import repo: "+(l instanceof Error?l.message:"Unknown error"))}});return f.status==="installing"||f.status==="authenticating"?t.jsx(z,{status:f.status,error:null,retry:f.retry}):f.status==="error"?t.jsx(z,{status:"error",error:f.error,retry:f.retry}):u.length===0&&f.status==="idle"?t.jsx(z,{status:"installing",error:null,retry:f.retry}):u.length>1&&!y?t.jsxs("div",{className:"flex flex-col py-2",children:[t.jsx("div",{className:"px-4 py-2",children:t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a connection"})}),u.map(l=>t.jsxs("button",{type:"button",onClick:()=>p(l),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[l.icon?t.jsx("img",{src:l.icon,alt:l.title,className:"size-7 rounded-full shrink-0"}):t.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:t.jsx($,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:l.title})]},l.id))]}):y?e?t.jsx(Ie,{connectionId:y.id,orgId:r.id,orgSlug:r.slug,installation:e,onSelectRepo:l=>_.mutate(l),isSaving:_.isPending,autoRespondEnabled:h,onAutoRespondChange:b,selectedAutomationKeys:a,onAutomationKeysChange:C,hideAutoRespondCheckbox:o}):t.jsx(ve,{connectionId:y.id,orgId:r.id,orgSlug:r.slug,onSelect:n,showBackButton:u.length>1,onBack:()=>p(null)}):null}function ve(s){const e=G.c(31),{connectionId:n,orgId:o,orgSlug:c,onSelect:r,showBackButton:i,onBack:m}=s;let x;e[0]!==o||e[1]!==c?(x={connectionId:Q,orgId:o,orgSlug:c},e[0]=o,e[1]=c,e[2]=x):x=e[2];const p=P(x);let h;e[3]!==n||e[4]!==o?(h=B.githubUserOrgs(o,n),e[3]=n,e[4]=o,e[5]=h):h=e[5];let b;e[6]!==n||e[7]!==p?(b=async()=>{const I=(await p.callTool({name:"GITHUB_LIST_USER_ORGS",arguments:{connectionId:n}})).content?.[0]?.text;if(!I)throw new Error("No response from GITHUB_LIST_USER_ORGS");return JSON.parse(I)},e[6]=n,e[7]=p,e[8]=b):b=e[8];let a;e[9]!==h||e[10]!==b?(a={queryKey:h,queryFn:b},e[9]=h,e[10]=b,e[11]=a):a=e[11];const C=ee(a);if(C.isLoading){let g;return e[12]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(M,{size:18,className:"animate-spin text-muted-foreground"})}),e[12]=g):g=e[12],g}if(C.isError){let g;return e[13]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("p",{className:"text-sm text-destructive",children:"Failed to load GitHub accounts"})}),e[13]=g):g=e[13],g}const j=C.data;if(!j)return null;let w;e[14]!==m||e[15]!==i?(w=i&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:m,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(Y,{size:12}),"Change connection"]})}),e[14]=m,e[15]=i,e[16]=w):w=e[16];let u;if(e[17]!==j.installations||e[18]!==r){let g;e[20]!==r?(g=I=>t.jsxs("button",{type:"button",onClick:()=>r(I),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left group",children:[t.jsx("img",{src:I.avatarUrl,alt:I.login,className:"size-7 rounded-full shrink-0 ring-1 ring-border"}),t.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[t.jsx("span",{className:"text-sm font-medium leading-none",children:I.login}),I.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:"Personal account"})]}),t.jsx("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:"Select →"})]},I.installationId),e[20]=r,e[21]=g):g=e[21],u=j.installations.map(g),e[17]=j.installations,e[18]=r,e[19]=u}else u=e[19];let f;e[22]!==u?(f=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:u}),e[22]=u,e[23]=f):f=e[23];const y=j.appSlug?`https://github.com/apps/${j.appSlug}/installations/new`:"https://github.com/settings/installations";let S;e[24]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("span",{className:"underline underline-offset-2",children:"Install the GitHub App"}),e[24]=S):S=e[24];let d;e[25]!==y?(d=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:y,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Account not listed?"," ",S]})}),e[25]=y,e[26]=d):d=e[26];let v;return e[27]!==d||e[28]!==w||e[29]!==f?(v=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[w,f,d]}),e[27]=d,e[28]=w,e[29]=f,e[30]=v):v=e[30],v}function Ie(s){const e=G.c(27),{connectionId:n,orgId:o,orgSlug:c,installation:r,onSelectRepo:i,isSaving:m,autoRespondEnabled:x,onAutoRespondChange:p,selectedAutomationKeys:h,onAutomationKeysChange:b,hideAutoRespondCheckbox:a}=s,[C,j]=A.useState(""),w=he(C,300),u=A.useDeferredValue(w),f=C!==u;let y;e[0]!==f||e[1]!==C?(y=t.jsx(le,{placeholder:"Search repositories...",value:C,onChange:j,isSearching:f}),e[0]=f,e[1]=C,e[2]=y):y=e[2];const S=f?"opacity-40":"opacity-100";let d;e[3]!==S?(d=D("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",S),e[3]=S,e[4]=d):d=e[4];let v;e[5]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(M,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=v):v=e[5];let g;e[6]!==n||e[7]!==u||e[8]!==r||e[9]!==m||e[10]!==i||e[11]!==o||e[12]!==c?(g=t.jsx(A.Suspense,{fallback:v,children:t.jsx(ke,{connectionId:n,orgId:o,orgSlug:c,installation:r,query:u,onSelectRepo:i,isSaving:m})}),e[6]=n,e[7]=u,e[8]=r,e[9]=m,e[10]=i,e[11]=o,e[12]=c,e[13]=g):g=e[13];let I;e[14]!==d||e[15]!==g?(I=t.jsx("div",{className:d,children:g}),e[14]=d,e[15]=g,e[16]=I):I=e[16];let _;e[17]!==x||e[18]!==a||e[19]!==p||e[20]!==b||e[21]!==h?(_=!a&&t.jsxs("div",{className:"border-t border-border shrink-0",children:[t.jsxs("label",{className:"flex items-center gap-2 px-4 py-3 cursor-pointer select-none",children:[t.jsx(F,{checked:x,onCheckedChange:N=>p(N===!0)}),t.jsx("span",{className:"text-xs text-foreground",children:"Set up GitHub automations for this repo"})]}),x&&t.jsx("div",{className:"px-4 pb-3 pl-9 flex flex-col gap-1.5",children:L.map(N=>t.jsxs("label",{className:"flex items-center gap-2 cursor-pointer select-none",children:[t.jsx(F,{checked:h.has(N.key),onCheckedChange:k=>{const T=new Set(h);k===!0?T.add(N.key):T.delete(N.key),b(T)}}),t.jsx("span",{className:"text-xs text-muted-foreground",children:N.label})]},N.key))})]}),e[17]=x,e[18]=a,e[19]=p,e[20]=b,e[21]=h,e[22]=_):_=e[22];let l;return e[23]!==y||e[24]!==I||e[25]!==_?(l=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[y,I,_]}),e[23]=y,e[24]=I,e[25]=_,e[26]=l):l=e[26],l}function ke(s){const e=G.c(29),{connectionId:n,orgId:o,orgSlug:c,installation:r,query:i,onSelectRepo:m,isSaving:x}=s;let p;e[0]!==n||e[1]!==o||e[2]!==c?(p={connectionId:n,orgId:o,orgSlug:c},e[0]=n,e[1]=o,e[2]=c,e[3]=p):p=e[3];const h=P(p),b=r.type==="User"?"user":"org",a=i?`${b}:${r.login} ${i} in:name`:`${b}:${r.login}`;let C;e[4]!==n||e[5]!==r.login||e[6]!==o||e[7]!==i?(C=B.githubOrgRepos(o,n,r.login,i),e[4]=n,e[5]=r.login,e[6]=o,e[7]=i,e[8]=C):C=e[8];let j;e[9]!==h||e[10]!==a?(j=async S=>{const{signal:d}=S,g=(await h.callTool({name:"search_repositories",arguments:{query:a,page:1,perPage:30}},void 0,{signal:d})).content?.[0]?.text;if(!g)throw new Error("No response from search_repositories");return(JSON.parse(g).items??[]).map(Te)},e[9]=h,e[10]=a,e[11]=j):j=e[11];let w;e[12]!==C||e[13]!==j?(w={queryKey:C,queryFn:j},e[12]=C,e[13]=j,e[14]=w):w=e[14];const{data:u}=te(w);if(u.length===0){let S;e[15]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("p",{className:"text-sm text-muted-foreground",children:"No repositories found"}),e[15]=S):S=e[15];let d;e[16]!==i?(d=i&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try a different search term"}),e[16]=i,e[17]=d):d=e[17];let v;return e[18]!==d?(v=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[S,d]}),e[18]=d,e[19]=v):v=e[19],v}let f;if(e[20]!==x||e[21]!==m||e[22]!==u){let S;e[24]!==x||e[25]!==m?(S=d=>t.jsxs("button",{type:"button",onClick:()=>m(d),disabled:x,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors text-left disabled:opacity-50 disabled:cursor-not-allowed",children:[t.jsx($,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children:d.name})}),t.jsxs("span",{className:"flex items-center gap-1 text-xs font-medium text-muted-foreground border border-border rounded px-1.5 py-0.5 shrink-0 leading-none",children:[d.private?t.jsx(de,{size:10}):t.jsx(me,{size:10}),d.private?"Private":"Public"]})]},d.fullName),e[24]=x,e[25]=m,e[26]=S):S=e[26],f=u.map(S),e[20]=x,e[21]=m,e[22]=u,e[23]=f}else f=e[23];let y;return e[27]!==f?(y=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:f}),e[27]=f,e[28]=y):y=e[28],y}function Te(s){return{name:s.name,fullName:s.full_name,owner:s.full_name.split("/")[0]??"",url:s.html_url,private:s.private,description:s.description,updatedAt:s.updated_at}}function z(s){const e=G.c(33),{status:n,error:o,retry:c}=s;if(n==="error"){let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx($,{className:"size-5 text-destructive"})}),e[0]=g):g=e[0];let I;e[1]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx("p",{className:"text-sm font-medium",children:"Connection failed"}),e[1]=I):I=e[1];const _=o??"Something went wrong while connecting to GitHub.";let l;e[2]!==_?(l=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[I,t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:_})]}),e[2]=_,e[3]=l):l=e[3];let N;e[4]!==c?(N=t.jsx("button",{type:"button",onClick:c,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:"Try again"}),e[4]=c,e[5]=N):N=e[5];let k;return e[6]!==l||e[7]!==N?(k=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[g,l,N]}),e[6]=l,e[7]=N,e[8]=k):k=e[8],k}const r=n==="authenticating";let i;e[9]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx($,{className:"size-5 text-foreground"})}),e[9]=i):i=e[9];let m;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsxs("div",{className:"relative size-10",children:[i,t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 size-4 rounded-full bg-background flex items-center justify-center",children:t.jsx(M,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[10]=m):m=e[10];const x=r?"Authenticating with GitHub":"Setting up GitHub";let p;e[11]!==x?(p=t.jsx("p",{className:"text-sm font-medium",children:x}),e[11]=x,e[12]=p):p=e[12];const h=r?"Complete the OAuth flow in your browser":"Installing the GitHub connection...";let b;e[13]!==h?(b=t.jsx("p",{className:"text-xs text-muted-foreground",children:h}),e[13]=h,e[14]=b):b=e[14];let a;e[15]!==p||e[16]!==b?(a=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[p,b]}),e[15]=p,e[16]=b,e[17]=a):a=e[17];const C=r?"bg-muted-foreground/30":"bg-foreground animate-pulse";let j;e[18]!==C?(j=D("size-1.5 rounded-full",C),e[18]=C,e[19]=j):j=e[19];let w;e[20]!==j?(w=t.jsx("span",{className:j}),e[20]=j,e[21]=w):w=e[21];const u=r?"bg-foreground animate-pulse":"bg-muted-foreground/30";let f;e[22]!==u?(f=D("size-1.5 rounded-full",u),e[22]=u,e[23]=f):f=e[23];let y;e[24]!==f?(y=t.jsx("span",{className:f}),e[24]=f,e[25]=y):y=e[25];let S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[26]=S):S=e[26];let d;e[27]!==w||e[28]!==y?(d=t.jsxs("div",{className:"flex items-center gap-1.5",children:[w,y,S]}),e[27]=w,e[28]=y,e[29]=d):d=e[29];let v;return e[30]!==d||e[31]!==a?(v=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[m,a,d]}),e[30]=d,e[31]=a,e[32]=v):v=e[32],v}export{$ as G,qe as H,xe as S,De as W,Fe as a,Be as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{U as gt,bQ as yt,bR as bt,bm as M,P as c,bS as se,bT as Ue,bU as Et,bV as _t,M as It,aq as A,ap as $,an as Q,J as b,aY as f,aM as k,bW as St,bX as E,ao as Tt,o as fe,e as ye,q as wt,j as At,r as z}from"./index-
|
|
1
|
+
import{U as gt,bQ as yt,bR as bt,bm as M,P as c,bS as se,bT as Ue,bU as Et,bV as _t,M as It,aq as A,ap as $,an as Q,J as b,aY as f,aM as k,bW as St,bX as E,ao as Tt,o as fe,e as ye,q as wt,j as At,r as z}from"./index-Bf7aO1A-.js";import{S as Mt,u as Ot}from"./constants-B8os5nMI.js";import{d as Ct,D as Nt}from"./decopilot-sse-pool-CibYuCaE.js";var G;(function(t){t.assertEqual=s=>{};function e(s){}t.assertIs=e;function a(s){throw new Error}t.assertNever=a,t.arrayToEnum=s=>{const o={};for(const i of s)o[i]=i;return o},t.getValidEnumValues=s=>{const o=t.objectKeys(s).filter(n=>typeof s[s[n]]!="number"),i={};for(const n of o)i[n]=s[n];return t.objectValues(i)},t.objectValues=s=>t.objectKeys(s).map(function(o){return s[o]}),t.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const o=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&o.push(i);return o},t.find=(s,o)=>{for(const i of s)if(o(i))return i},t.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,o=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}t.joinValues=r,t.jsonStringifyReplacer=(s,o)=>typeof o=="bigint"?o.toString():o})(G||(G={}));var Se;(function(t){t.mergeShapes=(e,a)=>({...e,...a})})(Se||(Se={}));G.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);G.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ne extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=e}format(e){const a=e||function(o){return o.message},r={_errors:[]},s=o=>{for(const i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)r._errors.push(a(i));else{let n=r,d=0;for(;d<i.path.length;){const l=i.path[d];d===i.path.length-1?(n[l]=n[l]||{_errors:[]},n[l]._errors.push(a(i))):n[l]=n[l]||{_errors:[]},n=n[l],d++}}};return s(this),r}static assert(e){if(!(e instanceof ne))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,G.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=a=>a.message){const a=Object.create(null),r=[];for(const s of this.issues)if(s.path.length>0){const o=s.path[0];a[o]=a[o]||[],a[o].push(e(s))}else r.push(e(s));return{formErrors:r,fieldErrors:a}}get formErrors(){return this.flatten()}}ne.create=t=>new ne(t);var Te;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Te||(Te={}));var m;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(m||(m={}));const Rt=1e4,Rr="true";function ie(t,e){return gt.chatAutosend(t,e)}function xt(t){return t==="pending"||t==="sending"}function Pt(t){if(!t)return null;let e;try{e=JSON.parse(t)}catch{return null}return!e||typeof e!="object"||typeof e.createdAt!="number"||typeof e.message!="object"||!xt(e.status)?null:e}function xr(t,e,a,r,s=Date.now()){const o={message:r,createdAt:s,status:"pending"};return t.setItem(ie(e,a),JSON.stringify(o)),o}function Dt(t,e,a){const r=ie(e,a),s=Pt(t.getItem(r));return s||(t.removeItem(r),null)}function Pr(t,e,a,r=Date.now()){const s=ie(e,a),o=Dt(t,e,a);return!o||o.status!=="pending"?null:r-o.createdAt>=Rt?(t.removeItem(s),null):(t.setItem(s,JSON.stringify({...o,status:"sending"})),{message:o.message,createdAt:o.createdAt})}function Dr(t,e,a){t.removeItem(ie(e,a))}var Be="vercel.ai.error",Lt=Symbol.for(Be),we,Ae,x=class Fe extends(Ae=Error,we=Lt,Ae){constructor({name:e,message:a,cause:r}){super(a),this[we]=!0,this.name=e,this.cause=r}static isInstance(e){return Fe.hasMarker(e,Be)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function Ve(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.message:JSON.stringify(t)}var ze="AI_InvalidArgumentError",Je=`vercel.ai.error.${ze}`,kt=Symbol.for(Je),Me,Oe,Zt=class extends(Oe=x,Me=kt,Oe){constructor({message:t,cause:e,argument:a}){super({name:ze,message:t,cause:e}),this[Me]=!0,this.argument=a}static isInstance(t){return x.hasMarker(t,Je)}},Ye="AI_JSONParseError",He=`vercel.ai.error.${Ye}`,jt=Symbol.for(He),Ce,Ne,Re=class extends(Ne=x,Ce=jt,Ne){constructor({text:t,cause:e}){super({name:Ye,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${Ve(e)}`,cause:e}),this[Ce]=!0,this.text=t}static isInstance(t){return x.hasMarker(t,He)}},We="AI_TypeValidationError",qe=`vercel.ai.error.${We}`,$t=Symbol.for(qe),xe,Pe,Y=class me extends(Pe=x,xe=$t,Pe){constructor({value:e,cause:a,context:r}){let s="Type validation failed";if(r?.field&&(s+=` for ${r.field}`),r?.entityName||r?.entityId){s+=" (";const o=[];r.entityName&&o.push(r.entityName),r.entityId&&o.push(`id: "${r.entityId}"`),s+=o.join(", "),s+=")"}super({name:We,message:`${s}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${Ve(a)}`,cause:a}),this[xe]=!0,this.value=e,this.context=r}static isInstance(e){return x.hasMarker(e,qe)}static wrap({value:e,cause:a,context:r}){var s,o,i;return me.isInstance(a)&&a.value===e&&((s=a.context)==null?void 0:s.field)===r?.field&&((o=a.context)==null?void 0:o.entityName)===r?.entityName&&((i=a.context)==null?void 0:i.entityId)===r?.entityId?a:new me({value:e,cause:a,context:r})}},K=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const s=()=>{const o=a.length,i=new Array(e);for(let n=0;n<e;n++)i[n]=a[Math.random()*o|0];return i.join("")};if(t==null)return s;if(a.includes(r))throw new Zt({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${s()}`};K();var Ut=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Bt=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function De(t){const e=JSON.parse(t);return e===null||typeof e!="object"||Ut.test(t)===!1&&Bt.test(t)===!1?e:Ft(e)}function Ft(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const s in r){const o=r[s];o&&typeof o=="object"&&e.push(o)}}}return t}function Vt(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return De(t)}try{return De(t)}finally{Error.stackTraceLimit=e}}function be(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){t.additionalProperties=!1;const{properties:a}=t;if(a!=null)for(const r of Object.keys(a))a[r]=j(a[r])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(j):j(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(j)),t.allOf!=null&&(t.allOf=t.allOf.map(j)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(j));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=j(e[a]);return t}function j(t){return typeof t=="boolean"?t:be(t)}var zt=Symbol("Let zodToJsonSchema decide on which parser to use"),Le={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Jt=t=>typeof t=="string"?{...Le,name:t}:{...Le,...t};function O(){return{}}function Yt(t,e){var a,r,s;const o={type:"array"};return(a=t.type)!=null&&a._def&&((s=(r=t.type)==null?void 0:r._def)==null?void 0:s.typeName)!==m.ZodAny&&(o.items=g(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(o.minItems=t.minLength.value),t.maxLength&&(o.maxItems=t.maxLength.value),t.exactLength&&(o.minItems=t.exactLength.value,o.maxItems=t.exactLength.value),o}function Ht(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function Wt(){return{type:"boolean"}}function Ge(t,e){return g(t.type._def,e)}var qt=(t,e)=>g(t.innerType._def,e);function Xe(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((s,o)=>Xe(t,e,s))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Gt(t)}}var Gt=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function Xt(t,e){return{...g(t.innerType._def,e),default:t.defaultValue()}}function Qt(t,e){return e.effectStrategy==="input"?g(t.schema._def,e):O()}function Kt(t){return{type:"string",enum:Array.from(t.values)}}var ea=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function ta(t,e){const a=[g(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),g(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(s=>!!s),r=[];return a.forEach(s=>{if(ea(s))r.push(...s.allOf);else{let o=s;if("additionalProperties"in s&&s.additionalProperties===!1){const{additionalProperties:i,...n}=s;o=n}r.push(o)}}),r.length?{allOf:r}:void 0}function aa(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var de=void 0,C={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(de===void 0&&(de=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),de),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Qe(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":N(a,"email",r.message,e);break;case"format:idn-email":N(a,"idn-email",r.message,e);break;case"pattern:zod":w(a,C.email,r.message,e);break}break;case"url":N(a,"uri",r.message,e);break;case"uuid":N(a,"uuid",r.message,e);break;case"regex":w(a,r.regex,r.message,e);break;case"cuid":w(a,C.cuid,r.message,e);break;case"cuid2":w(a,C.cuid2,r.message,e);break;case"startsWith":w(a,RegExp(`^${ce(r.value,e)}`),r.message,e);break;case"endsWith":w(a,RegExp(`${ce(r.value,e)}$`),r.message,e);break;case"datetime":N(a,"date-time",r.message,e);break;case"date":N(a,"date",r.message,e);break;case"time":N(a,"time",r.message,e);break;case"duration":N(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{w(a,RegExp(ce(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&N(a,"ipv4",r.message,e),r.version!=="v4"&&N(a,"ipv6",r.message,e);break}case"base64url":w(a,C.base64url,r.message,e);break;case"jwt":w(a,C.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&w(a,C.ipv4Cidr,r.message,e),r.version!=="v4"&&w(a,C.ipv6Cidr,r.message,e);break}case"emoji":w(a,C.emoji(),r.message,e);break;case"ulid":{w(a,C.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{N(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{w(a,C.base64,r.message,e);break}}break}case"nanoid":w(a,C.nanoid,r.message,e)}return a}function ce(t,e){return e.patternStrategy==="escape"?sa(t):t}var ra=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function sa(t){let e="";for(let a=0;a<t.length;a++)ra.has(t[a])||(e+="\\"),e+=t[a];return e}function N(t,e,a,r){var s;t.format||(s=t.anyOf)!=null&&s.some(o=>o.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function w(t,e,a,r){var s;t.pattern||(s=t.allOf)!=null&&s.some(o=>o.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:ke(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=ke(e,r)}function ke(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},s=r.i?t.source.toLowerCase():t.source;let o="",i=!1,n=!1,d=!1;for(let l=0;l<s.length;l++){if(i){o+=s[l],i=!1;continue}if(r.i){if(n){if(s[l].match(/[a-z]/)){d?(o+=s[l],o+=`${s[l-2]}-${s[l]}`.toUpperCase(),d=!1):s[l+1]==="-"&&((a=s[l+2])!=null&&a.match(/[a-z]/))?(o+=s[l],d=!0):o+=`${s[l]}${s[l].toUpperCase()}`;continue}}else if(s[l].match(/[a-z]/)){o+=`[${s[l]}${s[l].toUpperCase()}]`;continue}}if(r.m){if(s[l]==="^"){o+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(s[l]==="$"){o+=`($|(?=[\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as l,c7 as k,a4 as F,a5 as f,aV as T,c8 as $,aS as I,c6 as U,c9 as O,b4 as W,cf as z,cg as B,ab as G,ch as K,e as E,c as V}from"./index-
|
|
1
|
+
import{r as i,j as l,c7 as k,a4 as F,a5 as f,aV as T,c8 as $,aS as I,c6 as U,c9 as O,b4 as W,cf as z,cg as B,ab as G,ch as K,e as E,c as V}from"./index-Bf7aO1A-.js";var w,R="HoverCard",[N]=G(R,[O]),b=O(),[q,S]=N(R),_=o=>{const{__scopeHoverCard:e,children:t,open:r,defaultOpen:a,onOpenChange:s,openDelay:d=700,closeDelay:u=300}=o,c=b(e),p=i.useRef(0),v=i.useRef(0),C=i.useRef(!1),h=i.useRef(!1),[m,n]=I({prop:r,defaultProp:a??!1,onChange:s,caller:R}),x=i.useCallback(()=>{clearTimeout(v.current),p.current=window.setTimeout(()=>n(!0),d)},[d,n]),L=i.useCallback(()=>{clearTimeout(p.current),!C.current&&!h.current&&(v.current=window.setTimeout(()=>n(!1),u))},[u,n]),M=i.useCallback(()=>n(!1),[n]);return i.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(v.current)},[]),l.jsx(q,{scope:e,open:m,onOpenChange:n,onOpen:x,onClose:L,onDismiss:M,hasSelectionRef:C,isPointerDownOnContentRef:h,children:l.jsx(U,{...c,children:t})})};_.displayName=R;var y="HoverCardTrigger",D=i.forwardRef((o,e)=>{const{__scopeHoverCard:t,...r}=o,a=S(y,t),s=b(t);return l.jsx(k,{asChild:!0,...s,children:l.jsx(F.a,{"data-state":a.open?"open":"closed",...r,ref:e,onPointerEnter:f(o.onPointerEnter,P(a.onOpen)),onPointerLeave:f(o.onPointerLeave,P(a.onClose)),onFocus:f(o.onFocus,a.onOpen),onBlur:f(o.onBlur,a.onClose),onTouchStart:f(o.onTouchStart,d=>d.preventDefault())})})});D.displayName=y;var H="HoverCardPortal",[J,Q]=N(H,{forceMount:void 0}),j=o=>{const{__scopeHoverCard:e,forceMount:t,children:r,container:a}=o,s=S(H,e);return l.jsx(J,{scope:e,forceMount:t,children:l.jsx(T,{present:t||s.open,children:l.jsx($,{asChild:!0,container:a,children:r})})})};j.displayName=H;var g="HoverCardContent",A=i.forwardRef((o,e)=>{const t=Q(g,o.__scopeHoverCard),{forceMount:r=t.forceMount,...a}=o,s=S(g,o.__scopeHoverCard);return l.jsx(T,{present:r||s.open,children:l.jsx(X,{"data-state":s.open?"open":"closed",...a,onPointerEnter:f(o.onPointerEnter,P(s.onOpen)),onPointerLeave:f(o.onPointerLeave,P(s.onClose)),ref:e})})});A.displayName=g;var X=i.forwardRef((o,e)=>{const{__scopeHoverCard:t,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:d,...u}=o,c=S(g,t),p=b(t),v=i.useRef(null),C=W(e,v),[h,m]=i.useState(!1);return i.useEffect(()=>{if(h){const n=document.body;return w=n.style.userSelect||n.style.webkitUserSelect,n.style.userSelect="none",n.style.webkitUserSelect="none",()=>{n.style.userSelect=w,n.style.webkitUserSelect=w}}},[h]),i.useEffect(()=>{if(v.current){const n=()=>{m(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{document.getSelection()?.toString()!==""&&(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",n),()=>{document.removeEventListener("pointerup",n),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),i.useEffect(()=>{v.current&&ee(v.current).forEach(x=>x.setAttribute("tabindex","-1"))}),l.jsx(z,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:f(s,n=>{n.preventDefault()}),onDismiss:c.onDismiss,children:l.jsx(B,{...p,...u,onPointerDown:f(u.onPointerDown,n=>{n.currentTarget.contains(n.target)&&m(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:C,style:{...u.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})}),Y="HoverCardArrow",Z=i.forwardRef((o,e)=>{const{__scopeHoverCard:t,...r}=o,a=b(t);return l.jsx(K,{...a,...r,ref:e})});Z.displayName=Y;function P(o){return e=>e.pointerType==="touch"?void 0:o()}function ee(o){const e=[],t=document.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;t.nextNode();)e.push(t.currentNode);return e}var te=_,oe=D,re=j,ne=A;function se(o){const e=E.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=l.jsx(te,{"data-slot":"hover-card",...t}),e[2]=t,e[3]=r):r=e[3],r}function ce(o){const e=E.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=l.jsx(oe,{"data-slot":"hover-card-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function ie(o){const e=E.c(12);let t,r,a,s;e[0]!==o?({className:t,align:a,sideOffset:s,...r}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=a,e[4]=s):(t=e[1],r=e[2],a=e[3],s=e[4]);const d=a===void 0?"center":a,u=s===void 0?4:s;let c;e[5]!==t?(c=V("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),e[5]=t,e[6]=c):c=e[6];let p;return e[7]!==d||e[8]!==r||e[9]!==u||e[10]!==c?(p=l.jsx(re,{"data-slot":"hover-card-portal",children:l.jsx(ne,{"data-slot":"hover-card-content",align:d,sideOffset:u,className:c,...r})}),e[7]=d,e[8]=r,e[9]=u,e[10]=c,e[11]=p):p=e[11],p}export{ce as H,ie as a,se as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as ge,q as xe,D as he,b as be,r as ie,K as oe,n as ye,a as _e,j as o,c as je,B as ae,t as se,o as ce}from"./index-
|
|
1
|
+
import{e as ge,q as xe,D as he,b as be,r as ie,K as oe,n as ye,a as _e,j as o,c as je,B as ae,t as se,o as ce}from"./index-Bf7aO1A-.js";import{S as Ce,u as Ie}from"./constants-B8os5nMI.js";import{a as we}from"./use-navigate-to-agent-DIIPigDX.js";import{a as Se,b as ve,c as Ne,d as Ee,D as De}from"./dialog-C40tWbjB.js";import{i as Le}from"./RefreshCcw01-Cr7WlxPS.js";import{C as Pe}from"./collection-search-CXtVb7nz.js";function Te(n){return n.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function ke(n){const e=await fetch(`/api/${n}/deco-sites`);if(!e.ok){const m=await e.json().catch(()=>({}));throw new Error(m.error??`Failed to load sites (${e.status})`)}return e.json()}function Be(n){const e=ge.c(70),{open:m,onOpenChange:Q,onBack:k}=n,{org:s}=xe(),U=we(),T=he(),{data:M}=be.useSession(),[c,ne]=ie.useState(null),[d,z]=ie.useState("");let A;e[0]!==s.id||e[1]!==s.slug?(A={connectionId:Ce,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=A):A=e[2];const f=Ie(A);let p;e[3]!==M?.user?.email?(p=oe.decoSites(M?.user?.email),e[3]=M?.user?.email,e[4]=p):p=e[4];let g;e[5]!==s.slug?(g=()=>ke(s.slug),e[5]=s.slug,e[6]=g):g=e[6];const J=m&&!!M?.user?.email;let R;e[7]!==p||e[8]!==g||e[9]!==J?(R={queryKey:p,queryFn:g,enabled:J,staleTime:6e4,retry:!1},e[7]=p,e[8]=g,e[9]=J,e[10]=R):R=e[10];const{data:de,isLoading:x,error:ue}=ye(R),G=de?.sites??[];let q;e[11]!==Q?(q=t=>{t||(ne(null),z("")),Q(t)},e[11]=Q,e[12]=q):q=e[12];const r=q;let F;e[13]!==d?(F=t=>t.name.toLowerCase().includes(d.toLowerCase())||t.domains?.[0]?.domain.toLowerCase().includes(d.toLowerCase()),e[13]=d,e[14]=F):F=e[14];const H=G.filter(F),me=!c||H.some(t=>t.name===c);let h;e[15]!==f||e[16]!==s.id||e[17]!==s.slug?(h=async t=>{se("deco_site_import_started",{site_name:t});const i=await fetch(`/api/${s.slug}/deco-sites/connection`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:t,orgId:s.id})}),a=await i.json().catch(Re);if(!i.ok)throw new Error(a.error??`Failed to create connection (${i.status})`);const l=a.connId;if(!l)throw new Error("Server did not return a connection ID");const B=a.icon??null,P=Te(t),le=await f.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:t,description:"Imported from deco.cx",pinned:!0,icon:B??null,subtype:"project",metadata:{instructions:null,enabled_plugins:[],ui:{banner:null,bannerColor:"#22C55E",icon:B,themeColor:"#22C55E",slug:P,pinnedViews:[{connectionId:l,toolName:"file_explorer",label:"Preview",icon:null},{connectionId:l,toolName:"fetch_assets",label:"Assets",icon:null},{connectionId:l,toolName:"get_monitor_data",label:"Monitor",icon:null},{connectionId:l,toolName:"list_pull_requests",label:"Pull Requests",icon:null},{connectionId:l,toolName:"list_releases",label:"Releases",icon:null}],layout:{defaultMainView:{type:"ext-apps",id:l,toolName:"file_explorer"},chatDefaultOpen:!0}}},connections:[{connection_id:l}]}}}),re=le.structuredContent??le;return{slug:P,virtualMcpId:re.item.id,connId:l,item:re.item}},e[15]=f,e[16]=s.id,e[17]=s.slug,e[18]=h):h=e[18];let b;e[19]!==f||e[20]!==r||e[21]!==U||e[22]!==s.id||e[23]!==T?(b=t=>{const{slug:i,virtualMcpId:a,item:l}=t;se("deco_site_import_succeeded",{site_name:l.title,virtual_mcp_id:a,slug:i}),T.setQueryData(oe.collectionItem(f,s.id,"","VIRTUAL_MCP",a),{item:l}),T.invalidateQueries({predicate:B=>{const P=B.queryKey;return P[1]===s.id&&P[3]==="collection"&&P[4]==="VIRTUAL_MCP"}}),T.invalidateQueries({queryKey:oe.projects(s.id)}),ce.success(`Imported ${i} from deco.cx`),r(!1),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),U(a)},e[19]=f,e[20]=r,e[21]=U,e[22]=s.id,e[23]=T,e[24]=b):b=e[24];let O;e[25]!==h||e[26]!==b?(O={mutationFn:h,onSuccess:b,onError:Ae},e[25]=h,e[26]=b,e[27]=O):O=e[27];const u=_e(O),Y=ve,W=Se,fe="sm:max-w-[900px] p-0 gap-0 overflow-hidden";let y;e[28]===Symbol.for("react.memo_cache_sentinel")?(y=o.jsx(Ne,{className:"sr-only",children:o.jsx(Ee,{children:"Import from deco.cx"})}),e[28]=y):y=e[28];let _;e[29]!==k?(_=k&&o.jsx("button",{type:"button",onClick:k,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":"Go back",children:o.jsx(Le,{size:18})}),e[29]=k,e[30]=_):_=e[30];let $;e[31]===Symbol.for("react.memo_cache_sentinel")?($=o.jsx("span",{className:"text-sm font-medium text-foreground",children:"Import from deco.cx"}),e[31]=$):$=e[31];let j;e[32]!==_?(j=o.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[_,$]}),e[32]=_,e[33]=j):j=e[33];let K;e[34]===Symbol.for("react.memo_cache_sentinel")?(K=t=>{t.key==="Escape"&&z("")},e[34]=K):K=e[34];let C;e[35]!==d?(C=o.jsx("div",{children:o.jsx(Pe,{value:d,onChange:z,placeholder:"Search sites...",onKeyDown:K})}),e[35]=d,e[36]=C):C=e[36];const pe="pb-0 min-h-[300px]";let I;e[37]!==x?(I=x&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"Loading sites..."}),e[37]=x,e[38]=I):I=e[38];const X=!x&&!ue&&G.length===0&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:"No sites found for this account."}),Z=!x&&G.length>0&&o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[H.length===0&&o.jsxs("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:["No sites match “",d,"”"]}),H.map(t=>{const i=t.domains?.find(Me)?.domain??t.domains?.[0]?.domain,a=c===t.name;return o.jsxs("button",{type:"button",onClick:()=>ne(t.name),className:je("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",a?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[o.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:t.thumb_url?o.jsx("img",{src:t.thumb_url,alt:t.name,className:"w-full h-full object-cover",loading:"lazy"}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsxs("div",{className:"px-4 py-3",children:[o.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:t.name}),i&&o.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:i})]})]},t.name)})]});let w;e[39]!==I||e[40]!==X||e[41]!==Z?(w=o.jsxs("div",{className:pe,children:[I,X,Z]}),e[39]=I,e[40]=X,e[41]=Z,e[42]=w):w=e[42];let S;e[43]!==r?(S=()=>r(!1),e[43]=r,e[44]=S):S=e[44];let v;e[45]!==u.isPending||e[46]!==S?(v=o.jsx(ae,{variant:"outline",onClick:S,disabled:u.isPending,children:"Cancel"}),e[45]=u.isPending,e[46]=S,e[47]=v):v=e[47];const ee=!c||!me||u.isPending||x;let N;e[48]!==u||e[49]!==c?(N=()=>c&&u.mutate(c),e[48]=u,e[49]=c,e[50]=N):N=e[50];const te=u.isPending?"Importing...":"Import";let E;e[51]!==ee||e[52]!==N||e[53]!==te?(E=o.jsx(ae,{disabled:ee,onClick:N,children:te}),e[51]=ee,e[52]=N,e[53]=te,e[54]=E):E=e[54];let D;e[55]!==v||e[56]!==E?(D=o.jsxs(De,{className:"px-8 py-5 border-t border-border",children:[v,E]}),e[55]=v,e[56]=E,e[57]=D):D=e[57];let L;e[58]!==W||e[59]!==y||e[60]!==j||e[61]!==C||e[62]!==w||e[63]!==D?(L=o.jsxs(W,{className:fe,children:[y,j,C,w,D]}),e[58]=W,e[59]=y,e[60]=j,e[61]=C,e[62]=w,e[63]=D,e[64]=L):L=e[64];let V;return e[65]!==Y||e[66]!==r||e[67]!==m||e[68]!==L?(V=o.jsx(Y,{open:m,onOpenChange:r,children:L}),e[65]=Y,e[66]=r,e[67]=m,e[68]=L,e[69]=V):V=e[69],V}function Me(n){return n.production}function Ae(n){se("deco_site_import_failed",{error:n instanceof Error?n.message:"Unknown error"}),ce.error("Import failed: "+(n instanceof Error?n.message:"Unknown error"))}function Re(){return{}}export{Be as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-CLNGHNmz.js","assets/Check-BBN8jtrj.js","assets/ChevronDown-BHt79TDc.js","assets/login-CfCMY-Xx.js","assets/input-Fpo5hVEP.js","assets/auth-split-layout-CT4AkDzg.js","assets/cli-auth-success-CvhsqEgg.js","assets/reset-password-rYx9wxY5.js","assets/shell-layout-iPI2JI8_.js","assets/avatar-BRyrVRDm.js","assets/User01-CtanRIko.js","assets/Users03-Bq46oqMB.js","assets/Lock01-BheAsQQx.js","assets/Stars02-LrVE5fus.js","assets/XClose-DgRHRNhM.js","assets/CheckCircle-BodpoDGR.js","assets/FilterLines-BNco6Knh.js","assets/Zap-XzlBn_sj.js","assets/dialog-C40tWbjB.js","assets/X-DkujvqvQ.js","assets/required-auth-layout-CawOOa2O.js","assets/useRouterState-CD2kdIEW.js","assets/hooks-NevP65mb.js","assets/constants-B8os5nMI.js","assets/decopilot-sse-pool-CibYuCaE.js","assets/create-sse-subscription-CjI9SUTI.js","assets/use-organization-settings-DJc_W4n4.js","assets/use-org-sso-CyDwJDEM.js","assets/onboarding-DAlRszwq.js","assets/label-FRw7B4TG.js","assets/switch-C_oh8iVS.js","assets/Palette-DPP_bV0e.js","assets/Upload01-p8VtXdXS.js","assets/index-CP1SUcsr.js","assets/sidebar-CkEPveNS.js","assets/LayoutLeft-NsiLg-Hz.js","assets/tooltip-Kfr4gA8D.js","assets/index-D3GzwlSX.js","assets/agent-icon-q6iHyexc.js","assets/AlertCircle-Dyh2dUBt.js","assets/Tool01-DHXrZh_c.js","assets/SwitchHorizontal01-C1fzb4rn.js","assets/RefreshCcw01-Cr7WlxPS.js","assets/ArrowNarrowLeft-DOeeOVat.js","assets/XCircle-BkF11s9b.js","assets/ArrowUpRight-C5h8eEJl.js","assets/ZapSquare-sMv-roxP.js","assets/ChevronRight-CgiGzJK2.js","assets/ChevronUp-Hv5s5GCl.js","assets/DotsVertical-BFb-15-m.js","assets/Container-CmZ_UAMx.js","assets/Star01-HKceyVo1.js","assets/HardDrive-Bs4cIN_I.js","assets/Key01-BOHiIHj-.js","assets/LinkExternal01-DXkr_udM.js","assets/Monitor01-BkzEm6bw.js","assets/Sun-D9eEy7za.js","assets/Play-BqGgMbL5.js","assets/Plus-C5l4faC1.js","assets/SearchMd-rTsELW21.js","assets/Settings02-BSu9v11-.js","assets/Shield01-BzHuCaEB.js","assets/Trash01-v5Dy47Wj.js","assets/Users01-BbxKMG6t.js","assets/toolbar-BBemLolp.js","assets/skeleton-DYoQoQqq.js","assets/popover-BkyXjLv-.js","assets/drawer-im0a0-JE.js","assets/collection-search-BRyI5tKN.js","assets/use-virtual-mcp-D3NBTQSJ.js","assets/use-collections-JGA7MsfD.js","assets/use-navigate-to-agent-DIIPigDX.js","assets/use-create-virtual-mcp-BSfa--sD.js","assets/github-repo-picker-C0GpV9eM.js","assets/checkbox-Dz5JG34i.js","assets/collection-search-CXtVb7nz.js","assets/use-connection-IocO3s2Q.js","assets/use-mcp-tools-POhiNXdT.js","assets/extract-connection-data-D00SSnkh.js","assets/generate-id-DzmzOPfM.js","assets/collections-BvhsS_z2.js","assets/import-from-deco-dialog-B0MmDUtr.js","assets/alert-dialog-B_i_ps7f.js","assets/form-C2fWcpmD.js","assets/spinner-CvW_7LWr.js","assets/index-CbpIdzH6.js","assets/add-connection-dialog-Doxko4pY.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-PlQwrunz.js","assets/use-registry-connections-SwizXZVX.js","assets/useInfiniteQuery-CedWd5FM.js","assets/infiniteQueryObserver-Cv7QlLOi.js","assets/card-CSM7jg8b.js","assets/integration-icon-DX7WoZFw.js","assets/collection-tabs-BzSk0IWN.js","assets/badge-BTq6_dwU.js","assets/select-ufdAhrF_.js","assets/textarea-Cna17PTh.js","assets/connection-form-helpers-BPskqY8x.js","assets/use-infinite-scroll-jDpA-_cW.js","assets/useSuspenseInfiniteQuery-Cu6z25rm.js","assets/use-ai-providers-CewbWKWW.js","assets/command-CE-N-Fow.js","assets/index-DsxbUaF_.js","assets/hover-card-RfUTMsZA.js","assets/task-status-Bn2_Ktxd.js","assets/format-time-GeUngI9C.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/chat-context-CICjyzMY.js","assets/connect-desktop-dialog-C-R7zEUP.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/shell-controls-wYSme1hd.js","assets/index-Bj3Gsvmx.js","assets/index-D3AvleZU.js","assets/pair-D1bgeRCX.js","assets/index-DokSGh4p.js","assets/use-copy-DQ7SkKXE.js","assets/content-blocks-o63cs2vh.js","assets/types-DLDiONif.js","assets/use-mcp-prompts-CvpPBs_y.js","assets/tabs-Bnmd0UmR.js","assets/toggle-group-Cwno-ULj.js","assets/agent-icons-A7w_l1KK.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-DbssupiX.js","assets/index-Ce5SKvT1.js","assets/dropdown-menu-nlgjcLMp.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-RHGSJdHR.js","assets/empty-state-Rnc2dhkR.js","assets/accordion-dqQUHOnH.js","assets/user-Csugwi5K.js","assets/tools-list-DF6pe9Ta.js","assets/use-debounced-autosave-DWrKZmHW.js","assets/monaco-editor-BqbZT3K3.js","assets/index-DPqqDw7W.js","assets/use-secrets-BAD7O6nA.js","assets/view-mode-toggle-DXRcEzPg.js","assets/automation-list-row-DxuoSGb8.js","assets/search-input-DglPcAnH.js","assets/index-DDGTF8rc.css","assets/index-CPUASH8Y.js","assets/settings-layout-BBUh6Vlw.js","assets/connections-BO5GNb9A.js","assets/collection-display-button-mD3oc4np.js","assets/use-delete-connection-Bg4nH-Nd.js","assets/use-list-state--Z7pVdDS.js","assets/use-view-mode-isYjr9TL.js","assets/connection-detail-B7sBzrsj.js","assets/index-DGa9X7kA.js","assets/index-BlXuTZUL.js","assets/index-D1V7gFaI.js","assets/use-members-cPnrxPK_.js","assets/use-org-auth-client-DOzELmrd.js","assets/layout-DRV6GiLr.js","assets/monitoring-stats-row-BFEaeHW_.js","assets/collection-detail-CzazaoJP.js","assets/index-DBGGjq4P.js","assets/empty-state-Cw3XK_Gs.js","assets/alert-DL1cbRoM.js","assets/index-DBIBJV0k.js","assets/table-Dy93uecr.js","assets/general-BGSI6aBj.js","assets/domain-settings-CzQQxHOD.js","assets/sortable.esm-DUaPlB_W.js","assets/features-DZ0ghQyn.js","assets/brand-context-D5z_TG2J.js","assets/ai-providers-B1ZbPwoq.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/secrets-DmZX9LsT.js","assets/files-mqgIbtsb.js","assets/use-file-configs-DDjVwmYE.js","assets/members-xAPoZeMG.js","assets/collection-table-wrapper-C7oTCBDJ.js","assets/use-organization-roles-CZP0dNKh.js","assets/roles-DRxguWZW.js","assets/sso-BQiNOjXF.js","assets/profile-DJyl7mco.js","assets/store-DkONcJaZ.js","assets/workflow-DvcXfyy4.js","assets/workflow-detail-BrOvUZpc.js","assets/org-plugin-layout-B2xqOhgA.js","assets/plugin-layout-DD5D4ZYp.js","assets/agents-list-_CO5Xl7p.js","assets/automations-CmZJlJt9.js","assets/dynamic-plugin-layout-DlWKLIeK.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function dj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const fj="modulepreload",hj=function(e){return"/"+e},cO={},vt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");o=l(n.map(f=>{if(f=hj(f),f in cO)return;cO[f]=!0;const p=f.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":fj,p||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),p)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var Kle=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ha(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y_={exports:{}},Zu={};var uO;function pj(){if(uO)return Zu;uO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return Zu.Fragment=t,Zu.jsx=n,Zu.jsxs=n,Zu}var dO;function mj(){return dO||(dO=1,y_.exports=pj()),y_.exports}var C=mj(),b_={exports:{}},Yu={},w_={exports:{}},S_={};var fO;function gj(){return fO||(fO=1,(function(e){function t(q,W){var te=q.length;q.push(W);e:for(;0<te;){var le=te-1>>>1,Q=q[le];if(0<o(Q,W))q[le]=W,q[te]=Q,te=le;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],te=q.pop();if(te!==W){q[0]=te;e:for(var le=0,Q=q.length,k=Q>>>1;le<k;){var G=2*(le+1)-1,V=q[G],D=G+1,F=q[D];if(0>o(V,te))D<Q&&0>o(F,V)?(q[le]=F,q[D]=te,le=D):(q[le]=V,q[G]=te,le=G);else if(D<Q&&0>o(F,te))q[le]=F,q[D]=te,le=D;else break e}}return W}function o(q,W){var te=q.sortIndex-W.sortIndex;return te!==0?te:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,h=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,R(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&oe(O,W.startTime-q)}}var A=!1,I=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function $(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(I),I=-1),v=!0;var te=g;try{t:{for(R(q),h=n(d);h!==null&&!(h.expirationTime>q&&H());){var le=h.callback;if(typeof le=="function"){h.callback=null,g=h.priorityLevel;var Q=le(h.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){h.callback=Q,R(q),W=!0;break t}h===n(d)&&r(d),R(q)}else r(d);h=n(d)}if(h!==null)W=!0;else{var k=n(f);k!==null&&oe(O,k.startTime-q),W=!1}}break e}finally{h=null,g=te,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof T=="function")B=function(){T($)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,K=z.port2;z.port1.onmessage=$,B=function(){K.postMessage(null)}}else B=function(){S($,0)};function oe(q,W){I=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var te=g;g=W;try{return q()}finally{g=te}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var te=g;g=q;try{return W()}finally{g=te}},e.unstable_scheduleCallback=function(q,W,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,q={id:p++,callback:W,priorityLevel:q,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(q.sortIndex=te,t(f,q),n(d)===null&&q===n(f)&&(b?(E(I),I=-1):b=!0,oe(O,te-le))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var te=g;g=W;try{return q.apply(this,arguments)}finally{g=te}}}})(S_)),S_}var hO;function vj(){return hO||(hO=1,w_.exports=gj()),w_.exports}var E_={exports:{}},ot={};var pO;function _j(){if(pO)return ot;pO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,G){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,G,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function T(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||y}var R=T.prototype=new E;R.constructor=T,b(R,S.prototype),R.isPureReactComponent=!0;var O=Array.isArray;function A(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,G,V){var D=V.ref;return{$$typeof:e,type:k,key:G,ref:D!==void 0?D:null,props:V}}function H(k,G){return L(k.type,G,k.props)}function $(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var G={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return G[V]})}var z=/\/+/g;function K(k,G){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):G.toString(36)}function oe(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(G){k.status==="pending"&&(k.status="fulfilled",k.value=G)},function(G){k.status==="pending"&&(k.status="rejected",k.reason=G)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,G,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case p:return fe=k._init,q(fe(k._payload),G,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+K(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(z,"$&/")+"/"),q(F,G,V,"",function(je){return je})):F!=null&&($(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(z,"$&/")+"/")+fe)),G.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+K(D,xe),fe+=q(D,G,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+K(D,xe++),fe+=q(D,G,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(oe(k),G,V,D,F);throw G=String(k),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,G,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return G.call(V,X,F++)}),D}function te(k){if(k._status===-1){var G=k._result;G=G(),G.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=G)}if(k._status===1)return k._result.default;throw k._result}var le=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,G,V){W(k,function(){G.apply(this,arguments)},V)},count:function(k){var G=0;return W(k,function(){G++}),G},toArray:function(k){return W(k,function(G){return G})||[]},only:function(k){if(!$(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return ot.Activity=h,ot.Children=Q,ot.Component=S,ot.Fragment=n,ot.Profiler=o,ot.PureComponent=T,ot.StrictMode=r,ot.Suspense=d,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ot.__COMPILER_RUNTIME={__proto__:null,c:function(k){return I.H.useMemoCache(k)}},ot.cache=function(k){return function(){return k.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(k,G,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(G!=null)for(X in G.key!==void 0&&(F=""+G.key),G)!P.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(D[X]=G[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},ot.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},ot.createElement=function(k,G,V){var D,F={},X=null;if(G!=null)for(D in G.key!==void 0&&(X=""+G.key),G)P.call(G,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=G[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(k){return{$$typeof:c,render:k}},ot.isValidElement=$,ot.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:te}},ot.memo=function(k,G){return{$$typeof:f,type:k,compare:G===void 0?null:G}},ot.startTransition=function(k){var G=I.T,V={};I.T=V;try{var D=k(),F=I.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,le)}catch(X){le(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),I.T=G}},ot.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ot.use=function(k){return I.H.use(k)},ot.useActionState=function(k,G,V){return I.H.useActionState(k,G,V)},ot.useCallback=function(k,G){return I.H.useCallback(k,G)},ot.useContext=function(k){return I.H.useContext(k)},ot.useDebugValue=function(){},ot.useDeferredValue=function(k,G){return I.H.useDeferredValue(k,G)},ot.useEffect=function(k,G){return I.H.useEffect(k,G)},ot.useEffectEvent=function(k){return I.H.useEffectEvent(k)},ot.useId=function(){return I.H.useId()},ot.useImperativeHandle=function(k,G,V){return I.H.useImperativeHandle(k,G,V)},ot.useInsertionEffect=function(k,G){return I.H.useInsertionEffect(k,G)},ot.useLayoutEffect=function(k,G){return I.H.useLayoutEffect(k,G)},ot.useMemo=function(k,G){return I.H.useMemo(k,G)},ot.useOptimistic=function(k,G){return I.H.useOptimistic(k,G)},ot.useReducer=function(k,G,V){return I.H.useReducer(k,G,V)},ot.useRef=function(k){return I.H.useRef(k)},ot.useState=function(k){return I.H.useState(k)},ot.useSyncExternalStore=function(k,G,V){return I.H.useSyncExternalStore(k,G,V)},ot.useTransition=function(){return I.H.useTransition()},ot.version="19.2.6",ot}var mO;function pa(){return mO||(mO=1,E_.exports=_j()),E_.exports}var x_={exports:{}},wr={};var gO;function yj(){if(gO)return wr;gO=1;var e=pa();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,f,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wr.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},wr.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},wr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},wr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},wr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:v}):p==="script"&&r.d.X(d,{crossOrigin:h,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},wr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},wr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},wr.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},wr.requestFormReset=function(d){r.d.r(d)},wr.unstable_batchedUpdates=function(d,f){return d(f)},wr.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},wr.useFormStatus=function(){return l.H.useHostTransitionStatus()},wr.version="19.2.6",wr}var vO;function KM(){if(vO)return x_.exports;vO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),x_.exports=yj(),x_.exports}var _O;function bj(){if(_O)return Yu;_O=1;var e=vj(),t=pa(),n=KM();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,u=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(u=a.return),i=a.return;while(i)}return a.tag===3?u:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function c(i){if(i.tag===31){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function d(i){if(s(i)!==i)throw Error(r(188))}function f(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var u=i,m=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(m=_.return,m!==null){u=m;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),i;if(w===m)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==m.return)u=_,m=w;else{for(var N=!1,U=_.child;U;){if(U===u){N=!0,u=_,m=w;break}if(U===m){N=!0,m=_,u=w;break}U=U.sibling}if(!N){for(U=w.child;U;){if(U===u){N=!0,u=w,m=_;break}if(U===m){N=!0,m=w,u=_;break}U=U.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:a}function p(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=p(i),a!==null)return a;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function B(i){return i===null||typeof i!="object"?null:(i=$&&i[$]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function K(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case T:return i.displayName||"Context";case E:return(i._context.displayName||"Context")+".Consumer";case R:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return a=i.displayName||null,a!==null?a:K(i.type)||"Memo";case P:a=i._payload,i=i._init;try{return K(i(a))}catch{}}return null}var oe=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function k(i){return{current:i}}function G(i){0>Q||(i.current=le[Q],le[Q]=null,Q--)}function V(i,a){Q++,le[Q]=i.current,i.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(i,a){switch(V(X,a),V(F,i),V(D,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?P2(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=P2(a),i=N2(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(D),V(D,i)}function xe(){G(D),G(F),G(X)}function je(i){i.memoizedState!==null&&V(fe,i);var a=D.current,u=N2(a,i.type);a!==u&&(V(F,i),V(D,u))}function Y(i){F.current===i&&(G(D),G(F)),fe.current===i&&(G(fe),Hu._currentValue=te)}var re,ve;function se(i){if(re===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);re=a&&a[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+re+i+ve}var Se=!1;function Oe(i,a){if(!i||Se)return"";Se=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(a){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(ge){var he=ge}Reflect.construct(i,[],Ee)}else{try{Ee.call()}catch(ge){he=ge}i.call(Ee.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Ee=i())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=m.DetermineComponentFrameRoot(),N=w[0],U=w[1];if(N&&U){var J=N.split(`
|
|
@@ -168,4 +168,4 @@ ${r}
|
|
|
168
168
|
${r}
|
|
169
169
|
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
170
170
|
|
|
171
|
-
`),document.head.appendChild(r)}}function Vae(e){const t=Ri.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:lP.publicConfig(),queryFn:Fae,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=aP(r),[s]=Uae();o.internalUrl&&Aae(o.internalUrl);let l,c;t[1]!==o.theme?(l=()=>{Bae(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const S=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!S)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=S;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=x=>{h.classList.toggle("dark",x),g()};y(v.matches);const b=x=>y(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const Hae=new Zj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function qae(e){const t=Ri.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(tG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(l6,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(Yj,{client:Hae,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(Vae,{children:C.jsx(u8,{children:C.jsx(Ate,{children:C.jsx(jre,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function Gae(...e){return y3($w(e))}const Kae=V3("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function dw(e){const t=Ri.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?Zw:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=Gae(Kae({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const qM="__mesh_chunk_reload_ts";function GM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class eue extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),o6(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(VS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(dw,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class Zae extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=GM(t);if(o6(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(qM),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(qM,String(s)),window.location.reload())}render(){return this.state.hasError&&GM(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(a6,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(dw,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(VS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(dw,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const Yae="MCP Workflows",Wae="Create workflows using your MCP tools",Qae=M.lazy(()=>vt(()=>import("./plugin-header-CERNSvWs.js"),__vite__mapDeps([0,1,2]))),Xae=M.lazy(()=>vt(()=>import("./plugin-empty-state-C6vbSsTR.js"),[])),Jae={id:Yae,description:Wae,bindingName:"WORKFLOW",renderHeader:e=>C.jsx(Qae,{...e}),renderEmptyState:()=>C.jsx(Xae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:C.jsx(i6,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},ele=[Jae],ms=j7({component:()=>C.jsx(Zae,{children:C.jsx(qae,{children:C.jsx(M.Suspense,{fallback:C.jsx(l6,{}),children:C.jsx(FP,{})})})})}),tle=dt({getParentRoute:()=>ms,path:"/login",component:xt(()=>vt(()=>import("./login-C0__NyWq.js"),__vite__mapDeps([3,4,5]))),validateSearch:fl(()=>we({next:j().optional(),client_id:j().optional(),redirect_uri:j().optional(),response_type:j().optional(),state:j().optional(),scope:j().optional(),code_challenge:j().optional(),code_challenge_method:j().optional()}))}),nle=dt({getParentRoute:()=>ms,path:"/cli/auth-success",component:xt(()=>vt(()=>import("./cli-auth-success-C_FSoZy8.js"),__vite__mapDeps([6,5])))}),rle=dt({getParentRoute:()=>ms,path:"/reset-password",component:xt(()=>vt(()=>import("./reset-password-D0Ak5nrj.js"),__vite__mapDeps([7,4]))),validateSearch:fl(()=>we({token:j().optional(),error:j().optional()}))}),ole=dt({getParentRoute:()=>ms,path:"/auth/$pathname",component:xt(()=>vt(()=>import("./auth-catchall-Ck-h53ka.js"),[]))}),ile=dt({getParentRoute:()=>ms,path:"/oauth/callback",component:xt(()=>vt(()=>import("./oauth-callback-nhW5Hk7K.js"),[]))}),sle=dt({getParentRoute:()=>ms,path:"/oauth/callback/ai-provider",component:xt(()=>vt(()=>import("./oauth-callback-ai-provider-CBGn5V2N.js"),[]))}),pE=dt({getParentRoute:()=>ms,id:"shell",component:xt(()=>vt(()=>import("./shell-layout-B4sASmIz.js").then(e=>e.s),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])))}),ale=dt({getParentRoute:()=>pE,path:"/",beforeLoad:async()=>{const{data:e}=await Lg.organization.list();if(!e)return;const t=e.filter(o=>!o.metadata?.archived),n=localStorage.getItem(Eg.lastOrgSlug());if(n){if(t.some(s=>s.slug===n))throw Ic({to:"/$org",params:{org:n}});localStorage.removeItem(Eg.lastOrgSlug())}const r=t[0];throw Ic(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),lle=dt({getParentRoute:()=>ms,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Lg.organization.list(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Ic({to:"/"})},component:xt(()=>vt(()=>import("./onboarding-CJebl9bX.js"),__vite__mapDeps([28,20,21,5,9,10,4,29,30,11,15,31,32])))}),mE=dt({getParentRoute:()=>pE,path:"/$org",component:xt(()=>vt(()=>import("./org-layout-C77vl6Iy.js"),[]))}),gE=dt({getParentRoute:()=>mE,id:"org-shell",component:xt(()=>vt(()=>import("./index-D2D8zFsJ.js"),__vite__mapDeps([33,34,35,36,19,37,21,38,39,40,13,41,42,43,44,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,54,12,55,56,57,58,59,60,61,62,32,10,63,14,17,64,65,66,67,68,23,69,70,71,72,73,18,74,75,76,77,78,79,80,81,22,24,25,8,9,20,26,27,82,83,29,4,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111])))}),vE=dt({getParentRoute:()=>gE,id:"agent-shell",component:xt(()=>vt(()=>import("./index-CZPd3hrs.js").then(e=>e.x),__vite__mapDeps([112,113,108,22,23,24,25,69,70,101,26,114,38,39,40,13,41,42,43,44,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,35,54,12,55,56,57,58,59,60,61,62,32,10,63,14,19,17,115,116,36,106,107,18,117,118,8,9,20,21,27,93,119,83,29,4,84,67,75,96,120,121,122,74,65,123,124,92,109,110,102,103,66,90,91,125,126,127,86,87,88,89,76,78,79,80,94,95,97,98,99,100,37,34,64,68,71,72,73,77,81,82,85,104,105,128,129,130,131,132,30,133,134,135,136,137,138,139,140])))}),cle=we({virtualmcpid:j().optional(),tab:j().optional(),main:j().optional(),id:j().optional(),toolName:j().optional(),tasks:ut().optional(),mainOpen:ut().optional(),chat:ut().optional(),autosend:j().optional(),runLocally:j().optional()}),Q6=dt({getParentRoute:()=>vE,path:"/$taskId",validateSearch:cle,component:()=>null}),ule=dt({getParentRoute:()=>gE,path:"/",component:xt(()=>vt(()=>import("./index-CdAXbXCD.js"),__vite__mapDeps([141,36,44,23,69,70,113,108,22,24,25,101,26,114,38,39,40,13,41,42,43,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,35,54,12,55,56,57,58,59,60,61,62,32,10,63,14,19,17,115,116,106,107,18,117,118,8,9,20,21,27,93,119,83,29,4,84,67,75,96,120,121,122,74,65,123,124,92,109,110,102,103,66,90,91,125,126,127,86,87,88,89,76,78,79,80,94,95,97,98,99,100,81,71])))}),En=dt({getParentRoute:()=>mE,path:"/settings",component:xt(()=>vt(()=>import("./settings-layout-0UTQAxIu.js"),__vite__mapDeps([142,21,34,35,36,19,135,43,46,11,52,53,12,61,10,17,128,127,24,25,64,47,111])))}),dle=dt({getParentRoute:()=>En,path:"/",beforeLoad:({params:e})=>{throw Ic({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),fle=dt({getParentRoute:()=>En,path:"/connections",component:xt(()=>vt(()=>import("./connections-Dcfpl5Vt.js"),__vite__mapDeps([143,79,80,144,126,1,47,49,41,36,137,95,139,59,94,88,87,89,76,70,23,26,90,91,78,92,93,50,38,39,40,13,42,43,44,45,46,11,15,2,48,16,51,31,52,53,35,54,12,55,56,57,58,60,61,62,32,10,63,14,19,17,129,135,34,145,82,99,146,147,74,18,67,83,29,4,96,97,69,98]))),validateSearch:fl(()=>we({action:pn(["create"]).optional(),tab:pn(["all","connected"]).optional()}))}),hle=dt({getParentRoute:()=>En,path:"/connections/$appSlug",component:xt(()=>vt(()=>import("./connection-detail-pLHIqTQT.js"),__vite__mapDeps([148,79,80,129,98,4,58,62,149,23,77,38,39,40,13,41,42,43,44,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,35,54,12,55,56,57,59,60,61,32,10,63,14,19,17,76,70,150,151,78,89,26,96,36,103,66,69,72,71,132,95,118,152,153,9,119,93,34,83,29,145,82,154,135,155,120,87,75,92,126]))),validateSearch:fl(()=>we({tab:j().optional()}))}),ple=dt({getParentRoute:()=>En,path:"/connections/$appSlug/$collectionName/$itemId",component:xt(()=>vt(()=>import("./collection-detail-rvEMorEg.js"),__vite__mapDeps([156,129,70,23,83,29,4,97,154,135,34,35,36,19,157,150,80,151,69,134,96,1,2,48,84,130,38,39,40,13,41,42,43,44,45,46,11,15,47,49,50,16,51,31,52,53,54,12,55,56,57,58,59,60,61,62,32,10,63,14,17,115,95,137,76,77,18,125,104,126,93,85,158,25,118,159,149,78,79,89,26,103,66,72,71,87,132,117,108,22,24,101,8,9,20,21,27]))),validateSearch:fl(()=>we({replayId:j().optional()}))}),mle=dt({getParentRoute:()=>En,path:"/monitor",component:xt(()=>vt(()=>import("./index-DktH-nwk.js"),__vite__mapDeps([160,139,59,135,34,35,36,19,129,95,66,1,42,44,16,53,57,38,39,40,13,41,43,45,46,11,15,2,47,48,49,50,51,31,52,54,12,55,56,58,60,61,62,32,10,63,14,17,134,96,84,152,153,76,70,23,69,4,74,102,103,18,97,94,30,29,93,9,159,92,155,151,87,100,91,161,99,90,114,115,116,106,107,117,118,108,22,24,25,101,26,8,20,21,27,119,83,105]))),validateSearch:fl(()=>we({tab:pn(["overview","audit","threads"]).default("overview"),from:j().default("now-30m"),to:j().default("now"),connectionId:Ie(j()).optional().default([]),virtualMcpId:Ie(j()).optional().default([]),tool:j().default(""),status:pn(["all","success","errors"]).default("all"),search:j().default(""),page:ut().optional(),streaming:Nt().default(!0),propertyFilters:j().default(""),hideSystem:Nt().default(!1)}))}),gle=dt({getParentRoute:()=>En,path:"/general",component:xt(()=>vt(()=>import("./general-D8M9QTub.js"),__vite__mapDeps([162,135,34,35,36,19,153,133,9,10,4,124,92,45,163,110,23,30,164,69,70,66,68,59,65,38,39,40,13,41,42,43,44,46,11,15,1,2,47,48,49,50,16,51,31,52,53,54,12,55,56,57,58,60,61,62,32,63,14,17,93,26,82])))}),vle=dt({getParentRoute:()=>En,path:"/features",component:xt(()=>vt(()=>import("./features-BLue5eI4.js"),__vite__mapDeps([165,135,34,35,36,19,26,23,30,50,124,92,45])))}),_le=dt({getParentRoute:()=>En,path:"/brand-context",component:xt(()=>vt(()=>import("./brand-context-DWdSQDXw.js"),__vite__mapDeps([166,23,2,47,51,54,58,62,17,82,4,97,135,34,35,36,19,110,133])))}),yle=dt({getParentRoute:()=>En,path:"/ai-providers",component:xt(()=>vt(()=>import("./ai-providers-Dps_1J2i.js"),__vite__mapDeps([167,39,135,34,35,36,19,65,124,92,45,101,23,15,108,22,24,25,69,70,26,18,67,122,74,1,4,96,2,48,42,40,53,59,60,123,55,84,47,9,10,109,110,133,121,82,58,62,168,107])))}),ble=dt({getParentRoute:()=>En,path:"/secrets",component:xt(()=>vt(()=>import("./secrets-B6jYZgCT.js"),__vite__mapDeps([169,39,12,58,10,63,18,19,4,29,96,36,1,2,48,65,97,135,34,35,124,92,45,136,23,110])))}),wle=dt({getParentRoute:()=>En,path:"/files",component:xt(()=>vt(()=>import("./files-DnOIW6UR.js"),__vite__mapDeps([170,39,52,58,62,82,18,19,4,29,30,65,97,135,34,35,36,124,92,45,171,23,110])))}),Sle=dt({getParentRoute:()=>En,path:"/members",component:xt(()=>vt(()=>import("./members-CvLryIsr.js"),__vite__mapDeps([172,144,126,1,47,49,41,36,137,95,139,59,135,34,35,19,173,161,129,18,83,29,96,2,48,97,153,174,152,23,82,9,10,92,53,61,62,14,74,102,103,66,58])))}),Ele=dt({getParentRoute:()=>En,path:"/roles",component:xt(()=>vt(()=>import("./roles-DaLbowGy.js"),__vite__mapDeps([175,174,153,95,82,126,1,47,49,12,58,62,173,161,41,135,34,35,36,19,129,139,59,123,93,50,38,39,40,13,42,43,44,45,46,11,15,2,48,16,51,31,52,53,54,55,56,57,60,61,32,10,63,14,17,99,74,100,91,23,75,152,76,70,101,9,30,124,92]))),validateSearch:fl(()=>we({role:j().optional()}))}),xle=dt({getParentRoute:()=>En,path:"/sso",component:xt(()=>vt(()=>import("./sso-DLX1tDyb.js"),__vite__mapDeps([176,163,110,23,30,124,92,45,135,34,35,36,19,4,27,62])))}),Rle=dt({getParentRoute:()=>En,path:"/profile",component:xt(()=>vt(()=>import("./profile-CiZbXHxj.js"),__vite__mapDeps([177,135,34,35,36,19,9,10,30,96,1,2,48,121,4,55,56,57,133,127,85,124,92,45])))}),Ole=dt({getParentRoute:()=>En,path:"/store",component:xt(()=>vt(()=>import("./store-yTIcf52L.js"),__vite__mapDeps([178,39,47,58,62,4,30,65,9,10,66,76,70,23,135,34,35,36,19,89,26,124,92,45])))}),Tle=dt({getParentRoute:()=>En,path:"/registry",component:xt(()=>vt(()=>import("./registry-a_Y0eqBG.js"),[]))}),Cle=dt({getParentRoute:()=>En,path:"/store/registry",component:xt(()=>vt(()=>import("./store-registry-ClO-HCd4.js"),[]))}),Ale=dt({getParentRoute:()=>En,path:"/workflows",component:xt(()=>vt(()=>import("./workflow-BhGQkDG3.js"),__vite__mapDeps([179,23,79,80,144,126,1,47,49,41,36,137,95,75,59,92,93,50,38,39,40,13,42,43,44,45,46,11,15,2,48,16,51,31,52,53,35,54,12,55,56,57,58,60,61,62,32,10,63,14,19,17,173,161,158,131,9,129,146,147,87,82,70,76,154,135,34])))}),Ile=dt({getParentRoute:()=>En,path:"/workflows/$itemId",component:xt(()=>vt(()=>import("./workflow-detail-CgGFXY1-.js"),__vite__mapDeps([180,157,150,23,80,151,69,70,134,96,36,1,2,48,84,130,38,39,40,13,41,42,43,44,45,46,11,15,47,49,50,16,51,31,52,53,35,54,12,55,56,57,58,59,60,61,62,32,10,63,14,19,17,115,95,137,154,135,34,76,77,18,125,104,126,93,85,158,25,4])))}),Mle=dt({getParentRoute:()=>vE,path:"/plugins/$pluginId",component:xt(()=>vt(()=>import("./org-plugin-layout-iBgNZvjR.js"),__vite__mapDeps([181,182,76,70,23,60,135,34,35,36,19])))}),Ple=dt({getParentRoute:()=>En,path:"/agents",component:xt(()=>vt(()=>import("./agents-list-BD4seTwq.js"),__vite__mapDeps([183,126,1,47,49,51,11,73,69,70,23,71,18,19,74,75,59,76,42,12,38,39,40,13,41,43,44,45,46,15,2,48,50,16,31,52,53,35,54,55,56,57,58,60,61,62,32,10,63,14,17,77,78,79,80,135,34,36,92,168,107,129,72,81,82,139])))}),Nle=dt({getParentRoute:()=>En,path:"/automations",component:xt(()=>vt(()=>import("./automations-BIQRZeWE.js"),__vite__mapDeps([184,58,17,139,59,135,34,35,36,19,129,138,82,126,1,47,49,38,39,40,13,41,42,43,44,45,46,11,15,2,48,50,16,51,31,52,53,54,12,55,56,57,60,61,62,32,10,63,14,69,70,23,71])))}),X6=dt({getParentRoute:()=>Q6,path:"/$pluginId",component:xt(()=>vt(()=>import("./dynamic-plugin-layout-VBJnbblQ.js"),__vite__mapDeps([185,182,76,70,23,60,135,34,35,36,19])))}),kle=[],Dle=[],Lle=[],J6=[];ele.forEach(e=>{if(!e.setup)return;const t={parentRoute:X6,routing:{createRoute:dt,lazyRouteComponent:xt},registerRootSidebarItem:n=>kle.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Dle.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Lle.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{J6.push(...n)}};e.setup(t)});const $le=X6.addChildren(J6),jle=En.addChildren([dle,fle,hle,ple,Ple,Nle,mle,gle,vle,_le,yle,ble,wle,Sle,Ele,xle,Rle,Ole,Cle,Tle,Ale,Ile]),Ule=Q6.addChildren([$le]),zle=vE.addChildren([Ule,Mle]),Fle=gE.addChildren([ule,zle]),Ble=mE.addChildren([Fle,jle]),Vle=pE.addChildren([ale,Ble]),Hle=ms.addChildren([Vle,lle,tle,nle,rle,ole,ile,sle]),qle=Y7({routeTree:Hle,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Gle=document.getElementById("root");Sj.createRoot(Gle).render(C.jsx(M.StrictMode,{children:C.jsx(X7,{router:qle})}));export{Bee as $,Rce as A,dw as B,VG as C,_w as D,eue as E,Oi as F,Ti as G,Yce as H,Qce as I,we as J,lP as K,xw as L,ut as M,nce as N,FP as O,j as P,Kce as Q,Xle as R,l6 as S,Uae as T,Eg as U,Zce as V,xee as W,cP as X,Jle as Y,ul as Z,vt as _,l8 as a,$w as a$,mt as a0,ri as a1,QW as a2,XW as a3,Sn as a4,lt as a5,JW as a6,eQ as a7,rQ as a8,lQ as a9,sS as aA,Hc as aB,fa as aC,hs as aD,ii as aE,R4 as aF,ZY as aG,QY as aH,YY as aI,LY as aJ,Lle as aK,Zle as aL,Xt as aM,Gce as aN,qce as aO,EW as aP,Z4 as aQ,S4 as aR,uf as aS,sa as aT,SW as aU,fs as aV,Zw as aW,yo as aX,Ge as aY,lB as aZ,y3 as a_,ek as aa,ml as ab,tQ as ac,nQ as ad,oQ as ae,iQ as af,sQ as ag,aQ as ah,cQ as ai,dQ as aj,fQ as ak,YM as al,Yn as am,Ie as an,pn as ao,Mt as ap,Nt as aq,Xce as ar,BG as as,Jce as at,CC as au,fw as av,GY as aw,oi as ax,Wd as ay,Cg as az,Lg as b,qZ as b$,V3 as b0,Yk as b1,Qk as b2,$Q as b3,Xn as b4,cX as b5,D4 as b6,w4 as b7,Kae as b8,ha as b9,aoe as bA,coe as bB,foe as bC,Eoe as bD,Loe as bE,Uoe as bF,loe as bG,uoe as bH,hoe as bI,poe as bJ,xoe as bK,Poe as bL,jce as bM,ele as bN,Dle as bO,Ece as bP,QF as bQ,rce as bR,lce as bS,eV as bT,fl as bU,TB as bV,Pw as bW,ice as bX,gf as bY,BZ as bZ,HZ as b_,ee as ba,Kle as bb,GZ as bc,Ice as bd,PP as be,pa as bf,tE as bg,mg as bh,Ace as bi,Mce as bj,_o as bk,Qa as bl,dn as bm,oce as bn,BN as bo,Coe as bp,Aoe as bq,JS as br,P6 as bs,eE as bt,rv as bu,g6 as bv,Voe as bw,_6 as bx,joe as by,Qoe as bz,Gae as c,ni as c$,cf as c0,qG as c1,HG as c2,N3 as c3,sP as c4,r8 as c5,G4 as c6,cW as c7,Qw as c8,$4 as c9,b6 as cA,E6 as cB,O6 as cC,zce as cD,w6 as cE,Nse as cF,Bce as cG,HS as cH,eoe as cI,Pce as cJ,p6 as cK,Eie as cL,Moe as cM,Fce as cN,mie as cO,_ie as cP,Joe as cQ,Xoe as cR,Vce as cS,sae as cT,Hce as cU,Uce as cV,KZ as cW,ZZ as cX,VZ as cY,YZ as cZ,uce as c_,o4 as ca,Xw as cb,Yd as cc,Y3 as cd,Ww as ce,Yw as cf,uW as cg,dW as ch,Yae as ci,i6 as cj,KQ as ck,ZQ as cl,GQ as cm,RU as cn,m6 as co,y6 as cp,S6 as cq,x6 as cr,R6 as cs,T6 as ct,Lce as cu,$ce as cv,kce as cw,Dce as cx,Fre as cy,Nce as cz,LP as d,fce as d0,dce as d1,nP as d2,Wle as d3,Yle as d4,zQ as d5,jP as d6,IQ as d7,MQ as d8,kQ as d9,$G as dA,NG as dB,R3 as dC,PQ as da,NQ as db,hce as dc,pce as dd,_ce as de,yce as df,bce as dg,wce as dh,mce as di,gce as dj,vce as dk,AB as dl,Iw as dm,sB as dn,sce as dp,PB as dq,Nw as dr,Mw as ds,LB as dt,ace as du,Bie as dv,gt as dw,Cr as dx,tce as dy,UG as dz,Ri as e,Tg as f,DP as g,Oce as h,xce as i,C as j,Tce as k,s6 as l,Wce as m,a8 as n,VT as o,Lae as p,zre as q,M as r,aP as s,Cce as t,ece as u,VS as v,FG as w,cce as x,Tae as y,a6 as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function Vae(e){const t=Ri.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:lP.publicConfig(),queryFn:Fae,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=aP(r),[s]=Uae();o.internalUrl&&Aae(o.internalUrl);let l,c;t[1]!==o.theme?(l=()=>{Bae(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const S=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!S)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=S;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=x=>{h.classList.toggle("dark",x),g()};y(v.matches);const b=x=>y(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const Hae=new Zj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function qae(e){const t=Ri.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(tG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(l6,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(Yj,{client:Hae,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(Vae,{children:C.jsx(u8,{children:C.jsx(Ate,{children:C.jsx(jre,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function Gae(...e){return y3($w(e))}const Kae=V3("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function dw(e){const t=Ri.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?Zw:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=Gae(Kae({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const qM="__mesh_chunk_reload_ts";function GM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class eue extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),o6(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(VS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(dw,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class Zae extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=GM(t);if(o6(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(qM),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(qM,String(s)),window.location.reload())}render(){return this.state.hasError&&GM(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(a6,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(dw,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(VS,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(dw,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const Yae="MCP Workflows",Wae="Create workflows using your MCP tools",Qae=M.lazy(()=>vt(()=>import("./plugin-header-CLNGHNmz.js"),__vite__mapDeps([0,1,2]))),Xae=M.lazy(()=>vt(()=>import("./plugin-empty-state-CuVTFSVp.js"),[])),Jae={id:Yae,description:Wae,bindingName:"WORKFLOW",renderHeader:e=>C.jsx(Qae,{...e}),renderEmptyState:()=>C.jsx(Xae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:C.jsx(i6,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},ele=[Jae],ms=j7({component:()=>C.jsx(Zae,{children:C.jsx(qae,{children:C.jsx(M.Suspense,{fallback:C.jsx(l6,{}),children:C.jsx(FP,{})})})})}),tle=dt({getParentRoute:()=>ms,path:"/login",component:xt(()=>vt(()=>import("./login-CfCMY-Xx.js"),__vite__mapDeps([3,4,5]))),validateSearch:fl(()=>we({next:j().optional(),client_id:j().optional(),redirect_uri:j().optional(),response_type:j().optional(),state:j().optional(),scope:j().optional(),code_challenge:j().optional(),code_challenge_method:j().optional()}))}),nle=dt({getParentRoute:()=>ms,path:"/cli/auth-success",component:xt(()=>vt(()=>import("./cli-auth-success-CvhsqEgg.js"),__vite__mapDeps([6,5])))}),rle=dt({getParentRoute:()=>ms,path:"/reset-password",component:xt(()=>vt(()=>import("./reset-password-rYx9wxY5.js"),__vite__mapDeps([7,4]))),validateSearch:fl(()=>we({token:j().optional(),error:j().optional()}))}),ole=dt({getParentRoute:()=>ms,path:"/auth/$pathname",component:xt(()=>vt(()=>import("./auth-catchall-AHvA5vWD.js"),[]))}),ile=dt({getParentRoute:()=>ms,path:"/oauth/callback",component:xt(()=>vt(()=>import("./oauth-callback-ZvrYBv1e.js"),[]))}),sle=dt({getParentRoute:()=>ms,path:"/oauth/callback/ai-provider",component:xt(()=>vt(()=>import("./oauth-callback-ai-provider-BUr_Gk3g.js"),[]))}),pE=dt({getParentRoute:()=>ms,id:"shell",component:xt(()=>vt(()=>import("./shell-layout-iPI2JI8_.js").then(e=>e.s),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27])))}),ale=dt({getParentRoute:()=>pE,path:"/",beforeLoad:async()=>{const{data:e}=await Lg.organization.list();if(!e)return;const t=e.filter(o=>!o.metadata?.archived),n=localStorage.getItem(Eg.lastOrgSlug());if(n){if(t.some(s=>s.slug===n))throw Ic({to:"/$org",params:{org:n}});localStorage.removeItem(Eg.lastOrgSlug())}const r=t[0];throw Ic(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),lle=dt({getParentRoute:()=>ms,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Lg.organization.list(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Ic({to:"/"})},component:xt(()=>vt(()=>import("./onboarding-DAlRszwq.js"),__vite__mapDeps([28,20,21,5,9,10,4,29,30,11,15,31,32])))}),mE=dt({getParentRoute:()=>pE,path:"/$org",component:xt(()=>vt(()=>import("./org-layout-CG7hQKSm.js"),[]))}),gE=dt({getParentRoute:()=>mE,id:"org-shell",component:xt(()=>vt(()=>import("./index-CP1SUcsr.js"),__vite__mapDeps([33,34,35,36,19,37,21,38,39,40,13,41,42,43,44,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,54,12,55,56,57,58,59,60,61,62,32,10,63,14,17,64,65,66,67,68,23,69,70,71,72,73,18,74,75,76,77,78,79,80,81,22,24,25,8,9,20,26,27,82,83,29,4,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111])))}),vE=dt({getParentRoute:()=>gE,id:"agent-shell",component:xt(()=>vt(()=>import("./index-Bj3Gsvmx.js").then(e=>e.x),__vite__mapDeps([112,113,108,22,23,24,25,69,70,101,26,114,38,39,40,13,41,42,43,44,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,35,54,12,55,56,57,58,59,60,61,62,32,10,63,14,19,17,115,116,36,106,107,18,117,118,8,9,20,21,27,93,119,83,29,4,84,67,75,96,120,121,122,74,65,123,124,92,109,110,102,103,66,90,91,125,126,127,86,87,88,89,76,78,79,80,94,95,97,98,99,100,37,34,64,68,71,72,73,77,81,82,85,104,105,128,129,130,131,132,30,133,134,135,136,137,138,139,140])))}),cle=we({virtualmcpid:j().optional(),tab:j().optional(),main:j().optional(),id:j().optional(),toolName:j().optional(),tasks:ut().optional(),mainOpen:ut().optional(),chat:ut().optional(),autosend:j().optional(),runLocally:j().optional()}),Q6=dt({getParentRoute:()=>vE,path:"/$taskId",validateSearch:cle,component:()=>null}),ule=dt({getParentRoute:()=>gE,path:"/",component:xt(()=>vt(()=>import("./index-CPUASH8Y.js"),__vite__mapDeps([141,36,44,23,69,70,113,108,22,24,25,101,26,114,38,39,40,13,41,42,43,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,35,54,12,55,56,57,58,59,60,61,62,32,10,63,14,19,17,115,116,106,107,18,117,118,8,9,20,21,27,93,119,83,29,4,84,67,75,96,120,121,122,74,65,123,124,92,109,110,102,103,66,90,91,125,126,127,86,87,88,89,76,78,79,80,94,95,97,98,99,100,81,71])))}),En=dt({getParentRoute:()=>mE,path:"/settings",component:xt(()=>vt(()=>import("./settings-layout-BBUh6Vlw.js"),__vite__mapDeps([142,21,34,35,36,19,135,43,46,11,52,53,12,61,10,17,128,127,24,25,64,47,111])))}),dle=dt({getParentRoute:()=>En,path:"/",beforeLoad:({params:e})=>{throw Ic({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),fle=dt({getParentRoute:()=>En,path:"/connections",component:xt(()=>vt(()=>import("./connections-BO5GNb9A.js"),__vite__mapDeps([143,79,80,144,126,1,47,49,41,36,137,95,139,59,94,88,87,89,76,70,23,26,90,91,78,92,93,50,38,39,40,13,42,43,44,45,46,11,15,2,48,16,51,31,52,53,35,54,12,55,56,57,58,60,61,62,32,10,63,14,19,17,129,135,34,145,82,99,146,147,74,18,67,83,29,4,96,97,69,98]))),validateSearch:fl(()=>we({action:pn(["create"]).optional(),tab:pn(["all","connected"]).optional()}))}),hle=dt({getParentRoute:()=>En,path:"/connections/$appSlug",component:xt(()=>vt(()=>import("./connection-detail-B7sBzrsj.js"),__vite__mapDeps([148,79,80,129,98,4,58,62,149,23,77,38,39,40,13,41,42,43,44,45,46,11,15,1,2,47,48,49,50,16,51,31,52,53,35,54,12,55,56,57,59,60,61,32,10,63,14,19,17,76,70,150,151,78,89,26,96,36,103,66,69,72,71,132,95,118,152,153,9,119,93,34,83,29,145,82,154,135,155,120,87,75,92,126]))),validateSearch:fl(()=>we({tab:j().optional()}))}),ple=dt({getParentRoute:()=>En,path:"/connections/$appSlug/$collectionName/$itemId",component:xt(()=>vt(()=>import("./collection-detail-CzazaoJP.js"),__vite__mapDeps([156,129,70,23,83,29,4,97,154,135,34,35,36,19,157,150,80,151,69,134,96,1,2,48,84,130,38,39,40,13,41,42,43,44,45,46,11,15,47,49,50,16,51,31,52,53,54,12,55,56,57,58,59,60,61,62,32,10,63,14,17,115,95,137,76,77,18,125,104,126,93,85,158,25,118,159,149,78,79,89,26,103,66,72,71,87,132,117,108,22,24,101,8,9,20,21,27]))),validateSearch:fl(()=>we({replayId:j().optional()}))}),mle=dt({getParentRoute:()=>En,path:"/monitor",component:xt(()=>vt(()=>import("./index-DBIBJV0k.js"),__vite__mapDeps([160,139,59,135,34,35,36,19,129,95,66,1,42,44,16,53,57,38,39,40,13,41,43,45,46,11,15,2,47,48,49,50,51,31,52,54,12,55,56,58,60,61,62,32,10,63,14,17,134,96,84,152,153,76,70,23,69,4,74,102,103,18,97,94,30,29,93,9,159,92,155,151,87,100,91,161,99,90,114,115,116,106,107,117,118,108,22,24,25,101,26,8,20,21,27,119,83,105]))),validateSearch:fl(()=>we({tab:pn(["overview","audit","threads"]).default("overview"),from:j().default("now-30m"),to:j().default("now"),connectionId:Ie(j()).optional().default([]),virtualMcpId:Ie(j()).optional().default([]),tool:j().default(""),status:pn(["all","success","errors"]).default("all"),search:j().default(""),page:ut().optional(),streaming:Nt().default(!0),propertyFilters:j().default(""),hideSystem:Nt().default(!1)}))}),gle=dt({getParentRoute:()=>En,path:"/general",component:xt(()=>vt(()=>import("./general-BGSI6aBj.js"),__vite__mapDeps([162,135,34,35,36,19,153,133,9,10,4,124,92,45,163,110,23,30,164,69,70,66,68,59,65,38,39,40,13,41,42,43,44,46,11,15,1,2,47,48,49,50,16,51,31,52,53,54,12,55,56,57,58,60,61,62,32,63,14,17,93,26,82])))}),vle=dt({getParentRoute:()=>En,path:"/features",component:xt(()=>vt(()=>import("./features-DZ0ghQyn.js"),__vite__mapDeps([165,135,34,35,36,19,26,23,30,50,124,92,45])))}),_le=dt({getParentRoute:()=>En,path:"/brand-context",component:xt(()=>vt(()=>import("./brand-context-D5z_TG2J.js"),__vite__mapDeps([166,23,2,47,51,54,58,62,17,82,4,97,135,34,35,36,19,110,133])))}),yle=dt({getParentRoute:()=>En,path:"/ai-providers",component:xt(()=>vt(()=>import("./ai-providers-B1ZbPwoq.js"),__vite__mapDeps([167,39,135,34,35,36,19,65,124,92,45,101,23,15,108,22,24,25,69,70,26,18,67,122,74,1,4,96,2,48,42,40,53,59,60,123,55,84,47,9,10,109,110,133,121,82,58,62,168,107])))}),ble=dt({getParentRoute:()=>En,path:"/secrets",component:xt(()=>vt(()=>import("./secrets-DmZX9LsT.js"),__vite__mapDeps([169,39,12,58,10,63,18,19,4,29,96,36,1,2,48,65,97,135,34,35,124,92,45,136,23,110])))}),wle=dt({getParentRoute:()=>En,path:"/files",component:xt(()=>vt(()=>import("./files-mqgIbtsb.js"),__vite__mapDeps([170,39,52,58,62,82,18,19,4,29,30,65,97,135,34,35,36,124,92,45,171,23,110])))}),Sle=dt({getParentRoute:()=>En,path:"/members",component:xt(()=>vt(()=>import("./members-xAPoZeMG.js"),__vite__mapDeps([172,144,126,1,47,49,41,36,137,95,139,59,135,34,35,19,173,161,129,18,83,29,96,2,48,97,153,174,152,23,82,9,10,92,53,61,62,14,74,102,103,66,58])))}),Ele=dt({getParentRoute:()=>En,path:"/roles",component:xt(()=>vt(()=>import("./roles-DRxguWZW.js"),__vite__mapDeps([175,174,153,95,82,126,1,47,49,12,58,62,173,161,41,135,34,35,36,19,129,139,59,123,93,50,38,39,40,13,42,43,44,45,46,11,15,2,48,16,51,31,52,53,54,55,56,57,60,61,32,10,63,14,17,99,74,100,91,23,75,152,76,70,101,9,30,124,92]))),validateSearch:fl(()=>we({role:j().optional()}))}),xle=dt({getParentRoute:()=>En,path:"/sso",component:xt(()=>vt(()=>import("./sso-BQiNOjXF.js"),__vite__mapDeps([176,163,110,23,30,124,92,45,135,34,35,36,19,4,27,62])))}),Rle=dt({getParentRoute:()=>En,path:"/profile",component:xt(()=>vt(()=>import("./profile-DJyl7mco.js"),__vite__mapDeps([177,135,34,35,36,19,9,10,30,96,1,2,48,121,4,55,56,57,133,127,85,124,92,45])))}),Ole=dt({getParentRoute:()=>En,path:"/store",component:xt(()=>vt(()=>import("./store-DkONcJaZ.js"),__vite__mapDeps([178,39,47,58,62,4,30,65,9,10,66,76,70,23,135,34,35,36,19,89,26,124,92,45])))}),Tle=dt({getParentRoute:()=>En,path:"/registry",component:xt(()=>vt(()=>import("./registry-CZacfzmC.js"),[]))}),Cle=dt({getParentRoute:()=>En,path:"/store/registry",component:xt(()=>vt(()=>import("./store-registry-DdExMpCJ.js"),[]))}),Ale=dt({getParentRoute:()=>En,path:"/workflows",component:xt(()=>vt(()=>import("./workflow-DvcXfyy4.js"),__vite__mapDeps([179,23,79,80,144,126,1,47,49,41,36,137,95,75,59,92,93,50,38,39,40,13,42,43,44,45,46,11,15,2,48,16,51,31,52,53,35,54,12,55,56,57,58,60,61,62,32,10,63,14,19,17,173,161,158,131,9,129,146,147,87,82,70,76,154,135,34])))}),Ile=dt({getParentRoute:()=>En,path:"/workflows/$itemId",component:xt(()=>vt(()=>import("./workflow-detail-BrOvUZpc.js"),__vite__mapDeps([180,157,150,23,80,151,69,70,134,96,36,1,2,48,84,130,38,39,40,13,41,42,43,44,45,46,11,15,47,49,50,16,51,31,52,53,35,54,12,55,56,57,58,59,60,61,62,32,10,63,14,19,17,115,95,137,154,135,34,76,77,18,125,104,126,93,85,158,25,4])))}),Mle=dt({getParentRoute:()=>vE,path:"/plugins/$pluginId",component:xt(()=>vt(()=>import("./org-plugin-layout-B2xqOhgA.js"),__vite__mapDeps([181,182,76,70,23,60,135,34,35,36,19])))}),Ple=dt({getParentRoute:()=>En,path:"/agents",component:xt(()=>vt(()=>import("./agents-list-_CO5Xl7p.js"),__vite__mapDeps([183,126,1,47,49,51,11,73,69,70,23,71,18,19,74,75,59,76,42,12,38,39,40,13,41,43,44,45,46,15,2,48,50,16,31,52,53,35,54,55,56,57,58,60,61,62,32,10,63,14,17,77,78,79,80,135,34,36,92,168,107,129,72,81,82,139])))}),Nle=dt({getParentRoute:()=>En,path:"/automations",component:xt(()=>vt(()=>import("./automations-CmZJlJt9.js"),__vite__mapDeps([184,58,17,139,59,135,34,35,36,19,129,138,82,126,1,47,49,38,39,40,13,41,42,43,44,45,46,11,15,2,48,50,16,51,31,52,53,54,12,55,56,57,60,61,62,32,10,63,14,69,70,23,71])))}),X6=dt({getParentRoute:()=>Q6,path:"/$pluginId",component:xt(()=>vt(()=>import("./dynamic-plugin-layout-DlWKLIeK.js"),__vite__mapDeps([185,182,76,70,23,60,135,34,35,36,19])))}),kle=[],Dle=[],Lle=[],J6=[];ele.forEach(e=>{if(!e.setup)return;const t={parentRoute:X6,routing:{createRoute:dt,lazyRouteComponent:xt},registerRootSidebarItem:n=>kle.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Dle.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Lle.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{J6.push(...n)}};e.setup(t)});const $le=X6.addChildren(J6),jle=En.addChildren([dle,fle,hle,ple,Ple,Nle,mle,gle,vle,_le,yle,ble,wle,Sle,Ele,xle,Rle,Ole,Cle,Tle,Ale,Ile]),Ule=Q6.addChildren([$le]),zle=vE.addChildren([Ule,Mle]),Fle=gE.addChildren([ule,zle]),Ble=mE.addChildren([Fle,jle]),Vle=pE.addChildren([ale,Ble]),Hle=ms.addChildren([Vle,lle,tle,nle,rle,ole,ile,sle]),qle=Y7({routeTree:Hle,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),Gle=document.getElementById("root");Sj.createRoot(Gle).render(C.jsx(M.StrictMode,{children:C.jsx(X7,{router:qle})}));export{Bee as $,Rce as A,dw as B,VG as C,_w as D,eue as E,Oi as F,Ti as G,Yce as H,Qce as I,we as J,lP as K,xw as L,ut as M,nce as N,FP as O,j as P,Kce as Q,Xle as R,l6 as S,Uae as T,Eg as U,Zce as V,xee as W,cP as X,Jle as Y,ul as Z,vt as _,l8 as a,$w as a$,mt as a0,ri as a1,QW as a2,XW as a3,Sn as a4,lt as a5,JW as a6,eQ as a7,rQ as a8,lQ as a9,sS as aA,Hc as aB,fa as aC,hs as aD,ii as aE,R4 as aF,ZY as aG,QY as aH,YY as aI,LY as aJ,Lle as aK,Zle as aL,Xt as aM,Gce as aN,qce as aO,EW as aP,Z4 as aQ,S4 as aR,uf as aS,sa as aT,SW as aU,fs as aV,Zw as aW,yo as aX,Ge as aY,lB as aZ,y3 as a_,ek as aa,ml as ab,tQ as ac,nQ as ad,oQ as ae,iQ as af,sQ as ag,aQ as ah,cQ as ai,dQ as aj,fQ as ak,YM as al,Yn as am,Ie as an,pn as ao,Mt as ap,Nt as aq,Xce as ar,BG as as,Jce as at,CC as au,fw as av,GY as aw,oi as ax,Wd as ay,Cg as az,Lg as b,qZ as b$,V3 as b0,Yk as b1,Qk as b2,$Q as b3,Xn as b4,cX as b5,D4 as b6,w4 as b7,Kae as b8,ha as b9,aoe as bA,coe as bB,foe as bC,Eoe as bD,Loe as bE,Uoe as bF,loe as bG,uoe as bH,hoe as bI,poe as bJ,xoe as bK,Poe as bL,jce as bM,ele as bN,Dle as bO,Ece as bP,QF as bQ,rce as bR,lce as bS,eV as bT,fl as bU,TB as bV,Pw as bW,ice as bX,gf as bY,BZ as bZ,HZ as b_,ee as ba,Kle as bb,GZ as bc,Ice as bd,PP as be,pa as bf,tE as bg,mg as bh,Ace as bi,Mce as bj,_o as bk,Qa as bl,dn as bm,oce as bn,BN as bo,Coe as bp,Aoe as bq,JS as br,P6 as bs,eE as bt,rv as bu,g6 as bv,Voe as bw,_6 as bx,joe as by,Qoe as bz,Gae as c,ni as c$,cf as c0,qG as c1,HG as c2,N3 as c3,sP as c4,r8 as c5,G4 as c6,cW as c7,Qw as c8,$4 as c9,b6 as cA,E6 as cB,O6 as cC,zce as cD,w6 as cE,Nse as cF,Bce as cG,HS as cH,eoe as cI,Pce as cJ,p6 as cK,Eie as cL,Moe as cM,Fce as cN,mie as cO,_ie as cP,Joe as cQ,Xoe as cR,Vce as cS,sae as cT,Hce as cU,Uce as cV,KZ as cW,ZZ as cX,VZ as cY,YZ as cZ,uce as c_,o4 as ca,Xw as cb,Yd as cc,Y3 as cd,Ww as ce,Yw as cf,uW as cg,dW as ch,Yae as ci,i6 as cj,KQ as ck,ZQ as cl,GQ as cm,RU as cn,m6 as co,y6 as cp,S6 as cq,x6 as cr,R6 as cs,T6 as ct,Lce as cu,$ce as cv,kce as cw,Dce as cx,Fre as cy,Nce as cz,LP as d,fce as d0,dce as d1,nP as d2,Wle as d3,Yle as d4,zQ as d5,jP as d6,IQ as d7,MQ as d8,kQ as d9,$G as dA,NG as dB,R3 as dC,PQ as da,NQ as db,hce as dc,pce as dd,_ce as de,yce as df,bce as dg,wce as dh,mce as di,gce as dj,vce as dk,AB as dl,Iw as dm,sB as dn,sce as dp,PB as dq,Nw as dr,Mw as ds,LB as dt,ace as du,Bie as dv,gt as dw,Cr as dx,tce as dy,UG as dz,Ri as e,Tg as f,DP as g,Oce as h,xce as i,C as j,Tce as k,s6 as l,Wce as m,a8 as n,VT as o,Lae as p,zre as q,M as r,aP as s,Cce as t,ece as u,VS as v,FG as w,cce as x,Tae as y,a6 as z};
|