decocms 4.500.7 → 4.501.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-DHLjYBHG.js → ActiveShapeUtils-D-fL_h7g.js} +1 -1
- package/dist/client/assets/{AlertCircle-BILwGqjV.js → AlertCircle-D3bAofoi.js} +1 -1
- package/dist/client/assets/{AreaChart-MBaQ2sXA.js → AreaChart-BkD3ldvt.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DlRqrbst.js → ArrowLeft-Cdobx1UV.js} +1 -1
- package/dist/client/assets/{ArrowUp-CFc2wNu3.js → ArrowUp-D_3dn5Sd.js} +1 -1
- package/dist/client/assets/{BarChart-ip63zVKP.js → BarChart-DdPh9tNP.js} +1 -1
- package/dist/client/assets/{Building02-QB_UI3sB.js → Building02-Bh6iwr2R.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CD4E_XC5.js → CategoricalChart-tLM_K2Lc.js} +1 -1
- package/dist/client/assets/{CheckCircle-CG1RvCMD.js → CheckCircle-BQiYUYV1.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-23OZgHQl.js → ChevronSelectorVertical-CpMmf6o-.js} +1 -1
- package/dist/client/assets/{ChevronUp-BrMcnDd0.js → ChevronUp-CfnfCq3M.js} +1 -1
- package/dist/client/assets/{Copy01-QpufVNbj.js → Copy01-CKF8jrEa.js} +1 -1
- package/dist/client/assets/{CreditCard01-W1zS1W7o.js → CreditCard01-B4jz404y.js} +1 -1
- package/dist/client/assets/{DotsVertical-E-CAHxZx.js → DotsVertical-BVuRRGqu.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DoXCMhKl.js → ErrorBarContext-D3QRg5_X.js} +1 -1
- package/dist/client/assets/{Globe04-C2IFbCwJ.js → Globe04-CfnS-Tur.js} +1 -1
- package/dist/client/assets/{Image01-D8Dg78Ju.js → Image01-C6EZAhw4.js} +1 -1
- package/dist/client/assets/{Key01-CCpcNn9J.js → Key01-C3bTgL7y.js} +1 -1
- package/dist/client/assets/{Link01-Dw-VkUVV.js → Link01-Bb9ZHTO8.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BBYM52IU.js → LinkBroken01-BbLhCJ9C.js} +1 -1
- package/dist/client/assets/{Monitor01-596xyLh3.js → Monitor01-BT48-O3V.js} +1 -1
- package/dist/client/assets/{Play-CIe1tupB.js → Play-DlM8u9Zn.js} +1 -1
- package/dist/client/assets/{Plus-DTyq8wfJ.js → Plus-h-7fG8-i.js} +1 -1
- package/dist/client/assets/{SearchMd-DnZ_sK_U.js → SearchMd-DdAgg3kt.js} +1 -1
- package/dist/client/assets/{Sector-iSjEHRg-.js → Sector-udGfVqY9.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-Brrt7Bh6.js → ShoppingBag01-gtt6oc_g.js} +1 -1
- package/dist/client/assets/{Sun-BmhcFIJl.js → Sun-D0bMmBqD.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-B5sfCWHV.js → SwitchHorizontal01-mzV8h1Yb.js} +1 -1
- package/dist/client/assets/{Tool01-BSpg9N8Q.js → Tool01-BOGFE1PW.js} +1 -1
- package/dist/client/assets/{Trash01-uPItCfKQ.js → Trash01-BKZKll81.js} +1 -1
- package/dist/client/assets/{Upload01-ClSeM0gf.js → Upload01-ClJbirSb.js} +1 -1
- package/dist/client/assets/{User01-DabbLHAZ.js → User01-jcmfLZ4a.js} +1 -1
- package/dist/client/assets/{UserSquare-BXjBRbTF.js → UserSquare-Dnl3alN_.js} +1 -1
- package/dist/client/assets/{Users01-Dt36FENA.js → Users01-DBt3BOu-.js} +1 -1
- package/dist/client/assets/{XAxis-BQtU7n4v.js → XAxis-DWTEKRSO.js} +1 -1
- package/dist/client/assets/{XClose-BMDlg-34.js → XClose-DtCD4hEo.js} +1 -1
- package/dist/client/assets/{ZoomOut-Bnst3wtU.js → ZoomOut-C-oiWFtM.js} +1 -1
- package/dist/client/assets/{access-gate-BnarIuC9.js → access-gate-Bs83GnN9.js} +1 -1
- package/dist/client/assets/add-connection-dialog-CkfM8RAE.js +1 -0
- package/dist/client/assets/agent-analytics-PkbYclRB.js +2 -0
- package/dist/client/assets/agent-app-Dq_KNzND.js +1 -0
- package/dist/client/assets/agent-assets-BSNQs1Q4.js +1 -0
- package/dist/client/assets/agent-automation-CYLhaLQV.js +20 -0
- package/dist/client/assets/agent-automations-CylXZmQz.js +1 -0
- package/dist/client/assets/agent-connect-sources-gehkSGol.js +1 -0
- package/dist/client/assets/agent-deck-CB0RXEGe.js +1 -0
- package/dist/client/assets/agent-e2e-gcrRg7hM.js +1 -0
- package/dist/client/assets/agent-experiments-CMJUnUoe.js +1 -0
- package/dist/client/assets/agent-file-JLVKcoj6.js +1 -0
- package/dist/client/assets/agent-hosting-AV1ldWsd.js +1 -0
- package/dist/client/assets/{agent-icon-BdZdLCky.js → agent-icon-D1bIPwJ9.js} +1 -1
- package/dist/client/assets/agent-library-ChYqVk94.js +1 -0
- package/dist/client/assets/agent-library-file-5NiMKcJU.js +1 -0
- package/dist/client/assets/agent-monitor-DCEK-_YE.js +1 -0
- package/dist/client/assets/agent-overview-Bq6iylVc.js +1 -0
- package/dist/client/assets/agent-releases-0JQ-pNIw.js +2 -0
- package/dist/client/assets/agent-settings-DutqpeLT.js +1 -0
- package/dist/client/assets/agent-site-editor-DUVPLgUJ.js +27 -0
- package/dist/client/assets/agent-site-editor-code-Bs5iWgah.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DG0PHKu_.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-IbSFpbgz.js +1 -0
- package/dist/client/assets/agent-view-BMSjk6sE.js +1 -0
- package/dist/client/assets/agent-view-guard-B0ssprgS.js +1 -0
- package/dist/client/assets/{agents-list-qSpN3sGU.js → agents-list-CL_HbBRx.js} +1 -1
- package/dist/client/assets/{ai-providers-DwrXOrzh.js → ai-providers-mazNpep3.js} +1 -1
- package/dist/client/assets/{alert-Tk2m0Iz_.js → alert-Bo4bO9Yj.js} +1 -1
- package/dist/client/assets/{alert-dialog-By0HRTrM.js → alert-dialog-BEUBWKqO.js} +2 -2
- package/dist/client/assets/{analytics-sections-BjYHHt7V.js → analytics-sections-DM3YuBYq.js} +1 -1
- package/dist/client/assets/api-keys-BfQZh5eV.js +1 -0
- package/dist/client/assets/{api-keys-DaMqNdv1.js → api-keys-DVwB6mPs.js} +1 -1
- package/dist/client/assets/app-editor-6HFiMwKn.js +1 -0
- package/dist/client/assets/{asset-utils-Cne_zeGQ.js → asset-utils-f7af-ti1.js} +1 -1
- package/dist/client/assets/{auth-CTn9OsYL.js → auth-CpMllKKy.js} +1 -1
- package/dist/client/assets/{auth-catchall-CMbAfThb.js → auth-catchall-s5AR8jnh.js} +1 -1
- package/dist/client/assets/auth-entry-DhhGCuwo.js +1 -0
- package/dist/client/assets/{auth-split-layout--aU7QLNo.js → auth-split-layout-CVNIUCsf.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-bcqFV5Ih.js → authenticate-and-persist-oauth-B45I3cgI.js} +1 -1
- package/dist/client/assets/{automation-list-row-3u6JAmgN.js → automation-list-row-sOJZ4uwa.js} +1 -1
- package/dist/client/assets/{automation-runs-Cy2qWf8T.js → automation-runs-CR9XH4Bt.js} +1 -1
- package/dist/client/assets/{automations-B06cv6_Q.js → automations-KO9N3LUU.js} +1 -1
- package/dist/client/assets/{autosend-Cr5TlS-x.js → autosend-BPCdEy8S.js} +1 -1
- package/dist/client/assets/{avatar-DNs314ny.js → avatar-BwGV1yBo.js} +1 -1
- package/dist/client/assets/{badge-BDMYkxf_.js → badge-DZi2puxG.js} +1 -1
- package/dist/client/assets/{block-document-BkfPgGlg.js → block-document-DKS5cj35.js} +3 -3
- package/dist/client/assets/{blocks-preview-workspace-context-D5JWaTS4.js → blocks-preview-workspace-context-CDjfxqPx.js} +1 -1
- package/dist/client/assets/blocks-tab-states-CdRfYXjG.js +20 -0
- package/dist/client/assets/blog-schema-DQu9FHji.js +1 -0
- package/dist/client/assets/{board-analytics-B8AHF8AB.js → board-analytics-Br92I9NK.js} +1 -1
- package/dist/client/assets/{buckets-CUa7QjX3.js → buckets-BJOMOAgi.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-l6jHAadC.js → build-improve-prompt-doc-DrFz7LF_.js} +1 -1
- package/dist/client/assets/{calendar-9HE_r4Hw.js → calendar-evfJy3uJ.js} +1 -1
- package/dist/client/assets/{capability-load-error-DVDKy7cm.js → capability-load-error-vW3f0aqj.js} +1 -1
- package/dist/client/assets/category-editor-QytvoXKo.js +1 -0
- package/dist/client/assets/{chart-n7qVLeZu.js → chart-yXoVtu1q.js} +1 -1
- package/dist/client/assets/chat-context-lAP9vX1C.js +39 -0
- package/dist/client/assets/{chat-draft-Bi-CpEK_.js → chat-draft-DVJc17WV.js} +1 -1
- package/dist/client/assets/{checkbox-jukyyas4.js → checkbox-DcDvQwKW.js} +1 -1
- package/dist/client/assets/{choose-editor-BpukaXWx.js → choose-editor-B0ViIXN7.js} +1 -1
- package/dist/client/assets/{cli-auth-success-ZwkiiHM_.js → cli-auth-success-CKu92ul9.js} +1 -1
- package/dist/client/assets/{client-icons-CI6qGlDq.js → client-icons-DV_DZLb3.js} +1 -1
- package/dist/client/assets/cms-settings-editor-Cz5yTS8J.js +1 -0
- package/dist/client/assets/{collapsible-CSMgVqT4.js → collapsible-BvvJbkUN.js} +1 -1
- package/dist/client/assets/collection-detail-gDWElNf6.js +1 -0
- package/dist/client/assets/{collection-display-button-DfzaspAg.js → collection-display-button-CX9hkCzp.js} +1 -1
- package/dist/client/assets/{collection-search-q0ogFMFh.js → collection-search-ChJFrp7I.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Dnaf2KFs.js → collection-table-wrapper-S14li0ck.js} +1 -1
- package/dist/client/assets/{collection-tabs-CYgVG041.js → collection-tabs-CSxs3D41.js} +1 -1
- package/dist/client/assets/{column-rules-BDs9HTxP.js → column-rules-GXfmm3XY.js} +2 -2
- package/dist/client/assets/{combobox-BTfHieW4.js → combobox-C7I8ANxO.js} +1 -1
- package/dist/client/assets/{command-DFd1c5Z5.js → command-3UFu4XzT.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-4lkaw_O0.js → companion-mcps-section-B4r6rXjT.js} +1 -1
- package/dist/client/assets/{config-CtmGoERx.js → config-CXc91so8.js} +1 -1
- package/dist/client/assets/{connect-CmDZNw9R.js → connect-CyItQRMN.js} +3 -3
- package/dist/client/assets/{connect-layout-CC9olkOl.js → connect-layout-C_C_fSz7.js} +1 -1
- package/dist/client/assets/{connection-DSkv8Cg1.js → connection-C37KtOpn.js} +1 -1
- package/dist/client/assets/{connection-card-C7Yq5GHs.js → connection-card-BZTmMkIC.js} +1 -1
- package/dist/client/assets/connection-detail-D0FXWtUX.js +1 -0
- package/dist/client/assets/{connection-form-helpers-BsU6F-s_.js → connection-form-helpers-DxBwDmAB.js} +1 -1
- package/dist/client/assets/connections-D-s5sSvb.js +1 -0
- package/dist/client/assets/content-tab-zP6Y355z.js +8 -0
- package/dist/client/assets/context-CXih-hDd.js +1 -0
- package/dist/client/assets/{context-menu-CYa4PKRJ.js → context-menu-BVwispbr.js} +1 -1
- package/dist/client/assets/{core.esm-lZvNzlYc.js → core.esm-CmRvLUZs.js} +2 -2
- package/dist/client/assets/{create-organization-dialog-D-9YlOhY.js → create-organization-dialog-MkYGLytC.js} +1 -1
- package/dist/client/assets/daily-pulse-C5ZpC1Ja.js +1 -0
- package/dist/client/assets/device-hint-SeLRi17j.js +1 -0
- package/dist/client/assets/discover-CnNtsI6p.js +1 -0
- package/dist/client/assets/{domain-settings-BDouaDKh.js → domain-settings-C-ul_GpW.js} +1 -1
- package/dist/client/assets/{drawer-UzGeZrmC.js → drawer-BnxsVk9h.js} +1 -1
- package/dist/client/assets/{editor-KeKsFC14.js → editor-BcMzCvWI.js} +1 -1
- package/dist/client/assets/editor-classes-qOc25VDM.js +1 -0
- package/dist/client/assets/{empty-state-CvDYWxOG.js → empty-state-CLULH17h.js} +1 -1
- package/dist/client/assets/{empty-state-DdJZ_leg.js → empty-state-Csd3ZQCl.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CJhjAx3s.js → extract-connection-data-QezQYJtA.js} +1 -1
- package/dist/client/assets/{feature-gate-D5KGpIQ3.js → feature-gate-X9j31WTs.js} +1 -1
- package/dist/client/assets/{feature-paywall-nTUHasXJ.js → feature-paywall-CVHEJqfB.js} +1 -1
- package/dist/client/assets/{file-explorer-CcZkMQK3.js → file-explorer-CzlgH02W.js} +2 -2
- package/dist/client/assets/{file-preview-Ct2165jc.js → file-preview-Ddg0WJAM.js} +1 -1
- package/dist/client/assets/{file-share-button-DnzCcmZ2.js → file-share-button-D2qOTxL8.js} +2 -2
- package/dist/client/assets/{file-type-icon-C-_1hLql.js → file-type-icon-Bqf9C4DT.js} +1 -1
- package/dist/client/assets/flat-project-EkkB9kye.js +1 -0
- package/dist/client/assets/{folder-icon-CksigScx.js → folder-icon-CktDjbyx.js} +2 -2
- package/dist/client/assets/{form-D6DHFxsw.js → form-BLRuutWX.js} +1 -1
- package/dist/client/assets/format-time-CAj8AQXM.js +1 -0
- package/dist/client/assets/general-DAKv-uYe.js +1 -0
- package/dist/client/assets/home-BtntFMXr.js +1 -0
- package/dist/client/assets/hosted-publish-feedback-DnbP_2C-.js +1 -0
- package/dist/client/assets/{icon-button-d9uOvdxM.js → icon-button-08xWmNqW.js} +1 -1
- package/dist/client/assets/{index-BGz-w6Gg.js → index-3um-0YWE.js} +1 -1
- package/dist/client/assets/index-3yvbELIe.js +1 -0
- package/dist/client/assets/{index-COV2t6Wc.js → index-9WXzzgOS.js} +2 -2
- package/dist/client/assets/{index-MZuRM-ap.js → index-BOjNGNvg.js} +1 -1
- package/dist/client/assets/index-BgxfZN5I.js +243 -0
- package/dist/client/assets/index-BiU97Vx4.js +1 -0
- package/dist/client/assets/index-BvCsVc8L.js +2 -0
- package/dist/client/assets/{index-B0rouRMk.js → index-Ct9bVcsr.js} +1 -1
- package/dist/client/assets/{index-DCmQGiOV.js → index-DIK8YZFn.js} +2 -2
- package/dist/client/assets/{index-Dhdyv2s0.js → index-DJTmuPQQ.js} +1 -1
- package/dist/client/assets/{index-Cw6J2Hl5.js → index-DT37BMIF.js} +5 -5
- package/dist/client/assets/{index-JuyO8Sz3.js → index-Dhveikge.js} +1 -1
- package/dist/client/assets/index-Dss8yn2Y.js +1 -0
- package/dist/client/assets/{index-DyaBZBxm.js → index-DyeE93ho.js} +14 -14
- package/dist/client/assets/{index-B5IA1qMq.js → index-lUChgCue.js} +1 -1
- package/dist/client/assets/index-m9hX09uY.css +1 -0
- package/dist/client/assets/{index-redirect-CdLcLUA4.js → index-redirect-CHE6u4Cv.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-rUCOtzeA.js → infiniteQueryObserver-ClCiPTXN.js} +1 -1
- package/dist/client/assets/{infra-billing-CNFpdYUt.js → infra-billing-ChfVikin.js} +1 -1
- package/dist/client/assets/input-BSxNJ_GL.js +17 -0
- package/dist/client/assets/input-BwymrIPS.js +1 -0
- package/dist/client/assets/{integration-icon-DogZfPWq.js → integration-icon-DmnIXoLv.js} +1 -1
- package/dist/client/assets/{jira-icon-Bkx-ixmo.js → jira-icon-BLL3j9jm.js} +1 -1
- package/dist/client/assets/{label-Bqj_xjz9.js → label-CXUY_vfR.js} +1 -1
- package/dist/client/assets/{layout-z7Pz7phr.js → layout-DIeTUTU5.js} +1 -1
- package/dist/client/assets/legacy-agents-deep-BKyQMU33.js +1 -0
- package/dist/client/assets/legacy-main-redirect-BsoX6iN0.js +1 -0
- package/dist/client/assets/library-j3CGQ36X.js +1 -0
- package/dist/client/assets/{library-tab-0FXiesZx.js → library-tab-D2qgQui6.js} +4 -4
- package/dist/client/assets/{login-B4wTb5ls.js → login-E4QHNGwe.js} +1 -1
- package/dist/client/assets/{markdown-5DzLzA6E.js → markdown-b3WNjA4d.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DuGbCe-D.js → mcp-app-renderer-Cn4aCsu6.js} +2 -2
- package/dist/client/assets/{mcp-oauth-D_oaXY6E.js → mcp-oauth-C3NWluK_.js} +1 -1
- package/dist/client/assets/{mcp-oauth-tCidCN-u.js → mcp-oauth-RicpD0nY.js} +1 -1
- package/dist/client/assets/{members-CDM-83p9.js → members-BxD5PzHF.js} +1 -1
- package/dist/client/assets/{memory-0faJ-8hP.js → memory-C9XODnnD.js} +2 -2
- package/dist/client/assets/{mini-report-page-CrKZ4okq.js → mini-report-page-BIc8DpQB.js} +1 -1
- package/dist/client/assets/{mock-board-N392Vku2.js → mock-board-ohQUjnsi.js} +1 -1
- package/dist/client/assets/{monaco-editor-2Ci5R71u.js → monaco-editor-sh4I5RUd.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-BbxkYAB2.js → monitoring-stats-row-DV6G65vc.js} +1 -1
- package/dist/client/assets/{multi-select-CNHwKIXn.js → multi-select-B-4k-Bqg.js} +1 -1
- package/dist/client/assets/mustache-Ds0VW1db.js +4 -0
- package/dist/client/assets/{new-project-dialog-C5lJfUJ3.js → new-project-dialog-B1YWyUQY.js} +1 -1
- package/dist/client/assets/{oauth-callback-DGtqmz9D.js → oauth-callback-Dk0amXzl.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Bhuh08e8.js → oauth-callback-ai-provider-yxTXgHsL.js} +1 -1
- package/dist/client/assets/{onboarding-D55kfuiq.js → onboarding-WAcQlT34.js} +1 -1
- package/dist/client/assets/openai-conversation-DdRGYa72.js +3 -0
- package/dist/client/assets/optimistic-project-sidebar-views-CX9xIBGl.js +1 -0
- package/dist/client/assets/{organization-choice-CUxHZSL3.js → organization-choice-ByF9jLiX.js} +1 -1
- package/dist/client/assets/{orgs-CPCdS87I.js → orgs-BQHW_eGH.js} +1 -1
- package/dist/client/assets/page-seo-form-CHn8Xad5.js +1 -0
- package/dist/client/assets/{pair-DjM6V7aG.js → pair-CUEfObr7.js} +8 -8
- package/dist/client/assets/{plan-ladder-gwROOTzi.js → plan-ladder-DCjrzFrn.js} +1 -1
- package/dist/client/assets/{popover-MLSOZysn.js → popover-C7Cokk1g.js} +1 -1
- package/dist/client/assets/post-calendar-8u0J9Dxw.js +1 -0
- package/dist/client/assets/post-editor-BzyUnSeO.js +2 -0
- package/dist/client/assets/{preview-content-Cuq13S1x.js → preview-content-DvIKkdby.js} +1 -1
- package/dist/client/assets/{preview-dialog-CP7wwQxY.js → preview-dialog-l7y7EMMl.js} +1 -1
- package/dist/client/assets/{preview-panel-DFRYD57I.js → preview-panel-BVF8JvLU.js} +1 -1
- package/dist/client/assets/preview-source-BsRLGWUP.js +1 -0
- package/dist/client/assets/preview-tab-DSXQiNWB.js +551 -0
- package/dist/client/assets/product-picker-dialog-D1HSCZY-.js +1 -0
- package/dist/client/assets/{profile-E9E7lNqo.js → profile-DLHHp5WU.js} +1 -1
- package/dist/client/assets/{project-app-view-CqnnpjCc.js → project-app-view-BwoWS8NM.js} +1 -1
- package/dist/client/assets/{project-feed-DI26nV5j.js → project-feed-Bb_IIsXz.js} +1 -1
- package/dist/client/assets/{project-icon-DsUbDdQC.js → project-icon-Dgrl5qpw.js} +1 -1
- package/dist/client/assets/project-reports-C-bRcSvJ.js +1 -0
- package/dist/client/assets/project-tasks-DDJFKuGl.js +1 -0
- package/dist/client/assets/{projects-CdLu99l3.js → projects-DRVKv_2I.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CO-mNXLv.js → projects-empty-state-CtZ_2AQk.js} +1 -1
- package/dist/client/assets/{prompts-CGIibyOn.js → prompts-BeeaQU8h.js} +1 -1
- package/dist/client/assets/record-editor-5RvQSHc4.js +1 -0
- package/dist/client/assets/redirect-editor-B1Nkj9GS.js +1 -0
- package/dist/client/assets/reports-BGfmbbJs.js +1 -0
- package/dist/client/assets/{reports-CKJQ8Zdg.js → reports-C5l1V9UL.js} +1 -1
- package/dist/client/assets/{reports-onboarding-UAs51Fs-.js → reports-onboarding-DP7Vd0T2.js} +1 -1
- package/dist/client/assets/{reports-tab-D-UL6Cu0.js → reports-tab-CtVbVcib.js} +2 -2
- package/dist/client/assets/{repositories-8LjwXVAZ.js → repositories-CbAg-Btm.js} +1 -1
- package/dist/client/assets/repository-binding-BFm9AVly.js +1 -0
- package/dist/client/assets/{repository-import-picker-D5xDiyD_.js → repository-import-picker-EyjACjb3.js} +1 -1
- package/dist/client/assets/{repository-picker-DExxlkis.js → repository-picker-CIkU8AaT.js} +1 -1
- package/dist/client/assets/{require-capability-DJr1iBd_.js → require-capability-BHXvQx1F.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Dzef4Ao1.js → required-auth-layout-BWy4wi63.js} +1 -1
- package/dist/client/assets/{reset-password-CWozFngH.js → reset-password-BmnWobO1.js} +1 -1
- package/dist/client/assets/{resizable-UTJFKDGm.js → resizable-ojZdlQ3J.js} +1 -1
- package/dist/client/assets/resolve-tab-icon-CQA14gzS.js +1 -0
- package/dist/client/assets/review-settings-HBrPojjW.js +1 -0
- package/dist/client/assets/{roles-D_wIHL0X.js → roles-Dtyn_BZq.js} +1 -1
- package/dist/client/assets/route-BnPcnvQE.js +1 -0
- package/dist/client/assets/route-FIzJ_P0a.js +1 -0
- package/dist/client/assets/route-tGmKNjFY.js +1 -0
- package/dist/client/assets/sandbox-git-api-CRxdlhrN.js +1 -0
- package/dist/client/assets/sandbox-lifecycle-context-BiADnqP0.js +1 -0
- package/dist/client/assets/{schema-kVE-1hbs.js → schema-C2wKusx1.js} +1 -1
- package/dist/client/assets/{schema-BKM3gR2B.js → schema-CP7YDlC2.js} +1 -1
- package/dist/client/assets/{scroll-area-1S72VGW0.js → scroll-area-eDDZTCNn.js} +1 -1
- package/dist/client/assets/{search-input-pTAwOtCG.js → search-input-Uw0JKwfe.js} +1 -1
- package/dist/client/assets/{search-toggle-DAU6nVmU.js → search-toggle-sm1qzFKh.js} +1 -1
- package/dist/client/assets/secret-ciphertext-CONJpmu9.js +1 -0
- package/dist/client/assets/{secret-picker-CDYFp1fc.js → secret-picker-60Shu074.js} +1 -1
- package/dist/client/assets/{secrets-B0srIKJq.js → secrets-BoqLiEya.js} +1 -1
- package/dist/client/assets/sections-editor-vaJsT4Ye.js +4 -0
- package/dist/client/assets/{select-WviNHwZD.js → select-BFEZcGSl.js} +1 -1
- package/dist/client/assets/{select-model-cTObTD6V.js → select-model-DqlWeDem.js} +1 -1
- package/dist/client/assets/seo-editor-CH8U1dHr.js +1 -0
- package/dist/client/assets/{separator-DHqK6uc1.js → separator-B8-QmvpR.js} +1 -1
- package/dist/client/assets/settings-tab-CKwbS1hi.js +4 -0
- package/dist/client/assets/{sheet-CZiDNUQZ.js → sheet-Nq7jp8TZ.js} +1 -1
- package/dist/client/assets/shell-layout-D6cRROrP.js +1 -0
- package/dist/client/assets/site-editor-BZvWDg3I.js +1 -0
- package/dist/client/assets/site-editor-toast-DKv6_ydN.js +1 -0
- package/dist/client/assets/{skills-Bhf5PJUl.js → skills-D12rIMUM.js} +1 -1
- package/dist/client/assets/{slider-gvEbcdOp.js → slider-DDXbeLEV.js} +1 -1
- package/dist/client/assets/{sortable.esm-h3AYG-u7.js → sortable.esm-B6I_GSlr.js} +1 -1
- package/dist/client/assets/{sso-B6q4MTEL.js → sso-BlG3mIxu.js} +1 -1
- package/dist/client/assets/{suggestion-C591DFAx.js → suggestion-BDdps7f5.js} +2 -2
- package/dist/client/assets/{switch-CUK4V52q.js → switch-fTPKFxtt.js} +1 -1
- package/dist/client/assets/{symbol-BQaHJ_MF.js → symbol-DzslO63t.js} +1 -1
- package/dist/client/assets/{synced-repos-BbxE1rvi.js → synced-repos-BoksOfkS.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-D8Um0oDf.js → tab-icon-glyph-B_Nx9b90.js} +1 -1
- package/dist/client/assets/{table-Dsl6wBVe.js → table-DM6c5ztx.js} +1 -1
- package/dist/client/assets/{tabs-BXhvcQgN.js → tabs-_ffnq5EI.js} +1 -1
- package/dist/client/assets/{task-board-kbcRVMI1.js → task-board-3mxTKXc4.js} +1 -1
- package/dist/client/assets/{task-route-BPrIj9mX.js → task-route-Bd7_oRze.js} +1 -1
- package/dist/client/assets/{task-status-codqNsI7.js → task-status-DobFUFUP.js} +1 -1
- package/dist/client/assets/taskboard-analytics-BqoskKtI.js +1 -0
- package/dist/client/assets/{tasks-J75byAMf.js → tasks-8erS0IrD.js} +3 -3
- package/dist/client/assets/tasks-SfkUPw6i.js +1 -0
- package/dist/client/assets/{textarea-DvoMwt1e.js → textarea-DuXoEX68.js} +1 -1
- package/dist/client/assets/thread-analytics-DRN0lWXv.js +1 -0
- package/dist/client/assets/{thread-intent-CG-CCDLs.js → thread-intent-CNERxhpd.js} +6 -6
- package/dist/client/assets/{thread-route-DvTW6luy.js → thread-route-B1yKR26I.js} +1 -1
- package/dist/client/assets/{thread-route-CR0TIP8s.js → thread-route-Ctf783T8.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-BAmHmw0m.js → thread-sheet-body-BOzE-wDr.js} +1 -1
- package/dist/client/assets/{time-range-picker-CPMdzMas.js → time-range-picker-CTRRThMq.js} +1 -1
- package/dist/client/assets/{toggle-group-Q9SREgL7.js → toggle-group-Cfs_-SSG.js} +1 -1
- package/dist/client/assets/{tool-namespace-uRsPbj-p.js → tool-namespace-D2ik4cAJ.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Djr5zvaV.js → toolbar-icon-button-CPspdKt4.js} +1 -1
- package/dist/client/assets/{tooltip-COqLwkid.js → tooltip-IZurjemL.js} +1 -1
- package/dist/client/assets/{tooltipContext-DDD6cP5q.js → tooltipContext-D100ISAz.js} +1 -1
- package/dist/client/assets/{track-DG4JP_WA.js → track-Dgx71QRR.js} +1 -1
- package/dist/client/assets/{types-C5SQt0XZ.js → types-BE1SardL.js} +10 -10
- package/dist/client/assets/{url-slug-CUhgOgGc.js → url-slug-CwNPw3b4.js} +1 -1
- package/dist/client/assets/{usage-stats-CAukzrpg.js → usage-stats-CG9oV0kb.js} +34 -34
- package/dist/client/assets/{use-ai-providers-IjG3zzka.js → use-ai-providers-CPzOGdQy.js} +1 -1
- package/dist/client/assets/use-app-takeover-l9YncUZ0.js +1 -0
- package/dist/client/assets/{use-automations-Dt8Ypk0g.js → use-automations-B6o4Nbzc.js} +1 -1
- package/dist/client/assets/{use-autosave-CiBl7wSO.js → use-autosave-DPNBZc_p.js} +1 -1
- package/dist/client/assets/use-chat-navigation-Do_KkN8I.js +1 -0
- package/dist/client/assets/{use-clock-tick-zaL95TTy.js → use-clock-tick-BnfclhFE.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CRI0nNcp.js → use-connect-companion-BPMXolOl.js} +1 -1
- package/dist/client/assets/{use-connection-gMb_8zEe.js → use-connection-DS1VAR5N.js} +1 -1
- package/dist/client/assets/{use-copy-2j0k06rN.js → use-copy-C8TWXH-H.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Bz6TE2Qz.js → use-create-virtual-mcp-CeEuYNMP.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BPq8VLDt.js → use-date-fns-locale-D3qFWxxv.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CMA_1eXM.js → use-debounced-autosave-DsoI68di.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Dju-tMu1.js → use-debounced-value-KpwtUdsd.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BtvhFk4m.js → use-deco-credits-DscUzXq9.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-D8zpT0sX.js → use-decopilot-events-D8UIooCs.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BXDiC_mk.js → use-delete-connection-Dnzv3Wbz.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CXT7CFHy.js → use-deployment-admin-P_SogPj1.js} +1 -1
- package/dist/client/assets/use-ensure-project-folder-Dom2nmkC.js +1 -0
- package/dist/client/assets/use-fast-preview-draft-url-DnHFw81T.js +1 -0
- package/dist/client/assets/use-file-configs-Cv2mXUdp.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-CtScOz_h.js → use-infinite-scroll-CuKgvt7b.js} +1 -1
- package/dist/client/assets/{use-join-requests-CccLwL3-.js → use-join-requests-cLAvpRra.js} +1 -1
- package/dist/client/assets/use-main-panel-tabs-B0dFgvCE.js +1 -0
- package/dist/client/assets/{use-mcp-auth-status-Is2pR00q.js → use-mcp-auth-status-DaPeILTX.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DuTNn1dc.js → use-mcp-client-CU2kDBXP.js} +2 -2
- package/dist/client/assets/{use-mcp-prompts-3vLSpQqZ.js → use-mcp-prompts-CdDXQMlf.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CA6Ri5UK.js → use-mcp-tools-CyHq-JFp.js} +1 -1
- package/dist/client/assets/{use-members-BqWTpMNp.js → use-members-CkpNHwM6.js} +1 -1
- package/dist/client/assets/{use-mobile-Di3PCVWm.js → use-mobile-DNDEd3kt.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Cu9cZhs8.js → use-navigate-to-agent-JTDphVE0.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-sjDwQSEM.js → use-open-billing-url-2Iqpie3T.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DIUzAE5u.js → use-org-auth-client-Bwzj9WuC.js} +1 -1
- package/dist/client/assets/{use-org-fs-DOu4nQSr.js → use-org-fs-Cg7EJCYS.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BhJEcVcm.js → use-org-repo-syncs-D4j72pCa.js} +1 -1
- package/dist/client/assets/{use-org-sso-B57pfGVG.js → use-org-sso-CMfwXvs9.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DDnFx_jd.js → use-organization-roles-DPDTJ01F.js} +1 -1
- package/dist/client/assets/use-organization-settings-BMIqQlbM.js +1 -0
- package/dist/client/assets/{use-panel-navigate-c5H4a21L.js → use-panel-navigate-CL5hztR3.js} +1 -1
- package/dist/client/assets/use-project-native-view-presence-CBbSdoTE.js +1 -0
- package/dist/client/assets/{use-project-scope-A4YCdR4N.js → use-project-scope-DqbIN7fa.js} +1 -1
- package/dist/client/assets/use-recent-apps-Beu6vFHw.js +1 -0
- package/dist/client/assets/use-releases-Bfs5MNEe.js +1 -0
- package/dist/client/assets/{use-reports-diagnostic-Dw_QzpEb.js → use-reports-diagnostic-QSfTgm94.js} +1 -1
- package/dist/client/assets/{use-secrets-BwPjhWC0.js → use-secrets-BaG_Hkwz.js} +1 -1
- package/dist/client/assets/use-section-preview-base-DUXeQAGw.js +1 -0
- package/dist/client/assets/{use-tags-Ce3D-sM7.js → use-tags-BWRD1El7.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BR7NSR26.js → use-task-board-analytics-Bkf73btp.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BBlz-cBe.js → use-task-board-events-CLNIzDoN.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BzAFAQp8.js → use-task-board-item-prs-Bh5krZjb.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DTbT7rEp.js → use-task-board-items-zobNU9xE.js} +1 -1
- package/dist/client/assets/use-task-metadata-Bsl_Cezz.js +1 -0
- package/dist/client/assets/{use-thread-analytics-CeuE3odS.js → use-thread-analytics-CdWNwDDd.js} +1 -1
- package/dist/client/assets/use-thread-outputs-BkgKa2EX.js +1 -0
- package/dist/client/assets/useInfiniteQuery-pEq0vd9s.js +1 -0
- package/dist/client/assets/{useQueries-BliyNTtT.js → useQueries-E-2AGLRt.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BQsEFgzv.js +1 -0
- package/dist/client/assets/{users-CsvLtEUJ.js → users-L9Rh2Jo7.js} +1 -1
- package/dist/client/assets/{utils-DHYRJNUn.js → utils-Dx9iFvKJ.js} +1 -1
- package/dist/client/assets/variant-calendar-CkKYqTGY.js +1 -0
- package/dist/client/assets/variant-draft-pointer-CSAndyah.js +1 -0
- package/dist/client/assets/{view-mode-toggle-B55pxnK_.js → view-mode-toggle-DxuIXC_C.js} +1 -1
- package/dist/client/assets/virtual-mcp-D7evpUlE.js +1 -0
- package/dist/client/assets/{watch-sse-pool-B66Eygyb.js → watch-sse-pool-Bs34dRKl.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/migrate-dbos.js +1 -1
- package/dist/server/migrate.js +42 -42
- package/dist/server/server.js +777 -737
- package/package.json +2 -1
- package/dist/client/assets/add-connection-dialog-BB_zBu7s.js +0 -1
- package/dist/client/assets/agent-analytics-DJ6OqUua.js +0 -2
- package/dist/client/assets/agent-app-6ZZFFR6d.js +0 -1
- package/dist/client/assets/agent-assets-BHKSbhmH.js +0 -1
- package/dist/client/assets/agent-automation-BEmy5bSr.js +0 -20
- package/dist/client/assets/agent-automations-p8P_f3PC.js +0 -1
- package/dist/client/assets/agent-connect-sources-DHxXXvzx.js +0 -1
- package/dist/client/assets/agent-deck-kxbwQZGK.js +0 -1
- package/dist/client/assets/agent-e2e-BPE2bY36.js +0 -1
- package/dist/client/assets/agent-experiments-ChC-SJXX.js +0 -1
- package/dist/client/assets/agent-file-BFxmR6QX.js +0 -1
- package/dist/client/assets/agent-hosting-BV7C2pVl.js +0 -1
- package/dist/client/assets/agent-library-dgFnuWrg.js +0 -1
- package/dist/client/assets/agent-library-file-LGRVpT_Z.js +0 -1
- package/dist/client/assets/agent-monitor-CbF33zT0.js +0 -1
- package/dist/client/assets/agent-overview-CiiRxzYe.js +0 -1
- package/dist/client/assets/agent-settings-CFC23BeV.js +0 -1
- package/dist/client/assets/agent-site-editor-Dq16bHz8.js +0 -25
- package/dist/client/assets/agent-site-editor-code-B3URMZgm.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CbMNndHb.js +0 -8
- package/dist/client/assets/agent-site-editor-preview-Dy_HN_0a.js +0 -551
- package/dist/client/assets/agent-view-AaYNRrLl.js +0 -1
- package/dist/client/assets/agent-view-guard-CShYlKBB.js +0 -1
- package/dist/client/assets/api-keys-CvurWoww.js +0 -1
- package/dist/client/assets/app-editor-Dtvslmpt.js +0 -1
- package/dist/client/assets/auth-entry-CcnG-745.js +0 -1
- package/dist/client/assets/blog-schema-Qz918NIm.js +0 -1
- package/dist/client/assets/category-editor-w7_HM15g.js +0 -1
- package/dist/client/assets/chat-context-DszOftwV.js +0 -39
- package/dist/client/assets/claim-phase-copy-gKkPnPW4.js +0 -1
- package/dist/client/assets/collection-detail-D7Eq0q0A.js +0 -1
- package/dist/client/assets/connection-detail-DVH9ilyh.js +0 -1
- package/dist/client/assets/connections-BMBv6B3A.js +0 -1
- package/dist/client/assets/context-B_2GuX3F.js +0 -1
- package/dist/client/assets/daily-pulse-CSM9zceR.js +0 -1
- package/dist/client/assets/device-hint-DPN31B5L.js +0 -1
- package/dist/client/assets/discover-DvrfCZMt.js +0 -1
- package/dist/client/assets/flat-project-Dhd407Mb.js +0 -1
- package/dist/client/assets/format-time-CjIPQhCN.js +0 -1
- package/dist/client/assets/general-CeTNWbSz.js +0 -1
- package/dist/client/assets/home-B3luwcfX.js +0 -1
- package/dist/client/assets/index-DHd9v6HB.js +0 -1
- package/dist/client/assets/index-DQO0lnZr.css +0 -1
- package/dist/client/assets/index-bl_DQ3mH.js +0 -243
- package/dist/client/assets/index-zYf8hP69.js +0 -1
- package/dist/client/assets/input-B6YAOx07.js +0 -17
- package/dist/client/assets/input-C1msyAUz.js +0 -1
- package/dist/client/assets/legacy-agents-deep-fygb-JNd.js +0 -1
- package/dist/client/assets/legacy-main-redirect-BKIEGtd4.js +0 -1
- package/dist/client/assets/library-BgLLAz_1.js +0 -1
- package/dist/client/assets/mustache-B7TZyK91.js +0 -4
- package/dist/client/assets/openai-conversation-C4Qt6S-l.js +0 -3
- package/dist/client/assets/optimistic-project-sidebar-views-CoZosNmn.js +0 -1
- package/dist/client/assets/page-seo-form-DdXyS1MG.js +0 -1
- package/dist/client/assets/post-calendar-Dr7XWigd.js +0 -1
- package/dist/client/assets/post-editor-CKCVg_my.js +0 -2
- package/dist/client/assets/product-picker-dialog-DuFOtAE-.js +0 -1
- package/dist/client/assets/project-reports-UVwSbHHJ.js +0 -1
- package/dist/client/assets/project-tasks-DuMsfpY5.js +0 -1
- package/dist/client/assets/record-editor-ceYt0p4C.js +0 -1
- package/dist/client/assets/redirect-editor-Ca575ToY.js +0 -1
- package/dist/client/assets/reports-y_yDpDn4.js +0 -1
- package/dist/client/assets/repository-binding-BTsmo_dA.js +0 -1
- package/dist/client/assets/resolve-tab-icon-DqCiaIA7.js +0 -1
- package/dist/client/assets/review-settings-THwrc5M3.js +0 -1
- package/dist/client/assets/rich-text-link-control-CNQ92nZ4.js +0 -1
- package/dist/client/assets/route-CfEJDbbT.js +0 -1
- package/dist/client/assets/route-DD4978oF.js +0 -1
- package/dist/client/assets/route-e2YuR4Xl.js +0 -1
- package/dist/client/assets/runnable-block-editor-fWbFWGvz.js +0 -17
- package/dist/client/assets/sandbox-git-api-C7JbVL7R.js +0 -1
- package/dist/client/assets/sandbox-lifecycle-context-C25F7mSK.js +0 -1
- package/dist/client/assets/sections-editor-B5MFR1yl.js +0 -4
- package/dist/client/assets/seo-editor-DCKDCOQr.js +0 -1
- package/dist/client/assets/settings-tab-fdKZYnq9.js +0 -4
- package/dist/client/assets/shell-layout-Bk6uPKMe.js +0 -1
- package/dist/client/assets/taskboard-analytics-xeHAgwnO.js +0 -1
- package/dist/client/assets/tasks-Ba-oyyIK.js +0 -1
- package/dist/client/assets/thread-analytics-C0BM4p9K.js +0 -1
- package/dist/client/assets/thread-button-DKjUerzt.js +0 -1
- package/dist/client/assets/use-chat-layout-state-CVkPEEUs.js +0 -1
- package/dist/client/assets/use-chat-navigation-DLnmXNT9.js +0 -1
- package/dist/client/assets/use-ensure-project-folder-CqaPdVz-.js +0 -1
- package/dist/client/assets/use-fast-preview-draft-url-DlLnA8PJ.js +0 -1
- package/dist/client/assets/use-file-configs-BSnoYr1R.js +0 -1
- package/dist/client/assets/use-main-panel-tabs-O3Jy3Qh8.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-D9sV9o2T.js +0 -1
- package/dist/client/assets/use-organization-settings-BOGRgJjV.js +0 -1
- package/dist/client/assets/use-releases-BmeSCMgM.js +0 -1
- package/dist/client/assets/use-sandbox-events-hhwp2IWJ.js +0 -2
- package/dist/client/assets/use-section-preview-base-B7bjCuOw.js +0 -1
- package/dist/client/assets/use-task-metadata-CBQ5Muu5.js +0 -1
- package/dist/client/assets/use-thread-outputs-c6b1HaAz.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DeMEFTdd.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CUkGf5w6.js +0 -1
- package/dist/client/assets/variant-calendar-CKqGYdH4.js +0 -1
- package/dist/client/assets/variant-matcher-override-uklREcGs.js +0 -1
- package/dist/client/assets/virtual-mcp-DFjD0qBz.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as l,a2 as n,j as r,K as f}from"./index-bl_DQ3mH.js";import{C as d}from"./index-zYf8hP69.js";import{T as u}from"./index-Cw6J2Hl5.js";import{F as x}from"./feature-gate-D5KGpIQ3.js";import{m as h,P as j}from"./mock-board-N392Vku2.js";import"./use-mobile-Di3PCVWm.js";import"./thread-button-DKjUerzt.js";import"./agent-icon-BdZdLCky.js";import"./AlertCircle-BILwGqjV.js";import"./Tool01-BSpg9N8Q.js";import"./ArrowUp-CFc2wNu3.js";import"./ArrowLeft-DlRqrbst.js";import"./LinkBroken01-BBYM52IU.js";import"./ShoppingBag01-Brrt7Bh6.js";import"./ZoomOut-Bnst3wtU.js";import"./Building02-QB_UI3sB.js";import"./CheckCircle-CG1RvCMD.js";import"./ChevronUp-BrMcnDd0.js";import"./ChevronSelectorVertical-23OZgHQl.js";import"./UserSquare-BXjBRbTF.js";import"./Copy01-QpufVNbj.js";import"./CreditCard01-W1zS1W7o.js";import"./DotsVertical-E-CAHxZx.js";import"./Image01-D8Dg78Ju.js";import"./Globe04-C2IFbCwJ.js";import"./SwitchHorizontal01-B5sfCWHV.js";import"./Key01-CCpcNn9J.js";import"./Link01-Dw-VkUVV.js";import"./Monitor01-596xyLh3.js";import"./Sun-BmhcFIJl.js";import"./Play-CIe1tupB.js";import"./Plus-DTyq8wfJ.js";import"./SearchMd-DnZ_sK_U.js";import"./Trash01-uPItCfKQ.js";import"./Upload01-ClSeM0gf.js";import"./User01-DabbLHAZ.js";import"./Users01-Dt36FENA.js";import"./XClose-BMDlg-34.js";import"./use-chat-layout-state-CVkPEEUs.js";import"./use-file-configs-BSnoYr1R.js";import"./use-organization-settings-BOGRgJjV.js";import"./schema-kVE-1hbs.js";import"./task-board-kbcRVMI1.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-BTsmo_dA.js";import"./use-mcp-client-DuTNn1dc.js";import"./auth-CTn9OsYL.js";import"./thread-route-CR0TIP8s.js";import"./use-panel-navigate-c5H4a21L.js";import"./use-project-scope-A4YCdR4N.js";import"./thread-intent-CG-CCDLs.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-B66Eygyb.js";import"./slugify-CEUa2lfQ.js";import"./sheet-CZiDNUQZ.js";import"./tooltip-COqLwkid.js";import"./index-B5IA1qMq.js";import"./toolbar-icon-button-Djr5zvaV.js";import"./shell-layout-Bk6uPKMe.js";import"./avatar-DNs314ny.js";import"./use-clock-tick-zaL95TTy.js";import"./command-DFd1c5Z5.js";import"./index-Dhdyv2s0.js";import"./integration-icon-DogZfPWq.js";import"./project-icon-DsUbDdQC.js";import"./new-project-dialog-C5lJfUJ3.js";import"./label-Bqj_xjz9.js";import"./repository-import-picker-D5xDiyD_.js";import"./use-navigate-to-agent-Cu9cZhs8.js";import"./repository-picker-DExxlkis.js";import"./useInfiniteQuery-DeMEFTdd.js";import"./infiniteQueryObserver-rUCOtzeA.js";import"./collection-search-q0ogFMFh.js";import"./use-debounced-value-Dju-tMu1.js";import"./required-auth-layout-Dzef4Ao1.js";import"./autosend-Cr5TlS-x.js";import"./use-org-sso-B57pfGVG.js";import"./resizable-UTJFKDGm.js";import"./icon-button-d9uOvdxM.js";import"./core.esm-lZvNzlYc.js";import"./sortable.esm-h3AYG-u7.js";import"./use-task-board-analytics-BR7NSR26.js";import"./combobox-BTfHieW4.js";import"./popover-MLSOZysn.js";import"./usage-stats-CAukzrpg.js";import"./tool-namespace-uRsPbj-p.js";import"./form-D6DHFxsw.js";import"./utils-CVEq3hMx.js";import"./markdown-5DzLzA6E.js";import"./use-copy-2j0k06rN.js";import"./location-BjlyegC2.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-decopilot-events-D8zpT0sX.js";import"./chat-context-DszOftwV.js";import"./use-ai-providers-IjG3zzka.js";import"./use-chat-navigation-DLnmXNT9.js";import"./suggestion-C591DFAx.js";import"./column-rules-BDs9HTxP.js";import"./badge-BDMYkxf_.js";import"./switch-CUK4V52q.js";import"./textarea-DvoMwt1e.js";import"./use-org-fs-DOu4nQSr.js";import"./use-automations-Dt8Ypk0g.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-DAU6nVmU.js";import"./use-task-board-items-DTbT7rEp.js";import"./use-task-board-events-BBlz-cBe.js";import"./use-members-BqWTpMNp.js";import"./use-org-auth-client-DIUzAE5u.js";import"./select-WviNHwZD.js";import"./index-BdQq_4o_.js";import"./task-route-BPrIj9mX.js";import"./config-CtmGoERx.js";import"./use-tags-Ce3D-sM7.js";import"./calendar-9HE_r4Hw.js";import"./alert-Tk2m0Iz_.js";import"./collapsible-CSMgVqT4.js";import"./index-DyaBZBxm.js";import"./rich-text-link-control-CNQ92nZ4.js";import"./index-JuyO8Sz3.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-BzAFAQp8.js";import"./use-connection-gMb_8zEe.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-BAmHmw0m.js";import"./useSuspenseInfiniteQuery-CUkGf5w6.js";import"./pair-DjM6V7aG.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DuGbCe-D.js";import"./types-C5SQt0XZ.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-3vLSpQqZ.js";import"./use-thread-outputs-c6b1HaAz.js";import"./file-type-icon-C-_1hLql.js";import"./use-infinite-scroll-CtScOz_h.js";import"./task-status-codqNsI7.js";import"./use-open-billing-url-sjDwQSEM.js";import"./chat-draft-Bi-CpEK_.js";import"./separator-DHqK6uc1.js";import"./feature-paywall-nTUHasXJ.js";import"./plan-ladder-gwROOTzi.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(u,{})}),t[0]=o):o=t[0],o}function tr(){const t=l.c(8),{locator:o}=n();let m;t[0]!==o?(m=c=>c.setQueryData(f.taskBoardItems(o),h()),t[0]=o,t[1]=m):m=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let i;t[3]!==m?(i=r.jsx(j,{seed:m,children:p}),t[3]=m,t[4]=i):i=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==i?(s=r.jsx(d.Content,{children:r.jsx(x,{feature:"kanban",backdrop:i,children:e})}),t[6]=i,t[7]=s):s=t[7],s}export{tr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as U,b as ee,f as ge,r as F,j as s,h as je,a2 as pe,c7 as Se,J as ye}from"./index-bl_DQ3mH.js";import{C as se}from"./index-zYf8hP69.js";import{S as be}from"./analytics-sections-BjYHHt7V.js";import{u as ve,a as Ne,b as Te}from"./use-thread-analytics-CeuE3odS.js";import{B as Ce}from"./badge-BDMYkxf_.js";import{C as _e}from"./combobox-BTfHieW4.js";import{S as ae,b as oe,a as ne,d as ce,c as Z}from"./select-WviNHwZD.js";import{e as Ae,a as we,b as fe,T as V,d as ke,c as K}from"./table-Dsl6wBVe.js";import{T as le,a as Le,c as re,b as Ee}from"./tabs-BXhvcQgN.js";import{c as Re,S as Ie,a as $e,b as Be}from"./sheet-CZiDNUQZ.js";import{T as De}from"./thread-sheet-body-BAmHmw0m.js";import{u as Oe}from"./use-connection-gMb_8zEe.js";import{u as Pe}from"./use-mcp-client-DuTNn1dc.js";import{b as He}from"./repository-binding-BTsmo_dA.js";import"./use-mobile-Di3PCVWm.js";import"./thread-button-DKjUerzt.js";import"./agent-icon-BdZdLCky.js";import"./AlertCircle-BILwGqjV.js";import"./Tool01-BSpg9N8Q.js";import"./ArrowUp-CFc2wNu3.js";import"./ArrowLeft-DlRqrbst.js";import"./LinkBroken01-BBYM52IU.js";import"./ShoppingBag01-Brrt7Bh6.js";import"./ZoomOut-Bnst3wtU.js";import"./Building02-QB_UI3sB.js";import"./CheckCircle-CG1RvCMD.js";import"./ChevronUp-BrMcnDd0.js";import"./ChevronSelectorVertical-23OZgHQl.js";import"./UserSquare-BXjBRbTF.js";import"./Copy01-QpufVNbj.js";import"./CreditCard01-W1zS1W7o.js";import"./DotsVertical-E-CAHxZx.js";import"./Image01-D8Dg78Ju.js";import"./Globe04-C2IFbCwJ.js";import"./SwitchHorizontal01-B5sfCWHV.js";import"./Key01-CCpcNn9J.js";import"./Link01-Dw-VkUVV.js";import"./Monitor01-596xyLh3.js";import"./Sun-BmhcFIJl.js";import"./Play-CIe1tupB.js";import"./Plus-DTyq8wfJ.js";import"./SearchMd-DnZ_sK_U.js";import"./Trash01-uPItCfKQ.js";import"./Upload01-ClSeM0gf.js";import"./User01-DabbLHAZ.js";import"./Users01-Dt36FENA.js";import"./XClose-BMDlg-34.js";import"./use-chat-layout-state-CVkPEEUs.js";import"./use-file-configs-BSnoYr1R.js";import"./use-organization-settings-BOGRgJjV.js";import"./schema-kVE-1hbs.js";import"./task-board-kbcRVMI1.js";import"./site-slug-DebpOoQq.js";import"./thread-route-CR0TIP8s.js";import"./use-panel-navigate-c5H4a21L.js";import"./use-project-scope-A4YCdR4N.js";import"./thread-intent-CG-CCDLs.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-B66Eygyb.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-COqLwkid.js";import"./index-B5IA1qMq.js";import"./toolbar-icon-button-Djr5zvaV.js";import"./shell-layout-Bk6uPKMe.js";import"./avatar-DNs314ny.js";import"./use-clock-tick-zaL95TTy.js";import"./command-DFd1c5Z5.js";import"./index-Dhdyv2s0.js";import"./integration-icon-DogZfPWq.js";import"./project-icon-DsUbDdQC.js";import"./new-project-dialog-C5lJfUJ3.js";import"./label-Bqj_xjz9.js";import"./repository-import-picker-D5xDiyD_.js";import"./use-navigate-to-agent-Cu9cZhs8.js";import"./repository-picker-DExxlkis.js";import"./useInfiniteQuery-DeMEFTdd.js";import"./infiniteQueryObserver-rUCOtzeA.js";import"./collection-search-q0ogFMFh.js";import"./use-debounced-value-Dju-tMu1.js";import"./required-auth-layout-Dzef4Ao1.js";import"./autosend-Cr5TlS-x.js";import"./use-org-sso-B57pfGVG.js";import"./resizable-UTJFKDGm.js";import"./icon-button-d9uOvdxM.js";import"./chart-n7qVLeZu.js";import"./index-B0rouRMk.js";import"./symbol-BQaHJ_MF.js";import"./CategoricalChart-CD4E_XC5.js";import"./view-mode-toggle-B55pxnK_.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./config-CtmGoERx.js";import"./core.esm-lZvNzlYc.js";import"./BarChart-ip63zVKP.js";import"./tooltipContext-DDD6cP5q.js";import"./ActiveShapeUtils-DHLjYBHG.js";import"./Sector-iSjEHRg-.js";import"./ErrorBarContext-DoXCMhKl.js";import"./AreaChart-MBaQ2sXA.js";import"./XAxis-BQtU7n4v.js";import"./popover-MLSOZysn.js";import"./index-BdQq_4o_.js";import"./useSuspenseInfiniteQuery-CUkGf5w6.js";import"./pair-DjM6V7aG.js";import"./collapsible-CSMgVqT4.js";import"./use-copy-2j0k06rN.js";import"./usage-stats-CAukzrpg.js";import"./tool-namespace-uRsPbj-p.js";import"./form-D6DHFxsw.js";import"./utils-CVEq3hMx.js";import"./markdown-5DzLzA6E.js";import"./location-BjlyegC2.js";import"./use-decopilot-events-D8zpT0sX.js";import"./chat-context-DszOftwV.js";import"./use-ai-providers-IjG3zzka.js";import"./use-chat-navigation-DLnmXNT9.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DuGbCe-D.js";import"./types-C5SQt0XZ.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-3vLSpQqZ.js";import"./use-thread-outputs-c6b1HaAz.js";import"./file-type-icon-C-_1hLql.js";import"./use-infinite-scroll-CtScOz_h.js";import"./task-status-codqNsI7.js";import"./auth-CTn9OsYL.js";const Ve=[1,7,30,90],Ke=["in_progress","requires_action","failed","completed"],Ue=["chat","automation","task"],X="any",me={in_progress:"thread.analytics.statusRunning",requires_action:"thread.analytics.statusWaiting",failed:"thread.analytics.statusFailed",completed:"thread.analytics.statusCompleted"},xe={chat:"thread.analytics.kindChat",automation:"thread.analytics.kindAutomation",task:"thread.analytics.kindTask"},Fe={in_progress:"default",requires_action:"warning",failed:"destructive",completed:"secondary"};function de(){const t=U.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-center py-12",children:s.jsx(je,{className:"size-5 text-muted-foreground"})}),t[0]=e):e=t[0],e}function he(t){const e=U.c(2),{message:l}=t;let r;return e[0]!==l?(r=s.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-destructive",children:l}),e[0]=l,e[1]=r):r=e[1],r}function ie(t){const e=U.c(9),{label:l,value:r}=t;let i;e[0]!==l?(i=s.jsx("div",{className:"text-sm text-muted-foreground",children:l}),e[0]=l,e[1]=i):i=e[1];let m;e[2]!==r?(m=r.toLocaleString(),e[2]=r,e[3]=m):m=e[3];let o;e[4]!==m?(o=s.jsx("div",{className:"mt-1 text-2xl font-medium text-foreground tabular-nums",children:m}),e[4]=m,e[5]=o):o=e[5];let c;return e[6]!==i||e[7]!==o?(c=s.jsxs("div",{className:"rounded-lg border border-border p-4",children:[i,o]}),e[6]=i,e[7]=o,e[8]=c):c=e[8],c}function Ye(t){const e=U.c(56),{thread:l,onOpen:r}=t,i=ee(),m=l.status;let o;e[0]!==l.updatedAt?(o=new Date(l.updatedAt).toLocaleString(),e[0]=l.updatedAt,e[1]=o):o=e[1];let c;e[2]!==o?(c=s.jsx(K,{className:"whitespace-nowrap text-sm tabular-nums text-muted-foreground",children:o}),e[2]=o,e[3]=c):c=e[3];let a;e[4]!==l.orgSlug?(a=s.jsx(K,{className:"text-sm",children:l.orgSlug}),e[4]=l.orgSlug,e[5]=a):a=e[5];let u;e[6]!==r||e[7]!==l?(u=()=>r(l),e[6]=r,e[7]=l,e[8]=u):u=e[8];let n;e[9]!==i||e[10]!==l.title?(n=l.title||i("thread.analytics.untitled"),e[9]=i,e[10]=l.title,e[11]=n):n=e[11];let x;e[12]!==u||e[13]!==n?(x=s.jsx("button",{type:"button",onClick:u,className:"block max-w-full truncate text-left text-foreground underline-offset-2 hover:underline",children:n}),e[12]=u,e[13]=n,e[14]=x):x=e[14];let d;e[15]!==l.failureReason||e[16]!==l.lastError||e[17]!==l.status?(d=l.status==="failed"&&(l.lastError||l.failureReason)&&s.jsx("div",{className:"truncate text-xs text-destructive",children:l.lastError??l.failureReason}),e[15]=l.failureReason,e[16]=l.lastError,e[17]=l.status,e[18]=d):d=e[18];let h;e[19]!==x||e[20]!==d?(h=s.jsxs(K,{className:"max-w-sm text-sm",children:[x,d]}),e[19]=x,e[20]=d,e[21]=h):h=e[21];const g=xe[l.kind];let p;e[22]!==i||e[23]!==g?(p=i(g),e[22]=i,e[23]=g,e[24]=p):p=e[24];let w;e[25]!==p?(w=s.jsx(K,{className:"text-sm",children:p}),e[25]=p,e[26]=w):w=e[26];const k=Fe[m]??"outline";let j;e[27]!==m||e[28]!==i||e[29]!==l.status?(j=me[m]?i(me[m]):l.status,e[27]=m,e[28]=i,e[29]=l.status,e[30]=j):j=e[30];let T;e[31]!==k||e[32]!==j?(T=s.jsx(K,{children:s.jsx(Ce,{variant:k,children:j})}),e[31]=k,e[32]=j,e[33]=T):T=e[33];const L=l.userEmail??l.userName??"—";let S;e[34]!==L?(S=s.jsx(K,{className:"max-w-48 truncate text-sm",children:L}),e[34]=L,e[35]=S):S=e[35];let y;e[36]!==l.agent?(y=s.jsx(K,{className:"max-w-48 truncate text-sm",children:l.agent}),e[36]=l.agent,e[37]=y):y=e[37];let C;e[38]!==l.usd?(C=l.usd===null?"—":`$${l.usd.toFixed(2)}`,e[38]=l.usd,e[39]=C):C=e[39];let b;e[40]!==C?(b=s.jsx(K,{className:"text-sm tabular-nums",children:C}),e[40]=C,e[41]=b):b=e[41];let v;e[42]!==l.tokens?(v=l.tokens===null?"—":l.tokens.toLocaleString(),e[42]=l.tokens,e[43]=v):v=e[43];let N;e[44]!==v?(N=s.jsx(K,{className:"text-sm tabular-nums",children:v}),e[44]=v,e[45]=N):N=e[45];let _;return e[46]!==w||e[47]!==T||e[48]!==S||e[49]!==y||e[50]!==b||e[51]!==c||e[52]!==N||e[53]!==a||e[54]!==h?(_=s.jsxs(fe,{children:[c,a,h,w,T,S,y,b,N]}),e[46]=w,e[47]=T,e[48]=S,e[49]=y,e[50]=b,e[51]=c,e[52]=N,e[53]=a,e[54]=h,e[55]=_):_=e[55],_}function ze(t){const e=U.c(51),{org:l}=t,r=ee(),[i,m]=F.useState(X),[o,c]=F.useState(X),a=i===X?void 0:i,u=o===X?void 0:o;let n;e[0]!==l||e[1]!==a||e[2]!==u?(n={org:l,status:a,kind:u,limit:150},e[0]=l,e[1]=a,e[2]=u,e[3]=n):n=e[3];const x=n,{data:d,isLoading:h,error:g}=Ne(x,!0),[p,w]=F.useState(null);let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(oe,{className:"w-[180px]",size:"sm",children:s.jsx(ne,{})}),e[4]=k):k=e[4];let j;e[5]!==r?(j=r("thread.analytics.anyStatus"),e[5]=r,e[6]=j):j=e[6];let T;e[7]!==j?(T=s.jsx(Z,{value:X,children:j}),e[7]=j,e[8]=T):T=e[8];let L;e[9]!==r?(L=Ke.map(A=>s.jsx(Z,{value:A,children:r(me[A])},A)),e[9]=r,e[10]=L):L=e[10];let S;e[11]!==T||e[12]!==L?(S=s.jsxs(ce,{children:[T,L]}),e[11]=T,e[12]=L,e[13]=S):S=e[13];let y;e[14]!==i||e[15]!==S?(y=s.jsxs(ae,{value:i,onValueChange:m,children:[k,S]}),e[14]=i,e[15]=S,e[16]=y):y=e[16];let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(oe,{className:"w-[180px]",size:"sm",children:s.jsx(ne,{})}),e[17]=C):C=e[17];let b;e[18]!==r?(b=r("thread.analytics.anyKind"),e[18]=r,e[19]=b):b=e[19];let v;e[20]!==b?(v=s.jsx(Z,{value:X,children:b}),e[20]=b,e[21]=v):v=e[21];let N;e[22]!==r?(N=Ue.map(A=>s.jsx(Z,{value:A,children:r(xe[A])},A)),e[22]=r,e[23]=N):N=e[23];let _;e[24]!==v||e[25]!==N?(_=s.jsxs(ce,{children:[v,N]}),e[24]=v,e[25]=N,e[26]=_):_=e[26];let E;e[27]!==o||e[28]!==_?(E=s.jsxs(ae,{value:o,onValueChange:c,children:[C,_]}),e[27]=o,e[28]=_,e[29]=E):E=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("span",{className:"size-2 rounded-full bg-success"}),e[30]=D):D=e[30];let O;e[31]!==r?(O=r("thread.analytics.liveHint"),e[31]=r,e[32]=O):O=e[32];let R;e[33]!==O?(R=s.jsxs("span",{className:"ml-auto flex items-center gap-2 text-xs text-muted-foreground",children:[D,O]}),e[33]=O,e[34]=R):R=e[34];let I;e[35]!==E||e[36]!==R||e[37]!==y?(I=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y,E,R]}),e[35]=E,e[36]=R,e[37]=y,e[38]=I):I=e[38];let $;e[39]!==d||e[40]!==g||e[41]!==h||e[42]!==r?($=h?s.jsx(de,{}):g?s.jsx(he,{message:g.message}):d?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[s.jsx(ie,{label:r("thread.analytics.countRunning"),value:d.counts.running}),s.jsx(ie,{label:r("thread.analytics.countWaiting"),value:d.counts.waiting}),s.jsx(ie,{label:r("thread.analytics.countFailedHour"),value:d.counts.failedLastHour})]}),d.threads.length===0?s.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-muted-foreground",children:r("thread.analytics.empty")}):s.jsx("div",{className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs(Ae,{children:[s.jsx(we,{children:s.jsxs(fe,{children:[s.jsx(V,{children:r("thread.analytics.colUpdated")}),s.jsx(V,{children:r("thread.analytics.colOrg")}),s.jsx(V,{children:r("thread.analytics.colChat")}),s.jsx(V,{children:r("thread.analytics.colKind")}),s.jsx(V,{children:r("thread.analytics.colStatus")}),s.jsx(V,{children:r("thread.analytics.colUser")}),s.jsx(V,{children:r("thread.analytics.colAgent")}),s.jsx(V,{children:r("thread.analytics.colCost")}),s.jsx(V,{children:r("thread.analytics.colTokens")})]})}),s.jsx(ke,{children:d.threads.map(A=>s.jsx(Ye,{thread:A,onOpen:w},A.id))})]})})]}):null,e[39]=d,e[40]=g,e[41]=h,e[42]=r,e[43]=$):$=e[43];let P;e[44]===Symbol.for("react.memo_cache_sentinel")?(P=()=>w(null),e[44]=P):P=e[44];let B;e[45]!==p?(B=s.jsx(qe,{thread:p,onClose:P}),e[45]=p,e[46]=B):B=e[46];let H;return e[47]!==I||e[48]!==$||e[49]!==B?(H=s.jsxs("div",{className:"flex flex-col gap-6 py-6",children:[I,$,B]}),e[47]=I,e[48]=$,e[49]=B,e[50]=H):H=e[50],H}function Me(t){const e=U.c(14),{thread:l}=t,{org:r,locator:i}=pe();let m;e[0]!==r.id||e[1]!==r.slug?(m={connectionId:ye,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=m):m=e[2];const o=Pe(m),c=Oe(),a=He();let u;e[3]!==l.createdAt||e[4]!==l.id||e[5]!==l.status||e[6]!==l.title?(u={id:l.id,title:l.title,status:l.status,created_at:l.createdAt},e[3]=l.createdAt,e[4]=l.id,e[5]=l.status,e[6]=l.title,e[7]=u):u=e[7];let n;return e[8]!==o||e[9]!==c||e[10]!==i||e[11]!==u||e[12]!==a?(n=s.jsx(De,{thread:u,client:o,locator:i,connections:c,virtualMcps:a,members:void 0,meta:!1}),e[8]=o,e[9]=c,e[10]=i,e[11]=u,e[12]=a,e[13]=n):n=e[13],n}function qe(t){const e=U.c(12),{thread:l,onClose:r}=t,i=ee(),{project:m}=pe(),o=!!l;let c;e[0]!==r?(c=x=>!x&&r(),e[0]=r,e[1]=c):c=e[1];let a;e[2]!==m||e[3]!==i||e[4]!==l?(a=l&&s.jsx(Se,{org:{id:l.orgId,name:l.orgSlug,slug:l.orgSlug,logo:null},project:m,children:s.jsx(F.Suspense,{fallback:s.jsx(Re,{className:"shrink-0 border-b border-border px-5 pb-5 pt-6 md:px-6",children:s.jsx(Ie,{className:"truncate text-sm leading-snug",children:l.title||i("thread.analytics.untitled")})}),children:s.jsx(Me,{thread:l})})}),e[2]=m,e[3]=i,e[4]=l,e[5]=a):a=e[5];let u;e[6]!==a?(u=s.jsx($e,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:a}),e[6]=a,e[7]=u):u=e[7];let n;return e[8]!==o||e[9]!==c||e[10]!==u?(n=s.jsx(Be,{open:o,onOpenChange:c,children:u}),e[8]=o,e[9]=c,e[10]=u,e[11]=n):n=e[11],n}function ue(t){const e=U.c(16),{tool:l,org:r,from:i,to:m}=t,o=ee();let c;e[0]!==i||e[1]!==r||e[2]!==m?(c={org:r,from:i,to:m},e[0]=i,e[1]=r,e[2]=m,e[3]=c):c=e[3];const{data:a,isLoading:u,error:n}=Te(l,c);if(u){let p;return e[4]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(de,{}),e[4]=p):p=e[4],p}if(n){let p;return e[5]!==n.message?(p=s.jsx(he,{message:n.message}),e[5]=n.message,e[6]=p):p=e[6],p}if(!a)return null;let x;e[7]!==a.sections?(x=a.sections.map(Ge),e[7]=a.sections,e[8]=x):x=e[8];let d;e[9]!==o?(d=o("thread.analytics.costFootnote"),e[9]=o,e[10]=d):d=e[10];let h;e[11]!==d?(h=s.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[11]=d,e[12]=h):h=e[12];let g;return e[13]!==x||e[14]!==h?(g=s.jsxs("div",{className:"flex flex-col gap-8 py-6",children:[x,h]}),e[13]=x,e[14]=h,e[15]=g):g=e[15],g}function Ge(t){return s.jsx(be,{section:t,threadLinks:!0},t.title)}function hl(){const t=U.c(99),e=ee(),l=ge({strict:!1}).org??"",r=ve(),[i,m]=F.useState("all"),[o,c]=F.useState(7),[a,u]=F.useState("live"),[n]=F.useState(Je);let x;t[0]!==n?(x=new Date(n).toISOString(),t[0]=n,t[1]=x):x=t[1];const d=x;let h;t[2]!==o||t[3]!==n?(h=new Date(n-o*864e5).toISOString(),t[2]=o,t[3]=n,t[4]=h):h=t[4];const g=h;if(r.isLoading){let f;return t[5]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(se.Content,{children:s.jsx(de,{})}),t[5]=f):f=t[5],f}if(!r.data?.isAdmin){let f;t[6]!==e?(f=e("thread.analytics.notAdmin"),t[6]=e,t[7]=f):f=t[7];let Q;return t[8]!==f?(Q=s.jsx(se.Content,{children:s.jsx("div",{className:"p-8 text-center text-sm text-muted-foreground",children:f})}),t[8]=f,t[9]=Q):Q=t[9],Q}let p;t[10]!==e?(p=e("taskBoard.analytics.orgAll"),t[10]=e,t[11]=p):p=t[11];let w;t[12]!==p?(w={value:"all",label:p},t[12]=p,t[13]=w):w=t[13];let k;t[14]!==e?(k=e("taskBoard.analytics.orgCurrent"),t[14]=e,t[15]=k):k=t[15];let j;t[16]!==l||t[17]!==k?(j={value:l,label:k},t[16]=l,t[17]=k,t[18]=j):j=t[18];let T;if(t[19]!==r.data.orgs||t[20]!==l||t[21]!==w||t[22]!==j){let f;t[24]!==l?(f=Q=>Q.slug!==l,t[24]=l,t[25]=f):f=t[25],T=[w,j,...r.data.orgs.filter(f).map(We)],t[19]=r.data.orgs,t[20]=l,t[21]=w,t[22]=j,t[23]=T}else T=t[23];const L=T;let S;t[26]!==e?(S=e("thread.analytics.title"),t[26]=e,t[27]=S):S=t[27];let y;t[28]!==S?(y=s.jsx("h1",{className:"text-xl font-medium text-foreground",children:S}),t[28]=S,t[29]=y):y=t[29];let C;t[30]!==e?(C=e("taskBoard.analytics.orgSearch"),t[30]=e,t[31]=C):C=t[31];let b;t[32]!==e?(b=e("taskBoard.analytics.orgEmpty"),t[32]=e,t[33]=b):b=t[33];let v;t[34]!==i||t[35]!==L||t[36]!==b||t[37]!==C?(v=s.jsx(_e,{options:L,value:i,onChange:m,width:"w-[240px]",searchPlaceholder:C,emptyMessage:b}),t[34]=i,t[35]=L,t[36]=b,t[37]=C,t[38]=v):v=t[38];let N;t[39]!==o||t[40]!==e||t[41]!==a?(N=a!=="live"&&s.jsxs(ae,{value:String(o),onValueChange:f=>c(Number(f)),children:[s.jsx(oe,{className:"w-[140px]",size:"sm",children:s.jsx(ne,{})}),s.jsx(ce,{children:Ve.map(f=>s.jsx(Z,{value:String(f),children:e("taskBoard.analytics.rangeDays",{days:String(f)})},f))})]}),t[39]=o,t[40]=e,t[41]=a,t[42]=N):N=t[42];let _;t[43]!==v||t[44]!==N?(_=s.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[v,N]}),t[43]=v,t[44]=N,t[45]=_):_=t[45];let E;t[46]!==_||t[47]!==y?(E=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y,_]}),t[46]=_,t[47]=y,t[48]=E):E=t[48];let D;t[49]!==i||t[50]!==l||t[51]!==e?(D=i!==l&&s.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:i==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:i})}),t[49]=i,t[50]=l,t[51]=e,t[52]=D):D=t[52];let O;t[53]===Symbol.for("react.memo_cache_sentinel")?(O=f=>u(f),t[53]=O):O=t[53];let R;t[54]!==e?(R=e("thread.analytics.tabLive"),t[54]=e,t[55]=R):R=t[55];let I;t[56]!==R?(I=s.jsx(le,{value:"live",children:R}),t[56]=R,t[57]=I):I=t[57];let $;t[58]!==e?($=e("thread.analytics.tabUsage"),t[58]=e,t[59]=$):$=t[59];let P;t[60]!==$?(P=s.jsx(le,{value:"usage",children:$}),t[60]=$,t[61]=P):P=t[61];let B;t[62]!==e?(B=e("thread.analytics.tabErrors"),t[62]=e,t[63]=B):B=t[63];let H;t[64]!==B?(H=s.jsx(le,{value:"errors",children:B}),t[64]=B,t[65]=H):H=t[65];let A;t[66]!==I||t[67]!==P||t[68]!==H?(A=s.jsxs(Le,{children:[I,P,H]}),t[66]=I,t[67]=P,t[68]=H,t[69]=A):A=t[69];let Y;t[70]!==i||t[71]!==a?(Y=a==="live"&&s.jsx(ze,{org:i}),t[70]=i,t[71]=a,t[72]=Y):Y=t[72];let z;t[73]!==Y?(z=s.jsx(re,{value:"live",children:Y}),t[73]=Y,t[74]=z):z=t[74];let M;t[75]!==g||t[76]!==i||t[77]!==a||t[78]!==d?(M=a==="usage"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_USAGE",org:i,from:g,to:d}),t[75]=g,t[76]=i,t[77]=a,t[78]=d,t[79]=M):M=t[79];let q;t[80]!==M?(q=s.jsx(re,{value:"usage",children:M}),t[80]=M,t[81]=q):q=t[81];let G;t[82]!==g||t[83]!==i||t[84]!==a||t[85]!==d?(G=a==="errors"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_ERRORS",org:i,from:g,to:d}),t[82]=g,t[83]=i,t[84]=a,t[85]=d,t[86]=G):G=t[86];let W;t[87]!==G?(W=s.jsx(re,{value:"errors",children:G}),t[87]=G,t[88]=W):W=t[88];let J;t[89]!==A||t[90]!==z||t[91]!==q||t[92]!==W||t[93]!==a?(J=s.jsxs(Ee,{value:a,onValueChange:O,children:[A,z,q,W]}),t[89]=A,t[90]=z,t[91]=q,t[92]=W,t[93]=a,t[94]=J):J=t[94];let te;return t[95]!==E||t[96]!==D||t[97]!==J?(te=s.jsx(se.Content,{children:s.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-auto",children:s.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 py-6 sm:px-8 sm:py-8",children:[E,D,J]})})}),t[95]=E,t[96]=D,t[97]=J,t[98]=te):te=t[98],te}function We(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}function Je(){return Date.now()}export{hl as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as $,c as S,j as l,l as C,bs as X,aS as Z,Y as _,ak as ee,b as O,y as z,aj as te,L as se,a3 as ae,k as ne,a5 as oe,b1 as ie,d as re,a2 as le}from"./index-bl_DQ3mH.js";import{az as ce,aA as de,p as pe,aB as fe,A as ue,L as me}from"./agent-icon-BdZdLCky.js";import{a as he,g as be}from"./UserSquare-BXjBRbTF.js";import{a as xe}from"./Image01-D8Dg78Ju.js";import{i as ge}from"./ZoomOut-Bnst3wtU.js";import{i as B,e as je,r as ve,u as we,a as Se,m as ye}from"./use-chat-layout-state-CVkPEEUs.js";import{u as Ne}from"./use-mobile-Di3PCVWm.js";import{b as Ie,c as Te,S as Pe,d as Ce,a as _e}from"./sheet-CZiDNUQZ.js";import{c as $e,a as D,T as R,b as H}from"./tooltip-COqLwkid.js";import{T as Ae}from"./toolbar-icon-button-Djr5zvaV.js";import{a as Ee}from"./shell-layout-Bk6uPKMe.js";const Oe="15rem",ke="18rem",Me="4.5rem",F=$.createContext(null);function E(){const t=$.useContext(F);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function mt(t){const e=S.c(19),{children:s,defaultOpen:a,open:n,onOpenChange:o}=t,c=a===void 0?!1:a,i=Ne(),[r,d]=$.useState(c),[p,f]=$.useState(!1),u=n!==void 0,m=u?n:r;let b;e[0]!==u||e[1]!==o?(b=I=>{u||d(I),o?.(I)},e[0]=u,e[1]=o,e[2]=b):b=e[2];const g=b;let j;e[3]!==i||e[4]!==m||e[5]!==g?(j=()=>{i?f(Ke):g(!m)},e[3]=i,e[4]=m,e[5]=g,e[6]=j):j=e[6];const h=j,x=m?"expanded":"collapsed";let v;e[7]!==i||e[8]!==m||e[9]!==p||e[10]!==g||e[11]!==x||e[12]!==h?(v={state:x,open:m,setOpen:g,isMobile:i,openMobile:p,setOpenMobile:f,toggleSidebar:h},e[7]=i,e[8]=m,e[9]=p,e[10]=g,e[11]=x,e[12]=h,e[13]=v):v=e[13];const y=v;let w;e[14]!==s?(w=l.jsx($e,{delayDuration:0,children:s}),e[14]=s,e[15]=w):w=e[15];let N;return e[16]!==y||e[17]!==w?(N=l.jsx(F.Provider,{value:y,children:w}),e[16]=y,e[17]=w,e[18]=N):N=e[18],N}function Ke(t){return!t}function ht(t){const e=S.c(14);let s,a,n,o;e[0]!==t?({className:a,style:o,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=o):(s=e[1],a=e[2],n=e[3],o=e[4]);let c;e[5]!==o?(c={"--sidebar-width":Oe,"--sidebar-width-icon":Me,...o},e[5]=o,e[6]=c):c=e[6];const i=c;let r;e[7]!==a?(r=C("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=r):r=e[8];let d;return e[9]!==s||e[10]!==n||e[11]!==i||e[12]!==r?(d=l.jsx("div",{"data-slot":"sidebar-wrapper",style:i,className:r,...n,children:s}),e[9]=s,e[10]=n,e[11]=i,e[12]=r,e[13]=d):d=e[13],d}function bt(t){const e=S.c(36);let s,a,n,o,c;e[0]!==t?({side:o,variant:c,className:a,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=o,e[5]=c):(s=e[1],a=e[2],n=e[3],o=e[4],c=e[5]);const i=o===void 0?"left":o,r=c===void 0?"sidebar":c,{isMobile:d,state:p,openMobile:f,setOpenMobile:u}=E();if(d){let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":ke},e[6]=N):N=e[6];let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsxs(Te,{className:"sr-only",children:[l.jsx(Pe,{children:"Sidebar"}),l.jsx(Ce,{children:"Displays the mobile sidebar."})]}),e[7]=I):I=e[7];let T;e[8]!==s?(T=l.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[8]=s,e[9]=T):T=e[9];let P;e[10]!==i||e[11]!==T?(P=l.jsxs(_e,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:i,children:[I,T]}),e[10]=i,e[11]=T,e[12]=P):P=e[12];let A;return e[13]!==f||e[14]!==n||e[15]!==u||e[16]!==P?(A=l.jsx(Ie,{open:f,onOpenChange:u,...n,children:P}),e[13]=f,e[14]=n,e[15]=u,e[16]=P,e[17]=A):A=e[17],A}const m=p==="expanded",b=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let g;e[18]!==b?(g=C("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",b),e[18]=b,e[19]=g):g=e[19];const j=m?void 0:"icon",h=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==h?(x=C("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",h,a),e[20]=a,e[21]=h,e[22]=x):x=e[22];let v;e[23]!==s?(v=l.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:s}),e[23]=s,e[24]=v):v=e[24];let y;e[25]!==n||e[26]!==x||e[27]!==v?(y=l.jsx("div",{"data-slot":"sidebar-container",className:x,...n,children:v}),e[25]=n,e[26]=x,e[27]=v,e[28]=y):y=e[28];let w;return e[29]!==i||e[30]!==p||e[31]!==g||e[32]!==j||e[33]!==y||e[34]!==r?(w=l.jsx("div",{className:g,"data-state":p,"data-collapsible":j,"data-variant":r,"data-side":i,"data-slot":"sidebar",children:y}),e[29]=i,e[30]=p,e[31]=g,e[32]=j,e[33]=y,e[34]=r,e[35]=w):w=e[35],w}function xt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=C("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("main",{"data-slot":"sidebar-inset",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function gt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=C("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function jt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=C("flex min-h-0 flex-1 flex-col gap-2",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function vt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=C("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function wt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=C("group/menu-item relative w-full list-none",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}const Le=Z("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function St(t){const e=S.c(28);let s,a,n,o,c,i,r;e[0]!==t?({asChild:n,isActive:o,variant:c,size:i,tooltip:r,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=o,e[5]=c,e[6]=i,e[7]=r):(s=e[1],a=e[2],n=e[3],o=e[4],c=e[5],i=e[6],r=e[7]);const d=n===void 0?!1:n,p=o===void 0?!1:o,f=c===void 0?"default":c,u=i===void 0?"default":i,m=d?X:"button",{isMobile:b}=E();let g;e[8]!==s||e[9]!==u||e[10]!==f?(g=C(Le({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=g):g=e[11];let j;e[12]!==m||e[13]!==p||e[14]!==a||e[15]!==u||e[16]!==g?(j=l.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":p,className:g,...a}),e[12]=m,e[13]=p,e[14]=a,e[15]=u,e[16]=g,e[17]=j):j=e[17];const h=j;if(!r)return h;if(typeof r=="string"){let w;e[18]!==r?(w={children:r},e[18]=r,e[19]=w):w=e[19],r=w}let x;e[20]!==h?(x=l.jsx(R,{asChild:!0,children:h}),e[20]=h,e[21]=x):x=e[21];let v;e[22]!==b||e[23]!==r?(v=l.jsx(D,{side:"right",align:"center",hidden:b,...r}),e[22]=b,e[23]=r,e[24]=v):v=e[24];let y;return e[25]!==x||e[26]!==v?(y=l.jsxs(H,{children:[x,v]}),e[25]=x,e[26]=v,e[27]=y):y=e[27],y}function Ve(t,e){const s=new Set(e);return s.size===0?t:t.filter(a=>s.has(a.connectionId))}function ze(t){const e=t.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(s=>!!s&&typeof s=="object"&&typeof s.connectionId=="string"&&typeof s.toolName=="string"&&["undefined","string"].includes(typeof s.label)&&(s.icon==null||typeof s.icon=="string")):[]}const Be=4;function W(t,e){return t.app===e.app&&t.projectId===e.projectId}function yt(t,e,s=Be){return[e,...t.filter(a=>!W(a,e))].slice(0,s)}function Nt(t,e){return t.filter(s=>!W(s,e))}const De=100;function K(t,e){return JSON.stringify([t,e])}function It(t,e,s=De){return[e,...t.filter(a=>a!==e)].slice(0,s)}const k={reports:{labelKey:"projects.apps.reports",captionKey:"projects.apps.reportsCaption",Icon:be,to:_.reports,tone:"bg-chart-2/15 text-chart-2"},"site-editor":{labelKey:"projects.apps.siteEditor",captionKey:"projects.apps.siteEditorCaption",Icon:he,to:_.siteEditor,tone:"bg-chart-1/15 text-chart-1"},assets:{labelKey:"projects.apps.assets",captionKey:"projects.apps.assetsCaption",Icon:xe,to:_.assets,tone:"bg-chart-2/15 text-chart-2"},hosting:{labelKey:"projects.apps.hosting",captionKey:"projects.apps.hostingCaption",Icon:ee,to:_.hosting,tone:"bg-chart-3/15 text-chart-3"},e2e:{labelKey:"projects.apps.e2e",captionKey:"projects.apps.e2eCaption",Icon:fe,to:_.e2e,tone:"bg-chart-4/15 text-chart-4"},analytics:{labelKey:"projects.apps.analytics",captionKey:"projects.apps.analyticsCaption",Icon:pe,to:_.analytics,tone:"bg-chart-5/15 text-chart-5"},cdn:{labelKey:"projects.apps.cdn",captionKey:"projects.apps.cdnCaption",Icon:de,to:_.monitor,tone:"bg-chart-2/15 text-chart-2"},automations:{labelKey:"projects.apps.automations",captionKey:"projects.apps.automationsCaption",Icon:ge,to:_.automations,tone:"bg-chart-4/15 text-chart-4"},experiments:{labelKey:"projects.apps.experiments",captionKey:"projects.apps.experimentsCaption",Icon:ce,to:_.experiments,tone:"bg-chart-1/15 text-chart-1"}},Tt=k,J=Object.keys(k);function q(t,e){const s=new Set(je(ve(t.metadata),t.metadata?.sidebarViewsVersion));return J.filter(a=>s.has(a)&&(!e||!B(a)||e[a]))}function L(t){const e=S.c(17),{to:s,params:a,title:n,label:o,caption:c,face:i,onClick:r,order:d}=t;let p;e[0]!==d?(p=d===void 0?void 0:{order:d},e[0]=d,e[1]=p):p=e[1];let f;e[2]!==o?(f=l.jsx("span",{className:"line-clamp-2 break-words text-foreground text-xs font-medium",children:o}),e[2]=o,e[3]=f):f=e[3];let u;e[4]!==c?(u=c&&l.jsx("span",{className:"truncate text-muted-foreground text-xs",children:c}),e[4]=c,e[5]=u):u=e[5];let m;e[6]!==f||e[7]!==u?(m=l.jsxs("span",{className:"flex w-full flex-col",children:[f,u]}),e[6]=f,e[7]=u,e[8]=m):m=e[8];let b;return e[9]!==i||e[10]!==r||e[11]!==a||e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==s?(b=l.jsxs(se,{to:s,params:a,onClick:r,title:n,style:p,className:"group flex shrink-0 flex-col items-center gap-2.5 rounded-xl p-3 text-center transition-[background-color,transform] duration-150 ease-out hover:bg-accent/50 active:scale-[0.97]",children:[i,m]}),e[9]=i,e[10]=r,e[11]=a,e[12]=p,e[13]=m,e[14]=n,e[15]=s,e[16]=b):b=e[16],b}const V="size-14 justify-center rounded-2xl transition-transform group-hover:scale-105",Re=new Set(["reports","site-editor"]);function U(t){const e=S.c(5);let s;e[0]!==t.project?(s=q(t.project).some(B),e[0]=t.project,e[1]=s):s=e[1];const a=s;let n;return e[2]!==t||e[3]!==a?(n=a?l.jsx(He,{...t}):l.jsx(G,{...t,native:null}),e[2]=t,e[3]=a,e[4]=n):n=e[4],n}function He(t){const e=S.c(3),s=we(t.project);let a;return e[0]!==s.presence||e[1]!==t?(a=l.jsx(G,{...t,native:s.presence}),e[0]=s.presence,e[1]=t,e[2]=a):a=e[2],a}function G(t){const e=S.c(22),{project:s,orgSlug:a,showProject:n,rank:o,native:c}=t,i=O();let r,d;if(e[0]!==c||e[1]!==a||e[2]!==s||e[3]!==o||e[4]!==n||e[5]!==i){const f=Se(s.metadata),u=q(s,c??void 0).filter(h=>(h!=="site-editor"&&h!=="experiments"||f)&&!(n&&Re.has(h))),m=Ve(ze(s),(s.connections??[]).map(Je)).filter(We),b=n?s.title:void 0;let g;e[8]!==b||e[9]!==a||e[10]!==s.id||e[11]!==o||e[12]!==i?(g=h=>{const x=k[h];return l.jsx(L,{to:x.to,params:{org:a,agentId:s.id},onClick:()=>z("project_app_launched",{app:h}),title:i(x.captionKey),label:i(x.labelKey),caption:b,order:o?.(K(s.id,h)),face:l.jsx("span",{className:C(V,"flex items-center",x.tone),children:l.jsx(x.Icon,{size:24})})},h)},e[8]=b,e[9]=a,e[10]=s.id,e[11]=o,e[12]=i,e[13]=g):g=e[13],r=u.map(g);let j;e[14]!==b||e[15]!==a||e[16]!==s.id||e[17]!==o?(j=h=>{const x=h.label||h.toolName;return l.jsx(L,{to:_.app,params:{org:a,agentId:s.id,connectionId:h.connectionId,toolName:h.toolName},onClick:Fe,label:x,caption:b,order:o?.(K(s.id,te(h.connectionId,h.toolName))),face:l.jsx(ue,{icon:h.icon,name:x,size:"md",className:V})},`${h.connectionId}:${h.toolName}`)},e[14]=b,e[15]=a,e[16]=s.id,e[17]=o,e[18]=j):j=e[18],d=m.map(j),e[0]=c,e[1]=a,e[2]=s,e[3]=o,e[4]=n,e[5]=i,e[6]=r,e[7]=d}else r=e[6],d=e[7];let p;return e[19]!==r||e[20]!==d?(p=l.jsxs(l.Fragment,{children:[r,d]}),e[19]=r,e[20]=d,e[21]=p):p=e[21],p}function Fe(){return z("project_app_launched",{app:"pinned"})}function We(t){return t.toolName!=="fetch_assets"}function Je(t){return t.connection_id}function qe(){const t=S.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={overflows:!1,height:null},t[0]=e):e=t[0];const[s,a]=$.useState(e);let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i=>{if(!i)return;const r=()=>{const f=[...i.children];if(f.length===0)return;const u=Math.min(...f.map(Ge)),m=f.filter(j=>j.offsetTop===u),b=m.length<f.length,g=Math.max(...m.map(Ue));a(j=>j.overflows===b&&j.height===g?j:{overflows:b,height:g})};r();const d=new ResizeObserver(r);d.observe(i);const p=new MutationObserver(r);return p.observe(i,{childList:!0}),()=>{d.disconnect(),p.disconnect()}},t[1]=n):n=t[1];const o=n;let c;return t[2]!==s?(c=[s,o],t[2]=s,t[3]=c):c=t[3],c}function Ue(t){return t.offsetHeight}function Ge(t){return t.offsetTop}function Y(t){const e=S.c(32),{children:s,oneLine:a}=t,n=O(),[o,c]=$.useState(!1),[i,r]=qe(),d=a&&!o;let p;e[0]!==n?(p=n("projects.apps.heading"),e[0]=n,e[1]=p):p=e[1];const f=p;let u;e[2]!==o||e[3]!==i.overflows||e[4]!==n?(u=(i.overflows||o)&&l.jsx("button",{type:"button",className:"text-xs text-muted-foreground hover:text-foreground hover:underline",onClick:()=>c(Ye),children:n(o?"projects.apps.showLess":"projects.apps.seeAll")}),e[2]=o,e[3]=i.overflows,e[4]=n,e[5]=u):u=e[5];const m=u,b=a?r:void 0,g=a?"-mx-3 grid grid-cols-[repeat(auto-fill,minmax(7rem,1fr))] gap-x-2 gap-y-4":"flex flex-wrap gap-4 *:w-28",j=d&&"overflow-hidden";let h;e[6]!==g||e[7]!==j?(h=C(g,"min-w-0",j),e[6]=g,e[7]=j,e[8]=h):h=e[8];let x;e[9]!==d||e[10]!==i.height?(x=d&&i.height!==null?{maxHeight:i.height}:void 0,e[9]=d,e[10]=i.height,e[11]=x):x=e[11];let v;e[12]!==s||e[13]!==b||e[14]!==h||e[15]!==x?(v=l.jsx("div",{ref:b,className:h,style:x,children:s}),e[12]=s,e[13]=b,e[14]=h,e[15]=x,e[16]=v):v=e[16];const y=v;if(a){let I;e[17]!==f?(I=l.jsx("h2",{className:"text-[0.9rem] font-medium tracking-tight text-foreground",children:f}),e[17]=f,e[18]=I):I=e[18];let T;e[19]!==m||e[20]!==I?(T=l.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[I,m]}),e[19]=m,e[20]=I,e[21]=T):T=e[21];let P;e[22]!==y?(P=l.jsx("div",{className:"px-5 py-3",children:y}),e[22]=y,e[23]=P):P=e[23];let A;return e[24]!==T||e[25]!==P?(A=l.jsxs("section",{className:"hidden flex-col overflow-hidden rounded-2xl bg-card card-shadow has-[a]:flex",children:[T,P]}),e[24]=T,e[25]=P,e[26]=A):A=e[26],A}let w;e[27]!==f?(w=l.jsx("h2",{className:"pl-3 text-muted-foreground text-sm font-medium",children:f}),e[27]=f,e[28]=w):w=e[28];let N;return e[29]!==y||e[30]!==w?(N=l.jsxs("section",{className:"hidden flex-col gap-3 has-[a]:flex",children:[w,y]}),e[29]=y,e[30]=w,e[31]=N):N=e[31],N}function Ye(t){return!t}function Pt(t){const e=S.c(3),{project:s,orgSlug:a}=t;let n;return e[0]!==a||e[1]!==s?(n=l.jsx(Y,{children:l.jsx(U,{project:s,orgSlug:a})}),e[0]=a,e[1]=s,e[2]=n):n=e[2],n}function Ct(t){const e=S.c(14),{projects:s,orgSlug:a,opens:n}=t;let o;e[0]!==n?(o=new Map(n.map(Qe)),e[0]=n,e[1]=o):o=e[1];const c=o;let i;e[2]!==n.length||e[3]!==c?(i=f=>c.get(f)??n.length,e[2]=n.length,e[3]=c,e[4]=i):i=e[4];const r=i;let d;if(e[5]!==a||e[6]!==s||e[7]!==r){let f;e[9]!==a||e[10]!==r?(f=u=>l.jsx(U,{project:u,orgSlug:a,showProject:!0,rank:r},u.id),e[9]=a,e[10]=r,e[11]=f):f=e[11],d=s.map(f),e[5]=a,e[6]=s,e[7]=r,e[8]=d}else d=e[8];let p;return e[12]!==d?(p=l.jsx(Y,{oneLine:!0,children:d}),e[12]=d,e[13]=p):p=e[13],p}function Qe(t,e){return[t,e]}function _t(){const t=S.c(3),e=ae();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={select:Xe},t[0]=s):s=t[0];const a=ne(s);if(!e||!a)return!1;let n;return t[1]!==a?(n=a==="app"||J.includes(a),t[1]=a,t[2]=n):n=t[2],n}function Xe(t){const{staticData:e}=t.matches.findLast(Ze)??{};return e?.siteEditorView?"site-editor":e?.mainView}function Ze(t){return t.staticData.mainView}function et(){const t=S.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!oe(e)}const M=$.createContext(null);function $t(t){const e=S.c(5),{children:s}=t,[a,n]=$.useState(null);let o;e[0]!==a?(o={target:a,setTarget:n},e[0]=a,e[1]=o):o=e[1];let c;return e[2]!==s||e[3]!==o?(c=l.jsx(M,{value:o,children:s}),e[2]=s,e[3]=o,e[4]=c):c=e[4],c}function tt(){const t=$.use(M);if(!t)throw new Error("Sidebar thread controls require a Layout");return t}function Q(t){const e=S.c(17),{open:s,onToggle:a}=t,n=O(),{isMobile:o,setOpenMobile:c}=E(),i=s?"page.closeThread":"page.openThread";let r;e[0]!==n||e[1]!==i?(r=n(i),e[0]=n,e[1]=i,e[2]=r):r=e[2];const d=r;let p;e[3]!==o||e[4]!==a||e[5]!==c?(p=()=>{a(),o&&c(!1)},e[3]=o,e[4]=a,e[5]=c,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(me,{size:16}),e[7]=f):f=e[7];let u;e[8]!==d||e[9]!==s||e[10]!==p?(u=l.jsx(R,{asChild:!0,children:l.jsx(Ae,{"aria-label":d,"aria-pressed":s,active:s,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:p,children:f})}),e[8]=d,e[9]=s,e[10]=p,e[11]=u):u=e[11];let m;e[12]!==d?(m=l.jsx(D,{side:"right",children:d}),e[12]=d,e[13]=m):m=e[13];let b;return e[14]!==u||e[15]!==m?(b=l.jsxs(H,{children:[u,m]}),e[14]=u,e[15]=m,e[16]=b):b=e[16],b}function At(t){const e=S.c(3),s=$.use(M);let a;return e[0]!==t||e[1]!==s?(a=s?.target?ie.createPortal(l.jsx(Q,{...t}),s.target):null,e[0]=t,e[1]=s,e[2]=a):a=e[2],a}function Et(){const t=S.c(11),{setTarget:e}=tt(),s=et(),{isMobile:a}=E(),n=re(),{org:o}=le(),{openSidePanel:c}=Ee();let i;t[0]!==e?(i=l.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),t[0]=e,t[1]=i):i=t[1];let r;t[2]!==s||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(r=l.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:l.jsx(Q,{open:!1,onToggle:()=>{s?n({to:"/$org/home",params:{org:o.slug},search:{sidepanel:!0,mainpanel:!a}}):a?n({to:".",search:st,replace:!0}):c()}})}),t[2]=s,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=r):r=t[7];let d;return t[8]!==i||t[9]!==r?(d=l.jsxs(l.Fragment,{children:[i,r]}),t[8]=i,t[9]=r,t[10]=d):d=t[10],d}function st(t){return{...t,...ye("chat")}}export{Ct as O,Tt as P,mt as S,E as a,ht as b,$t as c,xt as d,St as e,vt as f,wt as g,gt as h,Et as i,jt as j,Ve as k,bt as l,et as m,K as n,It as o,ze as p,yt as q,Nt as r,Pt as s,At as t,_t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as C,a2 as x,b3 as L,m as N,K as $,k,d as H,u as W}from"./index-bl_DQ3mH.js";import{u as B}from"./use-file-configs-BSnoYr1R.js";import{c as F}from"./use-organization-settings-BOGRgJjV.js";import{r as J,a as U}from"./site-slug-DebpOoQq.js";import{e as j}from"./repository-binding-BTsmo_dA.js";import{a as q}from"./thread-route-CR0TIP8s.js";import{u as K}from"./use-panel-navigate-c5H4a21L.js";import{b as z}from"./thread-intent-CG-CCDLs.js";const I=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"],Q=["overview","reports","board","site-editor"],Y=1,G=["assets","hosting","e2e","analytics","cdn","experiments"];function ge(t,e,s){if(!t)return{project:s??null,resolvedScopeId:null};const n=e?.id===t?e:s?.id===t?s:null;return{project:n,resolvedScopeId:n?t:null}}function Pe(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function M(t,e){const s=new Set(t??[]);if(e!==Y)for(const n of Q)s.add(n);return I.filter(n=>s.has(n))}function X(t){return I.some(e=>e===t)}function Z(t){return G.some(e=>e===t)}function ee(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,automations:!0}}function Se(t,e,s){const n=ee(e,s);return t?n:{...n,overview:!0,reports:!0,board:!0}}function we(t,e,s){const n=new Set(M(t,s));return I.filter(a=>e[a]&&n.has(a))}function ye(t,e,s){return s||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function be(t){return I.filter(e=>t[e])}function te(t,e,s){return!X(t)||e[t]?!1:Z(t)?!(t==="assets"?s.assets:s.siteAccess):!0}function Ve(t,e,s,n,a){return te(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,s)||t==="content"&&!n.includes("content")||t==="code"&&a&&!n.includes("code")}function ve(t,e,s,n){const a=new Set(M(t,n));return s?a.add(e):a.delete(e),I.filter(r=>a.has(r))}function ne(t,e){if(!e)return null;const s=e.toLowerCase();return t.find(n=>{const a=n.bucket.toLowerCase();return n.siteSlug?.toLowerCase()===s||a===s||a===`deco-assets-${s}`})??null}function Ae(t){const e=C.c(20),{org:s}=x(),n=L(),a=F(),r=B();let c;e[0]!==t?(c=J(t),e[0]=t,e[1]=c):c=e[1];const o=c,d=n.hostingEnabled===!0,P=n.monitorEnabled===!0||n.auth.localMode===!0,f=(d||P)&&!!o,p=R(s.slug,o,f);let m;e[2]!==t?(m=U(t),e[2]=t,e[3]=m):m=e[3];const u=m,S=P&&!!u&&u!==o,h=R(s.slug,u,S),g=p.data?.owned===!0,A=S?h.data?.owned===!0:g;let l;e[4]!==r.data?.configs?(l=r.data?.configs??[],e[4]=r.data?.configs,e[5]=l):l=e[5];let w;e[6]!==o||e[7]!==l?(w=ne(l,o),e[6]=o,e[7]=l,e[8]=w):w=e[8];const b=!!w,y=d&&g&&a.hosting,i=d&&g&&a.e2e,V=d&&g&&a.analytics,E=P&&A&&a.monitor;let v;e[9]!==a.experiments||e[10]!==b||e[11]!==y||e[12]!==i||e[13]!==V||e[14]!==E?(v={assets:b,hosting:y,e2e:i,analytics:V,cdn:E,experiments:a.experiments},e[9]=a.experiments,e[10]=b,e[11]=y,e[12]=i,e[13]=V,e[14]=E,e[15]=v):v=e[15];const _=!!o&&r.isPending,D=f&&p.isPending||S&&h.isPending;let O;return e[16]!==_||e[17]!==D||e[18]!==v?(O={presence:v,assetsPending:_,siteAccessPending:D},e[16]=_,e[17]=D,e[18]=v,e[19]=O):O=e[19],O}function R(t,e,s){const n=C.c(10);let a;n[0]!==t||n[1]!==e?(a=$.hostingAccess(t,e??""),n[0]=t,n[1]=e,n[2]=a):a=n[2];let r;n[3]!==t||n[4]!==e?(r=async()=>{const o=await fetch(`/api/${t}/hosting/${encodeURIComponent(e??"")}/access`);return o.ok?await o.json():{owned:!1,canWrite:!1}},n[3]=t,n[4]=e,n[5]=r):r=n[5];let c;return n[6]!==s||n[7]!==a||n[8]!==r?(c={queryKey:a,queryFn:r,enabled:s,staleTime:6e4},n[6]=s,n[7]=a,n[8]=r,n[9]=c):c=n[9],N(c)}function Ee(t){if(typeof t!="object"||t===null)return!1;const s=t.repository?.url;return typeof s=="string"&&s.length>0}function Ie(t){return j(t).status==="attached"}function Oe(t){const e=j(t).status;return e==="attached"||e==="detached"}function Ce(t){const e=new Set;for(const s of t??[]){const n=s.metadata?.liveAgentId;typeof n=="string"&&n&&e.add(s.id)}return e}function _e(t,e){if(!t)return null;const s=t.metadata?.liveAgentId;if(typeof s=="string"&&s)return(e??[]).find(r=>r.id===s)?{mode:"dev",targetId:s}:null;const n=(e??[]).find(a=>a.metadata?.liveAgentId===t.id);return n?{mode:"live",targetId:n.id}:null}function se(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:ae},t[0]=e):e=t[0],k(e)}function ae(t){for(let e=t.matches.length-1;e>=0;e--){const s=t.matches[e]?.staticData.defaultMain;if(s)return s}return null}function re(t){return!!t.harness_id||!!t.title&&t.title!=="New chat"}function oe(t){return t.threadOpen||t.contentOpen?t:{...t,threadOpen:!0}}function ie(t){const e=t.entityMetadata?.defaultMainView??null,s=e==null||e.type==="chat",n=t.mainPanelParam??(t.panelNamed||!!t.routeDefaultMain||!s),a=t.routeDefaultMain?!1:s||t.entityMetadata?.chatDefaultOpen===!0||t.threadHasMessages===!0,r=t.threadVisibilityExplicit?t.sidePanelParamValue===!0:a;return oe({threadOpen:r,contentOpen:n})}function T(t,e){switch(t.type){case"toggleThread":return e.threadOpen?e.contentOpen?{sidepanel:!1}:null:{sidepanel:!0};case"toggleContent":return e.contentOpen?{mainpanel:!1,sidepanel:!0}:{mainpanel:!0};case"openThread":return e.threadOpen?null:{sidepanel:!0}}}function De(t){return t.threadOpen&&t.contentOpen?{side:33,main:67}:t.threadOpen?{side:100,main:0}:t.contentOpen?{side:0,main:100}:{side:0,main:0}}function Re(t){const{threadOpen:e,contentOpen:s}=t.visibility;return e&&(t.threadVisibilityExplicit||!s)?"chat":s?"main":"chat"}function Te(t){return t==="main"?{sidepanel:!1,mainpanel:!0}:{sidepanel:!0,mainpanel:!1}}function je(t){const e=C.c(26),s=H();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=W(n),{threads:r}=z(),c=se(),o=K(),d=q();let P;if(e[1]!==t||e[2]!==o||e[3]!==c||e[4]!==a.mainpanel||e[5]!==a.sidepanel||e[6]!==d||e[7]!==r){const i=d!=null?r.find(V=>V.id===d):void 0;P=ie({entityMetadata:t,mainPanelParam:a.mainpanel,panelNamed:o!==void 0,threadVisibilityExplicit:a.sidepanel!==void 0,sidePanelParamValue:a.sidepanel,routeDefaultMain:c,threadHasMessages:i?re(i):!1}),e[1]=t,e[2]=o,e[3]=c,e[4]=a.mainpanel,e[5]=a.sidepanel,e[6]=d,e[7]=r,e[8]=P}else P=e[8];const{threadOpen:f,contentOpen:p}=P;let m;e[9]!==p||e[10]!==f?(m={threadOpen:f,contentOpen:p},e[9]=p,e[10]=f,e[11]=m):m=e[11];const u=m;let S;e[12]!==s?(S=(i,V)=>{s({to:".",search:E=>({...E,...i}),replace:V?.replace??!1})},e[12]=s,e[13]=S):S=e[13];const h=S;let g;e[14]!==h||e[15]!==u?(g=()=>{const i=T({type:"toggleContent"},u);i&&h(i,{replace:!0})},e[14]=h,e[15]=u,e[16]=g):g=e[16];const A=g;let l;e[17]!==h||e[18]!==u?(l=()=>{const i=T({type:"toggleThread"},u);i&&h(i,{replace:!0})},e[17]=h,e[18]=u,e[19]=l):l=e[19];const w=l,b=a.sidepanel!==void 0;let y;return e[20]!==p||e[21]!==b||e[22]!==f||e[23]!==A||e[24]!==w?(y={threadOpen:f,contentOpen:p,threadVisibilityExplicit:b,toggleContent:A,toggleThread:w},e[20]=p,e[21]=b,e[22]=f,e[23]=A,e[24]=w,e[25]=y):y=e[25],y}export{G as P,Ee as a,je as b,Oe as c,ne as d,M as e,_e as f,Y as g,Re as h,Z as i,De as j,se as k,ge as l,Te as m,Se as n,Ve as o,ee as p,te as q,Pe as r,we as s,re as t,Ae as u,Ce as v,be as w,ve as x,ye as y,Ie as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as A,a2 as R,r as w,ee as D,c as L,d as M,c1 as $,aJ as C,d4 as T,aP as F,bY as N}from"./index-bl_DQ3mH.js";import{a as y,b as O,u as U}from"./thread-route-CR0TIP8s.js";import{u as E}from"./use-panel-navigate-c5H4a21L.js";import{A as h}from"./autosend-Cr5TlS-x.js";let c=null;const b=new Set;function V(e){return b.add(e),()=>{b.delete(e)}}function S(e){if(c!==e){c=e;for(const s of b)s()}}function J(){S(null)}function Q(){const e=A({strict:!1}),s=E(),{org:o}=R(),r=y(),t=w.useSyncExternalStore(V,()=>c,()=>c),n=D(s)?.path??e.preview??e.skill??e.brand??null;if(!n)return c=null,null;const a=`${o.id}:${r??""}:${n}`;return a===t?null:{path:n,dismiss:()=>S(a)}}function W(){const e=L.c(12),s=M(),{org:o}=R(),r=y(),t=O(),n=U(),a=E();let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d={strict:!1},e[0]=d):d=e[0];const l=A(d);let u;e[1]!==a||e[2]!==s||e[3]!==o||e[4]!==n||e[5]!==l||e[6]!==t?(u=(v,g)=>{const i=a&&!$(a)?a:void 0,m=g?.virtualMcpId??t,I=C(o.id).id;if(m===I&&n===void 0&&i&&T(i).kind==="org-destination"){s({to:".",search:P=>({...P,thread:v,mainpanel:void 0,autosend:g?.autosend?h:void 0})});return}const k=m===t&&i&&T(i).kind!=="org-destination"?i:"overview",x=F({org:o.slug,agentId:m,superAgentId:I,tabId:k});N(s,x,{search:()=>({thread:v,...typeof l.sidepanel=="boolean"?{sidepanel:l.sidepanel}:{},...g?.autosend?{autosend:h}:{}}),replace:!1})},e[1]=a,e[2]=s,e[3]=o,e[4]=n,e[5]=l,e[6]=t,e[7]=u):u=e[7];const p=u;let f;return e[8]!==p||e[9]!==r||e[10]!==t?(f={virtualMcpId:t,taskId:r,navigateToTask:p},e[8]=p,e[9]=r,e[10]=t,e[11]=f):f=e[11],f}export{Q as a,J as c,W as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,a2 as o,o as m,K as f,m as E,ao as I,fn as T}from"./index-bl_DQ3mH.js";import{k as F,m as N,H as y}from"./location-BjlyegC2.js";import{o as P}from"./use-org-fs-DOu4nQSr.js";function g(i){const e=n.c(14),{org:s}=o(),r=m();let l;e[0]!==s.id||e[1]!==i?(l=f.projectFolderEnsure(s.id,i?.id??"",i?F(i):""),e[0]=s.id,e[1]=i,e[2]=l):l=e[2];let t;e[3]!==s.id||e[4]!==s.slug||e[5]!==i?.id||e[6]!==r?(t=async()=>{const d=await I(s.slug,"PROJECT_FOLDER_ENSURE",{id:i?.id??""});return d.created&&(P(r,s.id,y),T(r,s.id,"VIRTUAL_MCP")),d},e[3]=s.id,e[4]=s.slug,e[5]=i?.id,e[6]=r,e[7]=t):t=e[7];let a;e[8]!==i?(a=!!i&&!N(i),e[8]=i,e[9]=a):a=e[9];let u;e[10]!==l||e[11]!==t||e[12]!==a?(u={queryKey:l,queryFn:t,enabled:a,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY,retry:!1},e[10]=l,e[11]=t,e[12]=a,e[13]=u):u=e[13],E(u)}export{g as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as s}from"./index-bl_DQ3mH.js";import{c as v,w}from"./section-preview-url-7zfngvgW.js";import{at as h}from"./claim-phase-copy-gKkPnPW4.js";import{a as d}from"./input-B6YAOx07.js";function D(e){const t=s.c(4),r=d(e?.virtualMcpId).runtime==="cms",i=h(e);let l;return t[0]!==i||t[1]!==r||t[2]!==e?(l=e&&i&&r?v({...e,...i}):null,t[0]=i,t[1]=r,t[2]=e,t[3]=l):l=t[3],l}function R(e){const t=s.c(11);let r;t[0]!==e?(r=e?{orgSlug:e.orgSlug,virtualMcpId:e.virtualMcpId,branch:e.branch}:null,t[0]=e,t[1]=r):r=t[1];const i=D(r),l=e?.previewServerUrl??null;let n=null;if(l)try{let c;t[2]!==l?(c=new URL(l),t[2]=l,t[3]=c):c=t[3],n=c.host}catch{n=null}let o;t[4]!==i||t[5]!==e||t[6]!==l?(o=e&&l&&i?w(new URL(e.path,l).toString(),i):null,t[4]=i,t[5]=e,t[6]=l,t[7]=o):o=t[7];const f=o;let u;return t[8]!==n||t[9]!==f?(u={url:f,host:n},t[8]=n,t[9]=f,t[10]=u):u=t[10],u}export{D as a,R as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,a2 as c,aa as r,K as a,m as y,R as F,o as C,e as d}from"./index-bl_DQ3mH.js";function E(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:l}=F(s);return l.configs}function I(){const e=u.c(7),{org:n}=c(),o=r();let i;e[0]!==n.id?(i=a.fileConfigs(n.id),e[0]=n.id,e[1]=i):i=e[1];let t;e[2]!==o?(t=()=>o.call("FILE_CONFIG_LIST",{}),e[2]=o,e[3]=t):t=e[3];let s;return e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6],y(s)}function m(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_CREATE",{...f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}function q(){const e=u.c(8),{org:n}=c(),o=r(),i=C();let t;e[0]!==o?(t=f=>o.call("FILE_CONFIG_DELETE",{id:f}),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==n||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:a.fileConfigs(n.id)})},e[2]=n,e[3]=i,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=l):l=e[7],d(l)}export{E as a,m as b,q as c,I as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Ee,b as Ue,u as Be,a2 as Le,ew as Oe,ex as $e,ey as le,ez as de,al as Ke,aj as me,eA as qe,eB as ze,r as Y,ee as Qe,M as pe,eC as We,eD as _e}from"./index-bl_DQ3mH.js";import{k as Ge,l as Je,u as Xe,n as Ye,a as A,o as Ze,q as et}from"./use-chat-layout-state-CVkPEEUs.js";import{d as tt}from"./agent-icon-BdZdLCky.js";import{i as at}from"./Monitor01-596xyLh3.js";import{u as ot}from"./use-connection-gMb_8zEe.js";import{a as nt}from"./use-mcp-client-DuTNn1dc.js";import{u as st}from"./use-mcp-tools-CA6Ri5UK.js";import{a as it}from"./repository-binding-BTsmo_dA.js";import{g as rt}from"./types-C5SQt0XZ.js";import{t as ct}from"./utils-CVEq3hMx.js";import{u as lt}from"./use-sandbox-events-hhwp2IWJ.js";import{F as ue}from"./file-type-icon-C-_1hLql.js";import{a as dt,u as mt}from"./use-panel-navigate-c5H4a21L.js";import{r as Z}from"./resolve-tab-icon-DqCiaIA7.js";import{u as pt}from"./use-task-metadata-CBQ5Muu5.js";import{i as ut,r as ft,s as bt}from"./shell-layout-Bk6uPKMe.js";import{a as Tt}from"./input-B6YAOx07.js";import{u as It}from"./use-organization-settings-BOGRgJjV.js";import{u as vt}from"./use-project-scope-A4YCdR4N.js";import{b as Pt}from"./chat-context-DszOftwV.js";import{r as yt}from"./virtual-mcp-DFjD0qBz.js";function kt(a,e){return!!a&&!!e&&e===`thread:${a}`}function wt(a){return a.threadHasRepo?"repo":kt(a.threadId,a.sandboxBranch)?"none":a.agentHasRepo?"repo":"none"}function _t(a){const e=Ee.c(35),d=Ue(),{openPanel:f,closePanel:D}=dt();let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={strict:!1},e[0]=b):b=e[0];const fe=Be(b),ee=mt(),te=Ge(),i=it(a.virtualMcpId),T=pt(a.taskId),{org:n}=Le(),{currentBranch:be,activeTask:I}=Pt(),m=i?.metadata.ui?.layout??null,r=m?.tabs??[],c=i?.id?Oe(i.id):null,v=T?.expanded_tools??[],P=It(),{scopeId:Te,project:Ie}=vt(),x=Je(Te,Ie,i),F=Xe(x.project),ae=Ye(x.resolvedScopeId,A(x.project?.metadata),F.presence);let y;e[1]===Symbol.for("react.memo_cache_sentinel")?(y={includeVirtual:!0},e[1]=y):y=e[1];const p=ot(y),ve=lt(),H=I?.branch??be;let k;e[2]!==I?.metadata||e[3]!==a.taskId||e[4]!==i?.metadata||e[5]!==T||e[6]!==H?(k=wt({threadId:a.taskId,sandboxBranch:H,agentHasRepo:A(i?.metadata),threadHasRepo:A(T)||A(I?.metadata)}),e[2]=I?.metadata,e[3]=a.taskId,e[4]=i?.metadata,e[5]=T,e[6]=H,e[7]=k):k=e[7];const Pe=k,E=ve.lifecycle.phase==="running",{runtime:ye,resolved:oe}=Tt(a.virtualMcpId),U=!!c&&E;let w;e[8]!==U?(w={enabled:U},e[8]=U,e[9]=w):w=e[9];const ne=nt({connectionId:c,orgId:n.id,orgSlug:n.slug},w),B=ne,L=!!ne&&E;let g;e[10]!==B||e[11]!==L?(g={client:B,enabled:L},e[10]=B,e[11]=L,e[12]=g):g=e[12];const{data:ke}=st(g),se=c&&E?(ke?.tools??[]).filter(Vt).map(t=>({connectionId:c,toolName:t.name,label:ct(t.name),icon:null})):[],O=se[0],we=O?se:[],u=O&&c?{type:"ext-apps",id:c,toolName:O.toolName}:m?.defaultMainView??null,ge=yt(m),ie={assets:F.assetsPending,siteAccess:F.siteAccessPending},{activeTab:h,mainOpen:l}=$e({panelTabId:ee,mainPanelParam:fe.mainpanel,routeDefaultMain:te,metadata:u||m?{defaultMainView:u,tabs:r.map(Ct)}:null}),he=u||m?{defaultMainView:u,tabs:r.map(ht)}:null,C=ft({hasSource:Pe==="repo"||P,runtime:ye,cmsMode:ge}),Ce=C.includes("content"),Ve=le(he),Me=u?.type,re=Ze(Me,ae,ie,C,oe),$=re?le(null):Ve,Se=et(h,ae,ie),Re=!C.includes("code")&&oe&&de(h)!==null,o=!ee&&!te&&re||h==="content"&&!Ce||Re||Se?$:h,K=Ke(o);let V;e[13]!==d?(V=t=>d(t==="site-editor"?"common.mainPanelTabs.preview":t==="content"?"common.mainPanelTabs.content":"common.mainPanelTabs.code"),e[13]=d,e[14]=V):V=e[14];const Ne=V,q=new Map;for(const t of v){const s=me(t.appId,t.toolName);q.set(s,{id:s,title:t.toolName,appId:t.appId,iconKey:t.toolName})}for(const t of we){if(t.toolName==="fetch_assets")continue;const s=me(t.connectionId,t.toolName);q.set(s,{id:s,title:t.label||t.toolName,appId:t.connectionId,iconKey:t.toolName,iconUrl:t.icon??null})}const z=qe(o),Q=z?z.key.split("/").pop()??z.key:null,je=Q?[{id:o,title:Q,kind:"file",icon:{kind:"component",Component:t=>Y.createElement(ue,{filename:Q,...t})}}]:[],M=ze(o),Ae=M?[{id:o,title:(M.path.split("/").pop()??M.path).replace(/\.html$/i,""),kind:"file",icon:{kind:"component",Component:t=>Y.createElement(M.path.startsWith("pages/")?tt:at,t)}}]:[],W=Qe(o),_=W?W.path.split("/").pop()??W.path:null,De=_?[{id:o,title:_,kind:"file",icon:{kind:"component",Component:t=>Y.createElement(ue,{filename:_,...t})}}]:[],xe=ut(o)?C.map(t=>({id:t==="code"&&de(o)?o:t,title:Ne(t),kind:"system",icon:Z({tabId:t,kind:"system",connections:p})})):[];let S;e[15]!==p?(S=t=>({id:We(t.id),title:t.title,kind:"agent",icon:Z({tabId:t.id,kind:"agent",appId:t.view.appId,connections:p})}),e[15]=p,e[16]=S):S=e[16];const Fe=[...xe,...je,...Ae,...De,...r.map(S),...Array.from(q.values()).map(t=>({id:t.id,title:t.title,kind:"expanded",icon:Z({tabId:t.iconKey,kind:"expanded",appId:t.appId,iconUrl:t.iconUrl,connections:p})}))],ce=new Set,G=Fe.filter(t=>ce.has(t.id)?!1:(ce.add(t.id),!0)),He=a.virtualMcpId;let R;e[17]!==n.id?(R=pe(n.id),e[17]=n.id,e[18]=R):R=e[18];const J=He===R;let N;e[19]!==o||e[20]!==D||e[21]!==l||e[22]!==J||e[23]!==f||e[24]!==n.id||e[25]!==P?(N=t=>{if(bt({reportsOnly:P,onReportAgent:J,tabId:t})){f(t,{virtualmcpid:pe(n.id),search:gt});return}const s=_e({clickedId:t,activeTab:o,mainOpen:l});"close"in s?D():f(s.tabId)},e[19]=o,e[20]=D,e[21]=l,e[22]=J,e[23]=f,e[24]=n.id,e[25]=P,e[26]=N):N=e[26];const X=N;let j;return e[27]!==o||e[28]!==K||e[29]!==v||e[30]!==r||e[31]!==l||e[32]!==X||e[33]!==G?(j={activeTab:o,mainOpen:l,setActiveTab:X,layoutTabs:r,expandedTools:v,automationTabParsed:K,tabs:G},e[27]=o,e[28]=K,e[29]=v,e[30]=r,e[31]=l,e[32]=X,e[33]=G,e[34]=j):j=e[34],j}function gt(a){return{...a,thread:void 0}}function ht(a){return{id:a.id}}function Ct(a){return{id:a.id}}function Vt(a){return!!rt(a._meta)}export{wt as r,_t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o}from"./use-organization-settings-BOGRgJjV.js";function e(){return o("new_blocks_editor")}export{e as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as T,c as u,b3 as A,a2 as b,m as M,ao as $,K as E,aa as O,o as C,e as I}from"./index-bl_DQ3mH.js";import{D as z,o as D,a as P}from"./schema-kVE-1hbs.js";import{r as R}from"./task-board-kbcRVMI1.js";const G={organizationId:"",sidebar_items:null,coding_agent_mcp_excluded:null,simple_mode:null,default_home_agents:null,flags:null,submodule_credentials:null},x={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function k(t,e){return{queryKey:E.organizationSettings(e),queryFn:async()=>{try{return await $(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...G,organizationId:e}}},staleTime:6e4}}function d(t){const e=u.c(6),{org:n}=b();let s;e[0]!==n.id||e[1]!==n.slug?(s=k(n.slug,n.id),e[0]=n.id,e[1]=n.slug,e[2]=s):s=e[2];const o=t;let a;return e[3]!==s||e[4]!==o?(a={...s,select:o},e[3]=s,e[4]=o,e[5]=a):a=e[5],M(a)}function _(){const t=u.c(9),{org:e}=b(),n=O(),s=C();let o;t[0]!==e||t[1]!==n?(o=async l=>{const r=await n.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...l});if(!r)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return r},t[0]=e,t[1]=n,t[2]=o):o=t[2];let a;t[3]!==e||t[4]!==s?(a=l=>{s.setQueryData(E.organizationSettings(e.id),r=>({...r??G,...l}))},t[3]=e,t[4]=s,t[5]=a):a=t[5];let i;return t[6]!==o||t[7]!==a?(i={mutationFn:o,onSuccess:a},t[6]=o,t[7]=a,t[8]=i):i=t[8],I(i)}function L(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:x}function B(){const{data:t}=d(Q);return t??x}function Q(t){return L(t.simple_mode)}function V(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i)=>e.mutate({simple_mode:a},i),s=(a,i)=>e.mutateAsync({simple_mode:a},i),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function W(){return c("reports_only")}function c(t){const e=u.c(5);let n;e[0]!==t?(n=a=>D(a.flags,t),e[0]=t,e[1]=n):n=e[1];const{data:s}=d(n);let o;return e[2]!==s||e[3]!==t?(o=s??z.has(t),e[2]=s,e[3]=t,e[4]=o):o=e[4],o}function H(){const t=c("chat_harness_sandbox_only");return A().runtime.agentSandbox&&t}function J(){const t=u.c(8),{org:e}=b(),n=O(),s=C();let o;t[0]!==n?(o=l=>n.call("ORGANIZATION_BLOCKS_EDITOR_SET",{enabled:l}),t[0]=n,t[1]=o):o=t[1];let a;t[2]!==e||t[3]!==s?(a=l=>{const{enabled:r}=l;s.setQueryData(E.organizationSettings(e.id),m=>m&&{...m,flags:{...m.flags,new_blocks_editor:r}})},t[2]=e,t[3]=s,t[4]=a):a=t[4];let i;return t[5]!==o||t[6]!==a?(i={mutationFn:o,onSuccess:a},t[5]=o,t[6]=a,t[7]=i):i=t[7],I(i)}function N(t){return!!t&&t.trim().toLowerCase().endsWith("@deco.cx")}function X(){const{data:t}=T.useSession();return N(t?.user?.email)}function tt(){const t=u.c(9),{data:e}=T.useSession(),n=A();let s;t[0]!==n.auth.localMode||t[1]!==e?.user?.email?(s=n.auth.localMode===!0||N(e?.user?.email),t[0]=n.auth.localMode,t[1]=e?.user?.email,t[2]=s):s=t[2];const o=s,a=n.hostingControlPlaneGa===!0,i=n.monitorGa===!0,l=c("hosting_enabled"),r=c("deco_analytics_enabled"),m=c("e2e_enabled"),w=c("monitor_enabled"),F=c("experiments_enabled"),g=o||a||l,S=o||a||r,p=o||a||m,y=o||i||w,h=o||a||F;let f;return t[3]!==g||t[4]!==S||t[5]!==p||t[6]!==y||t[7]!==h?(f={hosting:g,analytics:S,e2e:p,monitor:y,experiments:h},t[3]=g,t[4]=S,t[5]=p,t[6]=y,t[7]=h,t[8]=f):f=t[8],f}function et(){const{data:t}=d(U);return t??!1}function U(t){return P(t.flags)}function nt(){const{data:t}=d(q);return t??!0}function q(t){return R(t.flags)}function st(){const t=u.c(7),e=_();let n,s;t[0]!==e?(n=(a,i,l)=>e.mutate({flags:{[a]:i}},l),s=(a,i,l)=>e.mutateAsync({flags:{[a]:i}},l),t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);let o;return t[3]!==e||t[4]!==n||t[5]!==s?(o={...e,mutate:n,mutateAsync:s},t[3]=e,t[4]=n,t[5]=s,t[6]=o):o=t[6],o}function ot(){const t=u.c(2),{data:e}=d(K);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function K(t){return t.coding_agent_mcp_excluded}function at(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutate({coding_agent_mcp_excluded:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutate:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}function it(){const t=u.c(2),{data:e}=d(Z);let n;return t[0]!==e?(n=e??[],t[0]=e,t[1]=n):n=t[1],n}function Z(t){return t.submodule_credentials}function lt(){const t=u.c(5),e=_();let n;t[0]!==e?(n=(o,a)=>e.mutateAsync({submodule_credentials:o},a),t[0]=e,t[1]=n):n=t[1];let s;return t[2]!==e||t[3]!==n?(s={...e,mutateAsync:n},t[2]=e,t[3]=n,t[4]=s):s=t[4],s}export{c as a,H as b,tt as c,B as d,nt as e,J as f,et as g,st as h,ot as i,at as j,V as k,it as l,lt as m,X as n,W as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as N,a2 as Q,o as k}from"./index-bl_DQ3mH.js";import{a as E,f as P}from"./repository-binding-BTsmo_dA.js";import{r as z}from"./serial-task-queue-CGOeQgpr.js";function O(t){return(t??"").normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"user"}function B(t){return t?.name||t?.email?.split("@")[0]||void 0}function F(t){const e=O(t),s=Date.now().toString(36).split("").reverse().join("");return`${e}-${s}`}function T(t,e){return t.some(s=>s.branch===e.branch)?t:[...t,e]}function V(t,e){return t.filter(s=>s.branch!==e)}function _(t,e,s){return t.map(o=>o.branch===e?{...o,name:s}:o)}const S=["orange","violet","blue","pink","amber","teal"];function K(t){return S[t%S.length]}function W(t,e){const s=`${e} `,o=t.reduce((u,n)=>{if(!n.name.startsWith(s))return u;const l=Number(n.name.slice(s.length));return Number.isInteger(l)&&l>u?l:u},0);return`${e} ${o+1}`}const j={orange:"bg-orange-500",violet:"bg-violet-500",blue:"bg-blue-500",pink:"bg-pink-500",amber:"bg-amber-500",teal:"bg-teal-500"};function G(t){return t&&j[t]||"bg-muted-foreground"}function H(t){const e=N.c(26),s=E(t),o=P(),{org:u}=Q(),n=k();let l;e[0]!==s?.metadata?.releases?(l=s?.metadata?.releases??[],e[0]=s?.metadata?.releases,e[1]=l):l=e[1];const f=l;let b;e[2]!==u||e[3]!==t?(b=a=>a[1]===u.id&&a[3]==="collection"&&a[4]==="VIRTUAL_MCP"&&a[5]===t,e[2]=u,e[3]=t,e[4]=b):b=e[4];const m=b;let d;e[5]!==m||e[6]!==n||e[7]!==f?(d=()=>{for(const[,a]of n.getQueriesData({predicate:r=>m(r.queryKey)}))if(a?.item)return a.item.metadata?.releases??[];return f},e[5]=m,e[6]=n,e[7]=f,e[8]=d):d=e[8];const $=d;let p;e[9]!==o||e[10]!==m||e[11]!==n||e[12]!==$||e[13]!==t?(p=a=>z(`vm-releases:${t}`,async()=>{const r=$(),g=a(r);if(g!==r){n.setQueriesData({predicate:c=>m(c.queryKey)},c=>c?.item?{item:{...c.item,metadata:{...c.item.metadata,releases:g}}}:c);try{await o.update.mutateAsync({id:t,data:{metadata:{releases:g}}})}catch(c){const w=c;throw n.invalidateQueries({predicate:A=>m(A.queryKey)}),w}}}),e[9]=o,e[10]=m,e[11]=n,e[12]=$,e[13]=t,e[14]=p):p=e[14];const i=p;let R;e[15]!==i?(R=a=>i(r=>T(r,a)),e[15]=i,e[16]=R):R=e[16];const y=R;let h;e[17]!==i?(h=(a,r)=>i(g=>_(g,a,r)),e[17]=i,e[18]=h):h=e[18];const D=h;let C;e[19]!==i?(C=a=>i(r=>V(r,a)),e[19]=i,e[20]=C):C=e[20];const L=C;let x;return e[21]!==y||e[22]!==L||e[23]!==f||e[24]!==D?(x={releases:f,createRelease:y,renameRelease:D,deleteRelease:L},e[21]=y,e[22]=L,e[23]=f,e[24]=D,e[25]=x):x=e[25],x}export{W as a,B as b,F as g,K as n,G as r,H as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as F,a2 as X,aJ as Me,l as H,j as n,H as Oe,r as k,b as Z,t as ie,h as ce,s as be,v as ye,q as ve,D as Se,d as je,y as ue,aK as Ae,B as Ee,o as Ie,K as W,b6 as de}from"./index-bl_DQ3mH.js";import{n as $e}from"./ArrowUp-CFc2wNu3.js";import{c as Fe,a as we,e as He,u as Ne,T as ze,A as Ke,h as qe,b as Ge,i as Ue,j as Qe,p as Ve,L as Ye}from"./chat-context-DszOftwV.js";import{s as Je,g as Ce,d as We}from"./tool-namespace-uRsPbj-p.js";import{c as se,T as Xe,a as Ze,b as et}from"./tooltip-COqLwkid.js";import{d as tt,b as st,a as nt,D as rt}from"./drawer-UzGeZrmC.js";import{C as at}from"./collection-search-q0ogFMFh.js";import{u as ot}from"./use-mobile-Di3PCVWm.js";import{u as lt}from"./use-mcp-client-DuTNn1dc.js";import{u as it,g as ct}from"./use-mcp-prompts-3vLSpQqZ.js";import{c as ut,P as dt}from"./usage-stats-CAukzrpg.js";import{T as ft,d as mt,c as pt,e as ht,H as gt}from"./input-B6YAOx07.js";import{u as xt,a as bt,S as yt,M as fe}from"./pair-DjM6V7aG.js";import{a as vt}from"./use-panel-navigate-c5H4a21L.js";import{u as St}from"./thread-intent-CG-CCDLs.js";import{N as jt}from"./index-DCmQGiOV.js";import{i as Et}from"./LinkBroken01-BBYM52IU.js";import{g as Te}from"./agent-icon-BdZdLCky.js";import{e as wt}from"./use-decopilot-events-D8zpT0sX.js";import{u as Nt}from"./use-deco-credits-BtvhFk4m.js";import{F as Ct}from"./feature-paywall-nTUHasXJ.js";import{i as Tt}from"./AlertCircle-BILwGqjV.js";import{b as kt}from"./sandbox-url-D3mC8qhT.js";import{a as Pt}from"./repository-binding-BTsmo_dA.js";import{e as Dt}from"./backoff-CrEUbyZT.js";const me=3,ke="inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-muted text-muted-foreground text-sm font-medium transition-colors cursor-pointer",Rt="flex flex-col gap-1.5 p-4 rounded-xl bg-accent/40 text-sm leading-snug transition-colors cursor-pointer text-left";function Pe(t){const e=F.c(46),{item:r,onSelect:o,isLoading:s,isDisabled:a,variant:l}=t,i=l===void 0?"pill":l,{prompt:c}=r;let u;if(e[0]!==c._meta||e[1]!==c.name||e[2]!==c.title){const T=Ce(c._meta);u=c.title??We(c.name,T),e[0]=c._meta,e[1]=c.name,e[2]=c.title,e[3]=u}else u=e[3];const d=u,f=c.description||null;if(i==="card"){let T;e[4]!==o||e[5]!==c?(T=()=>o(c),e[4]=o,e[5]=c,e[6]=T):T=e[6];const M=a||s,B=s&&"bg-accent/40",L=(a||s)&&"cursor-not-allowed opacity-50";let _;e[7]!==B||e[8]!==L?(_=H(Rt,"hover:bg-accent/60 text-foreground",B,L),e[7]=B,e[8]=L,e[9]=_):_=e[9];let p;e[10]!==d?(p=n.jsx("span",{className:"font-medium truncate capitalize",children:d}),e[10]=d,e[11]=p):p=e[11];let w;e[12]!==s?(w=s&&n.jsx(ce,{size:"xs"}),e[12]=s,e[13]=w):w=e[13];let h;e[14]!==p||e[15]!==w?(h=n.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p,w]}),e[14]=p,e[15]=w,e[16]=h):h=e[16];let v;e[17]!==f?(v=f&&n.jsx("span",{className:"text-xs text-muted-foreground line-clamp-2",children:f}),e[17]=f,e[18]=v):v=e[18];let N;return e[19]!==h||e[20]!==v||e[21]!==T||e[22]!==M||e[23]!==_?(N=n.jsxs("button",{type:"button",onClick:T,disabled:M,className:_,children:[h,v]}),e[19]=h,e[20]=v,e[21]=T,e[22]=M,e[23]=_,e[24]=N):N=e[24],N}let m;e[25]!==o||e[26]!==c?(m=()=>o(c),e[25]=o,e[26]=c,e[27]=m):m=e[27];const S=a||s,j=s&&"bg-muted/50",E=(a||s)&&"cursor-not-allowed opacity-50";let x;e[28]!==j||e[29]!==E?(x=H(ke,"hover:bg-muted/70 hover:text-foreground",j,E),e[28]=j,e[29]=E,e[30]=x):x=e[30];let b;e[31]!==d?(b=n.jsx("span",{className:"capitalize",children:d}),e[31]=d,e[32]=b):b=e[32];let C;e[33]!==s?(C=s&&n.jsx(ce,{size:"xs"}),e[33]=s,e[34]=C):C=e[34];let y;e[35]!==m||e[36]!==S||e[37]!==x||e[38]!==b||e[39]!==C?(y=n.jsx(Xe,{asChild:!0,children:n.jsxs("button",{type:"button",onClick:m,disabled:S,className:x,children:[b,C]})}),e[35]=m,e[36]=S,e[37]=x,e[38]=b,e[39]=C,e[40]=y):y=e[40];const P=f??d;let g;e[41]!==P?(g=n.jsx(Ze,{side:"top",className:"max-w-xs",children:n.jsx("p",{className:"text-xs",children:P})}),e[41]=P,e[42]=g):g=e[42];let D;return e[43]!==y||e[44]!==g?(D=n.jsxs(et,{delayDuration:400,children:[y,g]}),e[43]=y,e[44]=g,e[45]=D):D=e[45],D}function _t(t){const e=F.c(61),{items:r,open:o,onOpenChange:s,onSelect:a,loadingPrompt:l}=t,i=Z(),[c,u]=k.useState(""),d=!!l;let f;e[0]!==r||e[1]!==c?(f=c.trim()?r.filter(p=>{const w=c.toLowerCase();return p.prompt.name.toLowerCase().includes(w)||(p.prompt.title??"").toLowerCase().includes(w)||(p.prompt.description??"").toLowerCase().includes(w)}):r,e[0]=r,e[1]=c,e[2]=f):f=e[2];const m=f,S=ot();let j;e[3]!==m.length||e[4]!==c||e[5]!==i?(j=m.length===0&&n.jsx("p",{className:"col-span-4 text-sm text-muted-foreground text-center py-8",children:i("chat.iceBreakers.noPromptsMatch",{search:c})}),e[3]=m.length,e[4]=c,e[5]=i,e[6]=j):j=e[6];let E;if(e[7]!==m||e[8]!==d||e[9]!==l?.name||e[10]!==s||e[11]!==a){let p;e[13]!==d||e[14]!==l?.name||e[15]!==s||e[16]!==a?(p=w=>n.jsx(Pe,{item:w,variant:"card",onSelect:h=>{s(!1),a(h)},isLoading:l?.name===w.prompt.name,isDisabled:d&&l?.name!==w.prompt.name},w.prompt.name),e[13]=d,e[14]=l?.name,e[15]=s,e[16]=a,e[17]=p):p=e[17],E=m.map(p),e[7]=m,e[8]=d,e[9]=l?.name,e[10]=s,e[11]=a,e[12]=E}else E=e[12];let x;e[18]!==j||e[19]!==E?(x=n.jsx("div",{className:"flex-1 overflow-y-auto [scrollbar-gutter:stable]",children:n.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-3 p-5",children:[j,E]})}),e[18]=j,e[19]=E,e[20]=x):x=e[20];const b=x;let C;e[21]!==i?(C=i("chat.iceBreakers.searchPromptsPlaceholder"),e[21]=i,e[22]=C):C=e[22];let y;e[23]===Symbol.for("react.memo_cache_sentinel")?(y=p=>{p.key==="Escape"&&u("")},e[23]=y):y=e[23];let P;e[24]!==c||e[25]!==C?(P=n.jsx(at,{value:c,onChange:u,placeholder:C,onKeyDown:y}),e[24]=c,e[25]=C,e[26]=P):P=e[26];const g=P;if(S){let p;e[27]!==i?(p=i("chat.iceBreakers.allPromptsTitle"),e[27]=i,e[28]=p):p=e[28];let w;e[29]!==p?(w=n.jsx(tt,{className:"sr-only",children:n.jsx(st,{children:p})}),e[29]=p,e[30]=w):w=e[30];let h;e[31]!==i?(h=i("chat.iceBreakers.promptsLabel"),e[31]=i,e[32]=h):h=e[32];let v;e[33]!==h?(v=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:h})}),e[33]=h,e[34]=v):v=e[34];let N;e[35]!==b||e[36]!==g||e[37]!==v||e[38]!==w?(N=n.jsxs(nt,{className:"h-[85vh] flex flex-col p-0 gap-0",children:[w,v,g,b]}),e[35]=b,e[36]=g,e[37]=v,e[38]=w,e[39]=N):N=e[39];let $;return e[40]!==s||e[41]!==o||e[42]!==N?($=n.jsx(se,{delayDuration:400,children:n.jsx(rt,{open:o,onOpenChange:s,children:N})}),e[40]=s,e[41]=o,e[42]=N,e[43]=$):$=e[43],$}let D;e[44]!==i?(D=i("chat.iceBreakers.allPromptsTitle"),e[44]=i,e[45]=D):D=e[45];let T;e[46]!==D?(T=n.jsx(be,{className:"sr-only",children:n.jsx(ye,{children:D})}),e[46]=D,e[47]=T):T=e[47];let M;e[48]!==i?(M=i("chat.iceBreakers.promptsLabel"),e[48]=i,e[49]=M):M=e[49];let B;e[50]!==M?(B=n.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 shrink-0",children:n.jsx("span",{className:"text-sm font-medium text-foreground",children:M})}),e[50]=M,e[51]=B):B=e[51];let L;e[52]!==b||e[53]!==g||e[54]!==B||e[55]!==T?(L=n.jsxs(ve,{className:"sm:max-w-[1100px] h-[680px] p-0 gap-0 overflow-hidden flex flex-col",children:[T,B,g,b]}),e[52]=b,e[53]=g,e[54]=B,e[55]=T,e[56]=L):L=e[56];let _;return e[57]!==s||e[58]!==o||e[59]!==L?(_=n.jsx(se,{delayDuration:400,children:n.jsx(Se,{open:o,onOpenChange:s,children:L})}),e[57]=s,e[58]=o,e[59]=L,e[60]=_):_=e[60],_}function Lt(t){const e=F.c(30),{items:r,onSelect:o,loadingPrompt:s,className:a}=t,l=Z(),[i,c]=k.useState(!1);if(r.length===0)return null;let u,d,f,m,S;if(e[0]!==a||e[1]!==r||e[2]!==s||e[3]!==o||e[4]!==l){const b=r.slice(0,me),C=r.slice(me),y=!!s;let P;e[10]!==y||e[11]!==s?.name||e[12]!==o?(P=D=>n.jsx(Pe,{item:D,onSelect:o,isLoading:s?.name===D.prompt.name,isDisabled:y&&s?.name!==D.prompt.name},D.prompt.name),e[10]=y,e[11]=s?.name,e[12]=o,e[13]=P):P=e[13];const g=b.map(P);u=se,S=400,e[14]!==a?(d=H("w-full flex flex-wrap gap-2 justify-center",a),e[14]=a,e[15]=d):d=e[15],f=g,m=C.length>0&&n.jsx("button",{type:"button",disabled:y,onClick:()=>c(!0),className:H(ke,"hover:bg-muted/70 hover:text-foreground",y&&"opacity-50 cursor-not-allowed"),children:l("chat.iceBreakers.moreButton",{count:C.length})}),e[0]=a,e[1]=r,e[2]=s,e[3]=o,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=m,e[9]=S}else u=e[5],d=e[6],f=e[7],m=e[8],S=e[9];let j;e[16]!==d||e[17]!==f||e[18]!==m?(j=n.jsxs("div",{className:d,children:[f,m]}),e[16]=d,e[17]=f,e[18]=m,e[19]=j):j=e[19];let E;e[20]!==r||e[21]!==s||e[22]!==i||e[23]!==o?(E=n.jsx(_t,{items:r,open:i,onOpenChange:c,onSelect:o,loadingPrompt:s}),e[20]=r,e[21]=s,e[22]=i,e[23]=o,e[24]=E):E=e[24];let x;return e[25]!==u||e[26]!==S||e[27]!==j||e[28]!==E?(x=n.jsxs(u,{delayDuration:S,children:[j,E]}),e[25]=u,e[26]=S,e[27]=j,e[28]=E,e[29]=x):x=e[29],x}function Bt(){return null}function Mt(t,e){switch(e.type){case"SELECT_PROMPT":return!e.prompt.arguments||e.prompt.arguments.length===0?{stage:"loading",prompt:e.prompt}:{stage:"idle"};case"START_LOADING":return{stage:"loading",prompt:e.prompt,arguments:e.arguments};case"RESET":return{stage:"idle"};default:return t}}function Ot(t){const e=F.c(31),{connectionId:r}=t,o=Z(),{sendMessage:s}=we(),{org:a}=X();let l;e[0]!==r||e[1]!==a.id||e[2]!==a.slug?(l={connectionId:r,orgId:a.id,orgSlug:a.slug},e[0]=r,e[1]=a.id,e[2]=a.slug,e[3]=l):l=e[3];const i=lt(l);let c;e[4]!==i?(c={client:i,staleTime:6e4},e[4]=i,e[5]=c):c=e[5];const{data:u}=it(c);let d;e[6]!==u?.prompts?(d=u?.prompts??[],e[6]=u?.prompts,e[7]=d):d=e[7];const f=d;let m;e[8]!==f?(m=f.map(At),e[8]=f,e[9]=m):m=e[9];const S=m;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j={stage:"idle"},e[10]=j):j=e[10];const[E,x]=k.useReducer(Mt,j),[b,C]=k.useState(null);let y;e[11]!==i||e[12]!==s||e[13]!==o?(y=async(h,v)=>{if(!i){ie.error(o("chat.iceBreakers.mcpClientNotAvailable")),x({type:"RESET"});return}try{const N=await ct(i,h.name,v);x({type:"RESET"});const $={type:"doc",content:[{type:"paragraph",content:[ut({id:h.name,name:Je(h.name,Ce(h._meta)),metadata:N.messages,char:"/",kind:"prompt",args:v}),{type:"text",text:" "}]}]};await s($)}catch(N){console.error("[ice-breakers] Failed to fetch prompt:",N),ie.error(o("chat.iceBreakers.failedToLoadPrompt")),x({type:"RESET"})}},e[11]=i,e[12]=s,e[13]=o,e[14]=y):y=e[14];const P=y;let g;e[15]!==P?(g=async h=>{if(h.arguments&&h.arguments.length>0){x({type:"SELECT_PROMPT",prompt:h}),C(h);return}x({type:"START_LOADING",prompt:h}),await P(h)},e[15]=P,e[16]=g):g=e[16];const D=g;let T;e[17]!==b||e[18]!==P?(T=async h=>{b&&(x({type:"START_LOADING",prompt:b,arguments:h}),C(null),await P(b,h))},e[17]=b,e[18]=P,e[19]=T):T=e[19];const M=T;if(S.length===0)return null;const B=E.stage==="loading"?E.prompt:null;let L;e[20]!==D||e[21]!==S||e[22]!==B?(L=n.jsx(Lt,{items:S,onSelect:D,loadingPrompt:B}),e[20]=D,e[21]=S,e[22]=B,e[23]=L):L=e[23];let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{C(null),x({type:"RESET"})},e[24]=_):_=e[24];let p;e[25]!==b||e[26]!==M?(p=n.jsx(dt,{prompt:b,setPrompt:_,onSubmit:M}),e[25]=b,e[26]=M,e[27]=p):p=e[27];let w;return e[28]!==L||e[29]!==p?(w=n.jsxs(n.Fragment,{children:[L,p]}),e[28]=L,e[29]=p,e[30]=w):w=e[30],w}function At(t){return{prompt:t}}function It(t){const e=F.c(13),{className:r}=t,{selectedVirtualMcp:o}=Fe(),{org:s}=X();let a;e[0]!==s.id?(a=Me(s.id),e[0]=s.id,e[1]=a):a=e[1];const l=a.id,i=o?.id??l;let c;e[2]!==r?(c=H("w-full @container",r),e[2]=r,e[3]=c):c=e[3];const u=i??"default";let d;e[4]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(Bt,{}),e[4]=d):d=e[4];let f;e[5]!==i?(f=n.jsx(Ot,{connectionId:i}),e[5]=i,e[6]=f):f=e[6];let m;e[7]!==u||e[8]!==f?(m=n.jsx(Oe,{fallback:null,children:n.jsx(k.Suspense,{fallback:d,children:f},u)}),e[7]=u,e[8]=f,e[9]=m):m=e[9];let S;return e[10]!==c||e[11]!==m?(S=n.jsx("div",{className:c,children:m}),e[10]=c,e[11]=m,e[12]=S):S=e[12],S}function $t(t){let e=0;for(const r of t)for(const o of r.parts??[]){const s=o;s.type==="tool-load_repo"&&s.state==="output-available"&&s.output?.success===!0&&e++}return e}function Ft(){const t=F.c(8),{openPanel:e}=vt(),r=St(),o=He()?.messages??[],s=Ne()?.taskId??null;let a;t[0]!==o?(a=$t(o),t[0]=o,t[1]=a):a=t[1];const l=a,i=k.useRef(null),c=k.useRef(null);let u,d;t[2]!==l||t[3]!==r||t[4]!==e||t[5]!==s?(u=()=>{if(!l||!s)return;const f=`${s}:${l}`;c.current!==f&&(c.current=f,r?.refreshThreadMetadata(s)),i.current!==s&&(i.current=s,e("site-editor"))},d=[l,s,e,r],t[2]=l,t[3]=r,t[4]=e,t[5]=s,t[6]=u,t[7]=d):(u=t[6],d=t[7]),k.useEffect(u,d)}function De(t){return`deco-credits-empty-dismissed:${t}`}function Ds(t){try{return localStorage.getItem(De(t))==="1"}catch{return!1}}function Ht(){const t=F.c(56),e=Z(),{org:r}=X(),o=wt("credits"),s=je(),{decoKeyId:a}=Nt(),[l,i]=k.useState(!0);let c;t[0]!==r.id?(c=()=>{ue("credits_empty_state_dismissed",{organization_id:r.id}),i(!1);try{localStorage.setItem(De(r.id),"1")}catch{}},t[0]=r.id,t[1]=c):c=t[1];const u=c;let d,f;if(t[2]!==l||t[3]!==r.id?(d=()=>{l&&ue("credits_empty_state_shown",{organization_id:r.id})},f=[l,r.id],t[2]=l,t[3]=r.id,t[4]=d,t[5]=f):(d=t[4],f=t[5]),k.useEffect(d,f),!l)return null;if(!o){let h;t[6]!==e?(h=e("chat.input.allowanceExhaustedTitle"),t[6]=e,t[7]=h):h=t[7];let v;t[8]!==h?(v={title:h},t[8]=h,t[9]=v):v=t[9];let N;return t[10]!==u||t[11]!==v?(N=n.jsx(Ct,{feature:"chat",copy:v,onDismiss:u}),t[10]=u,t[11]=v,t[12]=N):N=t[12],N}let m;t[13]!==u?(m=h=>!h&&u(),t[13]=u,t[14]=m):m=t[14];let S;t[15]===Symbol.for("react.memo_cache_sentinel")?(S=n.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),t[15]=S):S=t[15];let j;t[16]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:n.jsx(Te,{size:20,className:"text-warning"})}),t[16]=j):j=t[16];let E;t[17]!==e?(E=e("chat.creditsEmptyState.title"),t[17]=e,t[18]=E):E=t[18];let x;t[19]!==E?(x=n.jsx(ye,{className:"text-lg font-semibold",children:E}),t[19]=E,t[20]=x):x=t[20];let b;t[21]!==e?(b=e("chat.creditsEmptyState.description"),t[21]=e,t[22]=b):b=t[22];let C;t[23]!==b?(C=n.jsx(Ae,{className:"mt-2 text-[13px] leading-relaxed max-w-[320px] mx-auto",children:b}),t[23]=b,t[24]=C):C=t[24];let y;t[25]!==x||t[26]!==C?(y=n.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[S,n.jsxs(be,{className:"relative gap-3",children:[j,n.jsxs("div",{className:"text-center",children:[x,C]})]})]}),t[25]=x,t[26]=C,t[27]=y):y=t[27];let P;t[28]!==a||t[29]!==u?(P=a&&n.jsx("div",{className:"px-6 pb-5",children:n.jsx(ft,{source:"empty_state",onDone:u})}),t[28]=a,t[29]=u,t[30]=P):P=t[30];let g;t[31]!==u||t[32]!==s||t[33]!==r.slug?(g=()=>{s({to:"/$org/settings/ai-providers",params:{org:r.slug}}),u()},t[31]=u,t[32]=s,t[33]=r.slug,t[34]=g):g=t[34];let D;t[35]!==e?(D=e("chat.creditsEmptyState.useYourOwnProvider"),t[35]=e,t[36]=D):D=t[36];let T;t[37]===Symbol.for("react.memo_cache_sentinel")?(T=n.jsx(Et,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),t[37]=T):T=t[37];let M;t[38]!==g||t[39]!==D?(M=n.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:g,children:[D,T]}),t[38]=g,t[39]=D,t[40]=M):M=t[40];let B;t[41]!==e?(B=e("chat.creditsEmptyState.skipForNow"),t[41]=e,t[42]=B):B=t[42];let L;t[43]!==u||t[44]!==B?(L=n.jsx(Ee,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:u,children:B}),t[43]=u,t[44]=B,t[45]=L):L=t[45];let _;t[46]!==M||t[47]!==L?(_=n.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[M,L]}),t[46]=M,t[47]=L,t[48]=_):_=t[48];let p;t[49]!==y||t[50]!==P||t[51]!==_?(p=n.jsxs(ve,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:zt,children:[y,P,_]}),t[49]=y,t[50]=P,t[51]=_,t[52]=p):p=t[52];let w;return t[53]!==p||t[54]!==m?(w=n.jsx(Se,{open:!0,onOpenChange:m,children:p}),t[53]=p,t[54]=m,t[55]=w):w=t[55],w}function zt(t){return t.preventDefault()}function Kt(t){const e=F.c(6),{balanceDollars:r}=t;let o;e[0]!==r?(o=r.toFixed(2),e[0]=r,e[1]=o):o=e[1];const s=o;let a,l;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=H("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),l=n.jsx(Te,{size:13,className:"text-success"}),e[2]=a,e[3]=l):(a=e[2],l=e[3]);let i;return e[4]!==s?(i=n.jsxs("div",{className:a,children:[l,n.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",s," in credits to get started"]})]}),e[4]=s,e[5]=i):i=e[5],i}function qt(){const t=F.c(8),{org:e}=X(),r=je();let o;t[0]!==r||t[1]!==e.slug?(o=()=>r({to:"/$org/settings/ai-providers",params:{org:e.slug}}),t[0]=r,t[1]=e.slug,t[2]=o):o=t[2];let s,a,l;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=H("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=n.jsx(Tt,{size:13,className:"text-warning"}),l=n.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),t[3]=s,t[4]=a,t[5]=l):(s=t[3],a=t[4],l=t[5]);let i;return t[6]!==o?(i=n.jsxs("button",{type:"button",onClick:o,className:s,children:[a,l]}),t[6]=o,t[7]=i):i=t[7],i}function Gt(t){const e=F.c(7),{scrollRef:r,sentinelRef:o,hasMoreOlder:s,isFetchingOlder:a,fetchOlderMessages:l}=t;let i,c;e[0]!==l||e[1]!==s||e[2]!==a||e[3]!==r||e[4]!==o?(i=()=>{const u=o.current,d=r.current;if(!u||!d||!s)return;const f=new IntersectionObserver(async m=>{if(!m[0]?.isIntersecting||a||!s)return;const j=d.scrollHeight,E=d.scrollTop;await l(),requestAnimationFrame(()=>{const x=d.scrollHeight;d.scrollTop=E+(x-j)})},{root:d,rootMargin:"200px 0px 0px 0px"});return f.observe(u),()=>f.disconnect()},c=[r,o,s,a,l],e[0]=l,e[1]=s,e[2]=a,e[3]=r,e[4]=o,e[5]=i,e[6]=c):(i=e[5],c=e[6]),k.useEffect(i,c)}function Ut(t){const e=F.c(5),{className:r,children:o}=t;let s;e[0]!==r?(s=H("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",r),e[0]=r,e[1]=s):s=e[1];let a;return e[2]!==o||e[3]!==s?(a=n.jsx("div",{className:s,children:o}),e[2]=o,e[3]=s,e[4]=a):a=e[4],a}function Qt(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=H("flex-1 min-h-0 overflow-y-auto isolate",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}function Vt(t){const e=F.c(2),{children:r}=t;let o;return e[0]!==r?(o=n.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:r}),e[0]=r,e[1]=o):o=e[1],o}function Yt(){const t=Z(),{messages:e,status:r,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a,isRunInProgress:l}=we(),{taskId:i}=Ge();Ft();const c=Ue(i??""),u=Qe(c),d=u.size===0?e:e.filter(g=>!u.has(g.id)),f=Ve(d,r==="submitted"||r==="streaming"||l),m=f.visible,S=xt(m),j=S.at(-1),x=ht()*gt+16,b=k.useRef(null),C=k.useRef(null);Gt({scrollRef:b,sentinelRef:C,hasMoreOlder:o,isFetchingOlder:s,fetchOlderMessages:a});const y=bt({initial:!1}),P=g=>{b.current=g,y.scrollRef(g)};return n.jsx(Ye.Provider,{value:f,children:n.jsx(yt,{messages:e,children:n.jsxs("div",{className:"relative h-full w-full min-w-0",children:[n.jsx("div",{ref:P,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:x},children:n.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[n.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[n.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),s&&n.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:t("chat.chat.loadingOlderMessages")}),S.slice(0,-1).map((g,D)=>n.jsx(fe,{pair:g,isLastPair:!1,status:D===S.length-1?r:void 0},`pair-${g.user?.id??g.assistant?.id}`))]}),j&&n.jsx("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:n.jsx(fe,{pair:j,isLastPair:!0,status:r},`pair-${j.user?.id??j.assistant?.id}`)})]})}),!y.isAtBottom&&n.jsx(Ee,{type:"button",variant:"outline",size:"icon-sm","aria-label":t("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-md animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:x+8},onClick:()=>{y.scrollToBottom()},children:n.jsx($e,{size:14})})]})})})}function Jt(t){const e=F.c(5),{children:r,className:o}=t;let s;e[0]!==o?(s=H("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",o),e[0]=o,e[1]=s):s=e[1];let a;return e[2]!==r||e[3]!==s?(a=n.jsx("div",{className:s,children:r}),e[2]=r,e[3]=s,e[4]=a):a=e[4],a}const Rs=Object.assign(Ut,{Main:Qt,Messages:Yt,EmptyState:Vt,Footer:Jt,Input:pt,Provider:qe,ActiveTaskProvider:Ke,ThreadlessProvider:ze,IceBreakers:It,NoAiProviderEmptyState:jt,CreditsEmptyState:Ht,CreditsEyebrow:Kt,NoCreditsEyebrow:qt,CreditsExhaustedBanner:mt});function pe(t){return t==="installing"||t==="install-failed"||t==="starting"||t==="start-failed"||t==="running"||t==="crashed"}const Wt={phase:null,lifecycle:{phase:"idle"},status:{state:"running"},branch:{kind:"unknown"},notFound:!1,scripts:[],activeProcesses:[],getBuffer:()=>"",hasData:()=>!1,subscribeChunks:()=>()=>{},subscribeReload:()=>()=>{}},Re=k.createContext(Wt),he=16384;class Xt{data="";append(e){this.data+=e,this.data.length>he&&(this.data=this.data.slice(this.data.length-he))}get(){return this.data}clear(){this.data=""}}const Zt=1e3,es=3e4,ts=3e3,ge=["lifecycle","status","tasks","scripts","branch","reload","file-changed"],xe="log";function ss(t){if(!t)return null;try{return new URL("/_sandbox/events",t).href}catch{return null}}function ns(t){return t===404}async function rs(t){try{const e=await fetch(t,{headers:{Accept:"text/event-stream"},cache:"no-store",signal:AbortSignal.timeout(ts)});return await e.body?.cancel().catch(()=>{}),ns(e.status)}catch{return!1}}function _s({virtualMcpId:t,branch:e,previewUrl:r=null,enabled:o=!0,children:s}){const{org:a}=X(),l=Ie(),i=Ne()?.taskId??null,[c,u]=k.useState(null),[d,f]=k.useState({phase:"idle"}),[m,S]=k.useState({state:"running"}),[j,E]=k.useState({kind:"unknown"}),[x,b]=k.useState(!1),[C,y]=k.useState([]),[P,g]=k.useState([]),[,D]=k.useState(0),T=k.useRef(new Map),M=k.useRef(new Set),B=k.useRef(new Set),L=k.useRef(null),_=ss(r),p=Pt(t)?.metadata?.runtime?.selected==="deno",w=v=>{let N=T.current.get(v);return N||(N=new Xt,T.current.set(v,N)),N};k.useEffect(()=>{if(u(null),f({phase:"idle"}),S({state:"running"}),E({kind:"unknown"}),L.current=null,b(!1),y([]),g([]),T.current.clear(),!t||!e||!o)return;const v=kt({orgSlug:a.slug,virtualMcpId:t,branch:e,threadId:i??null},"events");let N=!1,$=0,Y=null,q=null,G=null,K=null,z=null,J=null;const Le=R=>{try{const O=JSON.parse(R.data);u(O),O.kind!=="failed"&&(b(!1),$=0),O.kind==="ready"&&oe()}catch(O){console.warn("[vm-events] bad phase payload",O)}},ne=()=>{b(!0),u(null),f({phase:"idle"}),S({state:"running"}),E({kind:"unknown"}),y([]),g([]),T.current.clear()},re=R=>{try{const O=JSON.parse(R.data);if(typeof O.data!="string")return;$=0;const I=O.data.replace(/\r?\n/g,`\r
|
|
2
|
-
`);w(O.source).append(I);for(const A of M.current)try{A(O.source,I)}catch{}D(A=>A+1)}catch{}},ae=R=>{const O=R.type;try{const I=JSON.parse(R.data);switch($=0,O){case"lifecycle":{const A=I;f(A.state);const U=`${a.slug}/${t}/${e}`;if(pe(A.state.phase)&&!(J&&pe(J))){de(l,a.id);const V=W.decofile(U);l.getQueryData(V)===void 0&&l.invalidateQueries({queryKey:V})}A.state.phase==="running"&&J!=="running"&&(de(l,a.id),l.invalidateQueries({queryKey:W.decofile(U)}),l.invalidateQueries({queryKey:W.liveMeta(a.slug,t,e)})),J=A.state.phase;const Q=A.state.phase==="running"?A.state.port:null,te=L.current;if(L.current=Q,te!==null&&Q!==null&&te!==Q)for(const V of B.current)try{V()}catch{}return}case"status":S(I);return;case"tasks":{const U=I.active.map(Q=>Q.logName??"").filter(Boolean);g(U);return}case"scripts":y(I.scripts);return;case"branch":{const A=I.meta;E(A);return}case"reload":for(const A of B.current)try{A()}catch{}return;case"file-changed":{const{path:A}=I,U=`${a.slug}/${t}/${e}`;if(A.startsWith(".deco/")||A.includes("/.deco/")){if(!(J==="running"))return;G&&clearTimeout(G),G=setTimeout(()=>{if(G=null,l.invalidateQueries({queryKey:W.decofile(U)}),p)for(const V of B.current)try{V()}catch{}},500)}else q&&clearTimeout(q),q=setTimeout(()=>{q=null,l.invalidateQueries({queryKey:W.liveMeta(a.slug,t,e)})},1e3);return}}}catch{}};function ee(){if(N)return;const R=new EventSource(v);K=R,R.onopen=()=>{},R.onerror=()=>{K===R&&R.readyState===EventSource.CLOSED&&le("studio")},R.addEventListener("phase",Le),R.addEventListener("gone",ne),R.addEventListener(xe,re);for(const O of ge)R.addEventListener(O,ae)}function oe(){if(N||!_||z)return;const R=new EventSource(_);z=R;let O=!1;R.onopen=()=>{if(N||z!==R)return;O=!0,$=0;const I=K;K=null,I?.close()},R.onerror=()=>{z===R&&R.readyState===EventSource.CLOSED&&Be(R,O)},R.addEventListener(xe,re);for(const I of ge)R.addEventListener(I,ae)}async function Be(R,O){const I=_?await rs(_):!1;if(!(N||z!==R)){if(R.close(),z=null,I){ne(),K||ee();return}O&&le("direct")}}function le(R){if(N||Y)return;const O=Dt(es,Zt,$,2,0);$++,Y=setTimeout(()=>{if(Y=null,!N){if(R==="direct"){z?.close(),z=null,oe();return}K?.close(),K=null,ee()}},O)}return ee(),()=>{N=!0,K?.close(),z?.close(),Y&&clearTimeout(Y),q&&clearTimeout(q),G&&clearTimeout(G)}},[t,e,a.slug,a.id,o,i,_,l,p]);const h={phase:c,lifecycle:d,status:m,branch:j,notFound:x,scripts:C,activeProcesses:P,getBuffer:v=>T.current.get(v)?.get()??"",hasData:v=>(T.current.get(v)?.get().length??0)>0,subscribeChunks:v=>(M.current.add(v),()=>{M.current.delete(v)}),subscribeReload:v=>(B.current.add(v),()=>{B.current.delete(v)})};return n.jsx(Re,{value:h,children:s})}function _e(){return k.use(Re)}function Ls(t){const{subscribeChunks:e}=_e(),r=k.useRef(t);r.current=t,k.useEffect(()=>e((a,l)=>{r.current?.(a,l)}),[e])}function Bs(t){const{subscribeReload:e}=_e(),r=k.useRef(t);r.current=t,k.useEffect(()=>e(()=>{r.current?.()}),[e])}export{Rs as C,_s as S,Ls as a,Bs as b,_e as u,Ds as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as q,b as Y,r as S,j as r,l as Z,D as ee,q as te,v as re,I as se,s as le}from"./index-bl_DQ3mH.js";import{a as X,e as J}from"./UserSquare-BXjBRbTF.js";import{d as oe}from"./agent-icon-BdZdLCky.js";import{i as ie}from"./SearchMd-DnZ_sK_U.js";import{u as K}from"./use-new-blocks-editor-D9sV9o2T.js";import{ae as ne,o as ce,aQ as ae,G as fe,u as de}from"./claim-phase-copy-gKkPnPW4.js";import{d as V,r as ue}from"./section-preview-url-7zfngvgW.js";import{a as me}from"./input-B6YAOx07.js";const ve=12,D=new Set,_=new Set;function pe(){for(const s of _)s()}function xe(s){return D.has(s)?!0:D.size>=ve?!1:(D.add(s),!0)}function Q(s){D.delete(s)&&pe()}function he(s){return _.add(s),()=>{_.delete(s)}}function we(s,e){const t=S.useRef(!1),[m,i]=S.useState(!1),l=S.useRef(null),c=S.useRef(null),u=S.useRef(null),o=S.useRef(s);o.current=s;const[d]=S.useState(()=>{const a=()=>{u.current?.(),u.current=null},f=()=>t.current?!0:xe(e)?(t.current=!0,i(!0),a(),!0):!1;return n=>{if(c.current=n,l.current&&(l.current.disconnect(),l.current=null),a(),!n){t.current&&(Q(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(c.current!==n)return;const w=new IntersectionObserver(v=>{if(v[0]?.isIntersecting??!1){!f()&&!u.current&&(u.current=he(()=>{c.current===n&&f()}));return}a(),t.current&&(Q(e),t.current=!1,i(!1))},{root:o.current.current,rootMargin:"160px 0px"});w.observe(n),l.current=w})}});return{ref:d,iframeActive:m}}function ge(s){const e=q.c(9),{previewUrl:t,title:m,scrollRootRef:i,slotId:l}=s,{ref:c,iframeActive:u}=we(i,l),[o,d]=S.useState(!1),a=K()?J:X;let f;e[0]!==a||e[1]!==u||e[2]!==o||e[3]!==t||e[4]!==m?(f=u?r.jsxs(r.Fragment,{children:[!o&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:r.jsx(a,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),r.jsx("iframe",{src:t,title:`Preview ${m}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>d(!0)})]}):r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(a,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=a,e[1]=u,e[2]=o,e[3]=t,e[4]=m,e[5]=f):f=e[5];let n;return e[6]!==c||e[7]!==f?(n=r.jsx("div",{ref:c,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:f}),e[6]=c,e[7]=f,e[8]=n):n=e[8],n}function Se(s){const e=q.c(27),{entry:t,previewUrl:m,scrollRootRef:i,onSelect:l}=s,u=K()?t.isSavedBlock?oe:J:X,o=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let d;e[0]!==o?(d=Z("group flex flex-col overflow-hidden rounded-[var(--studio-surface-radius,var(--radius-lg))] border bg-card text-left transition-colors card-shadow","hover:border-primary/40 hover:bg-accent/30",o),e[0]=o,e[1]=d):d=e[1];let a;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==m||e[5]!==i?(a=r.jsx(ge,{previewUrl:m,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=m,e[5]=i,e[6]=a):a=e[6];let f;e[7]!==t.isSavedBlock?(f=t.isSavedBlock?{color:fe}:void 0,e[7]=t.isSavedBlock,e[8]=f):f=e[8];let n;e[9]!==u||e[10]!==f?(n=r.jsx(u,{className:"h-4 w-4 shrink-0",style:f}),e[9]=u,e[10]=f,e[11]=n):n=e[11];let w;e[12]!==t.title?(w=r.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[12]=t.title,e[13]=w):w=e[13];let v;e[14]!==t.description?(v=t.description&&r.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[14]=t.description,e[15]=v):v=e[15];let p;e[16]!==w||e[17]!==v?(p=r.jsxs("div",{className:"min-w-0 flex-1",children:[w,v]}),e[16]=w,e[17]=v,e[18]=p):p=e[18];let h;e[19]!==n||e[20]!==p?(h=r.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,p]}),e[19]=n,e[20]=p,e[21]=h):h=e[21];let g;return e[22]!==l||e[23]!==d||e[24]!==a||e[25]!==h?(g=r.jsxs("button",{type:"button",onClick:l,className:d,children:[a,h]}),e[22]=l,e[23]=d,e[24]=a,e[25]=h,e[26]=g):g=e[26],g}function Te(s){const e=q.c(51),{open:t,onOpenChange:m,meta:i,decofile:l,previewBaseUrl:c,onSelect:u}=s,o=Y(),[d,a]=S.useState(""),[f,n]=S.useState(t),w=S.useRef(null);t!==f&&(n(t),t&&a(""));let v,p,h,g,j,N,R,y,b,P,C;if(e[0]!==l||e[1]!==i||e[2]!==m||e[3]!==u||e[4]!==t||e[5]!==c||e[6]!==d||e[7]!==o){const z=t&&i&&l?ne(i,l):[],W=i?ce(i):"",F=l?ae(l):void 0,G=new Map;if(t&&W)for(const x of z)G.set(x.resolveType,V(c,W,x.previewBlock,F));const M=d.trim().toLowerCase(),H=M?z.filter(x=>x.title.toLowerCase().includes(M)||x.resolveType.toLowerCase().includes(M)||x.description?.toLowerCase().includes(M)):z;p=ee,P=t,C=m,v=te,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let B;e[19]!==o?(B=o("sectionsEditor.addSectionModal.title"),e[19]=o,e[20]=B):B=e[20];let L;e[21]!==B?(L=r.jsx(re,{children:B}),e[21]=B,e[22]=L):L=e[22];let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=r.jsx(ie,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=O):O=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=x=>a(x.target.value),e[24]=$):$=e[24];let k;e[25]!==o?(k=o("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=o,e[26]=k):k=e[26];let A;e[27]!==d||e[28]!==k?(A=r.jsxs("div",{className:"relative pt-2",children:[O,r.jsx(se,{value:d,onChange:$,placeholder:k,className:"h-9 pl-8"})]}),e[27]=d,e[28]=k,e[29]=A):A=e[29],e[30]!==L||e[31]!==A?(b=r.jsxs(le,{className:"shrink-0 border-b px-4 py-3 text-left",children:[L,A]}),e[30]=L,e[31]=A,e[32]=b):b=e[32],j=w,N="min-h-0 flex-1 overflow-y-auto",h="p-4",g=H.length===0?r.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:o("sectionsEditor.addSectionModal.noSectionsFound")}):r.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:H.map(x=>r.jsx(Se,{entry:x,scrollRootRef:w,previewUrl:G.get(x.resolveType)??V(c,W,x.previewBlock,F),onSelect:()=>u(x)},x.resolveType))}),e[0]=l,e[1]=i,e[2]=m,e[3]=u,e[4]=t,e[5]=c,e[6]=d,e[7]=o,e[8]=v,e[9]=p,e[10]=h,e[11]=g,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=b,e[17]=P,e[18]=C}else v=e[8],p=e[9],h=e[10],g=e[11],j=e[12],N=e[13],R=e[14],y=e[15],b=e[16],P=e[17],C=e[18];let I;e[33]!==h||e[34]!==g?(I=r.jsx("div",{className:h,children:g}),e[33]=h,e[34]=g,e[35]=I):I=e[35];let T;e[36]!==I||e[37]!==j||e[38]!==N?(T=r.jsx("div",{ref:j,className:N,children:I}),e[36]=I,e[37]=j,e[38]=N,e[39]=T):T=e[39];let U;e[40]!==v||e[41]!==T||e[42]!==R||e[43]!==y||e[44]!==b?(U=r.jsxs(v,{closeButtonClassName:R,className:y,children:[b,T]}),e[40]=v,e[41]=T,e[42]=R,e[43]=y,e[44]=b,e[45]=U):U=e[45];let E;return e[46]!==p||e[47]!==U||e[48]!==P||e[49]!==C?(E=r.jsx(p,{open:P,onOpenChange:C,children:U}),e[46]=p,e[47]=U,e[48]=P,e[49]=C,e[50]=E):E=e[50],E}function Ue(s){const e=q.c(4),{previewServerUrl:t,runtime:m}=me(s.virtualMcpId),{url:i}=de(s.virtualMcpId),l=m==="cms";if(i)return i;let c;return e[0]!==l||e[1]!==s.sandboxUrl||e[2]!==t?(c=ue({sandboxUrl:s.sandboxUrl,previewServerUrl:t,fastPreviewActive:l}),e[0]=l,e[1]=s.sandboxUrl,e[2]=t,e[3]=c):c=e[3],c}export{Te as A,Ue as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a2 as o,aa as i,r as c,R as d,K as m}from"./index-bl_DQ3mH.js";import{a as T}from"./thread-intent-CG-CCDLs.js";function h(a){const{org:r}=o(),s=i(),n=T(),u=c.useSyncExternalStore(n.threads.subscribe,n.threads.get),t=a===null?null:u.find(e=>e.id===a)??null,{data:l}=d({queryKey:m.ensureTask(r.id,a),queryFn:async()=>{if(a===null)return null;try{const{item:e}=await s.call("COLLECTION_THREADS_GET",{id:a});return e??null}catch{return null}},initialData:t&&!t.partial?t:void 0,select:e=>e?.metadata??null,staleTime:3e4});return t?.metadata??l??null}export{h as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c,a2 as i,m as l,K as p}from"./index-bl_DQ3mH.js";import{e as m}from"./chat-context-DszOftwV.js";async function f(e,s){const t=await fetch(`/api/${s}/threads/${encodeURIComponent(e)}/outputs`,{credentials:"include"});if(!t.ok)throw new Error(`Failed to fetch thread outputs: ${t.status}`);return(await t.json()).objects??[]}function $(){const e=c.c(2),s=m()?.messages??[];let t;return e[0]!==s?(t=s.some(y),e[0]=s,e[1]=t):t=e[1],t}function y(e){return e.parts?.some(b)}function b(e){const s=e;return(s.type==="tool-bash"||s.type==="tool-write")&&s.state==="output-available"}function g(e,s){const t=c.c(9),{org:u}=i();let o;t[0]!==e?(o=p.threadOutputs(e??""),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==u||t[3]!==e?(n=()=>f(e??"",u.slug),t[2]=u,t[3]=e,t[4]=n):n=t[4];const r=!!e&&(s?.enabled??!0);let a;return t[5]!==o||t[6]!==n||t[7]!==r?(a={queryKey:o,queryFn:n,enabled:r,staleTime:0},t[5]=o,t[6]=n,t[7]=r,t[8]=a):a=t[8],l(a)}export{g as a,$ as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as n}from"./infiniteQueryObserver-rUCOtzeA.js";import{dn as u}from"./index-bl_DQ3mH.js";function t(e,r){return u(e,n,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as n}from"./infiniteQueryObserver-rUCOtzeA.js";import{dn as s,dC as u}from"./index-bl_DQ3mH.js";function a(r,e){return s({...r,enabled:!0,suspense:!0,throwOnError:u},n,e)}export{a as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as K,b as X,r as Z,j as i,l as rt,B as tt,at as ut}from"./index-bl_DQ3mH.js";import{C as ht,a0 as at,F as xt}from"./agent-icon-BdZdLCky.js";import{L as gt}from"./label-Bqj_xjz9.js";import{S as lt}from"./scroll-area-1S72VGW0.js";import{S as bt}from"./switch-CUK4V52q.js";import{T as vt,b as yt,a as jt}from"./tooltip-COqLwkid.js";import{V as Tt}from"./view-mode-toggle-B55pxnK_.js";import{ay as ct,az as mt,aA as Nt,aB as _t,aC as kt,aD as U,aE as wt}from"./agent-site-editor-content-CbMNndHb.js";import"./AlertCircle-BILwGqjV.js";import"./Tool01-BSpg9N8Q.js";import"./ArrowUp-CFc2wNu3.js";import"./ArrowLeft-DlRqrbst.js";import"./LinkBroken01-BBYM52IU.js";import"./ShoppingBag01-Brrt7Bh6.js";import"./ZoomOut-Bnst3wtU.js";import"./Building02-QB_UI3sB.js";import"./CheckCircle-CG1RvCMD.js";import"./ChevronUp-BrMcnDd0.js";import"./ChevronSelectorVertical-23OZgHQl.js";import"./UserSquare-BXjBRbTF.js";import"./Copy01-QpufVNbj.js";import"./CreditCard01-W1zS1W7o.js";import"./DotsVertical-E-CAHxZx.js";import"./Image01-D8Dg78Ju.js";import"./Globe04-C2IFbCwJ.js";import"./SwitchHorizontal01-B5sfCWHV.js";import"./Key01-CCpcNn9J.js";import"./Link01-Dw-VkUVV.js";import"./Monitor01-596xyLh3.js";import"./Sun-BmhcFIJl.js";import"./Play-CIe1tupB.js";import"./Plus-DTyq8wfJ.js";import"./SearchMd-DnZ_sK_U.js";import"./Trash01-uPItCfKQ.js";import"./Upload01-ClSeM0gf.js";import"./User01-DabbLHAZ.js";import"./Users01-Dt36FENA.js";import"./XClose-BMDlg-34.js";import"./index-BdQq_4o_.js";import"./index-B5IA1qMq.js";import"./agent-view-guard-CShYlKBB.js";import"./use-main-panel-tabs-O3Jy3Qh8.js";import"./use-chat-layout-state-CVkPEEUs.js";import"./use-file-configs-BSnoYr1R.js";import"./use-organization-settings-BOGRgJjV.js";import"./schema-kVE-1hbs.js";import"./task-board-kbcRVMI1.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-BTsmo_dA.js";import"./use-mcp-client-DuTNn1dc.js";import"./auth-CTn9OsYL.js";import"./thread-route-CR0TIP8s.js";import"./use-panel-navigate-c5H4a21L.js";import"./use-project-scope-A4YCdR4N.js";import"./thread-intent-CG-CCDLs.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-B66Eygyb.js";import"./slugify-CEUa2lfQ.js";import"./use-connection-gMb_8zEe.js";import"./use-mcp-tools-CA6Ri5UK.js";import"./types-C5SQt0XZ.js";import"./utils-CVEq3hMx.js";import"./use-sandbox-events-hhwp2IWJ.js";import"./chat-context-DszOftwV.js";import"./autosend-Cr5TlS-x.js";import"./use-decopilot-events-D8zpT0sX.js";import"./use-ai-providers-IjG3zzka.js";import"./use-chat-navigation-DLnmXNT9.js";import"./location-BjlyegC2.js";import"./tool-namespace-uRsPbj-p.js";import"./drawer-UzGeZrmC.js";import"./collection-search-q0ogFMFh.js";import"./use-mobile-Di3PCVWm.js";import"./use-mcp-prompts-3vLSpQqZ.js";import"./usage-stats-CAukzrpg.js";import"./form-D6DHFxsw.js";import"./markdown-5DzLzA6E.js";import"./use-copy-2j0k06rN.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./input-B6YAOx07.js";import"./icon-button-d9uOvdxM.js";import"./file-type-icon-C-_1hLql.js";import"./shell-layout-Bk6uPKMe.js";import"./avatar-DNs314ny.js";import"./use-clock-tick-zaL95TTy.js";import"./command-DFd1c5Z5.js";import"./index-Dhdyv2s0.js";import"./integration-icon-DogZfPWq.js";import"./project-icon-DsUbDdQC.js";import"./new-project-dialog-C5lJfUJ3.js";import"./repository-import-picker-D5xDiyD_.js";import"./use-navigate-to-agent-Cu9cZhs8.js";import"./repository-picker-DExxlkis.js";import"./useInfiniteQuery-DeMEFTdd.js";import"./infiniteQueryObserver-rUCOtzeA.js";import"./use-debounced-value-Dju-tMu1.js";import"./required-auth-layout-Dzef4Ao1.js";import"./use-org-sso-B57pfGVG.js";import"./chat-draft-Bi-CpEK_.js";import"./select-WviNHwZD.js";import"./tabs-BXhvcQgN.js";import"./use-deco-credits-BtvhFk4m.js";import"./toggle-group-Q9SREgL7.js";import"./use-open-billing-url-sjDwQSEM.js";import"./index-DCmQGiOV.js";import"./checkbox-jukyyas4.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-MLSOZysn.js";import"./input-C1msyAUz.js";import"./suggestion-C591DFAx.js";import"./use-org-fs-DOu4nQSr.js";import"./question-004-sINsf4GQ.js";import"./use-members-BqWTpMNp.js";import"./use-org-auth-client-DIUzAE5u.js";import"./feature-paywall-nTUHasXJ.js";import"./plan-ladder-gwROOTzi.js";import"./add-connection-dialog-BB_zBu7s.js";import"./extract-connection-data-CJhjAx3s.js";import"./metadata-D72DunRR.js";import"./connection-DSkv8Cg1.js";import"./url-slug-CUhgOgGc.js";import"./connection-card-C7Yq5GHs.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DvoMwt1e.js";import"./schema-BKM3gR2B.js";import"./connection-form-helpers-BsU6F-s_.js";import"./authenticate-and-persist-oauth-bcqFV5Ih.js";import"./mcp-oauth-D_oaXY6E.js";import"./mcp-oauth-tCidCN-u.js";import"./collection-tabs-CYgVG041.js";import"./badge-BDMYkxf_.js";import"./use-infinite-scroll-CtScOz_h.js";import"./useSuspenseInfiniteQuery-CUkGf5w6.js";import"./use-task-board-events-BBlz-cBe.js";import"./pair-DjM6V7aG.js";import"./collapsible-CSMgVqT4.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DuGbCe-D.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./sheet-CZiDNUQZ.js";import"./use-thread-outputs-c6b1HaAz.js";import"./sandbox-url-D3mC8qhT.js";import"./resolve-tab-icon-DqCiaIA7.js";import"./use-task-metadata-CBQ5Muu5.js";import"./virtual-mcp-DFjD0qBz.js";import"./feature-gate-D5KGpIQ3.js";import"./alert-dialog-By0HRTrM.js";import"./runnable-block-editor-fWbFWGvz.js";import"./claim-phase-copy-gKkPnPW4.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./utils-DHYRJNUn.js";import"./monaco-editor-2Ci5R71u.js";import"./editor-KeKsFC14.js";import"./calendar-9HE_r4Hw.js";import"./use-new-blocks-editor-D9sV9o2T.js";import"./rich-text-link-control-CNQ92nZ4.js";import"./core.esm-lZvNzlYc.js";import"./sortable.esm-h3AYG-u7.js";import"./combobox-BTfHieW4.js";import"./search-input-pTAwOtCG.js";import"./asset-utils-Cne_zeGQ.js";import"./sandbox-git-api-C7JbVL7R.js";import"./mustache-B7TZyK91.js";import"./sandbox-lifecycle-context-C25F7mSK.js";import"./empty-state-DdJZ_leg.js";import"./empty-state-CvDYWxOG.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Lt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Rt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,o=typeof t=="string",s=typeof r=="string";if(!o&&!s)return null;const n=o?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(n.getTime())||Number.isNaN(a.getTime())||o&&s&&a.getTime()<=n.getTime()?null:{start:n,end:a,openStart:!o,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const o=Rt(e);o&&t.push(o);return}if(St.has(r)){const o=e.matchers;if(Array.isArray(o))for(const s of o)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Ot(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,n=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of n)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Pt(e){const t=[];for(let r=0;r<e.length;r++){const o=e[r];typeof o=="number"?t.length>0?t[t.length-1]+=`[${o}]`:t.push(`[${o}]`):t.push(o)}return t.join(" · ")}function Q(e,t,r,o,s){if(Dt(e)){const n=e.variants,a=e.__resolveType,c=$t.test(a)?"":Pt(o);n.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Ot(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<n.length;l++){const m=n[l];m&&typeof m=="object"&&Q(m.value,t,r,[...o,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let n=0;n<e.length;n++)Q(e[n],t,r,[...o,n],s);return}if(e&&typeof e=="object")for(const[n,a]of Object.entries(e))n!=="__resolveType"&&Q(a,t,r,[...o,n],s)}function It(e){if(!e)return[];const t=[];for(const[r,o]of Object.entries(e))Q(o,r,Lt(r),[],t);return t.sort((r,o)=>r.start.getTime()-o.start.getTime())}function Vt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((o,s)=>{const n=s*137.508%360;r.set(o,{bg:`oklch(0.62 0.14 ${n})`,text:"white",border:`oklch(0.50 0.14 ${n})`})}),r}const Bt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Bt}const ot=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ht(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):ot.format(e.start),o=e.openEnd?t("sandbox.variantCalendar.ongoing"):ot.format(e.end);return`${r} → ${o}`}function Ft(e){const t=K.c(18),{variant:r}=e,o=X();let s;t[0]!==r.blockLabel?(s=i.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let n;t[2]!==r.innerPath?(n=r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=n):n=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&i.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==o||t[9]!==r?(c=Ht(r,o),t[8]=o,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=i.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==n||t[15]!==a||t[16]!==l?(m=i.jsx(jt,{children:i.jsxs("div",{className:"text-xs",children:[s,n,a,l]})}),t[13]=s,t[14]=n,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const it=16;function zt(e,t){const r=e?"transparent":"#000 0",o=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${it}px, #000 calc(100% - ${it}px), ${o})`}function ft(e){const t=K.c(26),{variant:r,color:o,style:s,children:n,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==o.bg||t[10]!==o.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:o.bg,color:o.text,borderRadius:4,...f,...g,...u,...s},t[9]=o.bg,t[10]=o.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==n?(b=i.jsx("span",{className:"truncate",children:n}),t[16]=n,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=i.jsx(vt,{asChild:!0,children:i.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=i.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=i.jsxs(yt,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function pi(e){const t=K.c(72),{decofile:r}=e,o=X(),[s,n]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const I=It(r);p=I.filter(Ut).length,f=l?I:I.filter(Gt),h=Vt(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(I=>s==="calendar"?U(I,-1):U(I,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(I=>s==="calendar"?U(I,1):U(I,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==o?(v=o("sandbox.variantCalendar.today"),t[10]=o,t[11]=v):v=t[11];let y;t[12]!==v?(y=i.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==o?(N=o("sandbox.variantCalendar.previous"),t[14]=o,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(ht,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==o?(k=o("sandbox.variantCalendar.next"),t[20]=o,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(ut,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=i.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const L=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==L||t[29]!==M?(w=i.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[L," ",M]}),t[28]=L,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=i.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let R;t[36]!==p||t[37]!==l||t[38]!==o?(R=p>0&&i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(bt,{id:"show-ongoing",checked:l,onCheckedChange:m}),i.jsx(gt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:o("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=o,t[39]=R):R=t[39];let H;t[40]===Symbol.for("react.memo_cache_sentinel")?(H=i.jsx(at,{}),t[40]=H):H=t[40];let V;t[41]!==o?(V=o("sandbox.variantCalendar.calendarMode"),t[41]=o,t[42]=V):V=t[42];let S;t[43]!==V?(S={value:"calendar",icon:H,label:V},t[43]=V,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=i.jsx(xt,{}),t[45]=F):F=t[45];let D;t[46]!==o?(D=o("sandbox.variantCalendar.timelineMode"),t[46]=o,t[47]=D):D=t[47];let O;t[48]!==D?(O={value:"timeline",icon:F,label:D},t[48]=D,t[49]=O):O=t[49];let P;t[50]!==S||t[51]!==O?(P=[S,O],t[50]=S,t[51]=O,t[52]=P):P=t[52];let B;t[53]!==P||t[54]!==s?(B=i.jsx(Tt,{value:s,onValueChange:n,options:P}),t[53]=P,t[54]=s,t[55]=B):B=t[55];let z;t[56]!==R||t[57]!==B?(z=i.jsxs("div",{className:"flex items-center gap-4",children:[R,B]}),t[56]=R,t[57]=B,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=i.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?i.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?i.jsx(Jt,{monthStart:a,variants:f,colorMap:g}):i.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let q;return t[69]!==W||t[70]!==G?(q=i.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=q):q=t[71],q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,o=r===void 0?0:r,s=X();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=n):n=t[0];let a;return t[1]!==o||t[2]!==s?(a=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[n,o>0?i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:o})})]}):i.jsxs(i.Fragment,{children:[i.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),i.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=o,t[2]=s,t[3]=a):a=t[3],a}const et=20,nt=2,st=28,qt=6;function Jt(e){const t=K.c(17),{monthStart:r,variants:o,colorMap:s}=e;let n,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==o){const f=Nt(r),g=_t(new Date);n=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,o),E=b.reduce(Qt,0),T=st+E*(et+nt)+8;return i.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return i.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:i.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+nt),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return i.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&i.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=o,t[3]=n,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else n=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=i.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==n||t[14]!==m||t[15]!==p?(h=i.jsx(n,{className:m,children:p}),t[13]=n,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Qt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return i.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const J=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:o,colorMap:s}=e,n=r,a=U(r,J),c=new Date,l=new Map;for(const w of o){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(oe),p=a.getTime()-n.getTime(),h=w=>(Math.max(n.getTime(),Math.min(a.getTime(),w.getTime()))-n.getTime())/p*100;let f;t[0]!==n?(f=(w,j)=>U(n,j),t[0]=n,t[1]=f):f=t[1];const g=Array.from({length:J},f),u=c.getTime()>=n.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=i.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=i.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=i.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&i.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:i.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,R]=w,H=dt(s,j),V=R[0]?.blockLabel??j;return i.jsxs("div",{children:[i.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:i.jsx("div",{className:"px-3 truncate",style:{width:Y},children:V})}),R.map((S,F)=>i.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[i.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[i.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:H.bg}}),i.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),i.jsxs("div",{className:"relative flex-1 h-full",children:[i.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${J}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),n.getTime()),O=Math.min(S.end.getTime(),a.getTime());if(O<=D)return null;const P=h(new Date(D)),B=h(new Date(O))-P;return i.jsx(ft,{variant:S,color:H,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${P}%`,width:`calc(${B}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let L;t[16]!==k||t[17]!==C||t[18]!==$?(L=i.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=L):L=t[19];let M;return t[20]!==b||t[21]!==L?(M=i.jsx(b,{className:E,children:L}),t[20]=b,t[21]=L,t[22]=M):M=t[22],M}function ee(e,t){return i.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return i.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function oe(e,t){return e[0].localeCompare(t[0])}export{pi as VariantCalendar};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ak as f,ai as $}from"./claim-phase-copy-gKkPnPW4.js";const v="x-deco-matchers-override";function h({pageKey:n,prefix:r,variants:t,selectedIndex:a,decofile:e,meta:s}){if(!n||a<0||a>=t.length)return[];const o=[];for(let i=0;i<=a;i++){const u=t[i];if(!u)continue;const c=u.rule,l=i===a?"1":"0",d=(f(c,e,s)?$(c,e,s):null)??`${n}@${r}.${i}.rule`;o.push(`${d}=${l}`)}return o}function P(n,r,t,a){return!r.multivariate||r.variants.length<=1?[]:h({pageKey:n,prefix:"sections.variants",variants:r.variants,selectedIndex:r.index,decofile:t,meta:a})}function x({pageKey:n,page:r,sectionIndex:t,sectionLazy:a,mvObj:e,selectedVariantIndex:s,decofile:o,meta:i}){if(t<0)return[];const c=`${r.multivariate?`sections.variants.${r.index}.value`:"sections"}.${t}${a?".section":""}.variants`,l=Array.isArray(e.variants)?e.variants:[];return h({pageKey:n,prefix:c,variants:l,selectedIndex:s,decofile:o,meta:i})}function B(n,r){const t=`${r}@`;return n.map(a=>a.startsWith(t)?`props.${a.slice(t.length)}`:a)}function k(n,r){if(r.length===0)return n;try{const t=new URL(n,"http://local");t.searchParams.delete(v);for(const a of r)t.searchParams.append(v,a);return n.startsWith("http")?t.toString():`${t.pathname}${t.search}${t.hash}`}catch{return n}}export{x as a,P as b,B as i,k as w};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as I}from"./url-slug-CUhgOgGc.js";import{aD as t,aE as e,aW as l,bU as a,bS as s,bT as o,c$ as c,cX as d,eo as A,d1 as R,cV as g}from"./index-bl_DQ3mH.js";const w=t({connection_id:e().describe("Connection ID"),selected_tools:a(e()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:a(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:a(e()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),b=500,v=200,k=200,_=20,U=50,E=100,P=20,T=100,C=300,N=100,V=8192,y=w.extend({selected_tools:a(e()).max(b).nullable().optional().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:a(e()).max(b).nullable().optional().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:a(e()).max(b).nullable().optional().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),D=t({connectionId:e(),toolName:e(),label:e(),icon:e().nullable().optional()}),O=t({id:e().describe("Stable id; used as React key and ?tab= value"),title:e().describe("Tab label"),icon:e().optional().describe("Optional lucide icon name"),view:t({type:c("ext-app"),appId:e(),args:d(e(),g()).optional()})}),S=o(["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"]),le=o(["on","off"]),L=new Map([["manual","on"],["auto","on"]]),X=o(["on","off","manual","auto"]);function F(n){if(!n)return null;const i=L.get(n);return i||(n==="on"||n==="off"?n:null)}const B=t({defaultMainView:t({type:e(),id:e().optional(),toolName:e().optional()}).nullable().optional(),chatDefaultOpen:s().nullable().optional(),cmsDefaultOpen:s().nullable().optional(),cms:X.nullable().optional().describe("How this agent offers content editing. Absent means on; the retired `manual` / `auto` read as on too."),sidebarViews:a(S).max(10).nullable().optional().describe("Deprecated layout-scoped sidebar selections. Read only as a fallback when metadata.sidebarViews is absent."),tabs:a(O).max(P).optional()});function re(n){return F(n?.cms)??"on"}function ce(n,i){const r=i==="off"&&n?.defaultMainView?.type==="content";return{...n,cms:i,cmsDefaultOpen:null,...r?{defaultMainView:{type:"site-editor"}}:{}}}const m=t({tileId:e().optional(),connectionId:e().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:e().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),toolName:e().optional().describe("Tool name — identifies which tool's inputSchema to display when editing tile props."),toolInput:d(e(),g()).optional().describe("User-configured input props passed to MCPAppRenderer when rendering the tile."),minHeight:l().int().positive().optional(),maxHeight:l().int().positive().optional()}),H=t({banner:e().nullable().optional(),bannerColor:e().nullable().optional(),icon:e().nullable().optional(),themeColor:e().nullable().optional(),pinnedViews:a(D).max(E).nullable().optional(),layout:B.nullable().optional(),homeTile:m.nullable().optional(),homeTiles:a(m).max(_).nullable().optional(),homePrompts:a(e()).max(U).nullable().optional()}),j=/^[A-Za-z_][A-Za-z0-9_]*$/,f=e().min(1).regex(j,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),z=R("kind",[t({key:f,kind:c("literal"),value:e().max(V)}),t({key:f,kind:c("secret"),secretId:e().min(1)})]),q=t({selected:e().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:e().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:e().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:a(z).max(N).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that Studio resolves via the credential vault before posting /_sandbox/config.")}),K=t({url:e().describe("Repository URL, including its provider host"),owner:e().describe("Repository owner"),name:e().describe("Repository name"),installationId:l().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:e().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials."),repositoryId:e().optional().describe("First-class repository (REPOSITORY_LINK) backing this binding. When set, credentials come from the repository's git provider account rather than connectionId.")}),G=o(["agent-sandbox","local-api"]),W={sandboxHandle:e().describe("Provider-specific handle"),previewUrl:e().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:e().nullable().optional().describe("Direct sandbox API URL for runtimes that expose one. Equal to previewUrl for local-api; null/absent for AgentSandbox, which routes control traffic through hosted Studio."),createdAt:l().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:t({packageManager:e().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:e().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:e().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},x=t(W);function de(n){if(!n||typeof n!="object"||Array.isArray(n))return{};const i=n,r={};for(const[p,u]of Object.entries(i))if(!(!u||typeof u!="object")&&!(p!=="agent-sandbox"&&p!=="local-api"))try{r[p]=x.parse(u)}catch{}return r}const Y=d(e().describe("userId"),d(e().describe("branch"),A(G,x))),Z=t({id:e().describe("Stable identifier for this knowledge file"),name:e().describe("File name shown in the UI"),kind:o(["file","skill"]).optional().describe("'file' (a single document) or 'skill' (a Claude Code skill folder containing SKILL.md). Defaults to 'file'."),volume:e().describe("Org filesystem (Library) volume the file lives in"),path:e().describe("Path within the volume"),url:e().describe("Same-origin URL to read the file (display/download)"),contentType:e().nullable().optional().describe("MIME type, used to decide whether to inline the content"),size:l().nullable().optional().describe("File size in bytes"),addedAt:e().describe("ISO timestamp when the file was attached")}),$=a(Z).max(T).nullable().optional().describe("Files attached to the agent as reference knowledge. Surfaced in the system prompt: small text documents are inlined, others are listed as retrievable references."),J=o(["smart","code-review","open"]),Q=J.nullable().optional().describe("Controls when this code agent's changes may be published directly vs. requiring PR review. 'smart' (default) uses AI to judge per change; 'code-review' requires review for any code; 'open' allows direct publish always."),ee=s().nullable().optional().describe("Enable Fast Preview (sandbox-less): render the draft instantly on the preview server's own page via a ?__draft pointer, with reads/writes served by the decofile API against GitHub. Requires previewServerUrl (or legacy productionUrl) to be set to take effect."),te=s().nullable().optional().describe("EXPERIMENTAL: with Fast Preview on, refresh content edits via an in-place /live/previews render (no commit, no reload) instead of a commit + re-navigation. Deco-runtime preview targets only. Requires fastPreview."),ae=e().nullable().optional().describe("Preview server URL — the deployment the CMS preview renders against (often the live site, e.g. https://acme.com). Painted in the preview iframe, and the render target for Fast Preview drafts. Supersedes the legacy productionUrl key."),ne=t({branch:e().describe("Git branch backing this release"),name:e().describe('User-facing name, e.g. "Black Friday 2026"'),color:e().describe("Dot color token shown in the version switcher"),createdBy:e().optional().describe("User ID who created the release"),createdAt:e().optional().describe("ISO 8601 creation timestamp")}),ie=a(ne).max(C).nullable().optional().describe("Curated list of named, branch-backed releases shown in the version switcher. The base branch ('No ar') is derived, not stored here."),h={instructions:e().nullable().optional().describe("Instructions also used as system prompt"),subAgents:a(e()).max(k).nullable().optional().describe("Allowlist of Virtual MCP (agent) or concrete MCP connection IDs this agent may delegate to via subtask. Concrete connections create ephemeral subagents. null/absent = all active org targets; empty array = itself only."),liveAgentId:e().nullable().optional().describe("ID of the live agent this (dev) agent develops. Set only on dev agents; powers the Develop/Live toggle. A dev agent is hidden from the sidebar (reached via the toggle on its live counterpart)."),ui:H.nullable().optional().describe("UI customization settings"),sidebarViews:a(S).max(10).nullable().optional().describe("Project views selected for the sidebar. Interpret as an exact list when sidebarViewsVersion is 1; unversioned values use legacy native-only semantics. Runtime presence gates still apply."),sidebarViewsVersion:c(1).optional().describe("Version 1 marks metadata.sidebarViews as an exact list that can disable legacy default rows."),repository:K.nullable().optional().describe("Linked repository"),runtime:q.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),knowledge:$,siteSlug:e().nullable().optional().describe("The project's site id (asset tenancy, CDN paths, site tokens). Set once when the site is created or imported; any write that would change it is refused."),publishPolicy:Q,previewServerUrl:ae,productionUrl:e().nullable().optional().describe("Legacy key for previewServerUrl — still read as a fallback. New writes use previewServerUrl."),fieldDescriptionTooltips:s().nullable().optional().describe("Blocks form: opt in to showing a field's schema description as a hover tooltip on its title, instead of the default inline text below the title."),fastPreview:ee,releases:ie,fastPreviewInPlace:te},pe=t({id:e().describe("Unique identifier"),title:e().describe("Human-readable name"),url_slug:e().nullable().optional().describe("Name of the project in Studio URLs, unique in the organization"),description:e().nullable().describe("Description"),icon:e().nullable().describe("Icon URL"),created_at:e().describe("Creation timestamp"),updated_at:e().describe("Last update timestamp"),created_by:e().describe("User ID who created this item"),updated_by:e().optional().describe("User ID who last updated this item"),organization_id:e().describe("Organization ID this item belongs to"),status:o(["active","inactive"]).describe("Current status"),pinned:s().describe("Whether this space is pinned to the sidebar"),metadata:t(h).extend({instructions:e().nullable().describe("Instructions also used as system prompt"),sandboxMap:Y.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:a(w).describe("Connections with their selected tools, resources, and prompts")}),M=t({title:e().min(1).max(120).describe("Short label shown on the chip"),description:e().max(280).optional().describe("One-line subtitle shown under the title"),text:e().min(1).max(4e3).describe("The message sent to the agent when the prompt is clicked")});t({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().max(500).nullable().optional().describe("Optional description"),icon:e().nullish().describe("Optional icon URL"),status:o(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:s().optional().default(!1).describe("Pin to sidebar"),metadata:t(h).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:a(y).max(v).describe("Connections to include/exclude (can be empty for exclusion mode)"),prompts:a(M).max(20).optional().describe("Optional kickstart prompts to seed on the agent. Each becomes a clickable conversation starter (icebreaker) on the agent. Author them from the agent's role and the tools it will have so they're coherent and immediately useful.")});t({title:e().min(1).max(255).optional().describe("New name"),url_slug:I.nullish().describe("New URL slug. The old one keeps redirecting. Renaming does not change it. null keeps the current slug."),description:e().max(500).nullable().optional().describe("New description (null to clear)"),icon:e().nullish().describe("New icon URL"),status:o(["active","inactive"]).optional().describe("New status"),pinned:s().optional().describe("Pin/unpin from sidebar"),metadata:t(h).loose().superRefine((n,i)=>{"sandboxMap"in n&&i.addIssue({code:"custom",path:["sandboxMap"],message:"sandboxMap is managed by the sandbox lifecycle"})}).nullable().optional().describe("Additional metadata including MCP server instructions"),connections:a(y).max(v).optional().describe("New connections (replaces existing)"),prompts:a(M).max(20).optional().describe("Replace the agent's kickstart prompts with this full set. Omit to leave them unchanged; pass an empty array to remove all. Each becomes a clickable conversation starter (icebreaker).")});export{le as C,j as E,C as R,pe as V,de as p,re as r,ce as w};
|