decocms 4.532.1 → 4.532.2
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-DnnbFg2w.js → ActiveShapeUtils-DenZ78VA.js} +1 -1
- package/dist/client/assets/{AlertCircle-JaYuCWTa.js → AlertCircle-BWrNX7mN.js} +1 -1
- package/dist/client/assets/{AreaChart-BztD6Eot.js → AreaChart-DNs2YwPE.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BhJEaZ6B.js → ArrowLeft-DHx5ko4s.js} +1 -1
- package/dist/client/assets/{ArrowUp-YrAe3vgd.js → ArrowUp-CyzDPNV4.js} +1 -1
- package/dist/client/assets/{BarChart-Dm2oPqJS.js → BarChart-CXwRHR1B.js} +1 -1
- package/dist/client/assets/{Building02-CTmcVqQj.js → Building02-DhL5SQYW.js} +1 -1
- package/dist/client/assets/{CartesianChart-tumrCcCW.js → CartesianChart-bUujzX18.js} +1 -1
- package/dist/client/assets/{CategoricalChart-BqKIQcdM.js → CategoricalChart-hUgIZ_pD.js} +1 -1
- package/dist/client/assets/{CheckCircle-9jHhe24P.js → CheckCircle-BJwUqTIe.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CfW1Wzms.js → ChevronSelectorVertical-BsFKOzFl.js} +1 -1
- package/dist/client/assets/{ChevronUp-D-7vQNVy.js → ChevronUp-BsFnjeNK.js} +1 -1
- package/dist/client/assets/{Copy01-DP6tJ3a3.js → Copy01-BMtss9AJ.js} +1 -1
- package/dist/client/assets/{CreditCard01-7YXzWPmu.js → CreditCard01-DpJ5HaJ6.js} +1 -1
- package/dist/client/assets/{DotsVertical-BSeiVg8O.js → DotsVertical-7Rm5ttPh.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DeFYEXHx.js → ErrorBarContext-B8n7TKqU.js} +1 -1
- package/dist/client/assets/{Globe04-BkUhGI83.js → Globe04-BJeMTkc9.js} +1 -1
- package/dist/client/assets/{Image01-DLqdm992.js → Image01-B1C03E_N.js} +1 -1
- package/dist/client/assets/{Key01-o_hEpYwc.js → Key01-AhMvx8Bf.js} +1 -1
- package/dist/client/assets/{Link01-DDso2VpB.js → Link01-p8humFYG.js} +1 -1
- package/dist/client/assets/{LinkBroken01-C29KKpU0.js → LinkBroken01-C5q0tEvS.js} +1 -1
- package/dist/client/assets/{Minus-B--8kp5j.js → Minus-BMakGco3.js} +1 -1
- package/dist/client/assets/{Monitor01-BtDUnSZq.js → Monitor01-CLwaIfNu.js} +1 -1
- package/dist/client/assets/{Play-jy1YZ7pj.js → Play-BoOYKEkH.js} +1 -1
- package/dist/client/assets/{Plus-4tdoOfzh.js → Plus-D7X276kv.js} +1 -1
- package/dist/client/assets/{ReferenceLine-rf71t8Wf.js → ReferenceLine-UiDLzqoj.js} +1 -1
- package/dist/client/assets/{SearchMd-J2Rjic9V.js → SearchMd-BzDAUJSU.js} +1 -1
- package/dist/client/assets/{Sector-Bh4QFYl4.js → Sector-DZu8Iagq.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-jE2k9Z1o.js → ShoppingBag01-UnxomIP0.js} +1 -1
- package/dist/client/assets/{Sun-CGNTymUo.js → Sun-B5QvK7X9.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CLXZKY70.js → SwitchHorizontal01-Dr_PPdbH.js} +1 -1
- package/dist/client/assets/{Tool01-DvOyfmVC.js → Tool01-OTauJJp3.js} +1 -1
- package/dist/client/assets/{Trash01-CGaWZsc5.js → Trash01-DzCXEeuM.js} +1 -1
- package/dist/client/assets/{Upload01-CXqGRfor.js → Upload01-2E_Vrojt.js} +1 -1
- package/dist/client/assets/{UserSquare-DV1XZOY6.js → UserSquare-CmbcjiWL.js} +1 -1
- package/dist/client/assets/{Users01-CpHvZIR7.js → Users01-BFgiCQPh.js} +1 -1
- package/dist/client/assets/{XClose-DWQXqdSq.js → XClose-BF4dTiHJ.js} +1 -1
- package/dist/client/assets/{ZoomOut-BMZKrcTE.js → ZoomOut-BIPVG3Mi.js} +1 -1
- package/dist/client/assets/{access-gate-D7ByZ05F.js → access-gate-BrHHSKUI.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BAfMm3u3.js → add-connection-dialog-84lGCknH.js} +1 -1
- package/dist/client/assets/agent-analytics-CaqNBpQA.js +2 -0
- package/dist/client/assets/agent-app-DjBhUw5o.js +1 -0
- package/dist/client/assets/{agent-assets-BFfp1GZa.js → agent-assets-DkTI28JC.js} +1 -1
- package/dist/client/assets/{agent-automation-cMZeN9lm.js → agent-automation-F0B4MP-_.js} +1 -1
- package/dist/client/assets/{agent-automations-C1kW6Kjy.js → agent-automations-cb9A7zzk.js} +1 -1
- package/dist/client/assets/{agent-calendar-36AOb9o-.js → agent-calendar-B3d7D0Bd.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DPOLWSPQ.js → agent-connect-sources-D2B4_Vnn.js} +1 -1
- package/dist/client/assets/agent-deck-5QYiPo7g.js +1 -0
- package/dist/client/assets/{agent-e2e-BAUU5S3t.js → agent-e2e-COljZ8mH.js} +1 -1
- package/dist/client/assets/agent-experiments-DbScA798.js +1 -0
- package/dist/client/assets/{agent-file-CVc7OTSX.js → agent-file-BWUqgQfU.js} +1 -1
- package/dist/client/assets/{agent-hosting-B3kgszkl.js → agent-hosting-DQRni5C3.js} +1 -1
- package/dist/client/assets/{agent-icon-B6DURSl_.js → agent-icon-DMLbHyqZ.js} +1 -1
- package/dist/client/assets/agent-library-Dn9V9HRF.js +1 -0
- package/dist/client/assets/agent-library-file-DwvWIojZ.js +1 -0
- package/dist/client/assets/agent-monitor-BfOHieYM.js +1 -0
- package/dist/client/assets/{agent-overview-B-K4tgsN.js → agent-overview-DQfGfiWL.js} +1 -1
- package/dist/client/assets/{agent-releases-Cg8gdPI4.js → agent-releases-DmNYUENl.js} +1 -1
- package/dist/client/assets/agent-settings-BBVQpT76.js +1 -0
- package/dist/client/assets/{agent-site-editor-wbhemRqk.js → agent-site-editor-LiXNvVzd.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DaRLEV5p.js +2 -0
- package/dist/client/assets/agent-site-editor-content--qfnrcml.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BUTGq7zp.js +1 -0
- package/dist/client/assets/agent-view-CsFo6WNW.js +1 -0
- package/dist/client/assets/{agent-view-guard-B65FxQSG.js → agent-view-guard-CIzLYG9Z.js} +1 -1
- package/dist/client/assets/{agents-list-C2lNfvq5.js → agents-list-JqKBXhBb.js} +1 -1
- package/dist/client/assets/{ai-providers-yeci77cM.js → ai-providers-BMdVqDyj.js} +1 -1
- package/dist/client/assets/{alert-ByYqnTt4.js → alert-BAjsKun9.js} +1 -1
- package/dist/client/assets/{analytics-sections-D6yo_AiZ.js → analytics-sections-2r9JgnkF.js} +1 -1
- package/dist/client/assets/api-keys-DOllUAfq.js +1 -0
- package/dist/client/assets/{api-keys-MpEUcu1P.js → api-keys-D_a2AabQ.js} +1 -1
- package/dist/client/assets/{app-editor-BJbxwtPb.js → app-editor-hGtjMe2U.js} +1 -1
- package/dist/client/assets/{asset-utils-B_sH3eAw.js → asset-utils-BljmC-O4.js} +1 -1
- package/dist/client/assets/{auth-DDIbIEWU.js → auth-BawzvLgB.js} +1 -1
- package/dist/client/assets/{auth-catchall-C0vPJ0YF.js → auth-catchall-L4otHxQ4.js} +1 -1
- package/dist/client/assets/{auth-entry-JIA29m1g.js → auth-entry-DHl3Qa2p.js} +1 -1
- package/dist/client/assets/{auth-split-layout-C9ufzfNF.js → auth-split-layout-Bpnft0WY.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Cinc5wU_.js → authenticate-and-persist-oauth-CL5vwYY0.js} +1 -1
- package/dist/client/assets/{automation-list-row-D_MyMSDf.js → automation-list-row-B1qIGbz-.js} +1 -1
- package/dist/client/assets/{automation-runs-BYeHhogm.js → automation-runs-Dgzto0gK.js} +1 -1
- package/dist/client/assets/{automations-ZXkIniXI.js → automations-C5lyWSek.js} +1 -1
- package/dist/client/assets/{autosend-CeHYNB5a.js → autosend-BSe8DnJN.js} +1 -1
- package/dist/client/assets/{badge-DCdHHENd.js → badge-Dk9QaMHv.js} +1 -1
- package/dist/client/assets/{block-document-u0VXgZsH.js → block-document-DlaqZi3o.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-MSwutMpe.js → blocks-preview-workspace-context-BzMwrhCE.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-D7FXIYa1.js → blocks-tab-states-B7iQVWp6.js} +1 -1
- package/dist/client/assets/{blog-schema-Cj9I5QvS.js → blog-schema-BHmzvrMx.js} +1 -1
- package/dist/client/assets/{buckets-Ebvh16O2.js → buckets-CVEqMqkM.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-MHEVAUpp.js → build-improve-prompt-doc-B6DMhmUe.js} +1 -1
- package/dist/client/assets/{calendar-DGPEnw4y.js → calendar-nGMQX5H2.js} +1 -1
- package/dist/client/assets/{capability-load-error-xTGz1O0J.js → capability-load-error-BX1SCP0_.js} +1 -1
- package/dist/client/assets/{category-editor-iiVXVslv.js → category-editor-B4n2VHEp.js} +1 -1
- package/dist/client/assets/{cdn-tab-GR3G6uO2.js → cdn-tab-BPWLqXqs.js} +1 -1
- package/dist/client/assets/{chart-DGgWZa8N.js → chart-BOjeMD0e.js} +1 -1
- package/dist/client/assets/{chat-context-EryBIl5y.js → chat-context-D2EaExW5.js} +1 -1
- package/dist/client/assets/{chat-draft-C77KukAJ.js → chat-draft-C-EHUjTp.js} +1 -1
- package/dist/client/assets/{checkbox-DanWxFDQ.js → checkbox--Oh7M1o0.js} +1 -1
- package/dist/client/assets/{choose-editor-DRItQK1g.js → choose-editor-CHcjiEH4.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CbPQDWie.js → cli-auth-success-BfeyrT2F.js} +1 -1
- package/dist/client/assets/{client-icons-DM34aWEC.js → client-icons-DQkGfKDh.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CMB6VNMa.js → cms-settings-editor-DwJYbiAD.js} +1 -1
- package/dist/client/assets/{collapsible-Bxf6Tjj8.js → collapsible-DTK_WJix.js} +1 -1
- package/dist/client/assets/{collection-detail-Bh4I2YYV.js → collection-detail-C0KsWIh2.js} +1 -1
- package/dist/client/assets/{collection-display-button-DKZVrqVY.js → collection-display-button-K6Znqj-g.js} +1 -1
- package/dist/client/assets/{collection-search-oriFbOeS.js → collection-search-Qr0hkbHz.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Cx4DeYH2.js → collection-table-wrapper-D6zxNCnG.js} +1 -1
- package/dist/client/assets/{collection-tabs-B-KXu_oD.js → collection-tabs-Ma8F53u0.js} +1 -1
- package/dist/client/assets/{column-rules-CQFnitOu.js → column-rules-IVYKsmdv.js} +1 -1
- package/dist/client/assets/{combobox-Cwzc08sq.js → combobox-BDOw2yEp.js} +1 -1
- package/dist/client/assets/{command-BPRmBGhB.js → command-MDi6OAC1.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CXlo7Sbg.js → companion-mcps-section-CVi8OvfW.js} +1 -1
- package/dist/client/assets/{config-nwVLBXQV.js → config-Dym8HnZx.js} +1 -1
- package/dist/client/assets/{connect-CybWYqFY.js → connect-fTG8J5lb.js} +1 -1
- package/dist/client/assets/{connect-layout-E0TTDMsw.js → connect-layout-CZZqsNI2.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-2r0XpaoA.js → connect-source-dialog-CncrwAT8.js} +1 -1
- package/dist/client/assets/{connection-DyDIuEks.js → connection-O8PnXJZi.js} +1 -1
- package/dist/client/assets/{connection-card-vYaDrRUO.js → connection-card-RdKzW886.js} +1 -1
- package/dist/client/assets/{connection-detail-WxSnF4zc.js → connection-detail-DnfNkGSf.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BQJcmj4C.js → connection-form-helpers-DVNTeSdC.js} +1 -1
- package/dist/client/assets/{connections-DusfKLJp.js → connections-ByI0uD_U.js} +1 -1
- package/dist/client/assets/{content-tab-CdSmdOT_.js → content-tab-2K6f0sFB.js} +3 -3
- package/dist/client/assets/{context-Cz086QIc.js → context-Dgv8u1kZ.js} +1 -1
- package/dist/client/assets/{context-menu-gpaAOtWJ.js → context-menu-_6aSLrNv.js} +1 -1
- package/dist/client/assets/{context-shell-CPyOecQG.js → context-shell-Dkh3MlNJ.js} +3 -3
- package/dist/client/assets/{core.esm-XMSb_Uka.js → core.esm-Co0itmj7.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-B46HiNm0.js → create-organization-dialog-QEydhapH.js} +1 -1
- package/dist/client/assets/{daily-pulse-D6u_wQB-.js → daily-pulse-D_SGGhIw.js} +1 -1
- package/dist/client/assets/{discover-Dwa3grGi.js → discover-DmiBR0qW.js} +1 -1
- package/dist/client/assets/{domain-settings-CZcl4K1o.js → domain-settings-Cf2W5c-a.js} +1 -1
- package/dist/client/assets/{drawer-C3PrA-n8.js → drawer-DgxlyKrC.js} +1 -1
- package/dist/client/assets/{editor-BI9MEm45.js → editor-BlDtkpHT.js} +1 -1
- package/dist/client/assets/{editor-classes-Di69nj2G.js → editor-classes-DHW6XsZP.js} +1 -1
- package/dist/client/assets/{empty-state-r_5Rd0dc.js → empty-state-CnCcC-8N.js} +1 -1
- package/dist/client/assets/{empty-state-tJsREuj4.js → empty-state-DQH-DiCp.js} +1 -1
- package/dist/client/assets/{experiments-tab-D83vgaBk.js → experiments-tab-DN2DbmCx.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-_FBZoLPZ.js → experiments-tab-choice-B2cKHyhG.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CAX0s-U5.js → extract-connection-data-BRZSg9CO.js} +1 -1
- package/dist/client/assets/{feature-gate-CIVRuSL-.js → feature-gate-x6qhrhaG.js} +1 -1
- package/dist/client/assets/{feature-paywall-B0ICgL5J.js → feature-paywall-CypZbR93.js} +1 -1
- package/dist/client/assets/{file-explorer-CAwP6yms.js → file-explorer-DG9-Rlc5.js} +1 -1
- package/dist/client/assets/{file-preview-BS2w8KBn.js → file-preview-C4Z-YwH_.js} +1 -1
- package/dist/client/assets/{file-share-button-DVQqivw6.js → file-share-button-DKZ7oEEn.js} +1 -1
- package/dist/client/assets/{file-type-icon-D-goE4ev.js → file-type-icon-BrZE8mnq.js} +1 -1
- package/dist/client/assets/{folder-icon-Dh0obbUY.js → folder-icon-C8Dw6D6B.js} +1 -1
- package/dist/client/assets/{form-BrmBomQx.js → form-DAT0TK1w.js} +1 -1
- package/dist/client/assets/{general-6Gb6L9hc.js → general-PUVNuDbw.js} +1 -1
- package/dist/client/assets/{held-block-view-ZDteU5Jg.js → held-block-view-rTOQRrzA.js} +3 -3
- package/dist/client/assets/{home-Yx3qRIo8.js → home-B7Ic73m_.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-D-NyDy_o.js → hosted-publish-feedback-BYd2t20V.js} +1 -1
- package/dist/client/assets/{icon-button-B8gYI46y.js → icon-button-DIxoXQKV.js} +1 -1
- package/dist/client/assets/{index-cvu6NM2y.js → index-7SN0ucfq.js} +1 -1
- package/dist/client/assets/{index-Dps1wO3D.js → index-BIIhX81I.js} +1 -1
- package/dist/client/assets/{index-BieOo250.js → index-BYpbKN34.js} +1 -1
- package/dist/client/assets/{index-DRBnjYGA.js → index-BZRrEhsu.js} +1 -1
- package/dist/client/assets/{index-SVmnnfb6.js → index-CQj5kSP7.js} +1 -1
- package/dist/client/assets/{index-CVukLLDd.js → index-Ca4Q75r_.js} +1 -1
- package/dist/client/assets/{index-KTP6c0cL.js → index-CjPh5dsm.js} +1 -1
- package/dist/client/assets/{index-DIKRwX1p.js → index-CquZHSaS.js} +1 -1
- package/dist/client/assets/{index-B_ZSRZ_1.js → index-Cuqx2rXt.js} +1 -1
- package/dist/client/assets/{index-CgM7-Ro8.js → index-Cxx5SZO5.js} +72 -72
- package/dist/client/assets/index-DJP2Tw2D.css +1 -0
- package/dist/client/assets/{index-_4PHXujT.js → index-DZn-HYwc.js} +1 -1
- package/dist/client/assets/{index-DCM5dVSL.js → index-DbfDgKss.js} +1 -1
- package/dist/client/assets/{index-DapED80K.js → index-TAei2O9I.js} +1 -1
- package/dist/client/assets/{index-CXN_y45N.js → index-qt5sLImf.js} +1 -1
- package/dist/client/assets/{index-redirect-DS6jhnWT.js → index-redirect-C2mEcSuz.js} +1 -1
- package/dist/client/assets/{index-bs2MyHCY.js → index-z9eosAhj.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DOIcndov.js → infiniteQueryObserver-B9PBW4Q3.js} +1 -1
- package/dist/client/assets/{infra-billing-BvdZetjK.js → infra-billing-Cdw4wy6i.js} +1 -1
- package/dist/client/assets/{input-Cdb_NhY5.js → input-BFXymFUo.js} +1 -1
- package/dist/client/assets/{input-DVTIG9aC.js → input-dt9X0pvp.js} +3 -3
- package/dist/client/assets/{integration-icon-Do2Y8hkm.js → integration-icon-DGyeG5wp.js} +1 -1
- package/dist/client/assets/{jira-icon-WOhDyJEG.js → jira-icon-aE2LRXUv.js} +1 -1
- package/dist/client/assets/{label-DOI4IEwy.js → label-Ctu3ACGH.js} +1 -1
- package/dist/client/assets/{layout-Bghhk_lp.js → layout-BBi67rPP.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DxTjI0nW.js → legacy-agents-deep-DXm2VUys.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-BNntnJG2.js → legacy-main-redirect-xLzp4sos.js} +1 -1
- package/dist/client/assets/library-DXmyt1Gx.js +1 -0
- package/dist/client/assets/{login-CCI0hYyU.js → login-C4ik3KAa.js} +1 -1
- package/dist/client/assets/{markdown-BwxTuGGG.js → markdown-CWAWXi60.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-BoiACXPd.js → mcp-app-renderer-C2UU8TPW.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CZ9GqXPF.js → mcp-oauth-BgczWCl7.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ysipa0ke.js → mcp-oauth-DPnnrdpS.js} +1 -1
- package/dist/client/assets/{members-C7ZgCgdf.js → members-DYgO8xeR.js} +1 -1
- package/dist/client/assets/{memory-BJg93AJ_.js → memory-8RSHKutI.js} +1 -1
- package/dist/client/assets/{mini-report-page-CG2TDLWW.js → mini-report-page-Cok-AWQD.js} +1 -1
- package/dist/client/assets/{mock-board-6S3zrVza.js → mock-board-Nc8P3HCB.js} +3 -3
- package/dist/client/assets/{monaco-editor-Bu-nU7NV.js → monaco-editor-D4Zh5ulV.js} +1 -1
- package/dist/client/assets/{monitoring-CtNDQEFC.js → monitoring-00U9_JaZ.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D1_4aDPs.js → monitoring-stats-row-Bo4buMTd.js} +1 -1
- package/dist/client/assets/{multi-select-B4032GRo.js → multi-select-Dgh7zCRl.js} +1 -1
- package/dist/client/assets/{mustache-DKd8K2vx.js → mustache-BUKtJZnS.js} +1 -1
- package/dist/client/assets/{named-rule-uses-BR4TO_up.js → named-rule-uses-CILvps79.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DVfPsfG1.js → new-project-dialog-C8Z9rxsK.js} +1 -1
- package/dist/client/assets/{oauth-callback-N9-z1VuP.js → oauth-callback-CE7Uxghr.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CNfO_rYc.js → oauth-callback-ai-provider-CFmbF-CP.js} +1 -1
- package/dist/client/assets/{onboarding-De-qOZCj.js → onboarding-mOv2Iyev.js} +1 -1
- package/dist/client/assets/{openai-conversation-CnC0P3bR.js → openai-conversation-DziaKIXJ.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-D1QEaYtv.js → optimistic-project-sidebar-views-BA4lpO5g.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BeeQrZ5U.js → order-monitor-day-BBlstwBq.js} +1 -1
- package/dist/client/assets/{organization-choice-CKs_iAfO.js → organization-choice--RODmYz9.js} +1 -1
- package/dist/client/assets/{orgs-Dxmpwmqc.js → orgs-cjaXJmLi.js} +1 -1
- package/dist/client/assets/{page-seo-form-B6ZA1fPy.js → page-seo-form-EchOknJY.js} +1 -1
- package/dist/client/assets/{pair-BqbhOYo8.js → pair-D81VUoh8.js} +1 -1
- package/dist/client/assets/{parse-sections-D0EeXwVX.js → parse-sections-DqiKgsi7.js} +1 -1
- package/dist/client/assets/{plan-Do0NrPLf.js → plan-D1zAf_A4.js} +1 -1
- package/dist/client/assets/{plan-ladder-DeIr-j94.js → plan-ladder-BM0vfuMg.js} +1 -1
- package/dist/client/assets/{popover-Cdnki_Jg.js → popover-Cf5bE8mq.js} +1 -1
- package/dist/client/assets/{post-calendar-BqMsyhtW.js → post-calendar-YSAaYkEq.js} +1 -1
- package/dist/client/assets/{post-editor-d8_PR6QG.js → post-editor-BhE1Cpdl.js} +1 -1
- package/dist/client/assets/{preview-content-Cfp4wBHT.js → preview-content-CD6AbYC3.js} +1 -1
- package/dist/client/assets/{preview-dialog-u-q_Yxod.js → preview-dialog-CDAUzIIz.js} +1 -1
- package/dist/client/assets/{preview-panel-4HZDowIC.js → preview-panel-CSWXyf1I.js} +1 -1
- package/dist/client/assets/{preview-tab-DpIMbT0D.js → preview-tab-C8fq_RoO.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-CGoJkeHX.js → product-picker-dialog-CxqpXPuE.js} +1 -1
- package/dist/client/assets/{profile-CuY7TVPf.js → profile-CqAQF01N.js} +1 -1
- package/dist/client/assets/{project-app-view-BgPENTJM.js → project-app-view-D3SaQmET.js} +1 -1
- package/dist/client/assets/{project-apps-ZVTNnGHs.js → project-apps-CcjoYUnG.js} +1 -1
- package/dist/client/assets/{project-feed-Cnu5Nxao.js → project-feed-BwJVQ7vC.js} +1 -1
- package/dist/client/assets/{project-icon-DEP8iT8r.js → project-icon-iIrZc685.js} +1 -1
- package/dist/client/assets/project-reports-BMuAb39w.js +1 -0
- package/dist/client/assets/project-tasks-DoKHGxuy.js +1 -0
- package/dist/client/assets/{projects-DIeDg7rY.js → projects-B1CcZpiT.js} +1 -1
- package/dist/client/assets/{projects-empty-state-_30UcQ-M.js → projects-empty-state-Bv5rWYhh.js} +1 -1
- package/dist/client/assets/{prompts-C8DmbO-y.js → prompts-Cf1xjNSu.js} +1 -1
- package/dist/client/assets/record-editor-AV1QHLlq.js +1 -0
- package/dist/client/assets/{redirect-editor-B83cyyW5.js → redirect-editor-DIiWED7H.js} +1 -1
- package/dist/client/assets/{releases-api-A66gUQIn.js → releases-api-DGvWHx7z.js} +1 -1
- package/dist/client/assets/reports-BNzwh8kk.js +1 -0
- package/dist/client/assets/{reports-CeKHgkOO.js → reports-DzSrMl4z.js} +1 -1
- package/dist/client/assets/{reports-onboarding-rU86pVPG.js → reports-onboarding-BME_pd6z.js} +1 -1
- package/dist/client/assets/{reports-tab-bOaRq3nR.js → reports-tab-BXCeTXce.js} +2 -2
- package/dist/client/assets/{repositories-BUtVqCtn.js → repositories-Cfi5wijd.js} +1 -1
- package/dist/client/assets/repositories-yB6zWwua.js +1 -0
- package/dist/client/assets/{repository-binding-8UNd4La0.js → repository-binding-CkScpIsb.js} +1 -1
- package/dist/client/assets/{repository-import-picker-OrJw3cIo.js → repository-import-picker-BS8H9PxV.js} +1 -1
- package/dist/client/assets/{repository-picker-B6a9ep3b.js → repository-picker-l4M27wFx.js} +1 -1
- package/dist/client/assets/{require-capability-Csx90zSZ.js → require-capability-DLhsbUyc.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BZmUgBgt.js → required-auth-layout-CulRsSVA.js} +1 -1
- package/dist/client/assets/{reset-password-C1H9wzkd.js → reset-password-CfDFawIV.js} +1 -1
- package/dist/client/assets/{resizable-CsaiXEtB.js → resizable-BFC1GeuR.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-DxDkByKs.js → resolve-tab-icon-BsW126zu.js} +1 -1
- package/dist/client/assets/{review-settings-CbZWzVpV.js → review-settings-BayMZpjl.js} +1 -1
- package/dist/client/assets/{roles-C9WHdgOh.js → roles-DjGn6KVP.js} +1 -1
- package/dist/client/assets/route-BR5FTjOO.js +1 -0
- package/dist/client/assets/{route-Df2Rj5Mk.js → route-EfequOdl.js} +1 -1
- package/dist/client/assets/{route-RNnMRdq9.js → route-iXyqQPnW.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BmK0O-xa.js → sandbox-lifecycle-context-Dz_wNlv5.js} +1 -1
- package/dist/client/assets/{schema-BrrH5ge3.js → schema-B6wL-gff.js} +1 -1
- package/dist/client/assets/{schema-OwOGrcTc.js → schema-WheR11j2.js} +1 -1
- package/dist/client/assets/{scroll-area-C4hgiBjt.js → scroll-area-rwjRqyfO.js} +1 -1
- package/dist/client/assets/{search-input-BfxNf6mK.js → search-input-CzCH_VIY.js} +1 -1
- package/dist/client/assets/{search-toggle-7CRkYA1R.js → search-toggle-BLa7geCi.js} +1 -1
- package/dist/client/assets/{secret-picker-Bo5RqPwz.js → secret-picker-3QlkMO3w.js} +1 -1
- package/dist/client/assets/{secrets-3UTWqvR9.js → secrets-BhKAJ53J.js} +1 -1
- package/dist/client/assets/{section-array-field-Osne9SXG.js → section-array-field-D9y7NMQM.js} +1 -1
- package/dist/client/assets/{sections-B7_NO_TB.js → sections-DvRVP9Dz.js} +1 -1
- package/dist/client/assets/{sections-editor-DU3Z2daJ.js → sections-editor-Cy509EcE.js} +1 -1
- package/dist/client/assets/{select-CYUfZrWy.js → select-UpCSfNOV.js} +1 -1
- package/dist/client/assets/{select-model-BR-Mi2X4.js → select-model-xVaNPfcs.js} +1 -1
- package/dist/client/assets/{seo-editor-hcPJdZCF.js → seo-editor-BO3Jt0hb.js} +1 -1
- package/dist/client/assets/{separator-D_EWmGgU.js → separator-BPjv6lnz.js} +1 -1
- package/dist/client/assets/settings-tab-BFy7GozF.js +1 -0
- package/dist/client/assets/{sheet-CSTtais0.js → sheet-COugYrjn.js} +1 -1
- package/dist/client/assets/{shell-layout-Dt3eq6Qk.js → shell-layout-e38uIahb.js} +1 -1
- package/dist/client/assets/{site-draft-actions-D58qwd26.js → site-draft-actions-BXCMIWnV.js} +1 -1
- package/dist/client/assets/{site-draft-view-Lvj7mU3Q.js → site-draft-view-BfiVi6ch.js} +2 -2
- package/dist/client/assets/site-editor-BSPzYjtA.js +1 -0
- package/dist/client/assets/{site-editor-toast-BOx376JN.js → site-editor-toast-BafJU0kP.js} +1 -1
- package/dist/client/assets/{skills-BBpw_E_H.js → skills-Dw8G18Wk.js} +1 -1
- package/dist/client/assets/{slider-DykoTN1q.js → slider-CW5CKPMF.js} +1 -1
- package/dist/client/assets/{sortable.esm-BcgCBEfW.js → sortable.esm-BfvWiQ7R.js} +1 -1
- package/dist/client/assets/{sso-_T_doDYh.js → sso-C-6FjTmB.js} +1 -1
- package/dist/client/assets/{suggestion-B4JccI3N.js → suggestion-DmUPHSiw.js} +1 -1
- package/dist/client/assets/{switch-gUlNntL4.js → switch-C5GqEaZ9.js} +1 -1
- package/dist/client/assets/{symbol-CFT02IQk.js → symbol-B_TAz0Ej.js} +1 -1
- package/dist/client/assets/{synced-repos-CLGShc-C.js → synced-repos-BvOzTrqp.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DkR9ySmC.js → tab-icon-glyph-CjnfHMM2.js} +1 -1
- package/dist/client/assets/{table-DEOdYXzp.js → table-B203jObX.js} +1 -1
- package/dist/client/assets/{tabs-CDXYpFRp.js → tabs-DFO0cUd4.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-DsUwmfw7.js → task-assignee-avatar-Dcgi6zr9.js} +1 -1
- package/dist/client/assets/{task-board-boVYnzry.js → task-board-D0I9TrF7.js} +1 -1
- package/dist/client/assets/{task-route-C59ybgrH.js → task-route-F6hd-KVw.js} +1 -1
- package/dist/client/assets/{task-status-BtlC9VFV.js → task-status-OQPi7i4V.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-DcngoptN.js → taskboard-analytics-eo8rY3BR.js} +1 -1
- package/dist/client/assets/{tasks-BNYUWZ7R.js → tasks-Bkp6Ztlp.js} +1 -1
- package/dist/client/assets/tasks-ofNfVL13.js +1 -0
- package/dist/client/assets/{textarea-CKsCKFLy.js → textarea-xiPVXzgn.js} +1 -1
- package/dist/client/assets/{thread-analytics-u7unmd3i.js → thread-analytics-D1pWKSrS.js} +1 -1
- package/dist/client/assets/{thread-intent-DRdPtaf2.js → thread-intent-DJ7MUI-X.js} +1 -1
- package/dist/client/assets/{thread-route-BZRksnHH.js → thread-route-DwUdsrkJ.js} +1 -1
- package/dist/client/assets/{thread-route-Dn9lxS6O.js → thread-route-p_tHH1KN.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-C8RRj0Rt.js → thread-sheet-body-B5yV21k9.js} +1 -1
- package/dist/client/assets/{time-range-picker-Dhg4t_pK.js → time-range-picker-B9K0oYAh.js} +1 -1
- package/dist/client/assets/{toggle-group-DxXcbqbT.js → toggle-group-epTzYWN_.js} +1 -1
- package/dist/client/assets/{tool-namespace-B8XtAn-5.js → tool-namespace-BnR-5HvH.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BnmGAbB7.js → toolbar-icon-button-BtdQ071s.js} +1 -1
- package/dist/client/assets/{tooltip-BFkmafQU.js → tooltip-BFWyx7Tu.js} +1 -1
- package/dist/client/assets/{tooltipContext-CdLg2pG8.js → tooltipContext-HIsDwgpv.js} +1 -1
- package/dist/client/assets/{track-ClUeJJYD.js → track-D-nJPAhp.js} +1 -1
- package/dist/client/assets/{types-DdyZFVjB.js → types-Bg6xzMsU.js} +1 -1
- package/dist/client/assets/{url-slug-C8ETdBcF.js → url-slug-CtldY3Fc.js} +1 -1
- package/dist/client/assets/{usage-stats-0AsfjkwI.js → usage-stats-BmyhY2hQ.js} +1 -1
- package/dist/client/assets/{use-ai-providers-3poZythL.js → use-ai-providers-D9fgOV9l.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-CVBNS4ep.js → use-apply-named-rule-IXYmBDIE.js} +1 -1
- package/dist/client/assets/{use-automations-VlRh2Wqi.js → use-automations-C69NPUwP.js} +1 -1
- package/dist/client/assets/{use-autosave-DO1QHpHp.js → use-autosave-CTJSaQ0_.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-Dw5fxydL.js → use-chat-layout-state-CJZYxlgv.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DYb0Yqfo.js → use-clock-tick-DREB10jn.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-B9zJNLow.js → use-cms-publish-actions-DMKczmsK.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BsdLzWgT.js → use-connect-companion-BjwYn44-.js} +1 -1
- package/dist/client/assets/{use-connection-DF35j1XL.js → use-connection-K2ZmGfOt.js} +1 -1
- package/dist/client/assets/{use-copy-CS6Ta5ka.js → use-copy-BaUwV4kr.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DqDO6PGs.js → use-create-virtual-mcp-BwVPiDjw.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BW0Kg-s0.js → use-date-fns-locale-DENjQBhy.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BdsEnVek.js → use-debounced-autosave-dbZuRAQA.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BwY4UFXK.js → use-debounced-value-FWET2Ehv.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D_52syYI.js → use-deco-credits-1VNQ8RMw.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-pkzCwwKp.js → use-decopilot-events-CUD4NK1e.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CSBLVjvy.js → use-delete-connection-CgFangVs.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-MTxNhHb9.js → use-deployment-admin-zH7DDGue.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-gEHohveI.js → use-fast-preview-draft-url-DoiFL4L5.js} +1 -1
- package/dist/client/assets/{use-file-configs-DQ3f-Q5P.js → use-file-configs-DUC_lmME.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-CACu8jgO.js → use-inbox-feed-CqYC-MvT.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DQ9VVP8_.js → use-infinite-scroll-Ch7Ei01m.js} +1 -1
- package/dist/client/assets/{use-join-requests-v6GW4T6a.js → use-join-requests-DErzm4wT.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-C3tLSafV.js → use-main-panel-tabs-BSyzNm2k.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-OhVQpQzs.js → use-mcp-auth-status-k4owDbnR.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Bl_ZkfjH.js → use-mcp-client-DogzcDtd.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bvk5GzsH.js → use-mcp-prompts-BWPx5MeN.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CCzyb7_q.js → use-mcp-tools-DdYwCCdP.js} +1 -1
- package/dist/client/assets/{use-mobile-DWwy0G1s.js → use-mobile-DcPhAAsp.js} +1 -1
- package/dist/client/assets/{use-move-blocks-ssPS8eLc.js → use-move-blocks-DWaZEG7l.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C1cUtbF5.js → use-navigate-to-agent-IXTtvMGy.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BBnKa__h.js → use-open-billing-url-NkAi-AAT.js} +1 -1
- package/dist/client/assets/{use-org-fs-ByPpnYSO.js → use-org-fs-DjqN5PQk.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dgj11JRA.js → use-org-repo-syncs-Cb1LW2ou.js} +1 -1
- package/dist/client/assets/{use-org-sso-lLtOH9c9.js → use-org-sso-C5KRT8Da.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BxqRa1uL.js → use-organization-roles-D7Za_lux.js} +1 -1
- package/dist/client/assets/{use-organization-settings-nbIrzOgF.js → use-organization-settings-DR7d93_z.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BzdcqjSS.js → use-panel-navigate-BCKq-TfH.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-z6ElNhcQ.js → use-project-native-view-presence-CJUNczNu.js} +1 -1
- package/dist/client/assets/{use-project-scope-CPYcIvTW.js → use-project-scope-B0et_e8n.js} +1 -1
- package/dist/client/assets/{use-recent-apps-B1qEqr2V.js → use-recent-apps-4hKksVnL.js} +1 -1
- package/dist/client/assets/{use-releases-BM0WbDv5.js → use-releases-Brxi4pIf.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DC431ajk.js → use-reports-diagnostic-BrQisY2f.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-Yfi6UXbb.js → use-sandbox-events-BY2iUkYN.js} +1 -1
- package/dist/client/assets/{use-secrets-CFuBmzkS.js → use-secrets-BadtzYAw.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CZXn_b0c.js → use-section-preview-base-dBughhn0.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BQ8nqerw.js → use-session-runtime-B4KIbkK7.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DpVze00L.js → use-sidebar-collapsed-cT1Flise.js} +1 -1
- package/dist/client/assets/{use-tags-DAonMHtN.js → use-tags-TSeOGije.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-ClDqF56t.js → use-task-board-analytics-DDlJfCk9.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BZgY7EAa.js → use-task-board-events-DgTjbss7.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-C6S2DydN.js → use-task-board-item-prs-JnKytEtF.js} +1 -1
- package/dist/client/assets/{use-task-metadata-tY7yqfRb.js → use-task-metadata-CqY7HgDo.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-C7m6ingu.js → use-thread-analytics-BPVVv0U5.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-gO4YyAPs.js → use-thread-outputs-CjJgHscq.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DocXgAgp.js +1 -0
- package/dist/client/assets/{useQueries-BpncSGWZ.js → useQueries-BxI-y7oE.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DfsNYX5W.js +1 -0
- package/dist/client/assets/{users-CpQ2UVWD.js → users-DgL9fzoZ.js} +1 -1
- package/dist/client/assets/{utils-BKDVVXZB.js → utils-CEKLHG87.js} +1 -1
- package/dist/client/assets/{variant-calendar-Je9UX6h9.js → variant-calendar-rECJW6F2.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CMA8M4Ll.js → variant-matcher-override-B10eyFaR.js} +1 -1
- package/dist/client/assets/{view-header-Cq5PRRNl.js → view-header-CnoXEZ6r.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BqhVfWuq.js → virtual-mcp-skvwiaad.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-DfTC9EXk.js → watch-sse-pool-BD6-sAKH.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +84 -84
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-50v2bvbj.js +0 -2
- package/dist/client/assets/agent-app-q2vsC-My.js +0 -1
- package/dist/client/assets/agent-deck-2j6MNhuy.js +0 -1
- package/dist/client/assets/agent-experiments-DilSMM1e.js +0 -1
- package/dist/client/assets/agent-library-C4-tevIK.js +0 -1
- package/dist/client/assets/agent-library-file-CXzcuEPO.js +0 -1
- package/dist/client/assets/agent-monitor-Bic-xfUm.js +0 -1
- package/dist/client/assets/agent-settings-BTPWu4VN.js +0 -1
- package/dist/client/assets/agent-site-editor-code-43f6TRaT.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CDIxjk4q.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DMRQM-LG.js +0 -1
- package/dist/client/assets/agent-view-CN7cv0Ow.js +0 -1
- package/dist/client/assets/api-keys-DLBTiE6h.js +0 -1
- package/dist/client/assets/index-u-z_8GjU.css +0 -1
- package/dist/client/assets/library-BXV44tew.js +0 -1
- package/dist/client/assets/project-reports-Btx8fcRg.js +0 -1
- package/dist/client/assets/project-tasks-bvOCC5Gl.js +0 -1
- package/dist/client/assets/record-editor-DfuGKIDN.js +0 -1
- package/dist/client/assets/reports-DeV24_Fp.js +0 -1
- package/dist/client/assets/repositories-DWr_TbLg.js +0 -1
- package/dist/client/assets/route-DWqde3k7.js +0 -1
- package/dist/client/assets/settings-tab-8Q8MqCBu.js +0 -1
- package/dist/client/assets/site-editor-Bm2O7VhS.js +0 -1
- package/dist/client/assets/tasks-DpeQyqR3.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D5ei_KuQ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BzA-SXDa.js +0 -1
package/dist/client/assets/{use-sandbox-events-Yfi6UXbb.js → use-sandbox-events-BY2iUkYN.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as fe,j as H,r,a4 as de,q as he,K as C,ec as Y}from"./index-
|
|
1
|
+
import{c as fe,j as H,r,a4 as de,q as he,K as C,ec as Y}from"./index-Cxx5SZO5.js";import{i as Ee,u as pe}from"./chat-context-D2EaExW5.js";import{b as ve}from"./sandbox-url-D3mC8qhT.js";import{a as Se}from"./repository-binding-CkScpIsb.js";import{e as ge}from"./backoff-CrEUbyZT.js";function G(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const ye={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},X=r.createContext(ye),J=16384;class me{data="";append(e){this.data+=e,this.data.length>J&&(this.data=this.data.slice(this.data.length-J))}get(){return this.data}clear(){this.data=""}}const be=1e3,De=3e4,Re=3e3,W=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],z="log";function Te(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function ke(t){return t===404}async function xe(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(Re)});return await e.body?.cancel().catch(()=>{}),ke(e.status)}catch{return!1}}const Z=Ee(X);function Be(t){const e=fe.c(10);let i,d,a;e[0]!==t?({resetKey:a,children:i,...d}=t,e[0]=t,e[1]=i,e[2]=d,e[3]=a):(i=e[1],d=e[2],a=e[3]);let c;e[4]!==d||e[5]!==a?(c=H.jsx(Ce,{...d},a),e[4]=d,e[5]=a,e[6]=c):c=e[6];let h;return e[7]!==i||e[8]!==c?(h=H.jsx(Z.Host,{source:c,children:i}),e[7]=i,e[8]=c,e[9]=h):h=e[9],h}function Ce(t){return Z.usePublish(Le(t)),null}function Le({virtualMcpId:t,branch:e,previewUrl:i=null,enabled:d=!0}){const{org:a}=de(),c=he(),h=pe()?.taskId??null,[ee,L]=r.useState(null),[te,_]=r.useState({phase:"idle"}),[ne,w]=r.useState({state:"running"}),[se,P]=r.useState({kind:"unknown"}),[re,K]=r.useState(!1),[ae,N]=r.useState([]),[ce,O]=r.useState([]),[,oe]=r.useState(0),v=r.useRef(new Map),B=r.useRef(new Set),R=r.useRef(new Set),A=r.useRef(null),T=Te(i),U=Se(t)?.metadata?.runtime?.selected==="deno",ue=l=>{let f=v.current.get(l);return f||(f=new me,v.current.set(l,f)),f};return r.useEffect(()=>{if(L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),A.current=null,K(!1),N([]),O([]),v.current.clear(),!t||!e||!d)return;const l=ve({orgSlug:a.slug,virtualMcpId:t,branch:e,threadId:h??null},"events");let f=!1,S=0,k=null,g=null,y=null,p=null,E=null,x=null;const ie=n=>{try{const s=JSON.parse(n.data);L(s),s.kind!=="failed"&&(K(!1),S=0),s.kind==="ready"&&$()}catch(s){console.warn("[vm-events] bad phase payload",s)}},q=()=>{K(!0),L(null),_({phase:"idle"}),w({state:"running"}),P({kind:"unknown"}),N([]),O([]),v.current.clear()},M=n=>{try{const s=JSON.parse(n.data);if(typeof s.data!="string")return;S=0;const u=s.data.replace(/\r?\n/g,`\r
|
|
2
2
|
`);ue(s.source).append(u);for(const o of B.current)try{o(s.source,u)}catch{}oe(o=>o+1)}catch{}},V=n=>{const s=n.type;try{const u=JSON.parse(n.data);switch(S=0,s){case"lifecycle":{const o=u;_(o.state);const m=`${a.slug}/${t}/${e}`;if(G(o.state.phase)&&!(x&&G(x))){Y(c,a.id);const D=C.decofile(m);c.getQueryData(D)===void 0&&c.invalidateQueries({queryKey:D})}o.state.phase==="running"&&x!=="running"&&(Y(c,a.id),c.invalidateQueries({queryKey:C.decofile(m)}),c.invalidateQueries({queryKey:C.liveMeta(a.slug,t,e)})),x=o.state.phase;const b=o.state.phase==="running"?o.state.port:null,Q=A.current;if(A.current=b,Q!==null&&b!==null&&Q!==b)for(const D of R.current)try{D()}catch{}return}case"status":w(u);return;case"tasks":{const m=u.active.map(b=>b.logName??"").filter(Boolean);O(m);return}case"scripts":N(u.scripts);return;case"branch":{const o=u.meta;P(o);return}case"reload":for(const o of R.current)try{o()}catch{}return;case"file-changed":{const{path:o}=u,m=`${a.slug}/${t}/${e}`;if(o.startsWith(".deco/")||o.includes("/.deco/")){if(!(x==="running"))return;y&&clearTimeout(y),y=setTimeout(()=>{if(y=null,c.invalidateQueries({queryKey:C.decofile(m)}),U)for(const D of R.current)try{D()}catch{}},500)}else g&&clearTimeout(g),g=setTimeout(()=>{g=null,c.invalidateQueries({queryKey:C.liveMeta(a.slug,t,e)})},1e3);return}}}catch{}};function F(){if(f)return;const n=new EventSource(l);p=n,n.onopen=()=>{},n.onerror=()=>{p===n&&n.readyState===EventSource.CLOSED&&j("studio")},n.addEventListener("phase",ie),n.addEventListener("gone",q),n.addEventListener(z,M);for(const s of W)n.addEventListener(s,V)}function $(){if(f||!T||E)return;const n=new EventSource(T);E=n;let s=!1;n.onopen=()=>{if(f||E!==n)return;s=!0,S=0;const u=p;p=null,u?.close()},n.onerror=()=>{E===n&&n.readyState===EventSource.CLOSED&&le(n,s)},n.addEventListener(z,M);for(const u of W)n.addEventListener(u,V)}async function le(n,s){const u=T?await xe(T):!1;if(!(f||E!==n)){if(n.close(),E=null,u){q(),p||F();return}s&&j("direct")}}function j(n){if(f||k)return;const s=ge(De,be,S,2,0);S++,k=setTimeout(()=>{if(k=null,!f){if(n==="direct"){E?.close(),E=null,$();return}p?.close(),p=null,F()}},s)}return F(),()=>{f=!0,p?.close(),E?.close(),k&&clearTimeout(k),g&&clearTimeout(g),y&&clearTimeout(y)}},[t,e,a.slug,a.id,d,h,T,c,U]),{phase:ee,lifecycle:te,status:ne,branch:se,notFound:re,scripts:ae,activeProcesses:ce,getBuffer:l=>v.current.get(l)?.get()??"",hasData:l=>(v.current.get(l)?.get().length??0)>0,subscribeChunks:l=>(B.current.add(l),()=>{B.current.delete(l)}),subscribeReload:l=>(R.current.add(l),()=>{R.current.delete(l)})}}function I(){return r.use(X)}function Ae(t){const{subscribeChunks:e}=I(),i=r.useRef(t);i.current=t,r.useEffect(()=>e((c,h)=>{i.current?.(c,h)}),[e])}function Fe(t){const{subscribeReload:e}=I(),i=r.useRef(t);i.current=t,r.useEffect(()=>e(()=>{i.current?.()}),[e])}export{Be as S,Ae as a,Fe as b,G as i,I as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a4 as c,aq as r,K as l,U as d,q as f,e as S}from"./index-
|
|
1
|
+
import{c as u,a4 as c,aq as r,K as l,U as d,q as f,e as S}from"./index-Cxx5SZO5.js";function C(){const e=u.c(7),{org:i}=c(),n=r();let a;e[0]!==i.id?(a=l.secrets(i.id),e[0]=i.id,e[1]=a):a=e[1];let t;e[2]!==n?(t=async()=>await n.call("SECRET_LIST",{}),e[2]=n,e[3]=t):t=e[3];let s;e[4]!==a||e[5]!==t?(s={queryKey:a,staleTime:6e4,queryFn:t},e[4]=a,e[5]=t,e[6]=s):s=e[6];const{data:o}=d(s);return o.secrets}function m(){const e=u.c(8),{org:i}=c(),n=r(),a=f();let t;e[0]!==n?(t=async y=>await n.call("SECRET_CREATE",{...y}),e[0]=n,e[1]=t):t=e[1];let s;e[2]!==i||e[3]!==a?(s=()=>{a.invalidateQueries({queryKey:l.secrets(i.id)})},e[2]=i,e[3]=a,e[4]=s):s=e[4];let o;return e[5]!==t||e[6]!==s?(o={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=o):o=e[7],S(o)}export{m as a,C as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hM as ee,bh as te,c as L,b as re,r as b,j as i,l as se,bg as oe,D as ie,v as le,x as ne,I as ce,w as ae}from"./index-
|
|
1
|
+
import{hM as ee,bh as te,c as L,b as re,r as b,j as i,l as se,bg as oe,D as ie,v as le,x as ne,I as ce,w as ae}from"./index-Cxx5SZO5.js";import{a as G,e as V}from"./UserSquare-CmbcjiWL.js";import{b as fe}from"./agent-icon-DMLbHyqZ.js";import{i as ue}from"./SearchMd-BzDAUJSU.js";import{I as Y,J as de,K as _}from"./held-block-view-rTOQRrzA.js";import{X as me,i as ve,ay as pe}from"./parse-sections-DqiKgsi7.js";import{d as K,r as he}from"./section-preview-url-7zfngvgW.js";import{u as xe}from"./use-session-runtime-B4KIbkK7.js";import{c as ge,u as we,m as Se}from"./site-editor-toast-BafJU0kP.js";function be(r){return r.schema?.definitions??r.schema?.$defs??{}}function Z(r,e){const t=be(e),s=t[btoa(r)];if(!s)return[];const o=[s];if(Array.isArray(s.allOf)){const n=s.allOf.find(l=>typeof l.$ref=="string")?.$ref;if(typeof n=="string"){const l=t[n.replace("#/definitions/","")];l&&o.push(l)}}return o}function je(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s?.includes("{{{"))return s}}function We(r,e){if(!e)return;const t=ee(r,te(e));if(!t)return;const s=je(t.resolveType,e);if(!s)return;const o=de(s,t.data);if(o)return Y(o)}function ye(r,e){for(const t of Z(r,e)){const s=typeof t.image=="string"?t.image:void 0;if(s&&!s.includes("{{"))return Y(s)}}const Ne=12,z=new Set,F=new Set;function Re(){for(const r of F)r()}function Pe(r){return z.has(r)?!0:z.size>=Ne?!1:(z.add(r),!0)}function Q(r){z.delete(r)&&Re()}function Ie(r){return F.add(r),()=>{F.delete(r)}}function Te(r,e){const t=b.useRef(!1),[s,o]=b.useState(!1),n=b.useRef(null),l=b.useRef(null),f=b.useRef(null),c=b.useRef(r);c.current=r;const[p]=b.useState(()=>{const u=()=>{f.current?.(),f.current=null},d=()=>t.current?!0:Pe(e)?(t.current=!0,o(!0),u(),!0):!1;return a=>{if(l.current=a,n.current&&(n.current.disconnect(),n.current=null),u(),!a){t.current&&(Q(e),t.current=!1,o(!1));return}queueMicrotask(()=>{if(l.current!==a)return;const w=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!d()&&!f.current&&(f.current=Ie(()=>{l.current===a&&d()}));return}u(),t.current&&(Q(e),t.current=!1,o(!1))},{root:c.current.current,rootMargin:"160px 0px"});w.observe(a),n.current=w})}});return{ref:p,iframeActive:s}}function Ce(r){const e=L.c(9),{previewUrl:t,title:s,scrollRootRef:o,slotId:n}=r,{ref:l,iframeActive:f}=Te(o,n),[c,p]=b.useState(!1),u=_()?V:G;let d;e[0]!==u||e[1]!==f||e[2]!==c||e[3]!==t||e[4]!==s?(d=f?i.jsxs(i.Fragment,{children:[!c&&i.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:i.jsx(u,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),i.jsx("iframe",{src:t,title:`Preview ${s}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>p(!0)})]}):i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(u,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=u,e[1]=f,e[2]=c,e[3]=t,e[4]=s,e[5]=d):d=e[5];let a;return e[6]!==l||e[7]!==d?(a=i.jsx("div",{ref:l,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:d}),e[6]=l,e[7]=d,e[8]=a):a=e[8],a}function Ue(r){const e=L.c(3),{image:t}=r,s=_()?V:G;let o;return e[0]!==s||e[1]!==t?(o=i.jsx("div",{className:"relative flex aspect-[16/10] w-full items-center justify-center overflow-hidden bg-muted/40",children:t?i.jsx("img",{src:t,alt:"",referrerPolicy:"no-referrer",className:"h-full w-full object-cover"}):i.jsx(s,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=s,e[1]=t,e[2]=o):o=e[2],o}function Be(r){const e=L.c(28),{entry:t,previewUrl:s,image:o,scrollRootRef:n,onSelect:l}=r,c=_()?t.isSavedBlock?fe:V:G,p=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let u;e[0]!==p?(u=se("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors shadow-edge","hover:border-primary/40 hover:bg-accent",p),e[0]=p,e[1]=u):u=e[1];let d;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==o||e[5]!==s||e[6]!==n?(d=s?i.jsx(Ce,{previewUrl:s,title:t.title,scrollRootRef:n,slotId:t.resolveType}):i.jsx(Ue,{image:o}),e[2]=t.resolveType,e[3]=t.title,e[4]=o,e[5]=s,e[6]=n,e[7]=d):d=e[7];let a;e[8]!==t.isSavedBlock?(a=t.isSavedBlock?{color:oe}:void 0,e[8]=t.isSavedBlock,e[9]=a):a=e[9];let w;e[10]!==c||e[11]!==a?(w=i.jsx(c,{className:"h-4 w-4 shrink-0",style:a}),e[10]=c,e[11]=a,e[12]=w):w=e[12];let m;e[13]!==t.title?(m=i.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[13]=t.title,e[14]=m):m=e[14];let h;e[15]!==t.description?(h=t.description&&i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[15]=t.description,e[16]=h):h=e[16];let x;e[17]!==m||e[18]!==h?(x=i.jsxs("div",{className:"min-w-0 flex-1",children:[m,h]}),e[17]=m,e[18]=h,e[19]=x):x=e[19];let g;e[20]!==w||e[21]!==x?(g=i.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[w,x]}),e[20]=w,e[21]=x,e[22]=g):g=e[22];let S;return e[23]!==l||e[24]!==u||e[25]!==d||e[26]!==g?(S=i.jsxs("button",{type:"button",onClick:l,className:u,children:[d,g]}),e[23]=l,e[24]=u,e[25]=d,e[26]=g,e[27]=S):S=e[27],S}function qe(r){const e=L.c(51),{open:t,onOpenChange:s,meta:o,decofile:n,previewBaseUrl:l,onSelect:f}=r,c=re(),[p,u]=b.useState(""),[d,a]=b.useState(t),w=b.useRef(null);t!==d&&(a(t),t&&u(""));let m,h,x,g,S,y,N,R,j,P,I;if(e[0]!==n||e[1]!==o||e[2]!==s||e[3]!==f||e[4]!==t||e[5]!==l||e[6]!==p||e[7]!==c){const W=t&&o&&n?me(o,n):[],q=o?ve(o):"",H=n?pe(n):void 0,X=new Map;if(t&&q&&l)for(const v of W)X.set(v.resolveType,K(l,q,v.previewBlock,H));const E=p.trim().toLowerCase(),J=E?W.filter(v=>v.title.toLowerCase().includes(E)||v.resolveType.toLowerCase().includes(E)||v.description?.toLowerCase().includes(E)):W;h=ie,P=t,I=s,m=le,N="top-3 right-3",R="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let B;e[19]!==c?(B=c("sectionsEditor.addSectionModal.title"),e[19]=c,e[20]=B):B=e[20];let M;e[21]!==B?(M=i.jsx(ne,{children:B}),e[21]=B,e[22]=M):M=e[22];let $;e[23]===Symbol.for("react.memo_cache_sentinel")?($=i.jsx(ue,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=$):$=e[23];let D;e[24]===Symbol.for("react.memo_cache_sentinel")?(D=v=>u(v.target.value),e[24]=D):D=e[24];let k;e[25]!==c?(k=c("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=c,e[26]=k):k=e[26];let A;e[27]!==p||e[28]!==k?(A=i.jsxs("div",{className:"relative pt-2",children:[$,i.jsx(ce,{value:p,onChange:D,placeholder:k,className:"h-9 pl-8"})]}),e[27]=p,e[28]=k,e[29]=A):A=e[29],e[30]!==M||e[31]!==A?(j=i.jsxs(ae,{className:"shrink-0 border-b px-4 py-3 text-left",children:[M,A]}),e[30]=M,e[31]=A,e[32]=j):j=e[32],S=w,y="min-h-0 flex-1 overflow-y-auto",x="p-4",g=J.length===0?i.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:c("sectionsEditor.addSectionModal.noSectionsFound")}):i.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:J.map(v=>i.jsx(Be,{entry:v,scrollRootRef:w,previewUrl:l?X.get(v.resolveType)??K(l,q,v.previewBlock,H):null,image:l||!o?void 0:ye(v.resolveType,o),onSelect:()=>f(v)},v.resolveType))}),e[0]=n,e[1]=o,e[2]=s,e[3]=f,e[4]=t,e[5]=l,e[6]=p,e[7]=c,e[8]=m,e[9]=h,e[10]=x,e[11]=g,e[12]=S,e[13]=y,e[14]=N,e[15]=R,e[16]=j,e[17]=P,e[18]=I}else m=e[8],h=e[9],x=e[10],g=e[11],S=e[12],y=e[13],N=e[14],R=e[15],j=e[16],P=e[17],I=e[18];let T;e[33]!==x||e[34]!==g?(T=i.jsx("div",{className:x,children:g}),e[33]=x,e[34]=g,e[35]=T):T=e[35];let C;e[36]!==T||e[37]!==S||e[38]!==y?(C=i.jsx("div",{ref:S,className:y,children:T}),e[36]=T,e[37]=S,e[38]=y,e[39]=C):C=e[39];let U;e[40]!==m||e[41]!==C||e[42]!==N||e[43]!==R||e[44]!==j?(U=i.jsxs(m,{closeButtonClassName:N,className:R,children:[j,C]}),e[40]=m,e[41]=C,e[42]=N,e[43]=R,e[44]=j,e[45]=U):U=e[45];let O;return e[46]!==h||e[47]!==U||e[48]!==P||e[49]!==I?(O=i.jsx(h,{open:P,onOpenChange:I,children:U}),e[46]=h,e[47]=U,e[48]=P,e[49]=I,e[50]=O):O=e[50],O}function Fe(r){const e=L.c(4),{previewServerUrl:t,runtime:s}=xe(r.virtualMcpId),{url:o}=ge(r.virtualMcpId),n=we(r.virtualMcpId,r.branch),l=s==="cms";if(Se(n))return null;if(o)return o;let f;return e[0]!==l||e[1]!==r.sandboxUrl||e[2]!==t?(f=he({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=r.sandboxUrl,e[2]=t,e[3]=f):f=e[3],f}export{qe as A,We as g,Z as s,Fe as u};
|
package/dist/client/assets/{use-session-runtime-BQ8nqerw.js → use-session-runtime-B4KIbkK7.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./index-
|
|
1
|
+
import{c as h}from"./index-Cxx5SZO5.js";import{j as R,d as T,r as j,p as k}from"./thread-intent-DJ7MUI-X.js";import{u as S}from"./chat-context-D2EaExW5.js";import{a as w}from"./repository-binding-CkScpIsb.js";function D(d){const t=h.c(14),u=w(d),p=S(),e=u?.metadata,o=p?.activeTask,m=o?.metadata?.runtime;let i;t[0]!==m?(i=k(m),t[0]=m,t[1]=i):i=t[1];const f=i,v=!!o&&!o.partial,l=o?.metadata;let a;t[2]!==e||t[3]!==l?(a=R(l,e),t[2]=e,t[3]=l,t[4]=a):a=t[4];const c=!!f||v&&!!u;let r;t[5]!==e?(r=T(e),t[5]=e,t[6]=r):r=t[6];let s;t[7]!==e?(s=j(e),t[7]=e,t[8]=s):s=t[8];let n;return t[9]!==a||t[10]!==c||t[11]!==r||t[12]!==s?(n={runtime:a,resolved:c,projectDefault:r,previewServerUrl:s},t[9]=a,t[10]=c,t[11]=r,t[12]=s,t[13]=n):n=t[13],n}export{D as u};
|
package/dist/client/assets/{use-sidebar-collapsed-DpVze00L.js → use-sidebar-collapsed-cT1Flise.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,c as j,j as o,l as C,cr as A,cs as R,a6 as H,bQ as L,b as V,d as W,a4 as F}from"./index-CgM7-Ro8.js";import{m as q}from"./use-chat-layout-state-Dw5fxydL.js";import{O as Q}from"./agent-icon-B6DURSl_.js";import{b as G,a as E,T as P,c as z}from"./tooltip-BFkmafQU.js";import{T as J}from"./toolbar-icon-button-BnmGAbB7.js";import{a as K}from"./shell-layout-Dt3eq6Qk.js";import{u as U}from"./use-mobile-DWwy0G1s.js";import{b as X,c as Y,S as Z,d as ee,a as te}from"./sheet-CSTtais0.js";const se="15rem",ae="18rem",ie="4.5rem",D=y.createContext(null);function I(){const s=y.useContext(D);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}function ge(s){const e=j.c(19),{children:t,defaultOpen:a,open:i,onOpenChange:n}=s,d=a===void 0?!1:a,r=U(),[l,c]=y.useState(d),[b,v]=y.useState(!1),u=i!==void 0,f=u?i:l;let h;e[0]!==u||e[1]!==n?(h=M=>{u||c(M),n?.(M)},e[0]=u,e[1]=n,e[2]=h):h=e[2];const p=h;let w;e[3]!==r||e[4]!==f||e[5]!==p?(w=()=>{r?v(ne):p(!f)},e[3]=r,e[4]=f,e[5]=p,e[6]=w):w=e[6];const N=w,x=f?"expanded":"collapsed";let m;e[7]!==r||e[8]!==f||e[9]!==b||e[10]!==p||e[11]!==x||e[12]!==N?(m={state:x,open:f,setOpen:p,isMobile:r,openMobile:b,setOpenMobile:v,toggleSidebar:N},e[7]=r,e[8]=f,e[9]=b,e[10]=p,e[11]=x,e[12]=N,e[13]=m):m=e[13];const S=m;let g;e[14]!==t?(g=o.jsx(G,{delayDuration:0,children:t}),e[14]=t,e[15]=g):g=e[15];let T;return e[16]!==S||e[17]!==g?(T=o.jsx(D.Provider,{value:S,children:g}),e[16]=S,e[17]=g,e[18]=T):T=e[18],T}function ne(s){return!s}function ve(s){const e=j.c(14);let t,a,i,n;e[0]!==s?({className:a,style:n,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n):(t=e[1],a=e[2],i=e[3],n=e[4]);let d;e[5]!==n?(d={"--sidebar-width":se,"--sidebar-width-icon":ie,...n},e[5]=n,e[6]=d):d=e[6];const r=d;let l;e[7]!==a?(l=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=l):l=e[8];let c;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(c=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:l,...i,children:t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=c):c=e[13],c}function Se(s){const e=j.c(36);let t,a,i,n,d;e[0]!==s?({side:n,variant:d,className:a,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=n===void 0?"left":n,l=d===void 0?"sidebar":d,{isMobile:c,state:b,openMobile:v,setOpenMobile:u}=I();if(c){let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ae},e[6]=T):T=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(Y,{className:"sr-only",children:[o.jsx(Z,{children:"Sidebar"}),o.jsx(ee,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=o.jsxs(te,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:T,side:r,children:[M,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let B;return e[13]!==v||e[14]!==i||e[15]!==u||e[16]!==_?(B=o.jsx(X,{open:v,onOpenChange:u,...i,children:_}),e[13]=v,e[14]=i,e[15]=u,e[16]=_,e[17]=B):B=e[17],B}const f=b==="expanded",h=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let p;e[18]!==h?(p=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",h),e[18]=h,e[19]=p):p=e[19];const w=f?void 0:"icon",N=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==N?(x=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",N,a),e[20]=a,e[21]=N,e[22]=x):x=e[22];let m;e[23]!==t?(m=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=m):m=e[24];let S;e[25]!==i||e[26]!==x||e[27]!==m?(S=o.jsx("div",{"data-slot":"sidebar-container",className:x,...i,children:m}),e[25]=i,e[26]=x,e[27]=m,e[28]=S):S=e[28];let g;return e[29]!==r||e[30]!==b||e[31]!==p||e[32]!==w||e[33]!==S||e[34]!==l?(g=o.jsx("div",{className:p,"data-state":b,"data-collapsible":w,"data-variant":l,"data-side":r,"data-slot":"sidebar",children:S}),e[29]=r,e[30]=b,e[31]=p,e[32]=w,e[33]=S,e[34]=l,e[35]=g):g=e[35],g}function je(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function we(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ne(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Te(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ce(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const le=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ye(s){const e=j.c(28);let t,a,i,n,d,r,l;e[0]!==s?({asChild:i,isActive:n,variant:d,size:r,tooltip:l,className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=l):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],l=e[7]);const c=i===void 0?!1:i,b=n===void 0?!1:n,v=d===void 0?"default":d,u=r===void 0?"default":r,f=c?A:"button",{isMobile:h}=I();let p;e[8]!==t||e[9]!==u||e[10]!==v?(p=C(le({variant:v,size:u}),t),e[8]=t,e[9]=u,e[10]=v,e[11]=p):p=e[11];let w;e[12]!==f||e[13]!==b||e[14]!==a||e[15]!==u||e[16]!==p?(w=o.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":b,className:p,...a}),e[12]=f,e[13]=b,e[14]=a,e[15]=u,e[16]=p,e[17]=w):w=e[17];const N=w;if(!l)return N;if(typeof l=="string"){let g;e[18]!==l?(g={children:l},e[18]=l,e[19]=g):g=e[19],l=g}let x;e[20]!==N?(x=o.jsx(P,{asChild:!0,children:N}),e[20]=N,e[21]=x):x=e[21];let m;e[22]!==h||e[23]!==l?(m=o.jsx(E,{side:"right",align:"center",hidden:h,...l}),e[22]=h,e[23]=l,e[24]=m):m=e[24];let S;return e[25]!==x||e[26]!==m?(S=o.jsxs(z,{children:[x,m]}),e[25]=x,e[26]=m,e[27]=S):S=e[27],S}function re(){const s=j.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},s[0]=e):e=s[0],!!H(e)}const O=y.createContext(null);function Me(s){const e=j.c(5),{children:t}=s,[a,i]=y.useState(null);let n;e[0]!==a?(n={target:a,setTarget:i},e[0]=a,e[1]=n):n=e[1];let d;return e[2]!==t||e[3]!==n?(d=o.jsx(O,{value:n,children:t}),e[2]=t,e[3]=n,e[4]=d):d=e[4],d}function oe(){const s=y.use(O);if(!s)throw new Error("Sidebar thread controls require a Layout");return s}function k(s){const e=j.c(17),{open:t,onToggle:a}=s,i=V(),{isMobile:n,setOpenMobile:d}=I(),r=t?"page.closeThread":"page.openThread";let l;e[0]!==i||e[1]!==r?(l=i(r),e[0]=i,e[1]=r,e[2]=l):l=e[2];const c=l;let b;e[3]!==n||e[4]!==a||e[5]!==d?(b=()=>{a(),n&&d(!1)},e[3]=n,e[4]=a,e[5]=d,e[6]=b):b=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(Q,{size:16}),e[7]=v):v=e[7];let u;e[8]!==c||e[9]!==t||e[10]!==b?(u=o.jsx(P,{asChild:!0,children:o.jsx(J,{"aria-label":c,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:b,children:v})}),e[8]=c,e[9]=t,e[10]=b,e[11]=u):u=e[11];let f;e[12]!==c?(f=o.jsx(E,{side:"right",children:c}),e[12]=c,e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==f?(h=o.jsxs(z,{children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16],h}function $e(s){const e=j.c(3),t=y.use(O);let a;return e[0]!==s||e[1]!==t?(a=t?.target?L.createPortal(o.jsx(k,{...s}),t.target):null,e[0]=s,e[1]=t,e[2]=a):a=e[2],a}function _e(){const s=j.c(11),{setTarget:e}=oe(),t=re(),{isMobile:a}=I(),i=W(),{org:n}=F(),{openSidePanel:d}=K();let r;s[0]!==e?(r=o.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),s[0]=e,s[1]=r):r=s[1];let l;s[2]!==t||s[3]!==a||s[4]!==i||s[5]!==d||s[6]!==n?(l=o.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:o.jsx(k,{open:!1,onToggle:()=>{t?i({to:"/$org/home",params:{org:n.slug},search:{sidepanel:!0,mainpanel:!a}}):a?i({to:".",search:de,replace:!0}):d()}})}),s[2]=t,s[3]=a,s[4]=i,s[5]=d,s[6]=n,s[7]=l):l=s[7];let c;return s[8]!==r||s[9]!==l?(c=o.jsxs(o.Fragment,{children:[r,l]}),s[8]=r,s[9]=l,s[10]=c):c=s[10],c}function de(s){return{...s,...q("chat")}}function Ie(){const{state:s,isMobile:e}=I();return s==="collapsed"&&!e}export{ye as S,Te as a,Ce as b,I as c,we as d,_e as e,Ne as f,Se as g,re as h,ge as i,ve as j,Me as k,je as l,$e as m,Ie as u};
|
|
1
|
+
import{r as y,c as j,j as o,l as C,cr as A,cs as R,a6 as H,bQ as L,b as V,d as W,a4 as F}from"./index-Cxx5SZO5.js";import{m as q}from"./use-chat-layout-state-CJZYxlgv.js";import{O as Q}from"./agent-icon-DMLbHyqZ.js";import{b as G,a as E,T as P,c as z}from"./tooltip-BFWyx7Tu.js";import{T as J}from"./toolbar-icon-button-BtdQ071s.js";import{a as K}from"./shell-layout-e38uIahb.js";import{u as U}from"./use-mobile-DcPhAAsp.js";import{b as X,c as Y,S as Z,d as ee,a as te}from"./sheet-COugYrjn.js";const se="15rem",ae="18rem",ie="4.5rem",D=y.createContext(null);function I(){const s=y.useContext(D);if(!s)throw new Error("useSidebar must be used within a SidebarProvider.");return s}function ge(s){const e=j.c(19),{children:t,defaultOpen:a,open:i,onOpenChange:n}=s,d=a===void 0?!1:a,r=U(),[l,c]=y.useState(d),[b,v]=y.useState(!1),u=i!==void 0,f=u?i:l;let h;e[0]!==u||e[1]!==n?(h=M=>{u||c(M),n?.(M)},e[0]=u,e[1]=n,e[2]=h):h=e[2];const p=h;let w;e[3]!==r||e[4]!==f||e[5]!==p?(w=()=>{r?v(ne):p(!f)},e[3]=r,e[4]=f,e[5]=p,e[6]=w):w=e[6];const N=w,x=f?"expanded":"collapsed";let m;e[7]!==r||e[8]!==f||e[9]!==b||e[10]!==p||e[11]!==x||e[12]!==N?(m={state:x,open:f,setOpen:p,isMobile:r,openMobile:b,setOpenMobile:v,toggleSidebar:N},e[7]=r,e[8]=f,e[9]=b,e[10]=p,e[11]=x,e[12]=N,e[13]=m):m=e[13];const S=m;let g;e[14]!==t?(g=o.jsx(G,{delayDuration:0,children:t}),e[14]=t,e[15]=g):g=e[15];let T;return e[16]!==S||e[17]!==g?(T=o.jsx(D.Provider,{value:S,children:g}),e[16]=S,e[17]=g,e[18]=T):T=e[18],T}function ne(s){return!s}function ve(s){const e=j.c(14);let t,a,i,n;e[0]!==s?({className:a,style:n,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n):(t=e[1],a=e[2],i=e[3],n=e[4]);let d;e[5]!==n?(d={"--sidebar-width":se,"--sidebar-width-icon":ie,...n},e[5]=n,e[6]=d):d=e[6];const r=d;let l;e[7]!==a?(l=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=l):l=e[8];let c;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==l?(c=o.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:l,...i,children:t}),e[9]=t,e[10]=i,e[11]=r,e[12]=l,e[13]=c):c=e[13],c}function Se(s){const e=j.c(36);let t,a,i,n,d;e[0]!==s?({side:n,variant:d,className:a,children:t,...i}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5]);const r=n===void 0?"left":n,l=d===void 0?"sidebar":d,{isMobile:c,state:b,openMobile:v,setOpenMobile:u}=I();if(c){let T;e[6]===Symbol.for("react.memo_cache_sentinel")?(T={"--sidebar-width":ae},e[6]=T):T=e[6];let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs(Y,{className:"sr-only",children:[o.jsx(Z,{children:"Sidebar"}),o.jsx(ee,{children:"Displays the mobile sidebar."})]}),e[7]=M):M=e[7];let $;e[8]!==t?($=o.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let _;e[10]!==r||e[11]!==$?(_=o.jsxs(te,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:T,side:r,children:[M,$]}),e[10]=r,e[11]=$,e[12]=_):_=e[12];let B;return e[13]!==v||e[14]!==i||e[15]!==u||e[16]!==_?(B=o.jsx(X,{open:v,onOpenChange:u,...i,children:_}),e[13]=v,e[14]=i,e[15]=u,e[16]=_,e[17]=B):B=e[17],B}const f=b==="expanded",h=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let p;e[18]!==h?(p=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",h),e[18]=h,e[19]=p):p=e[19];const w=f?void 0:"icon",N=f?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==N?(x=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",N,a),e[20]=a,e[21]=N,e[22]=x):x=e[22];let m;e[23]!==t?(m=o.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=m):m=e[24];let S;e[25]!==i||e[26]!==x||e[27]!==m?(S=o.jsx("div",{"data-slot":"sidebar-container",className:x,...i,children:m}),e[25]=i,e[26]=x,e[27]=m,e[28]=S):S=e[28];let g;return e[29]!==r||e[30]!==b||e[31]!==p||e[32]!==w||e[33]!==S||e[34]!==l?(g=o.jsx("div",{className:p,"data-state":b,"data-collapsible":w,"data-variant":l,"data-side":r,"data-slot":"sidebar",children:S}),e[29]=r,e[30]=b,e[31]=p,e[32]=w,e[33]=S,e[34]=l,e[35]=g):g=e[35],g}function je(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("main",{"data-slot":"sidebar-inset",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function we(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ne(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Te(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}function Ce(s){const e=j.c(8);let t,a;e[0]!==s?({className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let i;e[3]!==t?(i=C("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=i):i=e[4];let n;return e[5]!==a||e[6]!==i?(n=o.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i,...a}),e[5]=a,e[6]=i,e[7]=n):n=e[7],n}const le=R("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm focus-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ye(s){const e=j.c(28);let t,a,i,n,d,r,l;e[0]!==s?({asChild:i,isActive:n,variant:d,size:r,tooltip:l,className:t,...a}=s,e[0]=s,e[1]=t,e[2]=a,e[3]=i,e[4]=n,e[5]=d,e[6]=r,e[7]=l):(t=e[1],a=e[2],i=e[3],n=e[4],d=e[5],r=e[6],l=e[7]);const c=i===void 0?!1:i,b=n===void 0?!1:n,v=d===void 0?"default":d,u=r===void 0?"default":r,f=c?A:"button",{isMobile:h}=I();let p;e[8]!==t||e[9]!==u||e[10]!==v?(p=C(le({variant:v,size:u}),t),e[8]=t,e[9]=u,e[10]=v,e[11]=p):p=e[11];let w;e[12]!==f||e[13]!==b||e[14]!==a||e[15]!==u||e[16]!==p?(w=o.jsx(f,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":b,className:p,...a}),e[12]=f,e[13]=b,e[14]=a,e[15]=u,e[16]=p,e[17]=w):w=e[17];const N=w;if(!l)return N;if(typeof l=="string"){let g;e[18]!==l?(g={children:l},e[18]=l,e[19]=g):g=e[19],l=g}let x;e[20]!==N?(x=o.jsx(P,{asChild:!0,children:N}),e[20]=N,e[21]=x):x=e[21];let m;e[22]!==h||e[23]!==l?(m=o.jsx(E,{side:"right",align:"center",hidden:h,...l}),e[22]=h,e[23]=l,e[24]=m):m=e[24];let S;return e[25]!==x||e[26]!==m?(S=o.jsxs(z,{children:[x,m]}),e[25]=x,e[26]=m,e[27]=S):S=e[27],S}function re(){const s=j.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},s[0]=e):e=s[0],!!H(e)}const O=y.createContext(null);function Me(s){const e=j.c(5),{children:t}=s,[a,i]=y.useState(null);let n;e[0]!==a?(n={target:a,setTarget:i},e[0]=a,e[1]=n):n=e[1];let d;return e[2]!==t||e[3]!==n?(d=o.jsx(O,{value:n,children:t}),e[2]=t,e[3]=n,e[4]=d):d=e[4],d}function oe(){const s=y.use(O);if(!s)throw new Error("Sidebar thread controls require a Layout");return s}function k(s){const e=j.c(17),{open:t,onToggle:a}=s,i=V(),{isMobile:n,setOpenMobile:d}=I(),r=t?"page.closeThread":"page.openThread";let l;e[0]!==i||e[1]!==r?(l=i(r),e[0]=i,e[1]=r,e[2]=l):l=e[2];const c=l;let b;e[3]!==n||e[4]!==a||e[5]!==d?(b=()=>{a(),n&&d(!1)},e[3]=n,e[4]=a,e[5]=d,e[6]=b):b=e[6];let v;e[7]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(Q,{size:16}),e[7]=v):v=e[7];let u;e[8]!==c||e[9]!==t||e[10]!==b?(u=o.jsx(P,{asChild:!0,children:o.jsx(J,{"aria-label":c,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:b,children:v})}),e[8]=c,e[9]=t,e[10]=b,e[11]=u):u=e[11];let f;e[12]!==c?(f=o.jsx(E,{side:"right",children:c}),e[12]=c,e[13]=f):f=e[13];let h;return e[14]!==u||e[15]!==f?(h=o.jsxs(z,{children:[u,f]}),e[14]=u,e[15]=f,e[16]=h):h=e[16],h}function $e(s){const e=j.c(3),t=y.use(O);let a;return e[0]!==s||e[1]!==t?(a=t?.target?L.createPortal(o.jsx(k,{...s}),t.target):null,e[0]=s,e[1]=t,e[2]=a):a=e[2],a}function _e(){const s=j.c(11),{setTarget:e}=oe(),t=re(),{isMobile:a}=I(),i=W(),{org:n}=F(),{openSidePanel:d}=K();let r;s[0]!==e?(r=o.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),s[0]=e,s[1]=r):r=s[1];let l;s[2]!==t||s[3]!==a||s[4]!==i||s[5]!==d||s[6]!==n?(l=o.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:o.jsx(k,{open:!1,onToggle:()=>{t?i({to:"/$org/home",params:{org:n.slug},search:{sidepanel:!0,mainpanel:!a}}):a?i({to:".",search:de,replace:!0}):d()}})}),s[2]=t,s[3]=a,s[4]=i,s[5]=d,s[6]=n,s[7]=l):l=s[7];let c;return s[8]!==r||s[9]!==l?(c=o.jsxs(o.Fragment,{children:[r,l]}),s[8]=r,s[9]=l,s[10]=c):c=s[10],c}function de(s){return{...s,...q("chat")}}function Ie(){const{state:s,isMobile:e}=I();return s==="collapsed"&&!e}export{ye as S,Te as a,Ce as b,I as c,we as d,_e as e,Ne as f,Se as g,re as h,ge as i,ve as j,Me as k,je as l,$e as m,Ie as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a4 as f,aq as y,m,q as g,e as T,K as l,t as E}from"./index-
|
|
1
|
+
import{c as u,a4 as f,aq as y,m,q as g,e as T,K as l,t as E}from"./index-Cxx5SZO5.js";function K(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function p(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{p as a,C as b,M as c,A as d,K as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as O,f,m as S,K as _,as as R,a4 as i,aq as l}from"./index-
|
|
1
|
+
import{c as O,f,m as S,K as _,as as R,a4 as i,aq as l}from"./index-Cxx5SZO5.js";const K=["TASK_BOARD_OPERATION","TASK_BOARD_REWORK","TASK_BOARD_DELIVERY","TASK_BOARD_SPRINTS","TASK_BOARD_STUCK","TASK_BOARD_COST","TASK_BOARD_ERRORS","TASK_BOARD_TENANTS"];function B(){const t=O.c(8),o=f({strict:!1}).org??"";let e;t[0]!==o?(e=_.taskBoardAdminOrgs(o),t[0]=o,t[1]=e):e=t[1];const s=!!o;let n;t[2]!==o?(n=()=>R(o,"TASK_BOARD_ADMIN_ORG_LIST",{}),t[2]=o,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],S(c)}function y(t,o){const e=O.c(14),{locator:s}=i(),n=l();let c;e[0]!==s||e[1]!==o.from||e[2]!==o.org||e[3]!==o.project||e[4]!==o.to||e[5]!==t?(c=_.taskBoardAnalytics(s,t,o.org??"",o.project??"",o.from,o.to),e[0]=s,e[1]=o.from,e[2]=o.org,e[3]=o.project,e[4]=o.to,e[5]=t,e[6]=c):c=e[6];let T;e[7]!==o||e[8]!==n||e[9]!==t?(T=()=>n.call(t,o),e[7]=o,e[8]=n,e[9]=t,e[10]=T):T=e[10];let A;return e[11]!==c||e[12]!==T?(A={queryKey:c,queryFn:T},e[11]=c,e[12]=T,e[13]=A):A=e[13],S(A)}function D(t,o){const e=O.c(15),{locator:s}=i(),n=l();let c;e[0]!==o||e[1]!==s||e[2]!==t.from||e[3]!==t.org||e[4]!==t.project||e[5]!==t.to?(c=_.taskBoardOperationTasks(s,t.org??"",t.project??"",t.from,t.to,o??""),e[0]=o,e[1]=s,e[2]=t.from,e[3]=t.org,e[4]=t.project,e[5]=t.to,e[6]=c):c=e[6];const T=o!==null;let A;e[7]!==o||e[8]!==t||e[9]!==n?(A=()=>n.call("TASK_BOARD_OPERATION_TASKS",{...t,drill:o??""}),e[7]=o,e[8]=t,e[9]=n,e[10]=A):A=e[10];let u;return e[11]!==c||e[12]!==T||e[13]!==A?(u={queryKey:c,enabled:T,queryFn:A},e[11]=c,e[12]=T,e[13]=A,e[14]=u):u=e[14],S(u)}export{K as A,y as a,D as b,B as u};
|
package/dist/client/assets/{use-task-board-events-BZgY7EAa.js → use-task-board-events-DgTjbss7.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as m}from"./task-board-
|
|
1
|
+
import{a as m}from"./task-board-D0I9TrF7.js";import{r as e}from"./index-Cxx5SZO5.js";import{t as g}from"./watch-sse-pool-BD6-sAKH.js";const p=()=>0;function v(E){const{orgSlug:r,enabled:t=!0,onUpdate:u,onDelete:c,onResync:o}=E,a=e.useRef(u);a.current=u;const f=e.useRef(c);f.current=c;const d=e.useRef(o);d.current=o;const s=e.useRef(null),R=e.useRef(t),i=e.useRef(r);(!s.current||R.current!==t||i.current!==r)&&(R.current=t,i.current=r,s.current=b=>{if(!t||!r)return()=>{};const S=l=>{let n;try{n=JSON.parse(l.data)}catch{return}n.data&&(l.type===m?f.current?.(n.data.id):a.current(n.data)),b()};return g.subscribe(r,S,()=>d.current?.())}),e.useSyncExternalStore(s.current,p,p)}export{v as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as y,az as w,c as h,a4 as R,aq as T,q as k,m as O,K as A}from"./index-
|
|
1
|
+
import{r as y,az as w,c as h,a4 as R,aq as T,q as k,m as O,K as A}from"./index-Cxx5SZO5.js";import{e as B}from"./watch-sse-pool-BD6-sAKH.js";const P=()=>0;function C(e){const{orgSlug:t,itemId:s,onPrs:r}=e,o=y.useRef(r);o.current=r;const l=y.useRef(null),a=y.useRef(""),i=`${t}:${s??""}`;(!l.current||a.current!==i)&&(a.current=i,l.current=u=>{if(!t||!s)return()=>{};const d=c=>{let n;try{n=JSON.parse(c.data)}catch{return}n.data?.id!==s||!Array.isArray(n.data.prs)||(o.current(n.data.prs),u())};return B.subscribe(t,d)}),y.useSyncExternalStore(l.current,P,P)}const E=1440*60*1e3,D=40;function g(e){try{const t=window.localStorage.getItem(w.taskBoardPrs(e));return t?JSON.parse(t):{}}catch{return{}}}function L(e){const t=Date.now(),s=Object.entries(e).filter(([,r])=>t-r.updatedAt<=E);for(s.sort(([,r],[,o])=>r.updatedAt-o.updatedAt);s.length>D;)s.shift();return Object.fromEntries(s)}function _(e,t){if(typeof window>"u")return null;const s=g(e)[t];return!s||Date.now()-s.updatedAt>E?null:s}function b(e,t,s){if(!(typeof window>"u"))try{const r=g(e);r[t]={data:s,updatedAt:Date.now()},window.localStorage.setItem(w.taskBoardPrs(e),JSON.stringify(L(r)))}catch{}}const v=6e4,K=2e3,N=e=>e.state===null;function j(e){const t=h.c(25),{org:s,locator:r}=R(),o=T(),l=k();let a;t[0]!==e||t[1]!==r||t[2]!==l?(a=S=>{l.setQueryData(A.taskBoardItemPrs(r,e??""),S)},t[0]=e,t[1]=r,t[2]=l,t[3]=a):a=t[3];let i;t[4]!==e||t[5]!==s.slug||t[6]!==a?(i={orgSlug:s.slug,itemId:e,onPrs:a},t[4]=e,t[5]=s.slug,t[6]=a,t[7]=i):i=t[7],C(i);let u;t[8]!==e||t[9]!==r?(u=A.taskBoardItemPrs(r,e??""),t[8]=e,t[9]=r,t[10]=u):u=t[10];const d=!!e;let c,n;t[11]!==e||t[12]!==r?(c=()=>e?_(r,e)?.data??void 0:void 0,n=()=>e?_(r,e)?.updatedAt:void 0,t[11]=e,t[12]=r,t[13]=c,t[14]=n):(c=t[13],n=t[14]);let f;t[15]!==e||t[16]!==r||t[17]!==o?(f=async()=>{const{prs:S}=await o.call("TASK_BOARD_ITEM_PRS_GET",{taskBoardItemId:e});return b(r,e,S),S},t[15]=e,t[16]=r,t[17]=o,t[18]=f):f=t[18];let p;return t[19]!==u||t[20]!==d||t[21]!==c||t[22]!==n||t[23]!==f?(p={queryKey:u,enabled:d,refetchInterval:M,initialData:c,initialDataUpdatedAt:n,queryFn:f},t[19]=u,t[20]=d,t[21]=c,t[22]=n,t[23]=f,t[24]=p):p=t[24],O(p)}function M(e){return e.state.data?.some(N)?K:v}export{j as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a4 as l,aq as c,r as i,U as d,K as T}from"./index-
|
|
1
|
+
import{a4 as l,aq as c,r as i,U as d,K as T}from"./index-Cxx5SZO5.js";import{u as m}from"./thread-intent-DJ7MUI-X.js";const p=[],S=()=>()=>{},h=()=>p;function f(t){const{org:s}=l(),r=c(),n=m(),o=i.useSyncExternalStore(n?.threads.subscribe??S,n?.threads.get??h),e=t===null?null:o.find(a=>a.id===t)??null,{data:u}=d({queryKey:T.ensureTask(s.id,t),queryFn:async()=>{if(t===null)return null;try{const{item:a}=await r.call("COLLECTION_THREADS_GET",{id:t});return a??null}catch{return null}},initialData:e&&!e.partial?e:void 0,select:a=>a?.metadata??null,staleTime:3e4});return e?.metadata??u??null}export{f as u};
|
package/dist/client/assets/{use-thread-analytics-C7m6ingu.js → use-thread-analytics-BPVVv0U5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,m as o,f as d,r as A,K as T,as as y,ah as E}from"./index-
|
|
1
|
+
import{c as u,m as o,f as d,r as A,K as T,as as y,ah as E}from"./index-Cxx5SZO5.js";import{a as O}from"./watch-sse-pool-BD6-sAKH.js";function h(){return d({strict:!1}).org??""}function F(){const t=u.c(8),r=h();let e;t[0]!==r?(e=T.threadAnalyticsOrgs(r),t[0]=r,t[1]=e):e=t[1];const s=!!r;let n;t[2]!==r?(n=()=>y(r,"THREAD_ANALYTICS_ORG_LIST",{}),t[2]=r,t[3]=n):n=t[3];let c;return t[4]!==e||t[5]!==s||t[6]!==n?(c={queryKey:e,enabled:s,queryFn:n,staleTime:3e5},t[4]=e,t[5]=s,t[6]=n,t[7]=c):c=t[7],o(c)}const m=3e3,f=new Map,b=new Map;function _(t){let r=b.get(t);return r||(r=e=>{let s=null;const n=()=>{s||(s=setTimeout(()=>{s=null,f.set(t,(f.get(t)??0)+1),e()},m))},c=O.subscribe(t,n,n);return()=>{s&&clearTimeout(s),c()}},b.set(t,r)),r}function q(t,r){const e=u.c(5);let s;e[0]!==r||e[1]!==t?(s=_(t),e[0]=r,e[1]=t,e[2]=s):s=e[2];let n;return e[3]!==t?(n=()=>f.get(t)??0,e[3]=t,e[4]=n):n=e[4],A.useSyncExternalStore(s,n)}function K(t,r){const e=u.c(11),s=h(),n=q(s,r);let c;e[0]!==t||e[1]!==s||e[2]!==n?(c=T.threadAnalytics(s,"live",t,n),e[0]=t,e[1]=s,e[2]=n,e[3]=c):c=e[3];const i=!!s;let a;e[4]!==t||e[5]!==s?(a=()=>y(s,"THREAD_ANALYTICS_LIVE",t),e[4]=t,e[5]=s,e[6]=a):a=e[6];let l;return e[7]!==c||e[8]!==i||e[9]!==a?(l={queryKey:c,enabled:i,queryFn:a,placeholderData:E},e[7]=c,e[8]=i,e[9]=a,e[10]=l):l=e[10],o(l)}function k(t,r){const e=u.c(12),s=h();let n;e[0]!==r||e[1]!==s||e[2]!==t?(n=T.threadAnalytics(s,t,r,0),e[0]=r,e[1]=s,e[2]=t,e[3]=n):n=e[3];const c=!!s;let i;e[4]!==r||e[5]!==s||e[6]!==t?(i=()=>y(s,t,r),e[4]=r,e[5]=s,e[6]=t,e[7]=i):i=e[7];let a;return e[8]!==n||e[9]!==c||e[10]!==i?(a={queryKey:n,enabled:c,queryFn:i},e[8]=n,e[9]=c,e[10]=i,e[11]=a):a=e[11],o(a)}export{K as a,k as b,F as u};
|
package/dist/client/assets/{use-thread-outputs-gO4YyAPs.js → use-thread-outputs-CjJgHscq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,a4 as i,m as l,K as p}from"./index-
|
|
1
|
+
import{c,a4 as i,m as l,K as p}from"./index-Cxx5SZO5.js";import{f}from"./chat-context-D2EaExW5.js";async function m(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=f()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>m(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as u}from"./infiniteQueryObserver-B9PBW4Q3.js";import{er as i}from"./index-Cxx5SZO5.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ez as Q,br as y,eA as S,eB as w,es as C,q as k,eC as q,eD as x,r as p,eE as M,eF as H,eG as B,eH as L,eI as O,eJ as P,eK as A}from"./index-
|
|
1
|
+
import{ez as Q,br as y,eA as S,eB as w,es as C,q as k,eC as q,eD as x,r as p,eE as M,eF as H,eG as B,eH as L,eI as O,eJ as P,eK as A}from"./index-Cxx5SZO5.js";function R(r,e){const s=new Set(e);return r.filter(t=>!s.has(t))}function z(r,e,s){const t=r.slice(0);return t[e]=s,t}var I=class extends Q{#i;#e;#n;#r;#s;#t;#o;#u;#h;#a=[];constructor(r,e,s){super(),this.#i=r,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(r=>{r.subscribe(e=>{this.#d(r,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(r=>{r.destroy()})}setQueries(r,e){this.#n=r,this.#r=e,y.batch(()=>{const s=this.#s,t=this.#f(this.#n);t.forEach(o=>o.observer.setOptions(o.defaultedQueryOptions));const i=t.map(o=>o.observer),n=i.map(o=>o.getCurrentResult()),u=s.length!==i.length,c=i.some((o,d)=>o!==s[d]),f=u||c,b=f?!0:n.some((o,d)=>{const g=this.#e[d];return!g||!S(o,g)});!f&&!b||(f&&(this.#a=t,this.#s=i),this.#e=n,this.hasListeners()&&(f&&(R(s,i).forEach(o=>{o.destroy()}),R(i,s).forEach(o=>{o.subscribe(d=>{this.#d(o,d)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(r=>r.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(r,e){const s=this.#f(r),t=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[t,n=>this.#l(n??t,e,i),()=>this.#c(t,s)]}#c(r,e){return e.map((s,t)=>{const i=r[t];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(u=>{u.observer.trackProp(n)})})})}#l(r,e,s){if(e){const t=this.#h,i=s!==void 0&&t!==void 0&&(t.length!==s.length||s.some((n,u)=>n!==t[u]));return(!this.#t||this.#e!==this.#u||i||e!==this.#o)&&(this.#o=e,this.#u=this.#e,s!==void 0&&(this.#h=s),this.#t=w(this.#t,e(r))),this.#t}return r}#b(){return this.#r?.combine!==void 0&&this.#s.some((r,e)=>r.options.suspense&&this.#e[e]?.data===void 0)}#f(r){const e=new Map;this.#s.forEach(t=>{const i=t.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(t):e.set(i,[t])});const s=[];return r.forEach(t=>{const i=this.#i.defaultQueryOptions(t),u=e.get(i.queryHash)?.shift()??new C(this.#i,i);s.push({defaultedQueryOptions:i,observer:u})}),s}#d(r,e){const s=this.#s.indexOf(r);s!==-1&&(this.#e=z(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const r=this.#c(this.#e,this.#a),e=this.#b(),s=this.#t,t=e?s:this.#l(r,this.#r?.combine);(e||s!==t)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function D({queries:r,...e},s){const t=k(s),i=q(),n=x(),u=p.useMemo(()=>r.map(h=>{const a=t.defaultQueryOptions(h);return a._optimisticResults=i?"isRestoring":"optimistic",a}),[r,t,i]);u.forEach(h=>{M(h);const a=t.getQueryCache().get(h.queryHash);H(h,n,a)}),B(n);const[c]=p.useState(()=>new I(t,u,e)),[f,b,o]=c.getOptimisticResult(u,e.combine),d=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(h=>d?c.subscribe(y.batchCalls(h)):L,[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(u,e)},[u,e,c]);const m=f.some((h,a)=>O(u[a],h))?f.flatMap((h,a)=>{const l=u[a];if(l&&O(l,h)){const E=new C(t,l);return P(l,E,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=f.find((h,a)=>{const l=u[a];return l&&A({result:h,errorResetBoundary:n,throwOnError:l.throwOnError,query:t.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(o())}export{D as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as s}from"./infiniteQueryObserver-B9PBW4Q3.js";import{er as u,ey as n}from"./index-Cxx5SZO5.js";function a(e,r){return u({...e,enabled:!0,suspense:!0,throwOnError:n},s,r)}export{a as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as L,K as J,t as Q,o as W,B as G,p as H}from"./index-
|
|
1
|
+
import{c as V,b as q,r as z,a as O,m as Y,e as $,j as t,n as L,K as J,t as Q,o as W,B as G,p as H}from"./index-Cxx5SZO5.js";import{C as X}from"./collection-table-wrapper-D6zxNCnG.js";import{E as D}from"./empty-state-CnCcC-8N.js";import{S as Z}from"./search-input-CzCH_VIY.js";import{B as I}from"./badge-Dk9QaMHv.js";import{u as ee}from"./use-debounced-value-FWET2Ehv.js";import{a as K}from"./admin-fetch-BhTJlAsX.js";import"./table-B203jObX.js";import"./ArrowUp-CyzDPNV4.js";import"./SearchMd-BzDAUJSU.js";function pe(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const i=ee(N,300),{data:R}=O.useSession(),k=R?.user?.id;let n;e[2]!==i?(n=J.deploymentAdminUsers(i),e[2]=i,e[3]=n):n=e[3];let l;e[4]!==i?(l=()=>{const a=new URLSearchParams({limit:"100"});return i&&a.set("searchValue",i),K(`/api/_admin/users?${a}`)},e[4]=i,e[5]=l):l=e[5];let C;e[6]!==n||e[7]!==l?(C={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=C):C=e[8];const{data:P,isLoading:_,isError:A}=Y(C);let w;e[9]===Symbol.for("react.memo_cache_sentinel")?(w=te,e[9]=w):w=e[9];let y;e[10]!==s?(y={mutationFn:ae,onSuccess:w,onError:a=>{Q.error(a instanceof Error?a.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=y):y=e[11];const E=$(y);let b;e[12]!==P?.users?(b=P?.users??[],e[12]=P?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=a=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(W,{url:a.image??void 0,fallback:a.name??"?",shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:a.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:a.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=a=>a.emailVerified?t.jsx(I,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(I,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:se,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==k||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:a=>t.jsx(G,{variant:"outline",size:"sm",disabled:a.id===k||E.isPending,onClick:()=>E.mutate(a.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=k,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(Z,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==i||e[47]!==A||e[48]!==s?(S=A?t.jsx(D,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(D,{title:s("admin.users.noUsersFoundTitle"),description:i?s("admin.users.noUsersMatchSearch",{search:i}):s("admin.users.noUsersYet")}),e[46]=i,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(X,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Container,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function se(e){return t.jsx("span",{className:"text-sm text-foreground",children:H(e.createdAt)})}function te(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{pe as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as W,s as E,b as k}from"./ZoomOut-
|
|
1
|
+
import{c as W,s as E,b as k}from"./ZoomOut-BIPVG3Mi.js";import{a as j}from"./Image01-B1C03E_N.js";function I(e){if(!e||e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;try{const t=decodeURIComponent(e);return!!(t.includes("\\")||t.includes("..")||t.includes("\0"))}catch{return!0}}function L(e){if(I(e))throw new Error(`Invalid block key: ${e||"(empty)"}`)}function C(e){try{return decodeURIComponent(e)}catch{return e}}function P(e){return L(e),encodeURIComponent(e)}function G(e){return`.deco/blocks/${P(e)}.json`}const v=1e4,F=3;function y(e){return e.trim()?(e.startsWith("/")?e:`/${e}`).replace(/\/+/g,"/"):"/"}function x(e){return e.startsWith("/")?e.slice(1):e}function z(e){const t=x(e);return!t||t.includes("..")||t.includes("\\")?!1:t.startsWith(".deco/blocks/")||!t.startsWith("/")&&!t.includes("://")}function h(e){return e.trim()?e.startsWith("/")?e:`/${e}`:"/"}function $(e){const t=h(e);if(t==="/")return"/";const n=t.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function D(e,t){const n=t.replace(/^\/+|\/+$/g,"");return h(n?`${e==="/"?"":e}/${n}`:e)}function _(e,t){return t==="directory"?e:$(e)}function M(e){const t=e.trim();return t?t.includes("/")||t.includes("\\")||t.includes("..")||t.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function B(e){const t=x(e);return t?t.split("/").filter(Boolean).length:0}function S(e,t,n,r=!1){return{files:[...new Set([...e,...n.files])],directories:[...new Set([...t,...n.directories??[]])],truncated:r||!!n.truncated}}function H(e,t){return B(e)>=F&&!t.has(e)}function q(e,t,n=[]){const r=x(e);if(t.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return t.some(o=>o.startsWith(s))||n.some(o=>o.startsWith(s))}function U(e){const t=x(e),n=".deco/blocks/";if(!t.startsWith(n)||!t.endsWith(".json"))return null;const r=t.slice(n.length,-5);return C(r)}function A(e){if(!e)return"plaintext";const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?"typescript":t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?"javascript":t.endsWith(".json")?"json":t.endsWith(".md")||t.endsWith(".mdx")?"markdown":t.endsWith(".css")?"css":t.endsWith(".scss")?"scss":t.endsWith(".html")?"html":t.endsWith(".yaml")||t.endsWith(".yml")?"yaml":t.endsWith(".xml")||t.endsWith(".svg")?"xml":t.endsWith(".py")?"python":t.endsWith(".sql")?"sql":t.endsWith(".sh")?"shell":"plaintext"}const T="#94a3b8";function X(e){const t=e.toLowerCase();return t.endsWith(".tsx")||t.endsWith(".ts")?{Icon:W,color:"#3b82f6"}:t.endsWith(".jsx")||t.endsWith(".js")||t.endsWith(".mjs")||t.endsWith(".cjs")?{Icon:W,color:"#d9a441"}:t.endsWith(".json")?{Icon:E,color:"#cb9b3f"}:t.endsWith(".css")||t.endsWith(".scss")?{Icon:W,color:"#06b6d4"}:t.endsWith(".html")||t.endsWith(".xml")?{Icon:W,color:"#f97316"}:/\.(png|jpe?g|gif|webp|avif|ico|svg)$/.test(t)?{Icon:j,color:"#a855f7"}:t.endsWith(".md")||t.endsWith(".mdx")?{Icon:k,color:"#64748b"}:{Icon:k,color:T}}function K(e){const t=y(e).split("/").filter(Boolean),n=["/"];let r="";for(const s of t.slice(0,-1))r+=`/${s}`,n.push(r);return n}function V(e,t=[]){const n={path:"/",children:[]},r=new Map,s=a=>{let i=r.get(a.path);return i||(i=new Map,r.set(a.path,i)),i},o=a=>{const c=y(a).split("/").filter(Boolean);let l=n,m="";for(const f of c){m+=`/${f}`;const g=s(l);let d=g.get(f);d?d.kind==="file"&&(d.kind="directory"):(d={name:f,path:m,kind:"directory",children:[]},l.children.push(d),g.set(f,d)),l=d}};for(const a of e){const c=y(a).split("/").filter(Boolean);let l=n,m="";c.forEach((f,g)=>{m+=`/${f}`;const d=g===c.length-1,b=s(l);let p=b.get(f);p||(p={name:f,path:m,kind:d?"file":"directory",children:[]},l.children.push(p),b.set(f,p)),l=p})}for(const a of t)o(h(a));const u=a=>{a.sort((i,c)=>i.kind!==c.kind?i.kind==="directory"?-1:1:i.name.localeCompare(c.name));for(const i of a)i.children.length>0&&u(i.children)};return u(n.children),n.children}function N(e,t,n=0){const r=[];for(const s of e)if(s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&t.has(s.path)))for(const o of N(s.children,t,n+1))r.push(o);return r}function J(e){const t=[];for(const n of e.split(`
|
|
2
2
|
`)){if(!n)continue;const r=n.indexOf(":");if(r<0)continue;const s=n.indexOf(":",r+1);if(s<0)continue;const o=Number.parseInt(n.slice(r+1,s),10);Number.isFinite(o)&&t.push({path:h(n.slice(0,r)),line:o,text:n.slice(s+1)})}return t}function Q(e,t,n){const r=t.trim().toLowerCase();if(!r)return[];const s=[];for(const o of e)if((o.split("/").pop()??o).toLowerCase().includes(r)&&(s.push(h(o)),s.length>=n))break;return s}const w=24;function Y(e,t){const n=e.replace(/^\s+/,""),r=t.trim().toLowerCase();if(!r)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const s=n.toLowerCase().indexOf(r);if(s<0)return{leadingEllipsis:!1,segments:[{text:n,match:!1}]};const o=s>w,u=o?n.slice(s-w):n,a=u.toLowerCase(),i=[];let c=0;for(;;){const l=a.indexOf(r,c);if(l<0){c<u.length&&i.push({text:u.slice(c),match:!1});break}l>c&&i.push({text:u.slice(c,l),match:!1}),i.push({text:u.slice(l,l+r.length),match:!0}),c=l+r.length}return{leadingEllipsis:o,segments:i}}function Z(e){const t=[],n=new Map;for(const r of e){let s=n.get(r.path);s||(s={path:r.path,matches:[]},n.set(r.path,s),t.push(s)),s.matches.push(r)}return t}function tt(e){return e.split(`
|
|
3
3
|
`).map(t=>t.replace(/^\d+\t/,"")).join(`
|
|
4
4
|
`)}export{F as E,L as a,C as b,v as c,G as d,V as e,N as f,A as g,Z as h,z as i,_ as j,h as k,X as l,$ as m,K as n,Y as o,H as p,D as q,q as r,tt as s,x as t,Q as u,M as v,J as w,U as x,S as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as r,l as ne,B as ee,ay as ue}from"./index-CgM7-Ro8.js";import{H as xe,r as ie,j as ge}from"./agent-icon-B6DURSl_.js";import{L as be}from"./label-DOI4IEwy.js";import{S as ce}from"./scroll-area-C4hgiBjt.js";import{S as ve}from"./switch-gUlNntL4.js";import{T as ye,c as je,a as Te}from"./tooltip-BFkmafQU.js";import{T as se,a as Ne}from"./toggle-group-DxXcbqbT.js";import{M as de,b as me,c as _e,s as ke,p as Ee,a as U,W as Se}from"./date-utils-CrvIKg-s.js";import"./AlertCircle-JaYuCWTa.js";import"./Tool01-DvOyfmVC.js";import"./ArrowUp-YrAe3vgd.js";import"./ArrowLeft-BhJEaZ6B.js";import"./LinkBroken01-C29KKpU0.js";import"./ShoppingBag01-jE2k9Z1o.js";import"./ZoomOut-BMZKrcTE.js";import"./Building02-CTmcVqQj.js";import"./CheckCircle-9jHhe24P.js";import"./ChevronUp-D-7vQNVy.js";import"./ChevronSelectorVertical-CfW1Wzms.js";import"./UserSquare-DV1XZOY6.js";import"./Copy01-DP6tJ3a3.js";import"./CreditCard01-7YXzWPmu.js";import"./DotsVertical-BSeiVg8O.js";import"./Image01-DLqdm992.js";import"./Globe04-BkUhGI83.js";import"./SwitchHorizontal01-CLXZKY70.js";import"./Key01-o_hEpYwc.js";import"./Link01-DDso2VpB.js";import"./Minus-B--8kp5j.js";import"./Monitor01-BtDUnSZq.js";import"./Sun-CGNTymUo.js";import"./Play-jy1YZ7pj.js";import"./Plus-4tdoOfzh.js";import"./SearchMd-J2Rjic9V.js";import"./Trash01-CGaWZsc5.js";import"./Upload01-CXqGRfor.js";import"./Users01-CpHvZIR7.js";import"./XClose-DWQXqdSq.js";import"./index-BdQq_4o_.js";import"./index-bs2MyHCY.js";import"./active-indicator-CCMhAsc_.js";const we=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),Ce=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Me=new Date(-864e13),Ae=new Date(864e13),$e=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Le=/\/flags\/multivariate\.ts$/;function Re(t){let e=t;e.startsWith("pages-")&&(e=e.slice(6).replace(/-\d+$/,""));try{e=decodeURIComponent(e)}catch{}return e}function De(t){if(!t||typeof t!="object")return null;const{start:e,end:n}=t,s=typeof e=="string",o=typeof n=="string";if(!s&&!o)return null;const a=s?new Date(e):Me,l=o?new Date(n):Ae;return Number.isNaN(a.getTime())||Number.isNaN(l.getTime())||s&&o&&l.getTime()<=a.getTime()?null:{start:a,end:l,openStart:!s,openEnd:!o}}function fe(t,e){if(!t||typeof t!="object")return;const n=t.__resolveType;if(typeof n=="string"){if(we.has(n)){const s=De(t);s&&e.push(s);return}if(Ce.has(n)){const s=t.matchers;if(Array.isArray(s))for(const o of s)fe(o,e)}}}function Oe(t){if(!t||typeof t!="object")return!1;const e=t.__resolveType;if(typeof e!="string"||!$e.test(e))return!1;const n=t.variants;return Array.isArray(n)}function Pe(t){if(typeof t=="string"){const c=t.trim();if(c.length===0)return null;try{const d=new URL(c).pathname.split("/").filter(Boolean),m=d[d.length-1];if(m)return decodeURIComponent(m)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!t||typeof t!="object")return null;const e=t,n=e.config,o=e.desktop?.media,a=[e.title,e.name,e.label,e.alt,n?.title,n?.name,n?.typeAlert?.message,o?.alt,Array.isArray(e.matcher)?e.matcher[0]:void 0];for(const c of a)if(typeof c=="string"&&c.trim().length>0)return c.trim();const l=e.__resolveType;if(typeof l=="string"){const i=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(i.length>0)return i}return null}function Ie(t){const e=[];for(let n=0;n<t.length;n++){const s=t[n];typeof s=="number"?e.length>0?e[e.length-1]+=`[${s}]`:e.push(`[${s}]`):e.push(s)}return e.join(" · ")}function Q(t,e,n,s,o){if(Oe(t)){const a=t.variants,l=t.__resolveType,c=Le.test(l)?"":Ie(s);a.forEach((i,d)=>{if(!i||typeof i!="object")return;const m=i,u=[];if(fe(m.rule,u),u.length===0)return;const g=Pe(m.value)??(c||n);for(const h of u)o.push({blockKey:e,blockLabel:n,innerPath:c,variantIndex:d,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:g,flagResolveType:l})});for(let i=0;i<a.length;i++){const d=a[i];d&&typeof d=="object"&&Q(d.value,e,n,[...s,"variants",i,"value"],o)}return}if(Array.isArray(t)){for(let a=0;a<t.length;a++)Q(t[a],e,n,[...s,a],o);return}if(t&&typeof t=="object")for(const[a,l]of Object.entries(t))a!=="__resolveType"&&Q(l,e,n,[...s,a],o)}function He(t){if(!t)return[];const e=[];for(const[n,s]of Object.entries(t))Q(s,n,Re(n),[],e);return e.sort((n,s)=>n.start.getTime()-s.start.getTime())}function Ve(t){const e=[...new Set(t)].sort(),n=new Map;return e.forEach((s,o)=>{const a=o*137.508%360;n.set(s,{bg:`oklch(0.62 0.14 ${a})`,text:"white",border:`oklch(0.50 0.14 ${a})`})}),n}const Be={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function pe(t,e){return t.get(e)??Be}const re=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Fe(t,e){const n=t.openStart?e("sandbox.variantCalendar.always"):re.format(t.start),s=t.openEnd?e("sandbox.variantCalendar.ongoing"):re.format(t.end);return`${n} → ${s}`}function We(t){const e=K.c(18),{variant:n}=t,s=X();let o;e[0]!==n.blockLabel?(o=r.jsx("div",{className:"font-semibold",children:n.blockLabel}),e[0]=n.blockLabel,e[1]=o):o=e[1];let a;e[2]!==n.innerPath?(a=n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),e[2]=n.innerPath,e[3]=a):a=e[3];let l;e[4]!==n.blockLabel||e[5]!==n.innerPath||e[6]!==n.label?(l=n.label!==n.blockLabel&&n.label!==n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.label}),e[4]=n.blockLabel,e[5]=n.innerPath,e[6]=n.label,e[7]=l):l=e[7];let c;e[8]!==s||e[9]!==n?(c=Fe(n,s),e[8]=s,e[9]=n,e[10]=c):c=e[10];let i;e[11]!==c?(i=r.jsx("div",{className:"mt-1",children:c}),e[11]=c,e[12]=i):i=e[12];let d;return e[13]!==o||e[14]!==a||e[15]!==l||e[16]!==i?(d=r.jsx(Te,{children:r.jsxs("div",{className:"text-xs",children:[o,a,l,i]})}),e[13]=o,e[14]=a,e[15]=l,e[16]=i,e[17]=d):d=e[17],d}const ae=16;function ze(t,e){const n=t?"transparent":"#000 0",s=e?"transparent":"#000 100%";if(!(!t&&!e))return`linear-gradient(to right, ${n}, #000 ${ae}px, #000 calc(100% - ${ae}px), ${s})`}function he(t){const e=K.c(26),{variant:n,color:s,style:o,children:a,fadeStart:l,fadeEnd:c}=t,i=l===void 0?!1:l,d=c===void 0?!1:c;let m;e[0]!==d||e[1]!==i?(m=ze(i,d),e[0]=d,e[1]=i,e[2]=m):m=e[2];const u=m;let p;e[3]!==i?(p=i&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},e[3]=i,e[4]=p):p=e[4];let g;e[5]!==d?(g=d&&{borderTopRightRadius:0,borderBottomRightRadius:0},e[5]=d,e[6]=g):g=e[6];let h;e[7]!==u?(h=u&&{maskImage:u,WebkitMaskImage:u},e[7]=u,e[8]=h):h=e[8];let x;e[9]!==s.bg||e[10]!==s.text||e[11]!==o||e[12]!==p||e[13]!==g||e[14]!==h?(x={background:s.bg,color:s.text,borderRadius:4,...p,...g,...h,...o},e[9]=s.bg,e[10]=s.text,e[11]=o,e[12]=p,e[13]=g,e[14]=h,e[15]=x):x=e[15];let b;e[16]!==a?(b=r.jsx("span",{className:"truncate",children:a}),e[16]=a,e[17]=b):b=e[17];let S;e[18]!==x||e[19]!==b?(S=r.jsx(ye,{asChild:!0,children:r.jsx("div",{className:"absolute flex items-center px-2 text-2xs font-medium truncate cursor-default",style:x,children:b})}),e[18]=x,e[19]=b,e[20]=S):S=e[20];let T;e[21]!==n?(T=r.jsx(We,{variant:n}),e[21]=n,e[22]=T):T=e[22];let f;return e[23]!==T||e[24]!==S?(f=r.jsxs(je,{children:[S,T]}),e[23]=T,e[24]=S,e[25]=f):f=e[25],f}function Ut(t){const e=K.c(71),{decofile:n}=t,s=X(),[o,a]=Z.useState("calendar"),[l,c]=Z.useState(Ye),[i,d]=Z.useState(!1);let m,u,p;if(e[0]!==n||e[1]!==i){const M=He(n);m=M.filter(Ke).length,p=i?M:M.filter(Ue),u=Ve(p.map(Ge)),e[0]=n,e[1]=i,e[2]=m,e[3]=u,e[4]=p}else m=e[2],u=e[3],p=e[4];const g=u;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>c(me(new Date)),e[5]=h):h=e[5];const x=h;let b;e[6]!==o?(b=()=>c(M=>o==="calendar"?U(M,-1):U(M,-3)),e[6]=o,e[7]=b):b=e[7];const S=b;let T;e[8]!==o?(T=()=>c(M=>o==="calendar"?U(M,1):U(M,3)),e[8]=o,e[9]=T):T=e[9];const f=T;let v;e[10]!==s?(v=s("sandbox.variantCalendar.today"),e[10]=s,e[11]=v):v=e[11];let y;e[12]!==v?(y=r.jsx(ee,{variant:"outline",size:"sm",onClick:x,children:v}),e[12]=v,e[13]=y):y=e[13];let N;e[14]!==s?(N=s("sandbox.variantCalendar.previous"),e[14]=s,e[15]=N):N=e[15];let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx(xe,{size:16}),e[16]=$):$=e[16];let _;e[17]!==S||e[18]!==N?(_=r.jsx(ee,{variant:"ghost",size:"icon",onClick:S,"aria-label":N,children:$}),e[17]=S,e[18]=N,e[19]=_):_=e[19];let k;e[20]!==s?(k=s("sandbox.variantCalendar.next"),e[20]=s,e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ue,{size:16}),e[22]=C):C=e[22];let L;e[23]!==f||e[24]!==k?(L=r.jsx(ee,{variant:"ghost",size:"icon",onClick:f,"aria-label":k,children:C}),e[23]=f,e[24]=k,e[25]=L):L=e[25];const R=de[l.getMonth()];let A;e[26]!==l?(A=l.getFullYear(),e[26]=l,e[27]=A):A=e[27];let E;e[28]!==R||e[29]!==A?(E=r.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",A]}),e[28]=R,e[29]=A,e[30]=E):E=e[30];let j;e[31]!==L||e[32]!==E||e[33]!==y||e[34]!==_?(j=r.jsxs("div",{className:"flex items-center gap-2",children:[y,_,L,E]}),e[31]=L,e[32]=E,e[33]=y,e[34]=_,e[35]=j):j=e[35];let D;e[36]!==m||e[37]!==i||e[38]!==s?(D=m>0&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ve,{id:"show-ongoing",checked:i,onCheckedChange:d}),r.jsx(be,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:s("sandbox.variantCalendar.showOngoing",{count:m})})]}),e[36]=m,e[37]=i,e[38]=s,e[39]=D):D=e[39];let V;e[40]===Symbol.for("react.memo_cache_sentinel")?(V=M=>{(M==="calendar"||M==="timeline")&&a(M)},e[40]=V):V=e[40];let F;e[41]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(ie,{}),e[41]=F):F=e[41];let w;e[42]!==s?(w=s("sandbox.variantCalendar.calendarMode"),e[42]=s,e[43]=w):w=e[43];let I;e[44]!==w?(I=r.jsxs(se,{value:"calendar",children:[F,w]}),e[44]=w,e[45]=I):I=e[45];let B;e[46]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(ge,{}),e[46]=B):B=e[46];let O;e[47]!==s?(O=s("sandbox.variantCalendar.timelineMode"),e[47]=s,e[48]=O):O=e[48];let P;e[49]!==O?(P=r.jsxs(se,{value:"timeline",children:[B,O]}),e[49]=O,e[50]=P):P=e[50];let H;e[51]!==I||e[52]!==P||e[53]!==o?(H=r.jsxs(Ne,{type:"single",variant:"segmented",size:"sm",value:o,onValueChange:V,children:[I,P]}),e[51]=I,e[52]=P,e[53]=o,e[54]=H):H=e[54];let W;e[55]!==D||e[56]!==H?(W=r.jsxs("div",{className:"flex items-center gap-4",children:[D,H]}),e[55]=D,e[56]=H,e[57]=W):W=e[57];let z;e[58]!==j||e[59]!==W?(z=r.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,W]}),e[58]=j,e[59]=W,e[60]=z):z=e[60];let G;e[61]!==g||e[62]!==l||e[63]!==m||e[64]!==i||e[65]!==p||e[66]!==o?(G=p.length===0?r.jsx(qe,{hiddenOngoing:i?0:m}):o==="calendar"?r.jsx(Qe,{monthStart:l,variants:p,colorMap:g}):r.jsx(tt,{monthStart:l,variants:p,colorMap:g}),e[61]=g,e[62]=l,e[63]=m,e[64]=i,e[65]=p,e[66]=o,e[67]=G):G=e[67];let q;return e[68]!==z||e[69]!==G?(q=r.jsxs("div",{className:"flex h-full w-full flex-col",children:[z,G]}),e[68]=z,e[69]=G,e[70]=q):q=e[70],q}function Ge(t){return t.blockKey}function Ue(t){return!t.openEnd}function Ke(t){return t.openEnd}function Ye(){return me(new Date)}function qe(t){const e=K.c(4),{hiddenOngoing:n}=t,s=n===void 0?0:n,o=X();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ie,{size:24,className:"text-muted-foreground/60"}),e[0]=a):a=e[0];let l;return e[1]!==s||e[2]!==o?(l=r.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a,s>0?r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noDatedVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.hiddenOngoingVariants",{count:s})})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noScheduledVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.dateMatcherInfo")})]})]}),e[1]=s,e[2]=o,e[3]=l):l=e[3],l}const te=20,oe=2,le=28,Je=6;function Qe(t){const e=K.c(17),{monthStart:n,variants:s,colorMap:o}=t;let a,l,c,i,d;if(e[0]!==o||e[1]!==n||e[2]!==s){const p=_e(n),g=ke(new Date);a=ce,d="flex-1 min-h-0",l="min-w-[840px]",e[8]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Se.map(Ze)}),e[8]=c):c=e[8],i=p.map((h,x)=>{const b=Ee(h,s),S=b.reduce(Xe,0),T=le+S*(te+oe)+8;return r.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,v)=>{const y=f.getMonth()===n.getMonth(),N=f.getTime()===g.getTime();return r.jsx("div",{className:ne("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:r.jsx("span",{className:ne("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},v)}),b.map((f,v)=>{const y=pe(o,f.variant.blockKey),N=le+f.lane*(te+oe),$=f.leftUnits/7*100,_=f.widthUnits/7*100,k=f.variant.openStart&&x===0,C=f.variant.openEnd&&x===p.length-1;return r.jsxs(he,{variant:f.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${$}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Je,height:te},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&r.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${x}-${v}`)})]},x)}),e[0]=o,e[1]=n,e[2]=s,e[3]=a,e[4]=l,e[5]=c,e[6]=i,e[7]=d}else a=e[3],l=e[4],c=e[5],i=e[6],d=e[7];let m;e[9]!==l||e[10]!==c||e[11]!==i?(m=r.jsxs("div",{className:l,children:[c,i]}),e[9]=l,e[10]=c,e[11]=i,e[12]=m):m=e[12];let u;return e[13]!==a||e[14]!==d||e[15]!==m?(u=r.jsx(a,{className:d,children:m}),e[13]=a,e[14]=d,e[15]=m,e[16]=u):u=e[16],u}function Xe(t,e){return Math.max(t,e.lane+1)}function Ze(t){return r.jsx("div",{className:"px-2 py-2 text-center",children:t},t)}const J=4,et=32,Y=240;function tt(t){const e=K.c(23),{monthStart:n,variants:s,colorMap:o}=t,a=n,l=U(n,J),c=new Date,i=new Map;for(const E of s){const j=i.get(E.blockKey)??[];j.push(E),i.set(E.blockKey,j)}const d=Array.from(i.entries()).sort(rt),m=l.getTime()-a.getTime(),u=E=>(Math.max(a.getTime(),Math.min(l.getTime(),E.getTime()))-a.getTime())/m*100;let p;e[0]!==a?(p=(E,j)=>U(a,j),e[0]=a,e[1]=p):p=e[1];const g=Array.from({length:J},p),h=c.getTime()>=a.getTime()&&c.getTime()<=l.getTime()?u(c):null,x=X(),b=ce,S="flex-1 min-h-0",T="min-w-[900px] relative";let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f={width:Y},e[2]=f):f=e[2];let v;e[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),e[3]=x,e[4]=v):v=e[4];let y;e[5]!==v?(y=r.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold text-muted-foreground border-r",style:f,children:v}),e[5]=v,e[6]=y):y=e[6];let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},e[7]=N):N=e[7];const $=g.map(st);let _;e[8]!==$?(_=r.jsx("div",{className:"flex-1 grid",style:N,children:$}),e[8]=$,e[9]=_):_=e[9];let k;e[10]!==y||e[11]!==_?(k=r.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),e[10]=y,e[11]=_,e[12]=k):k=e[12];let C;e[13]!==x||e[14]!==h?(C=h!==null&&r.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${h} / 100)`},children:r.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-2xs font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),e[13]=x,e[14]=h,e[15]=C):C=e[15];const L=d.map(E=>{const[j,D]=E,V=pe(o,j),F=D[0]?.blockLabel??j;return r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold text-muted-foreground",style:{height:28},children:r.jsx("div",{className:"px-3 truncate",style:{width:Y},children:F})}),D.map((w,I)=>r.jsxs("div",{className:"flex border-b items-center",style:{height:et},children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[r.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:V.bg}}),r.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),r.jsxs("div",{className:"relative flex-1 h-full",children:[r.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(nt)}),(()=>{const B=Math.max(w.start.getTime(),a.getTime()),O=Math.min(w.end.getTime(),l.getTime());if(O<=B)return null;const P=u(new Date(B)),H=u(new Date(O))-P;return r.jsx(he,{variant:w,color:V,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:w.label})})()]})]},I))]},j)});let R;e[16]!==k||e[17]!==C||e[18]!==L?(R=r.jsxs("div",{className:T,children:[k,C,L]}),e[16]=k,e[17]=C,e[18]=L,e[19]=R):R=e[19];let A;return e[20]!==b||e[21]!==R?(A=r.jsx(b,{className:S,children:R}),e[20]=b,e[21]=R,e[22]=A):A=e[22],A}function nt(t,e){return r.jsx("div",{className:"border-r last:border-r-0 border-border/40"},e)}function st(t,e){return r.jsxs("div",{className:"px-2 py-2 text-xs text-muted-foreground border-r last:border-r-0",children:[de[t.getMonth()]?.slice(0,3)," ",t.getFullYear()]},e)}function rt(t,e){return t[0].localeCompare(e[0])}export{Ut as VariantCalendar};
|
|
1
|
+
import{c as K,b as X,r as Z,j as r,l as ne,B as ee,ay as ue}from"./index-Cxx5SZO5.js";import{H as xe,r as ie,j as ge}from"./agent-icon-DMLbHyqZ.js";import{L as be}from"./label-Ctu3ACGH.js";import{S as ce}from"./scroll-area-rwjRqyfO.js";import{S as ve}from"./switch-C5GqEaZ9.js";import{T as ye,c as je,a as Te}from"./tooltip-BFWyx7Tu.js";import{T as se,a as Ne}from"./toggle-group-epTzYWN_.js";import{M as de,b as me,c as _e,s as ke,p as Ee,a as U,W as Se}from"./date-utils-CrvIKg-s.js";import"./AlertCircle-BWrNX7mN.js";import"./Tool01-OTauJJp3.js";import"./ArrowUp-CyzDPNV4.js";import"./ArrowLeft-DHx5ko4s.js";import"./LinkBroken01-C5q0tEvS.js";import"./ShoppingBag01-UnxomIP0.js";import"./ZoomOut-BIPVG3Mi.js";import"./Building02-DhL5SQYW.js";import"./CheckCircle-BJwUqTIe.js";import"./ChevronUp-BsFnjeNK.js";import"./ChevronSelectorVertical-BsFKOzFl.js";import"./UserSquare-CmbcjiWL.js";import"./Copy01-BMtss9AJ.js";import"./CreditCard01-DpJ5HaJ6.js";import"./DotsVertical-7Rm5ttPh.js";import"./Image01-B1C03E_N.js";import"./Globe04-BJeMTkc9.js";import"./SwitchHorizontal01-Dr_PPdbH.js";import"./Key01-AhMvx8Bf.js";import"./Link01-p8humFYG.js";import"./Minus-BMakGco3.js";import"./Monitor01-CLwaIfNu.js";import"./Sun-B5QvK7X9.js";import"./Play-BoOYKEkH.js";import"./Plus-D7X276kv.js";import"./SearchMd-BzDAUJSU.js";import"./Trash01-DzCXEeuM.js";import"./Upload01-2E_Vrojt.js";import"./Users01-BFgiCQPh.js";import"./XClose-BF4dTiHJ.js";import"./index-BdQq_4o_.js";import"./index-z9eosAhj.js";import"./active-indicator-CCMhAsc_.js";const we=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),Ce=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Me=new Date(-864e13),Ae=new Date(864e13),$e=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Le=/\/flags\/multivariate\.ts$/;function Re(t){let e=t;e.startsWith("pages-")&&(e=e.slice(6).replace(/-\d+$/,""));try{e=decodeURIComponent(e)}catch{}return e}function De(t){if(!t||typeof t!="object")return null;const{start:e,end:n}=t,s=typeof e=="string",o=typeof n=="string";if(!s&&!o)return null;const a=s?new Date(e):Me,l=o?new Date(n):Ae;return Number.isNaN(a.getTime())||Number.isNaN(l.getTime())||s&&o&&l.getTime()<=a.getTime()?null:{start:a,end:l,openStart:!s,openEnd:!o}}function fe(t,e){if(!t||typeof t!="object")return;const n=t.__resolveType;if(typeof n=="string"){if(we.has(n)){const s=De(t);s&&e.push(s);return}if(Ce.has(n)){const s=t.matchers;if(Array.isArray(s))for(const o of s)fe(o,e)}}}function Oe(t){if(!t||typeof t!="object")return!1;const e=t.__resolveType;if(typeof e!="string"||!$e.test(e))return!1;const n=t.variants;return Array.isArray(n)}function Pe(t){if(typeof t=="string"){const c=t.trim();if(c.length===0)return null;try{const d=new URL(c).pathname.split("/").filter(Boolean),m=d[d.length-1];if(m)return decodeURIComponent(m)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!t||typeof t!="object")return null;const e=t,n=e.config,o=e.desktop?.media,a=[e.title,e.name,e.label,e.alt,n?.title,n?.name,n?.typeAlert?.message,o?.alt,Array.isArray(e.matcher)?e.matcher[0]:void 0];for(const c of a)if(typeof c=="string"&&c.trim().length>0)return c.trim();const l=e.__resolveType;if(typeof l=="string"){const i=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(i.length>0)return i}return null}function Ie(t){const e=[];for(let n=0;n<t.length;n++){const s=t[n];typeof s=="number"?e.length>0?e[e.length-1]+=`[${s}]`:e.push(`[${s}]`):e.push(s)}return e.join(" · ")}function Q(t,e,n,s,o){if(Oe(t)){const a=t.variants,l=t.__resolveType,c=Le.test(l)?"":Ie(s);a.forEach((i,d)=>{if(!i||typeof i!="object")return;const m=i,u=[];if(fe(m.rule,u),u.length===0)return;const g=Pe(m.value)??(c||n);for(const h of u)o.push({blockKey:e,blockLabel:n,innerPath:c,variantIndex:d,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:g,flagResolveType:l})});for(let i=0;i<a.length;i++){const d=a[i];d&&typeof d=="object"&&Q(d.value,e,n,[...s,"variants",i,"value"],o)}return}if(Array.isArray(t)){for(let a=0;a<t.length;a++)Q(t[a],e,n,[...s,a],o);return}if(t&&typeof t=="object")for(const[a,l]of Object.entries(t))a!=="__resolveType"&&Q(l,e,n,[...s,a],o)}function He(t){if(!t)return[];const e=[];for(const[n,s]of Object.entries(t))Q(s,n,Re(n),[],e);return e.sort((n,s)=>n.start.getTime()-s.start.getTime())}function Ve(t){const e=[...new Set(t)].sort(),n=new Map;return e.forEach((s,o)=>{const a=o*137.508%360;n.set(s,{bg:`oklch(0.62 0.14 ${a})`,text:"white",border:`oklch(0.50 0.14 ${a})`})}),n}const Be={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function pe(t,e){return t.get(e)??Be}const re=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Fe(t,e){const n=t.openStart?e("sandbox.variantCalendar.always"):re.format(t.start),s=t.openEnd?e("sandbox.variantCalendar.ongoing"):re.format(t.end);return`${n} → ${s}`}function We(t){const e=K.c(18),{variant:n}=t,s=X();let o;e[0]!==n.blockLabel?(o=r.jsx("div",{className:"font-semibold",children:n.blockLabel}),e[0]=n.blockLabel,e[1]=o):o=e[1];let a;e[2]!==n.innerPath?(a=n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),e[2]=n.innerPath,e[3]=a):a=e[3];let l;e[4]!==n.blockLabel||e[5]!==n.innerPath||e[6]!==n.label?(l=n.label!==n.blockLabel&&n.label!==n.innerPath&&r.jsx("div",{className:"text-muted-foreground",children:n.label}),e[4]=n.blockLabel,e[5]=n.innerPath,e[6]=n.label,e[7]=l):l=e[7];let c;e[8]!==s||e[9]!==n?(c=Fe(n,s),e[8]=s,e[9]=n,e[10]=c):c=e[10];let i;e[11]!==c?(i=r.jsx("div",{className:"mt-1",children:c}),e[11]=c,e[12]=i):i=e[12];let d;return e[13]!==o||e[14]!==a||e[15]!==l||e[16]!==i?(d=r.jsx(Te,{children:r.jsxs("div",{className:"text-xs",children:[o,a,l,i]})}),e[13]=o,e[14]=a,e[15]=l,e[16]=i,e[17]=d):d=e[17],d}const ae=16;function ze(t,e){const n=t?"transparent":"#000 0",s=e?"transparent":"#000 100%";if(!(!t&&!e))return`linear-gradient(to right, ${n}, #000 ${ae}px, #000 calc(100% - ${ae}px), ${s})`}function he(t){const e=K.c(26),{variant:n,color:s,style:o,children:a,fadeStart:l,fadeEnd:c}=t,i=l===void 0?!1:l,d=c===void 0?!1:c;let m;e[0]!==d||e[1]!==i?(m=ze(i,d),e[0]=d,e[1]=i,e[2]=m):m=e[2];const u=m;let p;e[3]!==i?(p=i&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},e[3]=i,e[4]=p):p=e[4];let g;e[5]!==d?(g=d&&{borderTopRightRadius:0,borderBottomRightRadius:0},e[5]=d,e[6]=g):g=e[6];let h;e[7]!==u?(h=u&&{maskImage:u,WebkitMaskImage:u},e[7]=u,e[8]=h):h=e[8];let x;e[9]!==s.bg||e[10]!==s.text||e[11]!==o||e[12]!==p||e[13]!==g||e[14]!==h?(x={background:s.bg,color:s.text,borderRadius:4,...p,...g,...h,...o},e[9]=s.bg,e[10]=s.text,e[11]=o,e[12]=p,e[13]=g,e[14]=h,e[15]=x):x=e[15];let b;e[16]!==a?(b=r.jsx("span",{className:"truncate",children:a}),e[16]=a,e[17]=b):b=e[17];let S;e[18]!==x||e[19]!==b?(S=r.jsx(ye,{asChild:!0,children:r.jsx("div",{className:"absolute flex items-center px-2 text-2xs font-medium truncate cursor-default",style:x,children:b})}),e[18]=x,e[19]=b,e[20]=S):S=e[20];let T;e[21]!==n?(T=r.jsx(We,{variant:n}),e[21]=n,e[22]=T):T=e[22];let f;return e[23]!==T||e[24]!==S?(f=r.jsxs(je,{children:[S,T]}),e[23]=T,e[24]=S,e[25]=f):f=e[25],f}function Ut(t){const e=K.c(71),{decofile:n}=t,s=X(),[o,a]=Z.useState("calendar"),[l,c]=Z.useState(Ye),[i,d]=Z.useState(!1);let m,u,p;if(e[0]!==n||e[1]!==i){const M=He(n);m=M.filter(Ke).length,p=i?M:M.filter(Ue),u=Ve(p.map(Ge)),e[0]=n,e[1]=i,e[2]=m,e[3]=u,e[4]=p}else m=e[2],u=e[3],p=e[4];const g=u;let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h=()=>c(me(new Date)),e[5]=h):h=e[5];const x=h;let b;e[6]!==o?(b=()=>c(M=>o==="calendar"?U(M,-1):U(M,-3)),e[6]=o,e[7]=b):b=e[7];const S=b;let T;e[8]!==o?(T=()=>c(M=>o==="calendar"?U(M,1):U(M,3)),e[8]=o,e[9]=T):T=e[9];const f=T;let v;e[10]!==s?(v=s("sandbox.variantCalendar.today"),e[10]=s,e[11]=v):v=e[11];let y;e[12]!==v?(y=r.jsx(ee,{variant:"outline",size:"sm",onClick:x,children:v}),e[12]=v,e[13]=y):y=e[13];let N;e[14]!==s?(N=s("sandbox.variantCalendar.previous"),e[14]=s,e[15]=N):N=e[15];let $;e[16]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx(xe,{size:16}),e[16]=$):$=e[16];let _;e[17]!==S||e[18]!==N?(_=r.jsx(ee,{variant:"ghost",size:"icon",onClick:S,"aria-label":N,children:$}),e[17]=S,e[18]=N,e[19]=_):_=e[19];let k;e[20]!==s?(k=s("sandbox.variantCalendar.next"),e[20]=s,e[21]=k):k=e[21];let C;e[22]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ue,{size:16}),e[22]=C):C=e[22];let L;e[23]!==f||e[24]!==k?(L=r.jsx(ee,{variant:"ghost",size:"icon",onClick:f,"aria-label":k,children:C}),e[23]=f,e[24]=k,e[25]=L):L=e[25];const R=de[l.getMonth()];let A;e[26]!==l?(A=l.getFullYear(),e[26]=l,e[27]=A):A=e[27];let E;e[28]!==R||e[29]!==A?(E=r.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",A]}),e[28]=R,e[29]=A,e[30]=E):E=e[30];let j;e[31]!==L||e[32]!==E||e[33]!==y||e[34]!==_?(j=r.jsxs("div",{className:"flex items-center gap-2",children:[y,_,L,E]}),e[31]=L,e[32]=E,e[33]=y,e[34]=_,e[35]=j):j=e[35];let D;e[36]!==m||e[37]!==i||e[38]!==s?(D=m>0&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(ve,{id:"show-ongoing",checked:i,onCheckedChange:d}),r.jsx(be,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:s("sandbox.variantCalendar.showOngoing",{count:m})})]}),e[36]=m,e[37]=i,e[38]=s,e[39]=D):D=e[39];let V;e[40]===Symbol.for("react.memo_cache_sentinel")?(V=M=>{(M==="calendar"||M==="timeline")&&a(M)},e[40]=V):V=e[40];let F;e[41]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(ie,{}),e[41]=F):F=e[41];let w;e[42]!==s?(w=s("sandbox.variantCalendar.calendarMode"),e[42]=s,e[43]=w):w=e[43];let I;e[44]!==w?(I=r.jsxs(se,{value:"calendar",children:[F,w]}),e[44]=w,e[45]=I):I=e[45];let B;e[46]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(ge,{}),e[46]=B):B=e[46];let O;e[47]!==s?(O=s("sandbox.variantCalendar.timelineMode"),e[47]=s,e[48]=O):O=e[48];let P;e[49]!==O?(P=r.jsxs(se,{value:"timeline",children:[B,O]}),e[49]=O,e[50]=P):P=e[50];let H;e[51]!==I||e[52]!==P||e[53]!==o?(H=r.jsxs(Ne,{type:"single",variant:"segmented",size:"sm",value:o,onValueChange:V,children:[I,P]}),e[51]=I,e[52]=P,e[53]=o,e[54]=H):H=e[54];let W;e[55]!==D||e[56]!==H?(W=r.jsxs("div",{className:"flex items-center gap-4",children:[D,H]}),e[55]=D,e[56]=H,e[57]=W):W=e[57];let z;e[58]!==j||e[59]!==W?(z=r.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,W]}),e[58]=j,e[59]=W,e[60]=z):z=e[60];let G;e[61]!==g||e[62]!==l||e[63]!==m||e[64]!==i||e[65]!==p||e[66]!==o?(G=p.length===0?r.jsx(qe,{hiddenOngoing:i?0:m}):o==="calendar"?r.jsx(Qe,{monthStart:l,variants:p,colorMap:g}):r.jsx(tt,{monthStart:l,variants:p,colorMap:g}),e[61]=g,e[62]=l,e[63]=m,e[64]=i,e[65]=p,e[66]=o,e[67]=G):G=e[67];let q;return e[68]!==z||e[69]!==G?(q=r.jsxs("div",{className:"flex h-full w-full flex-col",children:[z,G]}),e[68]=z,e[69]=G,e[70]=q):q=e[70],q}function Ge(t){return t.blockKey}function Ue(t){return!t.openEnd}function Ke(t){return t.openEnd}function Ye(){return me(new Date)}function qe(t){const e=K.c(4),{hiddenOngoing:n}=t,s=n===void 0?0:n,o=X();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=r.jsx(ie,{size:24,className:"text-muted-foreground/60"}),e[0]=a):a=e[0];let l;return e[1]!==s||e[2]!==o?(l=r.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a,s>0?r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noDatedVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.hiddenOngoingVariants",{count:s})})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{children:o("sandbox.variantCalendar.noScheduledVariants")}),r.jsx("div",{className:"text-xs text-muted-foreground/80",children:o("sandbox.variantCalendar.dateMatcherInfo")})]})]}),e[1]=s,e[2]=o,e[3]=l):l=e[3],l}const te=20,oe=2,le=28,Je=6;function Qe(t){const e=K.c(17),{monthStart:n,variants:s,colorMap:o}=t;let a,l,c,i,d;if(e[0]!==o||e[1]!==n||e[2]!==s){const p=_e(n),g=ke(new Date);a=ce,d="flex-1 min-h-0",l="min-w-[840px]",e[8]===Symbol.for("react.memo_cache_sentinel")?(c=r.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:Se.map(Ze)}),e[8]=c):c=e[8],i=p.map((h,x)=>{const b=Ee(h,s),S=b.reduce(Xe,0),T=le+S*(te+oe)+8;return r.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,v)=>{const y=f.getMonth()===n.getMonth(),N=f.getTime()===g.getTime();return r.jsx("div",{className:ne("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:r.jsx("span",{className:ne("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},v)}),b.map((f,v)=>{const y=pe(o,f.variant.blockKey),N=le+f.lane*(te+oe),$=f.leftUnits/7*100,_=f.widthUnits/7*100,k=f.variant.openStart&&x===0,C=f.variant.openEnd&&x===p.length-1;return r.jsxs(he,{variant:f.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${$}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Je,height:te},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&r.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${x}-${v}`)})]},x)}),e[0]=o,e[1]=n,e[2]=s,e[3]=a,e[4]=l,e[5]=c,e[6]=i,e[7]=d}else a=e[3],l=e[4],c=e[5],i=e[6],d=e[7];let m;e[9]!==l||e[10]!==c||e[11]!==i?(m=r.jsxs("div",{className:l,children:[c,i]}),e[9]=l,e[10]=c,e[11]=i,e[12]=m):m=e[12];let u;return e[13]!==a||e[14]!==d||e[15]!==m?(u=r.jsx(a,{className:d,children:m}),e[13]=a,e[14]=d,e[15]=m,e[16]=u):u=e[16],u}function Xe(t,e){return Math.max(t,e.lane+1)}function Ze(t){return r.jsx("div",{className:"px-2 py-2 text-center",children:t},t)}const J=4,et=32,Y=240;function tt(t){const e=K.c(23),{monthStart:n,variants:s,colorMap:o}=t,a=n,l=U(n,J),c=new Date,i=new Map;for(const E of s){const j=i.get(E.blockKey)??[];j.push(E),i.set(E.blockKey,j)}const d=Array.from(i.entries()).sort(rt),m=l.getTime()-a.getTime(),u=E=>(Math.max(a.getTime(),Math.min(l.getTime(),E.getTime()))-a.getTime())/m*100;let p;e[0]!==a?(p=(E,j)=>U(a,j),e[0]=a,e[1]=p):p=e[1];const g=Array.from({length:J},p),h=c.getTime()>=a.getTime()&&c.getTime()<=l.getTime()?u(c):null,x=X(),b=ce,S="flex-1 min-h-0",T="min-w-[900px] relative";let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f={width:Y},e[2]=f):f=e[2];let v;e[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),e[3]=x,e[4]=v):v=e[4];let y;e[5]!==v?(y=r.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold text-muted-foreground border-r",style:f,children:v}),e[5]=v,e[6]=y):y=e[6];let N;e[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},e[7]=N):N=e[7];const $=g.map(st);let _;e[8]!==$?(_=r.jsx("div",{className:"flex-1 grid",style:N,children:$}),e[8]=$,e[9]=_):_=e[9];let k;e[10]!==y||e[11]!==_?(k=r.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),e[10]=y,e[11]=_,e[12]=k):k=e[12];let C;e[13]!==x||e[14]!==h?(C=h!==null&&r.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${h} / 100)`},children:r.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-2xs font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),e[13]=x,e[14]=h,e[15]=C):C=e[15];const L=d.map(E=>{const[j,D]=E,V=pe(o,j),F=D[0]?.blockLabel??j;return r.jsxs("div",{children:[r.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold text-muted-foreground",style:{height:28},children:r.jsx("div",{className:"px-3 truncate",style:{width:Y},children:F})}),D.map((w,I)=>r.jsxs("div",{className:"flex border-b items-center",style:{height:et},children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[r.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:V.bg}}),r.jsx("span",{className:"truncate text-foreground/80",children:w.label})]}),r.jsxs("div",{className:"relative flex-1 h-full",children:[r.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(nt)}),(()=>{const B=Math.max(w.start.getTime(),a.getTime()),O=Math.min(w.end.getTime(),l.getTime());if(O<=B)return null;const P=u(new Date(B)),H=u(new Date(O))-P;return r.jsx(he,{variant:w,color:V,fadeStart:w.openStart,fadeEnd:w.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${H}% - 2px)`,height:22},children:w.label})})()]})]},I))]},j)});let R;e[16]!==k||e[17]!==C||e[18]!==L?(R=r.jsxs("div",{className:T,children:[k,C,L]}),e[16]=k,e[17]=C,e[18]=L,e[19]=R):R=e[19];let A;return e[20]!==b||e[21]!==R?(A=r.jsx(b,{className:S,children:R}),e[20]=b,e[21]=R,e[22]=A):A=e[22],A}function nt(t,e){return r.jsx("div",{className:"border-r last:border-r-0 border-border/40"},e)}function st(t,e){return r.jsxs("div",{className:"px-2 py-2 text-xs text-muted-foreground border-r last:border-r-0",children:[de[t.getMonth()]?.slice(0,3)," ",t.getFullYear()]},e)}function rt(t,e){return t[0].localeCompare(e[0])}export{Ut as VariantCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a0 as $,Z as f}from"./parse-sections-
|
|
1
|
+
import{a0 as $,Z as f}from"./parse-sections-DqiKgsi7.js";const v="x-deco-matchers-override";function h({pageKey:n,prefix:r,variants:t,selectedIndex:a,decofile:i,meta:s}){if(!n||a<0||a>=t.length)return[];const o=[];for(let e=0;e<=a;e++){const u=t[e];if(!u)continue;const c=u.rule,l=e===a?"1":"0",d=($(c,i,s)?f(c,i,s):null)??`${n}@${r}.${e}.rule`;o.push(`${d}=${l}`)}return o}function p(n,r,t,a){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:n,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:a})}function x({pageKey:n,page:r,sectionIndex:t,sectionLazy:a,mvObj:i,selectedVariantIndex:s,decofile:o,meta:e}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value${r.lazyValues?".value":""}`:"sections"}.${t}${a?".section":""}.variants`,l=Array.isArray(i.variants)?i.variants:[];return h({pageKey:n,prefix:c,variants:l,selectedIndex:s,decofile:o,meta:e})}function y(n,r){const t=`${r}@`;return n.map(a=>a.startsWith(t)?`props.${a.slice(t.length)}`:a)}function B(n,r){if(r.length===0)return n;try{const t=new URL(n,"http://local");t.searchParams.delete(v);for(const a of r)t.searchParams.append(v,a);return n.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return n}}export{x as a,p as b,y as i,B as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,j as a,B as p}from"./index-
|
|
1
|
+
import{c as x,j as a,B as p}from"./index-Cxx5SZO5.js";import{i as h}from"./ArrowLeft-DHx5ko4s.js";const b="p-4";function k(m){const e=x.c(14),{intro:d,back:t,actions:n}=m;let r;e[0]!==n?(r=n?a.jsx("div",{className:"flex shrink-0 items-center gap-2","data-slot":"view-actions",children:n}):null,e[0]=n,e[1]=r):r=e[1];const s=r;if(t){let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(h,{size:16}),e[2]=o):o=e[2];let l;e[3]!==t.label||e[4]!==t.onClick?(l=a.jsxs(p,{variant:"ghost",size:"sm",onClick:t.onClick,children:[o,t.label]}),e[3]=t.label,e[4]=t.onClick,e[5]=l):l=e[5];let f;return e[6]!==s||e[7]!==l?(f=a.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between gap-2 border-b px-4","data-testid":"site-draft-view-header",children:[l,s]}),e[6]=s,e[7]=l,e[8]=f):f=e[8],f}let i;e[9]!==d?(i=a.jsx("p",{className:"min-w-0 flex-1 text-sm text-muted-foreground",children:d}),e[9]=d,e[10]=i):i=e[10];let c;return e[11]!==s||e[12]!==i?(c=a.jsxs("div",{className:"flex shrink-0 flex-wrap items-center justify-between gap-x-4 gap-y-2 px-4 pt-4","data-testid":"site-draft-view-header",children:[i,s]}),e[11]=s,e[12]=i,e[13]=c):c=e[13],c}export{b as S,k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{U as A}from"./url-slug-C8ETdBcF.js";import{aK as a,cU as t,aL as e,b9 as r,cS as s,cT as o,e1 as d,dZ as p,f6 as I,e3 as R,dX as g}from"./index-CgM7-Ro8.js";const v=a({connection_id:e().describe("Connection ID"),selected_tools:t(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),h=500,y=200,_=200,k=20,U=50,E=100,P=20,T=100,C=300,N=100,V=8192,S=v.extend({selected_tools:t(e()).max(h).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).max(h).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).max(h).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),O=a({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),D=a({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:a({type:d("ext-app"),appId:e(),args:p(e(),g()).optional()})}),l=o(["overview","reports","board","site-editor","calendar","experiments","assets","releases","hosting","e2e","analytics","cdn","automations"]),ce=o(["on","off"]),L=new Map([["manual","on"],["auto","on"]]),X=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=L.get(n);return i||(n==="on"||n==="off"?n:null)}const B=a({defaultMainView:a({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:X.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:t(l).max(l.options.length).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:t(D).max(P).optional()});function de(n){return F(n?.cms)??"on"}function pe(n,i){const c=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...c?{defaultMainView:{type:"site-editor"}}:{}}}const f=a({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:p(e(),g()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:r().int().positive().optional(),maxHeight:r().int().positive().optional()}),j=a({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:t(O).max(E).nullable().optional(),layout:B.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(k).nullable().optional(),homePrompts:t(e()).max(U).nullable().optional()}),H=/^[A-Za-z_][A-Za-z0-9_]*$/,w=e().min(1).regex(H,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=R("kind",[a({key:w,kind:d("literal"),value:e().max(V)}),a({key:w,kind:d("secret"),secretId:e().min(1)})]),K=2,q=a({path:e().trim().min(1).max(256).describe("Path (relative to repo root) to the app's package.json directory.")}),G=a({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),apps:t(q).max(K).nullable().optional().describe("Additional monorepo apps previewed beside the one at `path`, each run by its own dev server on the main app's install. Started only when the organization's `multi_app_preview` flag is on."),env:t(z).max(N).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config.")}),W=a({url:e().describe("Repository URL, including its provider host"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:r().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),Z=o(["agent-sandbox","local-api"]),Y={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:r().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:a({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START"),apps:t(e()).nullable().optional().describe("Extra app paths the sandbox was given at SANDBOX_START; null when none were sent.")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path/apps) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},x=a(Y);function ue(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,c={};for(const[u,b]of Object.entries(i))if(!(!b||typeof b!="object")&&!(u!=="agent-sandbox"&&u!=="local-api"))try{c[u]=x.parse(b)}catch{}return c}const $=p(e().describe("userId"),p(e().describe("branch"),I(Z,x))),J=a({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:r().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),Q=t(J).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),ee=o(["smart","code-review","open"]),te=ee.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ae=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),ne=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),ie=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),oe=a({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),se=t(oe).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),m={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),subAgents:t(e()).max(_).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),ui:j.nullable().optional().describe("UI customization settings"),sidebarViews:t(l).max(l.options.length).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:d(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),sidebarViewsSeen:t(l).max(l.options.length).nullable().optional().describe("Views Studio offered this project once on top of an exact sidebarViews list (Experiments and Calendar on a Blocks site). A view listed here shows only when sidebarViews selects it, so hiding it sticks."),repository:W.nullable().optional().describe("Linked repository"),runtime:G.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:Q,siteSlug:e().nullable().optional().describe("The project's site id (asset tenancy, CDN paths, site tokens). Set once when the site is created or imported; any write that would change it is refused."),publishPolicy:te,previewServerUrl:ie,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ae,releases:se,fastPreviewInPlace:ne},be=a({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),url_slug:e().nullable().optional().describe("Name of the project in Studio URLs, unique in the organization"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:a(m).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:$.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:t(v).describe("Connections with their selected tools, resources, and prompts")}),M=a({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});a({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:a(m).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:t(M).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});a({title:e().min(1).max(255).optional().describe("New name"),url_slug:A.nullish().describe("New URL slug. The old one keeps redirecting. Renaming does not change it. null keeps the current slug."),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:a(m).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).optional().describe("New connections (replaces existing)"),prompts:t(M).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{ce as C,H as E,K as R,be as V,C as a,ue as p,de as r,pe as w};
|
|
1
|
+
import{U as A}from"./url-slug-CtldY3Fc.js";import{aK as a,cU as t,aL as e,b9 as r,cS as s,cT as o,e1 as d,dZ as p,f6 as I,e3 as R,dX as g}from"./index-Cxx5SZO5.js";const v=a({connection_id:e().describe("Connection ID"),selected_tools:t(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),h=500,y=200,_=200,k=20,U=50,E=100,P=20,T=100,C=300,N=100,V=8192,S=v.extend({selected_tools:t(e()).max(h).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:t(e()).max(h).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:t(e()).max(h).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),O=a({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),D=a({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:a({type:d("ext-app"),appId:e(),args:p(e(),g()).optional()})}),l=o(["overview","reports","board","site-editor","calendar","experiments","assets","releases","hosting","e2e","analytics","cdn","automations"]),ce=o(["on","off"]),L=new Map([["manual","on"],["auto","on"]]),X=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=L.get(n);return i||(n==="on"||n==="off"?n:null)}const B=a({defaultMainView:a({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:X.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:t(l).max(l.options.length).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:t(D).max(P).optional()});function de(n){return F(n?.cms)??"on"}function pe(n,i){const c=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...c?{defaultMainView:{type:"site-editor"}}:{}}}const f=a({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:p(e(),g()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:r().int().positive().optional(),maxHeight:r().int().positive().optional()}),j=a({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:t(O).max(E).nullable().optional(),layout:B.nullable().optional(),homeTile:f.nullable().optional(),homeTiles:t(f).max(k).nullable().optional(),homePrompts:t(e()).max(U).nullable().optional()}),H=/^[A-Za-z_][A-Za-z0-9_]*$/,w=e().min(1).regex(H,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=R("kind",[a({key:w,kind:d("literal"),value:e().max(V)}),a({key:w,kind:d("secret"),secretId:e().min(1)})]),K=2,q=a({path:e().trim().min(1).max(256).describe("Path (relative to repo root) to the app's package.json directory.")}),G=a({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),apps:t(q).max(K).nullable().optional().describe("Additional monorepo apps previewed beside the one at `path`, each run by its own dev server on the main app's install. Started only when the organization's `multi_app_preview` flag is on."),env:t(z).max(N).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config.")}),W=a({url:e().describe("Repository URL, including its provider host"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:r().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),Z=o(["agent-sandbox","local-api"]),Y={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:r().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:a({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START"),apps:t(e()).nullable().optional().describe("Extra app paths the sandbox was given at SANDBOX_START; null when none were sent.")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path/apps) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},x=a(Y);function ue(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,c={};for(const[u,b]of Object.entries(i))if(!(!b||typeof b!="object")&&!(u!=="agent-sandbox"&&u!=="local-api"))try{c[u]=x.parse(b)}catch{}return c}const $=p(e().describe("userId"),p(e().describe("branch"),I(Z,x))),J=a({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:r().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),Q=t(J).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),ee=o(["smart","code-review","open"]),te=ee.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ae=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),ne=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),ie=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),oe=a({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),se=t(oe).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),m={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),subAgents:t(e()).max(_).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),ui:j.nullable().optional().describe("UI customization settings"),sidebarViews:t(l).max(l.options.length).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:d(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),sidebarViewsSeen:t(l).max(l.options.length).nullable().optional().describe("Views Studio offered this project once on top of an exact sidebarViews list (Experiments and Calendar on a Blocks site). A view listed here shows only when sidebarViews selects it, so hiding it sticks."),repository:W.nullable().optional().describe("Linked repository"),runtime:G.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:Q,siteSlug:e().nullable().optional().describe("The project's site id (asset tenancy, CDN paths, site tokens). Set once when the site is created or imported; any write that would change it is refused."),publishPolicy:te,previewServerUrl:ie,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ae,releases:se,fastPreviewInPlace:ne},be=a({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),url_slug:e().nullable().optional().describe("Name of the project in Studio URLs, unique in the organization"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:a(m).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:$.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:t(v).describe("Connections with their selected tools, resources, and prompts")}),M=a({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});a({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:a(m).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:t(M).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});a({title:e().min(1).max(255).optional().describe("New name"),url_slug:A.nullish().describe("New URL slug. The old one keeps redirecting. Renaming does not change it. null keeps the current slug."),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:a(m).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:t(S).max(y).optional().describe("New connections (replaces existing)"),prompts:t(M).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{ce as C,H as E,K as R,be as V,C as a,ue as p,de as r,pe as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cU as C,aL as T,aK as S}from"./index-
|
|
1
|
+
import{cU as C,aL as T,aK as S}from"./index-Cxx5SZO5.js";import{T as O,a as w,b as L,c as N,d as P}from"./task-board-D0I9TrF7.js";import{e as F}from"./backoff-CrEUbyZT.js";const h={STEP:"decopilot.step",FINISH:"decopilot.finish",THREAD_STATUS:"decopilot.thread.status"},V=Object.values(h),y="notification.created",H=60,j=100,$=2e3,u=C(T().min(1)).max($),x=S({id:T().min(1).max(64),name:T().trim().min(1).max(H),projectIds:u}),Y=C(x).max(j),K=S({pinned:u,hidden:u,dismissed:u,hiddenFolders:u}),ee={pinned:[],hidden:[],dismissed:[],hiddenFolders:[]};S({folders:Y,preferences:K,joinedAt:T().nullable()});const M="project-folders.updated",v="order-monitor.store.evaluated",te=["orders_drop","denied_spike","cancel_spike"],X=3e4,q=1e3;function I(a){const{buildUrl:f,eventTypes:p,name:d,crossTab:_=!1}=a,c=new Map,l=_&&typeof BroadcastChannel<"u"&&typeof navigator<"u"&&typeof navigator.locks<"u";if(l&&!d)throw new Error("createSSESubscription: `name` is required when crossTab");function E(e,t){e.bootDone=!0;for(const s of e.handlers)try{s(t)}catch{}}function A(e){for(const t of e.reconnectHandlers)try{t()}catch{}}function m(e){const t=new EventSource(f(e.key));e.es=t,t.onopen=()=>{e.reconnectAttempt=0,e.bootDone&&(A(e),e.channel?.postMessage({kind:"reconnect"})),e.bootDone=!0},t.onerror=()=>{e.es===t&&t.readyState===EventSource.CLOSED&&k(e)};const s=n=>{e.channel?.postMessage({kind:"event",type:n.type,data:n.data}),E(e,n)};for(const n of p)t.addEventListener(n,s)}function k(e){if(e.refCount<=0||e.reconnectTimer)return;const t=F(X,q,e.reconnectAttempt,2,.5);e.reconnectAttempt++,e.reconnectTimer=setTimeout(()=>{e.reconnectTimer=null,!(e.refCount<=0||!e.isLeader)&&(e.es?.close(),m(e))},t)}function D(e){if(e.refCount<=0){e.releaseLeadership?.(),e.releaseLeadership=null;return}e.isLeader=!0,m(e)}function B(e){if(!l){D(e);return}e.lockAbort=new AbortController,navigator.locks.request(`sse-leader:${d}:${e.key}`,{signal:e.lockAbort.signal},()=>new Promise(t=>{e.releaseLeadership=t,D(e)})).catch(()=>{})}function W(e,t){t.kind==="event"?E(e,new MessageEvent(t.type,{data:t.data})):t.kind==="reconnect"&&A(e)}function g(e){const t=c.get(e);if(t)return t;const s={key:e,refCount:0,handlers:new Set,reconnectHandlers:new Set,bootDone:!1,es:null,isLeader:!1,reconnectAttempt:0,reconnectTimer:null,channel:null,lockAbort:null,releaseLeadership:null};if(c.set(e,s),l){const n=new BroadcastChannel(`sse:${d}:${e}`);n.onmessage=r=>W(s,r.data),s.channel=n}return s}function b(e){e.reconnectTimer&&(clearTimeout(e.reconnectTimer),e.reconnectTimer=null),e.es?.close(),e.es=null,e.releaseLeadership?.(),e.releaseLeadership=null,e.lockAbort?.abort(),e.lockAbort=null,e.channel?.close(),e.channel=null,c.delete(e.key)}return{dispose(){for(const e of[...c.values()])b(e)},subscribe(e,t,s){const n=!c.has(e),r=g(e);r.refCount++,r.handlers.add(t),s&&r.reconnectHandlers.add(s),n&&B(r);let R=!1;return()=>{R||(R=!0,r.handlers.delete(t),s&&r.reconnectHandlers.delete(s),r.refCount--,r.refCount<=0&&b(r))}}}}function o(a,f){const p=new Set(f);return{dispose:()=>a.dispose(),subscribe(d,_,c){const l=E=>{p.has(E.type)&&_(E)};return a.subscribe(d,l,c)}}}const U=[...V,O,w,L,N,P,y,M,v],J=U,z=U,i=I({name:"watch",buildUrl:a=>`/api/${encodeURIComponent(a)}/watch?types=${J.join(",")}`,eventTypes:z,crossTab:!0}),se=o(i,[...V]),re=o(i,[O,w]),ne=o(i,[L]),ae=o(i,[N]),oe=o(i,[P]),ie=o(i,[y]),ce=o(i,[M]),de=o(i,[v]),le=I({buildUrl:a=>`/api/${encodeURIComponent(a)}/watch?scope=all&types=${h.THREAD_STATUS}`,eventTypes:[h.THREAD_STATUS]});export{h as D,ee as E,te as O,H as P,le as a,oe as b,ae as c,se as d,ne as e,ie as n,de as o,ce as p,re as t};
|
package/dist/client/index.html
CHANGED
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
<meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
|
|
51
51
|
<meta name="twitter:image" content="/og-image.png" />
|
|
52
52
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
53
|
-
<script type="module" crossorigin src="/assets/index-
|
|
54
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
53
|
+
<script type="module" crossorigin src="/assets/index-Cxx5SZO5.js"></script>
|
|
54
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DJP2Tw2D.css">
|
|
55
55
|
</head>
|
|
56
56
|
<body>
|
|
57
57
|
<div id="root"></div>
|