decocms 4.507.2 → 4.507.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-jySIfQfO.js → ActiveShapeUtils-BAL0Xqny.js} +1 -1
- package/dist/client/assets/{AlertCircle-C49F0ts6.js → AlertCircle-T1ZkrR0m.js} +1 -1
- package/dist/client/assets/{AreaChart-DtekUHHL.js → AreaChart-Dvv3jub6.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CSSCO41y.js → ArrowLeft-CYKCt2D_.js} +1 -1
- package/dist/client/assets/{ArrowUp-eyGXli3J.js → ArrowUp-CrfIcCHY.js} +1 -1
- package/dist/client/assets/{BarChart-B6-ZUZgm.js → BarChart-Z1_46Epq.js} +1 -1
- package/dist/client/assets/{Building02-Cc0RR_mQ.js → Building02-BzqtLsiR.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Bn8cFml0.js → CategoricalChart-DSzs6PbU.js} +1 -1
- package/dist/client/assets/{CheckCircle-BED6dkLg.js → CheckCircle-Cyp8J2-O.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DeVUWHMb.js → ChevronSelectorVertical-bMnA4IfS.js} +1 -1
- package/dist/client/assets/{ChevronUp-M8O43yJN.js → ChevronUp-DWP9CKrv.js} +1 -1
- package/dist/client/assets/{Copy01-IjT5Cr-0.js → Copy01-4Op2Jutz.js} +1 -1
- package/dist/client/assets/{CreditCard01-CCewrsPV.js → CreditCard01-8ijEtUnj.js} +1 -1
- package/dist/client/assets/{DotsVertical-C3vEzxwp.js → DotsVertical-Ik04gU0Z.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Cb5oOttH.js → ErrorBarContext-1QYVhNWP.js} +1 -1
- package/dist/client/assets/{Globe04-DOtzWDgX.js → Globe04-DTYU91Z7.js} +1 -1
- package/dist/client/assets/{Image01-aYI2vrVV.js → Image01-BoNtuy7T.js} +1 -1
- package/dist/client/assets/{Key01-BnFprBC4.js → Key01-DVtNzjvm.js} +1 -1
- package/dist/client/assets/{Link01-CdThLL91.js → Link01-COgU4X0d.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Cemx_-td.js → LinkBroken01-1s3iBfyN.js} +1 -1
- package/dist/client/assets/{Monitor01-BZieTizR.js → Monitor01-BMmwz8er.js} +1 -1
- package/dist/client/assets/{Play-DJbpbnnH.js → Play-C_Kc3qTH.js} +1 -1
- package/dist/client/assets/{Plus-Xcxre04p.js → Plus-bl3Do1ab.js} +1 -1
- package/dist/client/assets/{SearchMd-BiMpzfAz.js → SearchMd-CuIII2sM.js} +1 -1
- package/dist/client/assets/{Sector-DzF1455G.js → Sector-Ca7XNqZx.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-7AUWsp7V.js → ShoppingBag01-CQamAcPv.js} +1 -1
- package/dist/client/assets/{Sun-DZd0pcUv.js → Sun-CT-ZvHiv.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-lbkLP1BV.js → SwitchHorizontal01-BMvJE9CE.js} +1 -1
- package/dist/client/assets/{Tool01-BuiUP3wu.js → Tool01-eRpAM_xP.js} +1 -1
- package/dist/client/assets/{Trash01-CSWWBhZk.js → Trash01-DtrweZMg.js} +1 -1
- package/dist/client/assets/{Upload01-By8WilO1.js → Upload01-dCDZcDY3.js} +1 -1
- package/dist/client/assets/{User01-558TF773.js → User01-N2rUxuZL.js} +1 -1
- package/dist/client/assets/{UserSquare-CWSxOMqR.js → UserSquare-BPqJsNeY.js} +1 -1
- package/dist/client/assets/{Users01-gicEePNg.js → Users01--Pjgrl_5.js} +1 -1
- package/dist/client/assets/{XAxis-qI7p2LLk.js → XAxis-Bcjro0Ob.js} +1 -1
- package/dist/client/assets/{XClose-BEUDzM_1.js → XClose-DBK6xbU_.js} +1 -1
- package/dist/client/assets/{ZoomOut-DmspxQ49.js → ZoomOut-BSgJ_qOu.js} +1 -1
- package/dist/client/assets/{access-gate-bpdPmASp.js → access-gate-DSd_cW3Q.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-D2-Fevp3.js → add-connection-dialog-B2yW98GA.js} +1 -1
- package/dist/client/assets/{agent-analytics-CHLX8Dwa.js → agent-analytics-DAcM92Eu.js} +1 -1
- package/dist/client/assets/agent-app-DMpGNnPR.js +1 -0
- package/dist/client/assets/{agent-assets-DWHiQD98.js → agent-assets-CpU6grt8.js} +1 -1
- package/dist/client/assets/{agent-automation-DObMz1kl.js → agent-automation-B-gVk0Iu.js} +1 -1
- package/dist/client/assets/{agent-automations-DYbb1V-B.js → agent-automations-Un1oiGTh.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DebQ4hkB.js → agent-connect-sources-D2iZNBca.js} +1 -1
- package/dist/client/assets/agent-deck-CZNDv1mI.js +1 -0
- package/dist/client/assets/{agent-e2e-BRkJGMbT.js → agent-e2e-BU3R6DRe.js} +1 -1
- package/dist/client/assets/{agent-experiments-BjnXROCp.js → agent-experiments-De5Xjb8U.js} +1 -1
- package/dist/client/assets/{agent-file-C84-2ZAM.js → agent-file-BUbOjh-I.js} +1 -1
- package/dist/client/assets/{agent-hosting-DhdLSA5K.js → agent-hosting-DUYz3ME7.js} +1 -1
- package/dist/client/assets/{agent-icon-6qcGzKLI.js → agent-icon-u2ivNkJK.js} +1 -1
- package/dist/client/assets/agent-library-CRicVjHe.js +1 -0
- package/dist/client/assets/agent-library-file-5bEyOzlc.js +1 -0
- package/dist/client/assets/{agent-monitor-OPCmresQ.js → agent-monitor-6ujZcZJe.js} +1 -1
- package/dist/client/assets/{agent-overview-DhpnVP3O.js → agent-overview-Bxaa87a8.js} +1 -1
- package/dist/client/assets/{agent-releases-D99QXu6E.js → agent-releases-Bf8Vhnqt.js} +1 -1
- package/dist/client/assets/agent-settings-DoaEiYch.js +1 -0
- package/dist/client/assets/{agent-site-editor-MPorMBYa.js → agent-site-editor-B8Gy3O3j.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-nxeUtWd2.js +2 -0
- package/dist/client/assets/agent-site-editor-content-MjcMIMIi.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BgfVqf-n.js +1 -0
- package/dist/client/assets/agent-view-B1-PgHLK.js +1 -0
- package/dist/client/assets/{agent-view-guard-f1rPRUHJ.js → agent-view-guard-D7Efz7aP.js} +1 -1
- package/dist/client/assets/{agents-list-CkAblqIe.js → agents-list-CjgsD106.js} +1 -1
- package/dist/client/assets/{ai-providers-BooBUwjF.js → ai-providers-DYVp9dmp.js} +1 -1
- package/dist/client/assets/{alert-ClPly-6t.js → alert-C4LKzrU_.js} +1 -1
- package/dist/client/assets/{alert-dialog-B2X6GVxf.js → alert-dialog-DiDDn4Bn.js} +1 -1
- package/dist/client/assets/{analytics-sections-CqsADfEb.js → analytics-sections-BTuh0sxQ.js} +1 -1
- package/dist/client/assets/api-keys-CAj6rmix.js +1 -0
- package/dist/client/assets/{api-keys-C7BCKoXO.js → api-keys-DT2jF2YV.js} +1 -1
- package/dist/client/assets/{app-editor-Cd1AaZAP.js → app-editor-2Z9PUdLT.js} +1 -1
- package/dist/client/assets/{asset-utils-PpGBHp7S.js → asset-utils-D_uCIG2N.js} +1 -1
- package/dist/client/assets/{auth-CDMxJjZ_.js → auth-CExazRf5.js} +1 -1
- package/dist/client/assets/{auth-catchall-CZDje7WE.js → auth-catchall-Bg4s733G.js} +1 -1
- package/dist/client/assets/{auth-entry-D9r_9K3P.js → auth-entry-DklrAmyd.js} +1 -1
- package/dist/client/assets/{auth-split-layout-oUo4Hk_G.js → auth-split-layout-yWRpLXbZ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BeZlu0Nl.js → authenticate-and-persist-oauth-B43eE55s.js} +1 -1
- package/dist/client/assets/{automation-list-row-DWfHs1ka.js → automation-list-row-rr5_wiXj.js} +1 -1
- package/dist/client/assets/{automation-runs-DYFrers-.js → automation-runs-Dzy5TJhL.js} +1 -1
- package/dist/client/assets/{automations-Dv14tuP7.js → automations-D7-lperE.js} +1 -1
- package/dist/client/assets/{autosend-Bh9N6QTP.js → autosend-CUxwH8aa.js} +1 -1
- package/dist/client/assets/{avatar-DLW_zv2o.js → avatar-k7zVZ1nb.js} +1 -1
- package/dist/client/assets/{badge-CNOkHFGC.js → badge-BE7xUmDV.js} +1 -1
- package/dist/client/assets/{block-document-BebIohGg.js → block-document-BISmqkMT.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Biv5NAm3.js → blocks-preview-workspace-context-9rYmJjdK.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-BgNWRkH8.js → blocks-tab-states-B0RpWAaK.js} +3 -3
- package/dist/client/assets/{blog-schema-DiNpH4vZ.js → blog-schema-CYYjVJrx.js} +1 -1
- package/dist/client/assets/{board-analytics-BaTYwWrV.js → board-analytics-BPcQpX0a.js} +1 -1
- package/dist/client/assets/{buckets-DE3qVy9B.js → buckets-7sZ822gQ.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BvSYvw5x.js → build-improve-prompt-doc-4hqh7aGt.js} +1 -1
- package/dist/client/assets/{calendar-BTqmD5cp.js → calendar-C_cq2tGg.js} +1 -1
- package/dist/client/assets/{capability-load-error-2YdYn89j.js → capability-load-error-Dm_yuCkZ.js} +1 -1
- package/dist/client/assets/{category-editor-Cgt25XK9.js → category-editor-CQjH2oSA.js} +1 -1
- package/dist/client/assets/{chart-DjCzbQW1.js → chart-B2lVx6UJ.js} +1 -1
- package/dist/client/assets/{chat-context-Ccuwf3qi.js → chat-context-DL44ik-l.js} +1 -1
- package/dist/client/assets/{chat-draft-DHvm4xVB.js → chat-draft-BGj508pV.js} +1 -1
- package/dist/client/assets/{checkbox-Cniz6XYs.js → checkbox-CTOJeQYr.js} +1 -1
- package/dist/client/assets/{choose-editor-CV0_JmWA.js → choose-editor-BoM3oSha.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BMxtnAHr.js → cli-auth-success-CmIjetif.js} +1 -1
- package/dist/client/assets/{client-icons-B-2sMI-E.js → client-icons-C4GjI8VB.js} +1 -1
- package/dist/client/assets/cms-settings-editor-bq02-RQH.js +1 -0
- package/dist/client/assets/{collapsible-0KvGZBpu.js → collapsible-DM3c5ETU.js} +1 -1
- package/dist/client/assets/{collection-detail-93nG2ose.js → collection-detail-D94lQ1Zc.js} +1 -1
- package/dist/client/assets/{collection-display-button-C_VxQwWc.js → collection-display-button-Dz_a8Rja.js} +1 -1
- package/dist/client/assets/{collection-search-D-0zgzsL.js → collection-search-BgZ6ncMc.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DPIsyB6U.js → collection-table-wrapper-DYmuLoSL.js} +1 -1
- package/dist/client/assets/{collection-tabs-BY3qzlzd.js → collection-tabs-C9sF3Ij7.js} +1 -1
- package/dist/client/assets/{column-rules-DeMbpPyG.js → column-rules-DVJwf6Ig.js} +1 -1
- package/dist/client/assets/{combobox-DihCFI-U.js → combobox-CWvfr2Bd.js} +1 -1
- package/dist/client/assets/{command-CAjgUN60.js → command-kL2BpXNu.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-B5j1olGB.js → companion-mcps-section-BWwhuQv7.js} +1 -1
- package/dist/client/assets/{config-ChuL84XS.js → config-CmZDuh3u.js} +1 -1
- package/dist/client/assets/{connect-D60mJT6h.js → connect-Cxk1UNDF.js} +1 -1
- package/dist/client/assets/{connect-layout-YDysA7af.js → connect-layout-CuQDm86w.js} +1 -1
- package/dist/client/assets/{connection-DD0hCw09.js → connection-ClykfAAS.js} +1 -1
- package/dist/client/assets/{connection-card-CyrhBBJS.js → connection-card-CKRGS9aW.js} +1 -1
- package/dist/client/assets/{connection-detail-DhwlKLOJ.js → connection-detail-CIN8FXIj.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BEx47naA.js → connection-form-helpers-DaJ65Rex.js} +1 -1
- package/dist/client/assets/{connections-CZn8bCAP.js → connections-q1djGcEd.js} +1 -1
- package/dist/client/assets/{content-tab-DshitHzC.js → content-tab-Dvm-MV4U.js} +3 -3
- package/dist/client/assets/{context-D0Ph-RBZ.js → context-BXY_cB7z.js} +1 -1
- package/dist/client/assets/{context-menu-DaGblEhL.js → context-menu-CJERsJPE.js} +1 -1
- package/dist/client/assets/{core.esm-BlIrt00V.js → core.esm-BG0jKDkq.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-ee9_Fve8.js → create-organization-dialog-qyMaxypW.js} +1 -1
- package/dist/client/assets/{daily-pulse-CsWzX1Ru.js → daily-pulse-DeWjd8Jy.js} +1 -1
- package/dist/client/assets/{discover-C9CAEVb4.js → discover-0qam8o_r.js} +1 -1
- package/dist/client/assets/{domain-settings-CJaRsZyt.js → domain-settings-Ci1klqCY.js} +1 -1
- package/dist/client/assets/{drawer-BxIrQZqO.js → drawer-NCwSL4IN.js} +1 -1
- package/dist/client/assets/{editor-C0Y6NYE-.js → editor-BAFV_HOz.js} +1 -1
- package/dist/client/assets/{editor-classes-Bd7RVaJi.js → editor-classes-Bf1cMZ5c.js} +1 -1
- package/dist/client/assets/{empty-state-CeH8S3Yb.js → empty-state-CazxAouP.js} +1 -1
- package/dist/client/assets/{empty-state-Bv2fyayR.js → empty-state-CyvDawXM.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CVxXe6TN.js → extract-connection-data-Df_4NBNm.js} +1 -1
- package/dist/client/assets/{feature-gate-BiCs7UB2.js → feature-gate-DKISz7u2.js} +1 -1
- package/dist/client/assets/{feature-paywall-Bg9evHOs.js → feature-paywall-BfJ3JcG2.js} +1 -1
- package/dist/client/assets/{file-explorer-DBjksoe3.js → file-explorer-DBf-vGM2.js} +1 -1
- package/dist/client/assets/{file-preview-ohLcWFR0.js → file-preview-DG6sL6GL.js} +1 -1
- package/dist/client/assets/{file-share-button-Cj6Po3M3.js → file-share-button-v2uCK60u.js} +1 -1
- package/dist/client/assets/{file-type-icon-Dxw9T3ag.js → file-type-icon-CnGkqsAH.js} +1 -1
- package/dist/client/assets/flat-project-DW1zMPL_.js +1 -0
- package/dist/client/assets/{folder-icon-CTDuIMqX.js → folder-icon-OnROrjIS.js} +1 -1
- package/dist/client/assets/{form-Db6N6TDa.js → form-B0S4gwZl.js} +1 -1
- package/dist/client/assets/{general-Cgs5w9co.js → general-Bwo2AG61.js} +1 -1
- package/dist/client/assets/{home-CeX3Z1XE.js → home-Pp3nSwfE.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-JXcVEfrI.js → hosted-publish-feedback-jZYaiFNy.js} +1 -1
- package/dist/client/assets/{icon-button-WQQroCBK.js → icon-button-BDgagVz4.js} +1 -1
- package/dist/client/assets/{index-D8O82DD7.js → index-AXw2yr4_.js} +1 -1
- package/dist/client/assets/{index-DdxfBS9Y.js → index-B9UR2St-.js} +1 -1
- package/dist/client/assets/{index-p-1akJlT.js → index-BUcAISa8.js} +2 -2
- package/dist/client/assets/{index-LAQehZep.js → index-Bfspj4xO.js} +1 -1
- package/dist/client/assets/{index-tu8iygVP.js → index-CvWx2Izz.js} +1 -1
- package/dist/client/assets/{index-Bw0JSfbm.js → index-Dd00K3eL.js} +1 -1
- package/dist/client/assets/{index-DCkpKmlr.js → index-JOJ7PVEg.js} +1 -1
- package/dist/client/assets/{index-CE8cdWnC.js → index-VMpHqTms.js} +1 -1
- package/dist/client/assets/{index-mJxHbuG8.js → index-_4HSlqk7.js} +1 -1
- package/dist/client/assets/{index-XGgg6Ukt.js → index-awJH-yt2.js} +3 -3
- package/dist/client/assets/{index--5hJacOk.js → index-c-E5TfxF.js} +1 -1
- package/dist/client/assets/{index-BGYDBFHU.js → index-jyhHzpR3.js} +1 -1
- package/dist/client/assets/{index-BRCFiPag.js → index-qMd-hqZw.js} +1 -1
- package/dist/client/assets/{index-redirect-ClvH8pll.js → index-redirect-BxHx01ue.js} +1 -1
- package/dist/client/assets/{index-BtVJvkKj.js → index-rxNSDZLc.js} +1 -1
- package/dist/client/assets/{index-BdfVBfZr.js → index-xJOQw_q2.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-LkWhFNmL.js → infiniteQueryObserver-DOzqu3CQ.js} +1 -1
- package/dist/client/assets/{infra-billing-BXK-vKKS.js → infra-billing-D938gqE_.js} +1 -1
- package/dist/client/assets/{input-DZSN2_kg.js → input-B74-qJgM.js} +3 -3
- package/dist/client/assets/{input-BwdVmY-Z.js → input-BZCpPpnc.js} +1 -1
- package/dist/client/assets/{integration-icon-BfiQkuuA.js → integration-icon-ChciBY2o.js} +1 -1
- package/dist/client/assets/{jira-icon-D82mcgHX.js → jira-icon-B6QeGFuc.js} +1 -1
- package/dist/client/assets/{label-D1700VqO.js → label-eEmb1iBr.js} +1 -1
- package/dist/client/assets/{layout-CmiJ0weC.js → layout-0OB0eIys.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BBEazmY_.js → legacy-agents-deep-1rcXPVaq.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DX4_1VIr.js → legacy-main-redirect-C4cHO-CO.js} +1 -1
- package/dist/client/assets/library-4m0WPS60.js +1 -0
- package/dist/client/assets/{library-tab-U68AV6c3.js → library-tab-1vjc8QRq.js} +1 -1
- package/dist/client/assets/{login-J_4Re9C6.js → login-Cr9q8XjG.js} +1 -1
- package/dist/client/assets/{markdown-yum68Wep.js → markdown-B_belhjs.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CjApEMHO.js → mcp-app-renderer-BTEXkB1o.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DyD71bgf.js → mcp-oauth-BjnYnOAT.js} +1 -1
- package/dist/client/assets/{mcp-oauth-i6-iEEVI.js → mcp-oauth-Df_GM2_g.js} +1 -1
- package/dist/client/assets/{members-C394WPAn.js → members-CQVWPaLO.js} +1 -1
- package/dist/client/assets/{memory-JQY8gvE2.js → memory-tRje6nGV.js} +1 -1
- package/dist/client/assets/{mini-report-page-xHazX5G_.js → mini-report-page-PBpsjjW-.js} +1 -1
- package/dist/client/assets/{mock-board-TN4Nq-YY.js → mock-board-BMnnvW9l.js} +1 -1
- package/dist/client/assets/{monaco-editor-BZbJgxOV.js → monaco-editor-D7Wz-MKW.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DAZum_Qb.js → monitoring-stats-row-DsjQfEly.js} +1 -1
- package/dist/client/assets/{multi-select-JpvMfiVw.js → multi-select-VdJ2yUcb.js} +1 -1
- package/dist/client/assets/{mustache-Bt-JW5rB.js → mustache-BzIipqEK.js} +1 -1
- package/dist/client/assets/{new-project-dialog-C0rIX_XO.js → new-project-dialog-4pgTOLZa.js} +1 -1
- package/dist/client/assets/{oauth-callback-C5XzBraz.js → oauth-callback-Cgt1SkEU.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DcG85B23.js → oauth-callback-ai-provider-CJw6k__Q.js} +1 -1
- package/dist/client/assets/{onboarding-DW4LAZLj.js → onboarding-HsEzs1cx.js} +1 -1
- package/dist/client/assets/{openai-conversation-B_n_Z1ww.js → openai-conversation-C9xs6L0k.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-0ZawMDqn.js → optimistic-project-sidebar-views-Dp6MX9Wo.js} +1 -1
- package/dist/client/assets/{order-monitor-day-dqFhfYqs.js → order-monitor-day-kvoSv5Oy.js} +1 -1
- package/dist/client/assets/{organization-choice-B8th9GDj.js → organization-choice-Dx3Q-TEp.js} +1 -1
- package/dist/client/assets/{orgs-DxYMf8VM.js → orgs-BvIpo_CC.js} +1 -1
- package/dist/client/assets/{page-seo-form-Dkd11mxM.js → page-seo-form-BRGFtgzV.js} +1 -1
- package/dist/client/assets/{pair-CdvXgzho.js → pair-DTCbqEJJ.js} +1 -1
- package/dist/client/assets/{plan-ladder-tDE3yVKX.js → plan-ladder-BosseGj-.js} +1 -1
- package/dist/client/assets/{popover-Cb6oJHii.js → popover-2LCOzLqM.js} +1 -1
- package/dist/client/assets/{post-calendar-CC5kL8Uu.js → post-calendar-B-KeJmLM.js} +1 -1
- package/dist/client/assets/{post-editor-AQrMiPgh.js → post-editor-BBwuotw_.js} +1 -1
- package/dist/client/assets/{preview-content-BUvb2joL.js → preview-content-BrSgIQdx.js} +1 -1
- package/dist/client/assets/{preview-dialog-C3L3Hf_k.js → preview-dialog-DxCc_83x.js} +1 -1
- package/dist/client/assets/{preview-panel-D-BuFBy0.js → preview-panel-CEvLrF57.js} +1 -1
- package/dist/client/assets/{preview-tab-LnJANPnP.js → preview-tab-EDXeaUjq.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-nfttqvPX.js → product-picker-dialog-CJY03R9-.js} +1 -1
- package/dist/client/assets/{profile-BkI92qNB.js → profile-ocYhDdf-.js} +1 -1
- package/dist/client/assets/{project-app-view-CN3iYy1I.js → project-app-view-BIPtsxJX.js} +1 -1
- package/dist/client/assets/{project-feed-BK-cIWDp.js → project-feed-2x8KDo1u.js} +1 -1
- package/dist/client/assets/{project-icon-F3J_yQ0q.js → project-icon-BVi6jykh.js} +1 -1
- package/dist/client/assets/project-reports-CCEjXGH-.js +1 -0
- package/dist/client/assets/project-tasks-B_cB8jUa.js +1 -0
- package/dist/client/assets/{projects-t0-Z9tsc.js → projects-B1gqzvaP.js} +1 -1
- package/dist/client/assets/{projects-empty-state-C0yTvrcV.js → projects-empty-state-msmXPtF9.js} +1 -1
- package/dist/client/assets/{prompts-MYwpW0Lg.js → prompts-DPI0Lbhi.js} +1 -1
- package/dist/client/assets/record-editor-C0cJzt3s.js +1 -0
- package/dist/client/assets/{redirect-editor-CGtccN6N.js → redirect-editor-ClyrjULu.js} +1 -1
- package/dist/client/assets/reports-7MVtogQn.js +1 -0
- package/dist/client/assets/{reports-kTfamDed.js → reports-D0-3BDN9.js} +1 -1
- package/dist/client/assets/{reports-onboarding-RuKhb80u.js → reports-onboarding-D5Ohh65U.js} +1 -1
- package/dist/client/assets/{reports-tab-C31tcj9A.js → reports-tab-CGM4OgZ-.js} +2 -2
- package/dist/client/assets/{repositories-bY6iYAdw.js → repositories-BX0zzV9H.js} +1 -1
- package/dist/client/assets/{repository-binding-CrTJC4PH.js → repository-binding-C4OsSA6m.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DC6F2OwG.js → repository-import-picker-B0pfCyxB.js} +1 -1
- package/dist/client/assets/{repository-picker-Bo-zD5oc.js → repository-picker-BjLyF0UU.js} +1 -1
- package/dist/client/assets/{require-capability-eym-U6A2.js → require-capability-Sr5QmqkV.js} +1 -1
- package/dist/client/assets/{required-auth-layout-B5cH35q0.js → required-auth-layout-BcWyX0tN.js} +1 -1
- package/dist/client/assets/{reset-password-DQCEjF6G.js → reset-password-Dv7DePXr.js} +1 -1
- package/dist/client/assets/{resizable-BNDCWJ7j.js → resizable-rQgJB4MP.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DNW-g7NS.js → resolve-tab-icon-CcwQIqdW.js} +1 -1
- package/dist/client/assets/{review-settings-BvwWcj_E.js → review-settings-DaCbRDPV.js} +1 -1
- package/dist/client/assets/{roles-BjOwGYNe.js → roles-CMWEHao_.js} +1 -1
- package/dist/client/assets/{route-DdQnn3q9.js → route-BRpVGRtq.js} +1 -1
- package/dist/client/assets/route-Ch1P1tF0.js +1 -0
- package/dist/client/assets/{route-Cumdkp6N.js → route-CowAxBHf.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-LiaBB_6I.js → sandbox-lifecycle-context-Cai1YOLP.js} +1 -1
- package/dist/client/assets/{schema-nZYp8MHf.js → schema-Ctps-XT5.js} +1 -1
- package/dist/client/assets/{schema-EWHGi9mE.js → schema-DFwdEHXk.js} +1 -1
- package/dist/client/assets/{scroll-area-mUNQ_2-E.js → scroll-area-BquREfD9.js} +1 -1
- package/dist/client/assets/{search-input-DmONJsTJ.js → search-input-B3OlXYBk.js} +1 -1
- package/dist/client/assets/{search-toggle-CDUbsFv3.js → search-toggle-DlbC-qm6.js} +1 -1
- package/dist/client/assets/{secret-ciphertext-LIZTOM-t.js → secret-ciphertext-DspRdh2f.js} +1 -1
- package/dist/client/assets/{secret-picker-Dtf5aH-D.js → secret-picker-QpjTt9i4.js} +1 -1
- package/dist/client/assets/{secrets-BcM5O7u3.js → secrets-CweZX_-G.js} +1 -1
- package/dist/client/assets/{sections-editor-CQG2qvyW.js → sections-editor-tLPCjatE.js} +1 -1
- package/dist/client/assets/{select-jUuHkfjB.js → select-BZtkY-6Q.js} +1 -1
- package/dist/client/assets/{select-model-dvdCc609.js → select-model-ypXtXaeM.js} +1 -1
- package/dist/client/assets/{seo-editor-Dx3q24BD.js → seo-editor-BThkwHKz.js} +1 -1
- package/dist/client/assets/{separator-CHyWK0Qn.js → separator-WCuRepY7.js} +1 -1
- package/dist/client/assets/{settings-tab-BtQzOYK6.js → settings-tab-B_OtBvtL.js} +1 -1
- package/dist/client/assets/{sheet-DMEBFfdP.js → sheet-wIGY1BhL.js} +1 -1
- package/dist/client/assets/{shell-layout-DA1U2kkD.js → shell-layout-C6in_tdZ.js} +1 -1
- package/dist/client/assets/site-editor-DN_jWyDx.js +1 -0
- package/dist/client/assets/{site-editor-toast-DpTt5s80.js → site-editor-toast-DzpqzRIN.js} +1 -1
- package/dist/client/assets/{skills-DQF-uSzE.js → skills-CfpoVQzd.js} +1 -1
- package/dist/client/assets/{slider-zbUWyrgS.js → slider-DlGWUSHl.js} +1 -1
- package/dist/client/assets/{sortable.esm-BSVJlRZf.js → sortable.esm-CX1GpTrE.js} +1 -1
- package/dist/client/assets/{sso-D91zcNn9.js → sso-YsEFJ35H.js} +1 -1
- package/dist/client/assets/{suggestion-DBa1TtKe.js → suggestion-BDDkx8wt.js} +1 -1
- package/dist/client/assets/{switch-D5BJVOIP.js → switch-ByNrRBdU.js} +1 -1
- package/dist/client/assets/{symbol-BNQRzFZG.js → symbol-BMdRj-zf.js} +1 -1
- package/dist/client/assets/{synced-repos-DbzzsO4o.js → synced-repos-CTcDXXZs.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DSbT5Juj.js → tab-icon-glyph-DqaNYjGu.js} +1 -1
- package/dist/client/assets/{table-BxCPcPbb.js → table-BnEG4fsZ.js} +1 -1
- package/dist/client/assets/{tabs-DG-0hqxq.js → tabs-CwSp61cB.js} +1 -1
- package/dist/client/assets/{task-board-qH-zSxS3.js → task-board-hdrVwFVS.js} +1 -1
- package/dist/client/assets/{task-route-DQ-RXVcD.js → task-route-CxU8BSZk.js} +1 -1
- package/dist/client/assets/{task-status-BdHKicFV.js → task-status-DpKiRcZA.js} +1 -1
- package/dist/client/assets/taskboard-analytics-9U6nRSeM.js +1 -0
- package/dist/client/assets/tasks-9qvqdnze.js +1 -0
- package/dist/client/assets/{tasks-7BmccsLt.js → tasks-Ckh-cnxw.js} +1 -1
- package/dist/client/assets/{textarea-CQEBFigV.js → textarea-CRyjwEqe.js} +1 -1
- package/dist/client/assets/{thread-analytics-D6QACDju.js → thread-analytics-BFx9-ViN.js} +1 -1
- package/dist/client/assets/{thread-intent-LfHRYRWC.js → thread-intent-DhkLy13k.js} +1 -1
- package/dist/client/assets/{thread-route-DPF9Q-Zg.js → thread-route-BzAkvXZO.js} +1 -1
- package/dist/client/assets/{thread-route-BIvY3iy0.js → thread-route-iBVNlpET.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BLMeXbLM.js → thread-sheet-body-CCi8emNA.js} +1 -1
- package/dist/client/assets/{time-range-picker--BYX_87N.js → time-range-picker-BrfdBzqI.js} +1 -1
- package/dist/client/assets/{toggle-group-BEVDihe8.js → toggle-group-Cke1wKDH.js} +1 -1
- package/dist/client/assets/{tool-namespace-Dcr66XbC.js → tool-namespace-BXFHxu5_.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DXJ1vH5Z.js → toolbar-icon-button-WOmWcuPV.js} +1 -1
- package/dist/client/assets/{tooltip-OxzEYyq8.js → tooltip-Npd1IBFB.js} +1 -1
- package/dist/client/assets/{tooltipContext-F_F397K5.js → tooltipContext-C_RxKwqR.js} +1 -1
- package/dist/client/assets/{track-BzNFS1Wu.js → track-DWiQitlP.js} +1 -1
- package/dist/client/assets/{types-2GaxflNM.js → types-JYftUHor.js} +1 -1
- package/dist/client/assets/{url-slug-DIeHU92G.js → url-slug-psmAhJiF.js} +1 -1
- package/dist/client/assets/{usage-stats-7JI4qqsk.js → usage-stats-DeKdK9SW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Gj0qAd5n.js → use-ai-providers-CBBzjFhl.js} +1 -1
- package/dist/client/assets/{use-app-takeover-bhFW4jjZ.js → use-app-takeover-zY0NJ0sD.js} +1 -1
- package/dist/client/assets/{use-automations-CHxa5Awm.js → use-automations-CjaoEOVQ.js} +1 -1
- package/dist/client/assets/{use-autosave-Cg3HXp8E.js → use-autosave-C0hpkW37.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-Bsf8Ofz7.js → use-chat-navigation-Cxan89R8.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CZTHUR3c.js → use-clock-tick-DDv64CjX.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BdQpJxNA.js → use-connect-companion-Cq1d8llk.js} +1 -1
- package/dist/client/assets/{use-connection-DJY11N6-.js → use-connection-DD-60zit.js} +1 -1
- package/dist/client/assets/{use-content-sync--SRRJ-Mw.js → use-content-sync-B6jQ4Cv-.js} +1 -1
- package/dist/client/assets/{use-copy-CCruuyq5.js → use-copy-D8rIRHRy.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-xZ1qTsxw.js → use-create-virtual-mcp-C6rhnZK4.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BdVPe2o0.js → use-date-fns-locale-BHSKPU1I.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B72Pttro.js → use-debounced-autosave-DlgW8h0y.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Ci8g1xZm.js → use-debounced-value-DAimUErS.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CYX05LPq.js → use-deco-credits-g8JxcvuQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-Y_bEM1qx.js → use-decopilot-events-1Ue6t9uD.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BpaP2GE0.js → use-delete-connection-aWCoQCSI.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CXE8V2Rr.js → use-deployment-admin-C_cAoqcz.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-1ZUF1juP.js → use-ensure-project-folder-COMVsdzC.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-RKLJh4cF.js → use-fast-preview-draft-url-CnqLh_PK.js} +1 -1
- package/dist/client/assets/{use-file-configs-CaudfVHS.js → use-file-configs-Yj2yOnDl.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BzeoWUs-.js → use-infinite-scroll-Dzt1HFZA.js} +1 -1
- package/dist/client/assets/{use-join-requests-B0Lb4Xld.js → use-join-requests-Ca0-ZmOx.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CpKxJuHK.js → use-main-panel-tabs-Dw0WqVQl.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CD5U_xkB.js → use-mcp-auth-status-Bkm1SdFb.js} +1 -1
- package/dist/client/assets/{use-mcp-client-TpYhnmjl.js → use-mcp-client-CXzIAVI_.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CpmfoZzy.js → use-mcp-prompts-B04lynbc.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BihOJhwY.js → use-mcp-tools-DOnkoD66.js} +1 -1
- package/dist/client/assets/{use-members-qFBNBM3N.js → use-members-DOrbNcAJ.js} +1 -1
- package/dist/client/assets/{use-mobile-vYE2HB1P.js → use-mobile-DszEwU_T.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-p0i1D6nD.js → use-navigate-to-agent-BE6ZEPUi.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-D_QihQeB.js → use-open-billing-url-DUKZxYlJ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-Fk6ICmBW.js → use-org-auth-client-CpM0RfU1.js} +1 -1
- package/dist/client/assets/{use-org-fs-CAd5ZqC2.js → use-org-fs-D7bxmks4.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CQBUzeD0.js → use-org-repo-syncs-DYJrqXto.js} +1 -1
- package/dist/client/assets/{use-org-sso-BfZer93d.js → use-org-sso-Cmy5SNH_.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Dg8DgOVo.js → use-organization-roles-Ch4iCVoq.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BFBW8RTu.js → use-organization-settings-DjWvQexi.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-Cz7L1teW.js → use-panel-navigate-CeDVVCkS.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-Bxsn_JFS.js → use-project-native-view-presence-YWMyr72T.js} +1 -1
- package/dist/client/assets/{use-project-scope--iaz7oOx.js → use-project-scope-5YpNgUL6.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BlKs22ZO.js → use-recent-apps-BY5qGNsG.js} +1 -1
- package/dist/client/assets/{use-releases-DJ7h8Qee.js → use-releases-DNcZGEW5.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CBZ_dauu.js → use-reports-diagnostic-CkT6fJ7D.js} +1 -1
- package/dist/client/assets/{use-secrets-DS6b7i0g.js → use-secrets-uk71zh7-.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DhPFhZwv.js → use-section-preview-base-BYZiHlaA.js} +1 -1
- package/dist/client/assets/{use-tags-BYGeHLbk.js → use-tags-CKSnijO-.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-kSCSn8a8.js → use-task-board-analytics-q-mfDhSM.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BXbE2HoE.js → use-task-board-events-D29THDyx.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BXR3CLsn.js → use-task-board-item-prs-C32PmmQm.js} +1 -1
- package/dist/client/assets/{use-task-board-items-Cl2KTjjg.js → use-task-board-items-Cj9ZgoVC.js} +1 -1
- package/dist/client/assets/{use-task-metadata-CEVJreaj.js → use-task-metadata-DnDtZNKw.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DI0UUy4e.js → use-thread-analytics-DqFvOcsE.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DxXrDY7V.js → use-thread-outputs-C6dqZco1.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DRIZEKZQ.js +1 -0
- package/dist/client/assets/{useQueries-CuK-BS9F.js → useQueries-Ds44Skcl.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DLwZomQy.js +1 -0
- package/dist/client/assets/{users-wJGegpez.js → users-CuQ1a_93.js} +1 -1
- package/dist/client/assets/{utils-Ci3T7CsR.js → utils-B4VCCAxN.js} +1 -1
- package/dist/client/assets/{variant-calendar-Cjo5vNvc.js → variant-calendar-i6jj6ehs.js} +1 -1
- package/dist/client/assets/{variant-draft-pointer-CFIC5SMO.js → variant-draft-pointer-DOXokiAV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CdIfZN7k.js → view-mode-toggle-7-N5f6LY.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BJLRloMY.js → virtual-mcp-BT4ljKsC.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CTU0zZto.js → watch-sse-pool-CBn5OZ_Z.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +618 -618
- package/package.json +1 -1
- package/dist/client/assets/agent-app-tzNa-TNJ.js +0 -1
- package/dist/client/assets/agent-deck-BCqe639U.js +0 -1
- package/dist/client/assets/agent-library-DNOIKpUu.js +0 -1
- package/dist/client/assets/agent-library-file-DDutw3lu.js +0 -1
- package/dist/client/assets/agent-settings-fdQZXBGW.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Bh5LoZTU.js +0 -2
- package/dist/client/assets/agent-site-editor-content-D8dj4Hmz.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DQYY8I7P.js +0 -1
- package/dist/client/assets/agent-view-DmLNs6HS.js +0 -1
- package/dist/client/assets/api-keys-CINFl9fA.js +0 -1
- package/dist/client/assets/cms-settings-editor-B8EnFyLX.js +0 -1
- package/dist/client/assets/flat-project-NwcrmxWG.js +0 -1
- package/dist/client/assets/library-CaFuwk0-.js +0 -1
- package/dist/client/assets/project-reports-DgyjcFph.js +0 -1
- package/dist/client/assets/project-tasks-CmYcTX9M.js +0 -1
- package/dist/client/assets/record-editor-CBoC3ga-.js +0 -1
- package/dist/client/assets/reports-4V9HF3Ys.js +0 -1
- package/dist/client/assets/route-Nd3qdGiT.js +0 -1
- package/dist/client/assets/site-editor-DRIpZazl.js +0 -1
- package/dist/client/assets/taskboard-analytics-BPqcdFgc.js +0 -1
- package/dist/client/assets/tasks-CoDEIHpe.js +0 -1
- package/dist/client/assets/useInfiniteQuery-v5wivWhC.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BZNUHruQ.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,eV 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,eV as ye,l as ve,b1 as ce,m as ze,h as Ee}from"./index-BUcAISa8.js";import{t as ke}from"./Building02-BzqtLsiR.js";import{s as Ce}from"./User01-N2rUxuZL.js";import{A as Me,b as Oe}from"./alert-C4LKzrU_.js";import{T as _e,a as De,c as Fe}from"./tooltip-Npd1IBFB.js";import{C as Pe}from"./collection-tabs-C9sF3Ij7.js";import{E as Le}from"./empty-state-CazxAouP.js";import{u as $e}from"./use-clock-tick-DDv64CjX.js";import{e as qe,u as Ae,s as Ie,w as Ke}from"./use-org-fs-D7bxmks4.js";import"./index-VMpHqTms.js";import"./badge-BE7xUmDV.js";import"./useInfiniteQuery-DRIZEKZQ.js";import"./infiniteQueryObserver-DOzqu3CQ.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-BUcAISa8.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,fy as f,j as l,H as h,fz as g}from"./index-
|
|
1
|
+
import{c as p,r as c,fy as f,j as l,H as h,fz as g}from"./index-BUcAISa8.js";function y(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 w(){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{y as P,w 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-BUcAISa8.js";import{l as S,c as L,F as $}from"./editor-BAFV_HOz.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-DAZum_Qb.js → monitoring-stats-row-DsjQfEly.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-BUcAISa8.js";import{C as Q,d as Z}from"./chart-B2lVx6UJ.js";import{C as tt,Y as et,A as mt,a as dt}from"./AreaChart-Dvv3jub6.js";import{X as at}from"./XAxis-Bcjro0Ob.js";import{C as ut}from"./tooltipContext-C_RxKwqR.js";import{a as ht,B as pt}from"./BarChart-Z1_46Epq.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-BUcAISa8.js";import{B as re}from"./badge-BE7xUmDV.js";import{C as ce}from"./checkbox-CTOJeQYr.js";import{t as de}from"./ChevronUp-DWP9CKrv.js";import{e as xe,C as ge,b as me,c as ve,a as je,d as Ce}from"./command-kL2BpXNu.js";import{a as be,b as Ne,P as ye}from"./popover-2LCOzLqM.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-BUcAISa8.js";import{a as L}from"./input-B74-qJgM.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-DzpqzRIN.js";import{t as ie}from"./sandbox-git-api-CRxdlhrN.js";import{u as oe}from"./chat-context-DL44ik-l.js";import{b as ce}from"./sandbox-url-D3mC8qhT.js";import{a as ue}from"./utils-B4VCCAxN.js";import{i as le}from"./CheckCircle-Cyp8J2-O.js";import{a as fe}from"./Copy01-4Op2Jutz.js";import{MonacoCodeEditor as pe}from"./monaco-editor-D7Wz-MKW.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-C0rIX_XO.js → new-project-dialog-4pgTOLZa.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-BUcAISa8.js";import{i as B}from"./ArrowLeft-CYKCt2D_.js";import{s as F}from"./Plus-bl3Do1ab.js";import{L as H}from"./label-eEmb1iBr.js";import{R as L}from"./repository-import-picker-B0pfCyxB.js";import{u as O}from"./use-navigate-to-agent-BE6ZEPUi.js";import{S as z}from"./thread-intent-DhkLy13k.js";import{f as Z}from"./repository-binding-C4OsSA6m.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-BUcAISa8.js";import{h as u}from"./mcp-oauth-BjnYnOAT.js";import"./auth-CExazRf5.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-BUcAISa8.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-p-1akJlT.js";import{R as _e}from"./required-auth-layout-B5cH35q0.js";import{A as se}from"./auth-split-layout-oUo4Hk_G.js";import{O as Ee}from"./organization-choice-B8th9GDj.js";import{A as ve}from"./avatar-DLW_zv2o.js";import{L as Ae}from"./label-D1700VqO.js";import{S as De}from"./switch-D5BJVOIP.js";import{t as Pe}from"./Building02-Cc0RR_mQ.js";import{i as Re}from"./CheckCircle-BED6dkLg.js";import{t as Fe}from"./Globe04-DOtzWDgX.js";import{i as Me}from"./Upload01-By8WilO1.js";import"./Plus-Xcxre04p.js";import"./User01-558TF773.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-BUcAISa8.js";import{R as _e}from"./required-auth-layout-BcWyX0tN.js";import{A as se}from"./auth-split-layout-yWRpLXbZ.js";import{O as Ee}from"./organization-choice-Dx3Q-TEp.js";import{A as ve}from"./avatar-k7zVZ1nb.js";import{L as Ae}from"./label-eEmb1iBr.js";import{S as De}from"./switch-ByNrRBdU.js";import{t as Pe}from"./Building02-BzqtLsiR.js";import{i as Re}from"./CheckCircle-Cyp8J2-O.js";import{t as Fe}from"./Globe04-DTYU91Z7.js";import{i as Me}from"./Upload01-dCDZcDY3.js";import"./Plus-bl3Do1ab.js";import"./User01-N2rUxuZL.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-B_n_Z1ww.js → openai-conversation-C9xs6L0k.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-B74-qJgM.js";import{aF as A,aG as _,d1 as C,aY as U,bV as W}from"./index-BUcAISa8.js";import"./usage-stats-DeKdK9SW.js";import"./tool-namespace-BXFHxu5_.js";import"./form-B0S4gwZl.js";import"./label-eEmb1iBr.js";import"./utils-CVEq3hMx.js";import"./markdown-B_belhjs.js";import"./use-copy-D8rIRHRy.js";import"./Copy01-4Op2Jutz.js";import"./ZoomOut-BSgJ_qOu.js";import"./location-BjlyegC2.js";import"./use-mobile-DszEwU_T.js";import"./use-panel-navigate-CeDVVCkS.js";import"./thread-route-iBVNlpET.js";import"./use-project-scope-5YpNgUL6.js";import"./repository-binding-C4OsSA6m.js";import"./use-mcp-client-CXzIAVI_.js";import"./auth-CExazRf5.js";import"./tooltip-Npd1IBFB.js";import"./index-VMpHqTms.js";import"./agent-icon-u2ivNkJK.js";import"./AlertCircle-T1ZkrR0m.js";import"./Tool01-eRpAM_xP.js";import"./ArrowUp-CrfIcCHY.js";import"./ArrowLeft-CYKCt2D_.js";import"./LinkBroken01-1s3iBfyN.js";import"./ShoppingBag01-CQamAcPv.js";import"./Building02-BzqtLsiR.js";import"./CheckCircle-Cyp8J2-O.js";import"./ChevronUp-DWP9CKrv.js";import"./ChevronSelectorVertical-bMnA4IfS.js";import"./UserSquare-BPqJsNeY.js";import"./CreditCard01-8ijEtUnj.js";import"./DotsVertical-Ik04gU0Z.js";import"./Image01-BoNtuy7T.js";import"./Globe04-DTYU91Z7.js";import"./SwitchHorizontal01-BMvJE9CE.js";import"./Key01-DVtNzjvm.js";import"./Link01-COgU4X0d.js";import"./Monitor01-BMmwz8er.js";import"./Sun-CT-ZvHiv.js";import"./Play-C_Kc3qTH.js";import"./Plus-bl3Do1ab.js";import"./SearchMd-CuIII2sM.js";import"./Trash01-DtrweZMg.js";import"./Upload01-dCDZcDY3.js";import"./User01-N2rUxuZL.js";import"./Users01--Pjgrl_5.js";import"./XClose-DBK6xbU_.js";import"./format-time-CAj8AQXM.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-1Ue6t9uD.js";import"./thread-intent-DhkLy13k.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CBn5OZ_Z.js";import"./task-board-hdrVwFVS.js";import"./schema-Ctps-XT5.js";import"./slugify-CEUa2lfQ.js";import"./chat-context-DL44ik-l.js";import"./autosend-CUxwH8aa.js";import"./use-ai-providers-CBBzjFhl.js";import"./use-chat-navigation-Cxan89R8.js";import"./use-organization-settings-DjWvQexi.js";import"./icon-button-BDgagVz4.js";import"./file-type-icon-CnGkqsAH.js";import"./shell-layout-C6in_tdZ.js";import"./avatar-k7zVZ1nb.js";import"./use-clock-tick-DDv64CjX.js";import"./command-kL2BpXNu.js";import"./index-c-E5TfxF.js";import"./integration-icon-ChciBY2o.js";import"./project-icon-BVi6jykh.js";import"./new-project-dialog-4pgTOLZa.js";import"./repository-import-picker-B0pfCyxB.js";import"./use-navigate-to-agent-BE6ZEPUi.js";import"./repository-picker-BjLyF0UU.js";import"./useInfiniteQuery-DRIZEKZQ.js";import"./infiniteQueryObserver-DOzqu3CQ.js";import"./collection-search-BgZ6ncMc.js";import"./use-debounced-value-DAimUErS.js";import"./required-auth-layout-BcWyX0tN.js";import"./use-org-sso-Cmy5SNH_.js";import"./chat-draft-BGj508pV.js";import"./select-BZtkY-6Q.js";import"./index-BdQq_4o_.js";import"./tabs-CwSp61cB.js";import"./use-deco-credits-g8JxcvuQ.js";import"./toggle-group-Cke1wKDH.js";import"./use-open-billing-url-DUKZxYlJ.js";import"./index-Bfspj4xO.js";import"./checkbox-CTOJeQYr.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-2LCOzLqM.js";import"./drawer-NCwSL4IN.js";import"./input-BZCpPpnc.js";import"./suggestion-BDDkx8wt.js";import"./use-mcp-prompts-B04lynbc.js";import"./use-org-fs-D7bxmks4.js";import"./question-004-sINsf4GQ.js";import"./use-members-DOrbNcAJ.js";import"./use-org-auth-client-CpM0RfU1.js";import"./feature-paywall-BfJ3JcG2.js";import"./plan-ladder-BosseGj-.js";import"./add-connection-dialog-B2yW98GA.js";import"./extract-connection-data-Df_4NBNm.js";import"./metadata-D72DunRR.js";import"./connection-ClykfAAS.js";import"./url-slug-psmAhJiF.js";import"./connection-card-CKRGS9aW.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-CRyjwEqe.js";import"./use-connection-DD-60zit.js";import"./schema-DFwdEHXk.js";import"./connection-form-helpers-DaJ65Rex.js";import"./authenticate-and-persist-oauth-B43eE55s.js";import"./mcp-oauth-Df_GM2_g.js";import"./mcp-oauth-BjnYnOAT.js";import"./collection-tabs-C9sF3Ij7.js";import"./badge-BE7xUmDV.js";import"./use-infinite-scroll-Dzt1HFZA.js";import"./useSuspenseInfiniteQuery-DLwZomQy.js";import"./use-task-board-events-D29THDyx.js";import"./use-project-native-view-presence-YWMyr72T.js";import"./use-file-configs-Yj2yOnDl.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-BUcAISa8.js";import{k as d}from"./use-project-native-view-presence-YWMyr72T.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};
|