decocms 4.500.0 → 4.500.1
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-CHPU_j8T.js → ActiveShapeUtils-0lZFPRc5.js} +1 -1
- package/dist/client/assets/{AlertCircle-CgfWDsMW.js → AlertCircle-BxvPb2ao.js} +1 -1
- package/dist/client/assets/{AreaChart-CZuIkHuk.js → AreaChart-DKj07iCf.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BkyozCr0.js → ArrowLeft-Bf9KgkxW.js} +1 -1
- package/dist/client/assets/{ArrowUp-C0O7U47F.js → ArrowUp-gYvBgsvU.js} +1 -1
- package/dist/client/assets/{BarChart-D_Vp8_nk.js → BarChart-rD6omHOr.js} +1 -1
- package/dist/client/assets/{Building02-C5UvSZSt.js → Building02-DRjaqBiC.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CYT1jRTo.js → CategoricalChart-1PnDkjx0.js} +1 -1
- package/dist/client/assets/{CheckCircle-B1cLRmIj.js → CheckCircle-BkmLMZuX.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-bEeSv3mr.js → ChevronSelectorVertical-z-lNsxRS.js} +1 -1
- package/dist/client/assets/{ChevronUp-D_qU7VrJ.js → ChevronUp-D3SVSsDX.js} +1 -1
- package/dist/client/assets/{Copy01-CT_cEqll.js → Copy01-BQJ05ZRk.js} +1 -1
- package/dist/client/assets/{CreditCard01-DFGzM4td.js → CreditCard01-CWewoMfz.js} +1 -1
- package/dist/client/assets/{DotsVertical-CGu7Zbqo.js → DotsVertical-GUU5bDEx.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BOQmu79L.js → ErrorBarContext-BDcf6gHj.js} +1 -1
- package/dist/client/assets/{Globe04-DtoCZsmb.js → Globe04-D1j2EnT6.js} +1 -1
- package/dist/client/assets/{Image01-CyU1b2Nz.js → Image01-Di7GijaS.js} +1 -1
- package/dist/client/assets/{Key01-CV4MPPMx.js → Key01-DxZh4RS9.js} +1 -1
- package/dist/client/assets/{Link01-BL0KHGWk.js → Link01-ChC1RPem.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CImL6HGl.js → LinkBroken01-wNBs-Zx0.js} +1 -1
- package/dist/client/assets/{Monitor01-jDiltU3l.js → Monitor01-cMYo2KVy.js} +1 -1
- package/dist/client/assets/{Play-HeD-LWQ6.js → Play-B0un_kIg.js} +1 -1
- package/dist/client/assets/{Plus-BzLmRH_e.js → Plus-BdYjAB2U.js} +1 -1
- package/dist/client/assets/{SearchMd-X-m-ot0f.js → SearchMd-COTu5fMc.js} +1 -1
- package/dist/client/assets/{Sector-Dk1WFIe-.js → Sector-B_NVpmVd.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-C30WMfg1.js → ShoppingBag01-DO4re_7a.js} +1 -1
- package/dist/client/assets/{Sun-D5cuTnns.js → Sun-Pe0tJTeM.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-iT36Ixqz.js → SwitchHorizontal01-BaclOje4.js} +1 -1
- package/dist/client/assets/{Tool01-BLdqmAM-.js → Tool01-BZb-DMpJ.js} +1 -1
- package/dist/client/assets/{Trash01-DkcAHDGj.js → Trash01-c56q-lrS.js} +1 -1
- package/dist/client/assets/{Upload01-CJxfk4_B.js → Upload01-Cp8lvoBS.js} +1 -1
- package/dist/client/assets/{User01-CuJbE_Yd.js → User01-BdQVEBpk.js} +1 -1
- package/dist/client/assets/{UserSquare-BlSFjBrQ.js → UserSquare-BwyhtJD3.js} +1 -1
- package/dist/client/assets/{Users01-CgCEjxiR.js → Users01-CGD8XkzR.js} +1 -1
- package/dist/client/assets/{XAxis-B6hTknR7.js → XAxis-CZmv7pwr.js} +1 -1
- package/dist/client/assets/{XClose-BcQlXPoY.js → XClose-DkK6PiiA.js} +1 -1
- package/dist/client/assets/{ZoomOut-C_NtAfgt.js → ZoomOut-CLyO4H5k.js} +1 -1
- package/dist/client/assets/{access-gate-0Qu33vtT.js → access-gate-BiwwMoCd.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CmVGiYmi.js → add-connection-dialog-BwEgsoXe.js} +1 -1
- package/dist/client/assets/{agent-analytics-DbQCZ1PQ.js → agent-analytics-DgdkRKsE.js} +1 -1
- package/dist/client/assets/agent-app-BXjPfkyc.js +1 -0
- package/dist/client/assets/{agent-assets-B-t0qw5_.js → agent-assets-BEEc2iCy.js} +1 -1
- package/dist/client/assets/{agent-automation-AdWBGK9-.js → agent-automation-UEWnzLQw.js} +1 -1
- package/dist/client/assets/{agent-automations-x2lM3jDX.js → agent-automations-DYwqwLW1.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DygiFIri.js → agent-connect-sources-D8dr4EjE.js} +1 -1
- package/dist/client/assets/agent-deck-CtmtBmBx.js +1 -0
- package/dist/client/assets/{agent-e2e-CDURPj47.js → agent-e2e-D7JZW-K5.js} +1 -1
- package/dist/client/assets/{agent-experiments-BIa2lB5Q.js → agent-experiments-C5NBwdQH.js} +1 -1
- package/dist/client/assets/{agent-file-BKXQWZUy.js → agent-file-Bl3BYoGY.js} +1 -1
- package/dist/client/assets/{agent-hosting-BYQZVYMZ.js → agent-hosting-Bcb13dX4.js} +1 -1
- package/dist/client/assets/{agent-icon-CsQzAnP1.js → agent-icon-If8hSRmw.js} +1 -1
- package/dist/client/assets/agent-library-Dh7CWaTR.js +1 -0
- package/dist/client/assets/agent-library-file-G7_pw9sf.js +1 -0
- package/dist/client/assets/{agent-monitor-CCT32NKJ.js → agent-monitor-DvIz2Ok0.js} +1 -1
- package/dist/client/assets/{agent-overview-dfgPX_7d.js → agent-overview-C7_VfE93.js} +1 -1
- package/dist/client/assets/agent-settings-C_Xfu2fI.js +1 -0
- package/dist/client/assets/{agent-site-editor-CG3fYjTa.js → agent-site-editor-CN48-wRM.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-C2cYJ1gd.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-5eCWHoNS.js → agent-site-editor-content-Ckedmp3x.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-uwuaRHqi.js → agent-site-editor-preview-C-Q3v0ql.js} +3 -3
- package/dist/client/assets/agent-view-DXlTANvs.js +1 -0
- package/dist/client/assets/{agent-view-guard-e44iAytb.js → agent-view-guard-D5yzT3LN.js} +1 -1
- package/dist/client/assets/{agents-list-C2x26zj4.js → agents-list-BU_W6GYK.js} +1 -1
- package/dist/client/assets/{ai-providers-DwXqL2iz.js → ai-providers-fpiCYdpV.js} +1 -1
- package/dist/client/assets/{alert-DYD14Lxr.js → alert-BIg9W0aP.js} +1 -1
- package/dist/client/assets/{alert-dialog-D2yDyccd.js → alert-dialog-DnRanV2g.js} +1 -1
- package/dist/client/assets/{analytics-sections-CYXgA9AC.js → analytics-sections-C00N7Swi.js} +1 -1
- package/dist/client/assets/api-keys-BpjBduhZ.js +1 -0
- package/dist/client/assets/{api-keys-BtQl5Awe.js → api-keys-CdKCqSq9.js} +1 -1
- package/dist/client/assets/app-editor-DUK0IXGU.js +1 -0
- package/dist/client/assets/{asset-utils-cuI-wo7N.js → asset-utils-Cy2Arrv8.js} +1 -1
- package/dist/client/assets/{auth-CsAAW7Ar.js → auth-CFhHut-U.js} +1 -1
- package/dist/client/assets/{auth-catchall-CDMks_Rc.js → auth-catchall-crHvtL33.js} +1 -1
- package/dist/client/assets/{auth-entry-Cwn8f6E3.js → auth-entry-DOxd-oDa.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DFsDNY_O.js → auth-split-layout-BdrayXcm.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-HfpfV8ZS.js → authenticate-and-persist-oauth-CXGLXx3K.js} +1 -1
- package/dist/client/assets/{automation-list-row-Bgtl2dei.js → automation-list-row-B3j3Aqo0.js} +1 -1
- package/dist/client/assets/{automation-runs-CBT3E_fm.js → automation-runs-C1mxodr9.js} +1 -1
- package/dist/client/assets/{automations-BSD8vInf.js → automations-CuezewX9.js} +1 -1
- package/dist/client/assets/{autosend-8ZqTuUx9.js → autosend-fqRoYj3y.js} +1 -1
- package/dist/client/assets/{avatar-Da-P84-z.js → avatar-BuYUCU8g.js} +1 -1
- package/dist/client/assets/{badge-CJ5q8uJu.js → badge-GwFEODr4.js} +1 -1
- package/dist/client/assets/{block-document-Drzpg_bb.js → block-document-BrrhHB-1.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CJnlWxc-.js → blocks-preview-workspace-context-B0-hAhDE.js} +1 -1
- package/dist/client/assets/{blog-schema-WI1e8zgj.js → blog-schema-nc8wHUFN.js} +1 -1
- package/dist/client/assets/{board-analytics-Cla3ZHOc.js → board-analytics-CJy5BZil.js} +1 -1
- package/dist/client/assets/{buckets-BO0Sw74J.js → buckets-Chl9QvRo.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BWoapP6S.js → build-improve-prompt-doc-bdRLsgg1.js} +1 -1
- package/dist/client/assets/{calendar-DKYy6uOJ.js → calendar-CKfIuZta.js} +1 -1
- package/dist/client/assets/{capability-load-error-DGJphxbe.js → capability-load-error-CYzyh0CO.js} +1 -1
- package/dist/client/assets/{category-editor-C6uMv0OA.js → category-editor-B1y8lXf9.js} +1 -1
- package/dist/client/assets/{chart-CUhY88so.js → chart-CJFl1MMf.js} +1 -1
- package/dist/client/assets/{chat-context-y8u3K9Tq.js → chat-context-Nnpd61_s.js} +1 -1
- package/dist/client/assets/{chat-draft-RqSOe2VX.js → chat-draft-L3duX_N0.js} +1 -1
- package/dist/client/assets/{checkbox-cuQOxwwj.js → checkbox-BWTda68M.js} +1 -1
- package/dist/client/assets/{choose-editor-DVY0m-0N.js → choose-editor-DYnb1tkA.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-kSJ81npa.js → claim-phase-copy-D3VDMBEf.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BNNiQ0ff.js → cli-auth-success-BoeMcWLR.js} +1 -1
- package/dist/client/assets/{client-icons-k3K_Wm7m.js → client-icons-CJKx4xiT.js} +1 -1
- package/dist/client/assets/{collapsible-DEfXG6Ht.js → collapsible-lK_B-eQd.js} +1 -1
- package/dist/client/assets/{collection-detail-CUR7b1nw.js → collection-detail-Vn8gJTW3.js} +1 -1
- package/dist/client/assets/{collection-display-button-Bii74DZw.js → collection-display-button-D2MgCcuo.js} +1 -1
- package/dist/client/assets/{collection-search-C-3HPALa.js → collection-search-y9E4m6mw.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BI9XAUwm.js → collection-table-wrapper-C3XHd41R.js} +1 -1
- package/dist/client/assets/{collection-tabs-BNpEfqyd.js → collection-tabs-4g4B9cjE.js} +1 -1
- package/dist/client/assets/{column-rules-B7pcw_Gh.js → column-rules-9DKyUJpF.js} +1 -1
- package/dist/client/assets/{combobox-ylZ1_mxm.js → combobox-jkqCfq0Y.js} +1 -1
- package/dist/client/assets/{command-d2fvY4gQ.js → command-CS7Iytaa.js} +1 -1
- package/dist/client/assets/{companion-mcps-section--NCFPgCd.js → companion-mcps-section-CDZ8AQp6.js} +1 -1
- package/dist/client/assets/{config-BDYRd6Wk.js → config-BsqcAsk2.js} +1 -1
- package/dist/client/assets/{connect-CKDAuMYC.js → connect-DPAUHTC6.js} +1 -1
- package/dist/client/assets/{connect-layout-Ca1Vr3vz.js → connect-layout-BcuosOAR.js} +1 -1
- package/dist/client/assets/{connection-DGqqVA7M.js → connection-BkSfvJVU.js} +1 -1
- package/dist/client/assets/{connection-card-gIhz0wdg.js → connection-card-C_MH7Wpz.js} +1 -1
- package/dist/client/assets/{connection-detail-B9omyXwb.js → connection-detail-BaqloXKG.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-A2MriNrX.js → connection-form-helpers-DQVYQ8po.js} +1 -1
- package/dist/client/assets/{connections-Dh4JuodF.js → connections-D7TDDOL8.js} +1 -1
- package/dist/client/assets/{context-BnF04rBC.js → context-DotpkFxJ.js} +1 -1
- package/dist/client/assets/{context-menu-BD-010iM.js → context-menu-wgsE3MAX.js} +1 -1
- package/dist/client/assets/{core.esm-BH3HyyF2.js → core.esm-z-XuEZtM.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DjZlmVnS.js → create-organization-dialog-C0ldUMIm.js} +1 -1
- package/dist/client/assets/{daily-pulse-BXDtpJQU.js → daily-pulse-OvS9j1DR.js} +1 -1
- package/dist/client/assets/{device-hint-CN2khPPs.js → device-hint-CwQqo1e8.js} +1 -1
- package/dist/client/assets/{discover-C-mYnXQB.js → discover-w0SumBzq.js} +1 -1
- package/dist/client/assets/{domain-settings-BEwECWE8.js → domain-settings-BrjA42lz.js} +1 -1
- package/dist/client/assets/{drawer-DybzZn1x.js → drawer-zHclspIB.js} +1 -1
- package/dist/client/assets/{editor-CBqQFFb9.js → editor-DTtfEyTo.js} +1 -1
- package/dist/client/assets/{empty-state-b6tRqzU8.js → empty-state-IlGYVTi4.js} +1 -1
- package/dist/client/assets/{empty-state-B4qRMioD.js → empty-state-Tupt8Yp0.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CIO9f-TD.js → extract-connection-data-IvYRZ7XN.js} +1 -1
- package/dist/client/assets/{feature-gate-ChDRcm7b.js → feature-gate-BWBuladg.js} +1 -1
- package/dist/client/assets/{feature-paywall-BN5FphJ8.js → feature-paywall-CWEKFuzv.js} +1 -1
- package/dist/client/assets/{file-explorer-DCd1-8-d.js → file-explorer-DDezPRHM.js} +1 -1
- package/dist/client/assets/{file-preview-CNp5DdHM.js → file-preview-CtE-K6lW.js} +1 -1
- package/dist/client/assets/{file-share-button-DOQq6Wrq.js → file-share-button-0-Y1imyL.js} +1 -1
- package/dist/client/assets/{file-type-icon-ClWl2ykw.js → file-type-icon-BR9FUHTR.js} +1 -1
- package/dist/client/assets/flat-project-CJztueGN.js +1 -0
- package/dist/client/assets/{folder-icon-BO5Hlc-b.js → folder-icon-Codo-krq.js} +1 -1
- package/dist/client/assets/{form-Dm1N7Fdz.js → form-WKBhslpB.js} +1 -1
- package/dist/client/assets/{general-CszMiv7n.js → general-BmVwgSpQ.js} +1 -1
- package/dist/client/assets/{home-DT4jq_ad.js → home-C8HlFESK.js} +1 -1
- package/dist/client/assets/{icon-button-UzqZkmgc.js → icon-button-CQ2v9QBu.js} +1 -1
- package/dist/client/assets/{index-DXSiv_GM.js → index-B0icUXIz.js} +3 -3
- package/dist/client/assets/{index-ba_EB2Zw.js → index-ByZer9OV.js} +1 -1
- package/dist/client/assets/{index-D984WV3U.js → index-C2j6GKW9.js} +2 -2
- package/dist/client/assets/{index-B4rQ5Ej9.js → index-CaRHAAtN.js} +1 -1
- package/dist/client/assets/{index-CeuDCj_w.js → index-D7CijXBU.js} +1 -1
- package/dist/client/assets/{index-Dq9ehfIf.js → index-DBECXDDY.js} +1 -1
- package/dist/client/assets/{index-ChAMt2d-.js → index-DBa0gwyi.js} +1 -1
- package/dist/client/assets/{index-z9lysifj.js → index-DtWzP34K.js} +1 -1
- package/dist/client/assets/{index-BkaImz4P.js → index-Du6GVafn.js} +1 -1
- package/dist/client/assets/{index-DiGKvbHH.js → index-GDECV0d_.js} +1 -1
- package/dist/client/assets/{index-QP5dyfS7.js → index-PT6caLTc.js} +1 -1
- package/dist/client/assets/{index-ClN0hPjk.js → index-bNAUdK_u.js} +1 -1
- package/dist/client/assets/{index-redirect-8HspsPDC.js → index-redirect-C5xUvpJP.js} +1 -1
- package/dist/client/assets/{index-BA22z-aT.js → index-tFXuptGT.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bmwf-SCt.js → infiniteQueryObserver-C6N8XSEQ.js} +1 -1
- package/dist/client/assets/{infra-billing-DlP3vLBN.js → infra-billing-D4jz_iHz.js} +1 -1
- package/dist/client/assets/{input-C_t2NUbp.js → input-BdGTWCdG.js} +3 -3
- package/dist/client/assets/{input-CG0PFhS0.js → input-cQlwYX14.js} +1 -1
- package/dist/client/assets/{integration-icon-B4EO_1fi.js → integration-icon-BEDt5ixx.js} +1 -1
- package/dist/client/assets/{jira-icon-DAy3a9S9.js → jira-icon-CKOwWChZ.js} +1 -1
- package/dist/client/assets/{label-BszVxI8j.js → label-4-MnDGKW.js} +1 -1
- package/dist/client/assets/{layout-BsHSUbxL.js → layout-DKnCDpGu.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DCBghYlF.js → legacy-agents-deep-DLGtr7jt.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C_9Fyd8e.js → legacy-main-redirect-Qlpuj-nH.js} +1 -1
- package/dist/client/assets/library-CEzuKcTE.js +1 -0
- package/dist/client/assets/{library-tab-CZxlOQVR.js → library-tab-CkVkDVba.js} +1 -1
- package/dist/client/assets/{login-CoP-xpgM.js → login-CQ3a5yC5.js} +1 -1
- package/dist/client/assets/{markdown-C8b2SRJt.js → markdown-Cnsn7OZ-.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-qrtR9Z1h.js → mcp-app-renderer-CiP1G5M8.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BIr9y8Ow.js → mcp-oauth-BTUPlYVf.js} +1 -1
- package/dist/client/assets/{mcp-oauth--_7bIOac.js → mcp-oauth-Dr4hlCrA.js} +1 -1
- package/dist/client/assets/{members-DX1jVu8f.js → members-COpX9ByA.js} +1 -1
- package/dist/client/assets/{memory-DGqh7MMN.js → memory-BNe0QYUK.js} +1 -1
- package/dist/client/assets/{mini-report-page-DeT726Qz.js → mini-report-page-DR1HcGbn.js} +1 -1
- package/dist/client/assets/{mock-board-DiXeO9l9.js → mock-board-DxAY2kop.js} +1 -1
- package/dist/client/assets/{monaco-editor-BmtkWb9u.js → monaco-editor-BEzZFZkL.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CROD4XJo.js → monitoring-stats-row-Bz9gliRr.js} +1 -1
- package/dist/client/assets/{multi-select-COcK2vp_.js → multi-select-BrALXGoH.js} +1 -1
- package/dist/client/assets/{mustache-B3B0mlPh.js → mustache-DW9HpHJ_.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CQomS8HX.js → new-project-dialog-DYby_l6E.js} +1 -1
- package/dist/client/assets/{oauth-callback-BAjl2hrI.js → oauth-callback-Cwr39tOx.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dfitdf7t.js → oauth-callback-ai-provider-CAcEy37s.js} +1 -1
- package/dist/client/assets/{onboarding-DuW4ryZs.js → onboarding-CVS4iTKP.js} +1 -1
- package/dist/client/assets/{openai-conversation-klLH_0HC.js → openai-conversation-CaqCggLj.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CaTvAXwY.js → optimistic-project-sidebar-views-BMdWVdaT.js} +1 -1
- package/dist/client/assets/{organization-choice-DtdFVbBZ.js → organization-choice-CAlyIO1z.js} +1 -1
- package/dist/client/assets/{orgs-BBq2qsW_.js → orgs-DxKiUnBb.js} +1 -1
- package/dist/client/assets/{page-seo-form-BJN0O5_N.js → page-seo-form-CPT8Z29L.js} +1 -1
- package/dist/client/assets/{pair-D3dg1naQ.js → pair-DVoctykA.js} +1 -1
- package/dist/client/assets/{plan-ladder-DUQWM1mB.js → plan-ladder-BN-BvP0u.js} +1 -1
- package/dist/client/assets/{popover-9tPVAoH5.js → popover-gs_i-X_H.js} +1 -1
- package/dist/client/assets/{post-calendar-D9oVrQhS.js → post-calendar-F4sonI91.js} +1 -1
- package/dist/client/assets/{post-editor-C2tsxtV4.js → post-editor-hlGNe5ye.js} +1 -1
- package/dist/client/assets/{preview-content-BIpDQXJu.js → preview-content-C5kFNgwQ.js} +1 -1
- package/dist/client/assets/{preview-dialog-CH8GibCu.js → preview-dialog-Qbq8z8Qs.js} +1 -1
- package/dist/client/assets/{preview-panel-CCFjojUE.js → preview-panel-_aZ2oLHQ.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-BoGvkEwe.js → product-picker-dialog-DlNUPfQ_.js} +1 -1
- package/dist/client/assets/{profile-BKpvrH_P.js → profile-BRCYDOAe.js} +1 -1
- package/dist/client/assets/{project-app-view-0HH2t56F.js → project-app-view-Ck5FRtUs.js} +1 -1
- package/dist/client/assets/{project-feed-d2kKPzOq.js → project-feed-QapOYIZm.js} +1 -1
- package/dist/client/assets/{project-icon-DeUPWsC_.js → project-icon-CgKRb1hz.js} +1 -1
- package/dist/client/assets/project-reports-CyBWkEE2.js +1 -0
- package/dist/client/assets/project-tasks-CMRv6uE5.js +1 -0
- package/dist/client/assets/{projects-empty-state-DAa4wzAP.js → projects-empty-state-C8avo7T4.js} +1 -1
- package/dist/client/assets/{projects-dI6btB5J.js → projects-nbQYC9f9.js} +1 -1
- package/dist/client/assets/{prompts-D3LKfm14.js → prompts-DKX8SExm.js} +1 -1
- package/dist/client/assets/record-editor-DwX0B9ip.js +1 -0
- package/dist/client/assets/redirect-editor-CCi0diD6.js +1 -0
- package/dist/client/assets/reports-BFZBOAI-.js +1 -0
- package/dist/client/assets/{reports-B5aLNQGc.js → reports-BbWvr6H5.js} +1 -1
- package/dist/client/assets/{reports-onboarding-D7Nsv0TX.js → reports-onboarding-tih0kZo9.js} +1 -1
- package/dist/client/assets/{reports-tab-bgB5WodW.js → reports-tab-yBLzRcur.js} +2 -2
- package/dist/client/assets/{repositories-Du_yi0rf.js → repositories-KCRi18iu.js} +1 -1
- package/dist/client/assets/{repository-binding-CrIQbyJh.js → repository-binding-Bz8gaDWp.js} +1 -1
- package/dist/client/assets/{repository-import-picker-n3EYoF9U.js → repository-import-picker-OXXLG8_F.js} +1 -1
- package/dist/client/assets/{repository-picker-CjDs0ici.js → repository-picker-CUJZTLEq.js} +1 -1
- package/dist/client/assets/{require-capability-BDLtPaM5.js → require-capability-B2UH2rc6.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CTKRCLps.js → required-auth-layout-Btbks3py.js} +1 -1
- package/dist/client/assets/{reset-password-XiFYESJ5.js → reset-password-CUN3lKnX.js} +1 -1
- package/dist/client/assets/{resizable-C3INc4c7.js → resizable-Db2VNPZt.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DuWtsFCw.js → resolve-tab-icon-BtnjGWT-.js} +1 -1
- package/dist/client/assets/{review-settings-BCvIwiTZ.js → review-settings-Ct7OUs4h.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B2KML_yp.js → rich-text-link-control-COOeDn-U.js} +1 -1
- package/dist/client/assets/{roles-B5KIhtIL.js → roles-u-T2VmM2.js} +1 -1
- package/dist/client/assets/route-4yKkCbUJ.js +1 -0
- package/dist/client/assets/{route-nHlGvnBX.js → route-Bc9IilYL.js} +1 -1
- package/dist/client/assets/{route-BwivpFZQ.js → route-CTn-1Nr7.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-v2diysES.js → runnable-block-editor-C2U07j1a.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-CtphXAh2.js → sandbox-lifecycle-context-Dhj-bJE2.js} +1 -1
- package/dist/client/assets/{schema-BMqZTcjW.js → schema-DDRR7qV7.js} +1 -1
- package/dist/client/assets/{scroll-area-B9YHNZjL.js → scroll-area-PFGh7bgI.js} +1 -1
- package/dist/client/assets/{search-input-BJ-xb_6w.js → search-input-vG9YkvpS.js} +1 -1
- package/dist/client/assets/{search-toggle-DviE2KK7.js → search-toggle-BfYvpGc1.js} +1 -1
- package/dist/client/assets/{secret-picker-MDfAhcKZ.js → secret-picker-C5tfGGz3.js} +1 -1
- package/dist/client/assets/{secrets-BWXZ9ADR.js → secrets-4lhKX4tY.js} +1 -1
- package/dist/client/assets/{sections-editor-DRPdyBr7.js → sections-editor-CoHecr0y.js} +1 -1
- package/dist/client/assets/{select-Cmhyur65.js → select-DbQGrGQ8.js} +1 -1
- package/dist/client/assets/{select-model-DlhjRyXh.js → select-model-DNM2aBIM.js} +1 -1
- package/dist/client/assets/{seo-editor-Cslo5GyR.js → seo-editor-l91X5kZv.js} +1 -1
- package/dist/client/assets/{separator-XBrskDk1.js → separator-DFhoNpuy.js} +1 -1
- package/dist/client/assets/{settings-tab-Bhjq-v1u.js → settings-tab-tVRweOC9.js} +1 -1
- package/dist/client/assets/{sheet-bMLuzpcl.js → sheet-DOAMDmx1.js} +1 -1
- package/dist/client/assets/{shell-layout-CX2kb4As.js → shell-layout-fIZDbVTW.js} +1 -1
- package/dist/client/assets/{skills-smEsZOyf.js → skills-BxKYMJ49.js} +1 -1
- package/dist/client/assets/{slider-xDThp8gG.js → slider-BSnjHAZ-.js} +1 -1
- package/dist/client/assets/{sortable.esm-C4yl7HRk.js → sortable.esm-Bs4X-lz9.js} +1 -1
- package/dist/client/assets/{sso-D5XcZRGg.js → sso-B3Ei1QLd.js} +1 -1
- package/dist/client/assets/{suggestion-B9eDgKDC.js → suggestion-GJMxb511.js} +1 -1
- package/dist/client/assets/{switch-D6SJRikA.js → switch-DjuAzQl7.js} +1 -1
- package/dist/client/assets/{symbol-8pL_EbyE.js → symbol-BW5SQq5r.js} +1 -1
- package/dist/client/assets/{synced-repos-CvOi5sDr.js → synced-repos-pXak6fc3.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-B5Fq5S50.js → tab-icon-glyph-RcqrgDwB.js} +1 -1
- package/dist/client/assets/{table-BVuWDAYC.js → table-BXl79O5k.js} +1 -1
- package/dist/client/assets/{tabs-CJiVz1UY.js → tabs-BOZVTPjF.js} +1 -1
- package/dist/client/assets/{task-board-BypYXBtD.js → task-board-C57y0iD-.js} +1 -1
- package/dist/client/assets/{task-route-CxLDxVTy.js → task-route-Cjd8CAnK.js} +1 -1
- package/dist/client/assets/{task-status-DR_ZGtmT.js → task-status-CAJCzZIn.js} +1 -1
- package/dist/client/assets/taskboard-analytics-Bw1zkfYC.js +1 -0
- package/dist/client/assets/{tasks-pRlF9aKa.js → tasks-D9zTcMtd.js} +1 -1
- package/dist/client/assets/tasks-DC4SpO7e.js +1 -0
- package/dist/client/assets/{textarea-C3QvYVs6.js → textarea-CPiGh4Bi.js} +1 -1
- package/dist/client/assets/{thread-analytics-CVYD56Lv.js → thread-analytics-B_7_b3yj.js} +1 -1
- package/dist/client/assets/{thread-button-Dnwv5gXz.js → thread-button-Qtn3TibT.js} +1 -1
- package/dist/client/assets/{thread-intent-BouO_OhM.js → thread-intent-4Oc5TOnJ.js} +1 -1
- package/dist/client/assets/{thread-route-Dp3ppEkH.js → thread-route-D6XzI9r7.js} +1 -1
- package/dist/client/assets/{thread-route-CzzxiajL.js → thread-route-iNikIgfP.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Z8jKG5ht.js → thread-sheet-body-Di9tG30P.js} +1 -1
- package/dist/client/assets/{time-range-picker-DE7fkhif.js → time-range-picker-CDHHOsBr.js} +1 -1
- package/dist/client/assets/{toggle-group-BxPPN08u.js → toggle-group-DAqrdZL7.js} +1 -1
- package/dist/client/assets/{tool-namespace-C5Z8tVC2.js → tool-namespace-BjEWyMab.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-539CZpjb.js → toolbar-icon-button-BfQeMxca.js} +1 -1
- package/dist/client/assets/{tooltip-CfH7_UR9.js → tooltip-suYIqFBg.js} +1 -1
- package/dist/client/assets/{tooltipContext-Dt4926A5.js → tooltipContext-CMLuW3HN.js} +1 -1
- package/dist/client/assets/{track-D8kXLyAV.js → track-EcNm8jZX.js} +1 -1
- package/dist/client/assets/{types-PjheW3sm.js → types-D15JKPMl.js} +1 -1
- package/dist/client/assets/{url-slug-D7hdnLPq.js → url-slug-BRCwD3Fe.js} +1 -1
- package/dist/client/assets/{usage-stats-BcmMK-YO.js → usage-stats-DsRsPtyV.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CeHzBmwD.js → use-ai-providers-C3Kx53JX.js} +1 -1
- package/dist/client/assets/{use-automations-DLk4Zq7Y.js → use-automations-Crtp2oCM.js} +1 -1
- package/dist/client/assets/{use-autosave-5IDmaWA6.js → use-autosave-C0fdGzgj.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-C4y1ngrz.js → use-chat-layout-state-B26tNhCJ.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-pwxRnoh5.js → use-chat-navigation-Bmt_svKF.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DcGl_y28.js → use-clock-tick-C_wm8Myy.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DmQTaaXP.js → use-connect-companion-F5oUhtvG.js} +1 -1
- package/dist/client/assets/{use-connection-B96BwbcD.js → use-connection-Dzl69g_7.js} +1 -1
- package/dist/client/assets/{use-copy-COXbZ1Gm.js → use-copy-Cs1Dtpg9.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BuymUE2O.js → use-create-virtual-mcp-Dt66Blst.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D2o3Y11s.js → use-date-fns-locale-CsYh8bS5.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Yq56G4iL.js → use-debounced-autosave-DErH3S0W.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BZK5uiHm.js → use-debounced-value-ukFTa1_g.js} +1 -1
- package/dist/client/assets/{use-deco-credits-COvQvXnV.js → use-deco-credits-CiEYY96V.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BDPMNEXz.js → use-decopilot-events-CbkNqFn8.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DT6vWhGX.js → use-delete-connection-D8Z-KWmD.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CoVHfZYT.js → use-deployment-admin-D_WFI7oj.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-peTgVhMP.js → use-ensure-project-folder-AaBo8kSZ.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BDHxUOYh.js → use-fast-preview-draft-url-Cm7cfRW8.js} +1 -1
- package/dist/client/assets/{use-file-configs-DoW1VYTz.js → use-file-configs-B5izc2Rd.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-1WuTfkvL.js → use-infinite-scroll-C28hKaW1.js} +1 -1
- package/dist/client/assets/{use-join-requests-uEHIq-wW.js → use-join-requests-Duz41fBj.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-eZgXms3O.js → use-main-panel-tabs-DtdvkapJ.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-GSONXJ6Y.js → use-mcp-auth-status-CPXPh7cI.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D8-rDWEf.js → use-mcp-client-eXA2w8ZE.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-9xOCFCVM.js → use-mcp-prompts-DmU6o9Xc.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BYNW1IvH.js → use-mcp-tools-B4tf0I9F.js} +1 -1
- package/dist/client/assets/{use-members-DuiAoVt0.js → use-members-4sfHvlaj.js} +1 -1
- package/dist/client/assets/{use-mobile-Cz-N6vVG.js → use-mobile-HT4128sM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CWPsHr0w.js → use-navigate-to-agent-B7zN39On.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-BXHg7Zkj.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CHALVI7F.js → use-open-billing-url-2qxFombc.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DQ6vSNUo.js → use-org-auth-client-BMEgAdHb.js} +1 -1
- package/dist/client/assets/{use-org-fs-UdNnQzcG.js → use-org-fs-B3DmwHAZ.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CE9Yx0AE.js → use-org-repo-syncs-D3ekcvfg.js} +1 -1
- package/dist/client/assets/{use-org-sso-BRZ2xqKg.js → use-org-sso-DS8GzAQg.js} +1 -1
- package/dist/client/assets/{use-organization-roles-5fHLGM-_.js → use-organization-roles-6zOVe4o-.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BEUCQxuY.js → use-organization-settings-Bz6BeBAj.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-B348HV-V.js → use-panel-navigate-EBCZsVQ_.js} +1 -1
- package/dist/client/assets/{use-project-scope-CJSvss5q.js → use-project-scope-Bb0vPnr8.js} +1 -1
- package/dist/client/assets/{use-releases-DRDEblSZ.js → use-releases-ClwElQgx.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BQoNp5Lt.js → use-reports-diagnostic-BK1w_pLQ.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-afI4fSp9.js → use-sandbox-events-Chsot9e6.js} +1 -1
- package/dist/client/assets/{use-secrets-6NdpjMzr.js → use-secrets-kYdI8lvW.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Du6Z-MWu.js → use-section-preview-base-D4dQm6ck.js} +1 -1
- package/dist/client/assets/{use-tags-Dkeb0fZQ.js → use-tags-vapSsi06.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BsZ5fOsz.js → use-task-board-analytics-YT4Volqy.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BZPWVwkQ.js → use-task-board-events-bAA1XgLM.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-6pzJEXZH.js → use-task-board-item-prs-B0FT2W07.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DDExwWH5.js → use-task-board-items-C9LMZrBO.js} +1 -1
- package/dist/client/assets/{use-task-metadata-QX8Xm3F2.js → use-task-metadata-DgjDbAXI.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-4YJ0wSzW.js → use-thread-analytics-B9q4Ebge.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BaagK6yF.js → use-thread-outputs-BZE9K3Hp.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DNPgGGZO.js +1 -0
- package/dist/client/assets/{useQueries-BeM3koNG.js → useQueries-BhA2JM5X.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CD5WtYqv.js +1 -0
- package/dist/client/assets/{users-DA2VVqSS.js → users-DDE8Tbam.js} +1 -1
- package/dist/client/assets/{utils-DGIwcQET.js → utils-QsQ2yEbh.js} +1 -1
- package/dist/client/assets/{variant-calendar-B2z-zkHQ.js → variant-calendar-77oeK5vi.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-WuIO8MOW.js → variant-matcher-override-ChXktSn7.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DA847UFd.js → view-mode-toggle-BrFGbylt.js} +1 -1
- package/dist/client/assets/{virtual-mcp-ySkvJvwZ.js → virtual-mcp-DYpYm5Qi.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-jwr9yBFo.js → watch-sse-pool-YrM1VSdM.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +87 -87
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BExNHlBs.js +0 -1
- package/dist/client/assets/agent-deck-GAA8uH06.js +0 -1
- package/dist/client/assets/agent-library-CJXihsv5.js +0 -1
- package/dist/client/assets/agent-library-file-Cnv04MVV.js +0 -1
- package/dist/client/assets/agent-settings-BTMD0j_l.js +0 -1
- package/dist/client/assets/agent-site-editor-code-Crxw0pRq.js +0 -2
- package/dist/client/assets/agent-view-DVbx7Not.js +0 -1
- package/dist/client/assets/api-keys-B_VU2t2_.js +0 -1
- package/dist/client/assets/app-editor-fWZMbht-.js +0 -1
- package/dist/client/assets/flat-project-DPnFbnmE.js +0 -1
- package/dist/client/assets/library-C2ZRDo2P.js +0 -1
- package/dist/client/assets/project-reports-7r3buXCO.js +0 -1
- package/dist/client/assets/project-tasks-Dp-gjCz7.js +0 -1
- package/dist/client/assets/record-editor-BDN9ztWf.js +0 -1
- package/dist/client/assets/redirect-editor-DBLjC8Z9.js +0 -1
- package/dist/client/assets/reports-CvKnRIKX.js +0 -1
- package/dist/client/assets/route-Fylk_TVt.js +0 -1
- package/dist/client/assets/taskboard-analytics-B5tiovFi.js +0 -1
- package/dist/client/assets/tasks-C5eWHl6J.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-B5DYqQrS.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BgN51nwo.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DnCmqaG2.js +0 -1
package/dist/client/assets/{runnable-block-editor-v2diysES.js → runnable-block-editor-C2U07j1a.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-D984WV3U.js";import{a as qe}from"./input-C_t2NUbp.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-kSJ81npa.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-CsQzAnP1.js";import{i as Wn}from"./Play-HeD-LWQ6.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as D1}from"./pair-D3dg1naQ.js";import{i as Qe}from"./ChevronSelectorVertical-bEeSv3mr.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-d2fvY4gQ.js";import{a as F0,b as O0,P as D0}from"./popover-9tPVAoH5.js";import{s as z1,a as B1,b as V1}from"./utils-DGIwcQET.js";import{u as Jn}from"./chat-context-y8u3K9Tq.js";import{S as Zn}from"./scroll-area-B9YHNZjL.js";import{T as A9,a as R9,b as P9}from"./tooltip-CfH7_UR9.js";import{a as et,c as U1}from"./repository-binding-CrIQbyJh.js";import{M as Qn}from"./monaco-editor-BmtkWb9u.js";import{C as K1}from"./calendar-DKYy6uOJ.js";import{T as G1}from"./textarea-C3QvYVs6.js";import{L as U9}from"./label-BszVxI8j.js";import{u as E9}from"./use-new-blocks-editor-B5DYqQrS.js";import{c as H1,d as q1,i as Y1,b as W1}from"./Tool01-BLdqmAM-.js";import{i as Xn}from"./SwitchHorizontal01-iT36Ixqz.js";import{s as y0}from"./Plus-BzLmRH_e.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-BcmMK-YO.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-Cmhyur65.js";import{T as F9,E as ni,R as si}from"./rich-text-link-control-B2KML_yp.js";import{S as tt}from"./switch-D6SJRikA.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-BH3HyyF2.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-C4yl7HRk.js";import{V as ri}from"./view-mode-toggle-DA847UFd.js";import{t as v0}from"./ChevronUp-D_qU7VrJ.js";import{a as fe}from"./Copy01-CT_cEqll.js";import{s as ii,a as h0}from"./Image01-CyU1b2Nz.js";import{s as l0}from"./Trash01-DkcAHDGj.js";import{e as N0,a as es}from"./UserSquare-BlSFjBrQ.js";import{C as oi}from"./combobox-ylZ1_mxm.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-D2yDyccd.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-C_NtAfgt.js";import{i as z0}from"./Upload01-CJxfk4_B.js";import{i as ts}from"./AlertCircle-CgfWDsMW.js";import{i as ns}from"./DotsVertical-CGu7Zbqo.js";import{S as pi}from"./search-input-BJ-xb_6w.js";import{T as hi,a as gi,c as xi,b as yi}from"./tabs-CJiVz1UY.js";import{u as vi}from"./use-debounced-value-BZK5uiHm.js";import{a as bi,u as ss}from"./use-file-configs-DoW1VYTz.js";import{u as ji,a as ft,i as rs,e as Si,b as zt,f as ki}from"./asset-utils-cuI-wo7N.js";import{d as is}from"./use-chat-layout-state-C4y1ngrz.js";import{a as Ni,T as Ti}from"./toggle-group-BxPPN08u.js";import{g as Ci,f as Ei}from"./thread-intent-BouO_OhM.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-C2j6GKW9.js";import{a as qe}from"./input-BdGTWCdG.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-D3VDMBEf.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-If8hSRmw.js";import{i as Wn}from"./Play-B0un_kIg.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as D1}from"./pair-DVoctykA.js";import{i as Qe}from"./ChevronSelectorVertical-z-lNsxRS.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-CS7Iytaa.js";import{a as F0,b as O0,P as D0}from"./popover-gs_i-X_H.js";import{s as z1,a as B1,b as V1}from"./utils-QsQ2yEbh.js";import{u as Jn}from"./chat-context-Nnpd61_s.js";import{S as Zn}from"./scroll-area-PFGh7bgI.js";import{T as A9,a as R9,b as P9}from"./tooltip-suYIqFBg.js";import{a as et,c as U1}from"./repository-binding-Bz8gaDWp.js";import{M as Qn}from"./monaco-editor-BEzZFZkL.js";import{C as K1}from"./calendar-CKfIuZta.js";import{T as G1}from"./textarea-CPiGh4Bi.js";import{L as U9}from"./label-4-MnDGKW.js";import{u as E9}from"./use-new-blocks-editor-BXHg7Zkj.js";import{c as H1,d as q1,i as Y1,b as W1}from"./Tool01-BZb-DMpJ.js";import{i as Xn}from"./SwitchHorizontal01-BaclOje4.js";import{s as y0}from"./Plus-BdYjAB2U.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-DsRsPtyV.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-DbQGrGQ8.js";import{T as F9,E as ni,R as si}from"./rich-text-link-control-COOeDn-U.js";import{S as tt}from"./switch-DjuAzQl7.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-z-XuEZtM.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-Bs4X-lz9.js";import{V as ri}from"./view-mode-toggle-BrFGbylt.js";import{t as v0}from"./ChevronUp-D3SVSsDX.js";import{a as fe}from"./Copy01-BQJ05ZRk.js";import{s as ii,a as h0}from"./Image01-Di7GijaS.js";import{s as l0}from"./Trash01-c56q-lrS.js";import{e as N0,a as es}from"./UserSquare-BwyhtJD3.js";import{C as oi}from"./combobox-jkqCfq0Y.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-DnRanV2g.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-CLyO4H5k.js";import{i as z0}from"./Upload01-Cp8lvoBS.js";import{i as ts}from"./AlertCircle-BxvPb2ao.js";import{i as ns}from"./DotsVertical-GUU5bDEx.js";import{S as pi}from"./search-input-vG9YkvpS.js";import{T as hi,a as gi,c as xi,b as yi}from"./tabs-BOZVTPjF.js";import{u as vi}from"./use-debounced-value-ukFTa1_g.js";import{a as bi,u as ss}from"./use-file-configs-B5izc2Rd.js";import{u as ji,a as ft,i as rs,e as Si,b as zt,f as ki}from"./asset-utils-Cy2Arrv8.js";import{d as is}from"./use-chat-layout-state-B26tNhCJ.js";import{a as Ni,T as Ti}from"./toggle-group-DAqrdZL7.js";import{g as Ci,f as Ei}from"./thread-intent-4Oc5TOnJ.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-C2j6GKW9.js";import{u as pe}from"./use-mcp-client-eXA2w8ZE.js";import{a as ye}from"./input-BdGTWCdG.js";import{b as Ee,u as he}from"./chat-context-Nnpd61_s.js";import{u as Re}from"./thread-intent-4Oc5TOnJ.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-Chsot9e6.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 s,bS as e,aE as o,bT as d,bU as l}from"./index-
|
|
1
|
+
import{aD as s,bS as e,aE as o,bT as d,bU as l}from"./index-C2j6GKW9.js";const a=500;s({title:o().max(a),url:o().max(a),icon:o().max(a)});const t=s({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=s({tiers:s({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});s({tiers:s({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;s({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.")});s({ids:l(o().max(a)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=s({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_codex:e().optional().describe("Use Codex for new sandbox chats. Off by default; requires hosted sandboxes and a ChatGPT subscription or Responses API provider. Existing chats keep their pinned runtime."),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,n){const r=i?.[n];return h.has(n)?r!==!1:r===!0}function m(i){const n=i?.auto_resolve_conflicts;return typeof n=="boolean"?n: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-D984WV3U.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-C2j6GKW9.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-C2j6GKW9.js";import{i as v}from"./SearchMd-COTu5fMc.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-C2j6GKW9.js";import{i as B}from"./SearchMd-COTu5fMc.js";import{I as O}from"./icon-button-CQ2v9QBu.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-C2j6GKW9.js";import{s as j}from"./User01-BdQVEBpk.js";import{t as E}from"./Users01-CGD8XkzR.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-C2j6GKW9.js";import{i as H}from"./AlertCircle-BxvPb2ao.js";import{s as V}from"./Plus-BdYjAB2U.js";import{s as G}from"./User01-BdQVEBpk.js";import{t as K}from"./Users01-CGD8XkzR.js";import{L as w}from"./label-4-MnDGKW.js";import{S as J,b as M,a as Q,d as U,c as P}from"./select-DbQGrGQ8.js";import{T as W}from"./textarea-CPiGh4Bi.js";import{u as X,a as Y}from"./use-secrets-kYdI8lvW.js";import{R as Z}from"./require-capability-B2UH2rc6.js";import"./index-BdQq_4o_.js";import"./index-DBa0gwyi.js";import"./ChevronUp-D3SVSsDX.js";import"./access-gate-BiwwMoCd.js";import"./capability-load-error-CYzyh0CO.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};
|