decocms 4.499.3 → 4.499.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-DgcQq6OT.js → ActiveShapeUtils-CdFbjrR7.js} +1 -1
- package/dist/client/assets/{AlertCircle-CKip96zJ.js → AlertCircle-D64F5QZT.js} +1 -1
- package/dist/client/assets/{AreaChart-D-FKmMV3.js → AreaChart-CYq0YnIM.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DWXC5SxX.js → ArrowLeft-EtQNZvkL.js} +1 -1
- package/dist/client/assets/{ArrowUp-Dg7Kez2q.js → ArrowUp-BmL0BCqN.js} +1 -1
- package/dist/client/assets/{BarChart-BI8-_eKz.js → BarChart-BUo0UZBI.js} +1 -1
- package/dist/client/assets/{Building02-BhbGM34V.js → Building02-BYNzIC0_.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Nb2-Y2lc.js → CategoricalChart-gICvYmdu.js} +1 -1
- package/dist/client/assets/{CheckCircle-CHf8-Blx.js → CheckCircle-CH2lIoTv.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-B8uBkzm6.js → ChevronSelectorVertical-CKkMIQxq.js} +1 -1
- package/dist/client/assets/{ChevronUp-DdJdulw6.js → ChevronUp-DAOjkMPN.js} +1 -1
- package/dist/client/assets/{Copy01-Tr_gU1aK.js → Copy01-m_uwkeCD.js} +1 -1
- package/dist/client/assets/{CreditCard01-Cv44glOw.js → CreditCard01-KdIaDPg-.js} +1 -1
- package/dist/client/assets/{DotsVertical-9_2O7H2x.js → DotsVertical-KRHoqp1L.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CSAzz0sp.js → ErrorBarContext-DIkwMkDv.js} +1 -1
- package/dist/client/assets/{Globe04-D3iPe8Pc.js → Globe04-CHfMY--P.js} +1 -1
- package/dist/client/assets/{Image01-BfROTBI_.js → Image01-B9K7stDA.js} +1 -1
- package/dist/client/assets/{Key01-BeLvSel3.js → Key01-c7pIbph9.js} +1 -1
- package/dist/client/assets/{Link01-Cej02QtC.js → Link01-DTA9h0Tu.js} +1 -1
- package/dist/client/assets/{LinkBroken01-C4y5s5BD.js → LinkBroken01-mDg_NFsQ.js} +1 -1
- package/dist/client/assets/{Monitor01-CDLuLXD2.js → Monitor01-tGDWsmdz.js} +1 -1
- package/dist/client/assets/{Play-WH2tJGci.js → Play-BLgdJi2k.js} +1 -1
- package/dist/client/assets/{Plus-B7ghEA56.js → Plus-pPXfDuHo.js} +1 -1
- package/dist/client/assets/{SearchMd-DyqBdeBV.js → SearchMd-DeQ9Yg2y.js} +1 -1
- package/dist/client/assets/{Sector-CR2hSKiQ.js → Sector-BRuBdQGv.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BZ853zJ_.js → ShoppingBag01-B29gM6zx.js} +1 -1
- package/dist/client/assets/{Sun-uTZ6vkYv.js → Sun-D1zmKedp.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CaMjqXcB.js → SwitchHorizontal01-DqVKqG_v.js} +1 -1
- package/dist/client/assets/{Tool01-DznnxM5_.js → Tool01-lGWsEi__.js} +1 -1
- package/dist/client/assets/{Trash01-_5jcVImt.js → Trash01-DiDmAdCb.js} +1 -1
- package/dist/client/assets/{Upload01-thivCY-D.js → Upload01-DMts0djm.js} +1 -1
- package/dist/client/assets/{User01-B9FM9Mf_.js → User01-_d4aL8so.js} +1 -1
- package/dist/client/assets/{UserSquare-CyTwJikM.js → UserSquare-DEMY8dZu.js} +1 -1
- package/dist/client/assets/{Users01-BZbPKUiW.js → Users01-BXstoO15.js} +1 -1
- package/dist/client/assets/{XAxis-CD5mzHHS.js → XAxis-D8Y5Kl9D.js} +1 -1
- package/dist/client/assets/{XClose-CfzTTVMn.js → XClose-2vYA1mGz.js} +1 -1
- package/dist/client/assets/{ZoomOut-C1q2p3OF.js → ZoomOut-Dncux2m4.js} +1 -1
- package/dist/client/assets/{access-gate-Bxq1Hlbn.js → access-gate-D8G3JOM8.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BGTbgW-i.js → add-connection-dialog-B5koNYc3.js} +1 -1
- package/dist/client/assets/{agent-analytics-CDewKQCM.js → agent-analytics-DLUHcg3e.js} +1 -1
- package/dist/client/assets/agent-app-DzLJcblb.js +1 -0
- package/dist/client/assets/{agent-assets-DfijL9Fx.js → agent-assets-B1bgJ5fo.js} +1 -1
- package/dist/client/assets/{agent-automation-BvBJkvGT.js → agent-automation-Bv-uIzMa.js} +1 -1
- package/dist/client/assets/{agent-automations-9wDIPFhf.js → agent-automations-DF7i-4sf.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DXnppISv.js → agent-connect-sources-lkHg-cNh.js} +1 -1
- package/dist/client/assets/agent-deck-BZEp8fRL.js +1 -0
- package/dist/client/assets/{agent-e2e-CP-dgiPD.js → agent-e2e-B14Xfx41.js} +1 -1
- package/dist/client/assets/{agent-experiments-BsCiftRb.js → agent-experiments-DZm0rMa9.js} +1 -1
- package/dist/client/assets/{agent-file-DQXP6Kie.js → agent-file-DqhHVftY.js} +1 -1
- package/dist/client/assets/{agent-hosting-lv0YqG7F.js → agent-hosting-DW8hkmOy.js} +1 -1
- package/dist/client/assets/{agent-icon-BzQJojFn.js → agent-icon-DsEoh1uc.js} +1 -1
- package/dist/client/assets/agent-library-Pk0IAtu0.js +1 -0
- package/dist/client/assets/agent-library-file-Dv8aM-7k.js +1 -0
- package/dist/client/assets/{agent-monitor-DIWW-oja.js → agent-monitor-AJmZ909K.js} +1 -1
- package/dist/client/assets/{agent-overview-zU7UtX4N.js → agent-overview-C_GU16D4.js} +1 -1
- package/dist/client/assets/agent-settings-OLjHIWXV.js +1 -0
- package/dist/client/assets/{agent-site-editor-6IARQa9S.js → agent-site-editor-DEB1cxAk.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-CsFcTfpY.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-BoR7A3J6.js → agent-site-editor-content-Dz7QiUBS.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-CHew1bNX.js → agent-site-editor-preview-Bmq9D0yU.js} +3 -3
- package/dist/client/assets/{agent-view-guard-3DhesBoI.js → agent-view-guard-CXRvnSDZ.js} +1 -1
- package/dist/client/assets/agent-view-zjcLXSYx.js +1 -0
- package/dist/client/assets/{agents-list-dewnUR-7.js → agents-list-CsftxeY4.js} +1 -1
- package/dist/client/assets/{ai-providers-Bk7GpeLu.js → ai-providers-BBzQl4jb.js} +1 -1
- package/dist/client/assets/{alert-Cr5T7eOh.js → alert-Dy4dU1R7.js} +1 -1
- package/dist/client/assets/{alert-dialog-CAM3tof4.js → alert-dialog-BURK0-VV.js} +1 -1
- package/dist/client/assets/{analytics-sections-DOa20DSv.js → analytics-sections-DEh2Id4y.js} +1 -1
- package/dist/client/assets/api-keys-B2p99l9x.js +1 -0
- package/dist/client/assets/{api-keys-D9dIGDrT.js → api-keys-CjTAbVY8.js} +1 -1
- package/dist/client/assets/app-editor-CmySzZMn.js +1 -0
- package/dist/client/assets/{asset-utils-koOjLbnD.js → asset-utils-CAN25Z2R.js} +1 -1
- package/dist/client/assets/{auth-CZA10nCD.js → auth-4ol_FgC8.js} +1 -1
- package/dist/client/assets/{auth-catchall-D9UTG4dS.js → auth-catchall-DxIzjexT.js} +1 -1
- package/dist/client/assets/{auth-entry-_sycQOT3.js → auth-entry-Duu0pw9M.js} +1 -1
- package/dist/client/assets/{auth-split-layout-Ch6Z-FVb.js → auth-split-layout-DTCIfCq3.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CxfxW_rA.js → authenticate-and-persist-oauth-DhKApzWO.js} +1 -1
- package/dist/client/assets/{automation-list-row-B8-Gomxx.js → automation-list-row-Cdl0VdqB.js} +1 -1
- package/dist/client/assets/{automation-runs-BnEMFtu-.js → automation-runs-DYfkPQkf.js} +1 -1
- package/dist/client/assets/{automations-CoFLQY3y.js → automations-C09hGDxa.js} +1 -1
- package/dist/client/assets/{autosend-DutXByr0.js → autosend-CZXcTLSS.js} +1 -1
- package/dist/client/assets/{avatar-DeVcKUjn.js → avatar-NvpT5YGL.js} +1 -1
- package/dist/client/assets/{badge-BRYJjM8m.js → badge-BeAl2FZH.js} +1 -1
- package/dist/client/assets/{block-document-Mhky6a-Y.js → block-document-DZ5eZnd4.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DzJ8SMZ1.js → blocks-preview-workspace-context-DZFHbEt5.js} +1 -1
- package/dist/client/assets/{blog-schema-CAX9wXaL.js → blog-schema-CW5b1zW6.js} +1 -1
- package/dist/client/assets/{board-analytics-D110DxNA.js → board-analytics-Dxe4o8ip.js} +1 -1
- package/dist/client/assets/{buckets-C9rFvK2M.js → buckets-CHH4zUVE.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DR2Es921.js → build-improve-prompt-doc-DtDq3oLF.js} +1 -1
- package/dist/client/assets/{calendar-CKSj2y-l.js → calendar-BTm6tG9I.js} +1 -1
- package/dist/client/assets/{capability-load-error-C29lQbTt.js → capability-load-error-_NmD-cOl.js} +1 -1
- package/dist/client/assets/{category-editor-zrsILNC7.js → category-editor-DYUGLxsQ.js} +1 -1
- package/dist/client/assets/{chart-BGPsHSIz.js → chart-Ca9eR_5Y.js} +1 -1
- package/dist/client/assets/{chat-context-B7ixwukH.js → chat-context-DPuof8Lx.js} +1 -1
- package/dist/client/assets/{chat-draft-BrKCO6YT.js → chat-draft-CoTQGBD-.js} +1 -1
- package/dist/client/assets/{checkbox-CVc_t6AM.js → checkbox-B5y_PGOi.js} +1 -1
- package/dist/client/assets/{choose-editor-DXM40rwk.js → choose-editor-DIX9TXPq.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-DhUnD0f3.js → claim-phase-copy-BFw44X02.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B_LhHRr2.js → cli-auth-success-C6re7iuj.js} +1 -1
- package/dist/client/assets/{client-icons-CeVn-7HQ.js → client-icons-CPh76puz.js} +1 -1
- package/dist/client/assets/{collapsible-RIZMF3og.js → collapsible-B1qwBokh.js} +1 -1
- package/dist/client/assets/{collection-detail-BNdoguU8.js → collection-detail-wRbiZfyr.js} +1 -1
- package/dist/client/assets/{collection-display-button-B05GAPuS.js → collection-display-button-BUb3CJ9K.js} +1 -1
- package/dist/client/assets/{collection-search-BhTdq2ic.js → collection-search-CxS-WOiV.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-iLWfdfAw.js → collection-table-wrapper-DieyB_hA.js} +1 -1
- package/dist/client/assets/{collection-tabs-hvD3R6sE.js → collection-tabs-KA7T80MC.js} +1 -1
- package/dist/client/assets/{column-rules-BmNAI4d1.js → column-rules-CI9Lb7JH.js} +1 -1
- package/dist/client/assets/{combobox-BP3ADxyT.js → combobox-Dtc7uzBz.js} +1 -1
- package/dist/client/assets/{command-CfJ_yZL1.js → command-Bv9q3oXB.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-vz_F8aij.js → companion-mcps-section-yLUv_IVZ.js} +1 -1
- package/dist/client/assets/{config-qgEB96wk.js → config-HoNqSkEt.js} +1 -1
- package/dist/client/assets/{connect-layout-Df-yaTtv.js → connect-layout-CaGlUaZ7.js} +1 -1
- package/dist/client/assets/{connect-CmA_24Lv.js → connect-x3ItRenb.js} +1 -1
- package/dist/client/assets/{connection-BjQqCa6n.js → connection-C1oBRXZ9.js} +1 -1
- package/dist/client/assets/{connection-card-B5kZBtAI.js → connection-card-ChCwtZgM.js} +1 -1
- package/dist/client/assets/{connection-detail-llruLhvc.js → connection-detail-D2UPCyZx.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BiaAn5T-.js → connection-form-helpers-Co-FH2GL.js} +1 -1
- package/dist/client/assets/{connections-Rhsq_PHY.js → connections-dkoZ4UmD.js} +1 -1
- package/dist/client/assets/{context-k9qseXLi.js → context-L3sdAYq1.js} +1 -1
- package/dist/client/assets/{context-menu-B1iKTjcY.js → context-menu-ci_wm1iD.js} +1 -1
- package/dist/client/assets/{core.esm-BDr1jUfa.js → core.esm-DBwtvJuA.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-C3LOlpX9.js → create-organization-dialog-5xMTV1HD.js} +1 -1
- package/dist/client/assets/{daily-pulse-D0hL2Mgc.js → daily-pulse-Daf5yGVF.js} +1 -1
- package/dist/client/assets/{device-hint-JTf0kvkS.js → device-hint-BrWR2ybl.js} +1 -1
- package/dist/client/assets/{discover-BYjmCOgU.js → discover-DQJMsLOC.js} +1 -1
- package/dist/client/assets/{domain-settings-8ti6F4Nt.js → domain-settings-BDkTtrtZ.js} +1 -1
- package/dist/client/assets/{drawer-NA8X67Cn.js → drawer-DgE1Osed.js} +1 -1
- package/dist/client/assets/{editor-D7dKbHsZ.js → editor-Cy4QovB4.js} +1 -1
- package/dist/client/assets/{empty-state-DZ11Jnto.js → empty-state-CUrIt7uA.js} +1 -1
- package/dist/client/assets/{empty-state-CXB5kfzH.js → empty-state-DYMOp3h6.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BTRj6ggn.js → extract-connection-data-CILHH2Xu.js} +1 -1
- package/dist/client/assets/{feature-gate-DUnCy-Qc.js → feature-gate-YfudQg0F.js} +1 -1
- package/dist/client/assets/{feature-paywall-BtZlJS8N.js → feature-paywall-DRC24-WT.js} +1 -1
- package/dist/client/assets/{file-explorer-ahAqk6OL.js → file-explorer-Dn5VXdTz.js} +1 -1
- package/dist/client/assets/{file-preview-DLq_TOpg.js → file-preview-BOfVvGBK.js} +1 -1
- package/dist/client/assets/{file-share-button-Boymlg-_.js → file-share-button-Ds1jkcUw.js} +1 -1
- package/dist/client/assets/{file-type-icon-CR_8nRKJ.js → file-type-icon-DGZn7b1q.js} +1 -1
- package/dist/client/assets/flat-project-DohBB_k-.js +1 -0
- package/dist/client/assets/{folder-icon-BKmLVsTk.js → folder-icon-NJlrSxZ7.js} +1 -1
- package/dist/client/assets/{form-BBSMmS7M.js → form-5FKfuXwS.js} +1 -1
- package/dist/client/assets/{general-C_ztpdNf.js → general-BdG9aUE5.js} +1 -1
- package/dist/client/assets/{home-B4BBGMuj.js → home-Rt2zQeR1.js} +1 -1
- package/dist/client/assets/{icon-button-DkGaGjbK.js → icon-button-BIVgkjge.js} +1 -1
- package/dist/client/assets/{index-JcJUDiMG.js → index-807EZ9UE.js} +1 -1
- package/dist/client/assets/{index-BFNmnlkM.js → index-BFhkoNSH.js} +1 -1
- package/dist/client/assets/{index-Dv-VqjPz.js → index-CPTOUBV5.js} +1 -1
- package/dist/client/assets/{index-BEWyz4IL.js → index-CVUxtkJO.js} +1 -1
- package/dist/client/assets/{index-CvkEkbZF.js → index-Cgvxdf_Q.js} +2 -2
- package/dist/client/assets/{index-Cz6k2mHL.js → index-CnJlMbWp.js} +1 -1
- package/dist/client/assets/{index-DNz5LfZo.js → index-D2YD4wQb.js} +1 -1
- package/dist/client/assets/{index-m_iMIYWi.js → index-DCV1G4Vi.js} +3 -3
- package/dist/client/assets/{index-C6YI2JtB.js → index-DPnYGLNH.js} +1 -1
- package/dist/client/assets/{index-CIkbTjtJ.js → index-DQzSsgCm.js} +1 -1
- package/dist/client/assets/{index-wv7M3764.js → index-DsrMcmtK.js} +1 -1
- package/dist/client/assets/{index-CtrX9wjc.js → index-KYovqQVt.js} +1 -1
- package/dist/client/assets/{index-redirect-uIRRxmIA.js → index-redirect-Bn1MaA0x.js} +1 -1
- package/dist/client/assets/{index-CWwSTXul.js → index-urrD3slz.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D-zgijef.js → infiniteQueryObserver-DwnyW_tg.js} +1 -1
- package/dist/client/assets/{infra-billing-B_ALAMr6.js → infra-billing-C7Gt7pP6.js} +1 -1
- package/dist/client/assets/{input-ChjC7XxY.js → input-BvEtvuLy.js} +3 -3
- package/dist/client/assets/{input-BqrqWGgY.js → input-D1FQHGyA.js} +1 -1
- package/dist/client/assets/{integration-icon-Cie7dlB4.js → integration-icon-B9BPa6xZ.js} +1 -1
- package/dist/client/assets/{jira-icon-B-lNy42i.js → jira-icon-BPd8rXDD.js} +1 -1
- package/dist/client/assets/{label-B7m6NrjR.js → label-8JLWVV6w.js} +1 -1
- package/dist/client/assets/{layout-Gg6sfuOK.js → layout-CteePcNB.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BSjkPeUW.js → legacy-agents-deep-BU9G_qyx.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DGr5DSt-.js → legacy-main-redirect--KMXMJZX.js} +1 -1
- package/dist/client/assets/library-Bk-wI1G3.js +1 -0
- package/dist/client/assets/{library-tab-Bx7zV5q2.js → library-tab-BFAr00ch.js} +1 -1
- package/dist/client/assets/{login-BvuIcKwC.js → login-DI6I_2QT.js} +1 -1
- package/dist/client/assets/{markdown-Cyku6Bit.js → markdown-uBKSlcRL.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-_GpfDdeh.js → mcp-app-renderer-CErXUSq-.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DeKiTKLu.js → mcp-oauth-AlD-TzSE.js} +1 -1
- package/dist/client/assets/{mcp-oauth-oyIK_tB1.js → mcp-oauth-sRx18rfQ.js} +1 -1
- package/dist/client/assets/{members-DNBLZQhM.js → members-CPBPwKZ1.js} +1 -1
- package/dist/client/assets/{memory-BtqyTWr8.js → memory-CJihkZvO.js} +1 -1
- package/dist/client/assets/{mini-report-page-DfIvIWa4.js → mini-report-page-DFzjTxjy.js} +1 -1
- package/dist/client/assets/{mock-board-xsoKwtdR.js → mock-board-biK2PfSA.js} +1 -1
- package/dist/client/assets/{monaco-editor-BcVwR88i.js → monaco-editor-BsWCzYXO.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DNdMRFxn.js → monitoring-stats-row-IO7yauKf.js} +1 -1
- package/dist/client/assets/{multi-select-CfULd_Rx.js → multi-select-BNjoAfeC.js} +1 -1
- package/dist/client/assets/{mustache-o_TIeFdF.js → mustache-rvHVzPnO.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CCTwabFu.js → new-project-dialog-BNMMgasu.js} +1 -1
- package/dist/client/assets/{oauth-callback-DP4tF534.js → oauth-callback-BeTiKSrh.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DnRBh9uO.js → oauth-callback-ai-provider-DDLk0zHp.js} +1 -1
- package/dist/client/assets/{onboarding-yow8oG4G.js → onboarding-BjDnSa2-.js} +1 -1
- package/dist/client/assets/{openai-conversation-d_Xs65HZ.js → openai-conversation-B69u3s77.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-9OadUgjT.js → optimistic-project-sidebar-views-bgF9KdQy.js} +1 -1
- package/dist/client/assets/{organization-choice-CDDi_uTO.js → organization-choice-udNpLdVM.js} +1 -1
- package/dist/client/assets/{orgs-CUmDeH_J.js → orgs-BXO2vhOY.js} +1 -1
- package/dist/client/assets/{page-seo-form--bS1Q_MY.js → page-seo-form-zD7DmA6N.js} +1 -1
- package/dist/client/assets/{pair-Bjrecdzi.js → pair-DIssvTMn.js} +1 -1
- package/dist/client/assets/{plan-ladder-B2h7Dujg.js → plan-ladder-CAWIPKc5.js} +1 -1
- package/dist/client/assets/{popover-KZcyVDI5.js → popover-13pjOuZU.js} +1 -1
- package/dist/client/assets/{post-calendar-Fmw8glqd.js → post-calendar-rAhG8kBe.js} +1 -1
- package/dist/client/assets/{post-editor-Dsj5Ibag.js → post-editor-B6gbS3Ci.js} +1 -1
- package/dist/client/assets/{preview-content-Dh8Rmbe6.js → preview-content-DLC7444f.js} +1 -1
- package/dist/client/assets/{preview-dialog-Bml9zm4Y.js → preview-dialog-CjNOBFAp.js} +1 -1
- package/dist/client/assets/{preview-panel-B_1L-tuG.js → preview-panel-ClNcZ7Jq.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DoSgNDYX.js → product-picker-dialog-9jWzS0xD.js} +1 -1
- package/dist/client/assets/{profile-DjPOIV3n.js → profile-szk-J5OE.js} +1 -1
- package/dist/client/assets/{project-app-view-DhXwsdyH.js → project-app-view-BScfdH5R.js} +1 -1
- package/dist/client/assets/{project-feed-Cg0FAsjP.js → project-feed-D8bVgmrv.js} +1 -1
- package/dist/client/assets/{project-icon-Da9vkmla.js → project-icon-BEB7bo0T.js} +1 -1
- package/dist/client/assets/project-reports-CYk0gIHi.js +1 -0
- package/dist/client/assets/project-tasks-T7wij8vs.js +1 -0
- package/dist/client/assets/{projects-empty-state-mNzYEnJq.js → projects-empty-state-GodmIrGy.js} +1 -1
- package/dist/client/assets/{projects--BD3Pi5O.js → projects-zc5zuYNt.js} +1 -1
- package/dist/client/assets/{prompts-867OeL4C.js → prompts-C1AIYXZy.js} +1 -1
- package/dist/client/assets/record-editor-D8HTL-dd.js +1 -0
- package/dist/client/assets/redirect-editor-C5Fcvp6l.js +1 -0
- package/dist/client/assets/reports-BZvTaNDE.js +1 -0
- package/dist/client/assets/{reports-CDcs9KF3.js → reports-Cd8g8CNj.js} +1 -1
- package/dist/client/assets/{reports-onboarding-C1hpBv4P.js → reports-onboarding-8b6ysmBv.js} +1 -1
- package/dist/client/assets/{reports-tab-ChkUNvxL.js → reports-tab-BI41LuK6.js} +2 -2
- package/dist/client/assets/{repositories-cVNrUSk6.js → repositories-SY3BCP97.js} +1 -1
- package/dist/client/assets/{repository-binding-Diab2gJI.js → repository-binding-OIkiiBn_.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CAPqT49B.js → repository-import-picker-BD05Qbz9.js} +1 -1
- package/dist/client/assets/{repository-picker-wpyEK2Xc.js → repository-picker-DHYERC22.js} +1 -1
- package/dist/client/assets/{require-capability-BVRaCsRX.js → require-capability-HLF-G2Gn.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BlMmzcBE.js → required-auth-layout-COVLs567.js} +1 -1
- package/dist/client/assets/{reset-password-DEXRYELW.js → reset-password-D3tROrku.js} +1 -1
- package/dist/client/assets/{resizable-B1DqKMtx.js → resizable-CYK8YYKx.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-B4Xubt6P.js → resolve-tab-icon-DRYlqyoT.js} +1 -1
- package/dist/client/assets/{review-settings-x4SlctNv.js → review-settings-DpOwh6kJ.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-C0PrMBov.js → rich-text-link-control-yKpCLxk-.js} +1 -1
- package/dist/client/assets/{roles-C7UEXuzR.js → roles-H-ySJM8T.js} +1 -1
- package/dist/client/assets/route-0IOE_iwR.js +1 -0
- package/dist/client/assets/{route-BZiixBAG.js → route-DYvSeMz7.js} +1 -1
- package/dist/client/assets/{route-DZ6_uTYn.js → route-Dr_7m0Tv.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-BbKz7DQH.js → runnable-block-editor-B77rsBAp.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DOC3PBsO.js → sandbox-lifecycle-context-cevNxEEE.js} +1 -1
- package/dist/client/assets/{schema-3_3MP7ZZ.js → schema-CLUxJ2Aq.js} +1 -1
- package/dist/client/assets/{scroll-area-ClRSjtLV.js → scroll-area-BerbxwSa.js} +1 -1
- package/dist/client/assets/{search-input-9d3onxt-.js → search-input-Eqbgvt1Z.js} +1 -1
- package/dist/client/assets/{search-toggle-BFbMmpZT.js → search-toggle-DjnCmeKu.js} +1 -1
- package/dist/client/assets/{secret-picker-4GV6jMAI.js → secret-picker-D_IInK4O.js} +1 -1
- package/dist/client/assets/{secrets-DWQ4G6Sx.js → secrets-ChTLi-FR.js} +1 -1
- package/dist/client/assets/{sections-editor-DLdVQU9n.js → sections-editor-BcCRV-fD.js} +1 -1
- package/dist/client/assets/{select-BYlHrgDe.js → select-CTpu637-.js} +1 -1
- package/dist/client/assets/{select-model-1_S8Jip8.js → select-model-BwS3mp6E.js} +1 -1
- package/dist/client/assets/{seo-editor-DcLNXiwq.js → seo-editor-CL5enOUs.js} +1 -1
- package/dist/client/assets/{separator-DtFDelDc.js → separator-BHuQN-Ab.js} +1 -1
- package/dist/client/assets/{settings-tab-D92XwErA.js → settings-tab-CHZtgFBe.js} +1 -1
- package/dist/client/assets/{sheet-Dt9lpT7b.js → sheet-C6FCafA6.js} +1 -1
- package/dist/client/assets/{shell-layout-Bv5Sek6Y.js → shell-layout-CGyXmROi.js} +1 -1
- package/dist/client/assets/{skills-6-fiePmJ.js → skills-F5Uw4Pv1.js} +1 -1
- package/dist/client/assets/{slider-CKduu4Fn.js → slider-d3xYNxIE.js} +1 -1
- package/dist/client/assets/{sortable.esm-DPSFDajj.js → sortable.esm-C6z3vfiq.js} +1 -1
- package/dist/client/assets/{sso-DkPhSrvw.js → sso-CmIeF-7l.js} +1 -1
- package/dist/client/assets/{suggestion-DOpLmNQe.js → suggestion-TsE32nPi.js} +1 -1
- package/dist/client/assets/{switch-AEq1Ywu_.js → switch-TCI26U0b.js} +1 -1
- package/dist/client/assets/{symbol-C4xjMjdj.js → symbol-Bmeb5mrx.js} +1 -1
- package/dist/client/assets/{synced-repos-DoTaXu1d.js → synced-repos-CFRe6JC2.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-D0kyNG52.js → tab-icon-glyph-gi6BIarB.js} +1 -1
- package/dist/client/assets/{table-xlf7vkj_.js → table-pVUW2rwH.js} +1 -1
- package/dist/client/assets/{tabs-D7DC2cRI.js → tabs-BE3vAj8m.js} +1 -1
- package/dist/client/assets/{task-board-BdDYkWlj.js → task-board-90M9g_fi.js} +1 -1
- package/dist/client/assets/{task-route-CUv19cmC.js → task-route-CS8UQngR.js} +1 -1
- package/dist/client/assets/{task-status-DBiu_sll.js → task-status-C9ibacuz.js} +1 -1
- package/dist/client/assets/taskboard-analytics-D8c5pILu.js +1 -0
- package/dist/client/assets/tasks-B9K3xklH.js +1 -0
- package/dist/client/assets/{tasks-CqusizRk.js → tasks-BqDBNIqA.js} +1 -1
- package/dist/client/assets/{textarea-I3De7vqg.js → textarea-BpAK_nVQ.js} +1 -1
- package/dist/client/assets/{thread-analytics-CRKk825k.js → thread-analytics-DIkW4P-1.js} +1 -1
- package/dist/client/assets/{thread-button-DXETp5tJ.js → thread-button-EBdfzXFx.js} +1 -1
- package/dist/client/assets/{thread-intent-C-TbGTua.js → thread-intent-CRpeRnx2.js} +1 -1
- package/dist/client/assets/{thread-route-D_yIM5gK.js → thread-route-Ck1dYsiI.js} +1 -1
- package/dist/client/assets/{thread-route-BhnTkbv5.js → thread-route-zMAwqLeS.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BY8IWwzS.js → thread-sheet-body-CT23RfVg.js} +1 -1
- package/dist/client/assets/{time-range-picker-L6TIyBjU.js → time-range-picker-dZaUQ5ot.js} +1 -1
- package/dist/client/assets/{toggle-group-Br_OBwpv.js → toggle-group-Cmucm9d_.js} +1 -1
- package/dist/client/assets/{tool-namespace-KxcOJjNS.js → tool-namespace-W6oSGBwY.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CzlG5jfK.js → toolbar-icon-button-D_zSUxYE.js} +1 -1
- package/dist/client/assets/{tooltip-CQtbKEbv.js → tooltip-CiYSgLFK.js} +1 -1
- package/dist/client/assets/{tooltipContext-CRvwH17A.js → tooltipContext-Daig5_qo.js} +1 -1
- package/dist/client/assets/{track-DSZ6JNAX.js → track-BNVgjI-e.js} +1 -1
- package/dist/client/assets/{types-C1Mw_99A.js → types-DzWYDlOK.js} +1 -1
- package/dist/client/assets/{url-slug-CTpJRedE.js → url-slug-BtTWMETT.js} +1 -1
- package/dist/client/assets/{usage-stats-CUfUVubb.js → usage-stats-BZiqC0Eq.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CjzrdRNJ.js → use-ai-providers-D_-p2XHZ.js} +1 -1
- package/dist/client/assets/{use-automations-rSR1F0M4.js → use-automations-AknZaEXT.js} +1 -1
- package/dist/client/assets/{use-autosave-DMLPE4t_.js → use-autosave-DOY-TitN.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-C79Hg2yc.js → use-chat-layout-state-BGJ7hecp.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-BRFRCeuv.js → use-chat-navigation-Dn06-EpQ.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BXc6ohp1.js → use-clock-tick-vjL0x3S6.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DSYtVNc7.js → use-connect-companion-Cfgp9MjD.js} +1 -1
- package/dist/client/assets/{use-connection-BHRfoOud.js → use-connection-BReUf0ym.js} +1 -1
- package/dist/client/assets/{use-copy-Csln4Pda.js → use-copy-BA_1zlIX.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CUR-7WWu.js → use-create-virtual-mcp-mFuwkPSo.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DLPMhDmo.js → use-date-fns-locale-BtKmaD89.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DdZOXKrA.js → use-debounced-autosave-BgCQLSRj.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C_VfXq2U.js → use-debounced-value-DppivyxK.js} +1 -1
- package/dist/client/assets/{use-deco-credits-PK7G7t4U.js → use-deco-credits-C6g5nuGf.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-3d9-CwOW.js → use-decopilot-events-BAyb-mQF.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CDExFOVk.js → use-delete-connection-xCFE_9as.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CvxHuxOS.js → use-deployment-admin-k8c5st8B.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-CiixVwYS.js → use-ensure-project-folder-C-CBLCjO.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-nXHVGGIA.js → use-fast-preview-draft-url-DpZxJT8R.js} +1 -1
- package/dist/client/assets/{use-file-configs-BUqTgf7p.js → use-file-configs-D-lKeneW.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CGgZOckb.js → use-infinite-scroll-BKpwTLbY.js} +1 -1
- package/dist/client/assets/{use-join-requests-BnD3GHpg.js → use-join-requests-BFtAo-Nh.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-D2yVxw9s.js → use-main-panel-tabs-DeC1fHi6.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D-wQ9FWj.js → use-mcp-auth-status-I_Qut9IE.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CBoRmtFo.js → use-mcp-client-BnJ4CmVv.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-C3H87HP4.js → use-mcp-prompts-pprT3y3c.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BfdbHPtH.js → use-mcp-tools-nBYl_9Cj.js} +1 -1
- package/dist/client/assets/{use-members-DCcQy8NS.js → use-members-CjMEwjKK.js} +1 -1
- package/dist/client/assets/{use-mobile-DHDQrS92.js → use-mobile-CaE2VxXh.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CBJVz0YU.js → use-navigate-to-agent-C9CNI3wT.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-Dhap32-H.js +1 -0
- package/dist/client/assets/{use-open-billing-url-DYalJRBM.js → use-open-billing-url-C77XyoLh.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CQhEfpFE.js → use-org-auth-client-CA-MyDFx.js} +1 -1
- package/dist/client/assets/{use-org-fs-CR48g8_P.js → use-org-fs-BvswiWhM.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-C4CqaNPe.js → use-org-repo-syncs-BZsUkIPj.js} +1 -1
- package/dist/client/assets/{use-org-sso-DqlYZMd5.js → use-org-sso-uVC0Aeyi.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Co0Vqzi3.js → use-organization-roles-DHpuUweO.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BoQ-3bUn.js → use-organization-settings-CcdWKIZG.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-5IaTMf0W.js → use-panel-navigate-BwaxzeCI.js} +1 -1
- package/dist/client/assets/{use-project-scope-DhGkOd7x.js → use-project-scope-DIXfNogh.js} +1 -1
- package/dist/client/assets/{use-releases-B2i3mkXU.js → use-releases-By4PMCal.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Z-QISjJo.js → use-reports-diagnostic-Bh5K_gdR.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-4HFbLlVd.js → use-sandbox-events-BuzKGb6t.js} +1 -1
- package/dist/client/assets/{use-secrets-ObT7hB_J.js → use-secrets-Be9wdGLq.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CKThWLiS.js → use-section-preview-base-Dah5aW9A.js} +1 -1
- package/dist/client/assets/{use-tags-BBeLFk4l.js → use-tags-CPiAfrfw.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BnXBdPT0.js → use-task-board-analytics-BzVxQLaZ.js} +1 -1
- package/dist/client/assets/{use-task-board-events-Dmw0mTzd.js → use-task-board-events-AoW8CB16.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-C8Xn9Vf_.js → use-task-board-item-prs-Cm1nLJbF.js} +1 -1
- package/dist/client/assets/{use-task-board-items-xt5k2e3E.js → use-task-board-items-YxLDtbf_.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BtIFipqq.js → use-task-metadata-B9JzZCwZ.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-D9xOHQFN.js → use-thread-analytics-DKolGKrG.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-v6L6hLPo.js → use-thread-outputs-BeW_ZEj9.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CXvSW1zP.js +1 -0
- package/dist/client/assets/{useQueries-D7sPNAbk.js → useQueries-C5yFykqS.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CFJbE4jf.js +1 -0
- package/dist/client/assets/{users-CohA04WM.js → users-BPaHw_X_.js} +1 -1
- package/dist/client/assets/{utils-CZAlkiGL.js → utils-D8EfxtqS.js} +1 -1
- package/dist/client/assets/{variant-calendar-YlhockIc.js → variant-calendar-Bo3CCQPM.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-Ch08PbYs.js → variant-matcher-override-B8Xy0hwV.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-6GOtrYS3.js → view-mode-toggle-CHGut8Gu.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BvdMl-5h.js → virtual-mcp-DgndW5tn.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-CuB8RiNq.js → watch-sse-pool-DNUoCrky.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BP_zJSbn.js +0 -1
- package/dist/client/assets/agent-deck-RzemuGl7.js +0 -1
- package/dist/client/assets/agent-library-CC0bjZj1.js +0 -1
- package/dist/client/assets/agent-library-file-BSlUtfTI.js +0 -1
- package/dist/client/assets/agent-settings-6NCbPPF8.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CKJCcxe8.js +0 -2
- package/dist/client/assets/agent-view-B3KFsBPm.js +0 -1
- package/dist/client/assets/api-keys-CO4qUFEE.js +0 -1
- package/dist/client/assets/app-editor-C1ZLULDh.js +0 -1
- package/dist/client/assets/flat-project-B34hikno.js +0 -1
- package/dist/client/assets/library-BQTdBCeN.js +0 -1
- package/dist/client/assets/project-reports-D7AvO1-d.js +0 -1
- package/dist/client/assets/project-tasks-Bkis008g.js +0 -1
- package/dist/client/assets/record-editor-ujycT1Q2.js +0 -1
- package/dist/client/assets/redirect-editor-COyH32KW.js +0 -1
- package/dist/client/assets/reports-BdmJCm1H.js +0 -1
- package/dist/client/assets/route-C1lmUe_X.js +0 -1
- package/dist/client/assets/taskboard-analytics-Bea9cC2r.js +0 -1
- package/dist/client/assets/tasks-BX3JKxDq.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-BtqPnhyC.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DVc0gFuD.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-kmxM7DtM.js +0 -1
package/dist/client/assets/{runnable-block-editor-BbKz7DQH.js → runnable-block-editor-B77rsBAp.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a_ as Cr,c as z,o as In,m as Y0,K as z9,b as d9,j as r,l as K,B as x9,a4 as Fn,aU as Er,e as On,r as F,t as _9,ah as Q9,a$ as wr,b0 as n0,n as _r,I as I9,ap as Dn,T as se,at as I0,U as C9,V as X9,X as e0,a0 as Ar,a1 as Rr,b1 as re,au as we,aZ as Pr,h as x0,v as Ve,aK as Ue,s as Ke,w as $n,q as Ge,D as He,b2 as Mr,H as Ir,a6 as zn,b3 as Fr,aD as Or,aE as Dr,aV as Bn}from"./index-CvkEkbZF.js";import{a as qe}from"./input-ChjC7XxY.js";import{u as Ye,O as $r,c as B9,P as J9,Q as W0,T as _e,N as We,U as N9,C as zr,V as V0,A as Br,B as Vr,y as Ur,q as Kr,z as Gr,W as Vn,t as Un,X as Hr,Y as Ft,Z as qr,_ as Yr,r as H9,$ as w0,a0 as Kn,a1 as Je,a2 as Wr,a3 as Jr,a4 as Zr,a5 as Qr,a6 as Xr,a7 as Gn,g as e1,a8 as Ze,o as t1,a9 as n1,aa as s1,v as r1,ab as i1,ac as o1,ad as Ae,ae as a1,af as U0,ag as l1,ah as c1,ai as L1,aj as d1,ak as u1,al as f1,am as Ot,an as m1,ao as p1,ap as h1,aq as g1}from"./claim-phase-copy-DhUnD0f3.js";import{e as Hn}from"./backoff-CrEUbyZT.js";import{ab as x1,ac as y1,ad as v1,ae as b1,af as j1,ag as S1,ah as k1,ai as N1,aj as T1,a0 as C1,ak as qn,E as E1,al as ie,D as w1,C as _1,am as Yn,a6 as _0,t as A1,d as L0,an as R1,ao as Dt,ap as P1,aa as M1,K as I1,aq as F1,ar as O1}from"./agent-icon-BzQJojFn.js";import{i as Wn}from"./Play-WH2tJGci.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as D1}from"./pair-Bjrecdzi.js";import{i as Qe}from"./ChevronSelectorVertical-B8uBkzm6.js";import{C as oe,a as ae,b as Z9,e as f0,c as le,f as Xe,d as $1}from"./command-CfJ_yZL1.js";import{a as F0,b as O0,P as D0}from"./popover-KZcyVDI5.js";import{s as z1,a as B1,b as V1}from"./utils-CZAlkiGL.js";import{u as Jn}from"./chat-context-B7ixwukH.js";import{S as Zn}from"./scroll-area-ClRSjtLV.js";import{T as A9,a as R9,b as P9}from"./tooltip-CQtbKEbv.js";import{a as et,c as U1}from"./repository-binding-Diab2gJI.js";import{M as Qn}from"./monaco-editor-BcVwR88i.js";import{C as K1}from"./calendar-CKSj2y-l.js";import{T as G1}from"./textarea-I3De7vqg.js";import{L as U9}from"./label-B7m6NrjR.js";import{u as E9}from"./use-new-blocks-editor-BtqPnhyC.js";import{c as H1,d as q1,i as Y1,b as W1}from"./Tool01-DznnxM5_.js";import{i as Xn}from"./SwitchHorizontal01-CaMjqXcB.js";import{s as y0}from"./Plus-B7ghEA56.js";import{E as a0,M as J1,m as Z1,g as $0,u as Q1,s as X1,a as ei,b as ti}from"./usage-stats-CUfUVubb.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-BYlHrgDe.js";import{T as F9,E as ni,R as si}from"./rich-text-link-control-C0PrMBov.js";import{S as tt}from"./switch-AEq1Ywu_.js";import{C as nt,u as st,a as p0,K as rt,P as it,D as ot,c as at,b as lt}from"./core.esm-BDr1jUfa.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-DPSFDajj.js";import{V as ri}from"./view-mode-toggle-6GOtrYS3.js";import{t as v0}from"./ChevronUp-DdJdulw6.js";import{a as fe}from"./Copy01-Tr_gU1aK.js";import{s as ii,a as h0}from"./Image01-BfROTBI_.js";import{s as l0}from"./Trash01-_5jcVImt.js";import{e as N0,a as es}from"./UserSquare-CyTwJikM.js";import{C as oi}from"./combobox-BP3ADxyT.js";import{A as ai,a as li,b as ci,c as Li,g as di,d as ui,e as fi,f as mi}from"./alert-dialog-CAM3tof4.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-C1q2p3OF.js";import{i as z0}from"./Upload01-thivCY-D.js";import{i as ts}from"./AlertCircle-CKip96zJ.js";import{i as ns}from"./DotsVertical-9_2O7H2x.js";import{S as pi}from"./search-input-9d3onxt-.js";import{T as hi,a as gi,c as xi,b as yi}from"./tabs-D7DC2cRI.js";import{u as vi}from"./use-debounced-value-C_VfXq2U.js";import{a as bi,u as ss}from"./use-file-configs-BUqTgf7p.js";import{u as ji,a as ft,i as rs,e as Si,b as zt,f as ki}from"./asset-utils-koOjLbnD.js";import{d as is}from"./use-chat-layout-state-C79Hg2yc.js";import{a as Ni,T as Ti}from"./toggle-group-Br_OBwpv.js";import{g as Ci,f as Ei}from"./thread-intent-C-TbGTua.js";import{t as wi}from"./sandbox-git-api-C7JbVL7R.js";import{d as _i}from"./delay-CnY5UFtP.js";const mt=Cr("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Ai="website/loaders/secret.ts",Ri=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Pi=/^(?:[0-9a-f]{2})*$/i;function A0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function pt(t){return typeof t=="string"&&Pi.test(t)}class Mi extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function R0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>R0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(A0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new Mi(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,R0(i,`${e}/${s}`)]))}function r0(t){return JSON.stringify(t,(e,n)=>{if(!n||typeof n!="object"||Array.isArray(n))return n;const s={};for(const i of Object.keys(n).sort())s[i]=n[i];return s})}async function Ii(t){const e=r0(R0(t)),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}function Fi(t,e,n,s={}){return os("",t,e,n,s)}function os(t,e,n,s,i){if(c0(n,s)||c0(e,s))return n;if(c0(e,n))return s;if(be(n)&&be(s)){const o=be(e)?e:{},a={},l=[...Object.keys(n),...Object.keys(s).filter(c=>!(c in n))];for(const c of l){const L=os(`${t}/${Oi(c)}`,o[c],n[c],s[c],i);L!==void 0&&(a[c]=L)}return a}if(Array.isArray(e)&&Array.isArray(n)&&Array.isArray(s)&&n.length===e.length&&s.length===e.length){const o=[];for(const[a,l]of e.entries()){const c=!c0(l,n[a]),L=!c0(l,s[a]);if(c&&L&&!c0(n[a],s[a]))return Bt(t,n,s,i);o.push(c?n[a]:s[a])}return o}return Bt(t,n,s,i)}function Bt(t,e,n,s){return s.conflicts?.push(t),s.prefer==="theirs"?n:e}function Oi(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function c0(t,e){return r0(t)===r0(e)}function be(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Vt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function as(t,e){return me(t,e)}function Di(t,e){return me(t,"preview-fetch",{path:e})}function $i(t){return as(t,"preview-invoke")}function c5(t){return as(t,"catalog-invoke")}function ls(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function zi(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&ls(n))return n}return null}function cs(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??zi();return n&&ls(n)?new URL(e,n).toString():Di(t,e)}function Bi(t){return cs(t,"/.decofile")}function Vi(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Ut(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function Ls(t,e){const n=me(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=Vi(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const a=new Error(`Failed to read ${e}: ${s.status}`);throw a.status=s.status,a}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(z1(o.content))}}catch{return{kind:"unavailable"}}}async function Ui(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function gt(t){return et(t)?.metadata?.runtime?.path??null}function ds(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function L5(t,e){const n=z.c(16),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=t?ds({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=In(),d=z9.decofile(o);let f;n[0]!==c||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==l||n[5]!==t||n[6]!==L?(f=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(Hi),j=v?.ok?Vt(await v.text()):null;if(j)return j;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return $r(L,t);const p=()=>Ls(t,ht(l,".deco/blocks.gen.json"));if(a){const v=await fetch(Bi(t),{cache:"no-store"}).catch(Gi);if(v?.ok){const y=Vt(await v.text());if(y)return y}const j=await p();if(j.kind==="data")return j.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Ut({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:j.kind==="absent"}),S}const h=await p();if(h.kind==="data")return h.data;const g=new Error("decofile unavailable (preview down, no committed snapshot)");throw g.status=Ut({liveOk:!1,committedAbsent:h.kind==="absent"}),g},n[0]=c,n[1]=a,n[2]=i,n[3]=s,n[4]=l,n[5]=t,n[6]=L,n[7]=f):f=n[7];const u=!!t;let x;n[8]!==c||n[9]!==i?(x=(p,h)=>{if(c||i)return p<3;const g=h.status;return g!==502&&g!==404&&p<2},n[8]=c,n[9]=i,n[10]=x):x=n[10];let m;return n[11]!==d||n[12]!==f||n[13]!==u||n[14]!==x?(m={queryKey:d,queryFn:f,enabled:u,staleTime:3e4,retry:x,retryDelay:Ki},n[11]=d,n[12]=f,n[13]=u,n[14]=x,n[15]=m):m=n[15],Y0(m)}function Ki(t){return Hn(5e3,1e3,t,2,0)}function Gi(){return null}function Hi(){return null}function qi(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function Yi(t){return z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function d5(t,e){const n=z.c(21),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=gt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=qe(t?.virtualMcpId),d=!i&&L==="cms";let f;n[0]!==t||n[1]!==a||n[2]!==c?(f=t?Yi({...t,previewUrl:a,productionUrl:c}):z9.liveMeta(""),n[0]=t,n[1]=a,n[2]=c,n[3]=f):f=n[3];let u;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==l||n[8]!==t||n[9]!==a||n[10]!==c?(u=async()=>{const g=Ji,v=()=>d?Ui(t):Ls(t,ht(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:qi({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const y of j){if(y.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const b=await g(y.baseUrl);if(b)return b}const S=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw S.status=502,S},n[4]=d,n[5]=o,n[6]=i,n[7]=l,n[8]=t,n[9]=a,n[10]=c,n[11]=u):u=n[11];const x=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(g,v)=>(d||i||v.status!==502)&&g<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let h;return n[15]!==f||n[16]!==u||n[17]!==x||n[18]!==m||n[19]!==p?(h={queryKey:f,queryFn:u,enabled:x,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:Wi},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],Y0(h)}function Wi(t){return Hn(5e3,1e3,t,2,0)}async function Ji(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Zi);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Zi(){return null}function je(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function u5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=B9(i);if(!o&&i!==""&&J9(i)&&i in e)return{index:s,resolveType:i,label:je(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===W0||l===_e){const L=o?a:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===We){const x=d[0]?.value??{};let m=x.__resolveType??"";const p=B9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===W0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?N9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&J9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?N9(f):"Section";return{index:s,resolveType:i,label:`Variants of ${u}`,variantOf:u,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&J9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(c)||`Section ${s+1}`,isLazy:o}})}const Qi={provision:0,cloning:1,install:2,dev:3};function Xi(t){return Qi[t.step]}const Kt=48,us=28,fs=3,e2=(()=>{const t=[];let e=0;for(let n=0;n<Kt;n++)n===us?t.push(null):(t.push(e/(Kt-1)*fs),e++);return t})();function t2(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function n2(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?zr[e.kind].long:n[t.step]}const V9="bg-foreground/[0.05]",O9="bg-foreground/[0.09]",s2=Array.from({length:35},()=>Math.random()*1.8),r2=Array.from({length:35},()=>Math.random()<.4);function i2(t){const e=z.c(31),{progress:n,claimPhase:s}=t,i=d9();let o;e[0]!==n?(o=Xi(n),e[0]=n,e[1]=o):o=e[1];const a=o;let l;e[2]!==s||e[3]!==n||e[4]!==i?(l=n2(n,s,t2(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=l):l=e[5];const c=l;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(D1,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let f;e[7]!==c||e[8]!==d?(f=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=f):f=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(o2,{}),e[10]=u):u=e[10];let x;e[11]!==a?(x=r.jsx(K0,{phase:0,current:a,children:u}),e[11]=a,e[12]=x):x=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(l2,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(K0,{phase:1,current:a,children:m}),e[14]=a,e[15]=p):p=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=r.jsx(c2,{}),e[16]=h):h=e[16];let g;e[17]!==a?(g=r.jsx(K0,{phase:2,current:a,children:h}),e[17]=a,e[18]=g):g=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(d2,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(K0,{phase:3,current:a,children:v}),e[20]=a,e[21]=j):j=e[21];let S;e[22]!==g||e[23]!==j||e[24]!==x||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[x,p,g,j]}),e[22]=g,e[23]=j,e[24]=x,e[25]=p,e[26]=S):S=e[26];let y;e[27]===Symbol.for("react.memo_cache_sentinel")?(y=r.jsx("style",{children:`
|
|
1
|
+
import{a_ as Cr,c as z,o as In,m as Y0,K as z9,b as d9,j as r,l as K,B as x9,a4 as Fn,aU as Er,e as On,r as F,t as _9,ah as Q9,a$ as wr,b0 as n0,n as _r,I as I9,ap as Dn,T as se,at as I0,U as C9,V as X9,X as e0,a0 as Ar,a1 as Rr,b1 as re,au as we,aZ as Pr,h as x0,v as Ve,aK as Ue,s as Ke,w as $n,q as Ge,D as He,b2 as Mr,H as Ir,a6 as zn,b3 as Fr,aD as Or,aE as Dr,aV as Bn}from"./index-Cgvxdf_Q.js";import{a as qe}from"./input-BvEtvuLy.js";import{u as Ye,O as $r,c as B9,P as J9,Q as W0,T as _e,N as We,U as N9,C as zr,V as V0,A as Br,B as Vr,y as Ur,q as Kr,z as Gr,W as Vn,t as Un,X as Hr,Y as Ft,Z as qr,_ as Yr,r as H9,$ as w0,a0 as Kn,a1 as Je,a2 as Wr,a3 as Jr,a4 as Zr,a5 as Qr,a6 as Xr,a7 as Gn,g as e1,a8 as Ze,o as t1,a9 as n1,aa as s1,v as r1,ab as i1,ac as o1,ad as Ae,ae as a1,af as U0,ag as l1,ah as c1,ai as L1,aj as d1,ak as u1,al as f1,am as Ot,an as m1,ao as p1,ap as h1,aq as g1}from"./claim-phase-copy-BFw44X02.js";import{e as Hn}from"./backoff-CrEUbyZT.js";import{ab as x1,ac as y1,ad as v1,ae as b1,af as j1,ag as S1,ah as k1,ai as N1,aj as T1,a0 as C1,ak as qn,E as E1,al as ie,D as w1,C as _1,am as Yn,a6 as _0,t as A1,d as L0,an as R1,ao as Dt,ap as P1,aa as M1,K as I1,aq as F1,ar as O1}from"./agent-icon-DsEoh1uc.js";import{i as Wn}from"./Play-BLgdJi2k.js";import{S as $t}from"./sandbox-start-errors-BK_aDCyt.js";import{G as D1}from"./pair-DIssvTMn.js";import{i as Qe}from"./ChevronSelectorVertical-CKkMIQxq.js";import{C as oe,a as ae,b as Z9,e as f0,c as le,f as Xe,d as $1}from"./command-Bv9q3oXB.js";import{a as F0,b as O0,P as D0}from"./popover-13pjOuZU.js";import{s as z1,a as B1,b as V1}from"./utils-D8EfxtqS.js";import{u as Jn}from"./chat-context-DPuof8Lx.js";import{S as Zn}from"./scroll-area-BerbxwSa.js";import{T as A9,a as R9,b as P9}from"./tooltip-CiYSgLFK.js";import{a as et,c as U1}from"./repository-binding-OIkiiBn_.js";import{M as Qn}from"./monaco-editor-BsWCzYXO.js";import{C as K1}from"./calendar-BTm6tG9I.js";import{T as G1}from"./textarea-BpAK_nVQ.js";import{L as U9}from"./label-8JLWVV6w.js";import{u as E9}from"./use-new-blocks-editor-Dhap32-H.js";import{c as H1,d as q1,i as Y1,b as W1}from"./Tool01-lGWsEi__.js";import{i as Xn}from"./SwitchHorizontal01-DqVKqG_v.js";import{s as y0}from"./Plus-pPXfDuHo.js";import{E as a0,M as J1,m as Z1,g as $0,u as Q1,s as X1,a as ei,b as ti}from"./usage-stats-BZiqC0Eq.js";import{S as ce,b as Le,a as de,d as ue,c as m0}from"./select-CTpu637-.js";import{T as F9,E as ni,R as si}from"./rich-text-link-control-yKpCLxk-.js";import{S as tt}from"./switch-TCI26U0b.js";import{C as nt,u as st,a as p0,K as rt,P as it,D as ot,c as at,b as lt}from"./core.esm-DBwtvJuA.js";import{u as ct,s as Lt,S as dt,v as ut,a as J0}from"./sortable.esm-C6z3vfiq.js";import{V as ri}from"./view-mode-toggle-CHGut8Gu.js";import{t as v0}from"./ChevronUp-DAOjkMPN.js";import{a as fe}from"./Copy01-m_uwkeCD.js";import{s as ii,a as h0}from"./Image01-B9K7stDA.js";import{s as l0}from"./Trash01-DiDmAdCb.js";import{e as N0,a as es}from"./UserSquare-DEMY8dZu.js";import{C as oi}from"./combobox-Dtc7uzBz.js";import{A as ai,a as li,b as ci,c as Li,g as di,d as ui,e as fi,f as mi}from"./alert-dialog-BURK0-VV.js";import{b as me}from"./sandbox-url-D3mC8qhT.js";import{b as Re}from"./ZoomOut-Dncux2m4.js";import{i as z0}from"./Upload01-DMts0djm.js";import{i as ts}from"./AlertCircle-D64F5QZT.js";import{i as ns}from"./DotsVertical-KRHoqp1L.js";import{S as pi}from"./search-input-Eqbgvt1Z.js";import{T as hi,a as gi,c as xi,b as yi}from"./tabs-BE3vAj8m.js";import{u as vi}from"./use-debounced-value-DppivyxK.js";import{a as bi,u as ss}from"./use-file-configs-D-lKeneW.js";import{u as ji,a as ft,i as rs,e as Si,b as zt,f as ki}from"./asset-utils-CAN25Z2R.js";import{d as is}from"./use-chat-layout-state-BGJ7hecp.js";import{a as Ni,T as Ti}from"./toggle-group-Cmucm9d_.js";import{g as Ci,f as Ei}from"./thread-intent-CRpeRnx2.js";import{t as wi}from"./sandbox-git-api-C7JbVL7R.js";import{d as _i}from"./delay-CnY5UFtP.js";const mt=Cr("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),Ai="website/loaders/secret.ts",Ri=["website/actions/secrets/encrypt.ts","$live/actions/secrets/encrypt.ts"],Pi=/^(?:[0-9a-f]{2})*$/i;function A0(t){if(!t||typeof t!="object"||Array.isArray(t))return!1;const e=t.__resolveType;return typeof e=="string"&&(e.endsWith("/secret.ts")||e.includes("loaders/secret"))}function pt(t){return typeof t=="string"&&Pi.test(t)}class Mi extends Error{constructor(e){super(`Secret at "${e}" is not encrypted. Re-enter it in the Secret field so it is encrypted before saving.`),this.path=e,this.name="PlaintextSecretError"}path}function R0(t,e=""){if(Array.isArray(t))return t.map((s,i)=>R0(s,`${e}/${i}`));if(!t||typeof t!="object")return t;const n=Object.entries(t);if(A0(t)){const s=t.encrypted;if(s!==void 0&&!pt(s))throw new Mi(e||"/");return Object.fromEntries(n.filter(([i])=>i!=="value"))}return Object.fromEntries(n.map(([s,i])=>[s,R0(i,`${e}/${s}`)]))}function r0(t){return JSON.stringify(t,(e,n)=>{if(!n||typeof n!="object"||Array.isArray(n))return n;const s={};for(const i of Object.keys(n).sort())s[i]=n[i];return s})}async function Ii(t){const e=r0(R0(t)),n=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return Array.from(new Uint8Array(n),s=>s.toString(16).padStart(2,"0")).join("")}function Fi(t,e,n,s={}){return os("",t,e,n,s)}function os(t,e,n,s,i){if(c0(n,s)||c0(e,s))return n;if(c0(e,n))return s;if(be(n)&&be(s)){const o=be(e)?e:{},a={},l=[...Object.keys(n),...Object.keys(s).filter(c=>!(c in n))];for(const c of l){const L=os(`${t}/${Oi(c)}`,o[c],n[c],s[c],i);L!==void 0&&(a[c]=L)}return a}if(Array.isArray(e)&&Array.isArray(n)&&Array.isArray(s)&&n.length===e.length&&s.length===e.length){const o=[];for(const[a,l]of e.entries()){const c=!c0(l,n[a]),L=!c0(l,s[a]);if(c&&L&&!c0(n[a],s[a]))return Bt(t,n,s,i);o.push(c?n[a]:s[a])}return o}return Bt(t,n,s,i)}function Bt(t,e,n,s){return s.conflicts?.push(t),s.prefer==="theirs"?n:e}function Oi(t){return t.replaceAll("~","~0").replaceAll("/","~1")}function c0(t,e){return r0(t)===r0(e)}function be(t){return!!t&&typeof t=="object"&&!Array.isArray(t)}function ht(t,e){const n=(t??"").trim().replace(/^[/\\]+|[/\\]+$/g,"");return n?`${n}/${e}`:e}function Vt(t){let e;try{e=JSON.parse(t)}catch{return null}return typeof e!="object"||e===null||Array.isArray(e)?null:e}function as(t,e){return me(t,e)}function Di(t,e){return me(t,"preview-fetch",{path:e})}function $i(t){return as(t,"preview-invoke")}function c5(t){return as(t,"catalog-invoke")}function ls(t){try{const{hostname:e}=new URL(t);return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}function zi(){if(typeof document>"u")return null;const t=Array.from(document.querySelectorAll("iframe"));for(const e of t){const n=e.getAttribute("src");if(n&&ls(n))return n}return null}function cs(t,e){const n=t.previewUrl??t.getFallbackPreviewUrl?.()??zi();return n&&ls(n)?new URL(e,n).toString():Di(t,e)}function Bi(t){return cs(t,"/.decofile")}function Vi(t){return t===400?"absent":t===404?"unavailable":t>=200&&t<300?"ok":"error"}function Ut(t){return t.liveOk||t.committedAbsent?404:t.liveStatus??502}async function Ls(t,e){const n=me(t,"read"),s=await fetch(n,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,full:!0})}),i=Vi(s.status);if(i==="absent")return{kind:"absent"};if(i==="unavailable")return{kind:"unavailable"};if(i==="error"){const a=new Error(`Failed to read ${e}: ${s.status}`);throw a.status=s.status,a}const o=await s.json();if(typeof o.content!="string")return{kind:"unavailable"};try{return{kind:"data",data:JSON.parse(z1(o.content))}}catch{return{kind:"unavailable"}}}async function Ui(t){const e=`/api/${t.orgSlug}/decofile/${encodeURIComponent(t.virtualMcpId)}/${encodeURIComponent(t.branch)}/meta`,n=await fetch(e,{cache:"no-store"});if(n.status===404)return{kind:"absent"};if(!n.ok){const s=new Error(`Failed to read committed meta: ${n.status}`);throw s.status=n.status,s}try{return{kind:"data",data:await n.json()}}catch{return{kind:"unavailable"}}}function gt(t){return et(t)?.metadata?.runtime?.path??null}function ds(t){const e=`${t.orgSlug}/${t.virtualMcpId}/${t.branch}`;return t.localPreviewUrl?`${e}:local:${t.localPreviewUrl}`:e}function L5(t,e){const n=z.c(16),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=t?ds({...t,localPreviewUrl:s}):"",a=e?.fetchEnabled??!0,l=gt(t?.virtualMcpId),c=qe(t?.virtualMcpId).runtime==="cms",L=In(),d=z9.decofile(o);let f;n[0]!==c||n[1]!==a||n[2]!==i||n[3]!==s||n[4]!==l||n[5]!==t||n[6]!==L?(f=async()=>{if(i){const v=await fetch(new URL("/.decofile",s).toString(),{cache:"no-store"}).catch(Hi),j=v?.ok?Vt(await v.text()):null;if(j)return j;const S=new Error("decofile unavailable (local tunnel unreachable)");throw S.status=502,S}if(c)return $r(L,t);const p=()=>Ls(t,ht(l,".deco/blocks.gen.json"));if(a){const v=await fetch(Bi(t),{cache:"no-store"}).catch(Gi);if(v?.ok){const y=Vt(await v.text());if(y)return y}const j=await p();if(j.kind==="data")return j.data;const S=new Error(`Failed to fetch decofile: ${v?.status??"network error"}`);throw S.status=Ut({liveOk:!!v?.ok,liveStatus:v?.status,committedAbsent:j.kind==="absent"}),S}const h=await p();if(h.kind==="data")return h.data;const g=new Error("decofile unavailable (preview down, no committed snapshot)");throw g.status=Ut({liveOk:!1,committedAbsent:h.kind==="absent"}),g},n[0]=c,n[1]=a,n[2]=i,n[3]=s,n[4]=l,n[5]=t,n[6]=L,n[7]=f):f=n[7];const u=!!t;let x;n[8]!==c||n[9]!==i?(x=(p,h)=>{if(c||i)return p<3;const g=h.status;return g!==502&&g!==404&&p<2},n[8]=c,n[9]=i,n[10]=x):x=n[10];let m;return n[11]!==d||n[12]!==f||n[13]!==u||n[14]!==x?(m={queryKey:d,queryFn:f,enabled:u,staleTime:3e4,retry:x,retryDelay:Ki},n[11]=d,n[12]=f,n[13]=u,n[14]=x,n[15]=m):m=n[15],Y0(m)}function Ki(t){return Hn(5e3,1e3,t,2,0)}function Gi(){return null}function Hi(){return null}function qi(t){const e=[];return t.fastPreviewActive?e.push({kind:"committed"}):(t.fetchEnabled&&t.previewUrl&&e.push({kind:"live",baseUrl:t.previewUrl}),e.push({kind:"committed"})),t.productionUrl&&e.push({kind:"production",baseUrl:t.productionUrl}),e}function Yi(t){return z9.liveMeta(t.orgSlug,t.virtualMcpId,t.branch,t.previewUrl??"",t.productionUrl??"")}function d5(t,e){const n=z.c(21),{url:s}=Ye(t?.virtualMcpId),i=!!s,o=i||(e?.fetchEnabled??!0),a=s??t?.previewUrl,l=gt(t?.virtualMcpId),{previewServerUrl:c,runtime:L}=qe(t?.virtualMcpId),d=!i&&L==="cms";let f;n[0]!==t||n[1]!==a||n[2]!==c?(f=t?Yi({...t,previewUrl:a,productionUrl:c}):z9.liveMeta(""),n[0]=t,n[1]=a,n[2]=c,n[3]=f):f=n[3];let u;n[4]!==d||n[5]!==o||n[6]!==i||n[7]!==l||n[8]!==t||n[9]!==a||n[10]!==c?(u=async()=>{const g=Ji,v=()=>d?Ui(t):Ls(t,ht(l,".deco/meta.gen.json")),j=i&&a?[{kind:"live",baseUrl:a}]:qi({fetchEnabled:o,previewUrl:a,productionUrl:c,fastPreviewActive:d});for(const y of j){if(y.kind==="committed"){const k=await v();if(k.kind==="data")return k.data;continue}const b=await g(y.baseUrl);if(b)return b}const S=new Error("live meta unavailable (dev server down, no committed snapshot, no production fallback)");throw S.status=502,S},n[4]=d,n[5]=o,n[6]=i,n[7]=l,n[8]=t,n[9]=a,n[10]=c,n[11]=u):u=n[11];const x=!!t,m=e?.refetchInterval;let p;n[12]!==d||n[13]!==i?(p=(g,v)=>(d||i||v.status!==502)&&g<3,n[12]=d,n[13]=i,n[14]=p):p=n[14];let h;return n[15]!==f||n[16]!==u||n[17]!==x||n[18]!==m||n[19]!==p?(h={queryKey:f,queryFn:u,enabled:x,refetchInterval:m,refetchIntervalInBackground:!1,staleTime:3e5,retry:p,retryDelay:Wi},n[15]=f,n[16]=u,n[17]=x,n[18]=m,n[19]=p,n[20]=h):h=n[20],Y0(h)}function Wi(t){return Hn(5e3,1e3,t,2,0)}async function Ji(t){const e=new URL("/live/_meta",t).href,n=await fetch(e,{cache:"no-store"}).catch(Zi);if(!n?.ok)return null;try{return await n.json()}catch{return null}}function Zi(){return null}function je(t,e,n){const s=n[t];return typeof s?.name=="string"&&s.name||t.replace(/[-_]/g," ").replace(/\b\w/g,i=>i.toUpperCase())||`Section ${e+1}`}function u5(t,e){return t.map((n,s)=>{const i=n.__resolveType??"",o=B9(i);if(!o&&i!==""&&J9(i)&&i in e)return{index:s,resolveType:i,label:je(i,s,e),isLazy:!1,isSavedBlock:!0};const a=o?n.section:void 0,l=o?a?.__resolveType??"":i;if(l===W0||l===_e){const L=o?a:n,d=Array.isArray(L?.variants)?L.variants:[];if(d.length===1&&(d[0]?.rule?.__resolveType??"")===We){const x=d[0]?.value??{};let m=x.__resolveType??"";const p=B9(m);let h=x;if(p){const g=x.section;m=g?.__resolveType??m,g&&(h=g)}if(m===W0||m===_e){const v=(Array.isArray(h.variants)?h.variants:[])[0]?.value?.__resolveType,j=v?N9(v):"Section";return{index:s,resolveType:i,label:`Variants of ${j}`,variantOf:j,isHidden:!0,isLazy:p}}return m!==""&&J9(m)&&m in e?{index:s,resolveType:i,label:je(m,s,e),isHidden:!0,isLazy:p,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(m)||`Section ${s+1}`,isHidden:!0,isLazy:p}}const f=d[0]?.value?.__resolveType,u=f?N9(f):"Section";return{index:s,resolveType:i,label:`Variants of ${u}`,variantOf:u,isMultivariate:!0,isLazy:o}}const c=o?n.section?.__resolveType??i:i;return o&&c!==""&&J9(c)&&c in e?{index:s,resolveType:i,label:je(c,s,e),isLazy:!0,isSavedBlock:!0}:{index:s,resolveType:i,label:N9(c)||`Section ${s+1}`,isLazy:o}})}const Qi={provision:0,cloning:1,install:2,dev:3};function Xi(t){return Qi[t.step]}const Kt=48,us=28,fs=3,e2=(()=>{const t=[];let e=0;for(let n=0;n<Kt;n++)n===us?t.push(null):(t.push(e/(Kt-1)*fs),e++);return t})();function t2(t){return{provision:t("sandbox.bootingVisual.phaseProvision"),cloning:t("sandbox.bootingVisual.phaseCloning"),install:t("sandbox.bootingVisual.phaseInstall"),dev:t("sandbox.bootingVisual.phaseDev")}}function n2(t,e,n){return t.step==="provision"&&e!=null&&e.kind!=="ready"&&e.kind!=="failed"?zr[e.kind].long:n[t.step]}const V9="bg-foreground/[0.05]",O9="bg-foreground/[0.09]",s2=Array.from({length:35},()=>Math.random()*1.8),r2=Array.from({length:35},()=>Math.random()<.4);function i2(t){const e=z.c(31),{progress:n,claimPhase:s}=t,i=d9();let o;e[0]!==n?(o=Xi(n),e[0]=n,e[1]=o):o=e[1];const a=o;let l;e[2]!==s||e[3]!==n||e[4]!==i?(l=n2(n,s,t2(i)),e[2]=s,e[3]=n,e[4]=i,e[5]=l):l=e[5];const c=l;let L;e[6]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(D1,{}),e[6]=L):L=e[6];const d=`${n.step}-${c}`;let f;e[7]!==c||e[8]!==d?(f=r.jsxs("div",{className:"flex items-center gap-2 rounded-full border border-foreground/10 bg-background px-3.5 py-1.5 shadow-[0_4px_20px_-4px_rgb(0_0_0_/_0.12)]",children:[L,r.jsxs("span",{className:"animate-in fade-in text-[13px] font-medium text-foreground/85 duration-500",children:[c,"…"]},d)]}),e[7]=c,e[8]=d,e[9]=f):f=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsx(o2,{}),e[10]=u):u=e[10];let x;e[11]!==a?(x=r.jsx(K0,{phase:0,current:a,children:u}),e[11]=a,e[12]=x):x=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(l2,{}),e[13]=m):m=e[13];let p;e[14]!==a?(p=r.jsx(K0,{phase:1,current:a,children:m}),e[14]=a,e[15]=p):p=e[15];let h;e[16]===Symbol.for("react.memo_cache_sentinel")?(h=r.jsx(c2,{}),e[16]=h):h=e[16];let g;e[17]!==a?(g=r.jsx(K0,{phase:2,current:a,children:h}),e[17]=a,e[18]=g):g=e[18];let v;e[19]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx(d2,{}),e[19]=v):v=e[19];let j;e[20]!==a?(j=r.jsx(K0,{phase:3,current:a,children:v}),e[20]=a,e[21]=j):j=e[21];let S;e[22]!==g||e[23]!==j||e[24]!==x||e[25]!==p?(S=r.jsxs("div",{className:"relative aspect-[4/3] w-[min(78%,560px)]",children:[x,p,g,j]}),e[22]=g,e[23]=j,e[24]=x,e[25]=p,e[26]=S):S=e[26];let y;e[27]===Symbol.for("react.memo_cache_sentinel")?(y=r.jsx("style",{children:`
|
|
2
2
|
@keyframes vm-pulse-soft {
|
|
3
3
|
0%, 100% { opacity: 0.25; }
|
|
4
4
|
50% { opacity: 1; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as b,r as i,b4 as ie,b5 as ce,e as le,b6 as j,c as de,a2 as fe,J as Se,j as me}from"./index-
|
|
1
|
+
import{o as b,r as i,b4 as ie,b5 as ce,e as le,b6 as j,c as de,a2 as fe,J as Se,j as me}from"./index-Cgvxdf_Q.js";import{u as pe}from"./use-mcp-client-BnJ4CmVv.js";import{a as ye}from"./input-BvEtvuLy.js";import{b as Ee,u as he}from"./chat-context-DPuof8Lx.js";import{u as Re}from"./thread-intent-CRpeRnx2.js";import{e as xe}from"./backoff-CrEUbyZT.js";import{u as we}from"./use-sandbox-events-BuzKGb6t.js";import{d as Ae}from"./sandbox-start-errors-BK_aDCyt.js";function Te(e,t){const n=b(t);return be({filters:{...e,status:"pending"}},n).length}function X(e,t){return e.findAll(t.filters).map(n=>t.select?t.select(n):n.state)}function be(e={},t){const n=b(t).getMutationCache(),r=i.useRef(e),s=i.useRef(null);return s.current===null&&(s.current=X(n,e)),i.useEffect(()=>{r.current=e}),i.useSyncExternalStore(i.useCallback(u=>n.subscribe(()=>{const a=ie(s.current,X(n,r.current));s.current!==a&&(s.current=a,ce.schedule(u))}),[n]),()=>s.current,()=>s.current)}async function Pe(e,t,n){const r=await e.callTool({name:t,arguments:n});if(r.isError){const s=r.content?.[0]?.text??`Tool ${t} failed without a message`;throw new Error(s)}return r}const q=["SANDBOX_START"],w=new Map,Ce=e=>`${e.virtualMcpId}::${e.branch??""}`,ke=e=>e.message.includes("retry shortly"),U=new Set,g={mark:(e,t)=>U.add(`${e}::${t}`),clear:(e,t)=>U.delete(`${e}::${t}`),isStopped:(e,t)=>U.has(`${e}::${t}`)};function _e(e,t){const n=b();return le({mutationKey:q,retry:(r,s)=>ke(s)&&r<6,retryDelay:r=>xe(5e3,500,r,2,0),mutationFn:async r=>{r.branch&&g.clear(r.virtualMcpId,r.branch);const s=Ce(r),u=w.get(s);if(u)return u;const a=(async()=>(await Pe(e,"SANDBOX_START",r)).structuredContent)();w.set(s,a);try{return await a}finally{w.get(s)===a&&w.delete(s)}},onSuccess:()=>{j(n),t?.onStarted?.()}})}function Me(e,t){const n=de.c(3);let r;return n[0]!==t||n[1]!==e?(r={mutationKey:q,predicate:u=>{if(!e)return!1;const a=u.state.variables;return!a||a.virtualMcpId!==e?!1:(a.branch??"")===(t??"")}},n[0]=t,n[1]=e,n[2]=r):r=n[2],Te(r)>0}function Ue(e){return e.appPaused||e.userStopped?{kind:"suspended"}:e.startError&&!e.previewUrl?{kind:"errored",error:e.startError}:e.previewUrl?{kind:"iframe",previewUrl:e.previewUrl}:{kind:"starting"}}function ge(e){return e.executionEnabled&&e.sessionRuntime==="sandbox"&&e.hasActiveRepository&&!!e.userId&&!!e.branch&&!e.vmEntry&&!e.userStopped&&!e.isPending&&!e.attempted}function We(e){return e.threadLoaded&&e.isOwner&&e.hasActiveRepository&&!e.branch&&!e.attempted}function De(e){return e.executionEnabled&&e.notFound&&!!e.deadVmId&&!e.isPending&&!e.userStopped&&e.deadVmId!==e.lastDeadVmId}function ze(e){const{agentSandboxMap:t,threadSandboxMap:n,userId:r,branch:s}=e,u=e.ownerId??r;if(!r||!u||!s)return t;const a=n?.[u]?.[s];return a?{...t??{},[r]:{...t?.[r]??{},[s]:a}}:t}function A(e,t,n){const r={virtualMcpId:e};return t&&(r.branch=t),n&&(r.threadId=n),r}const Y=2,Le=new Set(["scheduling-timeout","reconciler-error","claim-never-created","unknown"]);function J(e){return Le.has(e)}function Oe(e){return e.executionEnabled&&e.failedReason!==null&&J(e.failedReason)&&e.attempts<Y&&!e.isPending&&!e.userStopped&&!e.alreadyHandled}const $e={branch:null,count:0,handled:!1};function Be(e,t){return e.branch===t?e:{branch:t,count:0,handled:!1}}function Ve(e){return e.mutationError?e.mutationError:e.phase?.kind==="failed"&&!e.startPending&&e.claimRetryExhausted?{code:null,message:e.phase.message}:null}function Fe(e){switch(e.kind){case"suspended":return"suspended";case"iframe":return"running";case"starting":return"starting";case"errored":return"errored"}}function Q(e,t){return`${e??""}::${t??""}`}function ve(e){const t=e.vmEntry?.previewUrl??null;return t||(e.seeded?.key===e.key?e.seeded.url:null)}function T(e){const{data:t,virtualMcpId:n,branch:r}=e;t?.branch&&!r&&e.setCurrentTaskBranch(t.branch),t?.previewUrl&&e.setSeededPreviewUrl({key:Q(n,t.branch??r),url:t.previewUrl})}const Ne={branch:null,previewState:{kind:"starting"},status:"idle",vmEntry:null,previewUrl:null,userStopped:!1,start:()=>{},stop:async()=>{},restart:async()=>{},retry:()=>{},resume:()=>{}},M=i.createContext(Ne);function Ge(){return i.use(M)}function Ze({executionEnabled:e,virtualMcpId:t,branch:n,userId:r,hasActiveRepository:s,vmEntry:u,threadId:a,children:D}){const{org:L}=fe(),{setCurrentTaskBranch:l}=Ee(),W=Re(),p=we(),z=b(),O=ye(t),G=O.resolved?O.runtime:null,d=he()?.taskId??null,$=pe({connectionId:Se,orgId:L.id,orgSlug:L.slug}),c=_e($,{onStarted:()=>{a&&W?.refreshThreadMetadata(a)}}),{mutate:f,reset:Z}=c,[ee,S]=i.useState(null),P=i.useRef(new Set),C=i.useRef(null),[B,R]=i.useState($e),E=Be(B,n);E!==B&&R(E);const y=p.phase?.kind==="failed"?p.phase:null,V=ve({vmEntry:u,seeded:y?null:ee,key:Q(t,n)}),h=!!t&&!!n&&g.isStopped(t,n),te=p.status.state==="paused",ne=!y||!J(y.reason)||E.count>=Y,re=Ve({mutationError:c.isError&&c.error?Ae(c.error.message):null,phase:p.phase,startPending:c.isPending,claimRetryExhausted:ne}),F=Ue({previewUrl:V,appPaused:te,userStopped:h,startError:re}),se=Fe(F),k=n??"",oe=P.current.has(k),v=ge({executionEnabled:e,hasActiveRepository:s,userId:r,branch:n,vmEntry:u,userStopped:h,isPending:c.isPending,attempted:oe,sessionRuntime:G});i.useEffect(()=>{if(!v||!t)return;P.current.add(k);const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] auto-start failed:",o)}})},[v,k,n,t,d,f,l,S]);const x=p.notFound?u?.sandboxHandle??null:null,N=De({executionEnabled:e,notFound:p.notFound,deadVmId:x,lastDeadVmId:C.current,isPending:c.isPending,userStopped:h});i.useEffect(()=>{if(!N||!x||!t)return;C.current=x;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] self-heal failed:",o)}})},[N,x,t,n,d,f,l,S]);const I=Oe({executionEnabled:e,failedReason:y?.reason??null,attempts:E.count,isPending:c.isPending,userStopped:h,alreadyHandled:E.handled});i.useEffect(()=>{if(!y){R(o=>o.handled?{...o,handled:!1}:o);return}if(!I||!t)return;R(o=>({...o,handled:!0,count:o.count+1}));const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] claim auto-retry failed:",o)}})},[y,I,t,n,d,f,l,S]);const _=()=>{if(!e||!t)return;const m=A(t,n,d);f(m,{onSuccess:o=>{T({data:o,virtualMcpId:t,branch:n,setCurrentTaskBranch:l,setSeededPreviewUrl:S})},onError:o=>{console.error("[sandbox-lifecycle] user start failed:",o)}})},K=async()=>{if(!(!e||!t||!n)&&u){g.mark(t,n);try{await $.callTool({name:"SANDBOX_DELETE",arguments:{virtualMcpId:t,branch:n}})}catch{}j(z)}},ae=async()=>{await K(),_()},H=()=>{P.current=new Set,C.current=null,R({branch:n,count:0,handled:!1}),Z(),_()},ue={branch:n,previewState:F,status:se,vmEntry:u,previewUrl:V,userStopped:h,start:_,stop:K,restart:ae,retry:H,resume:H};return me.jsx(M,{value:ue,children:D})}export{Ze as S,_e as a,Ge as b,Te as c,ze as o,We as s,Me as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aD as n,bS as e,aE as o,bT as d,bU as l}from"./index-
|
|
1
|
+
import{aD as n,bS as e,aE as o,bT as d,bU as l}from"./index-Cgvxdf_Q.js";const a=500;n({title:o().max(a),url:o().max(a),icon:o().max(a)});const t=n({keyId:o().max(a),modelId:o().max(a),title:o().max(a).optional()}).nullable();d(["fast","smart","thinking","image","web_search","deep_research"]);d(["fast","smart","thinking"]);const b=n({tiers:n({fast:t,smart:t,thinking:t,image:t,web_search:t,deep_research:t})});n({tiers:n({fast:t.optional(),smart:t.optional(),thinking:t.optional()})});const f=50,c=/^[a-zA-Z0-9.-]+(?::[0-9]+)?$/;n({host:o().min(1).max(a).regex(c).describe("Git host, e.g. 'github.com' (bare hostname, no scheme)."),secretId:o().min(1).max(a).describe("Vault secret id holding the PAT used to authenticate this host.")});n({ids:l(o().max(a)).describe("Ordered list of custom virtual MCP agent ids to show on the home view.")});const u=n({voice_mode:e().optional(),home_task_intake_enabled:e().optional().describe("Show Task mode on the Home composer and allow reports to start tasks."),demo_mode:e().optional().describe("Curated demo org: the commerce connect modal proceeds without a configured required data source."),reports_only:e().optional().describe("Curated Deco Score look: hides agent navigation, the home Customize button, and the Settings/Automations tabs. Defaulted on for orgs created by commerce onboarding."),reviewer_enabled:e().optional().describe("Run the Reviewer on a task's pull request when the card reaches In Review — it reviews the code with the repo's stack-appropriate skills, fixes what it finds on the PR's own branch, then exercises the change on the deploy preview and approves or hands the card to a human."),qa_agent_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),code_reviewer_enabled:e().optional().describe("Deprecated: see reviewer_enabled."),auto_merge:e().optional().describe("When a card reaches Ready for Deployment, merge its pull request automatically instead of waiting for someone to press Ship."),auto_resolve_conflicts:e().optional().describe("When a pull request in Ready for Deployment can't be merged because it conflicts with its base branch, hand it back to the Super Agent to resolve the conflict (check out the branch, merge the base, push). Unset, it follows `auto_merge`; set it explicitly to run one without the other."),cheap_reviewer_model:e().optional().describe("Run the Reviewer on a cheaper model than the Super Agent that wrote the code. On by default — turning it off trades cost for some review depth."),coding_agent_org_mcps:e().optional().describe("Give a coding-agent run (the claude-code harness in a sandbox) every MCP connection in the org as its own MCP server, on top of the narrow Studio surface it always gets. Off by default: each connection is one more server the agent connects to at session start, and all of their tools land in its context."),coding_agents_claude_code:e().optional().describe("Run chats on a Code Agent (an agent imported from a GitHub repo) with the claude-code harness inside its sandbox, instead of hosted Decopilot. Off by default: it changes the runtime of every such chat, and claude-code flushes whole turns rather than streaming tokens."),chat_harness_sandbox_only:e().optional().describe("Run every chat with the claude-code harness in its own sandbox instead of hosted Decopilot. On by default (see DEFAULT_ON_FLAGS); a deployment without hosted sandboxes keeps Decopilot regardless."),sandbox_repo_snapshots:e().optional().describe("Keep a Freestyle snapshot of each project repo at its default branch's head, with its dependencies installed and its dev server running, so a new sandbox for that repo starts already serving. Off by default: each push to a default branch costs a snapshot build the next time a sandbox starts."),auto_assign_report_tasks_to_super_agent:e().optional().describe("When a Deco Score import creates a task board item without an assignee, delegate it to the Super Agent automatically instead of leaving it unassigned."),hosting_enabled:e().optional().describe("Per-site Hosting tab (deployments, domains, deploy outcomes). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),deco_analytics_enabled:e().optional().describe("Per-site Deco Analytics tab (traffic, realtime, usage & limits). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),e2e_enabled:e().optional().describe("Per-site E2E tab (end-to-end test runs). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. `HOSTING_CONTROL_PLANE_GA` opens it (and its peers) to every org at once."),experiments_enabled:e().optional().describe("Per-site Experiments tab (A/B tests + variant results). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org."),experiments_v2_enabled:e().optional().describe("Rebuilt Experiments tab: describe the test in prose and an agent drafts it, plus inline editing and the implement/preview tools that write the split into the site. Off by default — an org without it keeps the table-and-dialog tab, which only records experiment metadata. Requires `experiments_enabled`, which still decides whether the tab exists at all."),monitor_enabled:e().optional().describe("Per-site Monitor tab (CDN Performance + Audience from the stats-lake warehouse). Off by default. deco.cx staff and local dev always see it; this flag is the per-client lever to open it to one external org. Its own deployment-wide switch `MONITOR_GA` opens it to every org at once (independent of the control-plane trio)."),site_create_enabled:e().optional().describe('The "Create a new site" option under New project: generates a GitHub repository from a site template in an account the org connected, and opens it as a project. Off by default, for every org — deco.cx staff included.'),new_blocks_editor:e().optional().describe("Use the redesigned blocks editor for every member of the organization. Off by default — the classic editor stays until an admin opts the org in."),blog_ai_enabled:e().optional().describe("The blog's brand context tab and its agentic generation — campaigns, post drafting and link suggestions. Off by default; with it off the blog is written by hand and every BLOG_* tool refuses, over MCP and in the app alike, so an agent cannot spend the organization's credits on a feature it turned off."),hide_default_blog_blocks:e().optional().describe("Hide the `deco-cms/blog` built-in post blocks everywhere a post is written — the inserter, the format briefs, and generated drafts — so only the site's own `site/sections/Blog/Post/*` blocks are eligible. Off by default. Blocks already present in a post keep rendering; this only governs what can be added.")}),h=new Set(["reviewer_enabled","cheap_reviewer_model","chat_harness_sandbox_only"]);function g(i,s){const r=i?.[s];return h.has(s)?r!==!1:r===!0}function m(i){const s=i?.auto_resolve_conflicts;return typeof s=="boolean"?s:i?.auto_merge===!0}export{h as D,f as G,u as O,b as S,m as a,c as b,g as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as d,by as A,bu as ce,j as b,bA as _,bN as ae,dl as O,bB as C,bH as P,bC as ie,c as F,l as $}from"./index-CvkEkbZF.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),v=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(v))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
1
|
+
import{r as d,by as A,bu as ce,j as b,bA as _,bN as ae,dl as O,bB as C,bH as P,bC as ie,c as F,l as $}from"./index-Cgvxdf_Q.js";import{c as de}from"./index-BdQq_4o_.js";function ue(r,e){return d.useReducer((o,l)=>e[o][l]??o,r)}var U="ScrollArea",[q]=ae(U),[fe,m]=q(U),G=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,type:l="hover",dir:t,scrollHideDelay:n=600,...s}=r,[a,c]=d.useState(null),[u,i]=d.useState(null),[h,f]=d.useState(null),[S,w]=d.useState(null),[T,Y]=d.useState(null),[x,L]=d.useState(0),[M,j]=d.useState(0),[D,y]=d.useState(!1),[N,H]=d.useState(!1),v=A(e,R=>c(R)),p=ce(t);return b.jsx(fe,{scope:o,type:l,dir:p,scrollHideDelay:n,scrollArea:a,viewport:u,onViewportChange:i,content:h,onContentChange:f,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:D,onScrollbarXEnabledChange:y,scrollbarY:T,onScrollbarYChange:Y,scrollbarYEnabled:N,onScrollbarYEnabledChange:H,onCornerWidthChange:L,onCornerHeightChange:j,children:b.jsx(_.div,{dir:p,...s,ref:v,style:{position:"relative","--radix-scroll-area-corner-width":x+"px","--radix-scroll-area-corner-height":M+"px",...r.style}})})});G.displayName=U;var J="ScrollAreaViewport",K=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,children:l,nonce:t,...n}=r,s=m(J,o),a=d.useRef(null),c=A(e,a,s.onViewportChange);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t}),b.jsx(_.div,{"data-radix-scroll-area-viewport":"",...n,ref:c,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...r.style},children:b.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:l})})]})});K.displayName=J;var g="ScrollAreaScrollbar",Q=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:s}=t,a=r.orientation==="horizontal";return d.useEffect(()=>(a?n(!0):s(!0),()=>{a?n(!1):s(!1)}),[a,n,s]),t.type==="hover"?b.jsx(he,{...l,ref:e,forceMount:o}):t.type==="scroll"?b.jsx(be,{...l,ref:e,forceMount:o}):t.type==="auto"?b.jsx(Z,{...l,ref:e,forceMount:o}):t.type==="always"?b.jsx(B,{...l,ref:e}):null});Q.displayName=g;var he=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),[n,s]=d.useState(!1);return d.useEffect(()=>{const a=t.scrollArea;let c=0;if(a){const u=()=>{window.clearTimeout(c),s(!0)},i=()=>{c=window.setTimeout(()=>s(!1),t.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",i),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",i)}}},[t.scrollArea,t.scrollHideDelay]),b.jsx(O,{present:o||n,children:b.jsx(Z,{"data-state":n?"visible":"hidden",...l,ref:e})})}),be=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=m(g,r.__scopeScrollArea),n=r.orientation==="horizontal",s=X(()=>c("SCROLL_END"),100),[a,c]=ue("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return d.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>c("HIDE"),t.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,t.scrollHideDelay,c]),d.useEffect(()=>{const u=t.viewport,i=n?"scrollLeft":"scrollTop";if(u){let h=u[i];const f=()=>{const S=u[i];h!==S&&(c("SCROLL"),s()),h=S};return u.addEventListener("scroll",f),()=>u.removeEventListener("scroll",f)}},[t.viewport,n,c,s]),b.jsx(O,{present:o||a!=="hidden",children:b.jsx(B,{"data-state":a==="hidden"?"hidden":"visible",...l,ref:e,onPointerEnter:C(r.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:C(r.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Z=d.forwardRef((r,e)=>{const o=m(g,r.__scopeScrollArea),{forceMount:l,...t}=r,[n,s]=d.useState(!1),a=r.orientation==="horizontal",c=X(()=>{if(o.viewport){const u=o.viewport.offsetWidth<o.viewport.scrollWidth,i=o.viewport.offsetHeight<o.viewport.scrollHeight;s(a?u:i)}},10);return E(o.viewport,c),E(o.content,c),b.jsx(O,{present:l||n,children:b.jsx(B,{"data-state":n?"visible":"hidden",...t,ref:e})})}),B=d.forwardRef((r,e)=>{const{orientation:o="vertical",...l}=r,t=m(g,r.__scopeScrollArea),n=d.useRef(null),s=d.useRef(0),[a,c]=d.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ne(a.viewport,a.content),i={...l,sizes:a,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:f=>n.current=f,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:f=>s.current=f};function h(f,S){return ge(f,s.current,a,S)}return o==="horizontal"?b.jsx(Se,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollLeft,S=k(f,a,t.dir);n.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollLeft=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollLeft=h(f,t.dir))}}):o==="vertical"?b.jsx(ve,{...i,ref:e,onThumbPositionChange:()=>{if(t.viewport&&n.current){const f=t.viewport.scrollTop,S=k(f,a);n.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:f=>{t.viewport&&(t.viewport.scrollTop=f)},onDragScroll:f=>{t.viewport&&(t.viewport.scrollTop=h(f))}}):null}),Se=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarXChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"horizontal",...t,ref:u,sizes:o,style:{bottom:0,left:n.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:n.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.x),onDragScroll:i=>r.onDragScroll(i.x),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollLeft+i.deltaX;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollWidth,viewport:n.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:z(s.paddingLeft),paddingEnd:z(s.paddingRight)}})}})}),ve=d.forwardRef((r,e)=>{const{sizes:o,onSizesChange:l,...t}=r,n=m(g,r.__scopeScrollArea),[s,a]=d.useState(),c=d.useRef(null),u=A(e,c,n.onScrollbarYChange);return d.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),b.jsx(re,{"data-orientation":"vertical",...t,ref:u,sizes:o,style:{top:0,right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":I(o)+"px",...r.style},onThumbPointerDown:i=>r.onThumbPointerDown(i.y),onDragScroll:i=>r.onDragScroll(i.y),onWheelScroll:(i,h)=>{if(n.viewport){const f=n.viewport.scrollTop+i.deltaY;r.onWheelScroll(f),se(f,h)&&i.preventDefault()}},onResize:()=>{c.current&&n.viewport&&s&&l({content:n.viewport.scrollHeight,viewport:n.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:z(s.paddingTop),paddingEnd:z(s.paddingBottom)}})}})}),[me,ee]=q(g),re=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,sizes:l,hasThumb:t,onThumbChange:n,onThumbPointerUp:s,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:i,onResize:h,...f}=r,S=m(g,o),[w,T]=d.useState(null),Y=A(e,v=>T(v)),x=d.useRef(null),L=d.useRef(""),M=S.viewport,j=l.content-l.viewport,D=P(i),y=P(c),N=X(h,10);function H(v){if(x.current){const p=v.clientX-x.current.left,R=v.clientY-x.current.top;u({x:p,y:R})}}return d.useEffect(()=>{const v=p=>{const R=p.target;w?.contains(R)&&D(p,j)};return document.addEventListener("wheel",v,{passive:!1}),()=>document.removeEventListener("wheel",v,{passive:!1})},[M,w,j,D]),d.useEffect(y,[l,y]),E(w,N),E(S.content,N),b.jsx(me,{scope:o,scrollbar:w,hasThumb:t,onThumbChange:P(n),onThumbPointerUp:P(s),onThumbPositionChange:y,onThumbPointerDown:P(a),children:b.jsx(_.div,{...f,ref:Y,style:{position:"absolute",...f.style},onPointerDown:C(r.onPointerDown,v=>{v.button===0&&(v.target.setPointerCapture(v.pointerId),x.current=w.getBoundingClientRect(),L.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),H(v))}),onPointerMove:C(r.onPointerMove,H),onPointerUp:C(r.onPointerUp,v=>{const p=v.target;p.hasPointerCapture(v.pointerId)&&p.releasePointerCapture(v.pointerId),document.body.style.webkitUserSelect=L.current,S.viewport&&(S.viewport.style.scrollBehavior=""),x.current=null})})})}),W="ScrollAreaThumb",oe=d.forwardRef((r,e)=>{const{forceMount:o,...l}=r,t=ee(W,r.__scopeScrollArea);return b.jsx(O,{present:o||t.hasThumb,children:b.jsx(pe,{ref:e,...l})})}),pe=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,style:l,...t}=r,n=m(W,o),s=ee(W,o),{onThumbPositionChange:a}=s,c=A(e,h=>s.onThumbChange(h)),u=d.useRef(void 0),i=X(()=>{u.current&&(u.current(),u.current=void 0)},100);return d.useEffect(()=>{const h=n.viewport;if(h){const f=()=>{if(i(),!u.current){const S=xe(h,a);u.current=S,a()}};return a(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[n.viewport,i,a]),b.jsx(_.div,{"data-state":s.hasThumb?"visible":"hidden",...t,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:C(r.onPointerDownCapture,h=>{const S=h.target.getBoundingClientRect(),w=h.clientX-S.left,T=h.clientY-S.top;s.onThumbPointerDown({x:w,y:T})}),onPointerUp:C(r.onPointerUp,s.onThumbPointerUp)})});oe.displayName=W;var V="ScrollAreaCorner",te=d.forwardRef((r,e)=>{const o=m(V,r.__scopeScrollArea),l=!!(o.scrollbarX&&o.scrollbarY);return o.type!=="scroll"&&l?b.jsx(we,{...r,ref:e}):null});te.displayName=V;var we=d.forwardRef((r,e)=>{const{__scopeScrollArea:o,...l}=r,t=m(V,o),[n,s]=d.useState(0),[a,c]=d.useState(0),u=!!(n&&a);return E(t.scrollbarX,()=>{const i=t.scrollbarX?.offsetHeight||0;t.onCornerHeightChange(i),c(i)}),E(t.scrollbarY,()=>{const i=t.scrollbarY?.offsetWidth||0;t.onCornerWidthChange(i),s(i)}),u?b.jsx(_.div,{...l,ref:e,style:{width:n,height:a,position:"absolute",right:t.dir==="ltr"?0:void 0,left:t.dir==="rtl"?0:void 0,bottom:0,...r.style}}):null});function z(r){return r?parseInt(r,10):0}function ne(r,e){const o=r/e;return isNaN(o)?0:o}function I(r){const e=ne(r.viewport,r.content),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=(r.scrollbar.size-o)*e;return Math.max(l,18)}function ge(r,e,o,l="ltr"){const t=I(o),n=t/2,s=e||n,a=t-s,c=o.scrollbar.paddingStart+s,u=o.scrollbar.size-o.scrollbar.paddingEnd-a,i=o.content-o.viewport,h=l==="ltr"?[0,i]:[i*-1,0];return le([c,u],h)(r)}function k(r,e,o="ltr"){const l=I(e),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=e.scrollbar.size-t,s=e.content-e.viewport,a=n-l,c=o==="ltr"?[0,s]:[s*-1,0],u=de(r,c);return le([0,s],[0,a])(u)}function le(r,e){return o=>{if(r[0]===r[1]||e[0]===e[1])return e[0];const l=(e[1]-e[0])/(r[1]-r[0]);return e[0]+l*(o-r[0])}}function se(r,e){return r>0&&r<e}var xe=(r,e=()=>{})=>{let o={left:r.scrollLeft,top:r.scrollTop},l=0;return(function t(){const n={left:r.scrollLeft,top:r.scrollTop},s=o.left!==n.left,a=o.top!==n.top;(s||a)&&e(),o=n,l=window.requestAnimationFrame(t)})(),()=>window.cancelAnimationFrame(l)};function X(r,e){const o=P(r),l=d.useRef(0);return d.useEffect(()=>()=>window.clearTimeout(l.current),[]),d.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(o,e)},[o,e])}function E(r,e){const o=P(e);ie(()=>{let l=0;if(r){const t=new ResizeObserver(()=>{cancelAnimationFrame(l),l=window.requestAnimationFrame(o)});return t.observe(r),()=>{window.cancelAnimationFrame(l),t.unobserve(r)}}},[r,o])}var Pe=G,Ce=K,Re=te;function _e(r){const e=F.c(21);let o,l,t,n,s;e[0]!==r?({className:l,children:o,hideScrollbar:n,viewportRef:s,...t}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n,e[5]=s):(o=e[1],l=e[2],t=e[3],n=e[4],s=e[5]);const a=n===void 0?!1:n;let c;e[6]!==l?(c=$("relative h-full w-full",l),e[6]=l,e[7]=c):c=e[7];let u;e[8]!==o?(u=b.jsx("div",{className:"flex min-w-0 flex-col",children:o}),e[8]=o,e[9]=u):u=e[9];let i;e[10]!==u||e[11]!==s?(i=b.jsx(Ce,{ref:s,"data-slot":"scroll-area-viewport",className:"h-full w-full overflow-auto rounded-[inherit] outline-none transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:ring-ring/20",children:u}),e[10]=u,e[11]=s,e[12]=i):i=e[12];let h;e[13]!==a?(h=b.jsx(Ee,{hideScrollbar:a}),e[13]=a,e[14]=h):h=e[14];let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Re,{}),e[15]=f):f=e[15];let S;return e[16]!==t||e[17]!==c||e[18]!==i||e[19]!==h?(S=b.jsxs(Pe,{"data-slot":"scroll-area",className:c,...t,children:[i,h,f]}),e[16]=t,e[17]=c,e[18]=i,e[19]=h,e[20]=S):S=e[20],S}function Ee(r){const e=F.c(15);let o,l,t,n;e[0]!==r?({className:o,orientation:t,hideScrollbar:n,...l}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=t,e[4]=n):(o=e[1],l=e[2],t=e[3],n=e[4]);const s=t===void 0?"vertical":t,a=n===void 0?!1:n,c=s==="vertical"&&"h-full w-2.5 border-l border-l-transparent",u=s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i=a&&"hidden";let h;e[5]!==o||e[6]!==c||e[7]!==u||e[8]!==i?(h=$("select-none touch-none p-px transition-colors",c,u,i,o),e[5]=o,e[6]=c,e[7]=u,e[8]=i,e[9]=h):h=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(oe,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"}),e[10]=f):f=e[10];let S;return e[11]!==s||e[12]!==l||e[13]!==h?(S=b.jsx(Q,{"data-slot":"scroll-area-scrollbar",orientation:s,className:h,...l,children:f}),e[11]=s,e[12]=l,e[13]=h,e[14]=S):S=e[14],S}export{_e as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,l as w,j as a,h as j}from"./index-
|
|
1
|
+
import{c as b,l as w,j as a,h as j}from"./index-Cgvxdf_Q.js";import{i as v}from"./SearchMd-DeQ9Yg2y.js";function k(f){const e=b.c(17),{value:l,onChange:c,placeholder:m,onKeyDown:u,className:d,isSearching:p,disabled:r}=f,x=m===void 0?"Search...":m,h=r&&"pointer-events-none opacity-50";let t;e[0]!==d||e[1]!==h?(t=w("flex items-center gap-4 rounded-lg bg-[var(--studio-input-background)] px-3 h-8 card-shadow","focus-within:border-ring focus-within:ring-ring/20 focus-within:ring-[2px]","transition-[color,box-shadow]",h,d),e[0]=d,e[1]=h,e[2]=t):t=e[2];let n;e[3]!==p?(n=p?a.jsx(j,{className:"size-4 text-muted-foreground/75 shrink-0"}):a.jsx(v,{size:16,className:"text-muted-foreground/75 shrink-0"}),e[3]=p,e[4]=n):n=e[4];let s;e[5]!==c?(s=g=>c(g.target.value),e[5]=c,e[6]=s):s=e[6];let o;e[7]!==r||e[8]!==u||e[9]!==x||e[10]!==s||e[11]!==l?(o=a.jsx("input",{type:"text",value:l,onChange:s,onKeyDown:u,placeholder:x,disabled:r,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[7]=r,e[8]=u,e[9]=x,e[10]=s,e[11]=l,e[12]=o):o=e[12];let i;return e[13]!==t||e[14]!==n||e[15]!==o?(i=a.jsxs("label",{className:t,children:[n,o]}),e[13]=t,e[14]=n,e[15]=o,e[16]=i):i=e[16],i}export{k as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as K,r as C,l as z,j as a,aV as M}from"./index-
|
|
1
|
+
import{c as K,r as C,l as z,j as a,aV as M}from"./index-Cgvxdf_Q.js";import{i as B}from"./SearchMd-DeQ9Yg2y.js";import{I as O}from"./icon-button-BIVgkjge.js";function G(S){const e=K.c(34),{value:t,onChange:s,label:E,placeholder:D,clearLabel:F,expanded:o,className:j}=S,w=E===void 0?"Search":E,d=D===void 0?"Search…":D,y=F===void 0?"Clear search":F,[I,p]=C.useState(t!==""),[L,V]=C.useState(!1),[R,$]=C.useState(t);if(t!==R&&($(t),t===""&&!L&&p(!1)),!I&&!o){let l,g;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>p(!0),g=a.jsx(B,{}),e[0]=l,e[1]=g):(l=e[0],g=e[1]);let v;return e[2]!==w?(v=a.jsx(O,{label:w,tooltipSide:"bottom",variant:"secondary",onClick:l,children:g}),e[2]=w,e[3]=v):v=e[3],v}const _=o?"h-10 w-full px-3":"h-7 w-32 animate-search-expand px-2.5 sm:w-44";let n;e[4]!==j||e[5]!==_?(n=z("inline-flex shrink-0 items-center gap-1.5 overflow-hidden rounded-full bg-card text-card-foreground card-shadow",_,j),e[4]=j,e[5]=_,e[6]=n):n=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=a.jsx(B,{className:"size-4 shrink-0 text-muted-foreground"}),e[7]=x):x=e[7];const k=!o;let r;e[8]!==s?(r=l=>s(l.target.value),e[8]=s,e[9]=r):r=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>V(!0),e[10]=h):h=e[10];let c;e[11]!==t?(c=()=>{V(!1),t===""&&p(!1)},e[11]=t,e[12]=c):c=e[12];let i;e[13]!==s?(i=l=>{l.key==="Escape"&&s("")},e[13]=s,e[14]=i):i=e[14];const N=o?"text-sm":"text-xs";let f;e[15]!==N?(f=z("w-full min-w-0 bg-transparent outline-none placeholder:text-muted-foreground",N),e[15]=N,e[16]=f):f=e[16];let u;e[17]!==d||e[18]!==c||e[19]!==i||e[20]!==f||e[21]!==k||e[22]!==r||e[23]!==t?(u=a.jsx("input",{autoFocus:k,value:t,onChange:r,onFocus:h,onBlur:c,onKeyDown:i,placeholder:d,"aria-label":d,className:f}),e[17]=d,e[18]=c,e[19]=i,e[20]=f,e[21]=k,e[22]=r,e[23]=t,e[24]=u):u=e[24];let m;e[25]!==y||e[26]!==o||e[27]!==s||e[28]!==t?(m=t!==""&&a.jsx("button",{type:"button","aria-label":y,onMouseDown:P,onClick:()=>{s(""),o||p(!1)},className:"shrink-0 text-muted-foreground hover:text-foreground",children:a.jsx(M,{className:"size-3.5"})}),e[25]=y,e[26]=o,e[27]=s,e[28]=t,e[29]=m):m=e[29];let b;return e[30]!==u||e[31]!==m||e[32]!==n?(b=a.jsxs("div",{className:n,children:[x,u,m]}),e[30]=u,e[31]=m,e[32]=n,e[33]=b):b=e[33],b}function P(S){return S.preventDefault()}export{G as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,b as d,j as l}from"./index-
|
|
1
|
+
import{c as x,b as d,j as l}from"./index-Cgvxdf_Q.js";import{s as j}from"./User01-_d4aL8so.js";import{t as E}from"./Users01-BXstoO15.js";const b=/^[A-Za-z0-9_.-]+$/;function h(u){const e=x.c(15),{field:p,secretById:t}=u,s=d(),n=p.value||"";if(!n)return null;let a;e[0]!==n||e[1]!==t?(a=t.get(n),e[0]=n,e[1]=t,e[2]=a):a=e[2];const c=a;if(!c){let i;e[3]!==n||e[4]!==s?(i=s("sandbox.envVarsField.missingSecret",{id:n}),e[3]=n,e[4]=s,e[5]=i):i=e[5];let f;return e[6]!==i?(f=l.jsx("span",{className:"text-destructive",children:i}),e[6]=i,e[7]=f):f=e[7],f}let o;e[8]!==c.scope?(o=l.jsx(N,{scope:c.scope}),e[8]=c.scope,e[9]=o):o=e[9];let r;e[10]!==c.name?(r=l.jsx("span",{className:"truncate font-mono",children:c.name}),e[10]=c.name,e[11]=r):r=e[11];let m;return e[12]!==o||e[13]!==r?(m=l.jsxs("span",{className:"inline-flex items-center gap-1.5 truncate",children:[o,r]}),e[12]=o,e[13]=r,e[14]=m):m=e[14],m}function N(u){const e=x.c(2),{scope:p}=u,t=p==="user"?j:E;let s;return e[0]!==t?(s=l.jsx(t,{className:"size-3 text-muted-foreground"}),e[0]=t,e[1]=s):s=e[1],s}export{h as S,b as a,N as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,b as y,j as s,n as C,fG as E,H as F,r as N,b2 as L,B as D,af as T,D as O,q as B,s as A,v as R,aK as q,I as _,w as I,t as z}from"./index-
|
|
1
|
+
import{c as j,b as y,j as s,n as C,fG as E,H as F,r as N,b2 as L,B as D,af as T,D as O,q as B,s as A,v as R,aK as q,I as _,w as I,t as z}from"./index-Cgvxdf_Q.js";import{i as H}from"./AlertCircle-D64F5QZT.js";import{s as V}from"./Plus-pPXfDuHo.js";import{s as G}from"./User01-_d4aL8so.js";import{t as K}from"./Users01-BXstoO15.js";import{L as w}from"./label-8JLWVV6w.js";import{S as J,b as M,a as Q,d as U,c as P}from"./select-CTpu637-.js";import{T as W}from"./textarea-BpAK_nVQ.js";import{u as X,a as Y}from"./use-secrets-Be9wdGLq.js";import{R as Z}from"./require-capability-HLF-G2Gn.js";import"./index-BdQq_4o_.js";import"./index-CPTOUBV5.js";import"./ChevronUp-DAOjkMPN.js";import"./access-gate-D8G3JOM8.js";import"./capability-load-error-_NmD-cOl.js";function ee(t){const e=j.c(6),{error:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(H,{size:16}),e[0]=c):c=e[0];let n;e[1]!==r.message||e[2]!==i?(n=i("settings.secrets.failedToLoadError",{error:r.message}),e[1]=r.message,e[2]=i,e[3]=n):n=e[3];let a;return e[4]!==n?(a=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[c,s.jsx("span",{className:"text-sm font-medium",children:n})]}),e[4]=n,e[5]=a):a=e[5],a}function te(t){const e=j.c(8),{scope:r}=t,i=y(),c=r==="user"?G:K;let n;e[0]!==r||e[1]!==i?(n=i(r==="user"?"settings.secrets.scopePrivate":"settings.secrets.scopeOrganization"),e[0]=r,e[1]=i,e[2]=n):n=e[2];const a=n;let l;e[3]!==c?(l=s.jsx(c,{size:12}),e[3]=c,e[4]=l):l=e[4];let o;return e[5]!==a||e[6]!==l?(o=s.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-muted text-muted-foreground text-xs",children:[l,a]}),e[5]=a,e[6]=l,e[7]=o):o=e[7],o}function $(t){const e=j.c(20),{secret:r}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(T,{size:16,className:"text-muted-foreground"})}),e[0]=i):i=e[0];let c;e[1]!==r.name?(c=s.jsx("span",{className:"font-medium text-sm truncate",children:r.name}),e[1]=r.name,e[2]=c):c=e[2];let n;e[3]!==r.scope?(n=s.jsx(te,{scope:r.scope}),e[3]=r.scope,e[4]=n):n=e[4];let a;e[5]!==c||e[6]!==n?(a=s.jsxs("div",{className:"flex items-center gap-2",children:[c,n]}),e[5]=c,e[6]=n,e[7]=a):a=e[7];let l;e[8]!==r.description?(l=r.description?s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:r.description}):null,e[8]=r.description,e[9]=l):l=e[9];let o;e[10]!==a||e[11]!==l?(o=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[i,s.jsxs("div",{className:"min-w-0",children:[a,l]})]}),e[10]=a,e[11]=l,e[12]=o):o=e[12];let d;e[13]!==r.createdAt?(d=new Date(r.createdAt).toLocaleDateString(),e[13]=r.createdAt,e[14]=d):d=e[14];let m;e[15]!==d?(m=s.jsx("div",{className:"text-xs text-muted-foreground shrink-0",children:d}),e[15]=d,e[16]=m):m=e[16];let x;return e[17]!==o||e[18]!==m?(x=s.jsxs("div",{className:"flex items-start justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[o,m]}),e[17]=o,e[18]=m,e[19]=x):x=e[19],x}function se(t){const e=j.c(15),{action:r}=t,i=y();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(T,{size:20,className:"text-muted-foreground"})}),e[0]=c):c=e[0];let n;e[1]!==i?(n=i("settings.secrets.emptyTitle"),e[1]=i,e[2]=n):n=e[2];let a;e[3]!==n?(a=s.jsx("p",{className:"font-medium text-sm",children:n}),e[3]=n,e[4]=a):a=e[4];let l;e[5]!==i?(l=i("settings.secrets.emptyDescription"),e[5]=i,e[6]=l):l=e[6];let o;e[7]!==l?(o=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:l}),e[7]=l,e[8]=o):o=e[8];let d;e[9]!==a||e[10]!==o?(d=s.jsxs("div",{children:[a,o]}),e[9]=a,e[10]=o,e[11]=d):d=e[11];let m;return e[12]!==r||e[13]!==d?(m=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[c,d,r]}),e[12]=r,e[13]=d,e[14]=m):m=e[14],m}function k({open:t,onOpenChange:e}){const r=y(),[i,c]=N.useState("organization"),[n,a]=N.useState(""),[l,o]=N.useState(""),[d,m]=N.useState(""),x=Y();function g(){c("organization"),a(""),o(""),m("")}function p(){g(),e(!1)}async function b(u){if(u.preventDefault(),!(!n.trim()||!l))try{await x.mutateAsync({scope:i,name:n.trim(),value:l,description:d.trim()||void 0}),z.success(r("settings.secrets.secretCreated",{name:n.trim()})),p()}catch(f){z.error(f instanceof Error?f.message:r("settings.secrets.failedToCreateSecret"))}}return s.jsx(O,{open:t,onOpenChange:u=>{u?e(u):p()},children:s.jsxs(B,{className:"sm:max-w-lg",children:[s.jsxs(A,{children:[s.jsx(R,{children:r("settings.secrets.newSecretTitle")}),s.jsx(q,{children:r("settings.secrets.newSecretDescription")})]}),s.jsxs("form",{onSubmit:b,className:"space-y-4",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-scope",children:r("settings.secrets.scopeLabel")}),s.jsxs(J,{value:i,onValueChange:u=>c(u),children:[s.jsx(M,{id:"secret-scope",children:s.jsx(Q,{})}),s.jsxs(U,{children:[s.jsx(P,{value:"organization",children:r("settings.secrets.scopeOrganizationDescription")}),s.jsx(P,{value:"user",children:r("settings.secrets.scopePrivateDescription")})]})]})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-name",children:r("settings.secrets.nameLabel")}),s.jsx(_,{id:"secret-name",value:n,onChange:u=>a(u.target.value),placeholder:r("settings.secrets.namePlaceholder"),autoComplete:"off",required:!0}),s.jsx("p",{className:"text-xs text-muted-foreground",children:r("settings.secrets.nameHelp")})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-value",children:r("settings.secrets.valueLabel")}),s.jsx(_,{id:"secret-value",type:"password",value:l,onChange:u=>o(u.target.value),autoComplete:"new-password",required:!0})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(w,{htmlFor:"secret-description",children:r("settings.secrets.descriptionLabel")}),s.jsx(W,{id:"secret-description",value:d,onChange:u=>m(u.target.value),rows:2,placeholder:r("settings.secrets.descriptionPlaceholder")})]}),s.jsxs(I,{children:[s.jsx(D,{type:"button",variant:"outline",onClick:p,disabled:x.isPending,children:r("settings.secrets.cancelButton")}),s.jsx(D,{type:"submit",disabled:x.isPending||!n.trim()||!l,children:x.isPending?r("settings.secrets.creatingButton"):r("settings.secrets.createButton")})]})]})]})})}function re(){const t=j.c(34),e=y(),r=X(),[i,c]=N.useState(!1);let n,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),a=s.jsx(V,{size:14}),t[0]=n,t[1]=a):(n=t[0],a=t[1]);let l;t[2]!==e?(l=e("settings.secrets.newSecret"),t[2]=e,t[3]=l):l=t[3];let o;t[4]!==l?(o=s.jsx(C.Actions,{children:s.jsxs(D,{size:"sm",onClick:n,children:[a,l]})}),t[4]=l,t[5]=o):o=t[5];const d=o;if(r.length===0){let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(se,{action:!1}),t[6]=u):u=t[6];let f;t[7]!==i?(f=s.jsx(k,{open:i,onOpenChange:c}),t[7]=i,t[8]=f):f=t[8];let h;return t[9]!==d||t[10]!==f?(h=s.jsxs(s.Fragment,{children:[d,u,f]}),t[9]=d,t[10]=f,t[11]=h):h=t[11],h}let m,x,g;if(t[12]!==d||t[13]!==r||t[14]!==e){const u=r.filter(le),f=r.filter(ce),h=r.length===1?"settings.secrets.secretsCountSingular":"settings.secrets.secretsCountPlural";let S;t[18]!==r.length||t[19]!==e||t[20]!==h?(S=e(h,{count:r.length}),t[18]=r.length,t[19]=e,t[20]=h,t[21]=S):S=t[21];let v;t[22]!==S?(v=s.jsx("p",{className:"text-sm text-muted-foreground",children:S}),t[22]=S,t[23]=v):v=t[23],t[24]!==d||t[25]!==v?(m=s.jsxs("div",{className:"flex items-center justify-between",children:[v,d]}),t[24]=d,t[25]=v,t[26]=m):m=t[26],x=u.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionOrganization")}),s.jsx("div",{children:u.map(ie)})]}):null,g=f.length>0?s.jsxs("section",{className:"rounded-2xl border border-border/60 bg-background p-5",children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground mb-2",children:e("settings.secrets.sectionPrivate")}),s.jsx("div",{children:f.map(ne)})]}):null,t[12]=d,t[13]=r,t[14]=e,t[15]=m,t[16]=x,t[17]=g}else m=t[15],x=t[16],g=t[17];let p;t[27]!==i?(p=s.jsx(k,{open:i,onOpenChange:c}),t[27]=i,t[28]=p):p=t[28];let b;return t[29]!==m||t[30]!==x||t[31]!==g||t[32]!==p?(b=s.jsxs(s.Fragment,{children:[m,x,g,p]}),t[29]=m,t[30]=x,t[31]=g,t[32]=p,t[33]=b):b=t[33],b}function ne(t){return s.jsx($,{secret:t},t.id)}function ie(t){return s.jsx($,{secret:t},t.id)}function ce(t){return t.scope==="user"}function le(t){return t.scope==="organization"}function ae(){const t=j.c(7),e=y();let r;t[0]!==e?(r=e("settings.nav.secrets"),t[0]=e,t[1]=r):r=t[1];let i;t[2]!==r?(i=s.jsx(C.Title,{children:r}),t[2]=r,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(F,{fallback:oe,children:s.jsx(N.Suspense,{fallback:s.jsx(L,{className:"h-32 w-full"}),children:s.jsx(re,{})})}),t[4]=c):c=t[4];let n;return t[5]!==i?(n=s.jsx(C,{children:s.jsx(C.Content,{children:s.jsx(C.Container,{children:s.jsxs(E,{children:[i,c]})})})}),t[5]=i,t[6]=n):n=t[6],n}function oe(t){const{error:e}=t;return s.jsx(ee,{error:e??new Error("Failed to load secrets")})}function we(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{capability:"secrets:manage",area:"secrets",children:s.jsx(ae,{})}),t[0]=e):e=t[0],e}export{we as default};
|