decocms 4.509.2 → 4.509.4
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/{ActiveShapeUtils-DiW0_mPP.js → ActiveShapeUtils-CV3zl1wy.js} +1 -1
- package/dist/client/assets/{AlertCircle-B_HiUL3V.js → AlertCircle-NXgLHgNz.js} +1 -1
- package/dist/client/assets/{AreaChart-DVIHlYx5.js → AreaChart-DmYmrPlt.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CGlVoxui.js → ArrowLeft-BzveMFQj.js} +1 -1
- package/dist/client/assets/{ArrowUp-gZglv5wp.js → ArrowUp-DAUPJuuP.js} +1 -1
- package/dist/client/assets/{BarChart-RAlZhcVu.js → BarChart-Cm_MRilF.js} +1 -1
- package/dist/client/assets/{Building02-DMZnZO99.js → Building02-BxwY0KPK.js} +1 -1
- package/dist/client/assets/{CategoricalChart-D5pvUnb4.js → CategoricalChart-CsHWTDmR.js} +1 -1
- package/dist/client/assets/{CheckCircle-DEEJUOvq.js → CheckCircle-C6hOGQtb.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-butN_Pnw.js → ChevronSelectorVertical-DgvYFay1.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cb-JYgJS.js → ChevronUp-CLw_9Qso.js} +1 -1
- package/dist/client/assets/{Copy01-CRR-EuFi.js → Copy01-ERiooqLX.js} +1 -1
- package/dist/client/assets/{CreditCard01-B1XIHK7B.js → CreditCard01-D8jNMQJx.js} +1 -1
- package/dist/client/assets/{DotsVertical-D1bAYhly.js → DotsVertical-B1h3Jihf.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-37xA6mJ_.js → ErrorBarContext-BsFuTdlg.js} +1 -1
- package/dist/client/assets/{Globe04-DSOOTZNm.js → Globe04-Bh7J-5IF.js} +1 -1
- package/dist/client/assets/{Image01-DCu3b5kU.js → Image01-4n3A8r8Z.js} +1 -1
- package/dist/client/assets/{Key01-BWZX0ddW.js → Key01-C6u980OH.js} +1 -1
- package/dist/client/assets/{Link01-DyUd5OlZ.js → Link01-Dwd4LqmB.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CXNh4eyP.js → LinkBroken01-BjccAKPx.js} +1 -1
- package/dist/client/assets/{Monitor01-BakIeQUF.js → Monitor01-v-JR5BgI.js} +1 -1
- package/dist/client/assets/{Play-Cow0cNbD.js → Play-Ce9aT9v6.js} +1 -1
- package/dist/client/assets/{Plus-BymkC_GC.js → Plus-QrRV6-c4.js} +1 -1
- package/dist/client/assets/{SearchMd-O4PYnwLm.js → SearchMd-CHpsmgY4.js} +1 -1
- package/dist/client/assets/{Sector-DWIGj-50.js → Sector-CWzg5EIp.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BZRikaTk.js → ShoppingBag01-BcXG1Y02.js} +1 -1
- package/dist/client/assets/{Sun-DrrCSWyx.js → Sun-D6T_vWjG.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-QJ8HpWxv.js → SwitchHorizontal01-BSLmpTlq.js} +1 -1
- package/dist/client/assets/{Tool01-C_CKkVec.js → Tool01--h_pVz4T.js} +1 -1
- package/dist/client/assets/{Trash01-CyUDLdm2.js → Trash01-RwipSHZZ.js} +1 -1
- package/dist/client/assets/{Upload01-DndYeCIj.js → Upload01-eK2TNPZR.js} +1 -1
- package/dist/client/assets/{User01-Bk3qtSGw.js → User01-N2GTLnCq.js} +1 -1
- package/dist/client/assets/{UserSquare-BSP-qc9x.js → UserSquare-CX5ecxEr.js} +1 -1
- package/dist/client/assets/{Users01-CTggT7zQ.js → Users01-CUohNTuz.js} +1 -1
- package/dist/client/assets/{XAxis-D1MK0252.js → XAxis-BwUVK1FQ.js} +1 -1
- package/dist/client/assets/{XClose-D3hBIxOe.js → XClose-BuvBFMv4.js} +1 -1
- package/dist/client/assets/{ZoomOut-Dg3QgYnY.js → ZoomOut-CoVzvNw2.js} +1 -1
- package/dist/client/assets/{access-gate-CwefArvr.js → access-gate-CbT1o3aQ.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-m56a3mnH.js → add-connection-dialog-CzOk83Hd.js} +1 -1
- package/dist/client/assets/{agent-analytics-Db8TFrYP.js → agent-analytics-DSQHGceC.js} +1 -1
- package/dist/client/assets/agent-app-BKQglSyA.js +1 -0
- package/dist/client/assets/{agent-assets-WlJij-ig.js → agent-assets-D1KtQiap.js} +1 -1
- package/dist/client/assets/{agent-automation-DMFv2amS.js → agent-automation-mKsl4Duh.js} +1 -1
- package/dist/client/assets/{agent-automations-BJuifIPT.js → agent-automations-lTYAa4i5.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-PhME43D1.js → agent-connect-sources-Bc6cTZv0.js} +1 -1
- package/dist/client/assets/agent-deck-DcWKbF_L.js +1 -0
- package/dist/client/assets/{agent-e2e-IjTbnMuW.js → agent-e2e-tiw4b7SY.js} +1 -1
- package/dist/client/assets/{agent-experiments-ytOilEGx.js → agent-experiments-DZF2CJbj.js} +1 -1
- package/dist/client/assets/{agent-file-DZpK6ASx.js → agent-file-y02P7aBy.js} +1 -1
- package/dist/client/assets/{agent-hosting-CMw8ghEQ.js → agent-hosting-CX6Bbgql.js} +1 -1
- package/dist/client/assets/{agent-icon-BBR2iDYh.js → agent-icon-RL-ye5ci.js} +1 -1
- package/dist/client/assets/agent-library-Bn09Zi3C.js +1 -0
- package/dist/client/assets/agent-library-file-JR0ar7Fs.js +1 -0
- package/dist/client/assets/{agent-monitor-CNzYwzZv.js → agent-monitor-D-dHU9LS.js} +1 -1
- package/dist/client/assets/{agent-overview-BwNhS-78.js → agent-overview-Cmz1bvJG.js} +1 -1
- package/dist/client/assets/{agent-releases-BnMtShKH.js → agent-releases-B4F3N1gM.js} +1 -1
- package/dist/client/assets/agent-settings-ktDoBtMC.js +1 -0
- package/dist/client/assets/{agent-site-editor-DdqMOZ74.js → agent-site-editor-DZHOQIu3.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DZ0hBSDO.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BwVrsKyq.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DKANcMGw.js +1 -0
- package/dist/client/assets/{agent-view-guard-B9q4njeN.js → agent-view-guard-BoL_3WsJ.js} +1 -1
- package/dist/client/assets/agent-view-m8ZRTbzC.js +1 -0
- package/dist/client/assets/{agents-list-Cn16uYPx.js → agents-list-CaJDo_m0.js} +1 -1
- package/dist/client/assets/{ai-providers-BQy_O3GP.js → ai-providers-BMPjVZSU.js} +1 -1
- package/dist/client/assets/{alert-DrUtYDkJ.js → alert-YkXC9hu2.js} +1 -1
- package/dist/client/assets/{alert-dialog-CsMnazlX.js → alert-dialog-DyrbJ0WW.js} +1 -1
- package/dist/client/assets/{analytics-sections-CfsaP32W.js → analytics-sections-2dA8zU_U.js} +1 -1
- package/dist/client/assets/{api-keys-BprNuZz2.js → api-keys-CUXS_P7v.js} +1 -1
- package/dist/client/assets/api-keys-NW8fFPfy.js +1 -0
- package/dist/client/assets/{app-editor-Dc3XTSht.js → app-editor-DYayDnPR.js} +1 -1
- package/dist/client/assets/{asset-utils-fB0ipt1O.js → asset-utils-BbCTjOVx.js} +1 -1
- package/dist/client/assets/{auth-BLd_oaZA.js → auth-BWnr0_lm.js} +1 -1
- package/dist/client/assets/{auth-catchall-CL_pk-to.js → auth-catchall-DCcv16ke.js} +1 -1
- package/dist/client/assets/{auth-entry-C_nh3VE5.js → auth-entry-CY7SZd_k.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CVjJMSaz.js → auth-split-layout-DQN-aeTf.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BHPSufEQ.js → authenticate-and-persist-oauth-CBaG1Ea0.js} +1 -1
- package/dist/client/assets/{automation-list-row-CK3Td7-_.js → automation-list-row-ifNUJixD.js} +1 -1
- package/dist/client/assets/{automation-runs-CqfPM2gn.js → automation-runs-ZODGWJTi.js} +1 -1
- package/dist/client/assets/{automations-BFr_umFL.js → automations-BDok8nH2.js} +1 -1
- package/dist/client/assets/{autosend-CMH8Nd3q.js → autosend-DA5Ll-0f.js} +1 -1
- package/dist/client/assets/{avatar-DaqDyQT2.js → avatar-DRy8VbC0.js} +1 -1
- package/dist/client/assets/{badge-Cs8ttYS4.js → badge-BUPu9gG1.js} +1 -1
- package/dist/client/assets/{block-document-SMDTJId-.js → block-document-B49Lu21W.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BqrfTf1v.js → blocks-preview-workspace-context-YiNrOMxP.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-MymqMfo8.js → blocks-tab-states-DXjM93mT.js} +3 -3
- package/dist/client/assets/{blog-schema-BOKkm5h2.js → blog-schema-PiAd-EaK.js} +1 -1
- package/dist/client/assets/{board-analytics-1IHYJ_OM.js → board-analytics-BQ4mtn6t.js} +1 -1
- package/dist/client/assets/{buckets-DJOlYK3e.js → buckets-Dx6DSmhu.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-IMnqNYLL.js → build-improve-prompt-doc-BGp6acoK.js} +1 -1
- package/dist/client/assets/{calendar-B734mlre.js → calendar-D9jTYu0Y.js} +1 -1
- package/dist/client/assets/{capability-load-error-h2aqxH-J.js → capability-load-error-OjLyyx3_.js} +1 -1
- package/dist/client/assets/{category-editor-B2alT0tp.js → category-editor-fExcOdlX.js} +1 -1
- package/dist/client/assets/{chart-QJBBiY0u.js → chart-BDcb54AI.js} +1 -1
- package/dist/client/assets/{chat-context-CsSueqYK.js → chat-context-Ml4Gozft.js} +1 -1
- package/dist/client/assets/{chat-draft-5aNYHG8g.js → chat-draft-DPAaJMCE.js} +1 -1
- package/dist/client/assets/{checkbox-D1RvSoCC.js → checkbox-Dej0a_MZ.js} +1 -1
- package/dist/client/assets/{choose-editor-CyEQ8Q-S.js → choose-editor-D0dHn1km.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BCsO4A9r.js → cli-auth-success-DVDs0guM.js} +1 -1
- package/dist/client/assets/{client-icons-BaP-T1v6.js → client-icons-jDtMVux0.js} +1 -1
- package/dist/client/assets/cms-settings-editor-CnQOe-jq.js +1 -0
- package/dist/client/assets/{collapsible-DmX-ngKI.js → collapsible-DynWWdZY.js} +1 -1
- package/dist/client/assets/{collection-detail-BZ0u6mlt.js → collection-detail-BQdQHWVJ.js} +1 -1
- package/dist/client/assets/{collection-display-button-C01k_lwT.js → collection-display-button-B0G6tC0y.js} +1 -1
- package/dist/client/assets/{collection-search-DBI1dP1G.js → collection-search-Dy92VLR3.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-H9NaWjzQ.js → collection-table-wrapper-Bt1K-hnk.js} +1 -1
- package/dist/client/assets/{collection-tabs-DOWtwIA2.js → collection-tabs-ByAybjjo.js} +1 -1
- package/dist/client/assets/{column-rules-zfwf7Mwg.js → column-rules-JZTg5OFd.js} +1 -1
- package/dist/client/assets/{combobox-CZYl1SW8.js → combobox-DnmkkbPm.js} +1 -1
- package/dist/client/assets/{command-DHGvWDa5.js → command-DD6ok1pX.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-C60JYhxi.js → companion-mcps-section-9J59mz9d.js} +1 -1
- package/dist/client/assets/{config-CTQocw0M.js → config-DoPNV1hp.js} +1 -1
- package/dist/client/assets/{connect-DaLc511O.js → connect-BgE8r_92.js} +1 -1
- package/dist/client/assets/{connect-layout-D__87xSa.js → connect-layout-yUmzpbQ7.js} +1 -1
- package/dist/client/assets/{connection-CyGwGe0c.js → connection-BY-oAv5n.js} +1 -1
- package/dist/client/assets/{connection-card-C5Hd83Lq.js → connection-card-C73qSj5G.js} +1 -1
- package/dist/client/assets/{connection-detail-CiOsCWZG.js → connection-detail-CzC4FHcu.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DWTE_E_W.js → connection-form-helpers-BKJUP1mG.js} +1 -1
- package/dist/client/assets/{connections-BGPU_XQO.js → connections-BSFhP9AT.js} +1 -1
- package/dist/client/assets/{content-tab-UEob6yi0.js → content-tab-CqFH5N9R.js} +3 -3
- package/dist/client/assets/{context-BPz6yFBa.js → context-BCaHrPi2.js} +1 -1
- package/dist/client/assets/{context-menu-BQv9Yg_3.js → context-menu-B8J7Oy5n.js} +1 -1
- package/dist/client/assets/{core.esm-g5_mpFZB.js → core.esm-xbyEQMDb.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-B_arDF7k.js → create-organization-dialog-B-CIZkPW.js} +1 -1
- package/dist/client/assets/{daily-pulse-DBK9-DUX.js → daily-pulse-Djsrbe-C.js} +1 -1
- package/dist/client/assets/{discover-BqXowkZh.js → discover-KZgOob2m.js} +1 -1
- package/dist/client/assets/{domain-settings-D0g7ONpv.js → domain-settings-B4TC2NRE.js} +1 -1
- package/dist/client/assets/{drawer-CbCdchWH.js → drawer-C97eOt-w.js} +1 -1
- package/dist/client/assets/{editor-sIXknvpq.js → editor-B4jue8QA.js} +1 -1
- package/dist/client/assets/{editor-classes-CbwoD1vF.js → editor-classes-PB6-Tskm.js} +1 -1
- package/dist/client/assets/{empty-state-BCUme0Ms.js → empty-state-BE81q3WX.js} +1 -1
- package/dist/client/assets/{empty-state-CPp6Z3BQ.js → empty-state-Bl8xm5Rf.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B5vLAPIK.js → extract-connection-data-Dn6rJFzB.js} +1 -1
- package/dist/client/assets/{feature-gate-DiP6HaTH.js → feature-gate-Dsz4eN7W.js} +1 -1
- package/dist/client/assets/{feature-paywall-DAnZt43s.js → feature-paywall-Uqlg3bNA.js} +1 -1
- package/dist/client/assets/{file-explorer-J-Ren9bv.js → file-explorer-DC2MbKrN.js} +1 -1
- package/dist/client/assets/{file-preview-Ci3jlzfL.js → file-preview-B01aT0SL.js} +1 -1
- package/dist/client/assets/{file-share-button-DbVp0fLm.js → file-share-button-C2Gs9EX3.js} +1 -1
- package/dist/client/assets/{file-type-icon-FwTaRFNS.js → file-type-icon-3H7WzHap.js} +1 -1
- package/dist/client/assets/flat-project-Wmh6rrh1.js +1 -0
- package/dist/client/assets/{folder-icon-C0blADE0.js → folder-icon-BjZ-JR59.js} +1 -1
- package/dist/client/assets/{form-DME968hC.js → form-BDu3IeIH.js} +1 -1
- package/dist/client/assets/{general-BGY19JOX.js → general-BsdmUS95.js} +1 -1
- package/dist/client/assets/{home-DGvRLGSh.js → home-8_CmNbFp.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-RQvX0uVW.js → hosted-publish-feedback-DSjc94oY.js} +1 -1
- package/dist/client/assets/{icon-button-GVvv_TGw.js → icon-button-DMaUfwmf.js} +1 -1
- package/dist/client/assets/{index-CTjWv7p_.js → index-BK190UFK.js} +2 -2
- package/dist/client/assets/{index-CFXQHfl1.js → index-BMw66_nD.js} +1 -1
- package/dist/client/assets/{index-DEfxB_BX.js → index-BbrHALdQ.js} +1 -1
- package/dist/client/assets/{index-BtOEdX6x.js → index-BteFHRAl.js} +1 -1
- package/dist/client/assets/{index-DuouRhoR.js → index-C9fKK-wk.js} +1 -1
- package/dist/client/assets/{index-C8v36X2j.js → index-CHzjSYqm.js} +1 -1
- package/dist/client/assets/{index-Mj5Dlp7-.js → index-CQDWoXvj.js} +1 -1
- package/dist/client/assets/{index-BTOWNqi1.js → index-DL4uNgul.js} +1 -1
- package/dist/client/assets/{index-K8d-kObh.js → index-DUtn7cb7.js} +1 -1
- package/dist/client/assets/{index-GWPEHtx5.js → index-Dj68aY2U.js} +1 -1
- package/dist/client/assets/{index-Ddu_rSLm.js → index-EY3UF1U7.js} +1 -1
- package/dist/client/assets/{index-1TA39jIZ.js → index-JO6ffcEb.js} +1 -1
- package/dist/client/assets/{index-aq6Oc2bx.js → index-OOJwkPNP.js} +3 -3
- package/dist/client/assets/{index-h1iuYBxr.js → index-PRDH4fOj.js} +1 -1
- package/dist/client/assets/{index-it1G5uen.js → index-ZVe9S7Za.js} +1 -1
- package/dist/client/assets/{index-redirect-B81WZTDn.js → index-redirect-BnSFGhQv.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CYFeTV4A.js → infiniteQueryObserver-De4bQwNq.js} +1 -1
- package/dist/client/assets/{infra-billing-C4d5ZCzo.js → infra-billing-Cjb-5SPj.js} +1 -1
- package/dist/client/assets/{input-lzFp2uRd.js → input-COBaFE6j.js} +3 -3
- package/dist/client/assets/{input-D4vnZBvQ.js → input-JF63eNXE.js} +1 -1
- package/dist/client/assets/{integration-icon-4vqLdvgx.js → integration-icon-DooAPnA0.js} +1 -1
- package/dist/client/assets/{jira-icon-Cp75OvG2.js → jira-icon-5wuNhIhD.js} +1 -1
- package/dist/client/assets/{label-BBFj7oje.js → label-BunRmshY.js} +1 -1
- package/dist/client/assets/{layout-Hr0ljnsI.js → layout--YzH-sG0.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CVl-Ax69.js → legacy-agents-deep-CcpzlDd8.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DyWbHT7y.js → legacy-main-redirect-Dxu6EzR_.js} +1 -1
- package/dist/client/assets/library-9J_F8Otr.js +1 -0
- package/dist/client/assets/{library-tab-CR7Dg6gz.js → library-tab-SHb1k8XF.js} +1 -1
- package/dist/client/assets/{login-CPIzj5NK.js → login-D0JiYPIC.js} +1 -1
- package/dist/client/assets/{markdown-3pW1-LsL.js → markdown-Nb1vuip_.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-B6D8q_ye.js → mcp-app-renderer-DcLA_J0y.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cu679GrT.js → mcp-oauth-BD-0h7ak.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DpgBvC0Y.js → mcp-oauth-Du734nk4.js} +1 -1
- package/dist/client/assets/{members-CmNQ_ouB.js → members-CpbD1vAW.js} +1 -1
- package/dist/client/assets/{memory-B9agWmFf.js → memory-oRzY_JZ0.js} +1 -1
- package/dist/client/assets/{mini-report-page-CUhNSn7g.js → mini-report-page-B8htqT-f.js} +1 -1
- package/dist/client/assets/{mock-board-DonPs6jb.js → mock-board-A2KyR68g.js} +1 -1
- package/dist/client/assets/{monaco-editor-CXsl4AAs.js → monaco-editor-BuEapzg2.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CLjBYZbH.js → monitoring-stats-row-CmLdoUBM.js} +1 -1
- package/dist/client/assets/{multi-select-DvK1FnJz.js → multi-select-2u1iX52o.js} +1 -1
- package/dist/client/assets/{mustache-CJkQZMoK.js → mustache-CfcOVJml.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BmQvk0AN.js → new-project-dialog-Co9nzRWA.js} +1 -1
- package/dist/client/assets/{oauth-callback-CPHBPDQq.js → oauth-callback-750m95vu.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-3QEfhvZs.js → oauth-callback-ai-provider-D2eF1Ee5.js} +1 -1
- package/dist/client/assets/{onboarding-CWf-6NbS.js → onboarding-DkgSoZ52.js} +1 -1
- package/dist/client/assets/{openai-conversation-ByV4ghuu.js → openai-conversation-BvOCsL04.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-Bz-512-j.js → optimistic-project-sidebar-views-DHmQObV1.js} +1 -1
- package/dist/client/assets/{order-monitor-day-DzHY7Cn_.js → order-monitor-day-DwD8y3vy.js} +1 -1
- package/dist/client/assets/{organization-choice-v4TuGYHb.js → organization-choice-8hhbvDVr.js} +1 -1
- package/dist/client/assets/{orgs-DGKj6_LT.js → orgs-CWAFkh9i.js} +1 -1
- package/dist/client/assets/{page-seo-form-CFpyiiXA.js → page-seo-form-Cdr_Tziw.js} +1 -1
- package/dist/client/assets/{pair-BXmEezUH.js → pair-BsHnJbjX.js} +1 -1
- package/dist/client/assets/{plan-ladder-B_i6laf_.js → plan-ladder-DKHYfsUX.js} +1 -1
- package/dist/client/assets/{popover-BmmpRE-t.js → popover-B4k9nGiU.js} +1 -1
- package/dist/client/assets/{post-calendar-DlBNZ17J.js → post-calendar-kS9kSzmH.js} +1 -1
- package/dist/client/assets/{post-editor-BvLtCAu7.js → post-editor-DPYl0fXd.js} +1 -1
- package/dist/client/assets/{preview-content-fQPpQUgh.js → preview-content-BQwHzeSS.js} +1 -1
- package/dist/client/assets/{preview-dialog-BCRc3vmH.js → preview-dialog-xTG64ezy.js} +1 -1
- package/dist/client/assets/{preview-panel-SLsWXX4e.js → preview-panel-DBeEW5pO.js} +1 -1
- package/dist/client/assets/{preview-tab-SU67nT3n.js → preview-tab-G1BalzTr.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-DTQdQKpc.js → product-picker-dialog-Ci4Mw-Sq.js} +1 -1
- package/dist/client/assets/{profile-b9cN0vAR.js → profile-WUzxU_wm.js} +1 -1
- package/dist/client/assets/{project-app-view-TZcg1ec8.js → project-app-view-BpmxltEa.js} +1 -1
- package/dist/client/assets/{project-feed-BUya4JEL.js → project-feed-DtlFOJ_J.js} +1 -1
- package/dist/client/assets/{project-icon-D91bSjz0.js → project-icon-B3mPNSKk.js} +1 -1
- package/dist/client/assets/project-reports-CnYxVtKV.js +1 -0
- package/dist/client/assets/project-tasks-DG-HA53W.js +1 -0
- package/dist/client/assets/{projects-D8i01mKz.js → projects-KkpLImdx.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CRHzdUYP.js → projects-empty-state-p7R98cUX.js} +1 -1
- package/dist/client/assets/{prompts-BeyEOvjI.js → prompts-BBLXPrFf.js} +1 -1
- package/dist/client/assets/record-editor-DmEqm8YK.js +1 -0
- package/dist/client/assets/{redirect-editor-JgjnkYFM.js → redirect-editor-DxAuq7iy.js} +1 -1
- package/dist/client/assets/reports-D0tBPXVA.js +1 -0
- package/dist/client/assets/{reports-onboarding-BoXkEzRl.js → reports-onboarding-CuCGBTFc.js} +1 -1
- package/dist/client/assets/{reports-tab-DgIfkBe4.js → reports-tab-f1o8nSn2.js} +2 -2
- package/dist/client/assets/{reports-DT1J-Acd.js → reports-zTXfgSxC.js} +1 -1
- package/dist/client/assets/{repositories-ar0T7V-k.js → repositories-Dk410E1C.js} +1 -1
- package/dist/client/assets/{repository-binding-CUKMFYlr.js → repository-binding-De4YD-ur.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B0XPae0i.js → repository-import-picker-D9TcWtSt.js} +1 -1
- package/dist/client/assets/{repository-picker-tkfqc0HP.js → repository-picker-BN6FQay9.js} +1 -1
- package/dist/client/assets/{require-capability-BzqXI72X.js → require-capability-C2M-jHnW.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DzBlEUGS.js → required-auth-layout-DxHu4HdO.js} +1 -1
- package/dist/client/assets/{reset-password-C1mSW7Y4.js → reset-password-DN8BroA7.js} +1 -1
- package/dist/client/assets/{resizable-BzRss8B3.js → resizable-DkYlMHir.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-Cb6tb2UW.js → resolve-tab-icon-DLZ3PeXC.js} +1 -1
- package/dist/client/assets/{review-settings-BZJdFSel.js → review-settings-CiipJAp6.js} +1 -1
- package/dist/client/assets/{roles-D3ZJTNkW.js → roles-BhI1rNIV.js} +1 -1
- package/dist/client/assets/{route-jAx8SxCp.js → route-C1EkUidt.js} +1 -1
- package/dist/client/assets/{route-CG_Pe0_v.js → route-CNLDPUh8.js} +1 -1
- package/dist/client/assets/route-CkXaNypH.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DLDe72ju.js → sandbox-lifecycle-context-DdsU0yom.js} +1 -1
- package/dist/client/assets/{schema-ipxqGklP.js → schema-BkghSgU6.js} +1 -1
- package/dist/client/assets/{schema-DUmP7mXK.js → schema-OH4JBQTE.js} +1 -1
- package/dist/client/assets/{scroll-area-DHYVnI-I.js → scroll-area-EXqRHAMU.js} +1 -1
- package/dist/client/assets/{search-input-CvsfrEx_.js → search-input-DLOw4tAV.js} +1 -1
- package/dist/client/assets/{search-toggle-DnQksH6F.js → search-toggle-DdBWg4DF.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-Co44n0dG.js → secret-ciphertext-CW-YasIr.js} +1 -1
- package/dist/client/assets/{secret-picker-eVGbRH7c.js → secret-picker-Dk9Bg5UA.js} +1 -1
- package/dist/client/assets/{secrets-CjwpYTND.js → secrets-Ct4YPiyH.js} +1 -1
- package/dist/client/assets/{sections-editor-BWve_EdV.js → sections-editor-JgARz_LO.js} +1 -1
- package/dist/client/assets/{select-JsVR4bkR.js → select-BlwJBq6n.js} +1 -1
- package/dist/client/assets/{select-model-C0lXdjww.js → select-model-CWTTzqVn.js} +1 -1
- package/dist/client/assets/{seo-editor-CFP0UHWx.js → seo-editor-CLH8bBAu.js} +1 -1
- package/dist/client/assets/{separator-CcSlUA8B.js → separator-CvGb7moo.js} +1 -1
- package/dist/client/assets/{settings-tab-DstxhXJl.js → settings-tab-DtbnHAeg.js} +1 -1
- package/dist/client/assets/{sheet-CcsrBrXF.js → sheet-CNqgDBwb.js} +1 -1
- package/dist/client/assets/{shell-layout-CaDbhp-Y.js → shell-layout-MCnab3JI.js} +1 -1
- package/dist/client/assets/site-editor-sSbb2sUp.js +1 -0
- package/dist/client/assets/{site-editor-toast-JA1oO0--.js → site-editor-toast-DUaxkDtw.js} +1 -1
- package/dist/client/assets/{skills-DK6qYuy5.js → skills-BbxG69y1.js} +1 -1
- package/dist/client/assets/{slider-D6WP7zVz.js → slider-D9D-us6t.js} +1 -1
- package/dist/client/assets/{sortable.esm-_RsAHU55.js → sortable.esm-Cohqalwi.js} +1 -1
- package/dist/client/assets/{sso-CHakNb6a.js → sso-CFy2-kN0.js} +1 -1
- package/dist/client/assets/{suggestion-COCn65DM.js → suggestion-BAcUX8_L.js} +1 -1
- package/dist/client/assets/{switch-BdySpUUX.js → switch-DN2oDjus.js} +1 -1
- package/dist/client/assets/{symbol-IuOv85-4.js → symbol-Br0-VnsN.js} +1 -1
- package/dist/client/assets/{synced-repos-hurKmQtt.js → synced-repos--57pERYV.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DPJDzl6i.js → tab-icon-glyph-D-maYmFp.js} +1 -1
- package/dist/client/assets/{table-DDi3Cf_t.js → table-DB2WdQPY.js} +1 -1
- package/dist/client/assets/{tabs-y2ekO2bu.js → tabs-Ph7SjF97.js} +1 -1
- package/dist/client/assets/{task-board-zMTndQaY.js → task-board-CYpXhGQT.js} +1 -1
- package/dist/client/assets/{task-route-Da2kAtHB.js → task-route-C5itozGq.js} +1 -1
- package/dist/client/assets/{task-status-Bms2bUVK.js → task-status-DTDvj1F1.js} +1 -1
- package/dist/client/assets/taskboard-analytics-LP9Oz3pg.js +1 -0
- package/dist/client/assets/{tasks-Cue0PIs1.js → tasks-B8w3McK4.js} +1 -1
- package/dist/client/assets/tasks-BnUPurF3.js +1 -0
- package/dist/client/assets/{textarea-DjEn7s--.js → textarea-DlGH37X3.js} +1 -1
- package/dist/client/assets/{thread-analytics-C0dP1bD-.js → thread-analytics-CQNNQgc5.js} +1 -1
- package/dist/client/assets/{thread-intent-CeVBLvFY.js → thread-intent-Bs__gvfZ.js} +1 -1
- package/dist/client/assets/{thread-route-DFNs7FnK.js → thread-route-5jEeyUgj.js} +1 -1
- package/dist/client/assets/{thread-route-D3q_rVP7.js → thread-route-DS39QkbF.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Dd9ZM-zN.js → thread-sheet-body-Dfgibfh6.js} +1 -1
- package/dist/client/assets/{time-range-picker-xfO0EX4l.js → time-range-picker-Z0RBfkV5.js} +1 -1
- package/dist/client/assets/{toggle-group-AfU8RYJj.js → toggle-group-TsnUbAB8.js} +1 -1
- package/dist/client/assets/{tool-namespace-CGmm1XsL.js → tool-namespace-EhUoXk-S.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Bjp-WCB6.js → toolbar-icon-button-BIVcEquC.js} +1 -1
- package/dist/client/assets/{tooltip-DqmGcdDJ.js → tooltip-BWcFijHU.js} +1 -1
- package/dist/client/assets/{tooltipContext-bYw7jO6q.js → tooltipContext-CNWwS6Ia.js} +1 -1
- package/dist/client/assets/{track-ZwUxBtRx.js → track-DcgDDU71.js} +1 -1
- package/dist/client/assets/{types-Bn1OkBUZ.js → types-CBrlqewk.js} +1 -1
- package/dist/client/assets/{url-slug-DTtfghpx.js → url-slug-CDCbGOuX.js} +1 -1
- package/dist/client/assets/{usage-stats-BQf3WnUV.js → usage-stats-Ch0VewCU.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CghFth1V.js → use-ai-providers-DlCYkQtp.js} +1 -1
- package/dist/client/assets/{use-app-takeover-DSm0hM-q.js → use-app-takeover-CdRlUyD6.js} +1 -1
- package/dist/client/assets/{use-automations-CA7c0rVa.js → use-automations-YGFOIQAp.js} +1 -1
- package/dist/client/assets/{use-autosave-BnJRqW8T.js → use-autosave-JYMEMW_M.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-DTChKwGZ.js → use-chat-navigation-ClWioV9i.js} +1 -1
- package/dist/client/assets/{use-clock-tick-L_13B5gz.js → use-clock-tick-CvejttUf.js} +1 -1
- package/dist/client/assets/{use-connect-companion-ChMBUAJw.js → use-connect-companion-CbefqerD.js} +1 -1
- package/dist/client/assets/{use-connection-CEirJr2M.js → use-connection-B0oPVblY.js} +1 -1
- package/dist/client/assets/{use-content-sync-tVIUxZEE.js → use-content-sync-BRR8CyBn.js} +1 -1
- package/dist/client/assets/{use-copy-BRcd4PJW.js → use-copy-BIgY_WmV.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CYacSk2v.js → use-create-virtual-mcp-DJNzZvO5.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-AV4SnLxg.js → use-date-fns-locale-BIUtfLPN.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Y-Qh1_Yq.js → use-debounced-autosave-Dj9r69Bg.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DSvxzSzu.js → use-debounced-value-C1WDkKos.js} +1 -1
- package/dist/client/assets/{use-deco-credits-B1V9qoME.js → use-deco-credits-DCap0Yml.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D9D6ni5J.js → use-decopilot-events-XgFDUcx2.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B2im9KG6.js → use-delete-connection-_wv8yaj-.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-C5Jc74eV.js → use-deployment-admin-DfnUaqJc.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-D5O9v9JH.js → use-ensure-project-folder-DNTLX-Eo.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-B4AGZbiI.js → use-fast-preview-draft-url-B9bjV3Ma.js} +1 -1
- package/dist/client/assets/{use-file-configs-DfP4tBEs.js → use-file-configs-CsC2BHQ-.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CLIMYjnC.js → use-infinite-scroll-NSUx4AXY.js} +1 -1
- package/dist/client/assets/{use-join-requests-CLPw9kSA.js → use-join-requests-paxQ0wb6.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DXonldTT.js → use-main-panel-tabs-1qDqqVnc.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BHCb596Q.js → use-mcp-auth-status-zfl5e-7T.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CGKK63Kz.js → use-mcp-client-mz_YsdlD.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Q6y3VcI9.js → use-mcp-prompts-CvB0iFHn.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CXE77GDs.js → use-mcp-tools-DZXyAqtp.js} +1 -1
- package/dist/client/assets/{use-members-CG-2RwJv.js → use-members-vO4hRjDU.js} +1 -1
- package/dist/client/assets/{use-mobile-BHIxo6gN.js → use-mobile-DEaGyR0R.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DYlzYuXR.js → use-navigate-to-agent-CNix_it6.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-Bjw_RPxL.js → use-open-billing-url-DPgM3gyB.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BcOSmGyk.js → use-org-auth-client-CXOq5-xT.js} +1 -1
- package/dist/client/assets/{use-org-fs-B0bRoLwB.js → use-org-fs-B0NgsaSc.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CwdFEzac.js → use-org-repo-syncs-BhyLoBPq.js} +1 -1
- package/dist/client/assets/{use-org-sso-g2a2pIE8.js → use-org-sso-BFzZVp3h.js} +1 -1
- package/dist/client/assets/{use-organization-roles-uMK8pAbP.js → use-organization-roles-D-LRi4jO.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CtFTrm2u.js → use-organization-settings-HKWihJAK.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-QANI2F_X.js → use-panel-navigate-Cu-t56cK.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BL9-bchu.js → use-project-native-view-presence-Cmq-429L.js} +1 -1
- package/dist/client/assets/{use-project-scope-GW2bAOd3.js → use-project-scope-BDEPuYYY.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B8Spkimt.js → use-recent-apps-D3U1iwPp.js} +1 -1
- package/dist/client/assets/{use-releases-CENL9LRv.js → use-releases-Dg1E_bvA.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Dv4wwCLW.js → use-reports-diagnostic-GkDIg2KK.js} +1 -1
- package/dist/client/assets/{use-secrets-Cd2WLNIt.js → use-secrets-CB7UyNIm.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Du3AZ2Vl.js → use-section-preview-base-DrnoCy28.js} +1 -1
- package/dist/client/assets/{use-tags-C1sxDyEj.js → use-tags-CiZ_QgNY.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-G-CQmnL2.js → use-task-board-analytics-BJWr5bhn.js} +1 -1
- package/dist/client/assets/{use-task-board-events-De9AddjW.js → use-task-board-events-Bp21prI2.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CeT5Mp1U.js → use-task-board-item-prs-Cy2pSBMJ.js} +1 -1
- package/dist/client/assets/{use-task-board-items-COK4ecSa.js → use-task-board-items-DhjYJI1r.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CPknFXQ5.js → use-task-metadata-DUHZbnzQ.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-BGHxEouh.js → use-thread-analytics-C7OirB5K.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-YPzOMCqa.js → use-thread-outputs--mNS1DFq.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BueIgiQs.js +1 -0
- package/dist/client/assets/{useQueries-h3ila7j5.js → useQueries-xFbJ4JDx.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ce35mREH.js +1 -0
- package/dist/client/assets/{users-Ba42mTc_.js → users-NxATKm1J.js} +1 -1
- package/dist/client/assets/{utils-BgpN3-4K.js → utils-DP_W8krW.js} +1 -1
- package/dist/client/assets/{variant-calendar-CxqDsq2C.js → variant-calendar-BmeOu3H-.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-ACyN5ek2.js → variant-draft-pointer-Dn6wcjV_.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D94mGT5R.js → view-mode-toggle-BGWfhqW6.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Cb6kVn2b.js → virtual-mcp-DpPwyp9Y.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BOhZFR5D.js → watch-sse-pool-C6ByaeA4.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +350 -350
- package/package.json +1 -1
- package/dist/client/assets/agent-app--XQ7yxAe.js +0 -1
- package/dist/client/assets/agent-deck-CPju1YjA.js +0 -1
- package/dist/client/assets/agent-library-00tKaXxe.js +0 -1
- package/dist/client/assets/agent-library-file-DMDab69U.js +0 -1
- package/dist/client/assets/agent-settings-BssEI35S.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CysRsVKl.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BDP9pOnW.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DcLutf0Z.js +0 -1
- package/dist/client/assets/agent-view-9BfAaky_.js +0 -1
- package/dist/client/assets/api-keys-BCiaHfJA.js +0 -1
- package/dist/client/assets/cms-settings-editor-inOq0gRk.js +0 -1
- package/dist/client/assets/flat-project-DvxdpIWe.js +0 -1
- package/dist/client/assets/library-CKsdovQ_.js +0 -1
- package/dist/client/assets/project-reports-Cy5Gt48i.js +0 -1
- package/dist/client/assets/project-tasks-CIVtQnZP.js +0 -1
- package/dist/client/assets/record-editor-lYUQFNrv.js +0 -1
- package/dist/client/assets/reports-D4-jijW-.js +0 -1
- package/dist/client/assets/route-B2ge1BSh.js +0 -1
- package/dist/client/assets/site-editor-DGOWjiEA.js +0 -1
- package/dist/client/assets/taskboard-analytics-08asB0YJ.js +0 -1
- package/dist/client/assets/tasks-DTa8QbvB.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DkDVK9bu.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-k5nRBGbr.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as me,b as he,a2 as pe,d as je,u as Se,a as we,j as s,n as oe,F as Ne,o as Te,K as ee,r as te,a3 as ge,B as de,eW as ye,l as ve,b1 as ce,m as ze,h as Ee}from"./index-
|
|
1
|
+
import{c as me,b as he,a2 as pe,d as je,u as Se,a as we,j as s,n as oe,F as Ne,o as Te,K as ee,r as te,a3 as ge,B as de,eW as ye,l as ve,b1 as ce,m as ze,h as Ee}from"./index-BK190UFK.js";import{t as ke}from"./Building02-BxwY0KPK.js";import{s as Ce}from"./User01-N2GTLnCq.js";import{A as Me,b as Oe}from"./alert-YkXC9hu2.js";import{T as _e,a as De,c as Fe}from"./tooltip-BWcFijHU.js";import{C as Pe}from"./collection-tabs-ByAybjjo.js";import{E as Le}from"./empty-state-Bl8xm5Rf.js";import{u as $e}from"./use-clock-tick-CvejttUf.js";import{e as qe,u as Ae,s as Ie,w as Ke}from"./use-org-fs-B0NgsaSc.js";import"./index-BMw66_nD.js";import"./badge-BUPu9gG1.js";import"./useInfiniteQuery-BueIgiQs.js";import"./infiniteQueryObserver-De4bQwNq.js";const Re=16e3;function He(t,e){return t==="organization"?"MEMORY.md":`users/${e}/MEMORY.md`}function Qe(t){return t==="organization"?`# Organization memory
|
|
2
2
|
|
|
3
3
|
Durable facts shared with everyone in this organization. Keep this a concise, curated index — not a log.
|
|
4
4
|
`:`# User memory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,l as h,j as s}from"./index-
|
|
1
|
+
import{c as R,l as h,j as s}from"./index-BK190UFK.js";function E($){const e=R.c(34),{generating:l,className:N}=$;let t;e[0]!==N?(t=h("pointer-events-none rounded-xl border border-border bg-background shadow-lg",N),e[0]=N,e[1]=t):t=e[1];let p;e[2]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("circle",{cx:"16",cy:"16",r:"12",fill:"none",strokeWidth:"4",className:"stroke-muted"}),e[2]=p):p=e[2];const v=l?"75.4":"22",k=l?"stroke-muted":"stroke-success";let a;e[3]!==k?(a=h("transition-[stroke-dashoffset] duration-1000 ease-out",k),e[3]=k,e[4]=a):a=e[4];let i;e[5]!==v||e[6]!==a?(i=s.jsxs("svg",{viewBox:"0 0 32 32",className:"size-9 shrink-0 -rotate-90",children:[p,s.jsx("circle",{cx:"16",cy:"16",r:"12",fill:"none",strokeWidth:"4",strokeLinecap:"round",strokeDasharray:"75.4",strokeDashoffset:v,className:a})]}),e[5]=v,e[6]=a,e[7]=i):i=e[7];const w=l&&"animate-pulse";let c;e[8]!==w?(c=h("h-1.5 w-full rounded-full bg-muted",w),e[8]=w,e[9]=c):c=e[9];let r;e[10]!==c?(r=s.jsx("div",{className:c}),e[10]=c,e[11]=r):r=e[11];const y=l&&"animate-pulse";let n;e[12]!==y?(n=h("h-1.5 w-2/3 rounded-full bg-muted",y),e[12]=y,e[13]=n):n=e[13];let o;e[14]!==n?(o=s.jsx("div",{className:n}),e[14]=n,e[15]=o):o=e[15];let d;e[16]!==o||e[17]!==r?(d=s.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[r,o]}),e[16]=o,e[17]=r,e[18]=d):d=e[18];let f;e[19]!==d||e[20]!==i?(f=s.jsxs("div",{className:"flex items-center gap-2.5",children:[i,d]}),e[19]=d,e[20]=i,e[21]=f):f=e[21];let g;e[22]===Symbol.for("react.memo_cache_sentinel")?(g=[7,10,5,9,6,8],e[22]=g):g=e[22];let m;e[23]!==l?(m=s.jsx("div",{className:"flex h-10 items-end gap-1.5",children:g.map((_,b)=>s.jsx("div",{style:{height:`${_*4}px`},className:h("flex-1 rounded-sm",l?"animate-pulse bg-muted":b%2===0?"bg-success/70":"bg-success/30")},`bar-${b}`))}),e[23]=l,e[24]=m):m=e[24];let u;e[25]!==l?(u=s.jsx("div",{className:"flex flex-col gap-1.5",children:["w-full","w-5/6","w-full","w-2/3","w-full"].map((_,b)=>s.jsx("div",{className:h("h-1.5 rounded-full bg-muted",_,l&&"animate-pulse")},`line-${b}`))}),e[25]=l,e[26]=u):u=e[26];let x;e[27]!==f||e[28]!==m||e[29]!==u?(x=s.jsxs("div",{className:"flex h-full flex-col gap-3 p-4",children:[f,m,u]}),e[27]=f,e[28]=m,e[29]=u,e[30]=x):x=e[30];let j;return e[31]!==t||e[32]!==x?(j=s.jsx("div",{"aria-hidden":!0,className:t,children:x}),e[31]=t,e[32]=x,e[33]=j):j=e[33],j}export{E as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,r as c,fA as f,j as l,H as h,fB as g}from"./index-
|
|
1
|
+
import{c as p,r as c,fA as f,j as l,H as h,fB as g}from"./index-BK190UFK.js";function w(u){const e=p.c(5),{seed:i,children:s}=u;let t;e[0]!==i?(t=()=>{const o=new f({defaultOptions:{queries:{staleTime:1/0,gcTime:1/0,retry:!1,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchInterval:!1}}});return i(o),o},e[0]=i,e[1]=t):t=e[1];const[n]=c.useState(t);let a;return e[2]!==s||e[3]!==n?(a=l.jsx("div",{"aria-hidden":"true",inert:!0,className:"pointer-events-none absolute inset-0 select-none overflow-hidden",children:l.jsx(h,{fallback:null,children:l.jsx(c.Suspense,{fallback:null,children:l.jsx(g,{client:n,children:s})})})}),e[2]=s,e[3]=n,e[4]=a):a=e[4],a}const d=new Date().toISOString();function r(u,e,i,s,t,n){return{harnessId:"claude-code",id:u,organizationId:"preview",title:e,description:null,repositoryId:null,virtualMcpId:null,sprintId:null,status:i,priority:t,type:s,assigneeId:null,assignedBy:null,repo:null,dueDate:null,sortOrder:n,keySeq:n,externalUrl:null,previewRoutes:[],source:null,retryAttempts:0,reviewCycleStartedAt:null,threads:[],tags:[],reviewVerdicts:[],statusSince:null,createdBy:"preview",createdAt:d,updatedBy:"preview",updatedAt:d}}function y(){return{items:[r("p1","Fix checkout shipping estimate","triage","bug","high",1),r("p2","Add size guide to product page","triage","feature","medium",2),r("p3","Compress hero images","triage","chore","low",3),r("p4","Rewrite category descriptions","in_progress","feature","medium",4),r("p5","Audit broken redirects","in_progress","chore","high",5),r("p6","New arrivals landing page","in_review","feature","high",6),r("p7","Speed up search results","qa","chore","medium",7),r("p8","Black Friday banner","done","feature","urgent",8)],repos:[],columns:[]}}export{w as P,y as m};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as m,j as c,h as I,c as k,aZ as v}from"./index-
|
|
1
|
+
import{r as m,j as c,h as I,c as k,aZ as v}from"./index-BK190UFK.js";import{l as S,c as L,F as $}from"./editor-B4jue8QA.js";import{d as K}from"./delay-CnY5UFtP.js";L();async function D(e){const t=e.getModel();if(!t)throw new Error("[Monaco] No model found in editor");const n=t.getValue(),i=n.replace(/export default (async )?function/,"export default $1function __default")+`
|
|
2
2
|
type __ExpandRecursively<T> = T extends (...args: infer A) => infer R
|
|
3
3
|
? (...args: __ExpandRecursively<A>) => __ExpandRecursively<R>
|
|
4
4
|
: T extends object
|
package/dist/client/assets/{monitoring-stats-row-CLjBYZbH.js → monitoring-stats-row-CmLdoUBM.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as lt,l as J,j as l}from"./index-
|
|
1
|
+
import{c as lt,l as J,j as l}from"./index-BK190UFK.js";import{C as Q,d as Z}from"./chart-BDcb54AI.js";import{C as tt,Y as et,A as mt,a as dt}from"./AreaChart-DmYmrPlt.js";import{X as at}from"./XAxis-BwUVK1FQ.js";import{C as ut}from"./tooltipContext-CNWwS6Ia.js";import{a as ht,B as pt}from"./BarChart-Cm_MRilF.js";const it=60*1e3,P=60*it,xt=24*P,st=25*P;function q(s,t){if(s.length===0)return 0;const r=[...s].sort((f,c)=>f-c),e=Math.max(0,Math.min(r.length-1,Math.ceil(t*r.length)-1));return r[e]??0}function gt(s,t){return t<=st?s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):s.toLocaleDateString([],{month:"short",day:"numeric"})}function yt(s,t){const r=t-s;return r<=P?Math.max(1,Math.min(60,Math.ceil(r/it))):r<=st?Math.max(1,Math.min(25,Math.ceil(r/P))):Math.max(1,Math.min(31,Math.ceil(r/xt)))}function kt(s,t,r,e){const f=t.getTime(),c=r.getTime(),h=Math.max(1,c-f),n=yt(f,c),g=Math.max(1,Math.floor(h/n)),a=[];for(let o=0;o<n;o++){const i=new Date(f+o*g);a.push({t:i.toISOString(),ts:i.getTime(),label:gt(i,h),calls:0,errors:0,durations:[]})}for(const o of s){const i=new Date(o.timestamp).getTime(),m=Math.floor((i-f)/g),x=Math.max(0,Math.min(n-1,m)),d=a[x];d&&(d.calls+=1,o.isError&&(d.errors+=1),Number.isFinite(o.durationMs)&&d.durations.push(o.durationMs))}return a.map(o=>({t:o.t,ts:o.ts,label:o.label,calls:o.calls,errors:o.errors,errorRate:o.calls>0?o.errors/o.calls*100:0,avg:Math.round(o.durations.length>0?o.durations.reduce((i,m)=>i+m,0)/o.durations.length:0),p50:Math.round(q(o.durations,.5)),p95:Math.round(q(o.durations,.95))}))}function Ct(s,t,r,e,f){const c=e??s.length,h=f??s.filter(i=>i.isError).length,n=s.map(i=>i.durationMs),g=n.length>0?n.reduce((i,m)=>i+m,0)/n.length:0,a=q(n,.95),o=kt(s,t.startDate,t.endDate);return{totalCalls:c,totalErrors:h,avgDurationMs:g,p95DurationMs:a,data:o}}function ot(s){return s>=1e3?`${(s/1e3).toFixed(1)}k`:String(s)}function rt(s){const t=lt.c(19),{active:r,payload:e,dataKey:f,colorVar:c}=s;if(!r||!e?.length)return null;const h=e[0],n=h?.payload?.t??"";let g;t[0]!==h?.payload?.label||t[1]!==n?(g=n?new Date(n).toLocaleString([],{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):h?.payload?.label??"",t[0]=h?.payload?.label,t[1]=n,t[2]=g):g=t[2];const a=g,o=h?.value,i=typeof o=="number"?o:0,m=f==="avg"||f==="p50"||f==="p95",x=f==="costUsd";let d;t[3]!==x||t[4]!==m||t[5]!==i?(d=x?`$${i.toFixed(i<1?4:2)}`:m?i>=1e4?`${(i/1e3).toFixed(1)}s`:`${Math.round(i)}ms`:i.toLocaleString(),t[3]=x,t[4]=m,t[5]=i,t[6]=d):d=t[6];const S=d;let y;t[7]!==a?(y=l.jsx("div",{className:"text-[11px] text-muted-foreground mb-1",children:a}),t[7]=a,t[8]=y):y=t[8];let k;t[9]!==c?(k=l.jsx("div",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:c}}),t[9]=c,t[10]=k):k=t[10];let b;t[11]!==S?(b=l.jsx("span",{className:"text-xs font-medium tabular-nums",children:S}),t[11]=S,t[12]=b):b=t[12];let p;t[13]!==k||t[14]!==b?(p=l.jsxs("div",{className:"flex items-center gap-1.5",children:[k,b]}),t[13]=k,t[14]=b,t[15]=p):p=t[15];let j;return t[16]!==y||t[17]!==p?(j=l.jsxs("div",{className:"rounded-lg border bg-background px-3 py-2 shadow-md",children:[y,p]}),t[16]=y,t[17]=p,t[18]=j):j=t[18],j}function Lt(s){const t=lt.c(85),{data:r,dataKey:e,colorNum:f,chartHeight:c,variant:h,ariaLabel:n}=s,g=h===void 0?"bar":h,a=`var(--chart-${f})`,o=`kpi-gradient-${e}-${f}`,i=Math.max(...r.map(u=>u[e]??0),0);if(g==="area"){let u;t[0]!==c?(u=J(c,"w-full"),t[0]=c,t[1]=u):u=t[1];let M;t[2]!==a||t[3]!==e?(M={label:e,color:a},t[2]=a,t[3]=e,t[4]=M):M=t[4];let v;t[5]!==e||t[6]!==M?(v={[e]:M},t[5]=e,t[6]=M,t[7]=v):v=t[7];let I;t[8]===Symbol.for("react.memo_cache_sentinel")?(I={left:0,right:-12,top:8,bottom:8},t[8]=I):I=t[8];let $,O;t[9]!==a?($=l.jsx("stop",{offset:"0%",stopColor:a,stopOpacity:.2}),O=l.jsx("stop",{offset:"100%",stopColor:a,stopOpacity:0}),t[9]=a,t[10]=$,t[11]=O):($=t[10],O=t[11]);let w;t[12]!==o||t[13]!==$||t[14]!==O?(w=l.jsx("defs",{children:l.jsxs("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1",children:[$,O]})}),t[12]=o,t[13]=$,t[14]=O,t[15]=w):w=t[15];let R;t[16]===Symbol.for("react.memo_cache_sentinel")?(R=l.jsx(tt,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),t[16]=R):R=t[16];let V;t[17]===Symbol.for("react.memo_cache_sentinel")?(V=l.jsx(at,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)",opacity:.7},interval:"preserveStartEnd",tickMargin:8}),t[17]=V):V=t[17];let U;t[18]===Symbol.for("react.memo_cache_sentinel")?(U={fontSize:11,fill:"var(--muted-foreground)",opacity:.7},t[18]=U):U=t[18];const W=i>0?"auto":10;let E;t[19]!==W?(E=l.jsx(et,{orientation:"right",axisLine:!1,tickLine:!1,tick:U,tickFormatter:ot,width:40,domain:[0,W],tickCount:5}),t[19]=W,t[20]=E):E=t[20];let Y;t[21]===Symbol.for("react.memo_cache_sentinel")?(Y={stroke:"var(--border)",strokeDasharray:"4 4"},t[21]=Y):Y=t[21];let T;t[22]!==a||t[23]!==e?(T=l.jsx(Q,{cursor:Y,content:nt=>{const{active:ct,payload:ft}=nt;return l.jsx(rt,{active:ct,payload:ft,dataKey:e,colorVar:a})}}),t[22]=a,t[23]=e,t[24]=T):T=t[24];const X=`url(#${o})`;let z;t[25]!==a?(z={r:4,fill:a,stroke:"var(--background)",strokeWidth:2},t[25]=a,t[26]=z):z=t[26];let A;t[27]!==a||t[28]!==e||t[29]!==X||t[30]!==z?(A=l.jsx(mt,{type:"linear",dataKey:e,stroke:a,strokeWidth:2,fill:X,animationDuration:300,dot:!1,activeDot:z}),t[27]=a,t[28]=e,t[29]=X,t[30]=z,t[31]=A):A=t[31];let B;t[32]!==r||t[33]!==E||t[34]!==T||t[35]!==A||t[36]!==w?(B=l.jsxs(dt,{data:r,margin:I,children:[w,R,V,E,T,A]}),t[32]=r,t[33]=E,t[34]=T,t[35]=A,t[36]=w,t[37]=B):B=t[37];let H;return t[38]!==n||t[39]!==B||t[40]!==u||t[41]!==v?(H=l.jsx(Z,{role:"img","aria-label":n,className:u,config:v,children:B}),t[38]=n,t[39]=B,t[40]=u,t[41]=v,t[42]=H):H=t[42],H}let m;t[43]!==c?(m=J(c,"w-full"),t[43]=c,t[44]=m):m=t[44];let x;t[45]!==a||t[46]!==e?(x={label:e,color:a},t[45]=a,t[46]=e,t[47]=x):x=t[47];let d;t[48]!==e||t[49]!==x?(d={[e]:x},t[48]=e,t[49]=x,t[50]=d):d=t[50];let S,y;t[51]===Symbol.for("react.memo_cache_sentinel")?(S={left:0,right:-12,top:8,bottom:8},y=l.jsx(tt,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),t[51]=S,t[52]=y):(S=t[51],y=t[52]);let k;t[53]===Symbol.for("react.memo_cache_sentinel")?(k={fontSize:11,fill:"var(--muted-foreground)",opacity:.7},t[53]=k):k=t[53];const b=r.length<=6?0:Math.floor(r.length/6);let p;t[54]!==b?(p=l.jsx(at,{dataKey:"label",axisLine:!1,tickLine:!1,tick:k,interval:b,tickMargin:8}),t[54]=b,t[55]=p):p=t[55];let j;t[56]===Symbol.for("react.memo_cache_sentinel")?(j={fontSize:11,fill:"var(--muted-foreground)",opacity:.7},t[56]=j):j=t[56];const G=i>0?"auto":10;let _;t[57]!==G?(_=l.jsx(et,{orientation:"right",axisLine:!1,tickLine:!1,tick:j,tickFormatter:ot,width:40,domain:[0,G],tickCount:5}),t[57]=G,t[58]=_):_=t[58];let K;t[59]===Symbol.for("react.memo_cache_sentinel")?(K={fill:"var(--muted)",opacity:.3},t[59]=K):K=t[59];let C;t[60]!==a||t[61]!==e?(C=l.jsx(Q,{cursor:K,content:u=>{const{active:M,payload:v}=u;return l.jsx(rt,{active:M,payload:v,dataKey:e,colorVar:a})}}),t[60]=a,t[61]=e,t[62]=C):C=t[62];let L;if(t[63]!==a||t[64]!==r||t[65]!==e){let u;t[67]!==a||t[68]!==e?(u=(M,v)=>l.jsx(ut,{fill:(M[e]??0)===0?"var(--muted-foreground)":a,fillOpacity:(M[e]??0)===0?.15:.85},`cell-${v}`),t[67]=a,t[68]=e,t[69]=u):u=t[69],L=r.map(u),t[63]=a,t[64]=r,t[65]=e,t[66]=L}else L=t[66];let D;t[70]!==a||t[71]!==e||t[72]!==L?(D=l.jsx(ht,{dataKey:e,fill:a,radius:0,minPointSize:1,children:L}),t[70]=a,t[71]=e,t[72]=L,t[73]=D):D=t[73];let N;t[74]!==r||t[75]!==_||t[76]!==C||t[77]!==D||t[78]!==p?(N=l.jsxs(pt,{data:r,margin:S,children:[y,p,_,C,D]}),t[74]=r,t[75]=_,t[76]=C,t[77]=D,t[78]=p,t[79]=N):N=t[79];let F;return t[80]!==n||t[81]!==N||t[82]!==m||t[83]!==d?(F=l.jsx(Z,{role:"img","aria-label":n,className:m,config:d,children:N}),t[80]=n,t[81]=N,t[82]=m,t[83]=d,t[84]=F):F=t[84],F}export{Lt as K,Ct as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as fe,r as Z,l as he,j as t,B as pe}from"./index-
|
|
1
|
+
import{c as fe,r as Z,l as he,j as t,B as pe}from"./index-BK190UFK.js";import{B as re}from"./badge-BUPu9gG1.js";import{C as ce}from"./checkbox-Dej0a_MZ.js";import{t as de}from"./ChevronUp-CLw_9Qso.js";import{e as xe,C as ge,b as me,c as ve,a as je,d as Ce}from"./command-DD6ok1pX.js";import{a as be,b as Ne,P as ye}from"./popover-B4k9nGiU.js";const we=[];function Ae(o){const e=fe.c(72),{options:n,onValueChange:i,defaultValue:ee,placeholder:te,variant:se,animation:le,maxCount:ae,modalPopover:ne,asChild:ie,className:J,disabled:oe,onSearchChange:P}=o,d=ee===void 0?we:ee,Y=te===void 0?"Select items":te,V=se===void 0?"default":se,_=le===void 0?0:le,k=ae===void 0?3:ae,F=ne===void 0?!1:ne,G=ie===void 0?!1:ie,L=oe===void 0?!1:oe,[s,S]=Z.useState(d),[q,E]=Z.useState(!1);let O,B;e[0]!==d||e[1]!==s?(B=()=>{JSON.stringify(s)!==JSON.stringify(d)&&S(d)},O=[d,s],e[0]=d,e[1]=s,e[2]=O,e[3]=B):(O=e[2],B=e[3]),Z.useEffect(B,O);let D;e[4]!==i||e[5]!==s?(D=l=>{if(l.key==="Enter")E(!0);else if(l.key==="Backspace"&&!l.currentTarget.value){const a=[...s];a.pop(),S(a),i(a)}},e[4]=i,e[5]=s,e[6]=D):D=e[6];const H=D;let I;e[7]!==i||e[8]!==s?(I=l=>{const a=s.includes(l.value)?s.filter(w=>w!==l.value):[...s,l.value];S(a),i(a)},e[7]=i,e[8]=s,e[9]=I):I=e[9];const c=I;let A;e[10]!==i?(A=()=>{S([]),i([])},e[10]=i,e[11]=A):A=e[11];const Q=A;let R;e[12]===Symbol.for("react.memo_cache_sentinel")?(R=()=>{E(Ve)},e[12]=R):R=e[12];const ue=R;let T;e[13]!==Q||e[14]!==i||e[15]!==n||e[16]!==s.length?(T=()=>{if(s.length===n.length)Q();else{const l=n.map(Pe);S(l),i(l)}},e[13]=Q,e[14]=i,e[15]=n,e[16]=s.length,e[17]=T):T=e[17];const r=T;let m;e[18]!==G?(m=G?{}:{variant:"outline"},e[18]=G,e[19]=m):m=e[19];let u;e[20]!==J?(u=he("border-input data-[placeholder]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-full max-w-xs items-center justify-between gap-2 border bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[2px] disabled:cursor-not-allowed disabled:opacity-50 h-10 min-h-10",J),e[20]=J,e[21]=u):u=e[21];let f;e[22]!==_||e[23]!==k||e[24]!==n||e[25]!==Y||e[26]!==s||e[27]!==V?(f=s.length>0?t.jsxs("div",{className:"flex items-center justify-between w-full min-w-0",children:[t.jsxs("div",{className:"flex items-center gap-1 min-w-0 flex-1",children:[s.slice(0,k).map(l=>{const a=n.find(X=>X.value===l),w=a?.icon;return t.jsxs(re,{variant:V==="default"?"default":"secondary",className:"max-w-24",style:{animationDuration:`${_}s`},children:[w&&t.jsx(w,{className:"h-3 w-3 shrink-0"}),t.jsx("span",{className:"truncate",children:a?.label})]},l)}),s.length>k&&t.jsxs(re,{variant:V==="default"?"default":"secondary",className:"flex-shrink-0",style:{animationDuration:`${_}s`},children:["+",s.length-k]})]}),t.jsx("div",{className:"flex items-center shrink-0 ml-2",children:t.jsx(de,{size:20,className:"shrink-0 opacity-50"})})]}):t.jsxs("div",{className:"flex items-center justify-between w-full",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:Y}),t.jsx(de,{size:20,className:"shrink-0 opacity-50"})]}),e[22]=_,e[23]=k,e[24]=n,e[25]=Y,e[26]=s,e[27]=V,e[28]=f):f=e[28];let h;e[29]!==L||e[30]!==m||e[31]!==u||e[32]!==f?(h=t.jsx(be,{asChild:!0,children:t.jsx(pe,{ref:null,...m,onClick:ue,className:u,disabled:L,children:f})}),e[29]=L,e[30]=m,e[31]=u,e[32]=f,e[33]=h):h=e[33];let K;e[34]===Symbol.for("react.memo_cache_sentinel")?(K=()=>E(!1),e[34]=K):K=e[34];const U=!P;let p;e[35]!==H||e[36]!==P?(p=t.jsx(xe,{placeholder:"Search...",onKeyDown:H,onValueChange:P,className:"rounded-t-xl"}),e[35]=H,e[36]=P,e[37]=p):p=e[37];let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(ge,{children:"No results found."}),e[38]=M):M=e[38];let x;e[39]!==r?(x=()=>{r()},e[39]=r,e[40]=x):x=e[40];let g;e[41]!==r?(g=l=>{l.stopPropagation(),r()},e[41]=r,e[42]=g):g=e[42];const W=s.length===n.length&&n.length>0;let v;e[43]!==W||e[44]!==r?(v=t.jsx(ce,{checked:W,onCheckedChange:r,className:"mr-2 [&_svg]:!text-primary-foreground",onClick:Se}),e[43]=W,e[44]=r,e[45]=v):v=e[45];let $;e[46]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx("span",{children:"(Select All)"}),e[46]=$):$=e[46];let j;e[47]!==g||e[48]!==v?(j=t.jsxs("div",{className:"flex items-center w-full",onClick:g,children:[v,$]}),e[47]=g,e[48]=v,e[49]=j):j=e[49];let C;e[50]!==x||e[51]!==j?(C=t.jsx(me,{onSelect:x,className:"cursor-pointer",children:j},"all"),e[50]=x,e[51]=j,e[52]=C):C=e[52];let b;if(e[53]!==n||e[54]!==s||e[55]!==c){let l;e[57]!==s||e[58]!==c?(l=a=>{const w=s.includes(a.value);return t.jsx(me,{onSelect:()=>{c(a)},className:"cursor-pointer",children:t.jsxs("div",{className:"flex items-center w-full",onClick:X=>{X.stopPropagation(),c(a)},children:[t.jsx(ce,{checked:w,onCheckedChange:()=>{c(a)},className:"mr-2 [&_svg]:!text-primary-foreground",onClick:ke}),a.icon&&t.jsx(a.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),t.jsx("span",{children:a.label})]})},a.value)},e[57]=s,e[58]=c,e[59]=l):l=e[59],b=n.map(l),e[53]=n,e[54]=s,e[55]=c,e[56]=b}else b=e[56];let N;e[60]!==C||e[61]!==b?(N=t.jsxs(ve,{className:"rounded-b-xl",children:[M,t.jsxs(je,{children:[C,b]})]}),e[60]=C,e[61]=b,e[62]=N):N=e[62];let y;e[63]!==U||e[64]!==p||e[65]!==N?(y=t.jsx(Ne,{className:"w-auto p-0 max-w-xs rounded-xl",align:"start",onEscapeKeyDown:K,children:t.jsxs(Ce,{shouldFilter:U,className:"rounded-xl",children:[p,N]})}),e[63]=U,e[64]=p,e[65]=N,e[66]=y):y=e[66];let z;return e[67]!==q||e[68]!==F||e[69]!==h||e[70]!==y?(z=t.jsxs(ye,{open:q,onOpenChange:E,modal:F,children:[h,y]}),e[67]=q,e[68]=F,e[69]=h,e[70]=y,e[71]=z):z=e[71],z}function ke(o){return o.stopPropagation()}function Se(o){return o.stopPropagation()}function Pe(o){return o.value}function Ve(o){return!o}export{Ae as M};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as B,e as F,K as O,b as z,r as J,j as x,D as V,q as _,s as $,v as H,B as q,t as N}from"./index-
|
|
1
|
+
import{o as B,e as F,K as O,b as z,r as J,j as x,D as V,q as _,s as $,v as H,B as q,t as N}from"./index-BK190UFK.js";import{a as L}from"./input-COBaFE6j.js";import{M as Y,c as G,u as X,w as Z,a1 as I,j as M,X as ee,Y as te,$ as re,a0 as se,N as ne,_ as ae}from"./site-editor-toast-DUaxkDtw.js";import{t as ie}from"./sandbox-git-api-CRxdlhrN.js";import{u as oe}from"./chat-context-Ml4Gozft.js";import{b as ce}from"./sandbox-url-D3mC8qhT.js";import{a as ue}from"./utils-DP_W8krW.js";import{i as le}from"./CheckCircle-C6hOGQtb.js";import{a as fe}from"./Copy01-ERiooqLX.js";import{MonacoCodeEditor as pe}from"./monaco-editor-BuEapzg2.js";function We({orgSlug:s,virtualMcpId:e,branch:t}){const r=B(),a=oe()?.taskId??null,n=Y(e),i=L(e).runtime==="cms",{url:c}=G(e),o=X(e,t),l=o.kind==="protocol"?o:null,f=Z({orgSlug:s,virtualMcpId:e,branch:t}),y=async p=>{if(c)return{ok:!0,existed:!0};if(i){const u=await re({orgSlug:s,virtualMcpId:e,branch:t},{delete:[p]});return se(r,{orgSlug:s,virtualMcpId:e,branch:t},u),await r.invalidateQueries({queryKey:ie({orgSlug:s,virtualMcpId:e,branch:t,threadId:a})}),{ok:!0,existed:!0}}const w=ne(n,ue(p)),d=await fetch(ce({orgSlug:s,virtualMcpId:e,branch:t,threadId:a},"unlink"),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:w})});return d.ok?d.json():ae(d,"Delete")};return F({mutationKey:te(s,e,t),scope:ee(s,e,t),mutationFn:async({blockKey:p})=>l?(await I(r,l,{orgSlug:s,virtualMcpId:e,branch:t},f,{delete:[p]}),{ok:!0,existed:!0}):M({queryClient:r,orgSlug:s,virtualMcpId:e,branch:t,backend:o,cacheKey:f},{kind:"edit",write:()=>y(p)}),onMutate:async({blockKey:p})=>{const w=O.decofile(f);await r.cancelQueries({queryKey:w});const d=r.getQueryData(w),u=!!d&&p in d,E=d?.[p];return r.setQueryData(w,h=>{if(!h)return h;const{[p]:v,...m}=h;return m}),{queryKey:w,blockKey:p,hadKey:u,previousValue:E}},onError:(p,w,d)=>{d&&r.setQueryData(d.queryKey,u=>d.hadKey?{...u??{},[d.blockKey]:d.previousValue}:u)},onSuccess:()=>{r.invalidateQueries({queryKey:O.liveMeta(s,e,t)})}})}function Be({open:s,onOpenChange:e,pageKey:t,decofile:r,onSave:a}){const n=z(),i=r[t],c=i===void 0,o=c?"":JSON.stringify(i,null,2),[l,f]=J.useState(!1),[y,p]=J.useState(o),[w,d]=J.useState(!1),u=!a||c,E=y!==o,h=()=>{navigator.clipboard.writeText(y).then(()=>{f(!0),setTimeout(()=>f(!1),2e3)})},v=async m=>{if(!a||w)return;let D;try{D=JSON.parse(m)}catch{N.error(n("sectionsEditor.pageJsonDialog.invalidJsonError"));return}d(!0);try{await a(D),N.success(n("sectionsEditor.pageJsonDialog.saveSuccess")),e(!1)}catch(k){N.error(n("sectionsEditor.pageJsonDialog.saveError",{error:k instanceof Error?k.message:String(k)}))}finally{d(!1)}};return x.jsx(V,{open:s,onOpenChange:e,children:x.jsxs(_,{className:"flex h-[85vh] w-[95vw] flex-col gap-0 overflow-hidden p-0 sm:max-w-6xl",children:[x.jsxs($,{className:"shrink-0 px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[x.jsx(H,{className:"text-sm font-semibold",children:n("sectionsEditor.pageJsonDialog.title")}),x.jsxs("div",{className:"flex items-center gap-2 mr-8",children:[x.jsxs(q,{variant:"ghost",size:"sm",onClick:h,className:"h-7 gap-1.5 text-xs",children:[l?x.jsx(le,{size:12}):x.jsx(fe,{size:12}),n(l?"sectionsEditor.pageJsonDialog.copied":"sectionsEditor.pageJsonDialog.copy")]}),!u&&x.jsx(q,{size:"sm",onClick:()=>v(y),disabled:!E||w,className:"h-7 text-xs",children:n(w?"sectionsEditor.pageJsonDialog.saving":"sectionsEditor.pageJsonDialog.save")})]})]}),c?x.jsxs("div",{className:"p-4 text-xs font-mono text-foreground/60",children:["// ",n("sectionsEditor.pageJsonDialog.pageNotFound")]}):x.jsx("div",{className:"min-h-0 flex-1 py-2",children:x.jsx(pe,{code:o,language:"json",readOnly:u,height:"100%",onChange:m=>p(m??""),onSave:m=>{v(m)}})})]})})}var he=Object.prototype.toString,P=Array.isArray||function(e){return he.call(e)==="[object Array]"};function K(s){return typeof s=="function"}function de(s){return P(s)?"array":typeof s}function U(s){return s.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Q(s,e){return s!=null&&typeof s=="object"&&e in s}function ve(s,e){return s!=null&&typeof s!="object"&&s.hasOwnProperty&&s.hasOwnProperty(e)}var ye=RegExp.prototype.test;function ge(s,e){return ye.call(s,e)}var we=/\S/;function me(s){return!ge(we,s)}var Ee={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function xe(s){return String(s).replace(/[&<>"'`=\/]/g,function(t){return Ee[t]})}var ke=/\s*/,Ce=/\s+/,A=/\s*=/,be=/\s*\}/,De=/#|\^|\/|>|\{|&|=|!/;function je(s,e){if(!s)return[];var t=!1,r=[],a=[],n=[],i=!1,c=!1,o="",l=0;function f(){if(i&&!c)for(;n.length;)delete a[n.pop()];else n=[];i=!1,c=!1}var y,p,w;function d(b){if(typeof b=="string"&&(b=b.split(Ce,2)),!P(b)||b.length!==2)throw new Error("Invalid tags: "+b);y=new RegExp(U(b[0])+"\\s*"),p=new RegExp("\\s*"+U(b[1])),w=new RegExp("\\s*"+U("}"+b[1]))}d(e||C.tags);for(var u=new R(s),E,h,v,m,D,k;!u.eos();){if(E=u.pos,v=u.scanUntil(y),v)for(var T=0,W=v.length;T<W;++T)m=v.charAt(T),me(m)?(n.push(a.length),o+=m):(c=!0,t=!0,o+=" "),a.push(["text",m,E,E+1]),E+=1,m===`
|
|
2
2
|
`&&(f(),o="",l=0,t=!1);if(!u.scan(y))break;if(i=!0,h=u.scan(De)||"name",u.scan(ke),h==="="?(v=u.scanUntil(A),u.scan(A),u.scanUntil(p)):h==="{"?(v=u.scanUntil(w),u.scan(be),u.scanUntil(p),h="&"):v=u.scanUntil(p),!u.scan(p))throw new Error("Unclosed tag at "+u.pos);if(h==">"?D=[h,v,E,u.pos,o,l,t]:D=[h,v,E,u.pos],l++,a.push(D),h==="#"||h==="^")r.push(D);else if(h==="/"){if(k=r.pop(),!k)throw new Error('Unopened section "'+v+'" at '+E);if(k[1]!==v)throw new Error('Unclosed section "'+k[1]+'" at '+E)}else h==="name"||h==="{"||h==="&"?c=!0:h==="="&&d(v)}if(f(),k=r.pop(),k)throw new Error('Unclosed section "'+k[1]+'" at '+u.pos);return Se(Pe(a))}function Pe(s){for(var e=[],t,r,a=0,n=s.length;a<n;++a)t=s[a],t&&(t[0]==="text"&&r&&r[0]==="text"?(r[1]+=t[1],r[3]=t[3]):(e.push(t),r=t));return e}function Se(s){for(var e=[],t=e,r=[],a,n,i=0,c=s.length;i<c;++i)switch(a=s[i],a[0]){case"#":case"^":t.push(a),r.push(a),t=a[4]=[];break;case"/":n=r.pop(),n[5]=a[2],t=r.length>0?r[r.length-1][4]:e;break;default:t.push(a)}return e}function R(s){this.string=s,this.tail=s,this.pos=0}R.prototype.eos=function(){return this.tail===""};R.prototype.scan=function(e){var t=this.tail.match(e);if(!t||t.index!==0)return"";var r=t[0];return this.tail=this.tail.substring(r.length),this.pos+=r.length,r};R.prototype.scanUntil=function(e){var t=this.tail.search(e),r;switch(t){case-1:r=this.tail,this.tail="";break;case 0:r="";break;default:r=this.tail.substring(0,t),this.tail=this.tail.substring(t)}return this.pos+=r.length,r};function j(s,e){this.view=s,this.cache={".":this.view},this.parent=e}j.prototype.push=function(e){return new j(e,this)};j.prototype.lookup=function(e){var t=this.cache,r;if(t.hasOwnProperty(e))r=t[e];else{for(var a=this,n,i,c,o=!1;a;){if(e.indexOf(".")>0)for(n=a.view,i=e.split("."),c=0;n!=null&&c<i.length;)c===i.length-1&&(o=Q(n,i[c])||ve(n,i[c])),n=n[i[c++]];else n=a.view[e],o=Q(a.view,e);if(o){r=n;break}a=a.parent}t[e]=r}return K(r)&&(r=r.call(this.view)),r};function g(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}g.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()};g.prototype.parse=function(e,t){var r=this.templateCache,a=e+":"+(t||C.tags).join(":"),n=typeof r<"u",i=n?r.get(a):void 0;return i==null&&(i=je(e,t),n&&r.set(a,i)),i};g.prototype.render=function(e,t,r,a){var n=this.getConfigTags(a),i=this.parse(e,n),c=t instanceof j?t:new j(t,void 0);return this.renderTokens(i,c,r,e,a)};g.prototype.renderTokens=function(e,t,r,a,n){for(var i="",c,o,l,f=0,y=e.length;f<y;++f)l=void 0,c=e[f],o=c[0],o==="#"?l=this.renderSection(c,t,r,a,n):o==="^"?l=this.renderInverted(c,t,r,a,n):o===">"?l=this.renderPartial(c,t,r,n):o==="&"?l=this.unescapedValue(c,t):o==="name"?l=this.escapedValue(c,t,n):o==="text"&&(l=this.rawValue(c)),l!==void 0&&(i+=l);return i};g.prototype.renderSection=function(e,t,r,a,n){var i=this,c="",o=t.lookup(e[1]);function l(p){return i.render(p,t,r,n)}if(o){if(P(o))for(var f=0,y=o.length;f<y;++f)c+=this.renderTokens(e[4],t.push(o[f]),r,a,n);else if(typeof o=="object"||typeof o=="string"||typeof o=="number")c+=this.renderTokens(e[4],t.push(o),r,a,n);else if(K(o)){if(typeof a!="string")throw new Error("Cannot use higher-order sections without the original template");o=o.call(t.view,a.slice(e[3],e[5]),l),o!=null&&(c+=o)}else c+=this.renderTokens(e[4],t,r,a,n);return c}};g.prototype.renderInverted=function(e,t,r,a,n){var i=t.lookup(e[1]);if(!i||P(i)&&i.length===0)return this.renderTokens(e[4],t,r,a,n)};g.prototype.indentPartial=function(e,t,r){for(var a=t.replace(/[^ \t]/g,""),n=e.split(`
|
|
3
3
|
`),i=0;i<n.length;i++)n[i].length&&(i>0||!r)&&(n[i]=a+n[i]);return n.join(`
|
|
4
4
|
`)};g.prototype.renderPartial=function(e,t,r,a){if(r){var n=this.getConfigTags(a),i=K(r)?r(e[1]):r[e[1]];if(i!=null){var c=e[6],o=e[5],l=e[4],f=i;o==0&&l&&(f=this.indentPartial(i,l,c));var y=this.parse(f,n);return this.renderTokens(y,t,r,f,a)}}};g.prototype.unescapedValue=function(e,t){var r=t.lookup(e[1]);if(r!=null)return r};g.prototype.escapedValue=function(e,t,r){var a=this.getConfigEscape(r)||C.escape,n=t.lookup(e[1]);if(n!=null)return typeof n=="number"&&a===C.escape?String(n):a(n)};g.prototype.rawValue=function(e){return e[1]};g.prototype.getConfigTags=function(e){return P(e)?e:e&&typeof e=="object"?e.tags:void 0};g.prototype.getConfigEscape=function(e){if(e&&typeof e=="object"&&!P(e))return e.escape};var C={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(s){S.templateCache=s},get templateCache(){return S.templateCache}},S=new g;C.clearCache=function(){return S.clearCache()};C.parse=function(e,t){return S.parse(e,t)};C.render=function(e,t,r,a){if(typeof e!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+de(e)+'" was given as the first argument for mustache#render(template, view, partials)');return S.render(e,t,r,a)};C.escape=xe;C.Scanner=R;C.Context=j;C.Writer=g;export{Be as P,C as m,We as u};
|
package/dist/client/assets/{new-project-dialog-BmQvk0AN.js → new-project-dialog-Co9nzRWA.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as y,j as t,r as w,y as _,b as S,B as N,D as k,q as K,s as A,v as R,aM as E,I as T,l as V,t as $}from"./index-
|
|
1
|
+
import{c as y,j as t,r as w,y as _,b as S,B as N,D as k,q as K,s as A,v as R,aM as E,I as T,l as V,t as $}from"./index-BK190UFK.js";import{i as B}from"./ArrowLeft-BzveMFQj.js";import{s as F}from"./Plus-QrRV6-c4.js";import{L as H}from"./label-BunRmshY.js";import{R as L}from"./repository-import-picker-D9TcWtSt.js";import{u as O}from"./use-navigate-to-agent-CNix_it6.js";import{S as z}from"./thread-intent-Bs__gvfZ.js";import{f as Z}from"./repository-binding-De4YD-ur.js";const D={viewBox:"0 0 96 64",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},l={stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"};function q(a){const e=y.c(9),{className:n}=a;let r,o,s,c,i,u,h;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("path",{d:"M22 46V22",...l,opacity:.7}),o=t.jsx("circle",{cx:"22",cy:"18",r:"4",...l,opacity:.8}),s=t.jsx("circle",{cx:"22",cy:"50",r:"4",...l,opacity:.8}),c=t.jsx("path",{d:"M22 32h14a6 6 0 0 1 6 6v4",...l,opacity:.6}),i=t.jsx("circle",{cx:"42",cy:"46",r:"4",...l,opacity:.7}),u=t.jsx("path",{d:"M56 22h9l3 4h14a3 3 0 0 1 3 3v20a3 3 0 0 1-3 3H56a3 3 0 0 1-3-3V25a3 3 0 0 1 3-3Z",...l,opacity:.75}),h=t.jsx("path",{d:"M53 34h32",...l,opacity:.5}),e[0]=r,e[1]=o,e[2]=s,e[3]=c,e[4]=i,e[5]=u,e[6]=h):(r=e[0],o=e[1],s=e[2],c=e[3],i=e[4],u=e[5],h=e[6]);let d;return e[7]!==n?(d=t.jsxs("svg",{...D,className:n,children:[r,o,s,c,i,u,h]}),e[7]=n,e[8]=d):d=e[8],d}function I(a){const e=y.c(4),{className:n}=a;let r,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("path",{d:"M16 22a4 4 0 0 1 4-4h14l6 6h20a4 4 0 0 1 4 4v20a4 4 0 0 1-4 4H20a4 4 0 0 1-4-4V22Z",...l,opacity:.8}),o=t.jsx("path",{d:"M16 28h64",...l,opacity:.5}),e[0]=r,e[1]=o):(r=e[0],o=e[1]);let s;return e[2]!==n?(s=t.jsxs("svg",{...D,className:n,children:[r,o]}),e[2]=n,e[3]=s):s=e[3],s}function ie(a){const e=y.c(5),{className:n}=a;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("g",{opacity:.55,children:[t.jsx("rect",{x:"46",y:"16",width:"128",height:"88",rx:"8",...l}),t.jsx("path",{d:"M46 34h128",...l,opacity:.6}),t.jsx("circle",{cx:"56",cy:"25",r:"2",fill:"currentColor",opacity:.6}),t.jsx("circle",{cx:"64",cy:"25",r:"2",fill:"currentColor",opacity:.45}),t.jsx("circle",{cx:"72",cy:"25",r:"2",fill:"currentColor",opacity:.3}),t.jsx("rect",{x:"58",y:"44",width:"104",height:"24",rx:"4",...l,opacity:.5}),t.jsx("rect",{x:"58",y:"76",width:"30",height:"16",rx:"3",...l,opacity:.4}),t.jsx("rect",{x:"95",y:"76",width:"30",height:"16",rx:"3",...l,opacity:.3}),t.jsx("rect",{x:"132",y:"76",width:"30",height:"16",rx:"3",...l,opacity:.22})]}),e[0]=r):r=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsxs("g",{transform:"rotate(-8 44 92)",children:[t.jsx("rect",{x:"22",y:"52",width:"44",height:"76",rx:"8",...l,fill:"var(--color-background)"}),t.jsx("path",{d:"M37 60h14",...l,opacity:.5}),t.jsx("rect",{x:"29",y:"68",width:"30",height:"20",rx:"3",...l,opacity:.45}),t.jsx("path",{d:"M29 96h30M29 104h20",...l,opacity:.35}),t.jsx("rect",{x:"29",y:"112",width:"30",height:"8",rx:"4",...l,opacity:.5})]}),e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsxs("g",{transform:"rotate(10 168 104)",children:[t.jsx("path",{d:"M150 92h30a6 6 0 0 1 6 6v26a6 6 0 0 1-6 6h-30a6 6 0 0 1-6-6V98a6 6 0 0 1 6-6Z",...l,fill:"var(--color-background)"}),t.jsx("circle",{cx:"165",cy:"104",r:"3.5",...l}),t.jsx("path",{d:"M152 116h26M152 124h16",...l,opacity:.45})]}),e[2]=s):s=e[2];let c;return e[3]!==n?(c=t.jsxs("svg",{viewBox:"0 0 220 140",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,className:n,children:[r,o,s]}),e[3]=n,e[4]=c):c=e[4],c}const v=new z(!1);let M="unknown",P=null;function U(a,e){M=a,P=e?.onCreated??null,_("project_create_clicked",{source:a}),v.set(!0)}function le(){const a=y.c(2),e=w.useSyncExternalStore(v.subscribe,v.get);let n;return a[0]!==e?(n=[e,v.set],a[0]=e,a[1]=n):n=a[1],n}function C(a){const e=P;P=null,e?.(a)}function pe(){return M}const W={repository:{titleKey:"projects.new.path.repository",hintKey:"projects.new.path.repository.hint",art:q,plate:"bg-chart-5/10 group-hover:bg-chart-5/16",art_:"text-chart-5"},folder:{titleKey:"projects.new.path.folder",hintKey:"projects.new.path.folder.hint",art:I,plate:"bg-chart-1/10 group-hover:bg-chart-1/16",art_:"text-chart-1"}},G=["repository","folder"];function J(a){const e=y.c(25),{path:n,onSelect:r}=a,o=S(),s=W[n],c=s.art;let i;e[0]!==s.art_||e[1]!==s.plate?(i=V("flex h-28 items-center justify-center rounded-lg transition-colors",s.plate,s.art_),e[0]=s.art_,e[1]=s.plate,e[2]=i):i=e[2];let u;e[3]!==c?(u=t.jsx(c,{className:"h-20"}),e[3]=c,e[4]=u):u=e[4];let h;e[5]!==i||e[6]!==u?(h=t.jsx("span",{className:i,children:u}),e[5]=i,e[6]=u,e[7]=h):h=e[7];let d;e[8]!==s.titleKey||e[9]!==o?(d=o(s.titleKey),e[8]=s.titleKey,e[9]=o,e[10]=d):d=e[10];let x;e[11]!==d?(x=t.jsx("span",{className:"text-sm font-medium text-foreground",children:d}),e[11]=d,e[12]=x):x=e[12];let f;e[13]!==s.hintKey||e[14]!==o?(f=o(s.hintKey),e[13]=s.hintKey,e[14]=o,e[15]=f):f=e[15];let j;e[16]!==f?(j=t.jsx("span",{className:"text-xs text-muted-foreground",children:f}),e[16]=f,e[17]=j):j=e[17];let m;e[18]!==x||e[19]!==j?(m=t.jsxs("span",{className:"flex flex-col gap-0.5 px-1 pb-1",children:[x,j]}),e[18]=x,e[19]=j,e[20]=m):m=e[20];let g;return e[21]!==r||e[22]!==h||e[23]!==m?(g=t.jsxs("button",{type:"button",onClick:r,className:"group flex flex-col gap-3 rounded-xl bg-card p-3 text-left card-shadow outline-none transition-[transform,background-color] duration-200 hover:-translate-y-0.5 hover:bg-accent/40 focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/20 motion-reduce:transition-none motion-reduce:hover:translate-y-0",children:[h,m]}),e[21]=r,e[22]=h,e[23]=m,e[24]=g):g=e[24],g}function Q(a){const e=y.c(8),{label:n,children:r,hint:o}=a;let s;e[0]!==n?(s=t.jsx(H,{children:n}),e[0]=n,e[1]=s):s=e[1];let c;e[2]!==o?(c=o&&t.jsx("p",{className:"text-xs text-muted-foreground",children:o}),e[2]=o,e[3]=c):c=e[3];let i;return e[4]!==r||e[5]!==s||e[6]!==c?(i=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[s,r,c]}),e[4]=r,e[5]=s,e[6]=c,e[7]=i):i=e[7],i}function he({open:a,onOpenChange:e,source:n="org_home"}){const r=S(),o=Z(),s=O(),[c,i]=w.useState(null),[u,h]=w.useState(""),[d,x]=w.useState(null),f=w.useRef(null),j=()=>{i(null),h(""),x(null)},m=()=>{e(!1),j()};if(c==="repository")return t.jsx(L,{open:!0,onOpenChange:p=>{p||m()},onImportComplete:({virtualMcpId:p})=>{p&&(C(p),s(p)),m()}});const g=async()=>{if(o.create.isPending)return;const p=u.trim();if(!p){x(r("projects.new.nameRequired"));return}try{const b=(await o.create.mutateAsync({title:p,description:null,status:"active",pinned:!1,connections:[],metadata:{instructions:null,project:{storeUrl:null},ui:{pinnedViews:null,layout:{defaultMainView:{type:"overview"},chatDefaultOpen:!0}}}}))?.id;_("project_created",{source:n,path:c}),m(),b&&(C(b),s(b)),$.success(r("projects.new.created",{title:p}))}catch{x(r("projects.new.failed"))}};return t.jsx(k,{open:a,onOpenChange:p=>{p?e(!0):m()},children:t.jsxs(K,{className:"sm:max-w-3xl",ref:f,onOpenAutoFocus:p=>{p.preventDefault(),f.current?.focus()},children:[t.jsxs(A,{children:[t.jsx(R,{children:r("projects.new.title")}),t.jsx(E,{children:r(c?"projects.new.step.folder.title":"projects.new.subtitle")})]}),c===null?t.jsx("div",{className:"grid grid-cols-1 gap-3 animate-in fade-in-0 duration-200 sm:grid-cols-2 motion-reduce:animate-none",children:G.map(p=>t.jsx(J,{path:p,onSelect:()=>{_("project_create_path_selected",{source:n,path:p}),i(p)}},p))}):t.jsxs("form",{className:"flex flex-col gap-4 animate-in fade-in-0 slide-in-from-right-2 duration-200 motion-reduce:animate-none",onSubmit:p=>{p.preventDefault(),x(null),g()},children:[t.jsx(Q,{label:r("projects.new.nameLabel"),children:t.jsx(T,{autoFocus:!0,value:u,onChange:p=>h(p.target.value),placeholder:r("projects.new.namePlaceholder")})}),d&&t.jsx("p",{className:"text-sm text-destructive",children:d}),t.jsxs("div",{className:"flex items-center justify-between gap-2 pt-1",children:[t.jsxs(N,{type:"button",variant:"ghost",onClick:()=>j(),children:[t.jsx(B,{size:14}),r("projects.new.back")]}),t.jsx(N,{type:"submit",disabled:o.create.isPending,children:o.create.isPending?r("projects.new.creating"):r("projects.new.create")})]})]})]})})}function de(a){const e=y.c(11),{source:n,variant:r,size:o,label:s}=a,c=r===void 0?"default":r,i=o===void 0?"sm":o,u=S();let h;e[0]!==n?(h=()=>U(n),e[0]=n,e[1]=h):h=e[1];let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(F,{size:14}),e[2]=d):d=e[2];let x;e[3]!==s||e[4]!==u?(x=s??u("projects.home.newProject"),e[3]=s,e[4]=u,e[5]=x):x=e[5];let f;return e[6]!==i||e[7]!==h||e[8]!==x||e[9]!==c?(f=t.jsxs(N,{size:i,variant:c,onClick:h,children:[d,x]}),e[6]=i,e[7]=h,e[8]=x,e[9]=c,e[10]=f):f=e[10],f}export{ie as E,de as N,he as a,pe as n,U as o,le as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,r as c,j as e,h as n}from"./index-
|
|
1
|
+
import{b as o,r as c,j as e,h as n}from"./index-BK190UFK.js";import{h as u}from"./mcp-oauth-BD-0h7ak.js";import"./auth-BWnr0_lm.js";function f(){const t=o(),[a,l]=c.useState(null),[r,i]=c.useState(!1);return c.useEffect(()=>{(async()=>{try{const s=await u();if(!s.success){l(s.error||t("routes.oauthCallback.authenticationFailed")),setTimeout(()=>{window.close()},3e3);return}i(!0),setTimeout(()=>{window.close()},1500)}catch(s){l(s instanceof Error?s.message:String(s)),setTimeout(()=>{window.close()},3e3)}})()},[]),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 bg-background",children:e.jsxs("div",{className:"w-full max-w-md flex flex-col items-center justify-center gap-8",children:[r&&e.jsx("img",{src:"/empty-state-success.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),!r&&!a&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(n,{className:"size-8 text-primary"})}),a&&e.jsx("img",{src:"/empty-state-error.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[e.jsx("h2",{className:"text-lg font-medium text-foreground",children:t(a?"routes.oauthCallback.authenticationFailedTitle":r?"routes.oauthCallback.authenticationSuccessfulTitle":"routes.oauthCallback.authenticationInProgressTitle")}),e.jsx("div",{className:"text-sm text-muted-foreground",children:a?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-2",children:t("routes.oauthCallback.errorOccurred")}),e.jsx("p",{className:"text-destructive",children:a}),e.jsxs("p",{className:"mt-2",children:[e.jsx("br",{}),t("routes.oauthCallback.windowClosingAutomatically")]})]}):r?e.jsxs("p",{children:[t("routes.oauthCallback.authenticationComplete"),e.jsx("br",{}),t("routes.oauthCallback.windowClosingAutomatically")]}):e.jsx("p",{children:t("routes.oauthCallback.processingAuthentication")})})]})]})})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as d,r as a,j as e,h}from"./index-
|
|
1
|
+
import{b as d,r as a,j as e,h}from"./index-BK190UFK.js";function x(){const r=d(),[s,o]=a.useState("loading"),[l,u]=a.useState(null),c=a.useRef(!1);return c.current||(c.current=!0,queueMicrotask(()=>{try{const t=new URLSearchParams(window.location.search),i=t.get("code"),n=t.get("state");if(!i||!n)throw new Error("Missing code or state parameter");if(window.opener)window.opener.postMessage({type:"AI_PROVIDER_OAUTH_CALLBACK",code:i,stateToken:n},window.location.origin),o("success"),setTimeout(()=>window.close(),1500);else throw new Error("No opener window found")}catch(t){console.error("OAuth callback error:",t),u(t instanceof Error?t.message:String(t)),o("error"),setTimeout(()=>window.close(),3e3)}})),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 bg-background",children:e.jsxs("div",{className:"w-full max-w-md flex flex-col items-center justify-center gap-8",children:[s==="success"&&e.jsx("img",{src:"/empty-state-success.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),s==="loading"&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(h,{className:"size-8 text-primary"})}),s==="error"&&e.jsx("img",{src:"/empty-state-error.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[e.jsx("h2",{className:"text-lg font-medium text-foreground",children:r(s==="error"?"routes.oauthCallbackAiProvider.authFailed":s==="success"?"routes.oauthCallbackAiProvider.authSuccess":"routes.oauthCallbackAiProvider.authInProgress")}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s==="error"?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-2",children:r("routes.oauthCallbackAiProvider.errorOccurred")}),e.jsx("p",{className:"text-destructive",children:l}),e.jsx("p",{className:"mt-2",children:r("routes.oauthCallbackAiProvider.windowCloseAuto")})]}):s==="success"?e.jsx("p",{children:r("routes.oauthCallbackAiProvider.authCompleteCloseAuto")}):e.jsx("p",{children:r("routes.oauthCallbackAiProvider.processingAuth")})})]})]})})}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ie,j as t,a as ye,h as ce,b as de,m as Ce,K as Oe,r as P,B as Ne,e as pe,x as ze,I as Le,l as ae,t as he}from"./index-CTjWv7p_.js";import{R as _e}from"./required-auth-layout-DzBlEUGS.js";import{A as se}from"./auth-split-layout-CVjJMSaz.js";import{O as Ee}from"./organization-choice-v4TuGYHb.js";import{A as ve}from"./avatar-DaqDyQT2.js";import{L as Ae}from"./label-BBFj7oje.js";import{S as De}from"./switch-BdySpUUX.js";import{t as Pe}from"./Building02-DMZnZO99.js";import{i as Re}from"./CheckCircle-DEEJUOvq.js";import{t as Fe}from"./Globe04-DSOOTZNm.js";import{i as Me}from"./Upload01-DndYeCIj.js";import"./Plus-BymkC_GC.js";import"./User01-Bk3qtSGw.js";const $e=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","live.com","yahoo.com","yahoo.co.uk","icloud.com","me.com","mac.com","aol.com","protonmail.com","proton.me","zoho.com","yandex.com","mail.com","gmx.com","gmx.net","tutanota.com","fastmail.com"]);function xe(i){return i.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function at(){const i=ie.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(_e,{children:t.jsx(Te,{})}),i[0]=e):e=i[0],e}function fe(i){const e=ie.c(13),{title:b,description:m,logoUrl:n,logoFallback:s}=i;let a;e[0]!==s||e[1]!==n?(a=t.jsx("div",{children:n?t.jsx(ve,{url:n,fallback:s??"?",shape:"square",size:"base",className:"h-12 w-12"}):t.jsxs(t.Fragment,{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]})}),e[0]=s,e[1]=n,e[2]=a):a=e[2];let f;e[3]!==b?(f=t.jsx("h1",{className:"text-2xl font-medium leading-8",children:b}),e[3]=b,e[4]=f):f=e[4];let r;e[5]!==m?(r=t.jsx("p",{className:"text-base text-muted-foreground leading-6",children:m}),e[5]=m,e[6]=r):r=e[6];let o;e[7]!==f||e[8]!==r?(o=t.jsxs("div",{className:"space-y-2",children:[f,r]}),e[7]=f,e[8]=r,e[9]=o):o=e[9];let j;return e[10]!==a||e[11]!==o?(j=t.jsxs("div",{className:"grid gap-10",children:[a,o]}),e[10]=a,e[11]=o,e[12]=j):j=e[12],j}function Te(){const i=ie.c(4),{data:e,isPending:b}=ye.useSession();if(b){let a;return i[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(se,{children:t.jsx("div",{className:"flex items-center gap-2",children:t.jsx(ce,{className:"size-3.5 text-muted-foreground"})})}),i[0]=a):a=i[0],a}const m=e?.user?.email??"",n=e?.user?.name;let s;return i[1]!==n||i[2]!==m?(s=t.jsx(qe,{email:m,userName:n}),i[1]=n,i[2]=m,i[3]=s):s=i[3],s}function qe(i){const e=ie.c(59),{email:b,userName:m}=i,n=de(),s=b.split("@")[1]?.toLowerCase()??"",a=!!s&&!$e.has(s),f=s.split(".")[0]??"",r=f.charAt(0).toUpperCase()+f.slice(1);let o;e[0]!==r||e[1]!==a||e[2]!==m?(o=a?r:m?.split(" ")[0]??"",e[0]=r,e[1]=a,e[2]=m,e[3]=o):o=e[3];const j=o,{data:c,isLoading:v,isError:u,refetch:w}=Ce({queryKey:Oe.domainLookup(s),queryFn:Be,enabled:a});let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=new Set,e[4]=g):g=e[4];const[_,M]=P.useState(g),[$,y]=P.useState(!1);if(v){let l;return e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ce,{className:"size-3.5 text-muted-foreground"}),e[5]=l):l=e[5],t.jsx(se,{children:t.jsxs("div",{className:"flex items-center gap-2 py-4",children:[l,t.jsx("span",{className:"text-sm text-muted-foreground",children:n("routes.onboarding.checking",{domain:s})})]})})}if(u){let l;e[6]!==w?(l=()=>w(),e[6]=w,e[7]=l):l=e[7];let d;e[8]!==n?(d=n("routes.onboarding.retry"),e[8]=n,e[9]=d):d=e[9];let h;return e[10]!==l||e[11]!==d?(h=t.jsx(Ne,{variant:"outline",size:"sm",onClick:l,children:d}),e[10]=l,e[11]=d,e[12]=h):h=e[12],t.jsx(se,{children:t.jsxs("div",{className:"flex flex-col items-start gap-3 py-4",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:n("routes.onboarding.checkFailed",{domain:s})}),h]})})}let N,A;e[13]!==c?.organizations?(N=(c?.organizations??[]).flatMap(Ke),A=N.some(Ie),e[13]=c?.organizations,e[14]=N,e[15]=A):(N=e[14],A=e[15]);const p=A;if($){let l;e[16]!==m?(l=m?.split(" ")[0]??"",e[16]=m,e[17]=l):l=e[17];let d;e[18]!==y?(d=()=>y(!1),e[18]=y,e[19]=d):d=e[19];let h;return e[20]!==r||e[21]!==s||e[22]!==a||e[23]!==l||e[24]!==d?(h=t.jsx(be,{isCorporateEmail:a,emailDomain:s,domainLabel:r,defaultName:l,allowDomainClaim:!1,onBack:d}),e[20]=r,e[21]=s,e[22]=a,e[23]=l,e[24]=d,e[25]=h):h=e[25],h}if(N.length>0){let l;e[26]!==p||e[27]!==N.length||e[28]!==n?(l=p?N.length===1?n("routes.onboarding.accessSingle"):n("routes.onboarding.accessMultiple"):n("routes.onboarding.requestAccess"),e[26]=p,e[27]=N.length,e[28]=n,e[29]=l):l=e[29];let d;e[30]!==p||e[31]!==n?(d=n(p?"routes.onboarding.emailMatchesOrg":"routes.onboarding.emailMatchesOrgApproval"),e[30]=p,e[31]=n,e[32]=d):d=e[32];let h;e[33]!==l||e[34]!==d?(h=t.jsx(fe,{title:l,description:d}),e[33]=l,e[34]=d,e[35]=h):h=e[35];let O;e[36]!==M?(O=R=>M(F=>new Set(F).add(R)),e[36]=M,e[37]=O):O=e[37];let C;e[38]!==N||e[39]!==s||e[40]!==_||e[41]!==O?(C=t.jsx(Ee,{organizations:N,domain:s,requestedSlugs:_,onRequestedSlug:O,onJoined:Ue}),e[38]=N,e[39]=s,e[40]=_,e[41]=O,e[42]=C):C=e[42];let z;e[43]!==y?(z=()=>y(!0),e[43]=y,e[44]=z):z=e[44];let E;e[45]!==n?(E=n("routes.onboarding.createNewOrg"),e[45]=n,e[46]=E):E=e[46];let k;e[47]!==E||e[48]!==z?(k=t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:z,children:E}),e[47]=E,e[48]=z,e[49]=k):k=e[49];let L;return e[50]!==k||e[51]!==h||e[52]!==C?(L=t.jsx(se,{children:t.jsxs("div",{className:"grid gap-10",children:[h,C,k]})}),e[50]=k,e[51]=h,e[52]=C,e[53]=L):L=e[53],L}let D;return e[54]!==j||e[55]!==r||e[56]!==s||e[57]!==a?(D=t.jsx(be,{isCorporateEmail:a,emailDomain:s,domainLabel:r,defaultName:j}),e[54]=j,e[55]=r,e[56]=s,e[57]=a,e[58]=D):D=e[58],D}function Ue(i,e){window.location.href=`/${e}`}function Ie(i){return i.joinMode==="auto"}function Ke(i){return i.joinMode==="auto"||i.joinMode==="request"?[{id:i.id,name:i.name,slug:i.slug,logo:i.logo,joinMode:i.joinMode}]:[]}async function Be(){const i=await fetch("/api/auth/custom/domain-lookup",{credentials:"include"});if(!i.ok)throw new Error(`Failed to look up domain (${i.status})`);return i.json()}function be(i){const e=ie.c(103),{isCorporateEmail:b,emailDomain:m,domainLabel:n,defaultName:s,allowDomainClaim:a,onBack:f}=i,r=a===void 0?!0:a,o=de(),j=b&&r?`https://www.google.com/s2/favicons?domain=${m}&sz=128`:null,[c,v]=P.useState(s),[u,w]=P.useState(j),[g,_]=P.useState(!0),[M,$]=P.useState(null);let y;e[0]!==g||e[1]!==u||e[2]!==c?(y=async()=>{const x=await fetch("/api/auth/custom/domain-setup",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:c.trim()||void 0,logo:u??void 0,claimDomain:g})}),S=await x.json();if(!x.ok||!S.success)throw new Error(S.error||"Failed to set up organization");return S},e[0]=g,e[1]=u,e[2]=c,e[3]=y):y=e[3];let N;e[4]!==g?(N=x=>{if(!x.slug)return;const S=we.filter(ke=>g||!ke.claimOnly).length,ne=Se*(S-1)+800;$(x.slug),setTimeout(()=>{window.location.href=`/${x.slug}`},ne)},e[4]=g,e[5]=N):N=e[5];let A;e[6]!==y||e[7]!==N?(A={mutationFn:y,onSuccess:N},e[6]=y,e[7]=N,e[8]=A):A=e[8];const p=pe(A);let D;e[9]!==u||e[10]!==c?(D={mutationFn:async()=>{const x=c.trim(),S=xe(x);if(!S)throw new Error("Invalid organization name");const ne=await ye.organization.create({name:x,slug:S,...u?{logo:u}:{}});if(ne?.error)throw new Error(ne.error.message||"Failed to create organization");window.location.href=`/${ne?.data?.slug??S}`}},e[9]=u,e[10]=c,e[11]=D):D=e[11];const l=pe(D);if(p.isPending||M){let x;e[12]!==n||e[13]!==c?(x=c.trim()||n,e[12]=n,e[13]=c,e[14]=x):x=e[14];let S;return e[15]!==g||e[16]!==m||e[17]!==u||e[18]!==x?(S=t.jsx(se,{children:t.jsx(Ge,{orgName:x,domain:m,claimDomain:g,logoUrl:u})}),e[15]=g,e[16]=m,e[17]=u,e[18]=x,e[19]=S):S=e[19],S}const d=l.isPending;let h;e[20]!==c?(h=xe(c.trim()),e[20]=c,e[21]=h):h=e[21];const O=!!h,C=p.error||l.error||null;let z;e[22]!==r||e[23]!==O||e[24]!==l||e[25]!==p||e[26]!==b?(z=x=>{x.preventDefault(),O&&(b&&r?p.mutate():l.mutate())},e[22]=r,e[23]=O,e[24]=l,e[25]=p,e[26]=b,e[27]=z):z=e[27];const E=z;let k;e[28]!==o?(k=o("routes.onboarding.welcomeTitle"),e[28]=o,e[29]=k):k=e[29];let L;e[30]!==o?(L=o("routes.onboarding.setupDescription"),e[30]=o,e[31]=L):L=e[31];let R;e[32]!==k||e[33]!==L?(R=t.jsx(fe,{title:k,description:L}),e[32]=k,e[33]=L,e[34]=R):R=e[34];let F;e[35]!==o?(F=o("routes.onboarding.orgAvatar"),e[35]=o,e[36]=F):F=e[36];let T;e[37]!==F?(T=t.jsx("p",{className:"text-sm font-medium",children:F}),e[37]=F,e[38]=T):T=e[38];let q;e[39]!==o?(q=o("routes.onboarding.optional"),e[39]=o,e[40]=q):q=e[40];let U;e[41]!==q?(U=t.jsx("p",{className:"text-xs text-muted-foreground",children:q}),e[41]=q,e[42]=U):U=e[42];let I;e[43]!==T||e[44]!==U?(I=t.jsxs("div",{className:"space-y-0.5",children:[T,U]}),e[43]=T,e[44]=U,e[45]=I):I=e[45];let K;e[46]!==s||e[47]!==c?(K=(c.trim()||s||"?").charAt(0).toUpperCase(),e[46]=s,e[47]=c,e[48]=K):K=e[48];const me=d||p.isPending;let B;e[49]!==u||e[50]!==K||e[51]!==me?(B=t.jsx(Je,{value:u,fallback:K,onChange:w,disabled:me}),e[49]=u,e[50]=K,e[51]=me,e[52]=B):B=e[52];let J;e[53]!==I||e[54]!==B?(J=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[I,B]}),e[53]=I,e[54]=B,e[55]=J):J=e[55];let G;e[56]!==o?(G=o("routes.onboarding.orgName"),e[56]=o,e[57]=G):G=e[57];let Y;e[58]!==G?(Y=t.jsx(Ae,{htmlFor:"org-name",className:"text-sm font-medium shrink-0",children:G}),e[58]=G,e[59]=Y):Y=e[59];let re;e[60]===Symbol.for("react.memo_cache_sentinel")?(re=x=>v(x.target.value),e[60]=re):re=e[60];let H;e[61]!==s||e[62]!==o?(H=s||o("routes.onboarding.myOrganizationPlaceholder"),e[61]=s,e[62]=o,e[63]=H):H=e[63];const ue=d||p.isPending;let Q;e[64]!==c||e[65]!==H||e[66]!==ue?(Q=t.jsx(Le,{id:"org-name",value:c,onChange:re,placeholder:H,disabled:ue,className:"h-10 max-w-[220px]"}),e[64]=c,e[65]=H,e[66]=ue,e[67]=Q):Q=e[67];let W;e[68]!==Y||e[69]!==Q?(W=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[Y,Q]}),e[68]=Y,e[69]=Q,e[70]=W):W=e[70];let V;e[71]!==r||e[72]!==g||e[73]!==p.isPending||e[74]!==m||e[75]!==b||e[76]!==d||e[77]!==o?(V=b&&r&&t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-sm font-medium",children:o("routes.onboarding.allowSignups",{domain:m})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("routes.onboarding.allowSignupsDescription",{domain:m})})]}),t.jsx(De,{checked:g,onCheckedChange:_,disabled:d||p.isPending})]}),e[71]=r,e[72]=g,e[73]=p.isPending,e[74]=m,e[75]=b,e[76]=d,e[77]=o,e[78]=V):V=e[78];let X;e[79]!==J||e[80]!==W||e[81]!==V?(X=t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 divide-y divide-border",children:[J,W,V]}),e[79]=J,e[80]=W,e[81]=V,e[82]=X):X=e[82];let Z;e[83]!==C||e[84]!==o?(Z=C&&t.jsx("p",{className:"text-xs text-destructive",children:C instanceof Error?C.message:o("routes.onboarding.failedCreateOrg")}),e[83]=C,e[84]=o,e[85]=Z):Z=e[85];const ge=!O||d||p.isPending;let ee;e[86]!==p.isPending||e[87]!==d||e[88]!==o?(ee=d||p.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ce,{className:"size-3.5"})," ",o("routes.onboarding.creating")]}):o("routes.onboarding.continue"),e[86]=p.isPending,e[87]=d,e[88]=o,e[89]=ee):ee=e[89];let te;e[90]!==ge||e[91]!==ee?(te=t.jsx(Ne,{type:"submit",size:"xl",className:"w-full",disabled:ge,children:ee}),e[90]=ge,e[91]=ee,e[92]=te):te=e[92];let oe;e[93]!==f||e[94]!==o?(oe=f&&t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:f,children:o("routes.onboarding.seeAvailableOrgs")}),e[93]=f,e[94]=o,e[95]=oe):oe=e[95];let le;return e[96]!==E||e[97]!==R||e[98]!==X||e[99]!==Z||e[100]!==te||e[101]!==oe?(le=t.jsx(se,{children:t.jsxs("form",{onSubmit:E,className:"grid gap-10",children:[R,X,Z,te,oe]})}),e[96]=E,e[97]=R,e[98]=X,e[99]=Z,e[100]=te,e[101]=oe,e[102]=le):le=e[102],le}function Je(i){const e=ie.c(18),{value:b,fallback:m,onChange:n,disabled:s}=i,a=de(),f=P.useRef(null);let r;e[0]!==n||e[1]!==a?(r=M=>{const $=M.target.files?.[0];if(!$)return;if($.size>2097152){he.error(a("routes.onboarding.imageTooLarge")),f.current&&(f.current.value="");return}const y=new FileReader;y.onerror=()=>he.error(a("routes.onboarding.failedReadImage")),y.onloadend=()=>{y.result&&n(y.result),f.current&&(f.current.value="")},y.readAsDataURL($)},e[0]=n,e[1]=a,e[2]=r):r=e[2];const o=r;let j;e[3]===Symbol.for("react.memo_cache_sentinel")?(j=()=>f.current?.click(),e[3]=j):j=e[3];let c;e[4]!==a?(c=a("routes.onboarding.uploadOrgLogo"),e[4]=a,e[5]=c):c=e[5];let v;e[6]!==s||e[7]!==o?(v=t.jsx("input",{ref:f,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:s}),e[6]=s,e[7]=o,e[8]=v):v=e[8];const u=b??void 0;let w;e[9]!==m||e[10]!==u?(w=t.jsx(ve,{url:u,fallback:m,shape:"square",size:"base"}),e[9]=m,e[10]=u,e[11]=w):w=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(Me,{size:14,className:"text-white"})}),e[12]=g):g=e[12];let _;return e[13]!==s||e[14]!==c||e[15]!==v||e[16]!==w?(_=t.jsxs("button",{type:"button",onClick:j,disabled:s,className:"relative rounded-lg overflow-hidden ring-1 ring-border hover:ring-2 hover:ring-ring/40 transition-all disabled:opacity-50 group","aria-label":c,children:[v,w,g]}),e[13]=s,e[14]=c,e[15]=v,e[16]=w,e[17]=_):_=e[17],_}const we=[{icon:Pe,labelKey:"routes.onboarding.step.creatingOrg",claimOnly:!1},{icon:Fe,labelKey:"routes.onboarding.step.claimingDomain",claimOnly:!0},{icon:ze,labelKey:"routes.onboarding.step.enablingAutoJoin",claimOnly:!0}],Se=1500,je=[{bg:"var(--brand-green-light)",fg:"var(--brand-green-dark)"},{bg:"var(--brand-purple-light)",fg:"var(--brand-purple-dark)"},{bg:"var(--brand-yellow-light)",fg:"var(--brand-yellow-dark)"}];function Ge({orgName:i,domain:e,claimDomain:b,logoUrl:m}){const n=de(),s=we.filter(o=>b||!o.claimOnly),[a,f]=P.useState(0),r=P.useRef(!1);if(!r.current){r.current=!0;for(let o=1;o<s.length;o++)setTimeout(()=>f(o),Se*o)}return t.jsxs("div",{className:"grid gap-10",children:[t.jsx(fe,{title:n("routes.onboarding.settingUp",{orgName:i}),description:n("routes.onboarding.gettingReady",{domain:e}),logoUrl:m??null,logoFallback:i.charAt(0).toUpperCase()||"?"}),t.jsx("ul",{className:"grid gap-5",children:s.map((o,j)=>{const c=o.icon,v=j===a,u=j<a,w=je[j%je.length],g=n(o.labelKey);return t.jsxs("li",{className:"flex items-center gap-4 motion-safe:transition-opacity motion-safe:duration-300 motion-safe:ease-out",style:{opacity:u||v?1:.4},children:[t.jsxs("span",{className:ae("relative grid h-8 w-8 shrink-0 place-items-center rounded-lg","motion-safe:transition-colors motion-safe:duration-300",!u&&(v?"bg-muted text-foreground":"bg-muted text-muted-foreground")),style:u?{backgroundColor:w.bg,color:w.fg}:void 0,children:[t.jsx(Re,{size:16,className:ae("absolute motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",u?"scale-100 opacity-100":"scale-75 opacity-0"),"aria-hidden":"true"}),t.jsx(ce,{className:ae("absolute size-4","motion-safe:transition-opacity motion-safe:duration-200",v?"opacity-100":"opacity-0")}),t.jsx(c,{size:16,className:ae("absolute motion-safe:transition-opacity motion-safe:duration-200",!u&&!v?"opacity-100":"opacity-0"),"aria-hidden":"true"})]}),t.jsx("span",{className:ae("text-base leading-6 motion-safe:transition-colors motion-safe:duration-300",v||u?"text-foreground":"text-muted-foreground"),children:g})]},o.labelKey)})})]})}export{at as default};
|
|
1
|
+
import{c as ie,j as t,a as ye,h as ce,b as de,m as Ce,K as Oe,r as P,B as Ne,e as pe,x as ze,I as Le,l as ae,t as he}from"./index-BK190UFK.js";import{R as _e}from"./required-auth-layout-DxHu4HdO.js";import{A as se}from"./auth-split-layout-DQN-aeTf.js";import{O as Ee}from"./organization-choice-8hhbvDVr.js";import{A as ve}from"./avatar-DRy8VbC0.js";import{L as Ae}from"./label-BunRmshY.js";import{S as De}from"./switch-DN2oDjus.js";import{t as Pe}from"./Building02-BxwY0KPK.js";import{i as Re}from"./CheckCircle-C6hOGQtb.js";import{t as Fe}from"./Globe04-Bh7J-5IF.js";import{i as Me}from"./Upload01-eK2TNPZR.js";import"./Plus-QrRV6-c4.js";import"./User01-N2GTLnCq.js";const $e=new Set(["gmail.com","googlemail.com","outlook.com","hotmail.com","live.com","yahoo.com","yahoo.co.uk","icloud.com","me.com","mac.com","aol.com","protonmail.com","proton.me","zoho.com","yandex.com","mail.com","gmx.com","gmx.net","tutanota.com","fastmail.com"]);function xe(i){return i.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function at(){const i=ie.c(1);let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(_e,{children:t.jsx(Te,{})}),i[0]=e):e=i[0],e}function fe(i){const e=ie.c(13),{title:b,description:m,logoUrl:n,logoFallback:s}=i;let a;e[0]!==s||e[1]!==n?(a=t.jsx("div",{children:n?t.jsx(ve,{url:n,fallback:s??"?",shape:"square",size:"base",className:"h-12 w-12"}):t.jsxs(t.Fragment,{children:[t.jsx("img",{src:"/logos/deco logo.svg",alt:"Deco",className:"h-12 w-12 dark:hidden"}),t.jsx("img",{src:"/logos/deco logo negative.svg",alt:"Deco",className:"h-12 w-12 hidden dark:block"})]})}),e[0]=s,e[1]=n,e[2]=a):a=e[2];let f;e[3]!==b?(f=t.jsx("h1",{className:"text-2xl font-medium leading-8",children:b}),e[3]=b,e[4]=f):f=e[4];let r;e[5]!==m?(r=t.jsx("p",{className:"text-base text-muted-foreground leading-6",children:m}),e[5]=m,e[6]=r):r=e[6];let o;e[7]!==f||e[8]!==r?(o=t.jsxs("div",{className:"space-y-2",children:[f,r]}),e[7]=f,e[8]=r,e[9]=o):o=e[9];let j;return e[10]!==a||e[11]!==o?(j=t.jsxs("div",{className:"grid gap-10",children:[a,o]}),e[10]=a,e[11]=o,e[12]=j):j=e[12],j}function Te(){const i=ie.c(4),{data:e,isPending:b}=ye.useSession();if(b){let a;return i[0]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(se,{children:t.jsx("div",{className:"flex items-center gap-2",children:t.jsx(ce,{className:"size-3.5 text-muted-foreground"})})}),i[0]=a):a=i[0],a}const m=e?.user?.email??"",n=e?.user?.name;let s;return i[1]!==n||i[2]!==m?(s=t.jsx(qe,{email:m,userName:n}),i[1]=n,i[2]=m,i[3]=s):s=i[3],s}function qe(i){const e=ie.c(59),{email:b,userName:m}=i,n=de(),s=b.split("@")[1]?.toLowerCase()??"",a=!!s&&!$e.has(s),f=s.split(".")[0]??"",r=f.charAt(0).toUpperCase()+f.slice(1);let o;e[0]!==r||e[1]!==a||e[2]!==m?(o=a?r:m?.split(" ")[0]??"",e[0]=r,e[1]=a,e[2]=m,e[3]=o):o=e[3];const j=o,{data:c,isLoading:v,isError:u,refetch:w}=Ce({queryKey:Oe.domainLookup(s),queryFn:Be,enabled:a});let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=new Set,e[4]=g):g=e[4];const[_,M]=P.useState(g),[$,y]=P.useState(!1);if(v){let l;return e[5]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ce,{className:"size-3.5 text-muted-foreground"}),e[5]=l):l=e[5],t.jsx(se,{children:t.jsxs("div",{className:"flex items-center gap-2 py-4",children:[l,t.jsx("span",{className:"text-sm text-muted-foreground",children:n("routes.onboarding.checking",{domain:s})})]})})}if(u){let l;e[6]!==w?(l=()=>w(),e[6]=w,e[7]=l):l=e[7];let d;e[8]!==n?(d=n("routes.onboarding.retry"),e[8]=n,e[9]=d):d=e[9];let h;return e[10]!==l||e[11]!==d?(h=t.jsx(Ne,{variant:"outline",size:"sm",onClick:l,children:d}),e[10]=l,e[11]=d,e[12]=h):h=e[12],t.jsx(se,{children:t.jsxs("div",{className:"flex flex-col items-start gap-3 py-4",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:n("routes.onboarding.checkFailed",{domain:s})}),h]})})}let N,A;e[13]!==c?.organizations?(N=(c?.organizations??[]).flatMap(Ke),A=N.some(Ie),e[13]=c?.organizations,e[14]=N,e[15]=A):(N=e[14],A=e[15]);const p=A;if($){let l;e[16]!==m?(l=m?.split(" ")[0]??"",e[16]=m,e[17]=l):l=e[17];let d;e[18]!==y?(d=()=>y(!1),e[18]=y,e[19]=d):d=e[19];let h;return e[20]!==r||e[21]!==s||e[22]!==a||e[23]!==l||e[24]!==d?(h=t.jsx(be,{isCorporateEmail:a,emailDomain:s,domainLabel:r,defaultName:l,allowDomainClaim:!1,onBack:d}),e[20]=r,e[21]=s,e[22]=a,e[23]=l,e[24]=d,e[25]=h):h=e[25],h}if(N.length>0){let l;e[26]!==p||e[27]!==N.length||e[28]!==n?(l=p?N.length===1?n("routes.onboarding.accessSingle"):n("routes.onboarding.accessMultiple"):n("routes.onboarding.requestAccess"),e[26]=p,e[27]=N.length,e[28]=n,e[29]=l):l=e[29];let d;e[30]!==p||e[31]!==n?(d=n(p?"routes.onboarding.emailMatchesOrg":"routes.onboarding.emailMatchesOrgApproval"),e[30]=p,e[31]=n,e[32]=d):d=e[32];let h;e[33]!==l||e[34]!==d?(h=t.jsx(fe,{title:l,description:d}),e[33]=l,e[34]=d,e[35]=h):h=e[35];let O;e[36]!==M?(O=R=>M(F=>new Set(F).add(R)),e[36]=M,e[37]=O):O=e[37];let C;e[38]!==N||e[39]!==s||e[40]!==_||e[41]!==O?(C=t.jsx(Ee,{organizations:N,domain:s,requestedSlugs:_,onRequestedSlug:O,onJoined:Ue}),e[38]=N,e[39]=s,e[40]=_,e[41]=O,e[42]=C):C=e[42];let z;e[43]!==y?(z=()=>y(!0),e[43]=y,e[44]=z):z=e[44];let E;e[45]!==n?(E=n("routes.onboarding.createNewOrg"),e[45]=n,e[46]=E):E=e[46];let k;e[47]!==E||e[48]!==z?(k=t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:z,children:E}),e[47]=E,e[48]=z,e[49]=k):k=e[49];let L;return e[50]!==k||e[51]!==h||e[52]!==C?(L=t.jsx(se,{children:t.jsxs("div",{className:"grid gap-10",children:[h,C,k]})}),e[50]=k,e[51]=h,e[52]=C,e[53]=L):L=e[53],L}let D;return e[54]!==j||e[55]!==r||e[56]!==s||e[57]!==a?(D=t.jsx(be,{isCorporateEmail:a,emailDomain:s,domainLabel:r,defaultName:j}),e[54]=j,e[55]=r,e[56]=s,e[57]=a,e[58]=D):D=e[58],D}function Ue(i,e){window.location.href=`/${e}`}function Ie(i){return i.joinMode==="auto"}function Ke(i){return i.joinMode==="auto"||i.joinMode==="request"?[{id:i.id,name:i.name,slug:i.slug,logo:i.logo,joinMode:i.joinMode}]:[]}async function Be(){const i=await fetch("/api/auth/custom/domain-lookup",{credentials:"include"});if(!i.ok)throw new Error(`Failed to look up domain (${i.status})`);return i.json()}function be(i){const e=ie.c(103),{isCorporateEmail:b,emailDomain:m,domainLabel:n,defaultName:s,allowDomainClaim:a,onBack:f}=i,r=a===void 0?!0:a,o=de(),j=b&&r?`https://www.google.com/s2/favicons?domain=${m}&sz=128`:null,[c,v]=P.useState(s),[u,w]=P.useState(j),[g,_]=P.useState(!0),[M,$]=P.useState(null);let y;e[0]!==g||e[1]!==u||e[2]!==c?(y=async()=>{const x=await fetch("/api/auth/custom/domain-setup",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:c.trim()||void 0,logo:u??void 0,claimDomain:g})}),S=await x.json();if(!x.ok||!S.success)throw new Error(S.error||"Failed to set up organization");return S},e[0]=g,e[1]=u,e[2]=c,e[3]=y):y=e[3];let N;e[4]!==g?(N=x=>{if(!x.slug)return;const S=we.filter(ke=>g||!ke.claimOnly).length,ne=Se*(S-1)+800;$(x.slug),setTimeout(()=>{window.location.href=`/${x.slug}`},ne)},e[4]=g,e[5]=N):N=e[5];let A;e[6]!==y||e[7]!==N?(A={mutationFn:y,onSuccess:N},e[6]=y,e[7]=N,e[8]=A):A=e[8];const p=pe(A);let D;e[9]!==u||e[10]!==c?(D={mutationFn:async()=>{const x=c.trim(),S=xe(x);if(!S)throw new Error("Invalid organization name");const ne=await ye.organization.create({name:x,slug:S,...u?{logo:u}:{}});if(ne?.error)throw new Error(ne.error.message||"Failed to create organization");window.location.href=`/${ne?.data?.slug??S}`}},e[9]=u,e[10]=c,e[11]=D):D=e[11];const l=pe(D);if(p.isPending||M){let x;e[12]!==n||e[13]!==c?(x=c.trim()||n,e[12]=n,e[13]=c,e[14]=x):x=e[14];let S;return e[15]!==g||e[16]!==m||e[17]!==u||e[18]!==x?(S=t.jsx(se,{children:t.jsx(Ge,{orgName:x,domain:m,claimDomain:g,logoUrl:u})}),e[15]=g,e[16]=m,e[17]=u,e[18]=x,e[19]=S):S=e[19],S}const d=l.isPending;let h;e[20]!==c?(h=xe(c.trim()),e[20]=c,e[21]=h):h=e[21];const O=!!h,C=p.error||l.error||null;let z;e[22]!==r||e[23]!==O||e[24]!==l||e[25]!==p||e[26]!==b?(z=x=>{x.preventDefault(),O&&(b&&r?p.mutate():l.mutate())},e[22]=r,e[23]=O,e[24]=l,e[25]=p,e[26]=b,e[27]=z):z=e[27];const E=z;let k;e[28]!==o?(k=o("routes.onboarding.welcomeTitle"),e[28]=o,e[29]=k):k=e[29];let L;e[30]!==o?(L=o("routes.onboarding.setupDescription"),e[30]=o,e[31]=L):L=e[31];let R;e[32]!==k||e[33]!==L?(R=t.jsx(fe,{title:k,description:L}),e[32]=k,e[33]=L,e[34]=R):R=e[34];let F;e[35]!==o?(F=o("routes.onboarding.orgAvatar"),e[35]=o,e[36]=F):F=e[36];let T;e[37]!==F?(T=t.jsx("p",{className:"text-sm font-medium",children:F}),e[37]=F,e[38]=T):T=e[38];let q;e[39]!==o?(q=o("routes.onboarding.optional"),e[39]=o,e[40]=q):q=e[40];let U;e[41]!==q?(U=t.jsx("p",{className:"text-xs text-muted-foreground",children:q}),e[41]=q,e[42]=U):U=e[42];let I;e[43]!==T||e[44]!==U?(I=t.jsxs("div",{className:"space-y-0.5",children:[T,U]}),e[43]=T,e[44]=U,e[45]=I):I=e[45];let K;e[46]!==s||e[47]!==c?(K=(c.trim()||s||"?").charAt(0).toUpperCase(),e[46]=s,e[47]=c,e[48]=K):K=e[48];const me=d||p.isPending;let B;e[49]!==u||e[50]!==K||e[51]!==me?(B=t.jsx(Je,{value:u,fallback:K,onChange:w,disabled:me}),e[49]=u,e[50]=K,e[51]=me,e[52]=B):B=e[52];let J;e[53]!==I||e[54]!==B?(J=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[I,B]}),e[53]=I,e[54]=B,e[55]=J):J=e[55];let G;e[56]!==o?(G=o("routes.onboarding.orgName"),e[56]=o,e[57]=G):G=e[57];let Y;e[58]!==G?(Y=t.jsx(Ae,{htmlFor:"org-name",className:"text-sm font-medium shrink-0",children:G}),e[58]=G,e[59]=Y):Y=e[59];let re;e[60]===Symbol.for("react.memo_cache_sentinel")?(re=x=>v(x.target.value),e[60]=re):re=e[60];let H;e[61]!==s||e[62]!==o?(H=s||o("routes.onboarding.myOrganizationPlaceholder"),e[61]=s,e[62]=o,e[63]=H):H=e[63];const ue=d||p.isPending;let Q;e[64]!==c||e[65]!==H||e[66]!==ue?(Q=t.jsx(Le,{id:"org-name",value:c,onChange:re,placeholder:H,disabled:ue,className:"h-10 max-w-[220px]"}),e[64]=c,e[65]=H,e[66]=ue,e[67]=Q):Q=e[67];let W;e[68]!==Y||e[69]!==Q?(W=t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[Y,Q]}),e[68]=Y,e[69]=Q,e[70]=W):W=e[70];let V;e[71]!==r||e[72]!==g||e[73]!==p.isPending||e[74]!==m||e[75]!==b||e[76]!==d||e[77]!==o?(V=b&&r&&t.jsxs("div",{className:"flex items-center justify-between gap-4 p-4",children:[t.jsxs("div",{className:"space-y-0.5",children:[t.jsx("p",{className:"text-sm font-medium",children:o("routes.onboarding.allowSignups",{domain:m})}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("routes.onboarding.allowSignupsDescription",{domain:m})})]}),t.jsx(De,{checked:g,onCheckedChange:_,disabled:d||p.isPending})]}),e[71]=r,e[72]=g,e[73]=p.isPending,e[74]=m,e[75]=b,e[76]=d,e[77]=o,e[78]=V):V=e[78];let X;e[79]!==J||e[80]!==W||e[81]!==V?(X=t.jsxs("div",{className:"rounded-xl card-shadow bg-background dark:bg-input/30 divide-y divide-border",children:[J,W,V]}),e[79]=J,e[80]=W,e[81]=V,e[82]=X):X=e[82];let Z;e[83]!==C||e[84]!==o?(Z=C&&t.jsx("p",{className:"text-xs text-destructive",children:C instanceof Error?C.message:o("routes.onboarding.failedCreateOrg")}),e[83]=C,e[84]=o,e[85]=Z):Z=e[85];const ge=!O||d||p.isPending;let ee;e[86]!==p.isPending||e[87]!==d||e[88]!==o?(ee=d||p.isPending?t.jsxs("span",{className:"flex items-center gap-2",children:[t.jsx(ce,{className:"size-3.5"})," ",o("routes.onboarding.creating")]}):o("routes.onboarding.continue"),e[86]=p.isPending,e[87]=d,e[88]=o,e[89]=ee):ee=e[89];let te;e[90]!==ge||e[91]!==ee?(te=t.jsx(Ne,{type:"submit",size:"xl",className:"w-full",disabled:ge,children:ee}),e[90]=ge,e[91]=ee,e[92]=te):te=e[92];let oe;e[93]!==f||e[94]!==o?(oe=f&&t.jsx("button",{type:"button",className:"text-sm text-muted-foreground hover:text-foreground transition-colors text-center",onClick:f,children:o("routes.onboarding.seeAvailableOrgs")}),e[93]=f,e[94]=o,e[95]=oe):oe=e[95];let le;return e[96]!==E||e[97]!==R||e[98]!==X||e[99]!==Z||e[100]!==te||e[101]!==oe?(le=t.jsx(se,{children:t.jsxs("form",{onSubmit:E,className:"grid gap-10",children:[R,X,Z,te,oe]})}),e[96]=E,e[97]=R,e[98]=X,e[99]=Z,e[100]=te,e[101]=oe,e[102]=le):le=e[102],le}function Je(i){const e=ie.c(18),{value:b,fallback:m,onChange:n,disabled:s}=i,a=de(),f=P.useRef(null);let r;e[0]!==n||e[1]!==a?(r=M=>{const $=M.target.files?.[0];if(!$)return;if($.size>2097152){he.error(a("routes.onboarding.imageTooLarge")),f.current&&(f.current.value="");return}const y=new FileReader;y.onerror=()=>he.error(a("routes.onboarding.failedReadImage")),y.onloadend=()=>{y.result&&n(y.result),f.current&&(f.current.value="")},y.readAsDataURL($)},e[0]=n,e[1]=a,e[2]=r):r=e[2];const o=r;let j;e[3]===Symbol.for("react.memo_cache_sentinel")?(j=()=>f.current?.click(),e[3]=j):j=e[3];let c;e[4]!==a?(c=a("routes.onboarding.uploadOrgLogo"),e[4]=a,e[5]=c):c=e[5];let v;e[6]!==s||e[7]!==o?(v=t.jsx("input",{ref:f,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:s}),e[6]=s,e[7]=o,e[8]=v):v=e[8];const u=b??void 0;let w;e[9]!==m||e[10]!==u?(w=t.jsx(ve,{url:u,fallback:m,shape:"square",size:"base"}),e[9]=m,e[10]=u,e[11]=w):w=e[11];let g;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(Me,{size:14,className:"text-white"})}),e[12]=g):g=e[12];let _;return e[13]!==s||e[14]!==c||e[15]!==v||e[16]!==w?(_=t.jsxs("button",{type:"button",onClick:j,disabled:s,className:"relative rounded-lg overflow-hidden ring-1 ring-border hover:ring-2 hover:ring-ring/40 transition-all disabled:opacity-50 group","aria-label":c,children:[v,w,g]}),e[13]=s,e[14]=c,e[15]=v,e[16]=w,e[17]=_):_=e[17],_}const we=[{icon:Pe,labelKey:"routes.onboarding.step.creatingOrg",claimOnly:!1},{icon:Fe,labelKey:"routes.onboarding.step.claimingDomain",claimOnly:!0},{icon:ze,labelKey:"routes.onboarding.step.enablingAutoJoin",claimOnly:!0}],Se=1500,je=[{bg:"var(--brand-green-light)",fg:"var(--brand-green-dark)"},{bg:"var(--brand-purple-light)",fg:"var(--brand-purple-dark)"},{bg:"var(--brand-yellow-light)",fg:"var(--brand-yellow-dark)"}];function Ge({orgName:i,domain:e,claimDomain:b,logoUrl:m}){const n=de(),s=we.filter(o=>b||!o.claimOnly),[a,f]=P.useState(0),r=P.useRef(!1);if(!r.current){r.current=!0;for(let o=1;o<s.length;o++)setTimeout(()=>f(o),Se*o)}return t.jsxs("div",{className:"grid gap-10",children:[t.jsx(fe,{title:n("routes.onboarding.settingUp",{orgName:i}),description:n("routes.onboarding.gettingReady",{domain:e}),logoUrl:m??null,logoFallback:i.charAt(0).toUpperCase()||"?"}),t.jsx("ul",{className:"grid gap-5",children:s.map((o,j)=>{const c=o.icon,v=j===a,u=j<a,w=je[j%je.length],g=n(o.labelKey);return t.jsxs("li",{className:"flex items-center gap-4 motion-safe:transition-opacity motion-safe:duration-300 motion-safe:ease-out",style:{opacity:u||v?1:.4},children:[t.jsxs("span",{className:ae("relative grid h-8 w-8 shrink-0 place-items-center rounded-lg","motion-safe:transition-colors motion-safe:duration-300",!u&&(v?"bg-muted text-foreground":"bg-muted text-muted-foreground")),style:u?{backgroundColor:w.bg,color:w.fg}:void 0,children:[t.jsx(Re,{size:16,className:ae("absolute motion-safe:transition-all motion-safe:duration-300 motion-safe:ease-out",u?"scale-100 opacity-100":"scale-75 opacity-0"),"aria-hidden":"true"}),t.jsx(ce,{className:ae("absolute size-4","motion-safe:transition-opacity motion-safe:duration-200",v?"opacity-100":"opacity-0")}),t.jsx(c,{size:16,className:ae("absolute motion-safe:transition-opacity motion-safe:duration-200",!u&&!v?"opacity-100":"opacity-0"),"aria-hidden":"true"})]}),t.jsx("span",{className:ae("text-base leading-6 motion-safe:transition-colors motion-safe:duration-300",v||u?"text-foreground":"text-muted-foreground"),children:g})]},o.labelKey)})})]})}export{at as default};
|
package/dist/client/assets/{openai-conversation-ByV4ghuu.js → openai-conversation-BvOCsL04.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{f as J,g as B}from"./input-
|
|
1
|
+
import{f as J,g as B}from"./input-COBaFE6j.js";import{aF as A,aG as _,d1 as C,aY as U,bV as W}from"./index-BK190UFK.js";import"./usage-stats-Ch0VewCU.js";import"./tool-namespace-EhUoXk-S.js";import"./form-BDu3IeIH.js";import"./label-BunRmshY.js";import"./utils-CVEq3hMx.js";import"./markdown-Nb1vuip_.js";import"./use-copy-BIgY_WmV.js";import"./Copy01-ERiooqLX.js";import"./ZoomOut-CoVzvNw2.js";import"./location-BjlyegC2.js";import"./use-mobile-DEaGyR0R.js";import"./use-panel-navigate-Cu-t56cK.js";import"./thread-route-DS39QkbF.js";import"./use-project-scope-BDEPuYYY.js";import"./repository-binding-De4YD-ur.js";import"./use-mcp-client-mz_YsdlD.js";import"./auth-BWnr0_lm.js";import"./tooltip-BWcFijHU.js";import"./index-BMw66_nD.js";import"./agent-icon-RL-ye5ci.js";import"./AlertCircle-NXgLHgNz.js";import"./Tool01--h_pVz4T.js";import"./ArrowUp-DAUPJuuP.js";import"./ArrowLeft-BzveMFQj.js";import"./LinkBroken01-BjccAKPx.js";import"./ShoppingBag01-BcXG1Y02.js";import"./Building02-BxwY0KPK.js";import"./CheckCircle-C6hOGQtb.js";import"./ChevronUp-CLw_9Qso.js";import"./ChevronSelectorVertical-DgvYFay1.js";import"./UserSquare-CX5ecxEr.js";import"./CreditCard01-D8jNMQJx.js";import"./DotsVertical-B1h3Jihf.js";import"./Image01-4n3A8r8Z.js";import"./Globe04-Bh7J-5IF.js";import"./SwitchHorizontal01-BSLmpTlq.js";import"./Key01-C6u980OH.js";import"./Link01-Dwd4LqmB.js";import"./Monitor01-v-JR5BgI.js";import"./Sun-D6T_vWjG.js";import"./Play-Ce9aT9v6.js";import"./Plus-QrRV6-c4.js";import"./SearchMd-CHpsmgY4.js";import"./Trash01-RwipSHZZ.js";import"./Upload01-eK2TNPZR.js";import"./User01-N2GTLnCq.js";import"./Users01-CUohNTuz.js";import"./XClose-BuvBFMv4.js";import"./format-time-CAj8AQXM.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-XgFDUcx2.js";import"./thread-intent-Bs__gvfZ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-C6ByaeA4.js";import"./task-board-CYpXhGQT.js";import"./schema-BkghSgU6.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-Ml4Gozft.js";import"./autosend-DA5Ll-0f.js";import"./use-ai-providers-DlCYkQtp.js";import"./use-chat-navigation-ClWioV9i.js";import"./use-organization-settings-HKWihJAK.js";import"./icon-button-DMaUfwmf.js";import"./file-type-icon-3H7WzHap.js";import"./shell-layout-MCnab3JI.js";import"./avatar-DRy8VbC0.js";import"./use-clock-tick-CvejttUf.js";import"./command-DD6ok1pX.js";import"./index-C9fKK-wk.js";import"./integration-icon-DooAPnA0.js";import"./project-icon-B3mPNSKk.js";import"./new-project-dialog-Co9nzRWA.js";import"./repository-import-picker-D9TcWtSt.js";import"./use-navigate-to-agent-CNix_it6.js";import"./repository-picker-BN6FQay9.js";import"./useInfiniteQuery-BueIgiQs.js";import"./infiniteQueryObserver-De4bQwNq.js";import"./collection-search-Dy92VLR3.js";import"./use-debounced-value-C1WDkKos.js";import"./required-auth-layout-DxHu4HdO.js";import"./use-org-sso-BFzZVp3h.js";import"./chat-draft-DPAaJMCE.js";import"./select-BlwJBq6n.js";import"./index-BdQq_4o_.js";import"./tabs-Ph7SjF97.js";import"./use-deco-credits-DCap0Yml.js";import"./toggle-group-TsnUbAB8.js";import"./use-open-billing-url-DPgM3gyB.js";import"./index-CHzjSYqm.js";import"./checkbox-Dej0a_MZ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-B4k9nGiU.js";import"./drawer-C97eOt-w.js";import"./input-JF63eNXE.js";import"./suggestion-BAcUX8_L.js";import"./use-mcp-prompts-CvB0iFHn.js";import"./use-org-fs-B0NgsaSc.js";import"./question-004-sINsf4GQ.js";import"./use-members-vO4hRjDU.js";import"./use-org-auth-client-CXOq5-xT.js";import"./feature-paywall-Uqlg3bNA.js";import"./plan-ladder-DKHYfsUX.js";import"./add-connection-dialog-CzOk83Hd.js";import"./extract-connection-data-Dn6rJFzB.js";import"./metadata-D72DunRR.js";import"./connection-BY-oAv5n.js";import"./url-slug-CDCbGOuX.js";import"./connection-card-C73qSj5G.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DlGH37X3.js";import"./use-connection-B0oPVblY.js";import"./schema-OH4JBQTE.js";import"./connection-form-helpers-BKJUP1mG.js";import"./authenticate-and-persist-oauth-CBaG1Ea0.js";import"./mcp-oauth-Du734nk4.js";import"./mcp-oauth-BD-0h7ak.js";import"./collection-tabs-ByAybjjo.js";import"./badge-BUPu9gG1.js";import"./use-infinite-scroll-NSUx4AXY.js";import"./useSuspenseInfiniteQuery-Ce35mREH.js";import"./use-task-board-events-Bp21prI2.js";import"./use-project-native-view-presence-Cmq-429L.js";import"./use-file-configs-CsC2BHQ-.js";import"./site-slug-DebpOoQq.js";class X{constructor(t,n=4e3){this.onDisconnect=t,this.graceMs=n}onDisconnect;graceMs;timer;report(t){if(t==="connected"){clearTimeout(this.timer),this.timer=void 0;return}if(t==="failed"||t==="closed"){clearTimeout(this.timer),this.timer=void 0,this.onDisconnect();return}t==="disconnected"&&!this.timer&&(this.timer=setTimeout(this.onDisconnect,this.graceMs))}dispose(){clearTimeout(this.timer),this.timer=void 0}}const F=A({type:W(["session.input_transcript.delta","session.output_transcript.delta"]),event_id:_(),delta:_(),start_ms:U().nonnegative(),end_ms:U().nonnegative()}),H=A({type:C("session.delegation.created"),offset_ms:U().nonnegative(),delegation:A({id:_(),target:C("client")})});class Y{constructor(t,n){this.send=t,this.callbacks=n}send;callbacks;closed=!1;fragments=[];seen=new Set;delegated=new Set;consumed=new Set;pending=new Map;contexts=new Map;awaitingContext=new Map;receive(t,n=Date.now()){if(this.closed)return;const r=F.safeParse(t);if(r.success){const e=r.data;if(this.seen.has(e.event_id))return;this.seen.add(e.event_id);const s=e.type==="session.input_transcript.delta"?"user":"agent";if(this.fragments.push({role:s,text:e.delta,start:e.start_ms,end:e.end_ms,arrivedAt:n,id:e.event_id}),this.fragments.sort((o,i)=>o.start-i.start),this.fragments.length>4e3){this.callbacks.onError();return}this.callbacks.onMessage({role:s,message:e.delta,event_id:e.event_id});return}const a=H.safeParse(t);if(a.success){const{id:e}=a.data.delegation;if(this.delegated.has(e)||this.pending.has(e))return;if(this.delegated.size+this.pending.size>=40){this.callbacks.onError();return}this.pending.set(e,{offset:a.data.offset_ms,receivedAt:n});return}const m=A({type:C("session.thinking.appended"),client_event_id:_()}).safeParse(t);if(m.success){const e=m.data.client_event_id,s=this.awaitingContext.get(e);this.awaitingContext.delete(e),s&&(s.remaining.delete(e),s.remaining.size===0&&this.send({type:"session.commentary.append",event_id:crypto.randomUUID(),delegation_id:s.delegationId??null,content:"Studio has supplied the complete background result as context for this request. Briefly explain that result, including any failure or required approval. Acceptance or task creation alone does not mean the work completed."}));return}const p=A({type:_()}).safeParse(t);p.success&&p.data.type==="error"&&this.callbacks.onError()}tick(t=Date.now()){if(!this.closed)for(const[n,r]of this.pending){const a=this.fragments.filter(o=>o.start<r.offset),m=a.reduce((o,i)=>i.role==="user"?Math.max(o,i.arrivedAt):o,r.receivedAt);if(t-m<500)continue;const p=a.filter(o=>o.role==="user"&&!this.consumed.has(o.id));if(!p.length&&t-r.receivedAt<3e3)continue;if(this.pending.delete(n),this.delegated.add(n),!p.length){this.publishUpdate({delivery:"announce",delegationId:n,text:"No new transcribed request is available. No work was started. Ask the user to repeat the request."});continue}const e=p.map(o=>o.text).join("").trim(),s=[];for(const o of a){if(p.includes(o))continue;const i=s.at(-1);i?.role===o.role?i.text+=o.text:s.push({role:o.role,text:o.text})}if(e.length>J){this.publishUpdate({delivery:"announce",delegationId:n,text:"The spoken request is too long. No work was started. Ask the user to shorten it or continue in text."});continue}for(const o of p)this.consumed.add(o.id);this.callbacks.onDelegate({request:e,delegationId:n,transcript:B(s.map(({role:o,text:i})=>({role:o,text:i.trim()})).filter(({text:o})=>o))}).then(o=>{this.closed||this.publishUpdate({delivery:o.status==="rejected"?"announce":"context",delegationId:n,text:JSON.stringify(o)})}).catch(()=>{this.publishUpdate({delivery:"announce",delegationId:n,text:"Studio could not accept this request. Do not claim work started."})})}}publishUpdate(t){if(this.closed)return;if(t.contextId){if(this.contexts.get(t.contextId)===t.text)return;this.contexts.set(t.contextId,t.text)}const r=(t.contextId?`Updated ${t.contextId} data, superseding earlier values:
|
|
2
2
|
`:`Studio result data:
|
|
3
3
|
`)+t.text,a=new TextEncoder,m=t.delivery==="announce"&&a.encode(r).length>480,p={remaining:new Set,delegationId:t.delegationId};let e="",s=0;const o=()=>{if(!e)return;const i=crypto.randomUUID();m&&(p.remaining.add(i),this.awaitingContext.set(i,p)),this.send({type:t.delivery==="announce"&&!m?"session.commentary.append":"session.thinking.append",event_id:i,delegation_id:t.delegationId??null,content:e}),e="",s=0};for(const i of r){const v=a.encode(i).length;s+v>480&&o(),e+=i,s+=v}o()}close(){this.closed=!0,this.pending.clear(),this.awaitingContext.clear()}}async function go(E,t,n){n.throwIfAborted();const r=new RTCPeerConnection,a=r.createDataChannel("oai-events"),m=document.createElement("audio");m.autoplay=!0;let p,e,s,o,i=!1,v=!1,h,O,L=0,P=0,g,w,y=!1;const I=Promise.withResolvers(),x=Promise.withResolvers();x.promise.catch(()=>{});const b=new Y(d=>{!i&&a.readyState==="open"&&a.send(JSON.stringify(d))},t),q=new X(()=>{i||t.onDisconnect()}),M=async()=>{if(!i){i=!0,q.dispose(),b.close(),clearInterval(O),n.removeEventListener("abort",T),a.close(),r.close();for(const d of p?.getTracks()??[])d.stop();m.pause(),m.srcObject=null,e&&e.state!=="closed"&&await e.close().catch(()=>{})}},T=()=>{M()};n.addEventListener("abort",T,{once:!0});const u=AbortSignal.any([n,AbortSignal.timeout(3e4)]),j=x.promise,z=()=>x.reject(u.reason);u.addEventListener("abort",z,{once:!0}),j.catch(()=>{}),a.onmessage=({data:d})=>{if(!(i||typeof d!="string"))try{const l=JSON.parse(d);typeof l=="object"&&l!==null&&"type"in l&&(l.type==="session.started"&&(v=!0,x.resolve()),l.type==="session.closed"&&(I.resolve(),h||t.onDisconnect())),h||b.receive(l)}catch{t.onError()}},a.onclose=()=>{x.reject(new Error("Voice connection closed")),I.resolve(),!i&&!h&&t.onDisconnect()},r.onconnectionstatechange=()=>{i||q.report(r.connectionState)},r.ontrack=({streams:d,track:l})=>{if(i)return;const D=d[0]??new MediaStream([l]);m.srcObject=D,e??=new AudioContext,s=e.createAnalyser(),s.fftSize=256,o=new Uint8Array(s.fftSize),e.createMediaStreamSource(D).connect(s),e.resume().catch(()=>t.onError()),m.play().catch(()=>t.onError())};function N(){if(!s||!o||i)return 0;s.getByteTimeDomainData(o);let d=0;for(const l of o)d+=((l-128)/128)**2;return Math.min(1,Math.sqrt(d/o.length)*4)}try{const d=navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}}).then(c=>{if(i||u.aborted){for(const f of c.getTracks())f.stop();throw new DOMException("Voice connection cancelled","AbortError")}return p=c,c}),l=await Promise.race([d,new Promise((c,f)=>u.addEventListener("abort",()=>f(u.reason),{once:!0}))]);e??=new AudioContext,g=e.createAnalyser(),g.fftSize=256,w=new Uint8Array(g.fftSize),e.createMediaStreamSource(l).connect(g),await e.resume();for(const c of l.getAudioTracks())r.addTrack(c,l);const D=await r.createOffer();await r.setLocalDescription(D),u.throwIfAborted(),r.iceGatheringState!=="complete"&&await new Promise((c,f)=>{const S=()=>{r.iceGatheringState==="complete"&&(G(),c())},k=()=>{G(),f(u.reason)},G=()=>{r.removeEventListener("icegatheringstatechange",S),u.removeEventListener("abort",k)};r.addEventListener("icegatheringstatechange",S),u.addEventListener("abort",k,{once:!0}),S(),u.aborted&&k()});const V=r.localDescription?.sdp;if(!V)throw new Error("Missing voice offer");const R=await E(V,u);return await r.setRemoteDescription({type:"answer",sdp:R.sdp}),await j,n.throwIfAborted(),u.removeEventListener("abort",z),n.removeEventListener("abort",T),t.onConnect(),O=setInterval(()=>{if(i||h)return;if(b.tick(),g&&w&&!y){g.getByteTimeDomainData(w);const f=w.reduce((S,k)=>S+((k-128)/128)**2,0)/w.length;Math.sqrt(f)>.025&&(P=Date.now())}t.onUserSpeaking(!y&&Date.now()-P<400),N()>.02&&(L=Date.now()),t.onModeChange({mode:Date.now()-L<400?"speaking":"listening"})},100),{endSession:()=>(h??=(async()=>{b.close();for(const c of p?.getTracks()??[])c.stop();if(m.pause(),v&&a.readyState==="open"){a.send(JSON.stringify({type:"session.close"}));let c;await Promise.race([I.promise,new Promise(f=>{c=setTimeout(f,3e3)})]),clearTimeout(c)}await M()})(),h),publishUpdate:c=>b.publishUpdate(c),setMicMuted:c=>{y=c;for(const f of p?.getAudioTracks()??[])f.enabled=!y;y&&t.onUserSpeaking(!1)},getOutputVolume:N}}catch(d){throw await M(),d}}export{go as startOpenAIConversation};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,a2 as f,m as S,K as y,o as v}from"./index-
|
|
1
|
+
import{c as a,a2 as f,m as S,K as y,o as v}from"./index-BK190UFK.js";import{k as d}from"./use-project-native-view-presence-Cmq-429L.js";function c(e,i){return y.optimisticProjectSidebarViews(e,i)}function l(e){return typeof e=="object"&&e!==null}function b(e,i){return e[1]===i&&e[3]==="collection"&&e[4]==="VIRTUAL_MCP"}function P(e,i){if(!l(e))return e;if("item"in e&&l(e.item)&&e.item.id===i.id)return{...e,item:i};if(!("structuredContent"in e)||!l(e.structuredContent))return e;const s=e.structuredContent.items;if(!Array.isArray(s))return e;let r=!1;const t=s.map(n=>!l(n)||n.id!==i.id?n:(r=!0,i));return r?{...e,structuredContent:{...e.structuredContent,items:t}}:e}function x(e,i,s){e.setQueriesData({predicate:r=>b(r.queryKey,i)},r=>P(r,s))}function A(e,i,s){const r=e.getQueriesData({predicate:t=>b(t.queryKey,i)&&t.queryKey[5]===s});for(const[,t]of r)if(t?.item?.id===s)return t.item;return null}function V(e,i,s){return e.getQueryData(c(i,s))??null}function j(e,i){if(i)return{sidebarViews:[...i.views],sidebarViewsVersion:d};const s=e?.sidebarViews;return{sidebarViews:s===null?null:s?[...s]:void 0,sidebarViewsVersion:e?.sidebarViewsVersion}}function K(e,i,s){return i?{sidebarViews:[...i.views],sidebarViewsVersion:d}:s===void 0?{sidebarViews:e.sidebarViews===null?null:e.sidebarViews?[...e.sidebarViews]:void 0,sidebarViewsVersion:e.sidebarViewsVersion}:j(s,null)}function p(e,i,s,r,t){const n=V(e,i,s),o={revision:(n?.revision??0)+1,views:[...r],rollbackViews:n?[...n.rollbackViews]:[...t]};return e.setQueryData(c(i,s),o),{revision:o.revision,views:[...o.views],persistedViews:[...o.rollbackViews]}}function C(e,i,s){const r=V(e,i,s);return r?{revision:r.revision,views:[...r.views],persistedViews:[...r.rollbackViews]}:null}function m(e,i){const s=new Set(e),r=new Set(i);return s.size===r.size&&[...s].every(t=>r.has(t))}function R(e){return e?!m(e.views,e.persistedViews):!1}function k(e,i,s,{snapshot:r,saved:t,authoritativeViews:n}){if(!r)return{settledLatest:!1,reconciledViews:null};const o=V(e,i,s);if(!o||r.revision>o.revision)return{settledLatest:!1,reconciledViews:null};const u=n!==void 0?[...n]:t?[...r.views]:null,w={...o,rollbackViews:u??o.rollbackViews};return w.rollbackViews!==o.rollbackViews&&e.setQueryData(c(i,s),w),r.revision!==o.revision?{settledLatest:!1,reconciledViews:null}:(e.setQueryData(c(i,s),null),{settledLatest:!0,reconciledViews:t?u&&!m(u,r.views)?u:null:[...w.rollbackViews]})}function _(e){const i=a.c(5),{org:s}=f(),r=e??"";let t;i[0]!==s.id||i[1]!==r?(t=c(s.id,r),i[0]=s.id,i[1]=r,i[2]=t):t=i[2];let n;i[3]!==t?(n={queryKey:t,queryFn:O,enabled:!1,staleTime:Number.POSITIVE_INFINITY},i[3]=t,i[4]=n):n=i[4];const{data:o}=S(n);return o?.views}async function O(){return null}function L(e){const i=a.c(4),{org:s}=f(),r=v();let t;return i[0]!==s||i[1]!==r||i[2]!==e?(t={stage:(n,o)=>p(r,s.id,e,n,o),snapshot:()=>C(r,s.id,e),settle:n=>k(r,s.id,e,n)},i[0]=s,i[1]=r,i[2]=e,i[3]=t):t=i[3],t}export{L as a,b,j as i,R as o,K as p,A as r,_ as u,x as w};
|