decocms 3.76.0 → 3.76.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CZWjmLDT.js → AlertCircle-BZqAQZBb.js} +1 -1
- package/dist/client/assets/{ArrowRight-DswQGw32.js → ArrowRight-6qgvW498.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-zJbKnVEx.js → ArrowUpRight-CUPFfker.js} +1 -1
- package/dist/client/assets/{CheckCircle-DD9zrZHy.js → CheckCircle-DOPRdShL.js} +1 -1
- package/dist/client/assets/{ChevronDown-P1cR1p1z.js → ChevronDown-BhLFFAly.js} +1 -1
- package/dist/client/assets/{ChevronLeft-njq8SkK6.js → ChevronLeft-veOSKT91.js} +1 -1
- package/dist/client/assets/{ChevronRight-C5wvGTH8.js → ChevronRight-tj4xbWmM.js} +1 -1
- package/dist/client/assets/ChevronUp-DhHPsDAS.js +1 -0
- package/dist/client/assets/{DotsVertical-DVx42NIt.js → DotsVertical-kcsdrim_.js} +1 -1
- package/dist/client/assets/{Eye-BkHY3voI.js → Eye-BfNssVzk.js} +1 -1
- package/dist/client/assets/{FilterLines-rKEHnpC8.js → FilterLines-D2obCQW_.js} +1 -1
- package/dist/client/assets/{Globe01-Cq-Rbldi.js → Globe01-CJXHyXNe.js} +1 -1
- package/dist/client/assets/{Globe04-CtEF3BRe.js → Globe04-PQ0ejRYI.js} +1 -1
- package/dist/client/assets/{HardDrive-7UiN3uqO.js → HardDrive-DEG8fjxw.js} +1 -1
- package/dist/client/assets/{Key01-v4LCWUSc.js → Key01-xj4UQriu.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BrCMpwSK.js → LayoutLeft-C9-KQh8d.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DtT4L4N6.js → LinkExternal01-DtLsAcMy.js} +1 -1
- package/dist/client/assets/{Monitor01-D9depcVp.js → Monitor01-CvNVisni.js} +1 -1
- package/dist/client/assets/{Palette-D_iY1hQ7.js → Palette-yNiXmyHD.js} +1 -1
- package/dist/client/assets/{Play-DdLK5xgI.js → Play-C0DhAO4u.js} +1 -1
- package/dist/client/assets/{Plus-Cd0ypUPB.js → Plus-BRQannbC.js} +1 -1
- package/dist/client/assets/{SearchMd-CKCNrxV5.js → SearchMd-CttVjXUQ.js} +1 -1
- package/dist/client/assets/{Settings02-BoqCpz_o.js → Settings02-kQ4zmp5P.js} +1 -1
- package/dist/client/assets/{Shield01-Wa9NR2vn.js → Shield01-BZZVugf_.js} +1 -1
- package/dist/client/assets/{Star01-DhLGcNbl.js → Star01-CFj5T2Jl.js} +1 -1
- package/dist/client/assets/{Stars01-WeiMgRuc.js → Stars01-C4FyHP_L.js} +1 -1
- package/dist/client/assets/{Stars02-DnTT2sBI.js → Stars02-Bo19XD__.js} +1 -1
- package/dist/client/assets/{Sun-1K7RcAWZ.js → Sun-CcSW7Ngf.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CEUgiRB1.js → SwitchHorizontal01-BVKPeJMU.js} +1 -1
- package/dist/client/assets/{Tool01-Dv9dCbp6.js → Tool01-AyuVwnGv.js} +1 -1
- package/dist/client/assets/{Trash01-BC1OhQlq.js → Trash01-BZXmKzie.js} +1 -1
- package/dist/client/assets/{Upload01-BHKvZ87r.js → Upload01-D4ez0Mu3.js} +1 -1
- package/dist/client/assets/{User01-B9BKmOI0.js → User01-Dz33ODze.js} +1 -1
- package/dist/client/assets/{Users01-Dy2qezq_.js → Users01-aBataJ8N.js} +1 -1
- package/dist/client/assets/{Users03-B41w1ewc.js → Users03-C6siA5mE.js} +1 -1
- package/dist/client/assets/{X-CNdGRyYk.js → X-DC2HG4lX.js} +1 -1
- package/dist/client/assets/{XCircle-j1-GVtiw.js → XCircle-DJDxYBys.js} +1 -1
- package/dist/client/assets/{XClose-BgQasJGJ.js → XClose-BcOWKb5Q.js} +1 -1
- package/dist/client/assets/{Zap-Cd1AcQhh.js → Zap-OOZsYg72.js} +1 -1
- package/dist/client/assets/{ZapSquare-Cl9Iu0Yu.js → ZapSquare-ok_KEP9c.js} +1 -1
- package/dist/client/assets/{ZoomOut-DG8OwHO2.js → ZoomOut-cYq1CP_X.js} +1 -1
- package/dist/client/assets/{access-gate-CNUwq6nr.js → access-gate-uvqL8ENQ.js} +1 -1
- package/dist/client/assets/add-section-modal-CZMJAFim.js +1 -0
- package/dist/client/assets/agent-icon-C4199b3i.js +1 -0
- package/dist/client/assets/agents-list-BkhDlcw_.js +1 -0
- package/dist/client/assets/ai-providers-CocgfzPQ.js +1 -0
- package/dist/client/assets/{alert-Bx3j7Zu2.js → alert-CUg2Lij_.js} +1 -1
- package/dist/client/assets/{alert-dialog-C8bis9BK.js → alert-dialog-BUQoXI1j.js} +1 -1
- package/dist/client/assets/app-editor-C-syiSQu.js +1 -0
- package/dist/client/assets/{auth-rR0qxEot.js → auth-B9bEkbYh.js} +1 -1
- package/dist/client/assets/{auth-catchall-G4-_U_hr.js → auth-catchall-CoB3zmdz.js} +1 -1
- package/dist/client/assets/{auth-entry-DVVVpVbL.js → auth-entry-CGeJ7qYU.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BnwaUYfT.js → auth-split-layout-DAQR8Zen.js} +1 -1
- package/dist/client/assets/{automation-list-row-DyIqsqOZ.js → automation-list-row-DMPjogBl.js} +1 -1
- package/dist/client/assets/{automation-runs-QwVqCO49.js → automation-runs-y9iHLMe2.js} +1 -1
- package/dist/client/assets/automations-BZ5f_VCT.js +1 -0
- package/dist/client/assets/{avatar-DYinNJvl.js → avatar-CKJB3djy.js} +1 -1
- package/dist/client/assets/{badge-CzYcGjqZ.js → badge-DUlP8HvP.js} +1 -1
- package/dist/client/assets/{block-document-BulOcPyx.js → block-document-Cft5FVFJ.js} +1 -1
- package/dist/client/assets/{brand-context-CkwHlhfX.js → brand-context-ozThKdwR.js} +1 -1
- package/dist/client/assets/buckets-DXjIiLHp.js +1 -0
- package/dist/client/assets/{calendar-CEJilXwV.js → calendar-DDwlGULz.js} +1 -1
- package/dist/client/assets/{capability-load-error-D6fX-v6m.js → capability-load-error-DTVGdoZZ.js} +1 -1
- package/dist/client/assets/{card-e6Sa893P.js → card-D7O9yDM9.js} +1 -1
- package/dist/client/assets/category-editor-B2u5O4dV.js +1 -0
- package/dist/client/assets/{chat-context-DuUO64-v.js → chat-context-GA_fpERN.js} +1 -1
- package/dist/client/assets/checkbox-DOg3LODJ.js +1 -0
- package/dist/client/assets/{cli-auth-success-BY8fHwGL.js → cli-auth-success-Jeg6Lv3T.js} +1 -1
- package/dist/client/assets/collection-detail-BDyvHjSJ.js +1 -0
- package/dist/client/assets/collection-display-button-b4s7O-gz.js +1 -0
- package/dist/client/assets/{collection-search-YuvsCInj.js → collection-search-DC-7DcrR.js} +1 -1
- package/dist/client/assets/{collection-tabs-BvdJGTHh.js → collection-tabs-CRIZ0CX_.js} +1 -1
- package/dist/client/assets/{command-DBO-6Ili.js → command-BzTLypzr.js} +1 -1
- package/dist/client/assets/commerce-onboarding-Cz_Sr1Cc.js +1 -0
- package/dist/client/assets/connect-desktop-dialog-uLnBe_nQ.js +1 -0
- package/dist/client/assets/{connection-card-sqzGo5b9.js → connection-card-DPkWnrYu.js} +1 -1
- package/dist/client/assets/connection-detail-DFBuqM3e.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DAgkTcm-.js → connection-form-helpers-B_oQdAph.js} +1 -1
- package/dist/client/assets/connections-BF1eSDFK.js +1 -0
- package/dist/client/assets/{context-menu--dT1SoD7.js → context-menu-DegHHWIw.js} +1 -1
- package/dist/client/assets/{decopilot-B71gq1IG.js → decopilot-BsjqLgTH.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-BfjIH6C6.js → decopilot-sse-pool-CZG5pZEa.js} +1 -1
- package/dist/client/assets/{dialog-D72IgZaK.js → dialog-DDL08EK8.js} +1 -1
- package/dist/client/assets/{domain-settings-GvfG_VOO.js → domain-settings-ctGoYy0P.js} +1 -1
- package/dist/client/assets/{drawer-DUNra2qL.js → drawer-CTdCEiZw.js} +1 -1
- package/dist/client/assets/dropdown-menu-CgCZ8Mte.js +1 -0
- package/dist/client/assets/{empty-state-D0sRK0ON.js → empty-state-BDXQKaPV.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CF6q97ac.js → extract-connection-data-D4y9_vmi.js} +1 -1
- package/dist/client/assets/file-explorer-DTEZJaER.js +2 -0
- package/dist/client/assets/{file-type-icon-CeVYC7mS.js → file-type-icon-GfohFxwW.js} +1 -1
- package/dist/client/assets/{files-a4BL2DOF.js → files-CjZS2qVw.js} +1 -1
- package/dist/client/assets/{form-c6Tjk0mK.js → form-B9v_4_lt.js} +1 -1
- package/dist/client/assets/general-CMdyBBfH.js +1 -0
- package/dist/client/assets/{github-repo-picker-CY9IQCxY.js → github-repo-picker-Qwduwaex.js} +1 -1
- package/dist/client/assets/{hooks-DIkgQaQt.js → hooks-BI65IXS7.js} +1 -1
- package/dist/client/assets/image-field-CEHk9cpM.js +1 -0
- package/dist/client/assets/{import-from-deco-dialog-Bo8H0nZ7.js → import-from-deco-dialog-DDUPpwIu.js} +1 -1
- package/dist/client/assets/{index-pDmuEeOe.js → index-1J83wgnT.js} +1 -1
- package/dist/client/assets/{index-DGp9wWJa.js → index-B2quJDhU.js} +1 -1
- package/dist/client/assets/{index-DxpQDpZ-.js → index-B3siY4Ve.js} +1 -1
- package/dist/client/assets/{index-Cnfeoply.js → index-B8LUbsU-.js} +4 -4
- package/dist/client/assets/{index-CNxHhuwF.js → index-BI3_fNOm.js} +1 -1
- package/dist/client/assets/{index-C1pS4_YG.js → index-BUTJwxVv.js} +1 -1
- package/dist/client/assets/{index-DhKsoRDO.js → index-Br4BSsfF.js} +1 -1
- package/dist/client/assets/index-CQsWL0Jd.js +1 -0
- package/dist/client/assets/{index-Bz87ChsZ.js → index-CWT26dU0.js} +3 -3
- package/dist/client/assets/{index-Dq0yW5NU.js → index-Cvc1xn-4.js} +3 -3
- package/dist/client/assets/{index-CWigfPgT.js → index-DBKP_KxA.js} +1 -1
- package/dist/client/assets/index-DMWSApoW.js +1 -0
- package/dist/client/assets/{index-CMfvUJnv.js → index-DVxNbd_g.js} +1 -1
- package/dist/client/assets/{index-BE9xYrPB.js → index-YDkX6amF.js} +2 -2
- package/dist/client/assets/{index-redirect-C1GVFF5R.js → index-redirect-7dYh9FF7.js} +1 -1
- package/dist/client/assets/{input-_nwToKjA.js → input-klr_kUC2.js} +1 -1
- package/dist/client/assets/{integration-icon-Ck8orUeY.js → integration-icon-gcYOl2yq.js} +1 -1
- package/dist/client/assets/{label-qEVe6vIu.js → label-hfmZhqH1.js} +1 -1
- package/dist/client/assets/{login-DpKCgKK2.js → login-BwlkI7-F.js} +1 -1
- package/dist/client/assets/{mcp-oauth-zL3nfx6O.js → mcp-oauth-C5QgI6bG.js} +1 -1
- package/dist/client/assets/{members-CZS6qxHq.js → members-DtCaJnP7.js} +2 -2
- package/dist/client/assets/{monaco-editor-CjxWYC_f.js → monaco-editor-YJUBj_D_.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B_dqdxSl.js → monitoring-stats-row-DYXC0MeT.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BeEi3Byk.js → oauth-callback-ai-provider-rWJe_yJL.js} +1 -1
- package/dist/client/assets/{oauth-callback-DKE7VzfD.js → oauth-callback-oHGZWLTi.js} +1 -1
- package/dist/client/assets/{onboarding-BNi0EEdl.js → onboarding-C8e3_lZa.js} +1 -1
- package/dist/client/assets/{org-install-Djse-3Co.js → org-install-Bht2exTB.js} +1 -1
- package/dist/client/assets/{org-layout-zxXwGgug.js → org-layout-DJtHiwbS.js} +1 -1
- package/dist/client/assets/{organization-choice-Dk1wgo0w.js → organization-choice-Dye_3x23.js} +1 -1
- package/dist/client/assets/{page-seo-form-DYL4unkh.js → page-seo-form-Io0ovKiN.js} +1 -1
- package/dist/client/assets/page-seo-sheet-CRKfon-Z.js +1 -0
- package/dist/client/assets/{popover-BPaZIpfE.js → popover-BvZF2bBr.js} +1 -1
- package/dist/client/assets/post-editor-DhYABFSS.js +1 -0
- package/dist/client/assets/preview-dialog-BikVelEl.js +5 -0
- package/dist/client/assets/{primitives-rFUF7X3j.js → primitives-Bc5oh19Q.js} +1 -1
- package/dist/client/assets/profile-BoAJRU1a.js +1 -0
- package/dist/client/assets/project-app-view-AcWNwwqH.js +1 -0
- package/dist/client/assets/record-editor-CdJmeinf.js +1 -0
- package/dist/client/assets/registry-Cq-UMbFU.js +2 -0
- package/dist/client/assets/{registry-layout-CPNTqGx6.js → registry-layout-Dxd6kQFA.js} +2 -2
- package/dist/client/assets/{require-capability-qWO2y64O.js → require-capability-kyUIYw2A.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CZ5ywz4q.js → required-auth-layout-BcilPdVi.js} +1 -1
- package/dist/client/assets/{reset-password-CdIGOFtS.js → reset-password-CPk5rTzD.js} +1 -1
- package/dist/client/assets/roles-BTjmfpAQ.js +1 -0
- package/dist/client/assets/save-referenced-block-oaxGf8K5.js +1 -0
- package/dist/client/assets/save-status-De_ZSd1F.js +1 -0
- package/dist/client/assets/{schema-form-BbkFKB86.js → schema-form-C1MMeEGC.js} +1 -1
- package/dist/client/assets/{scroll-area-Dnau9N0n.js → scroll-area-BvvyxqKR.js} +1 -1
- package/dist/client/assets/{search-input-BaC0E9To.js → search-input-B-LDSHMx.js} +1 -1
- package/dist/client/assets/secrets-Bq5342Un.js +1 -0
- package/dist/client/assets/{sections-editor-De-lJO4z.js → sections-editor-BU6mrjAz.js} +2 -2
- package/dist/client/assets/select-DwFQDgcX.js +1 -0
- package/dist/client/assets/{select-model-CWt1Bknh.js → select-model-BWl1FGCY.js} +1 -1
- package/dist/client/assets/seo-editor-WJe9bB3t.js +1 -0
- package/dist/client/assets/{settings-layout-DCzRn5Ns.js → settings-layout-d5QwVuj0.js} +1 -1
- package/dist/client/assets/{settings-section-D3Fp8p3i.js → settings-section-rOWH4a9G.js} +1 -1
- package/dist/client/assets/{sheet-C_eprANm.js → sheet-XVV7S5b8.js} +1 -1
- package/dist/client/assets/{shell-controls-CnGQk1cT.js → shell-controls-D6QH2Gpe.js} +1 -1
- package/dist/client/assets/{shell-layout-DZa9vz6i.js → shell-layout-DIXTRmN4.js} +1 -1
- package/dist/client/assets/{shell-route-loading-DzfmbJgx.js → shell-route-loading-B5-wAKUU.js} +1 -1
- package/dist/client/assets/{sidebar-BEDmuINV.js → sidebar-Djn7svMG.js} +1 -1
- package/dist/client/assets/{skeleton-B8TYMvV6.js → skeleton-C-tuNjEZ.js} +1 -1
- package/dist/client/assets/{sortable.esm-CXuCPoS-.js → sortable.esm-S2exVkMt.js} +1 -1
- package/dist/client/assets/sso-KnN7dzsP.js +1 -0
- package/dist/client/assets/{store-DpnFmmX-.js → store-DcHIPBce.js} +1 -1
- package/dist/client/assets/store-registry-3V2xevo5.js +2 -0
- package/dist/client/assets/{studio-tools-BKbKV9tq.js → studio-tools-D8q7MEyE.js} +1 -1
- package/dist/client/assets/{switch-DZeUpv7n.js → switch-skMKJ2GI.js} +1 -1
- package/dist/client/assets/{table-D62tnfqw.js → table-DsOuzcNK.js} +1 -1
- package/dist/client/assets/{tabs-BwmDvzOa.js → tabs-C0Vh3iPJ.js} +1 -1
- package/dist/client/assets/{task-status-CFNgHUT3.js → task-status-DRz_b988.js} +1 -1
- package/dist/client/assets/{textarea-BNgmZDC5.js → textarea-2KmLad1y.js} +1 -1
- package/dist/client/assets/{toggle-group-Cq6Xi1dh.js → toggle-group-6FcrOIsd.js} +1 -1
- package/dist/client/assets/{toolbar-DdJ_ns82.js → toolbar-DE_I2DnI.js} +1 -1
- package/dist/client/assets/{tooltip-D_6ICuSM.js → tooltip-D_DwQRbZ.js} +1 -1
- package/dist/client/assets/{types-Bn0LA8cd.js → types-zC94Gae_.js} +1 -1
- package/dist/client/assets/{use-ai-providers-gj-kkImt.js → use-ai-providers-0DJv4c0H.js} +1 -1
- package/dist/client/assets/{use-automations-Chypf-85.js → use-automations-CsLMaKM0.js} +1 -1
- package/dist/client/assets/{use-capability-WgQvudy9.js → use-capability-A3j7T78I.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BmlWLziO.js → use-clock-tick-CqrkSCF6.js} +1 -1
- package/dist/client/assets/{use-collections-R0ZvS-Ai.js → use-collections-dA9ibOHr.js} +1 -1
- package/dist/client/assets/{use-connection-DCyLx_hF.js → use-connection-C39BUY8e.js} +1 -1
- package/dist/client/assets/{use-copy-mZgO-NLO.js → use-copy-DM9BeeKg.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BrGJfb-E.js → use-create-virtual-mcp-q3QYUSY1.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Cs0wa2AV.js → use-debounced-autosave-BzGp2qae.js} +1 -1
- package/dist/client/assets/use-deco-credits-Bax6GRog.js +1 -0
- package/dist/client/assets/{use-delete-connection-BEyb12gk.js → use-delete-connection-CAqFRv-C.js} +1 -1
- package/dist/client/assets/{use-file-configs-BoDiyEPN.js → use-file-configs-CvRusjpd.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-C0w6irwB.js → use-infinite-scroll-DM0o0Ibp.js} +1 -1
- package/dist/client/assets/{use-join-requests-DWKpDg4f.js → use-join-requests-iYNw-oM8.js} +1 -1
- package/dist/client/assets/{use-mcp-client-j7WzNXv1.js → use-mcp-client-DV4dF4m3.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D5hbuC8X.js → use-mcp-prompts-CspfQ-gW.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D4YogNCG.js → use-mcp-tools-DnBnaQLn.js} +1 -1
- package/dist/client/assets/{use-members-4evhu5YD.js → use-members-CtcSheMR.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C8HlpzKH.js → use-navigate-to-agent-Cs1C-DBQ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DXrbIv3b.js → use-org-auth-client-lV24PS0n.js} +1 -1
- package/dist/client/assets/{use-org-sso-Bva6WiTR.js → use-org-sso-Cygr8MWL.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CyUUrGRh.js → use-organization-roles-DKqp_63r.js} +1 -1
- package/dist/client/assets/{use-organization-settings-B38ce8Is.js → use-organization-settings-C6jq364X.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DANSvt2N.js → use-registry-connections-yBLIjpTM.js} +1 -1
- package/dist/client/assets/{use-secrets-B9PZDKXf.js → use-secrets-BtkNg5h6.js} +1 -1
- package/dist/client/assets/{use-status-sounds-D8dNgif9.js → use-status-sounds-Bvu0fELl.js} +1 -1
- package/dist/client/assets/{use-view-mode-Bjc0BTTn.js → use-view-mode-CF449xEK.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BojtVjer.js → use-virtual-mcp-WmAC_qSm.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bwr_uznn.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-D48NS_O0.js +1 -0
- package/dist/client/assets/variant-calendar-CoVLDgg6.js +1 -0
- package/dist/client/assets/{view-mode-toggle-D7SZK2nR.js → view-mode-toggle-D7_rFTiD.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +413 -413
- package/dist/server/server.js +287 -287
- package/package.json +1 -1
- package/dist/client/assets/Check-e4E4gv9b.js +0 -1
- package/dist/client/assets/ChevronUp-DMBQslpk.js +0 -1
- package/dist/client/assets/add-section-modal-BdHBbUlc.js +0 -1
- package/dist/client/assets/agent-icon-Cg7qESLO.js +0 -1
- package/dist/client/assets/agents-list-Cv8hL8Qp.js +0 -1
- package/dist/client/assets/ai-providers-B9jF42-5.js +0 -1
- package/dist/client/assets/app-editor-CkS4moAr.js +0 -1
- package/dist/client/assets/automations-DO0-NdyE.js +0 -1
- package/dist/client/assets/buckets-Dt9m141q.js +0 -1
- package/dist/client/assets/category-editor-BQs9qYu3.js +0 -1
- package/dist/client/assets/checkbox-DHnP85yY.js +0 -1
- package/dist/client/assets/collection-detail-Bwitx8t1.js +0 -1
- package/dist/client/assets/collection-display-button-Cl0680lC.js +0 -1
- package/dist/client/assets/commerce-onboarding-CO_7v-O2.js +0 -1
- package/dist/client/assets/connect-desktop-dialog-DUZgnkWb.js +0 -1
- package/dist/client/assets/connection-detail-DBNeOrup.js +0 -1
- package/dist/client/assets/connections-9HckXwT4.js +0 -1
- package/dist/client/assets/dropdown-menu-DXd30ioR.js +0 -1
- package/dist/client/assets/file-explorer-Bz0TzuPK.js +0 -2
- package/dist/client/assets/general-C-niaOyb.js +0 -1
- package/dist/client/assets/image-field-DouDEOlb.js +0 -1
- package/dist/client/assets/index-ByGLOWBj.js +0 -1
- package/dist/client/assets/index-CBnRwLFs.js +0 -1
- package/dist/client/assets/page-seo-sheet-NcSXQC2t.js +0 -1
- package/dist/client/assets/post-editor-ivmjRk8O.js +0 -1
- package/dist/client/assets/preview-dialog-DCg8NdOu.js +0 -5
- package/dist/client/assets/profile-o471UoMY.js +0 -1
- package/dist/client/assets/project-app-view-DmWANIgd.js +0 -1
- package/dist/client/assets/record-editor-aVQ6MqKD.js +0 -1
- package/dist/client/assets/registry-5hDGRmm6.js +0 -2
- package/dist/client/assets/roles-DsrZximT.js +0 -1
- package/dist/client/assets/save-referenced-block-CX9mAiL4.js +0 -1
- package/dist/client/assets/save-status-CiygUOIM.js +0 -1
- package/dist/client/assets/secrets-1qZp_c2T.js +0 -1
- package/dist/client/assets/select-D9Oa8DMc.js +0 -1
- package/dist/client/assets/seo-editor-CM1oES4Z.js +0 -1
- package/dist/client/assets/sso-Cu4qLJwq.js +0 -1
- package/dist/client/assets/store-registry-CIBZe6y0.js +0 -2
- package/dist/client/assets/use-deco-credits-DosFtgZr.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CTySOOk0.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-jvr57LmV.js +0 -1
- package/dist/client/assets/variant-calendar-nz1RBENW.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as D,r as v,j as e,B as p,p as S,t as c,c as N}from"./index-Dq0yW5NU.js";import{D as k}from"./domain-settings-GvfG_VOO.js";import{P as f}from"./index-pDmuEeOe.js";import{I as l}from"./input-_nwToKjA.js";import{S as z}from"./switch-DZeUpv7n.js";import{a as P,b as R,c as A,d as T}from"./use-org-sso-Bva6WiTR.js";import{c as F,S as y,a as C,b as r,d as O}from"./settings-section-D3Fp8p3i.js";import{s as L}from"./Trash01-BC1OhQlq.js";import{R as q}from"./require-capability-qWO2y64O.js";import"./studio-tools-BKbKV9tq.js";import"./badge-CzYcGjqZ.js";import"./select-D9Oa8DMc.js";import"./tooltip-D_6ICuSM.js";import"./Check-e4E4gv9b.js";import"./ChevronDown-P1cR1p1z.js";import"./ChevronUp-DMBQslpk.js";import"./sidebar-BEDmuINV.js";import"./LayoutLeft-BrCMpwSK.js";import"./sheet-C_eprANm.js";import"./X-CNdGRyYk.js";import"./card-e6Sa893P.js";import"./ArrowUpRight-zJbKnVEx.js";import"./use-capability-WgQvudy9.js";import"./access-gate-CNUwq6nr.js";import"./capability-load-error-D6fX-v6m.js";function B(){const{org:s}=D(),{data:a,isLoading:E}=P(s.id,s.slug),x=R(s.id,s.slug),h=A(s.id,s.slug),j=T(s.id,s.slug),[t,d]=v.useState({issuer:"",clientId:"",clientSecret:"",discoveryEndpoint:"",domain:"",scopes:"openid email profile"}),[m,g]=v.useState(!1),u=a?.configured&&a.config,o=a?.config,I=()=>{o&&d({issuer:o.issuer,clientId:o.clientId,clientSecret:"",discoveryEndpoint:o.discoveryEndpoint??"",domain:o.domain,scopes:o.scopes.join(" ")}),g(!0)},b=async()=>{if(!t.issuer||!t.clientId||!t.domain){c.error("Issuer, Client ID, and Domain are required");return}if(!u&&!t.clientSecret){c.error("Client Secret is required for initial setup");return}try{await x.mutateAsync({issuer:t.issuer,clientId:t.clientId,clientSecret:t.clientSecret,discoveryEndpoint:t.discoveryEndpoint||void 0,scopes:t.scopes.split(/\s+/).filter(Boolean),domain:t.domain,enforced:o?.enforced??!1}),S(u?"sso_config_updated":"sso_configured",{organization_id:s.id,email_domain:t.domain}),c.success("SSO configuration saved"),g(!1)}catch(i){c.error(i instanceof Error?i.message:"Failed to save SSO config")}},w=async()=>{if(confirm("Are you sure you want to remove SSO configuration?"))try{await h.mutateAsync(),S("sso_config_removed",{organization_id:s.id}),c.success("SSO configuration removed"),g(!1)}catch{c.error("Failed to remove SSO config")}},_=async i=>{try{await j.mutateAsync(i),S("sso_enforcement_toggled",{organization_id:s.id,enforced:i}),c.success(i?"SSO enforcement enabled":"SSO enforcement disabled")}catch{c.error("Failed to toggle SSO enforcement")}};return e.jsx(f,{children:e.jsx(f.Content,{children:e.jsx(f.Body,{children:e.jsxs(F,{children:[e.jsx(f.Title,{children:"Security"}),e.jsx(k,{}),E?e.jsx("div",{className:"text-sm text-muted-foreground",children:"Loading..."}):e.jsxs(e.Fragment,{children:[u&&!m&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Provider",action:e.jsx("span",{className:"font-medium",children:o.issuer})}),e.jsx(r,{title:"Client ID",action:e.jsx("span",{className:"font-mono text-xs",children:o.clientId})}),e.jsx(r,{title:"Domain",action:e.jsx("span",{className:"font-medium",children:o.domain})}),e.jsx(r,{title:"Scopes",action:e.jsx("span",{className:"font-mono text-xs",children:o.scopes.join(" ")})}),e.jsx("div",{className:"h-px bg-border mx-5"}),e.jsx(r,{title:"Enforce SSO",description:"Require all members to authenticate via SSO",action:e.jsx(z,{checked:o.enforced,onCheckedChange:_,disabled:j.isPending})}),e.jsxs(O,{children:[e.jsxs(p,{variant:"ghost",size:"sm",onClick:w,disabled:h.isPending,className:"text-destructive hover:text-destructive mr-auto",children:[e.jsx(L,{size:14}),"Remove"]}),e.jsx(p,{variant:"outline",size:"sm",onClick:()=>{window.open(`/api/${s.slug}/sso/authorize`,"_blank")},children:"Test SSO"}),e.jsx(p,{variant:"outline",size:"sm",onClick:I,children:"Edit configuration"})]})]})}),(!u||m)&&e.jsx(y,{title:"Single Sign-On",children:e.jsxs(C,{children:[e.jsx(r,{title:"Issuer URL",description:"The OIDC issuer URL of your identity provider.",action:e.jsx(l,{id:"sso-issuer",placeholder:"https://login.microsoftonline.com/{tenant}/v2.0",value:t.issuer,onChange:i=>d(n=>({...n,issuer:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client ID",action:e.jsx(l,{id:"sso-client-id",placeholder:"your-client-id",value:t.clientId,onChange:i=>d(n=>({...n,clientId:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Client Secret",description:m&&u?"Leave empty to keep current":void 0,action:e.jsx(l,{id:"sso-client-secret",type:"password",placeholder:"your-client-secret",value:t.clientSecret,onChange:i=>d(n=>({...n,clientSecret:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Email Domain",description:"The email domain this SSO provider covers.",action:e.jsx(l,{id:"sso-domain",placeholder:"company.com",value:t.domain,onChange:i=>d(n=>({...n,domain:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Scopes",action:e.jsx(l,{id:"sso-scopes",placeholder:"openid email profile",value:t.scopes,onChange:i=>d(n=>({...n,scopes:i.target.value})),className:"w-[280px]"})}),e.jsx(r,{title:"Discovery Endpoint",description:"Optional — auto-detected from issuer if omitted.",action:e.jsx(l,{id:"sso-discovery",placeholder:"Auto-detected from issuer",value:t.discoveryEndpoint,onChange:i=>d(n=>({...n,discoveryEndpoint:i.target.value})),className:"w-[280px]"})}),e.jsxs(O,{children:[m&&e.jsx(p,{variant:"outline",size:"sm",onClick:()=>g(!1),children:"Cancel"}),e.jsx(p,{onClick:b,disabled:x.isPending,size:"sm",children:x.isPending?"Saving...":m?"Update":"Configure SSO"})]})]})})]})]})})})})}function ue(){const s=N.c(1);let a;return s[0]===Symbol.for("react.memo_cache_sentinel")?(a=e.jsx(q,{capability:"org:manage",area:"security",children:e.jsx(B,{})}),s[0]=a):a=s[0],a}export{ue as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CPNTqGx6.js","assets/index-Dq0yW5NU.js","assets/index-BITgxoqa.css","assets/XCircle-j1-GVtiw.js","assets/CheckCircle-DD9zrZHy.js","assets/Settings02-BoqCpz_o.js","assets/use-mcp-client-j7WzNXv1.js","assets/auth-rR0qxEot.js","assets/useInfiniteQuery-CTySOOk0.js","assets/use-infinite-scroll-C0w6irwB.js","assets/studio-tools-BKbKV9tq.js","assets/badge-CzYcGjqZ.js","assets/input-_nwToKjA.js","assets/dropdown-menu-DXd30ioR.js","assets/Check-e4E4gv9b.js","assets/ChevronRight-C5wvGTH8.js","assets/DotsVertical-DVx42NIt.js","assets/table-D62tnfqw.js","assets/toggle-group-Cq6Xi1dh.js","assets/use-view-mode-Bjc0BTTn.js","assets/tooltip-D_6ICuSM.js","assets/FilterLines-rKEHnpC8.js","assets/Globe01-Cq-Rbldi.js","assets/SearchMd-CKCNrxV5.js","assets/dialog-D72IgZaK.js","assets/X-CNdGRyYk.js","assets/AlertCircle-CZWjmLDT.js","assets/Upload01-BHKvZ87r.js","assets/alert-dialog-C8bis9BK.js","assets/card-e6Sa893P.js","assets/Trash01-BC1OhQlq.js","assets/label-qEVe6vIu.js","assets/select-D9Oa8DMc.js","assets/ChevronDown-P1cR1p1z.js","assets/ChevronUp-DMBQslpk.js","assets/switch-DZeUpv7n.js","assets/textarea-BNgmZDC5.js","assets/ArrowRight-DswQGw32.js","assets/checkbox-DHnP85yY.js","assets/Eye-BkHY3voI.js","assets/LinkExternal01-DtT4L4N6.js","assets/use-copy-mZgO-NLO.js","assets/Key01-v4LCWUSc.js","assets/Plus-Cd0ypUPB.js","assets/mcp-oauth-zL3nfx6O.js","assets/Play-DdLK5xgI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as m,b as n,e as c,j as t,i as p,r as l,ak as f}from"./index-Dq0yW5NU.js";import{R as u}from"./require-capability-qWO2y64O.js";import"./use-capability-WgQvudy9.js";import"./access-gate-CNUwq6nr.js";import"./capability-load-error-D6fX-v6m.js";const g=l.lazy(()=>f(()=>import("./registry-layout-CPNTqGx6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45])));function j(){const e=m.c(5),i=n();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=c(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(p,{size:20,className:"animate-spin text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as Se,a as en,o as un,C as pn,z as mn,j as e,B as Y,t as X,r as le,I as hn,b as fn,i as ke,p as N,K as me,c as gn,q as xn,L as jn,l as yn,k as vn}from"./index-Dq0yW5NU.js";import{g as _n}from"./connection-slug-eyAPH6o3.js";import{u as nn,a as tn,g as Cn,C as Ee}from"./connection-card-sqzGo5b9.js";import{C as wn}from"./collection-search-YuvsCInj.js";import{C as bn}from"./collection-tabs-BvdJGTHh.js";import{g as kn,a as Nn,e as Sn,b as In}from"./extract-connection-data-CF6q97ac.js";import{d as sn,c as on,D as an,a as cn,b as An,e as Tn}from"./dialog-D72IgZaK.js";import{D as Dn,a as Pn,c as Fn,b as On,d as Mn,e as Vn,f as $n}from"./drawer-DUNra2qL.js";import{u as Ln,b as Be,T as Re,a as ze}from"./tooltip-D_6ICuSM.js";import{F as V,b as $,c as L,d as E,f as B,a as Qe}from"./form-c6Tjk0mK.js";import{I as J}from"./input-_nwToKjA.js";import{d as En,b as Bn,c as Rn,S as zn,a as pe}from"./select-D9Oa8DMc.js";import{T as Hn}from"./textarea-BNgmZDC5.js";import{b as rn}from"./use-connection-DCyLx_hF.js";import{n as Ne,b as He}from"./XCircle-j1-GVtiw.js";import{s as Ke}from"./Star01-DhLGcNbl.js";import{Z as Kn}from"./agent-icon-Cg7qESLO.js";import{s as Un}from"./XClose-BgQasJGJ.js";import{c as Xn,i as we,a as We,E as qn,p as Gn,b as Qn,d as Wn}from"./connection-form-helpers-DAgkTcm-.js";import{u as Je}from"./use-infinite-scroll-C0w6irwB.js";import{u as Jn}from"./useSuspenseInfiniteQuery-jvr57LmV.js";import{S as Yn,u as Zn}from"./use-mcp-client-j7WzNXv1.js";import{i as Ue,a as Xe}from"./mcp-oauth-zL3nfx6O.js";import{B as be}from"./badge-CzYcGjqZ.js";import{i as Ye}from"./Check-e4E4gv9b.js";import{s as et}from"./Plus-Cd0ypUPB.js";import{u as nt}from"./studio-tools-BKbKV9tq.js";import{u as tt}from"./use-ai-providers-gj-kkImt.js";function st(s){const n=s?.metadata?.githubRepo;return n?n.connectionId?s?.connections?.some(f=>f.connection_id===n.connectionId)?n:null:n:null}function zt(s){if(typeof s!="object"||s===null)return!1;const h=s.githubRepo?.url;return typeof h=="string"&&h.length>0}function ot(s){return!!st(s??null)?.connectionId}function Ht(s){return ot(s)}function Kt(s){const n=new Set;for(const h of s??[]){const f=h.metadata?.liveAgentId;typeof f=="string"&&f&&n.add(h.id)}return n}function Ut(s){const n=new Map,h=new Map;for(const f of s??[]){const p=f.metadata?.liveAgentId;typeof p=="string"&&p&&(h.set(f.id,p),n.set(p,f.id))}return{liveToDev:n,devToLive:h}}function Xt(s,n){if(!s)return null;const h=s.metadata?.liveAgentId;if(typeof h=="string"&&h)return{mode:"dev",targetId:h};const f=(n??[]).find(p=>p.metadata?.liveAgentId===s.id);return f?{mode:"live",targetId:f.id}:null}function qt(s){return s.online?s.capabilities.includes("claude-code")||s.capabilities.includes("codex"):!1}function it({open:s,onOpenChange:n,onCreated:h}){const{org:f}=Se(),{data:p}=en.useSession(),{stdioEnabled:D}=un(),P=Ln(),R=rn(),d=nn(),z=tn(d,"").items,i=pn({resolver:mn(Xn),defaultValues:{title:"",description:null,icon:null,ui_type:"HTTP",connection_url:"",connection_token:null,npx_package:"",stdio_command:"",stdio_args:"",stdio_cwd:"",env_vars:[]}}),y=i.watch("ui_type"),S=i.watch("connection_url"),M=i.watch("npx_package"),j=we({uiType:y,connectionUrl:S??"",npxPackage:M??""})??We({uiType:y,connectionUrl:S??"",registryItems:z}),l=o=>{const t=o.trim();if(!t)return;const c=!!i.formState.dirtyFields.title,v=!!i.formState.dirtyFields.description,_=!!i.formState.dirtyFields.env_vars,r=x=>{if(x&&(!c&&!i.getValues("title").trim()&&x.title&&i.setValue("title",x.title,{shouldDirty:!1}),!v&&!(i.getValues("description")??"").trim()&&x.description&&i.setValue("description",x.description,{shouldDirty:!1}),!_&&x.envVarKeys?.length)){const A=i.getValues("env_vars")??[],C=new Set(A.map(k=>k.key)),w=x.envVarKeys.filter(k=>!C.has(k));w.length>0&&i.setValue("env_vars",[...A,...w.map(k=>({key:k,value:""}))],{shouldDirty:!0})}},u=Gn(t);if(u&&D){i.setValue("ui_type","NPX",{shouldDirty:!0}),i.setValue("npx_package",u.packageName,{shouldDirty:!0}),i.setValue("connection_url","",{shouldDirty:!0}),i.setValue("connection_token",null,{shouldDirty:!0}),r(we({uiType:"NPX",npxPackage:u.packageName}));return}if(t.startsWith("http://")||t.startsWith("https://")){const x=y==="HTTP"||y==="SSE"||y==="Websocket"?y:"HTTP";i.setValue("ui_type",x,{shouldDirty:!0}),i.setValue("connection_url",t,{shouldDirty:!0}),r(we({uiType:x,connectionUrl:t})??We({uiType:x,connectionUrl:t,registryItems:z}));return}y==="NPX"&&r(we({uiType:"NPX",npxPackage:t}))},H=o=>{o||i.reset(),n(o)},g=async o=>{let t,c=null,v=null,_=null;o.ui_type==="NPX"?(t="STDIO",c="",_=Qn(o.npx_package||"",o.env_vars||[])):o.ui_type==="STDIO"?(t="STDIO",c="",_=Wn(o.stdio_command||"",o.stdio_args||"",o.stdio_cwd,o.env_vars||[])):(t=o.ui_type,c=o.connection_url||"",v=o.connection_token||null);const r=kn("conn");try{await R.create.mutateAsync({id:r,title:o.title,description:o.description||null,connection_type:t,connection_url:c,connection_token:v,created_at:new Date().toISOString(),updated_at:new Date().toISOString(),created_by:p?.user?.id||"system",organization_id:f.id,icon:o.icon??null,app_name:null,app_id:null,connection_headers:_,oauth_config:null,configuration_state:null,metadata:null,tools:null,bindings:null,status:"inactive"}),i.reset(),n(!1),h?.(r)}catch{X.error("Failed to create connection")}},F="Create Connection",I="Create a custom connection in your organization. Fill in the details below.",q=i.formState.isSubmitting?"Saving...":"Create Connection",K=e.jsxs("div",{className:"grid gap-4",children:[e.jsx(V,{control:i.control,name:"ui_type",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"Type *"}),e.jsxs(En,{value:o.value,onValueChange:o.onChange,children:[e.jsx(E,{children:e.jsx(Bn,{children:e.jsx(Rn,{})})}),e.jsxs(zn,{children:[e.jsx(pe,{value:"HTTP",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Ke,{className:"w-4 h-4"}),"HTTP"]})}),e.jsx(pe,{value:"SSE",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Ke,{className:"w-4 h-4"}),"SSE"]})}),e.jsx(pe,{value:"Websocket",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Ke,{className:"w-4 h-4"}),"Websocket"]})}),D&&e.jsxs(e.Fragment,{children:[e.jsx(pe,{value:"NPX",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Ne,{className:"w-4 h-4"}),"NPX Package"]})}),e.jsx(pe,{value:"STDIO",children:e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(Kn,{className:"w-4 h-4"}),"Custom Command"]})})]})]})]}),e.jsx(B,{})]})}),y==="NPX"&&e.jsx(V,{control:i.control,name:"npx_package",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"NPM Package *"}),e.jsx(E,{children:e.jsx(J,{placeholder:"@perplexity-ai/mcp-server",...o,value:o.value??"",onPaste:t=>{const c=t.clipboardData.getData("text");c&&(t.preventDefault(),i.setValue("npx_package",c.trim(),{shouldDirty:!0}),l(c))},onBlur:t=>{l(t.target.value),o.onBlur()}})}),e.jsx(B,{})]})}),y==="STDIO"&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid grid-cols-2 gap-4 items-start",children:[e.jsx(V,{control:i.control,name:"stdio_command",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"Command *"}),e.jsx(E,{children:e.jsx(J,{placeholder:"node, bun, python...",...o,value:o.value??""})}),e.jsx(B,{})]})}),e.jsx(V,{control:i.control,name:"stdio_args",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"Arguments"}),e.jsx(E,{children:e.jsx(J,{placeholder:"arg1 arg2 --flag value",...o,value:o.value??""})}),e.jsx(B,{})]})})]}),e.jsx(V,{control:i.control,name:"stdio_cwd",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"Working Directory"}),e.jsx(E,{children:e.jsx(J,{placeholder:"/path/to/project (optional)",...o,value:o.value??""})}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Directory where the command will be executed"}),e.jsx(B,{})]})})]}),(y==="NPX"||y==="STDIO")&&e.jsx(V,{control:i.control,name:"env_vars",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"Environment Variables"}),e.jsx(E,{children:e.jsx(qn,{value:o.value??[],onChange:o.onChange})}),e.jsx(B,{})]})}),y!=="NPX"&&y!=="STDIO"&&e.jsxs(e.Fragment,{children:[e.jsx(V,{control:i.control,name:"connection_url",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"URL *"}),e.jsx(E,{children:e.jsx(J,{placeholder:"https://example.com/mcp",...o,value:o.value??"",onPaste:t=>{const c=t.clipboardData.getData("text");c&&(t.preventDefault(),i.setValue("connection_url",c.trim(),{shouldDirty:!0}),l(c))},onBlur:t=>{l(t.target.value),o.onBlur()}})}),e.jsx(B,{})]})}),e.jsx(V,{control:i.control,name:"connection_token",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:j?.token?.label??"Token (optional)"}),e.jsx(E,{children:e.jsx(J,{type:"password",placeholder:j?.token?.placeholder??"Bearer token or API key",className:"ph-no-capture",...o,value:o.value??""})}),j?.token?.helperText&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:[j.token.helperText,j.id==="github"&&e.jsxs(e.Fragment,{children:[" ","·"," ",e.jsx("a",{className:"text-foreground underline underline-offset-4 hover:text-foreground/80",href:"https://github.com/settings/personal-access-tokens",target:"_blank",rel:"noreferrer",children:"Open GitHub PAT settings"})]})]}),e.jsx(B,{})]})})]}),e.jsx(V,{control:i.control,name:"title",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"Name *"}),e.jsx(E,{children:e.jsx(J,{placeholder:"My Connection",...o})}),e.jsx(B,{})]})}),e.jsx(V,{control:i.control,name:"description",render:({field:o})=>e.jsxs($,{children:[e.jsx(L,{children:"Description"}),e.jsx(E,{children:e.jsx(Hn,{placeholder:"A brief description of this connection",rows:3,...o,value:o.value??""})}),e.jsx(B,{})]})})]});return P?e.jsx(Dn,{open:s,onOpenChange:H,children:e.jsxs(Pn,{className:"max-h-[90vh]",children:[e.jsx(Fn,{className:"pb-2",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1 text-left",children:[e.jsx(On,{children:F}),e.jsx(Mn,{className:"mt-1",children:I})]}),e.jsx(Vn,{asChild:!0,children:e.jsx(Y,{variant:"ghost",size:"icon",className:"shrink-0 -mt-1",children:e.jsx(Un,{size:16})})})]})}),e.jsx(Qe,{...i,children:e.jsxs("form",{onSubmit:i.handleSubmit(g),children:[e.jsx("div",{className:"overflow-y-auto px-4 pb-4",children:K}),e.jsx($n,{children:e.jsx(Y,{type:"submit",disabled:i.formState.isSubmitting,className:"w-full",children:q})})]})})]})}):e.jsx(sn,{open:s,onOpenChange:H,children:e.jsxs(on,{className:"sm:max-w-[525px]",children:[e.jsxs(an,{children:[e.jsx(cn,{children:F}),e.jsx(An,{children:I})]}),e.jsx(Qe,{...i,children:e.jsxs("form",{onSubmit:i.handleSubmit(g),children:[e.jsx("div",{className:"py-4",children:K}),e.jsxs(Tn,{children:[e.jsx(Y,{type:"button",variant:"outline",onClick:()=>H(!1),children:"Cancel"}),e.jsx(Y,{type:"submit",disabled:i.formState.isSubmitting,className:"min-w-40",children:q})]})]})})]})})}function at(s){const n=gn.c(73),{mode:h,agentId:f,addedConnectionIds:p,onAdd:D,onCloneAndAdd:P,onConnectAndAdd:R,connectingItemId:d,search:b,onCreateConnection:z,onBrowseNavigate:i,defaultTab:y}=s,S=h===void 0?"add":h,M=y===void 0?"connected":y,{org:j}=Se(),l=le.useDeferredValue(b),H=b!==l,g=l.trim().toLowerCase();let F;n[0]!==M?(F=a=>a??M,n[0]=M,n[1]=F):F=n[1];const[I,q]=xn(jn.connectionsTab(j.slug)+(M==="all"?":home-modal":":agent-modal"),F);let K;n[2]!==I||n[3]!==q?(K=a=>{a!==I&&N("connections_dialog_tab_changed",{to_tab:a}),q(a)},n[2]=I,n[3]=q,n[4]=K):K=n[4];const o=K;let t;n[5]!==j.id||n[6]!==j.slug?(t={connectionId:Yn,orgId:j.id,orgSlug:j.slug},n[5]=j.id,n[6]=j.slug,n[7]=t):t=n[7];const c=Zn(t);let v,_,r;if(n[8]!==c||n[9]!==l||n[10]!==j.id){r=l?.trim()?{operator:"or",conditions:[{field:["title"],operator:"contains",value:l.trim()},{field:["description"],operator:"contains",value:l.trim()}]}:void 0;const a={...r&&{where:r},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:0},m=JSON.stringify(a);_=Jn,v=me.collectionListInfinite(c,j.id,"","CONNECTIONS",m),n[8]=c,n[9]=l,n[10]=j.id,n[11]=v,n[12]=_,n[13]=r}else v=n[11],_=n[12],r=n[13];let u;n[14]!==c||n[15]!==r?(u=async a=>{const{pageParam:m}=a,U=m===void 0?0:m;return(await c.callTool({name:"COLLECTION_CONNECTIONS_LIST",arguments:{...r&&{where:r},orderBy:[{field:["updated_at"],direction:"asc"}],limit:100,offset:U}})).structuredContent},n[14]=c,n[15]=r,n[16]=u):u=n[16];let x;n[17]!==v||n[18]!==u?(x={queryKey:v,queryFn:u,initialPageParam:0,getNextPageParam:pt,staleTime:3e4},n[17]=v,n[18]=u,n[19]=x):x=n[19];const{data:A,fetchNextPage:C,hasNextPage:w,isFetchingNextPage:k}=_(x),Ie=A?.pages.flatMap(ut)??[],he=Cn(Ie),ln=new Set(Ie.filter(dt).map(lt)),fe=nn(),Q=tn(fe,l),Ae=Je(Q.loadMore,Q.hasMore,Q.isLoadingMore),Te=Je(C,w??!1,k),O=I==="all"||!!g,qe=O?Q.items.filter(a=>{const m=Nn(a);if(m&&ln.has(m))return!1;if(!g)return!0;const U=a._meta?.["mcp.mesh"];return[a.title,a.description,a.name,a.server?.title,a.server?.description,a.server?.name,U?.friendly_name,U?.friendlyName].filter(Boolean).join(" ").toLowerCase().includes(g)}):[],de=qe.filter(rt),ue=qe.filter(ct);let ge;n[20]!==p?(ge=a=>a.some(m=>p.has(m.id)),n[20]=p,n[21]=ge):ge=n[21];const De=ge;let xe;n[22]!==p||n[23]!==f||n[24]!==d||n[25]!==De||n[26]!==S||n[27]!==D||n[28]!==i||n[29]!==P?(xe=(a,m,U,ce,G)=>{const Ce=De(G),re=G.find(W=>!p.has(W.id)),T=G[0];if(S==="browse"){const W=_n(T);return e.jsx(Ee,{connection:{title:m,icon:U,description:G.length>1?`${G.length} instances`:ce??void 0},fallbackIcon:e.jsx(Ne,{}),headerActionsAlwaysVisible:!0,headerActions:e.jsxs(be,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[e.jsx(Ye,{size:11})," Connected"]}),onClick:()=>{N("connection_browse_clicked",{app_name:T.app_name??null,connection_id:T.id,instances_count:G.length}),i?.(W)}},a)}return e.jsx(Ee,{connection:{title:m,icon:U,description:ce},fallbackIcon:e.jsx(Ne,{}),headerActionsAlwaysVisible:!0,headerActions:e.jsxs("div",{className:"flex items-center gap-1.5",children:[Ce&&e.jsxs(be,{variant:"secondary",className:"text-xs gap-1 font-normal",children:[e.jsx(Ye,{size:11})," Added"]}),e.jsx(Y,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:d!==null,onClick:W=>{W.stopPropagation(),re?(N("connection_add_clicked",{action:"use_existing",app_name:T.app_name??null,connection_id:re.id}),f&&N("agent_connection_attached",{agent_id:f,connection_id:re.id,app_name:T.app_name??null,mode:"existing"}),D(re.id)):(N("connection_add_clicked",{action:"clone",app_name:T.app_name??null,base_connection_id:T.id}),P(T))},children:"Add"})]})},a)},n[22]=p,n[23]=f,n[24]=d,n[25]=De,n[26]=S,n[27]=D,n[28]=i,n[29]=P,n[30]=xe):xe=n[30];const je=xe;let ye;n[31]!==d||n[32]!==S||n[33]!==R?(ye=a=>{const m=a._meta?.["mcp.mesh"],U=m?.friendlyName||m?.friendly_name||a.server?.title||a.title||a.server?.name||a.name||a.id||"",ce=a.server?.description||a.description||null,G=a.server?.icons?.[0]?.src||In(a.server?.repository)||null,Ce=m?.official===!0,re=m?.verified===!0,T=m?.owner==="deco";return e.jsx(Ee,{connection:{title:U,description:ce,icon:G},fallbackIcon:e.jsx(Ne,{}),headerActionsAlwaysVisible:!0,headerActions:e.jsxs("div",{className:"flex items-center gap-1.5",children:[T&&e.jsxs(Be,{children:[e.jsx(Re,{asChild:!0,children:e.jsx("span",{className:"inline-flex items-center justify-center size-5 rounded-md bg-muted shrink-0",children:e.jsx("img",{src:"/logos/deco logo.svg",alt:"Made by Deco",className:"size-3"})})}),e.jsx(ze,{children:"Built and maintained by Deco"})]}),!T&&Ce&&e.jsxs(Be,{children:[e.jsx(Re,{asChild:!0,children:e.jsx(be,{variant:"outline",size:"icon",children:e.jsx(He,{})})}),e.jsx(ze,{children:"Built and maintained by the official vendor"})]}),!T&&!Ce&&re&&e.jsxs(Be,{children:[e.jsx(Re,{asChild:!0,children:e.jsx(be,{variant:"outline",size:"icon",children:e.jsx(He,{})})}),e.jsx(ze,{children:"Verified by the Deco team"})]}),e.jsx(Y,{variant:"outline",size:"sm",className:"h-7 px-3 text-xs font-medium",disabled:d!==null,onClick:W=>{W.stopPropagation(),N("connection_add_clicked",{action:"connect_new",registry_item_id:a.id,app_name:m?.friendlyName||a.server?.name||a.name||null}),R(a)},children:d===a.id?e.jsx(ke,{size:14,className:"animate-spin"}):S==="browse"?"Connect":"Add"})]})},`catalog-${a.id}`)},n[31]=d,n[32]=S,n[33]=R,n[34]=ye):ye=n[34];const Ge=ye,Pe=!g&&e.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border shrink-0",children:[e.jsx(bn,{tabs:[{id:"all",label:"All"},{id:"connected",label:"Connected"}],activeTab:I,onTabChange:a=>o(a)}),e.jsxs(Y,{variant:"outline",size:"sm",className:"h-7 px-2 text-sm",onClick:()=>{N("connections_dialog_custom_clicked"),z()},children:[e.jsx(et,{size:12}),"Custom Connection"]})]}),Fe=H&&"opacity-50 pointer-events-none";let Z;n[35]!==Fe?(Z=yn("flex-1 overflow-auto p-5 transition-opacity duration-150",Fe),n[35]=Fe,n[36]=Z):Z=n[36];const dn="grid grid-cols-[repeat(auto-fill,minmax(260px,1fr))] gap-4";let ve;n[37]!==je?(ve=a=>{if(a.type==="group")return je(a.key,a.title,a.icon,null,a.connections);const m=a.connection;return je(m.id,m.title,m.icon,m.description??null,[m])},n[37]=je,n[38]=ve):ve=n[38];const Oe=he.map(ve);let ee;n[39]!==Te?(ee=e.jsx("div",{ref:Te,className:"col-span-full h-1"}),n[39]=Te,n[40]=ee):ee=n[40];let ne;n[41]!==k?(ne=k&&e.jsx("div",{className:"col-span-full flex justify-center py-6",children:e.jsx(ke,{size:24,className:"animate-spin text-muted-foreground"})}),n[41]=k,n[42]=ne):ne=n[42];const Me=O&&de.length>0&&e.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[e.jsx(He,{size:13,className:"text-muted-foreground shrink-0"}),e.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"Verified"}),e.jsx("div",{className:"flex-1 h-px bg-border"})]}),Ve=O&&de.map(Ge),$e=O&&ue.length>0&&e.jsxs("div",{className:"col-span-full flex items-center gap-2 mt-2",children:[e.jsx("span",{className:"text-sm font-medium text-muted-foreground whitespace-nowrap",children:"All connections"}),e.jsx("div",{className:"flex-1 h-px bg-border"})]}),Le=O&&ue.map(Ge);let te;n[43]!==Ae||n[44]!==fe||n[45]!==O?(te=O&&fe.length>0&&e.jsx("div",{ref:Ae,className:"col-span-full h-1"}),n[43]=Ae,n[44]=fe,n[45]=O,n[46]=te):te=n[46];let se;n[47]!==Q.isLoadingMore||n[48]!==O?(se=O&&Q.isLoadingMore&&e.jsx("div",{className:"col-span-full flex justify-center py-6",children:e.jsx(ke,{size:24,className:"animate-spin text-muted-foreground"})}),n[47]=Q.isLoadingMore,n[48]=O,n[49]=se):se=n[49];let oe;n[50]!==Oe||n[51]!==ee||n[52]!==ne||n[53]!==Me||n[54]!==Ve||n[55]!==$e||n[56]!==Le||n[57]!==te||n[58]!==se?(oe=e.jsxs("div",{className:dn,children:[Oe,ee,ne,Me,Ve,$e,Le,te,se]}),n[50]=Oe,n[51]=ee,n[52]=ne,n[53]=Me,n[54]=Ve,n[55]=$e,n[56]=Le,n[57]=te,n[58]=se,n[59]=oe):oe=n[59];let ie;n[60]!==I||n[61]!==he.length||n[62]!==ue||n[63]!==b||n[64]!==de?(ie=he.length===0&&de.length===0&&ue.length===0&&e.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:b?`No connections match "${b}"`:I==="connected"?"No connections yet":"No connections available"}),n[60]=I,n[61]=he.length,n[62]=ue,n[63]=b,n[64]=de,n[65]=ie):ie=n[65];let ae;n[66]!==Z||n[67]!==oe||n[68]!==ie?(ae=e.jsxs("div",{className:Z,children:[oe,ie]}),n[66]=Z,n[67]=oe,n[68]=ie,n[69]=ae):ae=n[69];let _e;return n[70]!==Pe||n[71]!==ae?(_e=e.jsxs(e.Fragment,{children:[Pe,ae]}),n[70]=Pe,n[71]=ae,n[72]=_e):_e=n[72],_e}function ct(s){return!s.verified&&!s._meta?.["mcp.mesh"]?.verified&&!s.meta?.verified}function rt(s){return s.verified||s._meta?.["mcp.mesh"]?.verified||s.meta?.verified}function lt(s){return s.app_name}function dt(s){return s.app_name}function ut(s){return s?.items??[]}function pt(s,n){if(s?.hasMore)return n.reduce(mt,0)}function mt(s,n){return s+(n?.items?.length??0)}function Gt({open:s,onOpenChange:n,defaultTab:h,initialSearch:f="",...p}){const D=p.mode??"add",P="agentId"in p?p.agentId:void 0,R="addedConnectionIds"in p?p.addedConnectionIds??new Set:new Set,d="onAdd"in p&&p.onAdd?p.onAdd:t=>{},b=(t,c,v)=>{P&&N("agent_connection_attached",{agent_id:P,connection_id:t,app_name:c,mode:v})},[z,i]=le.useState(null),[y,S]=le.useState(f),[M,j]=le.useState(!1),{org:l}=Se(),{data:H}=en.useSession(),g=rn(),F=hn(),I=fn(),q=t=>{n(!1),I({to:"/$org/settings/connections/$appSlug",params:{org:l.slug,appSlug:t}})},K=async t=>{i(t.app_name??t.id);try{const v=`${t.title.replace(/\s*\(\d+\)\s*$/,"")} (${Date.now().toString(36).slice(-4)})`,r=(await g.create.mutateAsync({title:v,description:t.description??null,connection_type:t.connection_type,connection_url:t.connection_url??null,connection_token:null,icon:t.icon??null,app_name:t.app_name??null,app_id:t.app_id??null,connection_headers:t.connection_headers??null})).id,u=new URL(`/api/${l.slug}/mcp/${r}`,window.location.origin),x=await Ue({url:u.href,token:null,orgId:l.id});if(x.supportsOAuth&&!x.isAuthenticated){const{token:A,tokenInfo:C,error:w}=await Xe({connectionId:r,orgSlug:l.slug,scope:"offline_access"});if(w||!A){N("connection_oauth_failed",{connection_id:r,flow:"clone",error:w??"no_token"}),X.error(`Authentication failed: ${w??"no token received"}`),await g.delete.mutateAsync(r);return}if(N("connection_oauth_succeeded",{connection_id:r,flow:"clone"}),C)try{(await fetch(`/api/${l.slug}/connections/${r}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:C.accessToken,refreshToken:C.refreshToken,expiresIn:C.expiresIn,scope:C.scope,clientId:C.clientId,clientSecret:C.clientSecret,tokenEndpoint:C.tokenEndpoint})})).ok?await g.update.mutateAsync({id:r,data:{}}):await g.update.mutateAsync({id:r,data:{connection_token:A}})}catch{await g.update.mutateAsync({id:r,data:{connection_token:A}})}else await g.update.mutateAsync({id:r,data:{connection_token:A}});await F.invalidateQueries({queryKey:me.isMCPAuthenticated(u.href,null)})}b(r,t.app_name??null,"clone"),d(r)}catch(c){console.error("Failed to add connection:",c),X.error("Failed to add connection")}finally{i(null)}},o=async t=>{if(!(!l||!H?.user?.id)){i(t.id);try{const c=Sn(t,l.id,H.user.id,{remoteIndex:0}),v=c.connection_type==="STDIO",_=!!c.connection_url,r=v&&c.connection_headers&&typeof c.connection_headers=="object"&&"command"in c.connection_headers;if(!_&&!r){X.error("This MCP Server cannot be connected: no connection method available"),i(null);return}const{id:u}=await g.create.mutateAsync(c),x=new URL(`/api/${l.slug}/mcp/${u}`,window.location.origin),A=await Ue({url:x.href,token:null,orgId:l.id});if(A.supportsOAuth&&!A.isAuthenticated){const{token:C,tokenInfo:w,error:k}=await Xe({connectionId:u,orgSlug:l.slug,scope:"offline_access"});if(k||!C){N("connection_oauth_failed",{connection_id:u,flow:"connect_new",error:k??"no_token"}),X.warning("Couldn't sign in to this connection",{description:`It was added to your agent, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. (${k??"no token received"})`}),b(u,c.app_name??null,"new"),d(u);return}if(N("connection_oauth_succeeded",{connection_id:u,flow:"connect_new"}),w)try{(await fetch(`/api/${l.slug}/connections/${u}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:w.accessToken,refreshToken:w.refreshToken,expiresIn:w.expiresIn,scope:w.scope,clientId:w.clientId,clientSecret:w.clientSecret,tokenEndpoint:w.tokenEndpoint})})).ok?await g.update.mutateAsync({id:u,data:{}}):await g.update.mutateAsync({id:u,data:{connection_token:C}})}catch{await g.update.mutateAsync({id:u,data:{connection_token:C}})}else await g.update.mutateAsync({id:u,data:{connection_token:C}});await F.invalidateQueries({queryKey:me.isMCPAuthenticated(x.href,null)}),X.success("Connected and authenticated")}else X.success("Connected");b(u,c.app_name??null,"new"),d(u)}catch(c){console.error("Failed to connect:",c),X.error("Failed to connect")}finally{i(null)}}};return e.jsxs(sn,{open:s,onOpenChange:n,children:[e.jsxs(on,{className:"sm:max-w-5xl h-[85vh] max-h-[85vh] flex flex-col p-0 gap-0 overflow-hidden w-[95vw]",children:[e.jsx(an,{className:"px-6 pt-5 pb-0 shrink-0",children:e.jsx(cn,{className:"text-base font-semibold",children:D==="browse"?"Connections":"Add Connection"})}),e.jsx("div",{className:"pt-3 shrink-0",children:e.jsx(wn,{value:y,onChange:S,placeholder:"Search connections..."})}),e.jsx(le.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(ke,{size:24,className:"animate-spin text-muted-foreground"})}),children:e.jsx(at,{mode:D,agentId:P,addedConnectionIds:R,onAdd:d,onCloneAndAdd:K,onConnectAndAdd:o,connectingItemId:z,search:y,onCreateConnection:()=>j(!0),onBrowseNavigate:q,defaultTab:h})})]}),e.jsx(it,{open:M,onOpenChange:j,onCreated:async t=>{j(!1);const c=new URL(`/api/${l.slug}/mcp/${t}`,window.location.origin),v=await Ue({url:c.href,token:null,orgId:l.id});if(v.supportsOAuth&&!v.isAuthenticated){const{token:_,tokenInfo:r,error:u}=await Xe({connectionId:t,orgSlug:l.slug,scope:"offline_access"});if(u||!_){N("connection_oauth_failed",{connection_id:t,flow:"custom_create",error:u??"no_token"}),X.warning("Couldn't sign in to this connection",{description:`It was added to your agent, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. (${u??"no token received"})`}),b(t,null,"custom"),d(t),n(!1);return}if(N("connection_oauth_succeeded",{connection_id:t,flow:"custom_create"}),r)try{(await fetch(`/api/${l.slug}/connections/${t}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:r.accessToken,refreshToken:r.refreshToken,expiresIn:r.expiresIn,scope:r.scope,clientId:r.clientId,clientSecret:r.clientSecret,tokenEndpoint:r.tokenEndpoint})})).ok?await g.update.mutateAsync({id:t,data:{}}):await g.update.mutateAsync({id:t,data:{connection_token:_}})}catch{await g.update.mutateAsync({id:t,data:{connection_token:_}})}else await g.update.mutateAsync({id:t,data:{connection_token:_}});await F.invalidateQueries({queryKey:me.isMCPAuthenticated(c.href,null)})}b(t,null,"custom"),d(t),n(!1)}})]})}const Ze=new Map;function Qt(){const{org:s}=Se(),n=nt(),h=tt(),f=h.find(l=>l.providerId==="deco"),{data:p,isLoading:D,refetch:P,isFetching:R}=vn({queryKey:me.aiProviderCredits(s.id,"deco"),enabled:!!f,staleTime:6e4,queryFn:async()=>{try{return await n.call("AI_PROVIDER_CREDITS",{providerId:"deco"})}catch{return null}}}),d=p?.balanceCents??null,b=d!=null?d/100:null,z=le.useRef(new Map);if(d!=null){const l=Ze.get(s.id);z.current.get(s.id)&&l!=null&&d>l&&N("credits_topped_up_detected",{organization_id:s.id,delta_cents:d-l,previous_balance_cents:l,new_balance_cents:d}),Ze.set(s.id,d),z.current.set(s.id,!0)}const i=!!f,y=d!=null&&d>0,S=d!=null&&d===0,M=d!=null&&d===200,j=h.length>0&&h.every(l=>l.providerId==="deco");return{hasDecoKey:i,decoKeyId:f?.id??null,balanceCents:d,balanceDollars:b,hasCredits:y,isZeroBalance:S,isInitialFreeCredit:M,hasOnlyDecoProvider:j,isLoading:D,isFetching:R,refetch:P}}export{Gt as A,st as a,Ut as b,ot as c,zt as d,Ht as e,Xt as f,Kt as g,qt as h,Qt as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./use-infinite-scroll-C0w6irwB.js";import{cH as i}from"./index-Dq0yW5NU.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./use-infinite-scroll-C0w6irwB.js";import{cH as u,az as n}from"./index-Dq0yW5NU.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R,r as K,j as a,l as W,B as O}from"./index-Dq0yW5NU.js";import{P as Q,f as it}from"./agent-icon-Cg7qESLO.js";import{n as at}from"./ChevronLeft-njq8SkK6.js";import{i as lt}from"./ChevronRight-C5wvGTH8.js";import{S as X}from"./scroll-area-Dnau9N0n.js";import{T as ct,b as mt,a as pt}from"./tooltip-D_6ICuSM.js";import{V as ft}from"./view-mode-toggle-D7SZK2nR.js";import"./AlertCircle-CZWjmLDT.js";import"./Tool01-Dv9dCbp6.js";import"./SwitchHorizontal01-CEUgiRB1.js";import"./Settings02-BoqCpz_o.js";import"./XCircle-j1-GVtiw.js";import"./ArrowRight-DswQGw32.js";import"./ArrowUpRight-zJbKnVEx.js";import"./ZapSquare-Cl9Iu0Yu.js";import"./Users03-B41w1ewc.js";import"./CheckCircle-DD9zrZHy.js";import"./Check-e4E4gv9b.js";import"./ChevronDown-P1cR1p1z.js";import"./ChevronUp-DMBQslpk.js";import"./DotsVertical-DVx42NIt.js";import"./Stars02-DnTT2sBI.js";import"./Eye-BkHY3voI.js";import"./ZoomOut-DG8OwHO2.js";import"./Globe01-Cq-Rbldi.js";import"./FilterLines-rKEHnpC8.js";import"./Star01-DhLGcNbl.js";import"./Globe04-CtEF3BRe.js";import"./HardDrive-7UiN3uqO.js";import"./Key01-v4LCWUSc.js";import"./LayoutLeft-BrCMpwSK.js";import"./LinkExternal01-DtT4L4N6.js";import"./Monitor01-D9depcVp.js";import"./Sun-1K7RcAWZ.js";import"./Palette-D_iY1hQ7.js";import"./Play-DdLK5xgI.js";import"./Plus-Cd0ypUPB.js";import"./SearchMd-CKCNrxV5.js";import"./Shield01-Wa9NR2vn.js";import"./Stars01-WeiMgRuc.js";import"./Trash01-BC1OhQlq.js";import"./Upload01-BHKvZ87r.js";import"./User01-B9BKmOI0.js";import"./Users01-Dy2qezq_.js";import"./XClose-BgQasJGJ.js";import"./X-CNdGRyYk.js";import"./Zap-Cd1AcQhh.js";import"./use-clock-tick-BmlWLziO.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-mZgO-NLO.js";import"./file-type-icon-CeVYC7mS.js";import"./dialog-D72IgZaK.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-Bn0LA8cd.js";import"./use-mcp-client-j7WzNXv1.js";import"./auth-rR0qxEot.js";import"./chat-context-DuUO64-v.js";import"./hooks-DIkgQaQt.js";import"./decopilot-sse-pool-BfjIH6C6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BojtVjer.js";import"./use-collections-R0ZvS-Ai.js";import"./use-ai-providers-gj-kkImt.js";import"./studio-tools-BKbKV9tq.js";import"./use-organization-settings-B38ce8Is.js";import"./shell-layout-DZa9vz6i.js";import"./avatar-DYinNJvl.js";import"./required-auth-layout-CZ5ywz4q.js";import"./use-org-sso-Bva6WiTR.js";import"./sheet-C_eprANm.js";import"./integration-icon-Ck8orUeY.js";import"./use-navigate-to-agent-C8HlpzKH.js";import"./use-connection-DCyLx_hF.js";import"./use-mcp-prompts-D5hbuC8X.js";import"./form-c6Tjk0mK.js";import"./label-qEVe6vIu.js";import"./input-_nwToKjA.js";import"./select-D9Oa8DMc.js";const dt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),ut=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),ht=/\/flags\/multivariate\/[^/]+\.ts$/;function xt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function gt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e;if(typeof t!="string"||typeof r!="string")return null;const n=new Date(t),c=new Date(r);return Number.isNaN(n.getTime())||Number.isNaN(c.getTime())||c.getTime()<=n.getTime()?null:{start:n,end:c}}function Z(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(dt.has(r)){const n=gt(e);n&&t.push(n);return}if(ut.has(r)){const n=e.matchers;if(Array.isArray(n))for(const c of n)Z(c,t)}}}function bt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!ht.test(t))return!1;const r=e.variants;return Array.isArray(r)}function yt(e){if(typeof e=="string"){const i=e.trim();if(i.length===0)return null;try{const m=new URL(i).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return i.length>80?`${i.slice(0,77)}…`:i}if(!e||typeof e!="object")return null;const t=e,r=t.config,c=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,c?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const i of o)if(typeof i=="string"&&i.trim().length>0)return i.trim();const l=t.__resolveType;if(typeof l=="string"){const s=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(s.length>0)return s}return null}function vt(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];typeof n=="number"?t.length>0?t[t.length-1]+=`[${n}]`:t.push(`[${n}]`):t.push(n)}return t.join(" · ")}function H(e,t,r,n,c){if(bt(e)){const o=vt(n),l=e.variants,i=e.__resolveType;l.forEach((s,m)=>{if(!s||typeof s!="object")return;const p=s,d=[];if(Z(p.rule,d),d.length===0)return;const x=yt(p.value)??(o||r);for(const g of d)c.push({blockKey:t,blockLabel:r,innerPath:o,variantIndex:m,start:g.start,end:g.end,label:x,flagResolveType:i})});for(let s=0;s<l.length;s++){const m=l[s];m&&typeof m=="object"&&H(m.value,t,r,[...n,"variants",s,"value"],c)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)H(e[o],t,r,[...n,o],c);return}if(e&&typeof e=="object")for(const[o,l]of Object.entries(e))o!=="__resolveType"&&H(l,t,r,[...n,o],c)}function Tt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))H(n,r,xt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function jt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,c)=>{const o=c*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),r}const Nt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function tt(e,t){return e.get(t)??Nt}const kt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],et=["January","February","March","April","May","June","July","August","September","October","November","December"],wt=1440*60*1e3;function L(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function rt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function $(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function I(e,t){const r=new Date(e);return r.setDate(r.getDate()+t),r}function G(e,t){return Math.round((L(e).getTime()-L(t).getTime())/wt)}function _t(e){const t=I(e,-e.getDay()),r=[];for(let n=0;n<6;n++){const c=[];for(let o=0;o<7;o++)c.push(I(t,n*7+o));r.push(c)}for(;r.length>0&&r[r.length-1].every(n=>n.getMonth()!==e.getMonth());)r.pop();return r}function Mt(e,t){const r=L(e[0]),n=I(r,7),c=[];for(const i of t){const s=L(i.start),m=L(i.end);if(m.getTime()<r.getTime()||s.getTime()>=n.getTime())continue;const p=s.getTime()<r.getTime()?r:s,d=m.getTime()>=n.getTime()?I(n,-1):m,u=G(p,r),x=G(d,p)+1;x<=0||c.push({variant:i,startCol:u,span:x})}c.sort((i,s)=>i.startCol-s.startCol||s.span-i.span||i.variant.blockKey.localeCompare(s.variant.blockKey));const o=[],l=[];for(const i of c){let s=o.findIndex(m=>m<=i.startCol);s===-1&&(s=o.length,o.push(0)),o[s]=i.startCol+i.span,l.push({...i,lane:s})}return l}const U=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function St(e){return`${U.format(e.start)} → ${U.format(e.end)}`}function At(e){const t=R.c(17),{variant:r}=e;let n;t[0]!==r.blockLabel?(n=a.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=n):n=t[1];let c;t[2]!==r.innerPath?(c=r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=c):c=t[3];let o;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(o=r.label!==r.blockLabel&&r.label!==r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=o):o=t[7];let l;t[8]!==r?(l=St(r),t[8]=r,t[9]=l):l=t[9];let i;t[10]!==l?(i=a.jsx("div",{className:"mt-1",children:l}),t[10]=l,t[11]=i):i=t[11];let s;return t[12]!==n||t[13]!==c||t[14]!==o||t[15]!==i?(s=a.jsx(pt,{children:a.jsxs("div",{className:"text-xs",children:[n,c,o,i]})}),t[12]=n,t[13]=c,t[14]=o,t[15]=i,t[16]=s):s=t[16],s}function nt(e){const t=R.c(14),{variant:r,color:n,style:c,children:o}=e;let l;t[0]!==n.bg||t[1]!==n.text||t[2]!==c?(l={background:n.bg,color:n.text,borderRadius:4,...c},t[0]=n.bg,t[1]=n.text,t[2]=c,t[3]=l):l=t[3];let i;t[4]!==o?(i=a.jsx("span",{className:"truncate",children:o}),t[4]=o,t[5]=i):i=t[5];let s;t[6]!==l||t[7]!==i?(s=a.jsx(ct,{asChild:!0,children:a.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:l,children:i})}),t[6]=l,t[7]=i,t[8]=s):s=t[8];let m;t[9]!==r?(m=a.jsx(At,{variant:r}),t[9]=r,t[10]=m):m=t[10];let p;return t[11]!==s||t[12]!==m?(p=a.jsxs(mt,{children:[s,m]}),t[11]=s,t[12]=m,t[13]=p):p=t[13],p}function dr(e){const t=R.c(39),{decofile:r}=e,[n,c]=K.useState("calendar"),[o,l]=K.useState(Ct);let i,s;t[0]!==r?(s=Tt(r),i=jt(s.map(Et)),t[0]=r,t[1]=i,t[2]=s):(i=t[1],s=t[2]);const m=i;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>l(rt(new Date)),t[3]=p):p=t[3];const d=p;let u;t[4]!==n?(u=()=>l(k=>n==="calendar"?$(k,-1):$(k,-3)),t[4]=n,t[5]=u):u=t[5];const x=u;let g;t[6]!==n?(g=()=>l(k=>n==="calendar"?$(k,1):$(k,3)),t[6]=n,t[7]=g):g=t[7];const w=g;let N;t[8]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(O,{variant:"outline",size:"sm",onClick:d,children:"Today"}),t[8]=N):N=t[8];let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=a.jsx(at,{size:16}),t[9]=E):E=t[9];let _;t[10]!==x?(_=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:x,"aria-label":"Previous",children:E}),t[10]=x,t[11]=_):_=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(lt,{size:16}),t[12]=f):f=t[12];let b;t[13]!==w?(b=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:w,"aria-label":"Next",children:f}),t[13]=w,t[14]=b):b=t[14];const M=et[o.getMonth()];let y;t[15]!==o?(y=o.getFullYear(),t[15]=o,t[16]=y):y=t[16];let v;t[17]!==M||t[18]!==y?(v=a.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[M," ",y]}),t[17]=M,t[18]=y,t[19]=v):v=t[19];let T;t[20]!==v||t[21]!==_||t[22]!==b?(T=a.jsxs("div",{className:"flex items-center gap-2",children:[N,_,b,v]}),t[20]=v,t[21]=_,t[22]=b,t[23]=T):T=t[23];let C;t[24]===Symbol.for("react.memo_cache_sentinel")?(C={value:"calendar",icon:a.jsx(Q,{}),label:"Calendar"},t[24]=C):C=t[24];let j;t[25]===Symbol.for("react.memo_cache_sentinel")?(j=[C,{value:"timeline",icon:a.jsx(it,{}),label:"Timeline"}],t[25]=j):j=t[25];let h;t[26]!==n?(h=a.jsx(ft,{value:n,onValueChange:c,options:j}),t[26]=n,t[27]=h):h=t[27];let S;t[28]!==T||t[29]!==h?(S=a.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[T,h]}),t[28]=T,t[29]=h,t[30]=S):S=t[30];let A;t[31]!==m||t[32]!==o||t[33]!==s||t[34]!==n?(A=s.length===0?a.jsx(Dt,{}):n==="calendar"?a.jsx($t,{monthStart:o,variants:s,colorMap:m}):a.jsx(Vt,{monthStart:o,variants:s,colorMap:m}),t[31]=m,t[32]=o,t[33]=s,t[34]=n,t[35]=A):A=t[35];let D;return t[36]!==S||t[37]!==A?(D=a.jsxs("div",{className:"flex h-full w-full flex-col",children:[S,A]}),t[36]=S,t[37]=A,t[38]=D):D=t[38],D}function Et(e){return e.blockKey}function Ct(){return rt(new Date)}function Dt(){const e=R.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a.jsx(Q,{size:24,className:"text-muted-foreground/60"}),a.jsx("div",{children:"No scheduled variants."}),a.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]}),e[0]=t):t=e[0],t}const z=20,J=2,q=28;function $t(e){const t=R.c(17),{monthStart:r,variants:n,colorMap:c}=e;let o,l,i,s,m;if(t[0]!==c||t[1]!==r||t[2]!==n){const u=_t(r),x=L(new Date);o=X,m="flex-1 min-h-0",l="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:kt.map(Rt)}),t[8]=i):i=t[8],s=u.map((g,w)=>{const N=Mt(g,n),E=N.reduce(Lt,0),_=q+E*(z+J)+8;return a.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:_},children:[g.map((f,b)=>{const M=f.getMonth()===r.getMonth(),y=f.getTime()===x.getTime();return a.jsx("div",{className:W("border-r last:border-r-0 px-2 pt-1.5 text-xs",M?"bg-background":"bg-muted/30 text-muted-foreground"),children:a.jsx("span",{className:W("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",y&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},b)}),N.map((f,b)=>{const M=tt(c,f.variant.blockKey),y=q+f.lane*(z+J),v=f.startCol/7*100,T=f.span/7*100;return a.jsxs(nt,{variant:f.variant,color:M,style:{top:y,left:`calc(${v}% + 2px)`,width:`calc(${T}% - 4px)`,height:z},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&a.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${w}-${b}`)})]},w)}),t[0]=c,t[1]=r,t[2]=n,t[3]=o,t[4]=l,t[5]=i,t[6]=s,t[7]=m}else o=t[3],l=t[4],i=t[5],s=t[6],m=t[7];let p;t[9]!==l||t[10]!==i||t[11]!==s?(p=a.jsxs("div",{className:l,children:[i,s]}),t[9]=l,t[10]=i,t[11]=s,t[12]=p):p=t[12];let d;return t[13]!==o||t[14]!==m||t[15]!==p?(d=a.jsx(o,{className:m,children:p}),t[13]=o,t[14]=m,t[15]=p,t[16]=d):d=t[16],d}function Lt(e,t){return Math.max(e,t.lane+1)}function Rt(e){return a.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const V=4,Pt=32,P=240;function Vt(e){const t=R.c(27),{monthStart:r,variants:n,colorMap:c}=e,o=r;let l,i,s,m,p,d;if(t[0]!==c||t[1]!==r||t[2]!==o||t[3]!==n){const g=$(r,V),w=new Date,N=new Map;for(const j of n){const h=N.get(j.blockKey)??[];h.push(j),N.set(j.blockKey,h)}const E=Array.from(N.entries()).sort(Ot),_=g.getTime()-o.getTime(),f=j=>(Math.max(o.getTime(),Math.min(g.getTime(),j.getTime()))-o.getTime())/_*100;let b;t[10]!==o?(b=(j,h)=>$(o,h),t[10]=o,t[11]=b):b=t[11];const M=Array.from({length:V},b),y=w.getTime()>=o.getTime()&&w.getTime()<=g.getTime()?f(w):null;l=X,d="flex-1 min-h-0",i="min-w-[900px] relative";let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:P},children:"Variant / Block"}),t[12]=v):v=t[12];let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T={gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},t[13]=T):T=t[13];const C=M.map(It);t[14]!==C?(s=a.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[v,a.jsx("div",{className:"flex-1 grid",style:T,children:C})]}),t[14]=C,t[15]=s):s=t[15],t[16]!==y?(m=y!==null&&a.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${P}px + (100% - ${P}px) * ${y} / 100)`},children:a.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=y,t[17]=m):m=t[17],p=E.map(j=>{const[h,S]=j,A=tt(c,h),D=S[0]?.blockLabel??h;return a.jsxs("div",{children:[a.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:a.jsx("div",{className:"px-3 truncate",style:{width:P},children:D})}),S.map((k,st)=>a.jsxs("div",{className:"flex border-b items-center",style:{height:Pt},children:[a.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:P},children:[a.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:A.bg}}),a.jsx("span",{className:"truncate text-foreground/80",children:k.label})]}),a.jsxs("div",{className:"relative flex-1 h-full",children:[a.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},children:M.map(Ht)}),(()=>{const B=Math.max(k.start.getTime(),o.getTime()),F=Math.min(k.end.getTime(),g.getTime());if(F<=B)return null;const Y=f(new Date(B)),ot=f(new Date(F))-Y;return a.jsx(nt,{variant:k,color:A,style:{top:"50%",transform:"translateY(-50%)",left:`${Y}%`,width:`calc(${ot}% - 2px)`,height:22},children:k.label})})()]})]},st))]},h)}),t[0]=c,t[1]=r,t[2]=o,t[3]=n,t[4]=l,t[5]=i,t[6]=s,t[7]=m,t[8]=p,t[9]=d}else l=t[4],i=t[5],s=t[6],m=t[7],p=t[8],d=t[9];let u;t[18]!==i||t[19]!==s||t[20]!==m||t[21]!==p?(u=a.jsxs("div",{className:i,children:[s,m,p]}),t[18]=i,t[19]=s,t[20]=m,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==l||t[24]!==d||t[25]!==u?(x=a.jsx(l,{className:d,children:u}),t[23]=l,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function Ht(e,t){return a.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function It(e,t){return a.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[et[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Ot(e,t){return e[0].localeCompare(t[0])}export{dr as VariantCalendar};
|