decocms 4.493.0 → 4.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-5xWWHSL1.js → ActiveShapeUtils-DCHlcSOh.js} +1 -1
- package/dist/client/assets/{AlertCircle-B5gBB9h_.js → AlertCircle-9YsZUjmj.js} +1 -1
- package/dist/client/assets/{AreaChart-BTyzss2a.js → AreaChart-CeW2QCC3.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B7455tPl.js → ArrowLeft-ZHARsvy9.js} +1 -1
- package/dist/client/assets/{ArrowUp-CP6XCJnB.js → ArrowUp-D1danNae.js} +1 -1
- package/dist/client/assets/{BarChart-Ch51NWPz.js → BarChart-DdrNiWaE.js} +1 -1
- package/dist/client/assets/{Building02-BZItaEYx.js → Building02-ssxWkdBl.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DqN5Jy74.js → CategoricalChart-ClYHeQF6.js} +1 -1
- package/dist/client/assets/{CheckCircle-C3CiaCW4.js → CheckCircle-DiKVJkkJ.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DIPs2sw-.js → ChevronSelectorVertical-Dkzqp5pp.js} +1 -1
- package/dist/client/assets/{ChevronUp-nynZHATg.js → ChevronUp-wLOc_NTT.js} +1 -1
- package/dist/client/assets/{Copy01-CdRMK9o7.js → Copy01-Cr5x9Tlu.js} +1 -1
- package/dist/client/assets/{CreditCard01-DVQTLvKO.js → CreditCard01-DCL7xzU2.js} +1 -1
- package/dist/client/assets/{DotsVertical-3XBYz4yU.js → DotsVertical-DZE2ktIm.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-Csmpy3UX.js → ErrorBarContext-D4j8kFWO.js} +1 -1
- package/dist/client/assets/{Globe04-DoxNod_i.js → Globe04-DLL93yaf.js} +1 -1
- package/dist/client/assets/{Image01-DdBetDCI.js → Image01-Doh_epPd.js} +1 -1
- package/dist/client/assets/{Key01-DcSonP-G.js → Key01-rqwReuZQ.js} +1 -1
- package/dist/client/assets/{Link01-3BacRGrf.js → Link01-DiFWbMaR.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BZFZ6N-h.js → LinkBroken01-DGQh_3WZ.js} +1 -1
- package/dist/client/assets/{Monitor01-DU19-CHk.js → Monitor01-Cp7iEwN0.js} +1 -1
- package/dist/client/assets/{Play-B7i_-ibU.js → Play-C2hvYOyw.js} +1 -1
- package/dist/client/assets/{Plus-XYNDZJ4s.js → Plus-v0YpByfM.js} +1 -1
- package/dist/client/assets/{SearchMd-BFitEH5z.js → SearchMd-Bendi2p8.js} +1 -1
- package/dist/client/assets/{Sector-CYOl8Efm.js → Sector-Clpc9eH-.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Ci8H67G0.js → ShoppingBag01-BG-1Jwuh.js} +1 -1
- package/dist/client/assets/{Sun-D1Mdg8Cq.js → Sun-CJr96mBh.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BHr8jCjb.js → SwitchHorizontal01-Dv53_XOE.js} +1 -1
- package/dist/client/assets/{Tool01-DQnW-zjg.js → Tool01-B-kpMrMZ.js} +1 -1
- package/dist/client/assets/{Trash01-DZ8laRwu.js → Trash01-3M9m1iIs.js} +1 -1
- package/dist/client/assets/{Upload01-CrRTpeMX.js → Upload01-DBgIGKf8.js} +1 -1
- package/dist/client/assets/{User01-9bZ-cKa7.js → User01-CT2R-iHD.js} +1 -1
- package/dist/client/assets/{UserSquare-CuRnLJZ6.js → UserSquare-BuJqx7Ns.js} +1 -1
- package/dist/client/assets/{Users01-cUGZjxDe.js → Users01-gQNjKybb.js} +1 -1
- package/dist/client/assets/{XAxis-DDG3qYHW.js → XAxis-DBRxAeUY.js} +1 -1
- package/dist/client/assets/{XClose-DjFCAP5F.js → XClose-Bpws6cjk.js} +1 -1
- package/dist/client/assets/{ZoomOut-BggitXDv.js → ZoomOut-CVwCO-_8.js} +1 -1
- package/dist/client/assets/{access-gate-Cu8JZecz.js → access-gate-DlhD9I9N.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DBnkMFp9.js → add-connection-dialog-CQiSl-Qe.js} +1 -1
- package/dist/client/assets/{agent-analytics-B1wni80p.js → agent-analytics-Dlpy_544.js} +1 -1
- package/dist/client/assets/agent-app-DtmEOrmX.js +1 -0
- package/dist/client/assets/{agent-assets-B18leh3z.js → agent-assets-Ba_4hhfI.js} +1 -1
- package/dist/client/assets/{agent-automation-CWXHzvtY.js → agent-automation-DuF9ZiWS.js} +1 -1
- package/dist/client/assets/{agent-automations-C0tbQ1R9.js → agent-automations-BV2eTHQr.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CKiU44XZ.js → agent-connect-sources-C_fgxaTV.js} +1 -1
- package/dist/client/assets/agent-deck--kR-tnhH.js +1 -0
- package/dist/client/assets/{agent-e2e-LdVq-drf.js → agent-e2e-CgGLFkHe.js} +1 -1
- package/dist/client/assets/{agent-experiments-ClDYYnWj.js → agent-experiments-CpXLJckI.js} +1 -1
- package/dist/client/assets/{agent-file-CjZFekiU.js → agent-file-Cak5KHUl.js} +1 -1
- package/dist/client/assets/{agent-hosting-zrg11_-A.js → agent-hosting-2pI_IIlr.js} +1 -1
- package/dist/client/assets/{agent-icon-BewGjsar.js → agent-icon-BTsTGfvr.js} +1 -1
- package/dist/client/assets/agent-library-CGtmUhYD.js +1 -0
- package/dist/client/assets/agent-library-file-CZlCJsi6.js +1 -0
- package/dist/client/assets/{agent-monitor-CKpvG_Lm.js → agent-monitor-BRq8qrkU.js} +1 -1
- package/dist/client/assets/{agent-overview-Di3y0uXp.js → agent-overview-UU6Y44eX.js} +1 -1
- package/dist/client/assets/agent-settings-_tzBjLDX.js +1 -0
- package/dist/client/assets/{agent-site-editor-16duoEZY.js → agent-site-editor-LLur_-_o.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DA20Pk7L.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-B64VGP55.js → agent-site-editor-content-DXvV_eiy.js} +3 -3
- package/dist/client/assets/agent-site-editor-preview-5ii-TR0s.js +518 -0
- package/dist/client/assets/agent-view-CgtvUhvS.js +1 -0
- package/dist/client/assets/{agent-view-guard-CoiTTfLB.js → agent-view-guard-CyNRuQw7.js} +1 -1
- package/dist/client/assets/{agents-list-CFQQdh1t.js → agents-list-BVqV3SYd.js} +1 -1
- package/dist/client/assets/{ai-providers-CTzk8MgQ.js → ai-providers-jNZBkRl5.js} +1 -1
- package/dist/client/assets/{alert-Dyx5I-Y3.js → alert-B2FW115A.js} +1 -1
- package/dist/client/assets/{alert-dialog-BXEG2ySJ.js → alert-dialog-Dr31Gqkz.js} +1 -1
- package/dist/client/assets/{analytics-sections-BeEYJnmv.js → analytics-sections-DOFncpfM.js} +1 -1
- package/dist/client/assets/{api-keys-JMxYvHms.js → api-keys-DPKcfTUa.js} +1 -1
- package/dist/client/assets/api-keys-DXlZlPNT.js +1 -0
- package/dist/client/assets/app-editor-BlHRP4Rp.js +1 -0
- package/dist/client/assets/{asset-utils-Euq8y8zU.js → asset-utils-CX1te1rQ.js} +1 -1
- package/dist/client/assets/{auth-Dwu4WH32.js → auth-CM-DdMTE.js} +1 -1
- package/dist/client/assets/{auth-catchall-D9Xe8fii.js → auth-catchall-D9Jl5rTX.js} +1 -1
- package/dist/client/assets/{auth-entry-CCIy-Mhs.js → auth-entry-Cn0jyyw6.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DXUbMgnq.js → auth-split-layout-DiVs6WJ3.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BEdNWkUl.js → authenticate-and-persist-oauth-DEaKhdcs.js} +1 -1
- package/dist/client/assets/{automation-list-row-Du4blVfm.js → automation-list-row-CG7kU51M.js} +1 -1
- package/dist/client/assets/{automation-runs-BsFnE3d4.js → automation-runs-CGQu-nIx.js} +1 -1
- package/dist/client/assets/{automations-Cpff9O08.js → automations-D9LXua4J.js} +1 -1
- package/dist/client/assets/{autosend-BaKgBZDQ.js → autosend-B7QA12Tw.js} +1 -1
- package/dist/client/assets/{avatar-BEl6nltF.js → avatar-ByGDtOvp.js} +1 -1
- package/dist/client/assets/{badge-DFdotQFQ.js → badge-XA4dRNYq.js} +1 -1
- package/dist/client/assets/{block-document-BlUE8Eks.js → block-document-B0n4B4IP.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DSOKao_H.js → blocks-preview-workspace-context-C7bCK2dG.js} +1 -1
- package/dist/client/assets/{blog-schema-B_yGbArL.js → blog-schema-D2K9lxFN.js} +1 -1
- package/dist/client/assets/{board-analytics-UmA2i-Sq.js → board-analytics-B5mmzmBe.js} +1 -1
- package/dist/client/assets/{buckets-CJ11qX_5.js → buckets-Qu8B15tT.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-QS7b7hRr.js → build-improve-prompt-doc-on-tpDMo.js} +1 -1
- package/dist/client/assets/{calendar-CT7cVD7N.js → calendar-CRpUCA4p.js} +1 -1
- package/dist/client/assets/{capability-load-error-yZzl8b80.js → capability-load-error-Cwp75ry8.js} +1 -1
- package/dist/client/assets/{category-editor-CTdWf8oW.js → category-editor-B9myg9lh.js} +1 -1
- package/dist/client/assets/{chart-C-785ZEj.js → chart-CvxQFl1V.js} +1 -1
- package/dist/client/assets/{chat-context-DJGYyGlB.js → chat-context-Cwuqjrlx.js} +1 -1
- package/dist/client/assets/{chat-draft-DbBgaLY_.js → chat-draft-D0btcSjz.js} +1 -1
- package/dist/client/assets/{checkbox-DmaIcPoL.js → checkbox-DSNt2gzr.js} +1 -1
- package/dist/client/assets/{choose-editor-CirVpDXw.js → choose-editor-BKZj3uPE.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-BnoHLlrM.js → claim-phase-copy-DWZtPw6h.js} +1 -1
- package/dist/client/assets/{cli-auth-success-XcMuETZQ.js → cli-auth-success-C6o7zJ2p.js} +1 -1
- package/dist/client/assets/{client-icons-DLhjrwzL.js → client-icons-BpKVWun3.js} +1 -1
- package/dist/client/assets/{collapsible-CgZ4-XuF.js → collapsible-DOY0YL_H.js} +1 -1
- package/dist/client/assets/{collection-detail-gYU6aRKx.js → collection-detail--7z4uSdQ.js} +1 -1
- package/dist/client/assets/{collection-display-button-YyNX5Efp.js → collection-display-button-Dtu1j77F.js} +1 -1
- package/dist/client/assets/{collection-search-BC0JMMNp.js → collection-search-DdqYzjim.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DFn43mg0.js → collection-table-wrapper-8VyRclLN.js} +1 -1
- package/dist/client/assets/{collection-tabs-DeQ7zbGh.js → collection-tabs-CWwn3uMq.js} +1 -1
- package/dist/client/assets/{column-rules-b8eo73o4.js → column-rules-_Ma8ZWf4.js} +1 -1
- package/dist/client/assets/{combobox-DeXU4vSR.js → combobox-D7N8SC25.js} +1 -1
- package/dist/client/assets/{command-D2QlwSrW.js → command-Crl7raeC.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DtzaYg0J.js → companion-mcps-section-DkjOETuc.js} +1 -1
- package/dist/client/assets/{config-DP6xvcYW.js → config-YLu1LJhW.js} +1 -1
- package/dist/client/assets/{connect-ClKIaF8K.js → connect-BbV6U_hr.js} +1 -1
- package/dist/client/assets/{connect-layout-CyyX0xPx.js → connect-layout-CQuvObDD.js} +1 -1
- package/dist/client/assets/{connection-BjzBHJVc.js → connection-BVvM5npe.js} +1 -1
- package/dist/client/assets/{connection-card-BVD8Ppl9.js → connection-card-sWgF9uUo.js} +1 -1
- package/dist/client/assets/{connection-detail-DfYF7TR9.js → connection-detail-AG67uG4I.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-5EXuPZ4G.js → connection-form-helpers-Je0bq7c_.js} +1 -1
- package/dist/client/assets/{connections-D1tC1_hB.js → connections-Dc6s7_rq.js} +1 -1
- package/dist/client/assets/{context-DzTTGbcd.js → context-DgLSgDvh.js} +1 -1
- package/dist/client/assets/{context-menu-Can7-rLt.js → context-menu-JVsCdcDt.js} +1 -1
- package/dist/client/assets/{core.esm-Cvui6jds.js → core.esm-CIWIcR9H.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CD66iA3E.js → create-organization-dialog-Ddjs5dmA.js} +1 -1
- package/dist/client/assets/{daily-pulse-Bz92WYIP.js → daily-pulse-Dpe4FA_b.js} +1 -1
- package/dist/client/assets/{device-hint-DZcinuip.js → device-hint-D9SLM9ag.js} +1 -1
- package/dist/client/assets/{discover-BRALl0mU.js → discover-DlwaiXCQ.js} +1 -1
- package/dist/client/assets/{domain-settings-DiitZO4z.js → domain-settings-CwEiepSy.js} +1 -1
- package/dist/client/assets/{drawer-BPz4t5dt.js → drawer-3zPC7EI9.js} +1 -1
- package/dist/client/assets/{editor-2jNHgdUN.js → editor-BMb1eAhF.js} +1 -1
- package/dist/client/assets/{empty-state-Zf0MeIMv.js → empty-state-DUChmUAz.js} +1 -1
- package/dist/client/assets/{empty-state-D8iC8fkc.js → empty-state-DuauqtRJ.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BTBLhbEe.js → extract-connection-data-DQ0ThsQw.js} +1 -1
- package/dist/client/assets/{feature-gate-Dhf-LwS1.js → feature-gate-DGH8G4ta.js} +1 -1
- package/dist/client/assets/{feature-paywall-CHcwEHRJ.js → feature-paywall-Cdd2Shxl.js} +1 -1
- package/dist/client/assets/{file-explorer-BhYSdjXu.js → file-explorer-DPT-Gdf2.js} +1 -1
- package/dist/client/assets/{file-preview-DvxQuX3P.js → file-preview-wTY5J2MC.js} +1 -1
- package/dist/client/assets/{file-share-button-C1EB3dOc.js → file-share-button-D4Hp3Pwr.js} +1 -1
- package/dist/client/assets/{file-type-icon-DzYK4NqY.js → file-type-icon-7-3yF331.js} +1 -1
- package/dist/client/assets/flat-project-CNnQaq5E.js +1 -0
- package/dist/client/assets/{folder-icon-C_Jv4E7N.js → folder-icon-H82laJL_.js} +1 -1
- package/dist/client/assets/{form-BCYpCYIL.js → form-BUOiUceD.js} +1 -1
- package/dist/client/assets/{general-D8kDc8NB.js → general-BHuT0FSK.js} +1 -1
- package/dist/client/assets/{home-CiV29kW5.js → home-BZZrU9O7.js} +1 -1
- package/dist/client/assets/{icon-button-sHj7Q6Fp.js → icon-button-DMzM4KWP.js} +1 -1
- package/dist/client/assets/{index-s6P2p4h7.js → index-BVCIU8Mk.js} +1 -1
- package/dist/client/assets/{index-YEKHk89C.js → index-BmBVOCXW.js} +1 -1
- package/dist/client/assets/{index-wABYnbOM.js → index-CerQwuGf.js} +1 -1
- package/dist/client/assets/{index-D2iZ6syL.js → index-CvkEcM9-.js} +1 -1
- package/dist/client/assets/{index-GgiP6YIr.js → index-D5kx2mq6.js} +1 -1
- package/dist/client/assets/{index-DmfwrRER.js → index-DIbARVXx.js} +3 -3
- package/dist/client/assets/{index-BVmIdqXu.js → index-D_C9gk4l.js} +1 -1
- package/dist/client/assets/{index-CspW_Aw1.js → index-D_aXURjc.js} +1 -1
- package/dist/client/assets/{index-6UUldwCZ.js → index-PaA2bHVT.js} +1 -1
- package/dist/client/assets/{index-Bm9FTdjr.js → index-V8pRA7Xy.js} +5 -5
- package/dist/client/assets/{index-CuOTEpMz.js → index-eP3gZugt.js} +1 -1
- package/dist/client/assets/{index-KCu_K9eF.js → index-gHDeYn5U.js} +1 -1
- package/dist/client/assets/{index-redirect-C_FoZNOn.js → index-redirect-6gCqz6Y5.js} +1 -1
- package/dist/client/assets/{index-BhyQWjoM.js → index-x-BjYR-J.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-zxl9Rj5F.js → infiniteQueryObserver-Bni-1Rrc.js} +1 -1
- package/dist/client/assets/{infra-billing-heizZxEC.js → infra-billing-hHO33Bt1.js} +1 -1
- package/dist/client/assets/{input-Bvc3OT4I.js → input-C7fKNsaf.js} +1 -1
- package/dist/client/assets/{input-BkQDO0Ef.js → input-ynU6Ij5H.js} +3 -3
- package/dist/client/assets/{integration-icon-DoYtKqdf.js → integration-icon-D-qpZQt8.js} +1 -1
- package/dist/client/assets/{jira-icon-BeORJXLw.js → jira-icon-B4wDBFAC.js} +1 -1
- package/dist/client/assets/{label-BL2W0Pcn.js → label-3hwvsVXP.js} +1 -1
- package/dist/client/assets/{layout-vy24lHLj.js → layout-DHC2Bj1E.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-B5L4MOtR.js → legacy-agents-deep-BSzJqFgZ.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Pp-THt9D.js → legacy-main-redirect-R36lgGCg.js} +1 -1
- package/dist/client/assets/library-BfEEZWGX.js +1 -0
- package/dist/client/assets/{library-tab-2usQWRYi.js → library-tab-DiWbCdAf.js} +1 -1
- package/dist/client/assets/{login-CwsPhEpC.js → login-BPcnReJQ.js} +1 -1
- package/dist/client/assets/{markdown-B3PJYX-4.js → markdown-C_bpsjlQ.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BLT3VM-G.js → mcp-app-renderer-DSXHJ5Wt.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BTa4N28L.js → mcp-oauth-7pqu8EiB.js} +1 -1
- package/dist/client/assets/{mcp-oauth-4gmyTyah.js → mcp-oauth-DLnUq2f9.js} +1 -1
- package/dist/client/assets/{members-Dba6HROK.js → members-Bunz7e6B.js} +1 -1
- package/dist/client/assets/{memory-DAV2Pmj2.js → memory-BLa9O78J.js} +1 -1
- package/dist/client/assets/{mini-report-page-B9WE5YW-.js → mini-report-page-BVO6pALW.js} +1 -1
- package/dist/client/assets/{mock-board-D9i0Vi9l.js → mock-board-B5k1LNJu.js} +1 -1
- package/dist/client/assets/{monaco-editor-DANiMmsL.js → monaco-editor-DMfRj7kt.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B1hQA0Lu.js → monitoring-stats-row-Bkq-86wh.js} +1 -1
- package/dist/client/assets/{multi-select-BJgtMlC2.js → multi-select-BwXBmTlI.js} +1 -1
- package/dist/client/assets/{mustache-GMlXm0yl.js → mustache-CEXj2Yiz.js} +1 -1
- package/dist/client/assets/{new-project-dialog-C-thpPQ-.js → new-project-dialog-BZdoOBOz.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B7d3QWP4.js → oauth-callback-ai-provider-CbuzeLlJ.js} +1 -1
- package/dist/client/assets/{oauth-callback-DZwrYGu7.js → oauth-callback-z1ZK2Q1I.js} +1 -1
- package/dist/client/assets/{onboarding-DK0DTXli.js → onboarding-BGszMdtv.js} +1 -1
- package/dist/client/assets/{openai-conversation-BMdPtMrp.js → openai-conversation-B5OySV1i.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-B4v48qUS.js → optimistic-project-sidebar-views-C2x-Aaxu.js} +1 -1
- package/dist/client/assets/{organization-choice-BIWVNvRP.js → organization-choice-xhN7Yznf.js} +1 -1
- package/dist/client/assets/{orgs-D5AZUxP6.js → orgs-CEeF7hFm.js} +1 -1
- package/dist/client/assets/{page-seo-form-gaHyPBMV.js → page-seo-form-J-VUwESz.js} +1 -1
- package/dist/client/assets/{pair-DXTFiJNl.js → pair-Dha2uqa_.js} +1 -1
- package/dist/client/assets/{plan-ladder-BUDRjzbj.js → plan-ladder-BNRju_Rr.js} +1 -1
- package/dist/client/assets/{popover-jNB4XciF.js → popover-CZB8RxoJ.js} +1 -1
- package/dist/client/assets/{post-calendar-D8EAMZvz.js → post-calendar-CfLX9e_7.js} +1 -1
- package/dist/client/assets/{post-editor-BQa57f7n.js → post-editor-BBmmo40q.js} +1 -1
- package/dist/client/assets/{preview-content-B6K8Jkd_.js → preview-content-DCZG-NtD.js} +1 -1
- package/dist/client/assets/{preview-dialog-Dl22mWwN.js → preview-dialog-DZmQ4_OU.js} +1 -1
- package/dist/client/assets/{preview-panel-LWLVsrdx.js → preview-panel-BOJOfHU6.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-RglVwX1Q.js → product-picker-dialog-BRcRXNTc.js} +1 -1
- package/dist/client/assets/{profile-BWcfZQ7V.js → profile-CtDXcfuO.js} +1 -1
- package/dist/client/assets/{project-app-view-qeunpPC-.js → project-app-view-Cnchb-Ig.js} +1 -1
- package/dist/client/assets/{project-feed-Dm758F3_.js → project-feed-Ctubs6D8.js} +1 -1
- package/dist/client/assets/{project-icon-D2vCEWQy.js → project-icon-DXev8VIW.js} +1 -1
- package/dist/client/assets/project-reports-Ci_iYRrd.js +1 -0
- package/dist/client/assets/project-tasks-CzZdSRDI.js +1 -0
- package/dist/client/assets/{projects-DyGysCyv.js → projects-DfF5wpqY.js} +1 -1
- package/dist/client/assets/{projects-empty-state-BuMMPopD.js → projects-empty-state-Bkvn9wBz.js} +1 -1
- package/dist/client/assets/{prompts-BrbpQc3X.js → prompts-JCRZXZfZ.js} +1 -1
- package/dist/client/assets/record-editor-BmUK9heP.js +1 -0
- package/dist/client/assets/{redirect-editor-Dc4HBQwl.js → redirect-editor-DARWO6oY.js} +1 -1
- package/dist/client/assets/{reports-D7gOlgZm.js → reports-BiB14-w5.js} +1 -1
- package/dist/client/assets/reports-CJkqLIIg.js +1 -0
- package/dist/client/assets/{reports-onboarding-DGmwN9iV.js → reports-onboarding-Ci2eFzgb.js} +1 -1
- package/dist/client/assets/{reports-tab-Bb7ApLUW.js → reports-tab-CfLfXENf.js} +2 -2
- package/dist/client/assets/{repositories-GlkzQQVy.js → repositories-Ddu7D_dm.js} +1 -1
- package/dist/client/assets/{repository-binding-D2wL-4Vr.js → repository-binding-CGM8Ow1W.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DtM7QfYh.js → repository-import-picker-DpjUG5YI.js} +1 -1
- package/dist/client/assets/{repository-picker-28zwGBgK.js → repository-picker-XHsJQrRg.js} +1 -1
- package/dist/client/assets/{require-capability-Dm4XTD9Y.js → require-capability-D5tJwX6A.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CbgA2xIU.js → required-auth-layout-BKYCK4WE.js} +1 -1
- package/dist/client/assets/{reset-password-15IQ61HR.js → reset-password-BDIEd0mg.js} +1 -1
- package/dist/client/assets/{resizable-CGWosOTw.js → resizable-DBUNvXp7.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-BEIojUgL.js → resolve-tab-icon-C3-zJZHp.js} +1 -1
- package/dist/client/assets/{review-settings-BAqWAPVV.js → review-settings-iKeIZIxh.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CE4nCWAz.js → rich-text-link-control-B-mX9xD1.js} +1 -1
- package/dist/client/assets/roles-B4ZkD532.js +1 -0
- package/dist/client/assets/{route-DCLsEeq7.js → route-Dbrk4VYq.js} +1 -1
- package/dist/client/assets/route-DmXxzobK.js +1 -0
- package/dist/client/assets/{route-CdaJ86mX.js → route-lCR_XMKF.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-xVvcrNA2.js → runnable-block-editor-aENhZJE9.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BKjyczlw.js → sandbox-lifecycle-context-BrrAiqEe.js} +1 -1
- package/dist/client/assets/{schema-C_wSANSe.js → schema-DstuA0HH.js} +1 -1
- package/dist/client/assets/{scroll-area-BT00diUA.js → scroll-area-NCHj5pvE.js} +1 -1
- package/dist/client/assets/{search-input-D-uP0R3f.js → search-input-CdXxg7YI.js} +1 -1
- package/dist/client/assets/{search-toggle-Hgq_Klme.js → search-toggle-BepIBc_s.js} +1 -1
- package/dist/client/assets/{secret-picker-BitsdCaD.js → secret-picker-C6OYpb8W.js} +1 -1
- package/dist/client/assets/{secrets-C_yZKBHs.js → secrets-CZl02iRQ.js} +1 -1
- package/dist/client/assets/{sections-editor-DrNkE-5_.js → sections-editor-C91NghHX.js} +1 -1
- package/dist/client/assets/{select-BVEgIanS.js → select-XceA90ql.js} +1 -1
- package/dist/client/assets/{select-model-CTmCsZzT.js → select-model-Cn7hOiT6.js} +1 -1
- package/dist/client/assets/{seo-editor-Cr-VPdNi.js → seo-editor-BFWV0Cx1.js} +1 -1
- package/dist/client/assets/{separator-CJOPtNz-.js → separator-BTLDrzUc.js} +1 -1
- package/dist/client/assets/{settings-tab-zoRR23UC.js → settings-tab-BqJQ3uPx.js} +1 -1
- package/dist/client/assets/{sheet-D-h-caij.js → sheet-wemU-aZ9.js} +1 -1
- package/dist/client/assets/{shell-layout-Ckss0QqA.js → shell-layout-C7bQvu8M.js} +1 -1
- package/dist/client/assets/{skills-Dx8G-x-T.js → skills-BqpJ6duC.js} +1 -1
- package/dist/client/assets/{slider-DtTzb8JT.js → slider-INBQ4Ci_.js} +1 -1
- package/dist/client/assets/{sortable.esm-DCsYtWcb.js → sortable.esm-jUEYWtPl.js} +1 -1
- package/dist/client/assets/{sso-DDpjWaoO.js → sso-D804RM9B.js} +1 -1
- package/dist/client/assets/{suggestion-Bso4uBRF.js → suggestion-DIwPOBWx.js} +1 -1
- package/dist/client/assets/{switch-DZo6rAtc.js → switch-J8K3vNdb.js} +1 -1
- package/dist/client/assets/{symbol-Co3D-iSE.js → symbol-lUKWgdXD.js} +1 -1
- package/dist/client/assets/{synced-repos-B1f0culo.js → synced-repos-gT4FkxhN.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-ClCao4gx.js → tab-icon-glyph-DF33b7XO.js} +1 -1
- package/dist/client/assets/{table-Gm-jWCpy.js → table-Bgls4vq9.js} +1 -1
- package/dist/client/assets/{tabs-CXsAC8nO.js → tabs-Duy7ODee.js} +1 -1
- package/dist/client/assets/{task-board-Bgw_xVJW.js → task-board-DPQxW0jP.js} +1 -1
- package/dist/client/assets/{task-route-BxRkc6kt.js → task-route-BQDNl_5C.js} +1 -1
- package/dist/client/assets/{task-status-B92ESgef.js → task-status-BGLLtgDf.js} +1 -1
- package/dist/client/assets/taskboard-analytics-2fBMPAxC.js +1 -0
- package/dist/client/assets/tasks-CqyFd60l.js +1 -0
- package/dist/client/assets/{tasks-BS9sXVdl.js → tasks-IL-LS75-.js} +1 -1
- package/dist/client/assets/{textarea-bcNEcwC6.js → textarea-NyzjT40N.js} +1 -1
- package/dist/client/assets/{thread-analytics-BE8EaB4a.js → thread-analytics-CtoXhN32.js} +1 -1
- package/dist/client/assets/{thread-button-BdyWFdme.js → thread-button-BdG_noMn.js} +1 -1
- package/dist/client/assets/{thread-intent-DzHkd78g.js → thread-intent-k2Km9Dmr.js} +1 -1
- package/dist/client/assets/{thread-route-CIiqv6HG.js → thread-route-Cx-o2xCf.js} +1 -1
- package/dist/client/assets/{thread-route-mhniW_q8.js → thread-route-DbJLUn3d.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C1CJm0mZ.js → thread-sheet-body-_3hMbQ_o.js} +1 -1
- package/dist/client/assets/{time-range-picker-BUGifbSV.js → time-range-picker-CH7-gioV.js} +1 -1
- package/dist/client/assets/{toggle-group-5iPAspL-.js → toggle-group-m6bc6yjp.js} +1 -1
- package/dist/client/assets/{tool-namespace-CYa7zzrf.js → tool-namespace-CPm912_s.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CZBCq2Ko.js → toolbar-icon-button-BxO5B0Sy.js} +1 -1
- package/dist/client/assets/{tooltip-XZmQWwgB.js → tooltip-C2m8ePE-.js} +1 -1
- package/dist/client/assets/{tooltipContext-BpyR0oly.js → tooltipContext-CxUJkkTI.js} +1 -1
- package/dist/client/assets/{track-Ba2I9E5t.js → track-C5Z44Ul6.js} +1 -1
- package/dist/client/assets/{types-2TlDAuAc.js → types-ZqGSA7tu.js} +1 -1
- package/dist/client/assets/{url-slug-B-L2Z8me.js → url-slug-DEN8nCcZ.js} +1 -1
- package/dist/client/assets/{usage-stats-BihPbkIg.js → usage-stats-Dn2OeFoS.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BP69qr77.js → use-ai-providers-jw2MMLa5.js} +1 -1
- package/dist/client/assets/{use-automations-Biu6cV7d.js → use-automations-D20-ruPj.js} +1 -1
- package/dist/client/assets/{use-autosave-9jHQ-y1f.js → use-autosave-BYt2BXBs.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-J-94EUwt.js → use-chat-layout-state-WRaaYm0y.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-BXZpM5MQ.js → use-chat-navigation-FGqN2bea.js} +1 -1
- package/dist/client/assets/{use-clock-tick-rPXqIJP8.js → use-clock-tick-DWBHoA2Q.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BupOmQ7x.js → use-connect-companion-m9MlzSIA.js} +1 -1
- package/dist/client/assets/{use-connection-DUF3XC9E.js → use-connection-B2P9vQF_.js} +1 -1
- package/dist/client/assets/{use-copy-B01v9eRq.js → use-copy-Cu3Byc8S.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BxoXyDoq.js → use-create-virtual-mcp-C8rAImjt.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CPtrEugx.js → use-date-fns-locale-Beq3354R.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C__Xzre-.js → use-debounced-autosave-DrUzoxBu.js} +1 -1
- package/dist/client/assets/{use-debounced-value-D5_QO1dT.js → use-debounced-value-SDDhu8Id.js} +1 -1
- package/dist/client/assets/{use-deco-credits-DkZSWK0d.js → use-deco-credits-sdJPRntH.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-1iPDcTcf.js → use-decopilot-events-CvdvLxq8.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DUG0172F.js → use-delete-connection-BOHbZqa4.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-COeWRtXj.js → use-deployment-admin-C-HUVf8B.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-A0But3O1.js → use-ensure-project-folder-BS99-Vhk.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BRdebqFC.js → use-fast-preview-draft-url-C5x2lifG.js} +1 -1
- package/dist/client/assets/{use-file-configs-B8mqylSR.js → use-file-configs-CfW92ECv.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DewChEmc.js → use-infinite-scroll-lPN0NCUm.js} +1 -1
- package/dist/client/assets/{use-join-requests-CDGwHERc.js → use-join-requests-ChCzkc7_.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-D7q-AygO.js → use-main-panel-tabs-Dsv5nepq.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CUurQWMq.js → use-mcp-auth-status-DRKL-P8f.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Dh_4AZgb.js → use-mcp-client-CqsBL7uD.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-LJf01t7x.js → use-mcp-prompts-1ZUYIWAu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-p8MJKmfB.js → use-mcp-tools-D_yHtzDx.js} +1 -1
- package/dist/client/assets/{use-members-DQe3FYGy.js → use-members-BTcdjICA.js} +1 -1
- package/dist/client/assets/{use-mobile-UYmsi-dp.js → use-mobile-D2A_YY4A.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DDZo26Jw.js → use-navigate-to-agent-RUWGGNCj.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-APcQuu-Z.js +1 -0
- package/dist/client/assets/{use-open-billing-url-C0JU6CzN.js → use-open-billing-url-tDUbFoyb.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CPbs0OVW.js → use-org-auth-client-qz-rdd-6.js} +1 -1
- package/dist/client/assets/{use-org-fs-gQ0RuIPK.js → use-org-fs-Bpw1hkjS.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-KkmagwRy.js → use-org-repo-syncs-Dgz3AX_E.js} +1 -1
- package/dist/client/assets/{use-org-sso-DWtbATGD.js → use-org-sso-FN6Hp6_O.js} +1 -1
- package/dist/client/assets/use-organization-roles-lOM-6Cks.js +1 -0
- package/dist/client/assets/{use-organization-settings-xcc5-6DS.js → use-organization-settings-CvwbmZME.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-A1obvdVI.js → use-panel-navigate-BcP-4Jk4.js} +1 -1
- package/dist/client/assets/{use-project-scope-BxCbtcTE.js → use-project-scope-Ds7ag806.js} +1 -1
- package/dist/client/assets/{use-releases-G79MSxhR.js → use-releases-DedSt3np.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-a7ERyr_7.js → use-reports-diagnostic-CO2atgBG.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-CSN74_aC.js → use-sandbox-events-Cqb_Ym4F.js} +1 -1
- package/dist/client/assets/{use-secrets-CmTpPaF9.js → use-secrets-BjvGVY7t.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DbQlCGNR.js → use-section-preview-base-CoG0-wMI.js} +1 -1
- package/dist/client/assets/{use-tags-Ch6_1it4.js → use-tags-ja0CaL2g.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-v7nFgyEB.js → use-task-board-analytics-Dx24ixKr.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DHjlo-9e.js → use-task-board-events-CZieAk2g.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CoXnP9ys.js → use-task-board-item-prs-C_5W7zcg.js} +1 -1
- package/dist/client/assets/{use-task-board-items-erbHwxMh.js → use-task-board-items-CkoW6-bn.js} +1 -1
- package/dist/client/assets/{use-task-metadata-DmWCG43J.js → use-task-metadata-C-eJemLF.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DJfFmK1j.js → use-thread-analytics-B8zFfdhr.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-7J4Ek_Zs.js → use-thread-outputs-CHIrdXyI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cyz1DFAa.js +1 -0
- package/dist/client/assets/{useQueries-DoURbZYb.js → useQueries-Dpxh6EqM.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B0qRbG8m.js +1 -0
- package/dist/client/assets/{users-BfQBxfCk.js → users-xDH1jmUT.js} +1 -1
- package/dist/client/assets/{utils-DAEMarMy.js → utils-BBHV2kqf.js} +1 -1
- package/dist/client/assets/{variant-calendar-DNADqO99.js → variant-calendar-BJGksOpn.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BDRgB-Pq.js → variant-matcher-override-3KgTJsm9.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DPJfZa3C.js → view-mode-toggle-5lUXeBq8.js} +1 -1
- package/dist/client/assets/{virtual-mcp-C54PVPPw.js → virtual-mcp-CKveTc8W.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DmOqvBBq.js → watch-sse-pool-SMEeDp6D.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +598 -598
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DY95_zYY.js +0 -1
- package/dist/client/assets/agent-deck-C8T7Jj3o.js +0 -1
- package/dist/client/assets/agent-library-BAUPDsyD.js +0 -1
- package/dist/client/assets/agent-library-file-CHlnBg90.js +0 -1
- package/dist/client/assets/agent-settings-C-kNuurj.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BUJylH9_.js +0 -2
- package/dist/client/assets/agent-site-editor-preview-DIihiuj0.js +0 -518
- package/dist/client/assets/agent-view-SjLiGW-o.js +0 -1
- package/dist/client/assets/api-keys-CH5G5_Qp.js +0 -1
- package/dist/client/assets/app-editor-DqEmpUhy.js +0 -1
- package/dist/client/assets/flat-project-D2zrr-4_.js +0 -1
- package/dist/client/assets/library-DZte0T9-.js +0 -1
- package/dist/client/assets/project-reports-6TMbK6-4.js +0 -1
- package/dist/client/assets/project-tasks-3mU9NrZf.js +0 -1
- package/dist/client/assets/record-editor-hwH5zZn-.js +0 -1
- package/dist/client/assets/reports-DPHZG4Rx.js +0 -1
- package/dist/client/assets/roles-etRZjRQM.js +0 -1
- package/dist/client/assets/route-BCQ2a7UE.js +0 -1
- package/dist/client/assets/taskboard-analytics-BEBBYmzN.js +0 -1
- package/dist/client/assets/tasks-DckB4c8m.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-nCMzaJ9Q.js +0 -1
- package/dist/client/assets/use-organization-roles-BKQWBZmO.js +0 -1
- package/dist/client/assets/useInfiniteQuery-vZqvTY4f.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DdGuWYX3.js +0 -1
package/dist/client/assets/{runnable-block-editor-xVvcrNA2.js → runnable-block-editor-aENhZJE9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a_ as Nr,c as B,o as Mn,m as q0,K as I9,b as u9,j as r,l as U,B as h9,a4 as In,aU as Tr,e as Fn,r as I,t as T9,ah as q9,a$ as Cr,b0 as Z9,n as Er,I as A9,ap as On,T as ne,at as se,U as S9,V as Y9,X as W9,b1 as re,au as we,aZ as wr,h as h0,v as Ve,aK as Ue,s as Ke,w as Dn,q as Ge,D as He,b2 as _r,H as Ar,a6 as $n,b3 as Rr,aD as Pr,aE as Mr,aV as zn}from"./index-Bm9FTdjr.js";import{a as qe}from"./input-BkQDO0Ef.js";import{u as Ye,O as Ir,c as F9,P as G9,Q as Y0,T as _e,N as We,U as b9,C as Fr,V as z0,A as Or,B as Dr,y as $r,q as zr,z as Br,W as Bn,t as Vn,X as Vr,Y as Ft,Z as Ur,_ as Kr,r as z9,$ as N0,a0 as Un,a1 as Je,a2 as Gr,a3 as Hr,a4 as qr,a5 as Yr,a6 as Wr,a7 as Kn,g as Jr,a8 as Ze,o as Zr,a9 as Qr,aa as Xr,v as e1,ab as t1,ac as n1,ad as Ae,ae as s1,af as B0,ag as r1,ah as i1,ai as o1,aj as a1,ak as l1,al as c1,am as Ot,an as L1,ao as d1,ap as u1,aq as f1}from"./claim-phase-copy-BnoHLlrM.js";import{e as Gn}from"./backoff-CrEUbyZT.js";import{ab as m1,ac as p1,ad as h1,ae as g1,af as x1,ag as y1,ah as v1,ai as b1,aj as j1,a0 as S1,ak as Hn,al as ie,D as k1,C as N1,am as qn,a6 as T0,t as T1,d as l0,an as C1,ao as Dt,ap as E1,aa as w1,K as _1,aq as A1,ar as R1}from"./agent-icon-BewGjsar.js";import{i as Yn}from"./Play-B7i_-ibU.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as P1}from"./pair-DXTFiJNl.js";import{i as Qe}from"./ChevronSelectorVertical-DIPs2sw-.js";import{C as oe,a as ae,b as H9,e as d0,c as le,f as Xe,d as M1}from"./command-D2QlwSrW.js";import{a as A0,b as R0,P as P0}from"./popover-jNB4XciF.js";import{s as I1,a as F1,b as O1}from"./utils-DAEMarMy.js";import{u as Wn}from"./chat-context-DJGYyGlB.js";import{S as Jn}from"./scroll-area-BT00diUA.js";import{T as C9,a as E9,b as w9}from"./tooltip-XZmQWwgB.js";import{a as et,c as D1}from"./repository-binding-D2wL-4Vr.js";import{M as Zn}from"./monaco-editor-DANiMmsL.js";import{C as $1}from"./calendar-CT7cVD7N.js";import{T as z1}from"./textarea-bcNEcwC6.js";import{L as D9}from"./label-BL2W0Pcn.js";import{u as N9}from"./use-new-blocks-editor-nCMzaJ9Q.js";import{c as B1,d as V1,i as U1,b as K1}from"./Tool01-DQnW-zjg.js";import{i as G1}from"./SwitchHorizontal01-BHr8jCjb.js";import{s as g0}from"./Plus-XYNDZJ4s.js";import{E as n0,M as H1,m as q1,g as M0,u as Y1,s as W1,a as J1,b as Z1}from"./usage-stats-BihPbkIg.js";import{S as ce,b as Le,a as de,d as ue,c as u0}from"./select-BVEgIanS.js";import{T as R9,E as Q1,R as X1}from"./rich-text-link-control-CE4nCWAz.js";import{S as tt}from"./switch-DZo6rAtc.js";import{C as nt,u as st,a as f0,K as rt,P as it,D as ot,c as at,b as lt}from"./core.esm-Cvui6jds.js";import{u as ct,s as Lt,S as dt,v as ut,a as W0}from"./sortable.esm-DCsYtWcb.js";import{a as fe}from"./Copy01-CdRMK9o7.js";import{s as ei,a as m0}from"./Image01-DdBetDCI.js";import{s as s0}from"./Trash01-DZ8laRwu.js";import{t as I0}from"./ChevronUp-nynZHATg.js";import{e as b0,a as Qn}from"./UserSquare-CuRnLJZ6.js";import{C as ti}from"./combobox-DeXU4vSR.js";import{A as ni,a as si,b as ri,c as ii,g as oi,d as ai,e as li,f as ci}from"./alert-dialog-BXEG2ySJ.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-BggitXDv.js";import{i as F0}from"./Upload01-CrRTpeMX.js";import{i as Xn}from"./AlertCircle-B5gBB9h_.js";import{i as es}from"./DotsVertical-3XBYz4yU.js";import{S as Li}from"./search-input-D-uP0R3f.js";import{T as di,a as ui,c as fi,b as mi}from"./tabs-CXsAC8nO.js";import{u as pi}from"./use-debounced-value-D5_QO1dT.js";import{a as hi,u as ts}from"./use-file-configs-B8mqylSR.js";import{u as gi,a as ft,i as ns,e as xi,b as zt,f as yi}from"./asset-utils-Euq8y8zU.js";import{d as ss}from"./use-chat-layout-state-J-94EUwt.js";import{a as vi,T as bi}from"./toggle-group-5iPAspL-.js";import{g as ji,f as Si}from"./thread-intent-DzHkd78g.js";import{t as ki}from"./sandbox-git-api-C7JbVL7R.js";import{d as Ni}from"./delay-CnY5UFtP.js";const mt=Nr("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"}]]),Ti="website/loaders/secret.ts",Ci=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Ei=/^(?:[0-9a-f]{2})*$/i;function C0(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"&&Ei.test(t)}class wi 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 E0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>E0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(C0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new wi(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,E0(i,`${e}/${s}`)]))}function X9(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 _i(t){const e=X9(E0(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 Ai(t,e,n,s={}){return rs("",t,e,n,s)}function rs(t,e,n,s,i){if(a0(n,s)||a0(e,s))return n;if(a0(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=rs(`${t}/${Ri(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=!a0(l,n[a]),L=!a0(l,s[a]);if(c&&L&&!a0(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 Ri(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function a0(t,e){return X9(t)===X9(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 is(t,e){return me(t,e)}function Pi(t,e){return me(t,"preview-fetch",{path:e})}function Mi(t){return is(t,"preview-invoke")}function r5(t){return is(t,"catalog-invoke")}function os(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 Ii(){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&&os(n))return n}return null}function as(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Ii();return n&&os(n)?new URL(e,n).toString():Pi(t,e)}function Fi(t){return as(t,"/.decofile")}function Oi(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=Oi(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(I1(o.content))}}catch{return{kind:"unavailable"}}}async function Di(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 cs(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function i5(t,e){const n=B.c(16),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=t?cs({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=Mn(),d=I9.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(Bi),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 Ir(L,t);const p=()=>ls(t,ht(l,".deco/blocks.gen.json"));if(a){const v=await fetch(Fi(t),{cache:"no-store"}).catch(zi);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:$i},n[11]=d,n[12]=f,n[13]=u,n[14]=x,n[15]=m):m=n[15],q0(m)}function $i(t){return Gn(5e3,1e3,t,2,0)}function zi(){return null}function Bi(){return null}function Vi(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 Ui(t){return I9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function o5(t,e){const n=B.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?Ui({...t,previewUrl:a,productionUrl:c}):I9.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=Gi,v=()=>d?Di(t):ls(t,ht(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:Vi({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:Ki},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],q0(h)}function Ki(t){return Gn(5e3,1e3,t,2,0)}async function Gi(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Hi);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Hi(){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 a5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=F9(i);if(!o&&i!==""&&G9(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===Y0||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=F9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===Y0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?b9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&G9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?b9(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!==""&&G9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(c)||`Section ${s+1}`,isLazy:o}})}const qi={provision:0,cloning:1,install:2,dev:3};function Yi(t){return qi[t.step]}const Kt=48,Ls=28,ds=3,Wi=(()=>{const t=[];let e=0;for(let n=0;n<Kt;n++)n===Ls?t.push(null):(t.push(e/(Kt-1)*ds),e++);return t})();function Ji(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function Zi(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Fr[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",P9="bg-foreground/[0.09]",Qi=Array.from({length:35},()=>Math.random()*1.8),Xi=Array.from({length:35},()=>Math.random()<.4);function e2(t){const e=B.c(31),{progress:n,claimPhase:s}=t,i=u9();let o;e[0]!==n?(o=Yi(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=Zi(n,s,Ji(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(P1,{}),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(t2,{}),e[10]=u):u=e[10];let x;e[11]!==a?(x=r.jsx(V0,{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(s2,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(V0,{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(r2,{}),e[16]=h):h=e[16];let g;e[17]!==a?(g=r.jsx(V0,{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(o2,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(V0,{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 Nr,c as B,o as Mn,m as q0,K as I9,b as u9,j as r,l as U,B as h9,a4 as In,aU as Tr,e as Fn,r as I,t as T9,ah as q9,a$ as Cr,b0 as Z9,n as Er,I as A9,ap as On,T as ne,at as se,U as S9,V as Y9,X as W9,b1 as re,au as we,aZ as wr,h as h0,v as Ve,aK as Ue,s as Ke,w as Dn,q as Ge,D as He,b2 as _r,H as Ar,a6 as $n,b3 as Rr,aD as Pr,aE as Mr,aV as zn}from"./index-V8pRA7Xy.js";import{a as qe}from"./input-ynU6Ij5H.js";import{u as Ye,O as Ir,c as F9,P as G9,Q as Y0,T as _e,N as We,U as b9,C as Fr,V as z0,A as Or,B as Dr,y as $r,q as zr,z as Br,W as Bn,t as Vn,X as Vr,Y as Ft,Z as Ur,_ as Kr,r as z9,$ as N0,a0 as Un,a1 as Je,a2 as Gr,a3 as Hr,a4 as qr,a5 as Yr,a6 as Wr,a7 as Kn,g as Jr,a8 as Ze,o as Zr,a9 as Qr,aa as Xr,v as e1,ab as t1,ac as n1,ad as Ae,ae as s1,af as B0,ag as r1,ah as i1,ai as o1,aj as a1,ak as l1,al as c1,am as Ot,an as L1,ao as d1,ap as u1,aq as f1}from"./claim-phase-copy-DWZtPw6h.js";import{e as Gn}from"./backoff-CrEUbyZT.js";import{ab as m1,ac as p1,ad as h1,ae as g1,af as x1,ag as y1,ah as v1,ai as b1,aj as j1,a0 as S1,ak as Hn,al as ie,D as k1,C as N1,am as qn,a6 as T0,t as T1,d as l0,an as C1,ao as Dt,ap as E1,aa as w1,K as _1,aq as A1,ar as R1}from"./agent-icon-BTsTGfvr.js";import{i as Yn}from"./Play-C2hvYOyw.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as P1}from"./pair-Dha2uqa_.js";import{i as Qe}from"./ChevronSelectorVertical-Dkzqp5pp.js";import{C as oe,a as ae,b as H9,e as d0,c as le,f as Xe,d as M1}from"./command-Crl7raeC.js";import{a as A0,b as R0,P as P0}from"./popover-CZB8RxoJ.js";import{s as I1,a as F1,b as O1}from"./utils-BBHV2kqf.js";import{u as Wn}from"./chat-context-Cwuqjrlx.js";import{S as Jn}from"./scroll-area-NCHj5pvE.js";import{T as C9,a as E9,b as w9}from"./tooltip-C2m8ePE-.js";import{a as et,c as D1}from"./repository-binding-CGM8Ow1W.js";import{M as Zn}from"./monaco-editor-DMfRj7kt.js";import{C as $1}from"./calendar-CRpUCA4p.js";import{T as z1}from"./textarea-NyzjT40N.js";import{L as D9}from"./label-3hwvsVXP.js";import{u as N9}from"./use-new-blocks-editor-APcQuu-Z.js";import{c as B1,d as V1,i as U1,b as K1}from"./Tool01-B-kpMrMZ.js";import{i as G1}from"./SwitchHorizontal01-Dv53_XOE.js";import{s as g0}from"./Plus-v0YpByfM.js";import{E as n0,M as H1,m as q1,g as M0,u as Y1,s as W1,a as J1,b as Z1}from"./usage-stats-Dn2OeFoS.js";import{S as ce,b as Le,a as de,d as ue,c as u0}from"./select-XceA90ql.js";import{T as R9,E as Q1,R as X1}from"./rich-text-link-control-B-mX9xD1.js";import{S as tt}from"./switch-J8K3vNdb.js";import{C as nt,u as st,a as f0,K as rt,P as it,D as ot,c as at,b as lt}from"./core.esm-CIWIcR9H.js";import{u as ct,s as Lt,S as dt,v as ut,a as W0}from"./sortable.esm-jUEYWtPl.js";import{a as fe}from"./Copy01-Cr5x9Tlu.js";import{s as ei,a as m0}from"./Image01-Doh_epPd.js";import{s as s0}from"./Trash01-3M9m1iIs.js";import{t as I0}from"./ChevronUp-wLOc_NTT.js";import{e as b0,a as Qn}from"./UserSquare-BuJqx7Ns.js";import{C as ti}from"./combobox-D7N8SC25.js";import{A as ni,a as si,b as ri,c as ii,g as oi,d as ai,e as li,f as ci}from"./alert-dialog-Dr31Gqkz.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-CVwCO-_8.js";import{i as F0}from"./Upload01-DBgIGKf8.js";import{i as Xn}from"./AlertCircle-9YsZUjmj.js";import{i as es}from"./DotsVertical-DZE2ktIm.js";import{S as Li}from"./search-input-CdXxg7YI.js";import{T as di,a as ui,c as fi,b as mi}from"./tabs-Duy7ODee.js";import{u as pi}from"./use-debounced-value-SDDhu8Id.js";import{a as hi,u as ts}from"./use-file-configs-CfW92ECv.js";import{u as gi,a as ft,i as ns,e as xi,b as zt,f as yi}from"./asset-utils-CX1te1rQ.js";import{d as ss}from"./use-chat-layout-state-WRaaYm0y.js";import{a as vi,T as bi}from"./toggle-group-m6bc6yjp.js";import{g as ji,f as Si}from"./thread-intent-k2Km9Dmr.js";import{t as ki}from"./sandbox-git-api-C7JbVL7R.js";import{d as Ni}from"./delay-CnY5UFtP.js";const mt=Nr("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"}]]),Ti="website/loaders/secret.ts",Ci=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Ei=/^(?:[0-9a-f]{2})*$/i;function C0(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"&&Ei.test(t)}class wi 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 E0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>E0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(C0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new wi(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,E0(i,`${e}/${s}`)]))}function X9(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 _i(t){const e=X9(E0(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 Ai(t,e,n,s={}){return rs("",t,e,n,s)}function rs(t,e,n,s,i){if(a0(n,s)||a0(e,s))return n;if(a0(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=rs(`${t}/${Ri(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=!a0(l,n[a]),L=!a0(l,s[a]);if(c&&L&&!a0(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 Ri(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function a0(t,e){return X9(t)===X9(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 is(t,e){return me(t,e)}function Pi(t,e){return me(t,"preview-fetch",{path:e})}function Mi(t){return is(t,"preview-invoke")}function r5(t){return is(t,"catalog-invoke")}function os(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 Ii(){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&&os(n))return n}return null}function as(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??Ii();return n&&os(n)?new URL(e,n).toString():Pi(t,e)}function Fi(t){return as(t,"/.decofile")}function Oi(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=Oi(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(I1(o.content))}}catch{return{kind:"unavailable"}}}async function Di(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 cs(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function i5(t,e){const n=B.c(16),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=t?cs({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=Mn(),d=I9.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(Bi),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 Ir(L,t);const p=()=>ls(t,ht(l,".deco/blocks.gen.json"));if(a){const v=await fetch(Fi(t),{cache:"no-store"}).catch(zi);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:$i},n[11]=d,n[12]=f,n[13]=u,n[14]=x,n[15]=m):m=n[15],q0(m)}function $i(t){return Gn(5e3,1e3,t,2,0)}function zi(){return null}function Bi(){return null}function Vi(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 Ui(t){return I9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function o5(t,e){const n=B.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?Ui({...t,previewUrl:a,productionUrl:c}):I9.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=Gi,v=()=>d?Di(t):ls(t,ht(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:Vi({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:Ki},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],q0(h)}function Ki(t){return Gn(5e3,1e3,t,2,0)}async function Gi(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Hi);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Hi(){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 a5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=F9(i);if(!o&&i!==""&&G9(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===Y0||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=F9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===Y0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?b9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&G9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?b9(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!==""&&G9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:b9(c)||`Section ${s+1}`,isLazy:o}})}const qi={provision:0,cloning:1,install:2,dev:3};function Yi(t){return qi[t.step]}const Kt=48,Ls=28,ds=3,Wi=(()=>{const t=[];let e=0;for(let n=0;n<Kt;n++)n===Ls?t.push(null):(t.push(e/(Kt-1)*ds),e++);return t})();function Ji(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function Zi(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?Fr[e.kind].long:n[t.step]}const O9="bg-foreground/[0.05]",P9="bg-foreground/[0.09]",Qi=Array.from({length:35},()=>Math.random()*1.8),Xi=Array.from({length:35},()=>Math.random()<.4);function e2(t){const e=B.c(31),{progress:n,claimPhase:s}=t,i=u9();let o;e[0]!==n?(o=Yi(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=Zi(n,s,Ji(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(P1,{}),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(t2,{}),e[10]=u):u=e[10];let x;e[11]!==a?(x=r.jsx(V0,{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(s2,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(V0,{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(r2,{}),e[16]=h):h=e[16];let g;e[17]!==a?(g=r.jsx(V0,{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(o2,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(V0,{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-V8pRA7Xy.js";import{u as pe}from"./use-mcp-client-CqsBL7uD.js";import{a as ye}from"./input-ynU6Ij5H.js";import{b as Ee,u as he}from"./chat-context-Cwuqjrlx.js";import{u as Re}from"./thread-intent-k2Km9Dmr.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-Cqb_Ym4F.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=b(t);return be({filters:{...e,status:"pending"}},n).length}function X(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function be(e={},t){const n=b(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=X(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(u=>n.subscribe(()=>{const a=ie(s.current,X(n,r.current));s.current!==a&&(s.current=a,ce.schedule(u))}),[n]),()=>s.current,()=>s.current)}async function Pe(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const q=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),U=new Set,g={mark:(e,t)=>U.add(`${e}::${t}`),clear:(e,t)=>U.delete(`${e}::${t}`),isStopped:(e,t)=>U.has(`${e}::${t}`)};function _e(e,t){const n=b();return le({mutationKey:q,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>xe(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),u=w.get(s);if(u)return u;const a=(async()=>(await Pe(e,"SANDBOX_START",r)).structuredContent)();w.set(s,a);try{return await a}finally{w.get(s)===a&&w.delete(s)}},onSuccess:()=>{j(n),t?.onStarted?.()}})}function Me(e,t){const n=de.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:q,predicate:u=>{if(!e)return!1;const a=u.state.variables;return!a||a.virtualMcpId!==e?!1:(a.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],Te(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function ge(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function We(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function De(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function ze(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,u=e.ownerId??r;if(!r||!u||!s)return t;const a=n?.[u]?.[s];return a?{...t??{},[r]:{...t?.[r]??{},[s]:a}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Y=2,Le=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return Le.has(e)}function Oe(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Y&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const $e={branch:null,count:0,handled:!1};function Be(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Ve(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function Q(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function T(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:Q(n,t.branch??r),url:t.previewUrl})}const Ne={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},M=i.createContext(Ne);function Ge(){return i.use(M)}function Ze({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:u,threadId:a,children:D}){const{org:L}=fe(),{setCurrentTaskBranch:l}=Ee(),W=Re(),p=we(),z=b(),O=ye(t),G=O.resolved?O.runtime:null,d=he()?.taskId??null,$=pe({connectionId:Se,orgId:L.id,orgSlug:L.slug}),c=_e($,{onStarted:()=>{a&&W?.refreshThreadMetadata(a)}}),{mutate:f,reset:Z}=c,[ee,S]=i.useState(null),P=i.useRef(new Set),C=i.useRef(null),[B,R]=i.useState($e),E=Be(B,n);E!==B&&R(E);const y=p.phase?.kind==="failed"?p.phase:null,V=ve({vmEntry:u,seeded:y?null:ee,key:Q(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),te=p.status.state==="paused",ne=!y||!J(y.reason)||E.count>=Y,re=Ve({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:ne}),F=Ue({previewUrl:V,appPaused:te,userStopped:h,startError:re}),se=Fe(F),k=n??"",oe=P.current.has(k),v=ge({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:u,userStopped:h,isPending:c.isPending,attempted:oe,sessionRuntime:G});i.useEffect(()=>{if(!v||!t)return;P.current.add(k);const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] auto-start failed:",o)}})},[v,k,n,t,d,f,l,S]);const x=p.notFound?u?.sandboxHandle??null:null,N=De({executionEnabled:e,notFound:p.notFound,deadVmId:x,lastDeadVmId:C.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!N||!x||!t)return;C.current=x;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] self-heal failed:",o)}})},[N,x,t,n,d,f,l,S]);const I=Oe({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){R(o=>o.handled?{...o,handled:!1}:o);return}if(!I||!t)return;R(o=>({...o,handled:!0,count:o.count+1}));const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",o)}})},[y,I,t,n,d,f,l,S]);const _=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] user start failed:",o)}})},K=async()=>{if(!(!e||!t||!n)&&u){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}j(z)}},ae=async()=>{await K(),_()},H=()=>{P.current=new Set,C.current=null,R({branch:n,count:0,handled:!1}),Z(),_()},ue={branch:n,previewState:F,status:se,vmEntry:u,previewUrl:V,userStopped:h,start:_,stop:K,restart:ae,retry:H,resume:H};return me.jsx(M,{value:ue,children:D})}export{Ze as S,_e as a,Ge as b,Te as c,ze as o,We as s,Me as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aD as n,bS as e,aE as o,bT as d,bU as l}from"./index-
|
|
1
|
+
import{aD as n,bS as e,aE as o,bT as d,bU as l}from"./index-V8pRA7Xy.js";const a=500;n({title:o().max(a),url:o().max(a),icon:o().max(a)});const t=n({keyId:o().max(a),modelId:o().max(a),title:o().max(a).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=n({tiers:n({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});n({tiers:n({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;n({host:o().min(1).max(a).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:o().min(1).max(a).describe("Vault secret id holding the PAT used to authenticate this host.")});n({ids:l(o().max(a)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=n({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` built-in post blocks everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible. Off by default. Blocks already present in a post keep rendering; this only governs what can be added.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only"]);function g(i,s){const r=i?.[s];return h.has(s)?r!==!1:r===!0}function m(i){const s=i?.auto_resolve_conflicts;return typeof s=="boolean"?s:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,m as a,c as b,g as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,by as A,bu as ce,j as b,bA as _,bN as ae,dl as O,bB as C,bH as P,bC as ie,c as F,l as $}from"./index-Bm9FTdjr.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-V8pRA7Xy.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-V8pRA7Xy.js";import{i as v}from"./SearchMd-Bendi2p8.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-V8pRA7Xy.js";import{i as B}from"./SearchMd-Bendi2p8.js";import{I as O}from"./icon-button-DMzM4KWP.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-V8pRA7Xy.js";import{s as j}from"./User01-CT2R-iHD.js";import{t as E}from"./Users01-gQNjKybb.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-V8pRA7Xy.js";import{i as H}from"./AlertCircle-9YsZUjmj.js";import{s as V}from"./Plus-v0YpByfM.js";import{s as G}from"./User01-CT2R-iHD.js";import{t as K}from"./Users01-gQNjKybb.js";import{L as w}from"./label-3hwvsVXP.js";import{S as J,b as M,a as Q,d as U,c as P}from"./select-XceA90ql.js";import{T as W}from"./textarea-NyzjT40N.js";import{u as X,a as Y}from"./use-secrets-BjvGVY7t.js";import{R as Z}from"./require-capability-D5tJwX6A.js";import"./index-BdQq_4o_.js";import"./index-CvkEcM9-.js";import"./ChevronUp-wLOc_NTT.js";import"./access-gate-DlhD9I9N.js";import"./capability-load-error-Cwp75ry8.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};
|