decocms 4.497.0 → 4.498.0
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-BfToWUeb.js → ActiveShapeUtils-h37U-AjP.js} +1 -1
- package/dist/client/assets/{AlertCircle-uVTE_i_c.js → AlertCircle-D6PAHKjV.js} +1 -1
- package/dist/client/assets/{AreaChart-D-XLuzTF.js → AreaChart-BARo54FY.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D8kMxyF3.js → ArrowLeft-CG9rYORx.js} +1 -1
- package/dist/client/assets/{ArrowUp-baihphF6.js → ArrowUp-t0hf8rM7.js} +1 -1
- package/dist/client/assets/{BarChart-CmpYBluB.js → BarChart-B21k04bX.js} +1 -1
- package/dist/client/assets/{Building02-C-k2Qn__.js → Building02-fUucitQx.js} +1 -1
- package/dist/client/assets/{CategoricalChart-MIe_roxn.js → CategoricalChart-VabRcjcu.js} +1 -1
- package/dist/client/assets/{CheckCircle-BgOw0_dD.js → CheckCircle-of-fJlvu.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-e0qa2qKk.js → ChevronSelectorVertical-lAvz2cuG.js} +1 -1
- package/dist/client/assets/{ChevronUp-B7O2Z2_x.js → ChevronUp-IQvZuGmJ.js} +1 -1
- package/dist/client/assets/{Copy01-BR4eoDaW.js → Copy01-D6HfKiqy.js} +1 -1
- package/dist/client/assets/{CreditCard01-pJwQfpbv.js → CreditCard01-D5Mtkf7j.js} +1 -1
- package/dist/client/assets/{DotsVertical-DOuXLsMk.js → DotsVertical-LyDkiB3Q.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BvlCrLLk.js → ErrorBarContext-BbITcgQP.js} +1 -1
- package/dist/client/assets/{Globe04-CYweJqdP.js → Globe04-LlNkyupL.js} +1 -1
- package/dist/client/assets/{Image01-S90CE8VS.js → Image01-Ch6fYTX9.js} +1 -1
- package/dist/client/assets/{Key01-B5JsqJav.js → Key01-CzAYk09-.js} +1 -1
- package/dist/client/assets/{Link01-Dz3IyYPr.js → Link01-yIpHC1tA.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BKVx2uSk.js → LinkBroken01-4mWpjTP6.js} +1 -1
- package/dist/client/assets/{Monitor01-KqB9ZF5U.js → Monitor01-Ou5m5HXM.js} +1 -1
- package/dist/client/assets/{Play-CygY0DVf.js → Play-BeSRLN2O.js} +1 -1
- package/dist/client/assets/{Plus-Bj_QsLcq.js → Plus-CBwPsBC8.js} +1 -1
- package/dist/client/assets/{SearchMd-CVAVwuts.js → SearchMd-DFKnlLzg.js} +1 -1
- package/dist/client/assets/{Sector-CRN92mNE.js → Sector-BE7eLjHh.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DhR5OJ_o.js → ShoppingBag01-DMrkFjeJ.js} +1 -1
- package/dist/client/assets/{Sun-BCMSoFWP.js → Sun-Bx7SBlM-.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-fI9_GGzc.js → SwitchHorizontal01-JU6fMv1N.js} +1 -1
- package/dist/client/assets/{Tool01-Dpcs_fEX.js → Tool01-Dx9izhNQ.js} +1 -1
- package/dist/client/assets/{Trash01-BwiN-bXW.js → Trash01-BTFm5tCg.js} +1 -1
- package/dist/client/assets/{Upload01-nkaaAbTH.js → Upload01-Bh-Emxn2.js} +1 -1
- package/dist/client/assets/{User01-BSbwHeDW.js → User01-CQJ9yvoz.js} +1 -1
- package/dist/client/assets/{UserSquare-CG780QF2.js → UserSquare-BAt_wzJ-.js} +1 -1
- package/dist/client/assets/{Users01-BuQlctw3.js → Users01-D5wZqDor.js} +1 -1
- package/dist/client/assets/{XAxis-BIvxXYwH.js → XAxis-BZWDI5GS.js} +1 -1
- package/dist/client/assets/{XClose-CohaLXz5.js → XClose-DbfrVehX.js} +1 -1
- package/dist/client/assets/{ZoomOut-BSXGk2sm.js → ZoomOut-CnrqTNds.js} +1 -1
- package/dist/client/assets/{access-gate-DOzt68zj.js → access-gate-Du7U7Rzo.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BHghNpDD.js → add-connection-dialog-oB2v8vkB.js} +1 -1
- package/dist/client/assets/{agent-analytics-652550mA.js → agent-analytics-DoqorIVJ.js} +1 -1
- package/dist/client/assets/agent-app-CCz5q2dj.js +1 -0
- package/dist/client/assets/{agent-assets-CO2mf3B-.js → agent-assets-udkmrdmj.js} +1 -1
- package/dist/client/assets/agent-automation-YdAcul3v.js +20 -0
- package/dist/client/assets/{agent-automations-DDRyU4rP.js → agent-automations-B5oxB7jR.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DCAIhIe3.js → agent-connect-sources-BjkrraY5.js} +1 -1
- package/dist/client/assets/agent-deck-CsNgUsES.js +1 -0
- package/dist/client/assets/{agent-e2e-BDY9ZD6D.js → agent-e2e-B5oARVfC.js} +1 -1
- package/dist/client/assets/{agent-experiments-BxeTATqf.js → agent-experiments-DfpT1sD2.js} +1 -1
- package/dist/client/assets/{agent-file-BmYB54QY.js → agent-file-BDStqhoT.js} +1 -1
- package/dist/client/assets/{agent-hosting-RRRWwDeW.js → agent-hosting-prc-duXm.js} +1 -1
- package/dist/client/assets/{agent-icon-CIAqO6q_.js → agent-icon-BZX5a0rN.js} +1 -1
- package/dist/client/assets/agent-library-BqNk_ysL.js +1 -0
- package/dist/client/assets/agent-library-file-BMyjR4a-.js +1 -0
- package/dist/client/assets/{agent-monitor-DsQakvWJ.js → agent-monitor-CtMBSYOs.js} +1 -1
- package/dist/client/assets/{agent-overview-3FcxOPM6.js → agent-overview-B23wW22S.js} +1 -1
- package/dist/client/assets/agent-settings-QtGp3bU0.js +1 -0
- package/dist/client/assets/{agent-site-editor-KhAad4Sw.js → agent-site-editor-Dtpy7m_F.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-C29bJKGS.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Fitmb8o7.js → agent-site-editor-content-PQwLsy2Z.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-DnnUYHiU.js → agent-site-editor-preview-DfEJR2-i.js} +3 -3
- package/dist/client/assets/agent-view-D-eSYJoz.js +1 -0
- package/dist/client/assets/{agent-view-guard-CKn2tf5j.js → agent-view-guard-BhsT9KMv.js} +1 -1
- package/dist/client/assets/{agents-list-DSQETxBR.js → agents-list-BEnHZ3f8.js} +1 -1
- package/dist/client/assets/{ai-providers-DdDoqHhw.js → ai-providers-DaLz3LDZ.js} +1 -1
- package/dist/client/assets/{alert-DWd3_VEN.js → alert-DZ-Sik7-.js} +1 -1
- package/dist/client/assets/{alert-dialog-ivXO19po.js → alert-dialog-DFCHlrdG.js} +1 -1
- package/dist/client/assets/{analytics-sections-Bhuxqwzw.js → analytics-sections-BpmplX7W.js} +1 -1
- package/dist/client/assets/api-keys-Cs5VWUE9.js +1 -0
- package/dist/client/assets/{api-keys-DjqDXSVz.js → api-keys-D6bA8zbA.js} +1 -1
- package/dist/client/assets/app-editor-CpUCMZta.js +1 -0
- package/dist/client/assets/{asset-utils-jXJjDaKi.js → asset-utils-DSAV30pE.js} +1 -1
- package/dist/client/assets/{auth-C16DiwpU.js → auth-CKRkGXX0.js} +1 -1
- package/dist/client/assets/{auth-catchall-CMZXJiIT.js → auth-catchall-A973ZSm_.js} +1 -1
- package/dist/client/assets/{auth-entry-D2I0FV-M.js → auth-entry-B6EUZx-E.js} +1 -1
- package/dist/client/assets/{auth-split-layout-lGr4mQP-.js → auth-split-layout-ppDoBfGB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BzcsLm_G.js → authenticate-and-persist-oauth-hMQu3mut.js} +1 -1
- package/dist/client/assets/{automation-list-row-BIpt7Z6o.js → automation-list-row-CIgywn5_.js} +1 -1
- package/dist/client/assets/{automation-runs-Dx7LKstr.js → automation-runs-C6KynleS.js} +1 -1
- package/dist/client/assets/{automations-CbuyiPha.js → automations-BTR4ZUpt.js} +1 -1
- package/dist/client/assets/{autosend-8Zl7NQ67.js → autosend-CfJ-txst.js} +1 -1
- package/dist/client/assets/{avatar-PHlRD3By.js → avatar-D0TV3cL_.js} +1 -1
- package/dist/client/assets/{badge-BTJCq3tr.js → badge-Djw87oeQ.js} +1 -1
- package/dist/client/assets/{block-document-BKlsJNkE.js → block-document-e1vZMHc5.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-D9S2qjUS.js → blocks-preview-workspace-context-D3H9wyCz.js} +1 -1
- package/dist/client/assets/{blog-schema-B0HiB2cA.js → blog-schema-Dk8m1thm.js} +1 -1
- package/dist/client/assets/{board-analytics-DYBHTjV-.js → board-analytics-DcHI9tGL.js} +1 -1
- package/dist/client/assets/{buckets-DNw0rMyq.js → buckets-DtxAkodo.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CmTPuV4H.js → build-improve-prompt-doc-C53Lrdih.js} +1 -1
- package/dist/client/assets/{calendar-Bpz7Lz-y.js → calendar-Cm_oXX6s.js} +1 -1
- package/dist/client/assets/{capability-load-error-B3pMqWw1.js → capability-load-error-CTNI2hrf.js} +1 -1
- package/dist/client/assets/{category-editor-DLwiIFGA.js → category-editor-Bua_fHQ9.js} +1 -1
- package/dist/client/assets/{chart-5JvOgFAK.js → chart-u_PCedAi.js} +1 -1
- package/dist/client/assets/{chat-context-3OXKEqSh.js → chat-context-CBev6aq3.js} +1 -1
- package/dist/client/assets/{chat-draft-oK0pqHaC.js → chat-draft-C2IQcwKW.js} +1 -1
- package/dist/client/assets/{checkbox-CRsuhP53.js → checkbox-C6RcKsRC.js} +1 -1
- package/dist/client/assets/{choose-editor-PDE1zqLa.js → choose-editor-4RqxQ2Kh.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BOnhDNWe.js → claim-phase-copy-azjvrOLz.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DFy-lvLA.js → cli-auth-success-CSxmM9Mc.js} +1 -1
- package/dist/client/assets/{client-icons-GrM8G8gc.js → client-icons-DafWzw5-.js} +1 -1
- package/dist/client/assets/{collapsible-z-JwdUiM.js → collapsible-Bwspbfl2.js} +1 -1
- package/dist/client/assets/{collection-detail-Dhq8Wz0G.js → collection-detail-CZGVnn_N.js} +1 -1
- package/dist/client/assets/{collection-display-button-COwoiqJ0.js → collection-display-button-D2vvIKbf.js} +1 -1
- package/dist/client/assets/{collection-search-ZrNbDYaq.js → collection-search-DaDlBD_E.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BxHhUj6Y.js → collection-table-wrapper-jG2oYxE8.js} +1 -1
- package/dist/client/assets/{collection-tabs-CZnO-KJm.js → collection-tabs-CqZ0YLaH.js} +1 -1
- package/dist/client/assets/{column-rules-CU0QM4zZ.js → column-rules-P9xAwA0r.js} +1 -1
- package/dist/client/assets/{combobox-bRQw-jDN.js → combobox-BsiHAQYf.js} +1 -1
- package/dist/client/assets/{command--1ySxBzC.js → command-BWDE-FNh.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DbOOs4Di.js → companion-mcps-section-C3mRXa0s.js} +1 -1
- package/dist/client/assets/{config-DxkhWHvI.js → config-C--9g5dZ.js} +1 -1
- package/dist/client/assets/{connect-Cy-QXX6T.js → connect-DJluRO9r.js} +1 -1
- package/dist/client/assets/{connect-layout-B_xraWMz.js → connect-layout-CTtD_uUg.js} +1 -1
- package/dist/client/assets/{connection-eFBHXnq8.js → connection-BKH2vnra.js} +1 -1
- package/dist/client/assets/{connection-card-Dd1Miwos.js → connection-card-BqF_7Vxz.js} +1 -1
- package/dist/client/assets/{connection-detail-BhSOyfOS.js → connection-detail-gLie6k82.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CjAkllf4.js → connection-form-helpers-C6ev_pGu.js} +1 -1
- package/dist/client/assets/{connections-DptsGWqU.js → connections-C4cDvjtx.js} +1 -1
- package/dist/client/assets/{context-DvjPJlI1.js → context-C-Rr1spp.js} +1 -1
- package/dist/client/assets/{context-menu-DTbN-B-u.js → context-menu-CYtUPpu0.js} +1 -1
- package/dist/client/assets/{core.esm-BmdNjDzv.js → core.esm-BqWXbE7p.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BRn1itMS.js → create-organization-dialog-Ci8n8-Qw.js} +1 -1
- package/dist/client/assets/{daily-pulse-C_sHN310.js → daily-pulse-0HhsWI2C.js} +1 -1
- package/dist/client/assets/{device-hint-BA8nYrWU.js → device-hint-C8SeBwQ9.js} +1 -1
- package/dist/client/assets/{discover-DGp_fHdG.js → discover-CRupEDof.js} +1 -1
- package/dist/client/assets/{domain-settings-Bz6k7ub5.js → domain-settings-9i4lE6z4.js} +1 -1
- package/dist/client/assets/{drawer-wiDylD44.js → drawer-DmaKd3D8.js} +1 -1
- package/dist/client/assets/{editor-DbVDLInM.js → editor-Clsq2fLP.js} +1 -1
- package/dist/client/assets/{empty-state-CpJixEa0.js → empty-state-CYf1fvjk.js} +1 -1
- package/dist/client/assets/{empty-state-GrM64x-h.js → empty-state-ervoES7F.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BFr1XefI.js → extract-connection-data-C5DfHTe9.js} +1 -1
- package/dist/client/assets/{feature-gate-DIjgMR-H.js → feature-gate-DyJpZ6nd.js} +1 -1
- package/dist/client/assets/{feature-paywall-DygeAwCp.js → feature-paywall-CeiXnB_u.js} +1 -1
- package/dist/client/assets/{file-explorer-sgwcJgTB.js → file-explorer-_3Yay2x8.js} +1 -1
- package/dist/client/assets/{file-preview-KMq6kQbY.js → file-preview-CHpcXovu.js} +1 -1
- package/dist/client/assets/{file-share-button-BmW3xptu.js → file-share-button-CXVf0V10.js} +1 -1
- package/dist/client/assets/{file-type-icon-CH0zVmFE.js → file-type-icon-poPLKUlK.js} +1 -1
- package/dist/client/assets/flat-project-BXwoPNzs.js +1 -0
- package/dist/client/assets/{folder-icon-Dvr9Xy_h.js → folder-icon-B1u0MiCk.js} +1 -1
- package/dist/client/assets/{form-ChrFSKbl.js → form-Dg_6Hf9j.js} +1 -1
- package/dist/client/assets/{general-CSM1Afsf.js → general-B4ZNIMkv.js} +1 -1
- package/dist/client/assets/{home-CmR382BT.js → home-ELjwftjN.js} +1 -1
- package/dist/client/assets/{icon-button-BEh8g82p.js → icon-button-CH2OxNKZ.js} +1 -1
- package/dist/client/assets/{index-1lCyt6wZ.js → index-BK3UZ3iw.js} +1 -1
- package/dist/client/assets/{index-BL1llwK-.js → index-BTY2QFMJ.js} +1 -1
- package/dist/client/assets/{index-BdbMrrND.js → index-CFz3Hn6w.js} +1 -1
- package/dist/client/assets/{index-5v4d81Co.js → index-CN-5kkc7.js} +1 -1
- package/dist/client/assets/{index-Dpzy6FT0.js → index-CPYLUZ6w.js} +1 -1
- package/dist/client/assets/{index-Br_k5ZoS.js → index-CQZm7V7F.js} +1 -1
- package/dist/client/assets/{index-FPsrk3s0.js → index-CuZxCor5.js} +1 -1
- package/dist/client/assets/{index-Dp4NtPWu.js → index-DEwWVQT2.js} +1 -1
- package/dist/client/assets/{index-CNBMfDzu.js → index-DoXTlFZn.js} +3 -3
- package/dist/client/assets/{index-CAxew9_u.js → index-GzUyiAtq.js} +1 -1
- package/dist/client/assets/{index-BvNW8UPM.js → index-XXahSrQ2.js} +1 -1
- package/dist/client/assets/{index-redirect-B_k2XKG7.js → index-redirect-BJu2viW0.js} +1 -1
- package/dist/client/assets/{index-E8HkK7le.js → index-xs_k6Ktz.js} +4 -4
- package/dist/client/assets/{index-GNzYGBzv.js → index-zt_Z_Heg.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B_6kT4Pu.js → infiniteQueryObserver-7uXBxwIZ.js} +1 -1
- package/dist/client/assets/{infra-billing-DntZ94Fv.js → infra-billing-DaXwvysV.js} +1 -1
- package/dist/client/assets/{input-Bf9hsVol.js → input-BndsYgrN.js} +1 -1
- package/dist/client/assets/{input-DzGUnaT4.js → input-DsuaqMOh.js} +3 -3
- package/dist/client/assets/{integration-icon-BMM9bKRw.js → integration-icon-Cx3J1TrD.js} +1 -1
- package/dist/client/assets/{jira-icon-Cj12G8eH.js → jira-icon-CIrGorhP.js} +1 -1
- package/dist/client/assets/{label-DAC0PXH6.js → label-BHQ7fAmu.js} +1 -1
- package/dist/client/assets/{layout-DH0wfMvp.js → layout-DJrVrTHk.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DKcmw_C9.js → legacy-agents-deep-rCcS2UBo.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-xF3AIf85.js → legacy-main-redirect-DMe57jXo.js} +1 -1
- package/dist/client/assets/library-CbX8eoDf.js +1 -0
- package/dist/client/assets/{library-tab-C0sI5AvO.js → library-tab-DpE23FB4.js} +1 -1
- package/dist/client/assets/{login-CyNOjPxx.js → login-BRxzp--X.js} +1 -1
- package/dist/client/assets/{markdown-D9Q4_EWf.js → markdown-BQE0Sc_A.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CJllCuFA.js → mcp-app-renderer-Bl0xOGsc.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D5hp_76q.js → mcp-oauth-DOxWKmTF.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cm-FGk67.js → mcp-oauth-xPr142sb.js} +1 -1
- package/dist/client/assets/{members-aCVioT1N.js → members-BJNHqWz2.js} +1 -1
- package/dist/client/assets/{memory-Fzdui2vo.js → memory-CGilhYH2.js} +1 -1
- package/dist/client/assets/{mini-report-page-BTvq-myp.js → mini-report-page-BbCM6VM6.js} +1 -1
- package/dist/client/assets/{mock-board-BctOoM75.js → mock-board-CSphyYm-.js} +1 -1
- package/dist/client/assets/{monaco-editor-DxsHSHr3.js → monaco-editor-C2uEeF5_.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BPpGukbV.js → monitoring-stats-row-4mryZRhX.js} +1 -1
- package/dist/client/assets/{multi-select-BEZlzNPL.js → multi-select-CcwfeB_X.js} +1 -1
- package/dist/client/assets/{mustache-C_2NGupD.js → mustache-Bpchj0JB.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CBz8t6bW.js → new-project-dialog-nyD817-y.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-COJwjuqo.js → oauth-callback-ai-provider-BpVSOAoL.js} +1 -1
- package/dist/client/assets/{oauth-callback-D-TIiYCW.js → oauth-callback-gTMv-zQg.js} +1 -1
- package/dist/client/assets/{onboarding-BvA8qKid.js → onboarding-CMWpJjZw.js} +1 -1
- package/dist/client/assets/{openai-conversation-DMNH07wd.js → openai-conversation-CeefM3R3.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B82d2Iyt.js → optimistic-project-sidebar-views-v1rJRps1.js} +1 -1
- package/dist/client/assets/{organization-choice-DZk2VZFD.js → organization-choice-VbmGVdvE.js} +1 -1
- package/dist/client/assets/{orgs-D1rtBs1u.js → orgs-Cri0Ia7k.js} +1 -1
- package/dist/client/assets/{page-seo-form-DC_uQ_yb.js → page-seo-form-DY79__rL.js} +1 -1
- package/dist/client/assets/{pair-BHsCddMQ.js → pair-DwD5SdrN.js} +1 -1
- package/dist/client/assets/{plan-ladder-D5P8cNNU.js → plan-ladder-Cec8Hw6v.js} +1 -1
- package/dist/client/assets/{popover-BiATgeVZ.js → popover-CUbGh9FO.js} +1 -1
- package/dist/client/assets/{post-calendar-XwNvndsR.js → post-calendar-BQ6RASS0.js} +1 -1
- package/dist/client/assets/{post-editor-CIVzwScJ.js → post-editor-BlxejBOv.js} +1 -1
- package/dist/client/assets/{preview-content-D4a4Kxnw.js → preview-content-BNo5Q8c2.js} +1 -1
- package/dist/client/assets/{preview-dialog-DXvP_rSt.js → preview-dialog-CUTnny3X.js} +1 -1
- package/dist/client/assets/{preview-panel-9m4lCkpb.js → preview-panel-CbuRn5QK.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-BFXbOjF7.js → product-picker-dialog-DWydhMcM.js} +1 -1
- package/dist/client/assets/{profile-UHLqhuh9.js → profile-Wgp3fAd7.js} +1 -1
- package/dist/client/assets/{project-app-view-7PLU79fP.js → project-app-view-BY4Z9zY6.js} +1 -1
- package/dist/client/assets/{project-feed-BMzjV3aS.js → project-feed-LzJO1RwA.js} +1 -1
- package/dist/client/assets/{project-icon-CtWmpx-o.js → project-icon-D9ZMEkrO.js} +1 -1
- package/dist/client/assets/project-reports-DHKecVyf.js +1 -0
- package/dist/client/assets/project-tasks-D-gNfCJd.js +1 -0
- package/dist/client/assets/{projects-BKfqSW6u.js → projects-D9E0KMO5.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CansCxa8.js → projects-empty-state-CVyY4QD-.js} +1 -1
- package/dist/client/assets/{prompts-DF0ao_FF.js → prompts-BGmz7B8b.js} +1 -1
- package/dist/client/assets/record-editor-DeAErR2x.js +1 -0
- package/dist/client/assets/redirect-editor-B-TForOi.js +1 -0
- package/dist/client/assets/reports-5CTNIsDn.js +1 -0
- package/dist/client/assets/{reports-BtVp7TUw.js → reports-CwAchcdk.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DJFr_1o0.js → reports-onboarding-4tevrhgv.js} +1 -1
- package/dist/client/assets/{reports-tab-lxUznXDf.js → reports-tab-BWxj7M8g.js} +2 -2
- package/dist/client/assets/{repositories-D-XY1mEG.js → repositories-BPCvyVf9.js} +1 -1
- package/dist/client/assets/{repository-binding-DJSfVmK0.js → repository-binding-DmdeiZmO.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CN4nBNQQ.js → repository-import-picker-CQI4CdeM.js} +1 -1
- package/dist/client/assets/{repository-picker-Bq1Xf_Nc.js → repository-picker-BsT7lJxX.js} +1 -1
- package/dist/client/assets/{require-capability-tnxMTQ41.js → require-capability-DDfk0Kb5.js} +1 -1
- package/dist/client/assets/{required-auth-layout-OT71YdwW.js → required-auth-layout-BBSjYqsc.js} +1 -1
- package/dist/client/assets/{reset-password-b4ZAeKZf.js → reset-password-BWTQRa6I.js} +1 -1
- package/dist/client/assets/{resizable-zpo8XDIL.js → resizable-DUdjqiGj.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DELF6fBY.js → resolve-tab-icon-JA5rc6Tv.js} +1 -1
- package/dist/client/assets/{review-settings-C7_0upab.js → review-settings-z03jMXZX.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-r6aMgCnO.js → rich-text-link-control-Cx8fBuQI.js} +1 -1
- package/dist/client/assets/{roles-BNqONgK2.js → roles-DucC2Xmn.js} +1 -1
- package/dist/client/assets/{route-2S2BeRzM.js → route-DlzJTX4w.js} +1 -1
- package/dist/client/assets/route-DtPgqOWq.js +1 -0
- package/dist/client/assets/{route-ClCedNlY.js → route-T44vpxHb.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-TLQt5HEP.js → runnable-block-editor-DEHfe8Jn.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-B3tBEBAU.js → sandbox-lifecycle-context-DwGA5vHg.js} +1 -1
- package/dist/client/assets/{schema-DAFIdNnw.js → schema-BgIvb0Gx.js} +1 -1
- package/dist/client/assets/{scroll-area-D65kWya9.js → scroll-area-D4DX2ZIG.js} +1 -1
- package/dist/client/assets/{search-input-CZqwR2Em.js → search-input-JdMKjHSx.js} +1 -1
- package/dist/client/assets/{search-toggle-CZvcgEuO.js → search-toggle-pL0dggP1.js} +1 -1
- package/dist/client/assets/{secret-picker-D9zGuUhM.js → secret-picker-BQp7jdXk.js} +1 -1
- package/dist/client/assets/{secrets-BL-nilzb.js → secrets-oDHSjIYO.js} +1 -1
- package/dist/client/assets/{sections-editor-Cj-wrCnm.js → sections-editor-atX3TwPF.js} +1 -1
- package/dist/client/assets/{select-JMx_Daeq.js → select-DnxgNE4v.js} +1 -1
- package/dist/client/assets/{select-model-DcZybkpW.js → select-model-DXVspEVT.js} +1 -1
- package/dist/client/assets/{seo-editor-5GEPfBh6.js → seo-editor-DNDnxeNs.js} +1 -1
- package/dist/client/assets/{separator-BQJNbeVU.js → separator-2C8rNgYN.js} +1 -1
- package/dist/client/assets/{settings-tab-yEsrogNk.js → settings-tab-Mf3STlzh.js} +1 -1
- package/dist/client/assets/{sheet-ft1vIPTI.js → sheet-COKPXrMt.js} +1 -1
- package/dist/client/assets/{shell-layout-BfZ3aLwK.js → shell-layout-BJ2bouq5.js} +1 -1
- package/dist/client/assets/{skills-DIxWKIpf.js → skills-DO3tbITh.js} +1 -1
- package/dist/client/assets/{slider-DzfY-AKn.js → slider-BrBnaDSJ.js} +1 -1
- package/dist/client/assets/{sortable.esm-C25gMPOU.js → sortable.esm-ldWM5mlg.js} +1 -1
- package/dist/client/assets/{sso-DMISGA1g.js → sso-tkyC_08g.js} +1 -1
- package/dist/client/assets/{suggestion-CkSKi3Ko.js → suggestion-BZNfKCnl.js} +1 -1
- package/dist/client/assets/{switch-D1o5UUPU.js → switch-DDSkOeLA.js} +1 -1
- package/dist/client/assets/{symbol-BihNL2x9.js → symbol-DzwMqsxT.js} +1 -1
- package/dist/client/assets/{synced-repos-THZeI2TX.js → synced-repos-BkSO5Q1Y.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-D-qnzCLe.js → tab-icon-glyph-BuzlFWHk.js} +1 -1
- package/dist/client/assets/{table-_5HbhT_S.js → table-CMK8QC8D.js} +1 -1
- package/dist/client/assets/{tabs-BaVhZf2S.js → tabs-B9VR2rbK.js} +1 -1
- package/dist/client/assets/{task-board-BhjqCSbG.js → task-board--9goOhkE.js} +1 -1
- package/dist/client/assets/{task-route-RXmOd-Sg.js → task-route-0VBQiuCM.js} +1 -1
- package/dist/client/assets/{task-status-BMH2aOWE.js → task-status-CNJzd27h.js} +1 -1
- package/dist/client/assets/taskboard-analytics-CM-a1hkv.js +1 -0
- package/dist/client/assets/tasks-F-hM9qNc.js +1 -0
- package/dist/client/assets/{tasks-BmHnYLCK.js → tasks-jC2y5QyA.js} +1 -1
- package/dist/client/assets/{textarea-DUqfavim.js → textarea-V-Ewr6Em.js} +1 -1
- package/dist/client/assets/{thread-analytics-CaZ650wR.js → thread-analytics-LPGZ7GJl.js} +1 -1
- package/dist/client/assets/{thread-button-C_voRhAW.js → thread-button-CgW1daN2.js} +1 -1
- package/dist/client/assets/{thread-intent-DIdLWs3T.js → thread-intent-BzcsRkEY.js} +1 -1
- package/dist/client/assets/{thread-route-C0aHNen1.js → thread-route-C6etrVa0.js} +1 -1
- package/dist/client/assets/{thread-route-Bsh0W3WI.js → thread-route-Dcfq6vF9.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Ck9K6X-O.js → thread-sheet-body-BAcB1e7q.js} +1 -1
- package/dist/client/assets/{time-range-picker-CNwi7PKe.js → time-range-picker-DF3Ygb5C.js} +1 -1
- package/dist/client/assets/{toggle-group-B-oqQV0Q.js → toggle-group-a4ytF4Oj.js} +1 -1
- package/dist/client/assets/{tool-namespace-D73-Yt47.js → tool-namespace-DgKSlqBK.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CWTFjB2x.js → toolbar-icon-button-DYnkRqZ7.js} +1 -1
- package/dist/client/assets/{tooltip-Bgaj6wao.js → tooltip-BwqXknMj.js} +1 -1
- package/dist/client/assets/{tooltipContext-Hyh6Z90v.js → tooltipContext-BpwAgADs.js} +1 -1
- package/dist/client/assets/{track-bmLGXYyb.js → track-8eJZpOmx.js} +1 -1
- package/dist/client/assets/{types-DSarHVWN.js → types-uLyd8Klr.js} +1 -1
- package/dist/client/assets/{url-slug-BCtPmKcV.js → url-slug-DQb0tXSj.js} +1 -1
- package/dist/client/assets/{usage-stats-CPP4mykS.js → usage-stats-5hdJRwfv.js} +1 -1
- package/dist/client/assets/{use-ai-providers-4IWNnMYR.js → use-ai-providers-BW9u4951.js} +1 -1
- package/dist/client/assets/{use-automations-BNBMB7NJ.js → use-automations-DhHqb9o9.js} +1 -1
- package/dist/client/assets/{use-autosave-CCI_H2Jh.js → use-autosave-DBs1Dhkn.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CbsP3hVN.js → use-chat-layout-state-DMre3rzo.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-Bvo_pyzq.js → use-chat-navigation-OgErkHag.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BH2s8rwm.js → use-clock-tick-BzZc0p17.js} +1 -1
- package/dist/client/assets/{use-connect-companion-D-T5tZi4.js → use-connect-companion-DFtJCq_R.js} +1 -1
- package/dist/client/assets/{use-connection-B7mxZZZr.js → use-connection-DmWKxQIp.js} +1 -1
- package/dist/client/assets/{use-copy-BDIhU1a3.js → use-copy-yOqXjxUA.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DzT7Wi_g.js → use-create-virtual-mcp-DyD0K90B.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CcYc8FC-.js → use-date-fns-locale-CD7FGq8S.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BZQvNBgR.js → use-debounced-autosave-DHlAwbI3.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DogqGlHA.js → use-debounced-value-DuWNcnXn.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D8fC6T0N.js → use-deco-credits-Bea6ChUy.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CG41uF0G.js → use-decopilot-events-ClCuNwhP.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B8gkfexB.js → use-delete-connection-BHdzlaZN.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DMHoNV8K.js → use-deployment-admin-9qJi8NmW.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-BXtCOD89.js → use-ensure-project-folder-Pz6kG32X.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-ClgFfcai.js → use-fast-preview-draft-url-BcFHzHFy.js} +1 -1
- package/dist/client/assets/{use-file-configs-CfHrYQ0D.js → use-file-configs-Cnc56owU.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Doz-tD5w.js → use-infinite-scroll-CqsPoGk1.js} +1 -1
- package/dist/client/assets/{use-join-requests-C6Zrd-wF.js → use-join-requests-B8p2Zeas.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-BI-yjZaf.js → use-main-panel-tabs-C0Ktj2i7.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-DT1RFPS5.js → use-mcp-auth-status-BY6UXdeD.js} +1 -1
- package/dist/client/assets/{use-mcp-client-HXdOgSo1.js → use-mcp-client-DTwq_7MH.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Dc22OpBz.js → use-mcp-prompts-CE81wOkK.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-SgFCxAm4.js → use-mcp-tools-BDslTiVH.js} +1 -1
- package/dist/client/assets/{use-members-BnU8sD2a.js → use-members-CmWLwd2e.js} +1 -1
- package/dist/client/assets/{use-mobile-DMhjc8sS.js → use-mobile-BD5GPe5Y.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-8FxeDEql.js → use-navigate-to-agent-CiQs8YZp.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-Bi1eoiEH.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CGiwz5yQ.js → use-open-billing-url-DVE0afgz.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CjFoGBiw.js → use-org-auth-client-D907jz51.js} +1 -1
- package/dist/client/assets/{use-org-fs-Brfqc0DM.js → use-org-fs-DC-NuNXo.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dn8ueEn8.js → use-org-repo-syncs-CFHiMPUk.js} +1 -1
- package/dist/client/assets/{use-org-sso-5XSC3bo7.js → use-org-sso-CJ9T2BXL.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CPEXva6v.js → use-organization-roles-CRyk_oUV.js} +1 -1
- package/dist/client/assets/{use-organization-settings-C1JjAa2e.js → use-organization-settings-QfwaDuvt.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-B5g-cXoX.js → use-panel-navigate-BQzwPyBR.js} +1 -1
- package/dist/client/assets/{use-project-scope-C_W_iYCG.js → use-project-scope-0K714duc.js} +1 -1
- package/dist/client/assets/{use-releases-aiz7Xp_5.js → use-releases-DZTFt5jN.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Dx6jRAHR.js → use-reports-diagnostic-DpILmwBe.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-VQD2dbMh.js → use-sandbox-events-v_kGJN2U.js} +1 -1
- package/dist/client/assets/{use-secrets-COPHY6zn.js → use-secrets-C-9G8ydk.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DPHgFiJr.js → use-section-preview-base-CmZa6K6g.js} +1 -1
- package/dist/client/assets/{use-tags-NK0RVjrR.js → use-tags-BJbdefCg.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CDUEw4yr.js → use-task-board-analytics-CILYZiLT.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DtM0CgpV.js → use-task-board-events-CjirQYQ9.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-uJK_d1d_.js → use-task-board-item-prs-BIQrUm4A.js} +1 -1
- package/dist/client/assets/{use-task-board-items-ByQWsAvO.js → use-task-board-items-CGAY-jQW.js} +1 -1
- package/dist/client/assets/{use-task-metadata-YcyCc5iY.js → use-task-metadata-DPgHRFmq.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-VXUKGF1M.js → use-thread-analytics-xBLnk1IS.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CcHD0dx2.js → use-thread-outputs-DfvzI16S.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-y40gwZ85.js +1 -0
- package/dist/client/assets/{useQueries-D6R5SUUn.js → useQueries-J6gaISLv.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CQ4v8A2V.js +1 -0
- package/dist/client/assets/{users-CpYFV7v9.js → users-yYj2VUTN.js} +1 -1
- package/dist/client/assets/{utils-DcA-ys_Q.js → utils-CeckZkhk.js} +1 -1
- package/dist/client/assets/{variant-calendar-BCj7kcYa.js → variant-calendar-kyOtq8lu.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-uy8AIyK6.js → variant-matcher-override-5Sa4pTWa.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Fs_5ypxv.js → view-mode-toggle-BNtxS74L.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BQkclqkV.js → virtual-mcp-Baro2XYn.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-afzfEiDL.js → watch-sse-pool-LLzHE8XH.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/migrate.js +253 -239
- package/dist/server/server.js +625 -625
- package/package.json +1 -1
- package/dist/client/assets/agent-app-CdQYM_ZA.js +0 -1
- package/dist/client/assets/agent-automation-Bvt8DrKn.js +0 -20
- package/dist/client/assets/agent-deck-BsXvzeBG.js +0 -1
- package/dist/client/assets/agent-library-D-aCuCTB.js +0 -1
- package/dist/client/assets/agent-library-file-BuoS_Z6e.js +0 -1
- package/dist/client/assets/agent-settings-bSj1beF7.js +0 -1
- package/dist/client/assets/agent-site-editor-code-B8CEWJnJ.js +0 -2
- package/dist/client/assets/agent-view-wYzAXyAR.js +0 -1
- package/dist/client/assets/api-keys-2HQGF5-h.js +0 -1
- package/dist/client/assets/app-editor-i2ce0F8B.js +0 -1
- package/dist/client/assets/flat-project-B1VoRXiA.js +0 -1
- package/dist/client/assets/library-IZ6uiAlE.js +0 -1
- package/dist/client/assets/project-reports-BFIkPtSH.js +0 -1
- package/dist/client/assets/project-tasks-DD_fl4Sm.js +0 -1
- package/dist/client/assets/record-editor-VsMWy81Y.js +0 -1
- package/dist/client/assets/redirect-editor-DaEa0GfW.js +0 -1
- package/dist/client/assets/reports-CCgdm6dz.js +0 -1
- package/dist/client/assets/route-Bo2LQsMZ.js +0 -1
- package/dist/client/assets/taskboard-analytics-BfqBcYab.js +0 -1
- package/dist/client/assets/tasks-BOGH2SxB.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-C-_W9FQg.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BtM1Ign2.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DxUIRGU7.js +0 -1
package/dist/client/assets/{runnable-block-editor-TLQt5HEP.js → runnable-block-editor-DEHfe8Jn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a_ as Cr,c as z,o as In,m as Y0,K as z9,b as d9,j as r,l as K,B as x9,a4 as Fn,aU as Er,e as On,r as F,t as _9,ah as Q9,a$ as wr,b0 as n0,n as _r,I as I9,ap as Dn,T as se,at as I0,U as C9,V as X9,X as e0,a0 as Ar,a1 as Rr,b1 as re,au as we,aZ as Pr,h as x0,v as Ve,aK as Ue,s as Ke,w as $n,q as Ge,D as He,b2 as Mr,H as Ir,a6 as zn,b3 as Fr,aD as Or,aE as Dr,aV as Bn}from"./index-E8HkK7le.js";import{a as qe}from"./input-DzGUnaT4.js";import{u as Ye,O as $r,c as B9,P as J9,Q as W0,T as _e,N as We,U as N9,C as zr,V as V0,A as Br,B as Vr,y as Ur,q as Kr,z as Gr,W as Vn,t as Un,X as Hr,Y as Ft,Z as qr,_ as Yr,r as H9,$ as w0,a0 as Kn,a1 as Je,a2 as Wr,a3 as Jr,a4 as Zr,a5 as Qr,a6 as Xr,a7 as Gn,g as e1,a8 as Ze,o as t1,a9 as n1,aa as s1,v as r1,ab as i1,ac as o1,ad as Ae,ae as a1,af as U0,ag as l1,ah as c1,ai as L1,aj as d1,ak as u1,al as f1,am as Ot,an as m1,ao as p1,ap as h1,aq as g1}from"./claim-phase-copy-BOnhDNWe.js";import{e as Hn}from"./backoff-CrEUbyZT.js";import{ab as x1,ac as y1,ad as v1,ae as b1,af as j1,ag as S1,ah as k1,ai as N1,aj as T1,a0 as C1,ak as qn,E as E1,al as ie,D as w1,C as _1,am as Yn,a6 as _0,t as A1,d as L0,an as R1,ao as Dt,ap as P1,aa as M1,K as I1,aq as F1,ar as O1}from"./agent-icon-CIAqO6q_.js";import{i as Wn}from"./Play-CygY0DVf.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as D1}from"./pair-BHsCddMQ.js";import{i as Qe}from"./ChevronSelectorVertical-e0qa2qKk.js";import{C as oe,a as ae,b as Z9,e as f0,c as le,f as Xe,d as $1}from"./command--1ySxBzC.js";import{a as F0,b as O0,P as D0}from"./popover-BiATgeVZ.js";import{s as z1,a as B1,b as V1}from"./utils-DcA-ys_Q.js";import{u as Jn}from"./chat-context-3OXKEqSh.js";import{S as Zn}from"./scroll-area-D65kWya9.js";import{T as A9,a as R9,b as P9}from"./tooltip-Bgaj6wao.js";import{a as et,c as U1}from"./repository-binding-DJSfVmK0.js";import{M as Qn}from"./monaco-editor-DxsHSHr3.js";import{C as K1}from"./calendar-Bpz7Lz-y.js";import{T as G1}from"./textarea-DUqfavim.js";import{L as U9}from"./label-DAC0PXH6.js";import{u as E9}from"./use-new-blocks-editor-C-_W9FQg.js";import{c as H1,d as q1,i as Y1,b as W1}from"./Tool01-Dpcs_fEX.js";import{i as Xn}from"./SwitchHorizontal01-fI9_GGzc.js";import{s as y0}from"./Plus-Bj_QsLcq.js";import{E as a0,M as J1,m as Z1,g as $0,u as Q1,s as X1,a as ei,b as ti}from"./usage-stats-CPP4mykS.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-JMx_Daeq.js";import{T as F9,E as ni,R as si}from"./rich-text-link-control-r6aMgCnO.js";import{S as tt}from"./switch-D1o5UUPU.js";import{C as nt,u as st,a as p0,K as rt,P as it,D as ot,c as at,b as lt}from"./core.esm-BmdNjDzv.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-C25gMPOU.js";import{V as ri}from"./view-mode-toggle-Fs_5ypxv.js";import{t as v0}from"./ChevronUp-B7O2Z2_x.js";import{a as fe}from"./Copy01-BR4eoDaW.js";import{s as ii,a as h0}from"./Image01-S90CE8VS.js";import{s as l0}from"./Trash01-BwiN-bXW.js";import{e as N0,a as es}from"./UserSquare-CG780QF2.js";import{C as oi}from"./combobox-bRQw-jDN.js";import{A as ai,a as li,b as ci,c as Li,g as di,d as ui,e as fi,f as mi}from"./alert-dialog-ivXO19po.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-BSXGk2sm.js";import{i as z0}from"./Upload01-nkaaAbTH.js";import{i as ts}from"./AlertCircle-uVTE_i_c.js";import{i as ns}from"./DotsVertical-DOuXLsMk.js";import{S as pi}from"./search-input-CZqwR2Em.js";import{T as hi,a as gi,c as xi,b as yi}from"./tabs-BaVhZf2S.js";import{u as vi}from"./use-debounced-value-DogqGlHA.js";import{a as bi,u as ss}from"./use-file-configs-CfHrYQ0D.js";import{u as ji,a as ft,i as rs,e as Si,b as zt,f as ki}from"./asset-utils-jXJjDaKi.js";import{d as is}from"./use-chat-layout-state-CbsP3hVN.js";import{a as Ni,T as Ti}from"./toggle-group-B-oqQV0Q.js";import{g as Ci,f as Ei}from"./thread-intent-DIdLWs3T.js";import{t as wi}from"./sandbox-git-api-C7JbVL7R.js";import{d as _i}from"./delay-CnY5UFtP.js";const mt=Cr("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Ai="website/loaders/secret.ts",Ri=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Pi=/^(?:[0-9a-f]{2})*$/i;function A0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function pt(t){return typeof t=="string"&&Pi.test(t)}class Mi extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function R0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>R0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(A0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new Mi(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,R0(i,`${e}/${s}`)]))}function r0(t){return JSON.stringify(t,(e,n)=>{if(!n||typeof n!="object"||Array.isArray(n))return n;const s={};for(const i of Object.keys(n).sort())s[i]=n[i];return s})}async function Ii(t){const e=r0(R0(t)),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}function Fi(t,e,n,s={}){return os("",t,e,n,s)}function os(t,e,n,s,i){if(c0(n,s)||c0(e,s))return n;if(c0(e,n))return s;if(be(n)&&be(s)){const o=be(e)?e:{},a={},l=[...Object.keys(n),...Object.keys(s).filter(c=>!(c in n))];for(const c of l){const L=os(`${t}/${Oi(c)}`,o[c],n[c],s[c],i);L!==void 0&&(a[c]=L)}return a}if(Array.isArray(e)&&Array.isArray(n)&&Array.isArray(s)&&n.length===e.length&&s.length===e.length){const o=[];for(const[a,l]of e.entries()){const c=!c0(l,n[a]),L=!c0(l,s[a]);if(c&&L&&!c0(n[a],s[a]))return Bt(t,n,s,i);o.push(c?n[a]:s[a])}return o}return Bt(t,n,s,i)}function Bt(t,e,n,s){return s.conflicts?.push(t),s.prefer==="theirs"?n:e}function Oi(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function c0(t,e){return r0(t)===r0(e)}function be(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Vt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function as(t,e){return me(t,e)}function Di(t,e){return me(t,"preview-fetch",{path:e})}function $i(t){return as(t,"preview-invoke")}function c5(t){return as(t,"catalog-invoke")}function ls(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function zi(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&ls(n))return n}return null}function cs(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??zi();return n&&ls(n)?new URL(e,n).toString():Di(t,e)}function Bi(t){return cs(t,"/.decofile")}function Vi(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Ut(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function Ls(t,e){const n=me(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=Vi(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const a=new Error(`Failed to read ${e}: ${s.status}`);throw a.status=s.status,a}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(z1(o.content))}}catch{return{kind:"unavailable"}}}async function Ui(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function gt(t){return et(t)?.metadata?.runtime?.path??null}function ds(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function L5(t,e){const n=z.c(16),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=t?ds({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=In(),d=z9.decofile(o);let f;n[0]!==c||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==l||n[5]!==t||n[6]!==L?(f=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(Hi),j=v?.ok?Vt(await v.text()):null;if(j)return j;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return $r(L,t);const p=()=>Ls(t,ht(l,".deco/blocks.gen.json"));if(a){const v=await fetch(Bi(t),{cache:"no-store"}).catch(Gi);if(v?.ok){const y=Vt(await v.text());if(y)return y}const j=await p();if(j.kind==="data")return j.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Ut({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:j.kind==="absent"}),S}const h=await p();if(h.kind==="data")return h.data;const g=new Error("decofile unavailable (preview down, no committed snapshot)");throw g.status=Ut({liveOk:!1,committedAbsent:h.kind==="absent"}),g},n[0]=c,n[1]=a,n[2]=i,n[3]=s,n[4]=l,n[5]=t,n[6]=L,n[7]=f):f=n[7];const u=!!t;let x;n[8]!==c||n[9]!==i?(x=(p,h)=>{if(c||i)return p<3;const g=h.status;return g!==502&&g!==404&&p<2},n[8]=c,n[9]=i,n[10]=x):x=n[10];let m;return n[11]!==d||n[12]!==f||n[13]!==u||n[14]!==x?(m={queryKey:d,queryFn:f,enabled:u,staleTime:3e4,retry:x,retryDelay:Ki},n[11]=d,n[12]=f,n[13]=u,n[14]=x,n[15]=m):m=n[15],Y0(m)}function Ki(t){return Hn(5e3,1e3,t,2,0)}function Gi(){return null}function Hi(){return null}function qi(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function Yi(t){return z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function d5(t,e){const n=z.c(21),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=gt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=qe(t?.virtualMcpId),d=!i&&L==="cms";let f;n[0]!==t||n[1]!==a||n[2]!==c?(f=t?Yi({...t,previewUrl:a,productionUrl:c}):z9.liveMeta(""),n[0]=t,n[1]=a,n[2]=c,n[3]=f):f=n[3];let u;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==l||n[8]!==t||n[9]!==a||n[10]!==c?(u=async()=>{const g=Ji,v=()=>d?Ui(t):Ls(t,ht(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:qi({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const y of j){if(y.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const b=await g(y.baseUrl);if(b)return b}const S=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw S.status=502,S},n[4]=d,n[5]=o,n[6]=i,n[7]=l,n[8]=t,n[9]=a,n[10]=c,n[11]=u):u=n[11];const x=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(g,v)=>(d||i||v.status!==502)&&g<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let h;return n[15]!==f||n[16]!==u||n[17]!==x||n[18]!==m||n[19]!==p?(h={queryKey:f,queryFn:u,enabled:x,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:Wi},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],Y0(h)}function Wi(t){return Hn(5e3,1e3,t,2,0)}async function Ji(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Zi);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Zi(){return null}function je(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function u5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=B9(i);if(!o&&i!==""&&J9(i)&&i in e)return{index:s,resolveType:i,label:je(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===W0||l===_e){const L=o?a:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===We){const x=d[0]?.value??{};let m=x.__resolveType??"";const p=B9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===W0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?N9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&J9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?N9(f):"Section";return{index:s,resolveType:i,label:`Variants of ${u}`,variantOf:u,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&J9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(c)||`Section ${s+1}`,isLazy:o}})}const Qi={provision:0,cloning:1,install:2,dev:3};function Xi(t){return Qi[t.step]}const Kt=48,us=28,fs=3,e2=(()=>{const t=[];let e=0;for(let n=0;n<Kt;n++)n===us?t.push(null):(t.push(e/(Kt-1)*fs),e++);return t})();function t2(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function n2(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?zr[e.kind].long:n[t.step]}const V9="bg-foreground/[0.05]",O9="bg-foreground/[0.09]",s2=Array.from({length:35},()=>Math.random()*1.8),r2=Array.from({length:35},()=>Math.random()<.4);function i2(t){const e=z.c(31),{progress:n,claimPhase:s}=t,i=d9();let o;e[0]!==n?(o=Xi(n),e[0]=n,e[1]=o):o=e[1];const a=o;let l;e[2]!==s||e[3]!==n||e[4]!==i?(l=n2(n,s,t2(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=l):l=e[5];const c=l;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(D1,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let f;e[7]!==c||e[8]!==d?(f=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=f):f=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(o2,{}),e[10]=u):u=e[10];let x;e[11]!==a?(x=r.jsx(K0,{phase:0,current:a,children:u}),e[11]=a,e[12]=x):x=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(l2,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(K0,{phase:1,current:a,children:m}),e[14]=a,e[15]=p):p=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=r.jsx(c2,{}),e[16]=h):h=e[16];let g;e[17]!==a?(g=r.jsx(K0,{phase:2,current:a,children:h}),e[17]=a,e[18]=g):g=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(d2,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(K0,{phase:3,current:a,children:v}),e[20]=a,e[21]=j):j=e[21];let S;e[22]!==g||e[23]!==j||e[24]!==x||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[x,p,g,j]}),e[22]=g,e[23]=j,e[24]=x,e[25]=p,e[26]=S):S=e[26];let y;e[27]===Symbol.for("react.memo_cache_sentinel")?(y=r.jsx("style",{children:`
|
|
1
|
+
import{a_ as Cr,c as z,o as In,m as Y0,K as z9,b as d9,j as r,l as K,B as x9,a4 as Fn,aU as Er,e as On,r as F,t as _9,ah as Q9,a$ as wr,b0 as n0,n as _r,I as I9,ap as Dn,T as se,at as I0,U as C9,V as X9,X as e0,a0 as Ar,a1 as Rr,b1 as re,au as we,aZ as Pr,h as x0,v as Ve,aK as Ue,s as Ke,w as $n,q as Ge,D as He,b2 as Mr,H as Ir,a6 as zn,b3 as Fr,aD as Or,aE as Dr,aV as Bn}from"./index-xs_k6Ktz.js";import{a as qe}from"./input-DsuaqMOh.js";import{u as Ye,O as $r,c as B9,P as J9,Q as W0,T as _e,N as We,U as N9,C as zr,V as V0,A as Br,B as Vr,y as Ur,q as Kr,z as Gr,W as Vn,t as Un,X as Hr,Y as Ft,Z as qr,_ as Yr,r as H9,$ as w0,a0 as Kn,a1 as Je,a2 as Wr,a3 as Jr,a4 as Zr,a5 as Qr,a6 as Xr,a7 as Gn,g as e1,a8 as Ze,o as t1,a9 as n1,aa as s1,v as r1,ab as i1,ac as o1,ad as Ae,ae as a1,af as U0,ag as l1,ah as c1,ai as L1,aj as d1,ak as u1,al as f1,am as Ot,an as m1,ao as p1,ap as h1,aq as g1}from"./claim-phase-copy-azjvrOLz.js";import{e as Hn}from"./backoff-CrEUbyZT.js";import{ab as x1,ac as y1,ad as v1,ae as b1,af as j1,ag as S1,ah as k1,ai as N1,aj as T1,a0 as C1,ak as qn,E as E1,al as ie,D as w1,C as _1,am as Yn,a6 as _0,t as A1,d as L0,an as R1,ao as Dt,ap as P1,aa as M1,K as I1,aq as F1,ar as O1}from"./agent-icon-BZX5a0rN.js";import{i as Wn}from"./Play-BeSRLN2O.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as D1}from"./pair-DwD5SdrN.js";import{i as Qe}from"./ChevronSelectorVertical-lAvz2cuG.js";import{C as oe,a as ae,b as Z9,e as f0,c as le,f as Xe,d as $1}from"./command-BWDE-FNh.js";import{a as F0,b as O0,P as D0}from"./popover-CUbGh9FO.js";import{s as z1,a as B1,b as V1}from"./utils-CeckZkhk.js";import{u as Jn}from"./chat-context-CBev6aq3.js";import{S as Zn}from"./scroll-area-D4DX2ZIG.js";import{T as A9,a as R9,b as P9}from"./tooltip-BwqXknMj.js";import{a as et,c as U1}from"./repository-binding-DmdeiZmO.js";import{M as Qn}from"./monaco-editor-C2uEeF5_.js";import{C as K1}from"./calendar-Cm_oXX6s.js";import{T as G1}from"./textarea-V-Ewr6Em.js";import{L as U9}from"./label-BHQ7fAmu.js";import{u as E9}from"./use-new-blocks-editor-Bi1eoiEH.js";import{c as H1,d as q1,i as Y1,b as W1}from"./Tool01-Dx9izhNQ.js";import{i as Xn}from"./SwitchHorizontal01-JU6fMv1N.js";import{s as y0}from"./Plus-CBwPsBC8.js";import{E as a0,M as J1,m as Z1,g as $0,u as Q1,s as X1,a as ei,b as ti}from"./usage-stats-5hdJRwfv.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-DnxgNE4v.js";import{T as F9,E as ni,R as si}from"./rich-text-link-control-Cx8fBuQI.js";import{S as tt}from"./switch-DDSkOeLA.js";import{C as nt,u as st,a as p0,K as rt,P as it,D as ot,c as at,b as lt}from"./core.esm-BqWXbE7p.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-ldWM5mlg.js";import{V as ri}from"./view-mode-toggle-BNtxS74L.js";import{t as v0}from"./ChevronUp-IQvZuGmJ.js";import{a as fe}from"./Copy01-D6HfKiqy.js";import{s as ii,a as h0}from"./Image01-Ch6fYTX9.js";import{s as l0}from"./Trash01-BTFm5tCg.js";import{e as N0,a as es}from"./UserSquare-BAt_wzJ-.js";import{C as oi}from"./combobox-BsiHAQYf.js";import{A as ai,a as li,b as ci,c as Li,g as di,d as ui,e as fi,f as mi}from"./alert-dialog-DFCHlrdG.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-CnrqTNds.js";import{i as z0}from"./Upload01-Bh-Emxn2.js";import{i as ts}from"./AlertCircle-D6PAHKjV.js";import{i as ns}from"./DotsVertical-LyDkiB3Q.js";import{S as pi}from"./search-input-JdMKjHSx.js";import{T as hi,a as gi,c as xi,b as yi}from"./tabs-B9VR2rbK.js";import{u as vi}from"./use-debounced-value-DuWNcnXn.js";import{a as bi,u as ss}from"./use-file-configs-Cnc56owU.js";import{u as ji,a as ft,i as rs,e as Si,b as zt,f as ki}from"./asset-utils-DSAV30pE.js";import{d as is}from"./use-chat-layout-state-DMre3rzo.js";import{a as Ni,T as Ti}from"./toggle-group-a4ytF4Oj.js";import{g as Ci,f as Ei}from"./thread-intent-BzcsRkEY.js";import{t as wi}from"./sandbox-git-api-C7JbVL7R.js";import{d as _i}from"./delay-CnY5UFtP.js";const mt=Cr("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Ai="website/loaders/secret.ts",Ri=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Pi=/^(?:[0-9a-f]{2})*$/i;function A0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function pt(t){return typeof t=="string"&&Pi.test(t)}class Mi extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function R0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>R0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(A0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new Mi(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,R0(i,`${e}/${s}`)]))}function r0(t){return JSON.stringify(t,(e,n)=>{if(!n||typeof n!="object"||Array.isArray(n))return n;const s={};for(const i of Object.keys(n).sort())s[i]=n[i];return s})}async function Ii(t){const e=r0(R0(t)),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}function Fi(t,e,n,s={}){return os("",t,e,n,s)}function os(t,e,n,s,i){if(c0(n,s)||c0(e,s))return n;if(c0(e,n))return s;if(be(n)&&be(s)){const o=be(e)?e:{},a={},l=[...Object.keys(n),...Object.keys(s).filter(c=>!(c in n))];for(const c of l){const L=os(`${t}/${Oi(c)}`,o[c],n[c],s[c],i);L!==void 0&&(a[c]=L)}return a}if(Array.isArray(e)&&Array.isArray(n)&&Array.isArray(s)&&n.length===e.length&&s.length===e.length){const o=[];for(const[a,l]of e.entries()){const c=!c0(l,n[a]),L=!c0(l,s[a]);if(c&&L&&!c0(n[a],s[a]))return Bt(t,n,s,i);o.push(c?n[a]:s[a])}return o}return Bt(t,n,s,i)}function Bt(t,e,n,s){return s.conflicts?.push(t),s.prefer==="theirs"?n:e}function Oi(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function c0(t,e){return r0(t)===r0(e)}function be(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Vt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function as(t,e){return me(t,e)}function Di(t,e){return me(t,"preview-fetch",{path:e})}function $i(t){return as(t,"preview-invoke")}function c5(t){return as(t,"catalog-invoke")}function ls(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function zi(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&ls(n))return n}return null}function cs(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??zi();return n&&ls(n)?new URL(e,n).toString():Di(t,e)}function Bi(t){return cs(t,"/.decofile")}function Vi(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Ut(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function Ls(t,e){const n=me(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=Vi(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const a=new Error(`Failed to read ${e}: ${s.status}`);throw a.status=s.status,a}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(z1(o.content))}}catch{return{kind:"unavailable"}}}async function Ui(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function gt(t){return et(t)?.metadata?.runtime?.path??null}function ds(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function L5(t,e){const n=z.c(16),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=t?ds({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=In(),d=z9.decofile(o);let f;n[0]!==c||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==l||n[5]!==t||n[6]!==L?(f=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(Hi),j=v?.ok?Vt(await v.text()):null;if(j)return j;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return $r(L,t);const p=()=>Ls(t,ht(l,".deco/blocks.gen.json"));if(a){const v=await fetch(Bi(t),{cache:"no-store"}).catch(Gi);if(v?.ok){const y=Vt(await v.text());if(y)return y}const j=await p();if(j.kind==="data")return j.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Ut({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:j.kind==="absent"}),S}const h=await p();if(h.kind==="data")return h.data;const g=new Error("decofile unavailable (preview down, no committed snapshot)");throw g.status=Ut({liveOk:!1,committedAbsent:h.kind==="absent"}),g},n[0]=c,n[1]=a,n[2]=i,n[3]=s,n[4]=l,n[5]=t,n[6]=L,n[7]=f):f=n[7];const u=!!t;let x;n[8]!==c||n[9]!==i?(x=(p,h)=>{if(c||i)return p<3;const g=h.status;return g!==502&&g!==404&&p<2},n[8]=c,n[9]=i,n[10]=x):x=n[10];let m;return n[11]!==d||n[12]!==f||n[13]!==u||n[14]!==x?(m={queryKey:d,queryFn:f,enabled:u,staleTime:3e4,retry:x,retryDelay:Ki},n[11]=d,n[12]=f,n[13]=u,n[14]=x,n[15]=m):m=n[15],Y0(m)}function Ki(t){return Hn(5e3,1e3,t,2,0)}function Gi(){return null}function Hi(){return null}function qi(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function Yi(t){return z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function d5(t,e){const n=z.c(21),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=gt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=qe(t?.virtualMcpId),d=!i&&L==="cms";let f;n[0]!==t||n[1]!==a||n[2]!==c?(f=t?Yi({...t,previewUrl:a,productionUrl:c}):z9.liveMeta(""),n[0]=t,n[1]=a,n[2]=c,n[3]=f):f=n[3];let u;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==l||n[8]!==t||n[9]!==a||n[10]!==c?(u=async()=>{const g=Ji,v=()=>d?Ui(t):Ls(t,ht(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:qi({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const y of j){if(y.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const b=await g(y.baseUrl);if(b)return b}const S=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw S.status=502,S},n[4]=d,n[5]=o,n[6]=i,n[7]=l,n[8]=t,n[9]=a,n[10]=c,n[11]=u):u=n[11];const x=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(g,v)=>(d||i||v.status!==502)&&g<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let h;return n[15]!==f||n[16]!==u||n[17]!==x||n[18]!==m||n[19]!==p?(h={queryKey:f,queryFn:u,enabled:x,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:Wi},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],Y0(h)}function Wi(t){return Hn(5e3,1e3,t,2,0)}async function Ji(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Zi);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Zi(){return null}function je(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function u5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=B9(i);if(!o&&i!==""&&J9(i)&&i in e)return{index:s,resolveType:i,label:je(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===W0||l===_e){const L=o?a:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===We){const x=d[0]?.value??{};let m=x.__resolveType??"";const p=B9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===W0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?N9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&J9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?N9(f):"Section";return{index:s,resolveType:i,label:`Variants of ${u}`,variantOf:u,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&J9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(c)||`Section ${s+1}`,isLazy:o}})}const Qi={provision:0,cloning:1,install:2,dev:3};function Xi(t){return Qi[t.step]}const Kt=48,us=28,fs=3,e2=(()=>{const t=[];let e=0;for(let n=0;n<Kt;n++)n===us?t.push(null):(t.push(e/(Kt-1)*fs),e++);return t})();function t2(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function n2(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?zr[e.kind].long:n[t.step]}const V9="bg-foreground/[0.05]",O9="bg-foreground/[0.09]",s2=Array.from({length:35},()=>Math.random()*1.8),r2=Array.from({length:35},()=>Math.random()<.4);function i2(t){const e=z.c(31),{progress:n,claimPhase:s}=t,i=d9();let o;e[0]!==n?(o=Xi(n),e[0]=n,e[1]=o):o=e[1];const a=o;let l;e[2]!==s||e[3]!==n||e[4]!==i?(l=n2(n,s,t2(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=l):l=e[5];const c=l;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(D1,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let f;e[7]!==c||e[8]!==d?(f=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=f):f=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(o2,{}),e[10]=u):u=e[10];let x;e[11]!==a?(x=r.jsx(K0,{phase:0,current:a,children:u}),e[11]=a,e[12]=x):x=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(l2,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(K0,{phase:1,current:a,children:m}),e[14]=a,e[15]=p):p=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=r.jsx(c2,{}),e[16]=h):h=e[16];let g;e[17]!==a?(g=r.jsx(K0,{phase:2,current:a,children:h}),e[17]=a,e[18]=g):g=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(d2,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(K0,{phase:3,current:a,children:v}),e[20]=a,e[21]=j):j=e[21];let S;e[22]!==g||e[23]!==j||e[24]!==x||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[x,p,g,j]}),e[22]=g,e[23]=j,e[24]=x,e[25]=p,e[26]=S):S=e[26];let y;e[27]===Symbol.for("react.memo_cache_sentinel")?(y=r.jsx("style",{children:`
|
|
2
2
|
@keyframes vm-pulse-soft {
|
|
3
3
|
0%, 100% { opacity: 0.25; }
|
|
4
4
|
50% { opacity: 1; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as b,r as i,b4 as ie,b5 as ce,e as le,b6 as j,c as de,a2 as fe,J as Se,j as me}from"./index-
|
|
1
|
+
import{o as b,r as i,b4 as ie,b5 as ce,e as le,b6 as j,c as de,a2 as fe,J as Se,j as me}from"./index-xs_k6Ktz.js";import{u as pe}from"./use-mcp-client-DTwq_7MH.js";import{a as ye}from"./input-DsuaqMOh.js";import{b as Ee,u as he}from"./chat-context-CBev6aq3.js";import{u as Re}from"./thread-intent-BzcsRkEY.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-v_kGJN2U.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=b(t);return be({filters:{...e,status:"pending"}},n).length}function X(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function be(e={},t){const n=b(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=X(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(u=>n.subscribe(()=>{const a=ie(s.current,X(n,r.current));s.current!==a&&(s.current=a,ce.schedule(u))}),[n]),()=>s.current,()=>s.current)}async function Pe(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const q=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),U=new Set,g={mark:(e,t)=>U.add(`${e}::${t}`),clear:(e,t)=>U.delete(`${e}::${t}`),isStopped:(e,t)=>U.has(`${e}::${t}`)};function _e(e,t){const n=b();return le({mutationKey:q,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>xe(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),u=w.get(s);if(u)return u;const a=(async()=>(await Pe(e,"SANDBOX_START",r)).structuredContent)();w.set(s,a);try{return await a}finally{w.get(s)===a&&w.delete(s)}},onSuccess:()=>{j(n),t?.onStarted?.()}})}function Me(e,t){const n=de.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:q,predicate:u=>{if(!e)return!1;const a=u.state.variables;return!a||a.virtualMcpId!==e?!1:(a.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],Te(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function ge(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function We(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function De(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function ze(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,u=e.ownerId??r;if(!r||!u||!s)return t;const a=n?.[u]?.[s];return a?{...t??{},[r]:{...t?.[r]??{},[s]:a}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Y=2,Le=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return Le.has(e)}function Oe(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Y&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const $e={branch:null,count:0,handled:!1};function Be(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Ve(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function Q(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function T(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:Q(n,t.branch??r),url:t.previewUrl})}const Ne={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},M=i.createContext(Ne);function Ge(){return i.use(M)}function Ze({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:u,threadId:a,children:D}){const{org:L}=fe(),{setCurrentTaskBranch:l}=Ee(),W=Re(),p=we(),z=b(),O=ye(t),G=O.resolved?O.runtime:null,d=he()?.taskId??null,$=pe({connectionId:Se,orgId:L.id,orgSlug:L.slug}),c=_e($,{onStarted:()=>{a&&W?.refreshThreadMetadata(a)}}),{mutate:f,reset:Z}=c,[ee,S]=i.useState(null),P=i.useRef(new Set),C=i.useRef(null),[B,R]=i.useState($e),E=Be(B,n);E!==B&&R(E);const y=p.phase?.kind==="failed"?p.phase:null,V=ve({vmEntry:u,seeded:y?null:ee,key:Q(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),te=p.status.state==="paused",ne=!y||!J(y.reason)||E.count>=Y,re=Ve({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:ne}),F=Ue({previewUrl:V,appPaused:te,userStopped:h,startError:re}),se=Fe(F),k=n??"",oe=P.current.has(k),v=ge({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:u,userStopped:h,isPending:c.isPending,attempted:oe,sessionRuntime:G});i.useEffect(()=>{if(!v||!t)return;P.current.add(k);const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] auto-start failed:",o)}})},[v,k,n,t,d,f,l,S]);const x=p.notFound?u?.sandboxHandle??null:null,N=De({executionEnabled:e,notFound:p.notFound,deadVmId:x,lastDeadVmId:C.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!N||!x||!t)return;C.current=x;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] self-heal failed:",o)}})},[N,x,t,n,d,f,l,S]);const I=Oe({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){R(o=>o.handled?{...o,handled:!1}:o);return}if(!I||!t)return;R(o=>({...o,handled:!0,count:o.count+1}));const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",o)}})},[y,I,t,n,d,f,l,S]);const _=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] user start failed:",o)}})},K=async()=>{if(!(!e||!t||!n)&&u){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}j(z)}},ae=async()=>{await K(),_()},H=()=>{P.current=new Set,C.current=null,R({branch:n,count:0,handled:!1}),Z(),_()},ue={branch:n,previewState:F,status:se,vmEntry:u,previewUrl:V,userStopped:h,start:_,stop:K,restart:ae,retry:H,resume:H};return me.jsx(M,{value:ue,children:D})}export{Ze as S,_e as a,Ge as b,Te as c,ze as o,We as s,Me as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aD as n,bS as e,aE as o,bT as d,bU as l}from"./index-
|
|
1
|
+
import{aD as n,bS as e,aE as o,bT as d,bU as l}from"./index-xs_k6Ktz.js";const a=500;n({title:o().max(a),url:o().max(a),icon:o().max(a)});const t=n({keyId:o().max(a),modelId:o().max(a),title:o().max(a).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=n({tiers:n({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});n({tiers:n({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;n({host:o().min(1).max(a).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:o().min(1).max(a).describe("Vault secret id holding the PAT used to authenticate this host.")});n({ids:l(o().max(a)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=n({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` built-in post blocks everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible. Off by default. Blocks already present in a post keep rendering; this only governs what can be added.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only"]);function g(i,s){const r=i?.[s];return h.has(s)?r!==!1:r===!0}function m(i){const s=i?.auto_resolve_conflicts;return typeof s=="boolean"?s:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,m as a,c as b,g as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,by as A,bu as ce,j as b,bA as _,bN as ae,dl as O,bB as C,bH as P,bC as ie,c as F,l as $}from"./index-E8HkK7le.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),v=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(v))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
1
|
+
import{r as d,by as A,bu as ce,j as b,bA as _,bN as ae,dl as O,bB as C,bH as P,bC as ie,c as F,l as $}from"./index-xs_k6Ktz.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),v=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(v))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l as w,j as a,h as j}from"./index-
|
|
1
|
+
import{c as b,l as w,j as a,h as j}from"./index-xs_k6Ktz.js";import{i as v}from"./SearchMd-DFKnlLzg.js";function k(f){const e=b.c(17),{value:l,onChange:c,placeholder:m,onKeyDown:u,className:d,isSearching:p,disabled:r}=f,x=m===void 0?"Search...":m,h=r&&"pointer-events-none opacity-50";let t;e[0]!==d||e[1]!==h?(t=w("flex items-center gap-4 rounded-lg bg-[var(--studio-input-background)] px-3 h-8 card-shadow","focus-within:border-ring focus-within:ring-ring/20 focus-within:ring-[2px]","transition-[color,box-shadow]",h,d),e[0]=d,e[1]=h,e[2]=t):t=e[2];let n;e[3]!==p?(n=p?a.jsx(j,{className:"size-4 text-muted-foreground/75 shrink-0"}):a.jsx(v,{size:16,className:"text-muted-foreground/75 shrink-0"}),e[3]=p,e[4]=n):n=e[4];let s;e[5]!==c?(s=g=>c(g.target.value),e[5]=c,e[6]=s):s=e[6];let o;e[7]!==r||e[8]!==u||e[9]!==x||e[10]!==s||e[11]!==l?(o=a.jsx("input",{type:"text",value:l,onChange:s,onKeyDown:u,placeholder:x,disabled:r,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[7]=r,e[8]=u,e[9]=x,e[10]=s,e[11]=l,e[12]=o):o=e[12];let i;return e[13]!==t||e[14]!==n||e[15]!==o?(i=a.jsxs("label",{className:t,children:[n,o]}),e[13]=t,e[14]=n,e[15]=o,e[16]=i):i=e[16],i}export{k as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,r as C,l as z,j as a,aV as M}from"./index-
|
|
1
|
+
import{c as K,r as C,l as z,j as a,aV as M}from"./index-xs_k6Ktz.js";import{i as B}from"./SearchMd-DFKnlLzg.js";import{I as O}from"./icon-button-CH2OxNKZ.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,y=F===void 0?"Clear search":F,[I,p]=C.useState(t!==""),[L,V]=C.useState(!1),[R,$]=C.useState(t);if(t!==R&&($(t),t===""&&!L&&p(!1)),!I&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(B,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"secondary",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const _=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==_?(n=z("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground card-shadow",_,j),e[4]=j,e[5]=_,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(B,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const k=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>V(!0),e[10]=h):h=e[10];let c;e[11]!==t?(c=()=>{V(!1),t===""&&p(!1)},e[11]=t,e[12]=c):c=e[12];let i;e[13]!==s?(i=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=i):i=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=z("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==c||e[19]!==i||e[20]!==f||e[21]!==k||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:k,value:t,onChange:r,onFocus:h,onBlur:c,onKeyDown:i,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=c,e[19]=i,e[20]=f,e[21]=k,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==y||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":y,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=y,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,b as d,j as l}from"./index-
|
|
1
|
+
import{c as x,b as d,j as l}from"./index-xs_k6Ktz.js";import{s as j}from"./User01-CQJ9yvoz.js";import{t as E}from"./Users01-D5wZqDor.js";const b=/^[A-Za-z0-9_.-]+$/;function h(u){const e=x.c(15),{field:p,secretById:t}=u,s=d(),n=p.value||"";if(!n)return null;let a;e[0]!==n||e[1]!==t?(a=t.get(n),e[0]=n,e[1]=t,e[2]=a):a=e[2];const c=a;if(!c){let i;e[3]!==n||e[4]!==s?(i=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=i):i=e[5];let f;return e[6]!==i?(f=l.jsx("span",{className:"text-destructive",children:i}),e[6]=i,e[7]=f):f=e[7],f}let o;e[8]!==c.scope?(o=l.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=l.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(u){const e=x.c(2),{scope:p}=u,t=p==="user"?j:E;let s;return e[0]!==t?(s=l.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{h as S,b as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,b as y,j as s,n as C,fG as E,H as F,r as N,b2 as L,B as D,af as T,D as O,q as B,s as A,v as R,aK as q,I as _,w as I,t as z}from"./index-
|
|
1
|
+
import{c as j,b as y,j as s,n as C,fG as E,H as F,r as N,b2 as L,B as D,af as T,D as O,q as B,s as A,v as R,aK as q,I as _,w as I,t as z}from"./index-xs_k6Ktz.js";import{i as H}from"./AlertCircle-D6PAHKjV.js";import{s as V}from"./Plus-CBwPsBC8.js";import{s as G}from"./User01-CQJ9yvoz.js";import{t as K}from"./Users01-D5wZqDor.js";import{L as w}from"./label-BHQ7fAmu.js";import{S as J,b as M,a as Q,d as U,c as P}from"./select-DnxgNE4v.js";import{T as W}from"./textarea-V-Ewr6Em.js";import{u as X,a as Y}from"./use-secrets-C-9G8ydk.js";import{R as Z}from"./require-capability-DDfk0Kb5.js";import"./index-BdQq_4o_.js";import"./index-CN-5kkc7.js";import"./ChevronUp-IQvZuGmJ.js";import"./access-gate-Du7U7Rzo.js";import"./capability-load-error-CTNI2hrf.js";function ee(t){const e=j.c(6),{error:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(H,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let a;return e[4]!==n?(a=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=a):a=e[5],a}function te(t){const e=j.c(8),{scope:r}=t,i=y(),c=r==="user"?G:K;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const a=n;let l;e[3]!==c?(l=s.jsx(c,{size:12}),e[3]=c,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[l,a]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(te,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let a;e[5]!==c||e[6]!==n?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=a):a=e[7];let l;e[8]!==r.description?(l=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=l):l=e[9];let o;e[10]!==a||e[11]!==l?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[a,l]})]}),e[10]=a,e[11]=l,e[12]=o):o=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let m;e[15]!==d?(m=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=m):m=e[16];let x;return e[17]!==o||e[18]!==m?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,m]}),e[17]=o,e[18]=m,e[19]=x):x=e[19],x}function se(t){const e=j.c(15),{action:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(T,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let a;e[3]!==n?(a=s.jsx("p",{className:"font-medium text-sm",children:n}),e[3]=n,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("settings.secrets.emptyDescription"),e[5]=i,e[6]=l):l=e[6];let o;e[7]!==l?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:l}),e[7]=l,e[8]=o):o=e[8];let d;e[9]!==a||e[10]!==o?(d=s.jsxs("div",{children:[a,o]}),e[9]=a,e[10]=o,e[11]=d):d=e[11];let m;return e[12]!==r||e[13]!==d?(m=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,d,r]}),e[12]=r,e[13]=d,e[14]=m):m=e[14],m}function k({open:t,onOpenChange:e}){const r=y(),[i,c]=N.useState("organization"),[n,a]=N.useState(""),[l,o]=N.useState(""),[d,m]=N.useState(""),x=Y();function g(){c("organization"),a(""),o(""),m("")}function p(){g(),e(!1)}async function b(u){if(u.preventDefault(),!(!n.trim()||!l))try{await x.mutateAsync({scope:i,name:n.trim(),value:l,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:u=>{u?e(u):p()},children:s.jsxs(B,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(R,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:u=>c(u),children:[s.jsx(M,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(U,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:u=>a(u.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:l,onChange:u=>o(u.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(W,{id:"secret-description",value:d,onChange:u=>m(u.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(I,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!l,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function re(){const t=j.c(34),e=y(),r=X(),[i,c]=N.useState(!1);let n,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),a=s.jsx(V,{size:14}),t[0]=n,t[1]=a):(n=t[0],a=t[1]);let l;t[2]!==e?(l=e("settings.secrets.newSecret"),t[2]=e,t[3]=l):l=t[3];let o;t[4]!==l?(o=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[a,l]})}),t[4]=l,t[5]=o):o=t[5];const d=o;if(r.length===0){let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(se,{action:!1}),t[6]=u):u=t[6];let f;t[7]!==i?(f=s.jsx(k,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,u,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let m,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const u=r.filter(le),f=r.filter(ce),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let S;t[18]!==r.length||t[19]!==e||t[20]!==h?(S=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=S):S=t[21];let v;t[22]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),t[22]=S,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(m=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=m):m=t[26],x=u.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:u.map(ie)})]}):null,g=f.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ne)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=m,t[16]=x,t[17]=g}else m=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(k,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let b;return t[29]!==m||t[30]!==x||t[31]!==g||t[32]!==p?(b=s.jsxs(s.Fragment,{children:[m,x,g,p]}),t[29]=m,t[30]=x,t[31]=g,t[32]=p,t[33]=b):b=t[33],b}function ne(t){return s.jsx($,{secret:t},t.id)}function ie(t){return s.jsx($,{secret:t},t.id)}function ce(t){return t.scope==="user"}function le(t){return t.scope==="organization"}function ae(){const t=j.c(7),e=y();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{fallback:oe,children:s.jsx(N.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(re,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(E,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function oe(t){const{error:e}=t;return s.jsx(ee,{error:e??new Error("Failed to load secrets")})}function we(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{capability:"secrets:manage",area:"secrets",children:s.jsx(ae,{})}),t[0]=e):e=t[0],e}export{we as default};
|