decocms 4.584.13 → 4.584.14
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/{AlertCircle-DA6gE5vw.js → AlertCircle-BckhzGo9.js} +1 -1
- package/dist/client/assets/{AreaChart-Y5-RpSOt.js → AreaChart-CH55n4Jv.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B8D7i2xh.js → ArrowLeft-DjFnycHz.js} +1 -1
- package/dist/client/assets/{ArrowRight-C1EmTlL-.js → ArrowRight-DdCk_HCk.js} +1 -1
- package/dist/client/assets/{ArrowUp-DyF0Rx2O.js → ArrowUp-jwPYnWqs.js} +1 -1
- package/dist/client/assets/{BookOpen01-UxGmri2e.js → BookOpen01-B2ISsdx6.js} +1 -1
- package/dist/client/assets/{CartesianChart-Dv3UTRbp.js → CartesianChart-2VySs-qY.js} +1 -1
- package/dist/client/assets/{CategoricalChart-oGRIPAq4.js → CategoricalChart-Di2gWvs8.js} +1 -1
- package/dist/client/assets/{CheckCircle-Bh1gNJET.js → CheckCircle-p76CoLTf.js} +1 -1
- package/dist/client/assets/{ChevronDown-uPv2ScPr.js → ChevronDown-Cf6eg1Aj.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CiFyE2Pu.js → ChevronSelectorVertical-ies3TLws.js} +1 -1
- package/dist/client/assets/{ChevronUp-BkmRXggG.js → ChevronUp-Yoxwp_-j.js} +1 -1
- package/dist/client/assets/{CreditCard01-C-H9qti1.js → CreditCard01-DOIepajb.js} +1 -1
- package/dist/client/assets/{Eye-DL5oRAI4.js → Eye-B-zZzOpR.js} +1 -1
- package/dist/client/assets/{File02-DEjt2PPW.js → File02-B4TAUApJ.js} +1 -1
- package/dist/client/assets/{Globe04-DD86hrsf.js → Globe04-C8iXbhsR.js} +1 -1
- package/dist/client/assets/{Image01-BCiDUkCm.js → Image01-BKS8Yp4v.js} +1 -1
- package/dist/client/assets/{Key01-CgRwsDr3.js → Key01-D3gaP9qK.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DHg_jNr0.js → LayoutLeft-C8ndIALE.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Ic71rSEU.js → LinkBroken01-WNn1RqQL.js} +1 -1
- package/dist/client/assets/{MessageCircle01-CQjeMfQj.js → MessageCircle01-dCZEdQhF.js} +1 -1
- package/dist/client/assets/{Minus-BM2zRSMr.js → Minus-BGxu6wTp.js} +1 -1
- package/dist/client/assets/{Monitor01-C4OHhcX6.js → Monitor01-CrmQoLWb.js} +1 -1
- package/dist/client/assets/{Play-l838EjWq.js → Play-B1JyKt5J.js} +1 -1
- package/dist/client/assets/{Plus-BzpqhVU8.js → Plus-nOMLt4Yk.js} +1 -1
- package/dist/client/assets/{ReferenceLine-DmbAcSH6.js → ReferenceLine-CVaZ4J9I.js} +1 -1
- package/dist/client/assets/{SearchMd-BhCfkG_O.js → SearchMd-BQl6TEDK.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-KIefHp9K.js → ShoppingBag01-DPoH0u5v.js} +1 -1
- package/dist/client/assets/{Sun-CoJn-J4w.js → Sun-CnYsG6YA.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BU8z7oT_.js → SwitchHorizontal01-DB7Iju_C.js} +1 -1
- package/dist/client/assets/{Tool01-ymE-fOFX.js → Tool01-CtY1k5Dx.js} +1 -1
- package/dist/client/assets/{Tooltip-D86_gjwu.js → Tooltip-JDvyEzxh.js} +1 -1
- package/dist/client/assets/{Trash01-aSl--BGd.js → Trash01-DLwaS_5I.js} +1 -1
- package/dist/client/assets/{TrendUp01-Cr4FP2fV.js → TrendUp01-DAuvMm77.js} +1 -1
- package/dist/client/assets/{Upload01-DozMUWEF.js → Upload01-D8Llo-n7.js} +1 -1
- package/dist/client/assets/{UserCheck01-3D5hYz4C.js → UserCheck01-lNPupOG8.js} +1 -1
- package/dist/client/assets/{UserSquare-aJjYmjOR.js → UserSquare-xrIyO385.js} +1 -1
- package/dist/client/assets/{Users01-Cximoi8v.js → Users01-B6_L_w2p.js} +1 -1
- package/dist/client/assets/{XClose-Dq0BGBMq.js → XClose-BAaBoHXT.js} +1 -1
- package/dist/client/assets/{Zap-NAfA60T9.js → Zap-DV5_FZrE.js} +1 -1
- package/dist/client/assets/{access-gate-Cnf06l1a.js → access-gate-DAmYKrNY.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-D1_0-J8t.js → add-connection-dialog-HNNoGhQz.js} +1 -1
- package/dist/client/assets/agent-app-BX9KTYM-.js +1 -0
- package/dist/client/assets/{agent-assets-DHnb5L5s.js → agent-assets-D4WFTVXs.js} +1 -1
- package/dist/client/assets/{agent-automation-DBCjX475.js → agent-automation-BCaX7ESM.js} +1 -1
- package/dist/client/assets/{agent-automations-BPqk0cma.js → agent-automations-Vz61YWWE.js} +1 -1
- package/dist/client/assets/{agent-blog-post-BPTTHi05.js → agent-blog-post-BnDW4dJQ.js} +2 -2
- package/dist/client/assets/{agent-blog-C6OhwET5.js → agent-blog-wICv4HuS.js} +2 -2
- package/dist/client/assets/{agent-calendar-n7d8kxeC.js → agent-calendar-DJdZ4heH.js} +1 -1
- package/dist/client/assets/{agent-capabilities-MDN7TVuK.js → agent-capabilities-BI0sCkjS.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-BLX7S3Bt.js → agent-connect-sources-CyXkEet9.js} +1 -1
- package/dist/client/assets/agent-deck-ChhTCxwX.js +1 -0
- package/dist/client/assets/{agent-e2e-C67cHNzK.js → agent-e2e-B5_at-Zi.js} +1 -1
- package/dist/client/assets/agent-experiments-D1svONd4.js +1 -0
- package/dist/client/assets/agent-file-CIWnVX_Q.js +1 -0
- package/dist/client/assets/{agent-hosting-DennpVxk.js → agent-hosting-NbmgDCYe.js} +1 -1
- package/dist/client/assets/{agent-icon-B9nZhdi2.js → agent-icon-Da3tHBMv.js} +1 -1
- package/dist/client/assets/agent-library-XqjyriLQ.js +1 -0
- package/dist/client/assets/agent-library-file-DUdXPex9.js +1 -0
- package/dist/client/assets/agent-overview-CSLeMcxj.js +1 -0
- package/dist/client/assets/{agent-releases-DaI8RCLw.js → agent-releases-Cy6FvVXN.js} +1 -1
- package/dist/client/assets/agent-settings-CIezqrTQ.js +1 -0
- package/dist/client/assets/{agent-site-editor-BH7NFZLQ.js → agent-site-editor-_uT5t8dC.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DQ2-qcrK.js +2 -0
- package/dist/client/assets/agent-site-editor-content-Bo52y6MP.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DWXAOs-I.js +1 -0
- package/dist/client/assets/agent-view-Cj0EamHG.js +1 -0
- package/dist/client/assets/{agent-view-guard-DEo6nzlH.js → agent-view-guard-DkakdmVe.js} +1 -1
- package/dist/client/assets/{ai-providers-x5-E0mng.js → ai-providers-CpM0GOBE.js} +1 -1
- package/dist/client/assets/{alert-N4205I9V.js → alert-2VptOQ03.js} +1 -1
- package/dist/client/assets/{analytics-sections-Bp_cD3eQ.js → analytics-sections-Dlo3vqkW.js} +1 -1
- package/dist/client/assets/api-keys-ClRjj7VM.js +1 -0
- package/dist/client/assets/{api-keys-F6uIkepe.js → api-keys-Da0Xjqef.js} +1 -1
- package/dist/client/assets/{app-editor-BPz6mU_a.js → app-editor-CFEr8Apb.js} +1 -1
- package/dist/client/assets/{asset-utils-Lxwn3jp5.js → asset-utils-hi9ZCK7M.js} +1 -1
- package/dist/client/assets/{auth-D0WiD-6X.js → auth-CNYHKCFg.js} +1 -1
- package/dist/client/assets/{auth-catchall-BtM_92ON.js → auth-catchall-hGRrksq6.js} +1 -1
- package/dist/client/assets/{auth-entry-DGg6_6PX.js → auth-entry-B65KEyLc.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BdlGf3S0.js → auth-split-layout-DEwglaQq.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CjsXQJBc.js → authenticate-and-persist-oauth-D450Ij-p.js} +1 -1
- package/dist/client/assets/{automation-list-row-Bh6TsYyw.js → automation-list-row-CpayrKzf.js} +1 -1
- package/dist/client/assets/{automation-runs-F5hXkFSl.js → automation-runs-DBCPwmkF.js} +1 -1
- package/dist/client/assets/{automations-x3uj3Ydy.js → automations-DXemr1t6.js} +1 -1
- package/dist/client/assets/{badge-BUkSpOXa.js → badge-loE1b0Vr.js} +1 -1
- package/dist/client/assets/{block-document-Bkfi8LNG.js → block-document-C_ucAxAi.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CwXYQcg5.js → blocks-preview-workspace-context-ByBcX_ix.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-_faw29v2.js → blocks-tab-states-DCjOLpkz.js} +1 -1
- package/dist/client/assets/{blog-preview-url-Bk8Ya8Ff.js → blog-preview-url-B7uV4oRW.js} +1 -1
- package/dist/client/assets/{blog-schema-D0iLRFhx.js → blog-schema-Cc_fWOEk.js} +1 -1
- package/dist/client/assets/{blog-source-gate-CHqmG0fU.js → blog-source-gate-BS-4HFBT.js} +1 -1
- package/dist/client/assets/{blog-view-gate-CBYiW3a_.js → blog-view-gate-D10ViiI0.js} +1 -1
- package/dist/client/assets/{buckets-PPqMjJPU.js → buckets-DsX--7i3.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CQr1jYEn.js → build-improve-prompt-doc-B-4SVpBS.js} +1 -1
- package/dist/client/assets/{calendar-ByOFe-ir.js → calendar-BI3J-A5m.js} +1 -1
- package/dist/client/assets/{capability-load-error-DCMluNzB.js → capability-load-error-qZIBtmfz.js} +1 -1
- package/dist/client/assets/{category-editor-FMFHmdJ9.js → category-editor-_jPyPfux.js} +1 -1
- package/dist/client/assets/{category-tree-DO91V9PE.js → category-tree-DY9bWdK8.js} +1 -1
- package/dist/client/assets/{chart-B0F_JJb6.js → chart-BvG6MEBA.js} +1 -1
- package/dist/client/assets/{chat-context-BhwgXdxZ.js → chat-context-Cdr2Tzco.js} +1 -1
- package/dist/client/assets/{chat-draft-CG09JkEF.js → chat-draft--xvDfEkY.js} +1 -1
- package/dist/client/assets/{checkbox-BwlyfOui.js → checkbox-ClBCJgC4.js} +1 -1
- package/dist/client/assets/{choose-editor-DMmUjki_.js → choose-editor-C-PjDARE.js} +1 -1
- package/dist/client/assets/{cli-auth-success-ChZ4KETS.js → cli-auth-success-DSyck-0K.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-CIzKeqbY.js → cms-settings-editor-CVlkde0D.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-C3WBV5HM.js → cms-store-drafts-Boyjd6L_.js} +1 -1
- package/dist/client/assets/{collapsible-BILoWprp.js → collapsible-6ftDlMsd.js} +1 -1
- package/dist/client/assets/{collection-detail-D6kEPWTW.js → collection-detail-C6p_EA7f.js} +1 -1
- package/dist/client/assets/{collection-display-button-BlEDYqVQ.js → collection-display-button-DtXUp3v-.js} +1 -1
- package/dist/client/assets/{collection-search-Dj3oO1qn.js → collection-search-CW9SJXAE.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-C8_o4YW1.js → collection-table-wrapper-C2ZHhgyo.js} +1 -1
- package/dist/client/assets/{collection-tabs-Wktk7Bil.js → collection-tabs-Y93FdN1l.js} +1 -1
- package/dist/client/assets/{combobox-7VjvZkXU.js → combobox-BQBhf9A-.js} +1 -1
- package/dist/client/assets/{command-BcxQrgUK.js → command-CtLQP1YS.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DQ1lC2cH.js → companion-mcps-section-DngRMXnd.js} +1 -1
- package/dist/client/assets/{config-Bn4oMb7y.js → config-CheVupom.js} +1 -1
- package/dist/client/assets/{connect-uQ-qw1JW.js → connect-DYg_2v9f.js} +1 -1
- package/dist/client/assets/{connect-key-BqwNSl8t.js → connect-key-CeYjF2jt.js} +1 -1
- package/dist/client/assets/{connect-layout-DqtlIJwT.js → connect-layout-BEGibWQF.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-HVNAw6m0.js → connect-source-dialog-BXFll5AK.js} +1 -1
- package/dist/client/assets/{connection-CELF9xGk.js → connection-BNwNEPn2.js} +1 -1
- package/dist/client/assets/{connection-card-DqAevMOq.js → connection-card-Bz0SPOqT.js} +1 -1
- package/dist/client/assets/{connection-detail-MGfXYK35.js → connection-detail-P17H-32n.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-egiEwtYz.js → connection-form-helpers-Bw7x5pKf.js} +1 -1
- package/dist/client/assets/{connection-slug-Dz7hwoVN.js → connection-slug-mPfdw4iI.js} +1 -1
- package/dist/client/assets/{connections-D2NvIFXC.js → connections-e83k0jvY.js} +1 -1
- package/dist/client/assets/{content-tab-BvT7P5lX.js → content-tab-DYv0CW9s.js} +3 -3
- package/dist/client/assets/{context-CggBlD0z.js → context-ByI47TZF.js} +1 -1
- package/dist/client/assets/{context-menu-CXequwNl.js → context-menu-BRek7vb6.js} +1 -1
- package/dist/client/assets/{context-shell-Bqoi0m2O.js → context-shell-j8EHULJB.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-BOcGysWt.js → create-organization-dialog-D1oYPgDd.js} +1 -1
- package/dist/client/assets/{daily-pulse-BA0ikU80.js → daily-pulse-eHpvhv3c.js} +1 -1
- package/dist/client/assets/{delete-copy-CzwVZl8P.js → delete-copy-Dxwk399F.js} +1 -1
- package/dist/client/assets/{device-hint-CUh7MxFw.js → device-hint-DwxBL2qp.js} +1 -1
- package/dist/client/assets/{discover-Bt0PjesU.js → discover-DBOXc7vr.js} +1 -1
- package/dist/client/assets/{domain-settings-BamU0icI.js → domain-settings-D00wzWwl.js} +1 -1
- package/dist/client/assets/{drawer-EGIO8vW1.js → drawer-CRP1WiCk.js} +1 -1
- package/dist/client/assets/{editor-B_YvqDEq.js → editor-Ca65jgGo.js} +1 -1
- package/dist/client/assets/{editor-classes-D2vt4K2z.js → editor-classes-DXmOOkk1.js} +1 -1
- package/dist/client/assets/{empty-message-BR97lu1R.js → empty-message-CFaFzCFq.js} +1 -1
- package/dist/client/assets/{empty-state-D--R_kh-.js → empty-state--JGqfPR-.js} +1 -1
- package/dist/client/assets/{empty-state-DxGz72GL.js → empty-state-BWFEJiAD.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-zR5-VX5L.js → experiments-tab-choice-CeoTUg2d.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DeUSUVIy.js → extract-connection-data-C26a1rUY.js} +1 -1
- package/dist/client/assets/{feature-gate-DK9IZjbG.js → feature-gate-BRL5qzLx.js} +1 -1
- package/dist/client/assets/{feature-paywall-BQdFbBKY.js → feature-paywall-DKi0OK9Z.js} +1 -1
- package/dist/client/assets/{file-explorer-6XHpEO9J.js → file-explorer-4BaytwST.js} +1 -1
- package/dist/client/assets/{file-preview-CXliAtvL.js → file-preview-CB_q0R1c.js} +1 -1
- package/dist/client/assets/{file-share-button-BUHoICkf.js → file-share-button-DdNZkOgu.js} +1 -1
- package/dist/client/assets/{file-type-icon-Bhy3vcyl.js → file-type-icon-BAAuwpOK.js} +1 -1
- package/dist/client/assets/{folder-icon-BD8Yju3a.js → folder-icon-DOLHwvxN.js} +1 -1
- package/dist/client/assets/{form-Cb5OHNc9.js → form-9ojGZv11.js} +1 -1
- package/dist/client/assets/{frame-navigation-D5yMy5Mm.js → frame-navigation-CmmgpT4V.js} +1 -1
- package/dist/client/assets/{gateway-client-t5s1Cm0x.js → gateway-client-BwxdQL6w.js} +1 -1
- package/dist/client/assets/{general-DfARJPaG.js → general-CpiioBfe.js} +1 -1
- package/dist/client/assets/{github-icon-BoZrKkV3.js → github-icon-Bx9ss8sA.js} +1 -1
- package/dist/client/assets/{held-block-view-Bm4hn8SE.js → held-block-view-CwXGGKH1.js} +1 -1
- package/dist/client/assets/{home-COKBWHzA.js → home-lb0YjJQy.js} +1 -1
- package/dist/client/assets/{home-overview-C0oKtq4c.js → home-overview-Dks5WIsU.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-mSp200Ck.js → hosted-reconcile-EHhmhhgb.js} +1 -1
- package/dist/client/assets/{icon-button-CpBLMSxk.js → icon-button-DhhoBQY7.js} +1 -1
- package/dist/client/assets/{index-KFEtz5HA.js → index-0mVsTo2D.js} +1 -1
- package/dist/client/assets/{index-DQWJotH-.js → index-BT86t2zN.js} +1 -1
- package/dist/client/assets/{index-Oc-4w-Ob.js → index-BUpEwBrv.js} +1 -1
- package/dist/client/assets/{index-A2_7RKep.js → index-B_eBHPlD.js} +1 -1
- package/dist/client/assets/{index-BED_VE7w.js → index-Bnc-AlIv.js} +1 -1
- package/dist/client/assets/{index-BQrnEOJ9.js → index-BxZDu5VS.js} +1 -1
- package/dist/client/assets/{index-0AidFUUh.js → index-ByI5JNyj.js} +1 -1
- package/dist/client/assets/{index-D1alBOdU.js → index-CQwlvIdC.js} +1 -1
- package/dist/client/assets/{index-BTT5sL01.js → index-Cb8rdIGe.js} +1 -1
- package/dist/client/assets/{index-BsAwgxIf.js → index-CnlrqsCd.js} +3 -3
- package/dist/client/assets/{index-DEh8AOfP.js → index-ComiCY0D.js} +1 -1
- package/dist/client/assets/{index-KBC7Pj7l.js → index-DEg1eCWz.js} +1 -1
- package/dist/client/assets/{index-Bi2fLJMb.js → index-DjQbsfzi.js} +1 -1
- package/dist/client/assets/{index-CM0d89Yv.js → index-K1m0OV2d.js} +1 -1
- package/dist/client/assets/{index-CGQejmXu.js → index-qb9TO-KL.js} +1 -1
- package/dist/client/assets/{index-redirect-DWwBvPoP.js → index-redirect-BuK2lj2s.js} +1 -1
- package/dist/client/assets/{index-CT5cpmuw.js → index-xBV0t4Yq.js} +1 -1
- package/dist/client/assets/{index-DKlpvKuq.js → index-xajFYiUY.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CnD94meO.js → infiniteQueryObserver-d6eMImhi.js} +1 -1
- package/dist/client/assets/{infra-billing-C7MnSX69.js → infra-billing-BVBJ_vl6.js} +1 -1
- package/dist/client/assets/{input--kphUWpn.js → input-BzVp3-J0.js} +1 -1
- package/dist/client/assets/{input-Cy8KNDYA.js → input-CzlhHu3g.js} +3 -3
- package/dist/client/assets/{integration-icon-DbiCbrD7.js → integration-icon-XdnHhG6r.js} +1 -1
- package/dist/client/assets/{item-actions-BR3Rk3pU.js → item-actions-Dbd1iigC.js} +1 -1
- package/dist/client/assets/{jira-icon-BJDzOHlp.js → jira-icon-jvATtbBe.js} +1 -1
- package/dist/client/assets/{label-D8u4gNcM.js → label-D9MCble5.js} +1 -1
- package/dist/client/assets/{layout-Djcel6JN.js → layout-Pxiy0xY8.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-C4yFyjEg.js → legacy-admin-welcome-dialog-5lUmP66o.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BhezYC1Y.js → legacy-agents-deep-CYriesvh.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-B2LMkN9B.js → legacy-main-redirect-CkeD71fA.js} +1 -1
- package/dist/client/assets/library-BiMH0bDk.js +1 -0
- package/dist/client/assets/{library-tab-B6AGBITt.js → library-tab-hSyLAga2.js} +1 -1
- package/dist/client/assets/{login-D-FcOLf-.js → login-CnrJpfTI.js} +1 -1
- package/dist/client/assets/{markdown-SwM1Ir6g.js → markdown-DPh7H1MH.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Jzrzu2q5.js → mcp-app-renderer-DEDNSoX2.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DXUgkWSg.js → mcp-oauth-D_ZnYWZH.js} +1 -1
- package/dist/client/assets/{mcp-oauth-nZa_TONF.js → mcp-oauth-XpGc4vgb.js} +1 -1
- package/dist/client/assets/{members-pMC1bfqu.js → members-DBLGsZ8Z.js} +1 -1
- package/dist/client/assets/{memory-msRY8EWU.js → memory-DpwHgd2f.js} +1 -1
- package/dist/client/assets/{mock-board-4Dfd4bxV.js → mock-board-b7I4Lkdt.js} +3 -3
- package/dist/client/assets/{monaco-editor-Dj-bs0sb.js → monaco-editor-DO6kYNn6.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-9YaCFmpo.js → monitoring-stats-row-CDy_z2_I.js} +1 -1
- package/dist/client/assets/{monitoring-Db6Y9X_T.js → monitoring-v2S8Vbz2.js} +1 -1
- package/dist/client/assets/{multi-select-Cp5gIPzv.js → multi-select-DVrZLS4y.js} +1 -1
- package/dist/client/assets/{mustache-CyusQksc.js → mustache-D8PrVRmL.js} +1 -1
- package/dist/client/assets/{named-rule-step-DbDjzYJn.js → named-rule-step-B-qKJe-K.js} +1 -1
- package/dist/client/assets/{named-rule-view-Dh3pa8Ix.js → named-rule-view-CfHOB60I.js} +1 -1
- package/dist/client/assets/{new-project-dialog-CrDlez-N.js → new-project-dialog-DqENGapI.js} +1 -1
- package/dist/client/assets/{new-project-store-DleT4y6U.js → new-project-store-BCRxr-mc.js} +1 -1
- package/dist/client/assets/{oauth-callback-D-LN8o-r.js → oauth-callback-CCZ4yfvy.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BKOttmuU.js → oauth-callback-ai-provider-CTt1_X_A.js} +1 -1
- package/dist/client/assets/{oauth-consent-C0LB3lfZ.js → oauth-consent-CZX3xw6n.js} +1 -1
- package/dist/client/assets/{onboarding-DRXH9Y7t.js → onboarding--PazlAJD.js} +1 -1
- package/dist/client/assets/{openai-conversation-BDQFSE01.js → openai-conversation-xommJenc.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-DpB-Kj9e.js → optimistic-project-sidebar-views-BkffKpai.js} +1 -1
- package/dist/client/assets/{order-monitor-day-7qmkUUGV.js → order-monitor-day-958y0odK.js} +1 -1
- package/dist/client/assets/{organization-choice-Bs6uDF8C.js → organization-choice-DvJnEyxf.js} +1 -1
- package/dist/client/assets/{orgs-CwaDyfCI.js → orgs-CO_oHECx.js} +1 -1
- package/dist/client/assets/{own-accounts-section-wo48sm2j.js → own-accounts-section-BenVPCh8.js} +1 -1
- package/dist/client/assets/{pair-4JIJkNK2.js → pair-BqleDpPR.js} +1 -1
- package/dist/client/assets/{parse-sections-3dpMP28-.js → parse-sections-BzGAq8XE.js} +2 -2
- package/dist/client/assets/{plan-CgB_LoKO.js → plan-KhTTft6_.js} +1 -1
- package/dist/client/assets/{plan-ladder-DAHXnxDP.js → plan-ladder-heY6MciQ.js} +1 -1
- package/dist/client/assets/{plan-usage-card-DKC1nkf_.js → plan-usage-card-PQMuEzyd.js} +1 -1
- package/dist/client/assets/{popover-DogMO3pk.js → popover-BehWQy5s.js} +1 -1
- package/dist/client/assets/{post-calendar-CwmTBZkp.js → post-calendar-D34f7PIU.js} +1 -1
- package/dist/client/assets/{post-editor-CDKF4zje.js → post-editor-_PepvJ6a.js} +1 -1
- package/dist/client/assets/{preview-content-D6MLtumX.js → preview-content-CE2XWmAb.js} +1 -1
- package/dist/client/assets/{preview-dialog-Bc3kRUrq.js → preview-dialog-DZ2IwkzI.js} +1 -1
- package/dist/client/assets/{preview-panel-BkNp3-My.js → preview-panel-vXQnVw8H.js} +1 -1
- package/dist/client/assets/{preview-tab-BLd_YM6q.js → preview-tab-Cl9H482E.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-BEHWsHij.js → product-picker-dialog-BL9boxvk.js} +1 -1
- package/dist/client/assets/{profile-CxcB48LV.js → profile-OP4zsfS_.js} +1 -1
- package/dist/client/assets/{project-app-view-DThAV1rl.js → project-app-view-CYOoDrbJ.js} +1 -1
- package/dist/client/assets/{project-apps-B94DpdMu.js → project-apps-BcbysZgz.js} +1 -1
- package/dist/client/assets/{project-icon-BHcF2TIr.js → project-icon-DsXJkCkm.js} +1 -1
- package/dist/client/assets/{project-index-Be1RuOJ6.js → project-index-D_813h_x.js} +1 -1
- package/dist/client/assets/project-reports-Cu_S3g_o.js +1 -0
- package/dist/client/assets/project-tasks-B0R4-BCy.js +1 -0
- package/dist/client/assets/{projects-C1GSJkUl.js → projects-BPAfSozY.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DlLdfDdd.js → projects-empty-state-CqVfdsjs.js} +1 -1
- package/dist/client/assets/{prompts-5zeVOrro.js → prompts-BKgSI8pJ.js} +1 -1
- package/dist/client/assets/record-editor-CjcMnQKJ.js +1 -0
- package/dist/client/assets/{redirect-editor-CEVbDPNz.js → redirect-editor-Dhnkzc8x.js} +1 -1
- package/dist/client/assets/reports-Ddcyqv78.js +1 -0
- package/dist/client/assets/{reports-onboarding-Bgx5Wbga.js → reports-onboarding-Dqt1GZGm.js} +1 -1
- package/dist/client/assets/{reports-S46_cn_C.js → reports-rQvh0Hwt.js} +1 -1
- package/dist/client/assets/{reports-tab-CajwSXZt.js → reports-tab-DLtX9pIH.js} +2 -2
- package/dist/client/assets/{repositories-B1gkEk-T.js → repositories-DRcv3rGo.js} +1 -1
- package/dist/client/assets/repositories-o1iCE7DL.js +1 -0
- package/dist/client/assets/{repository-binding-BS9v5Fe_.js → repository-binding-B-NGFlA8.js} +1 -1
- package/dist/client/assets/{repository-picker-CXtPhUQx.js → repository-picker-gzTJe9Gv.js} +1 -1
- package/dist/client/assets/{require-capability-Db5kMZvY.js → require-capability-kZjYTRSp.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C_8jBLMB.js → required-auth-layout-nH3iv-0Q.js} +1 -1
- package/dist/client/assets/{reset-password-DIVuqYKV.js → reset-password-DB-udXR6.js} +1 -1
- package/dist/client/assets/{resizable-97tyuWCT.js → resizable-BlRMDdrh.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CgO8Qihl.js → resolve-tab-icon-CiuDD5mB.js} +1 -1
- package/dist/client/assets/{review-settings-CLgbnmq-.js → review-settings-CXLjCt8_.js} +1 -1
- package/dist/client/assets/{role-color-gTG8o13c.js → role-color-uiFynXo0.js} +1 -1
- package/dist/client/assets/{roles-zI-Hk6fY.js → roles-BAmonx9L.js} +1 -1
- package/dist/client/assets/route-BVJlGC3e.js +1 -0
- package/dist/client/assets/{route-JrcnSNgm.js → route-DnjRFCDt.js} +1 -1
- package/dist/client/assets/{route-BVVvTINP.js → route-ezf78-kp.js} +1 -1
- package/dist/client/assets/{route-page-header-DFLx6qIf.js → route-page-header-X-mAmINr.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CbcKlTqF.js → sandbox-git-api-aKyMzAgE.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-Ckk9fyCX.js → sandbox-lifecycle-context-D7Fp6oqG.js} +1 -1
- package/dist/client/assets/{save-status-DIv_w4LK.js → save-status-DJPya39G.js} +1 -1
- package/dist/client/assets/{schema-CsWev9Lq.js → schema-BBpKzKno.js} +1 -1
- package/dist/client/assets/{schema-CggWCz-G.js → schema-DCd8UMh8.js} +1 -1
- package/dist/client/assets/{scroll-area-KLc2042F.js → scroll-area-Csvonw83.js} +1 -1
- package/dist/client/assets/{search-input-D6gGXIf1.js → search-input-Cu6jTXVw.js} +1 -1
- package/dist/client/assets/{search-toggle-CMDWFPiy.js → search-toggle-e_exxt7r.js} +1 -1
- package/dist/client/assets/{secret-picker-IFIVFm7w.js → secret-picker-DNUQblEn.js} +1 -1
- package/dist/client/assets/{secrets-jBAw0ULO.js → secrets-Bn1WBwcl.js} +1 -1
- package/dist/client/assets/{section-array-field-fkRL6dJN.js → section-array-field-BEw6_ifu.js} +1 -1
- package/dist/client/assets/{sections-DH2lycfv.js → sections-DJiuecaT.js} +1 -1
- package/dist/client/assets/{sections-editor-BWiwMgid.js → sections-editor-DVOsCD59.js} +1 -1
- package/dist/client/assets/{select-DPXDtN3F.js → select-P0a7iEwt.js} +1 -1
- package/dist/client/assets/{select-model-DL2dvL4e.js → select-model-C0gDb4oR.js} +1 -1
- package/dist/client/assets/{seo-editor-Qsv4nJ3u.js → seo-editor-bpOl0mAI.js} +1 -1
- package/dist/client/assets/{separator-CL-QJFBL.js → separator-CD1pacr0.js} +1 -1
- package/dist/client/assets/{session-runtime-BtkBTCEv.js → session-runtime-CPmKckVH.js} +1 -1
- package/dist/client/assets/settings-tab-DvLo5tCi.js +1 -0
- package/dist/client/assets/{sheet-DKmzxIAF.js → sheet-p2Ousfn8.js} +1 -1
- package/dist/client/assets/{shell-layout-DwJrXedk.js → shell-layout-ipiZBDIC.js} +1 -1
- package/dist/client/assets/{site-draft-actions-CKH_63G-.js → site-draft-actions-BvryPs_I.js} +1 -1
- package/dist/client/assets/{site-draft-view-Cr2tGRpR.js → site-draft-view-CafbfdCR.js} +1 -1
- package/dist/client/assets/site-editor-BXgkiOeW.js +1 -0
- package/dist/client/assets/{site-editor-toast-BRXEnjic.js → site-editor-toast-BCIjRFDB.js} +1 -1
- package/dist/client/assets/{skills-DJZ4NcoQ.js → skills-B9A2Tnlp.js} +1 -1
- package/dist/client/assets/{slider-tajZdOy1.js → slider-BSVnJGMl.js} +1 -1
- package/dist/client/assets/{sortable.esm-xHKM0aSe.js → sortable.esm-RnWQ2Udf.js} +1 -1
- package/dist/client/assets/{sso-CdgaAIgO.js → sso-CB570QeV.js} +1 -1
- package/dist/client/assets/{suggestion-BapLR6AM.js → suggestion-vwX5VgUe.js} +1 -1
- package/dist/client/assets/{super-agent-icon-DD9h5HSQ.js → super-agent-icon-BPbK3yEF.js} +1 -1
- package/dist/client/assets/{switch-DEje7fmz.js → switch-DhrqiPup.js} +1 -1
- package/dist/client/assets/{synced-repos-p7TfojtZ.js → synced-repos-Dj7MNmrF.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-DlkpXRLw.js → tab-icon-glyph-CwXfY3im.js} +1 -1
- package/dist/client/assets/{table-Cie3FI8M.js → table-C2Ra_yKM.js} +1 -1
- package/dist/client/assets/{tabs-BMObVAFs.js → tabs-BB9AjDp8.js} +1 -1
- package/dist/client/assets/{task-board-CZuAKwkd.js → task-board-B47Oba0a.js} +1 -1
- package/dist/client/assets/{task-key-Binbqohp.js → task-key-CzMIIXuS.js} +1 -1
- package/dist/client/assets/{task-route-IxeWFQf4.js → task-route-DnF8qwEX.js} +1 -1
- package/dist/client/assets/{task-status-24VN3LnD.js → task-status-Cgcee3O1.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-TIghTMhL.js → taskboard-analytics-BGk64d_U.js} +1 -1
- package/dist/client/assets/{tasks-DnDVdrmF.js → tasks-9BhHRctq.js} +1 -1
- package/dist/client/assets/tasks-qwSI_NuF.js +1 -0
- package/dist/client/assets/{textarea-3iEFQij9.js → textarea-BfYW4m9c.js} +1 -1
- package/dist/client/assets/{thread-analytics-DvdOTcnX.js → thread-analytics-1PuOj_1s.js} +1 -1
- package/dist/client/assets/{thread-button-ChRjFza7.js → thread-button-D5DY5gNU.js} +1 -1
- package/dist/client/assets/{thread-intent-BNoxio0t.js → thread-intent-CMPSad7_.js} +1 -1
- package/dist/client/assets/{thread-route-sNjMl6Ie.js → thread-route-BizqFXgE.js} +1 -1
- package/dist/client/assets/{thread-route-DEzPmkpC.js → thread-route-D3pQjYup.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-JBqWWQDi.js → thread-sheet-body-XpKlRgjQ.js} +1 -1
- package/dist/client/assets/{time-range-picker-DDjkoMQs.js → time-range-picker-DpPBnDJs.js} +1 -1
- package/dist/client/assets/{toggle-group-N0qYYn6W.js → toggle-group-DNENle-P.js} +1 -1
- package/dist/client/assets/{tool-set-selector-BE0R1AUj.js → tool-set-selector-jU7fZbNy.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BSXImY57.js → toolbar-icon-button-BzpP1rEG.js} +1 -1
- package/dist/client/assets/{tooltip-r0LfLYi3.js → tooltip-iXXWa3VG.js} +1 -1
- package/dist/client/assets/{tooltipContext-DRtEpNZN.js → tooltipContext-C8y_VFmL.js} +1 -1
- package/dist/client/assets/{track-Ciq_Ag4i.js → track-Bc9nbdpg.js} +1 -1
- package/dist/client/assets/{types-BhUJ3bOA.js → types-Ds7H4BQL.js} +1 -1
- package/dist/client/assets/{url-slug-CR2COLQn.js → url-slug-Dl2YaRDk.js} +1 -1
- package/dist/client/assets/{usage-stats-BH8jlFhP.js → usage-stats-Cpv39cmk.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CFArCH41.js → use-ai-providers-DAAK1LJH.js} +1 -1
- package/dist/client/assets/{use-api-keys-lPXg3MPh.js → use-api-keys-DYWSrleO.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-C4A8N8Up.js → use-apply-named-rule-ChczImI2.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-DsqzzR_R.js +1 -0
- package/dist/client/assets/{use-automations-DcCuqnYq.js → use-automations-BlLUMChm.js} +1 -1
- package/dist/client/assets/{use-autosave-Cpi6qZoh.js → use-autosave-C8IC3tXr.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-D3ldcoCH.js +1 -0
- package/dist/client/assets/use-blog-view-CjVBpsro.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DjHcwQYx.js → use-chat-layout-state-C8KgaHCk.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-BbXykL5B.js → use-cms-publish-actions-CfFe1een.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CNj3wQey.js → use-connect-companion-BCNVG3tV.js} +1 -1
- package/dist/client/assets/{use-connection-DpuSfyHb.js → use-connection-CyhiAuyN.js} +1 -1
- package/dist/client/assets/{use-content-sync-C9laqqVB.js → use-content-sync-DMiZIHHe.js} +1 -1
- package/dist/client/assets/{use-copy-BFUDxfVH.js → use-copy-jVRNS72q.js} +1 -1
- package/dist/client/assets/{use-current-view-C1-z4fIk.js → use-current-view-DbaDobC4.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D6T1OHTy.js → use-date-fns-locale-3quXKuiY.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-C5QlmVn0.js → use-debounced-autosave-Cj1eq42P.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BkJoL4uj.js → use-debounced-value-CI6OWQk7.js} +1 -1
- package/dist/client/assets/{use-deco-credits-zD_A42hI.js → use-deco-credits-CH6PNQ_v.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CZR337Lj.js → use-decopilot-events-CsRo6_4Z.js} +1 -1
- package/dist/client/assets/{use-delete-block-BYw_7GRP.js → use-delete-block-CgNbR5dQ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-B0ASWh3-.js → use-delete-connection-DKGnNBlw.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-DGQGQZ6E.js → use-deployment-admin-DsggmftG.js} +1 -1
- package/dist/client/assets/{use-entitlements-BRKIl3Rz.js → use-entitlements-cKoK0gNm.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BTGBRNHr.js → use-fast-preview-draft-url-CVB9nGuj.js} +1 -1
- package/dist/client/assets/{use-file-configs-CMTQcHfJ.js → use-file-configs-DvcuDR-z.js} +1 -1
- package/dist/client/assets/{use-id-selection-Bn7c-vY3.js → use-id-selection-BfYt0Wlx.js} +1 -1
- package/dist/client/assets/{use-in-settings-BT3nEhsO.js → use-in-settings-DF-tVIoE.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-DGj1Phk9.js → use-inbox-feed-BBbvu_QZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Dv1yBngZ.js → use-infinite-scroll-iq2V7hOe.js} +1 -1
- package/dist/client/assets/{use-join-requests-DMRpQYlE.js → use-join-requests-yWpslxoF.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-C0GJ35ov.js → use-main-panel-tabs-CkCUK4K2.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-D9OBaQkq.js → use-mcp-auth-status-BjTyNUC6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DXpTlXlJ.js → use-mcp-client-Bq8ol96W.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-B_BU9Jdl.js → use-mcp-prompts-B6Jw27dX.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B0m5-RR6.js → use-mcp-tools-BBonPTWo.js} +1 -1
- package/dist/client/assets/{use-mobile-BwxeIsTr.js → use-mobile-dNUmCifC.js} +1 -1
- package/dist/client/assets/{use-move-blocks-D-OheBD-.js → use-move-blocks-DkefGETO.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DjeX7xEq.js → use-navigate-to-agent-DeYqaaa3.js} +1 -1
- package/dist/client/assets/{use-never-published-CP8Hs4DE.js → use-never-published-V8ak3bds.js} +1 -1
- package/dist/client/assets/{use-org-fs-D2bsNlGU.js → use-org-fs-qpGfwwQf.js} +1 -1
- package/dist/client/assets/{use-org-notice-BLcA1Iw0.js → use-org-notice-DEvisT2l.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Dfmuqlr1.js → use-org-repo-syncs-CkMNVLVA.js} +1 -1
- package/dist/client/assets/{use-org-sso-DhdCpzK5.js → use-org-sso-DiEFaIS8.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BilLeNy9.js → use-organization-settings-DmJ49Wll.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-DpEZACCY.js → use-panel-navigate-BtwQP9g-.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-D4zm5hDa.js → use-project-native-view-presence-DW2-U7IG.js} +1 -1
- package/dist/client/assets/{use-project-scope-C815BKEh.js → use-project-scope-B49l3tYT.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Cr_xiDfS.js → use-recent-apps-B62FmT2v.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Djz2mp7k.js → use-reports-diagnostic-DHnSBwPM.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-aK2a02aF.js → use-sandbox-events-CNUqntlP.js} +1 -1
- package/dist/client/assets/{use-secrets-CJ3hXlfU.js → use-secrets-CexRiKHt.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Ve5g9dlJ.js → use-section-preview-base-CqvFVrVu.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-CSFUmB9m.js → use-sidebar-collapsed-euA02TXK.js} +1 -1
- package/dist/client/assets/{use-tags-ZV0RDof-.js → use-tags-64LcPJtA.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-4kD6ppwm.js → use-task-board-analytics-DUV56Jef.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Cwh80HEy.js → use-task-board-item-prs-BnskjWVg.js} +1 -1
- package/dist/client/assets/{use-task-board-items-DX_SyoB4.js → use-task-board-items-DT4Yu9ci.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Cf3d-x7e.js → use-task-board-prompts-DVYmomFM.js} +1 -1
- package/dist/client/assets/{use-task-metadata-L7Sk1FlH.js → use-task-metadata-BIJ7BpWb.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-HnCGzIoZ.js → use-thread-outputs-riYbRXeW.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-1niLZJ6g.js → use-view-draft-kind-D6a-C5cc.js} +1 -1
- package/dist/client/assets/{use-voice-input-DYwW5R3c.js → use-voice-input-DwLhccAL.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-B7ay7aNP.js +1 -0
- package/dist/client/assets/{useQueries-BNC8S8pQ.js → useQueries-v3dcLTuG.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BuojYKnE.js +1 -0
- package/dist/client/assets/{users-DeIRsAGC.js → users-v7Mpl1bC.js} +1 -1
- package/dist/client/assets/{utils-DII4rh9V.js → utils-DBfgNQF1.js} +1 -1
- package/dist/client/assets/{variant-calendar-ChRlrtIQ.js → variant-calendar-Bla8wTwx.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-DQIPA96S.js → variant-matcher-override-1y0OsCVS.js} +1 -1
- package/dist/client/assets/{view-header-CDV0Xu_P.js → view-header-B7lYbePo.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DrcP-MsH.js → virtual-mcp-CrzgTGWz.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Bw3-M9_N.js → watch-sse-pool-wQgu9ix_.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-B4NG-g7u.js +0 -1
- package/dist/client/assets/agent-deck-DbvnjqCy.js +0 -1
- package/dist/client/assets/agent-experiments-D0KHYwLz.js +0 -1
- package/dist/client/assets/agent-file-DJr9f7Uu.js +0 -1
- package/dist/client/assets/agent-library-Q1o2w1EA.js +0 -1
- package/dist/client/assets/agent-library-file-DeAgo7Oz.js +0 -1
- package/dist/client/assets/agent-overview-BzbDDcHv.js +0 -1
- package/dist/client/assets/agent-settings-CmbLkbQ3.js +0 -1
- package/dist/client/assets/agent-site-editor-code-mWem5GG6.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Cxhwi79L.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BTUTVJ5a.js +0 -1
- package/dist/client/assets/agent-view-ZyP4-VSz.js +0 -1
- package/dist/client/assets/api-keys-DYGRMzXM.js +0 -1
- package/dist/client/assets/library-i7u4D0nv.js +0 -1
- package/dist/client/assets/project-reports-K8JRKUu4.js +0 -1
- package/dist/client/assets/project-tasks-CA5yJnAe.js +0 -1
- package/dist/client/assets/record-editor-DayZB6HD.js +0 -1
- package/dist/client/assets/reports-vF-XIQTi.js +0 -1
- package/dist/client/assets/repositories-CMSsRRv6.js +0 -1
- package/dist/client/assets/route-DGTGR39c.js +0 -1
- package/dist/client/assets/settings-tab-9VStd703.js +0 -1
- package/dist/client/assets/site-editor-CVnLWuGP.js +0 -1
- package/dist/client/assets/tasks-UA8LFybk.js +0 -1
- package/dist/client/assets/use-ask-in-chat-DxfAfFUt.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-uH3tLJJX.js +0 -1
- package/dist/client/assets/use-blog-view-B-p1Bott.js +0 -1
- package/dist/client/assets/useInfiniteQuery-C5Fx0PfA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-kmW-ybmd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,b as Z,J as X,a as q,r as z,j as r,aq as re,n as R,a4 as oe,h as ie}from"./index-BsAwgxIf.js";import{ChatLayout as ne}from"./index-DQWJotH-.js";import{b as se}from"./input-Cy8KNDYA.js";import{D as ae,a as me}from"./chat-context-BhwgXdxZ.js";import{a as le}from"./use-organization-settings-BilLeNy9.js";import{C as pe,u as ce,F as fe,R as ue,M as ge}from"./home-overview-C0oKtq4c.js";import{I as de}from"./icon-button-CpBLMSxk.js";import{T as he,a as V}from"./toggle-group-N0qYYn6W.js";import{a as xe}from"./MessageCircle01-CQjeMfQj.js";import{i as be}from"./sprints-C1z9xhcL.js";import{F as ye}from"./file-preview-CXliAtvL.js";import{u as W,a as je}from"./use-org-fs-D2bsNlGU.js";import{L as Se}from"./preview-dialog-Bc3kRUrq.js";import{t as _e,r as we,s as De}from"./daily-pulse-BA0ikU80.js";import{N as ke}from"./new-project-dialog-CrDlez-N.js";import{P as ve}from"./projects-empty-state-DlLdfDdd.js";import{b as Be}from"./project-index-Be1RuOJ6.js";import{u as Ce}from"./use-inbox-feed-DGj1Phk9.js";import{b as Ne}from"./use-recent-apps-Cr_xiDfS.js";import{s as Pe}from"./use-project-scope-C815BKEh.js";import{u as $e}from"./repository-binding-BS9v5Fe_.js";import"./use-mobile-BwxeIsTr.js";import"./tooltip-r0LfLYi3.js";import"./index-KBC7Pj7l.js";import"./XClose-Dq0BGBMq.js";import"./thread-button-ChRjFza7.js";import"./use-sidebar-collapsed-CSFUmB9m.js";import"./sheet-DKmzxIAF.js";import"./use-chat-layout-state-DjHcwQYx.js";import"./use-panel-navigate-DpEZACCY.js";import"./thread-route-sNjMl6Ie.js";import"./toolbar-icon-button-BSXImY57.js";import"./use-in-settings-BT3nEhsO.js";import"./resizable-97tyuWCT.js";import"./route-page-header-DFLx6qIf.js";import"./LayoutLeft-DHg_jNr0.js";import"./use-current-view-C1-z4fIk.js";import"./usage-stats-BH8jlFhP.js";import"./utils-CVEq3hMx.js";import"./markdown-SwM1Ir6g.js";import"./use-copy-BFUDxfVH.js";import"./agent-icon-B9nZhdi2.js";import"./AlertCircle-DA6gE5vw.js";import"./UserCheck01-3D5hYz4C.js";import"./Tool01-ymE-fOFX.js";import"./ArrowUp-DyF0Rx2O.js";import"./ArrowLeft-B8D7i2xh.js";import"./ArrowRight-C1EmTlL-.js";import"./BookOpen01-UxGmri2e.js";import"./Globe04-DD86hrsf.js";import"./CheckCircle-Bh1gNJET.js";import"./TrendUp01-Cr4FP2fV.js";import"./ChevronDown-uPv2ScPr.js";import"./ChevronSelectorVertical-CiFyE2Pu.js";import"./ChevronUp-BkmRXggG.js";import"./UserSquare-aJjYmjOR.js";import"./LinkBroken01-Ic71rSEU.js";import"./CreditCard01-C-H9qti1.js";import"./File02-DEjt2PPW.js";import"./SwitchHorizontal01-BU8z7oT_.js";import"./Eye-DL5oRAI4.js";import"./Image01-BCiDUkCm.js";import"./Key01-CgRwsDr3.js";import"./Minus-BM2zRSMr.js";import"./Monitor01-C4OHhcX6.js";import"./Sun-CoJn-J4w.js";import"./Play-l838EjWq.js";import"./Plus-BzpqhVU8.js";import"./SearchMd-BhCfkG_O.js";import"./ShoppingBag01-KIefHp9K.js";import"./Trash01-aSl--BGd.js";import"./Upload01-DozMUWEF.js";import"./Users01-Cximoi8v.js";import"./Zap-NAfA60T9.js";import"./task-board-CZuAKwkd.js";import"./schema-CggWCz-G.js";import"./gateway-client-t5s1Cm0x.js";import"./form-Cb5OHNc9.js";import"./label-D8u4gNcM.js";import"./use-entitlements-BRKIl3Rz.js";import"./file-type-icon-Bhy3vcyl.js";import"./use-view-draft-kind-1niLZJ6g.js";import"./use-blog-view-B-p1Bott.js";import"./thread-intent-BNoxio0t.js";import"./use-mcp-client-DXpTlXlJ.js";import"./auth-D0WiD-6X.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bw3-M9_N.js";import"./session-runtime-BtkBTCEv.js";import"./chat-draft-CG09JkEF.js";import"./use-voice-input-DYwW5R3c.js";import"./popover-DogMO3pk.js";import"./drawer-EGIO8vW1.js";import"./use-ai-providers-CFArCH41.js";import"./index-CT5cpmuw.js";import"./checkbox-BwlyfOui.js";import"./select-DPXDtN3F.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./tabs-BMObVAFs.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-zD_A42hI.js";import"./input--kphUWpn.js";import"./suggestion-BapLR6AM.js";import"./use-mcp-prompts-B_BU9Jdl.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-BQdFbBKY.js";import"./plan-ladder-DAHXnxDP.js";import"./add-connection-dialog-D1_0-J8t.js";import"./collection-search-Dj3oO1qn.js";import"./extract-connection-data-DeUSUVIy.js";import"./metadata-D72DunRR.js";import"./connection-CELF9xGk.js";import"./url-slug-CR2COLQn.js";import"./connection-card-DqAevMOq.js";import"./useInfiniteQuery-C5Fx0PfA.js";import"./infiniteQueryObserver-CnD94meO.js";import"./connection-slug-Dz7hwoVN.js";import"./integration-icon-DbiCbrD7.js";import"./textarea-3iEFQij9.js";import"./use-connection-DpuSfyHb.js";import"./schema-CsWev9Lq.js";import"./connection-form-helpers-egiEwtYz.js";import"./authenticate-and-persist-oauth-CjsXQJBc.js";import"./mcp-oauth-DXUgkWSg.js";import"./mcp-oauth-nZa_TONF.js";import"./collection-tabs-Wktk7Bil.js";import"./badge-BUkSpOXa.js";import"./use-infinite-scroll-Dv1yBngZ.js";import"./useSuspenseInfiniteQuery-kmW-ybmd.js";import"./use-task-board-items-DX_SyoB4.js";import"./use-decopilot-events-CZR337Lj.js";import"./connect-key-BqwNSl8t.js";import"./use-api-keys-lPXg3MPh.js";import"./chart-B0F_JJb6.js";import"./CategoricalChart-oGRIPAq4.js";import"./index-D1alBOdU.js";import"./tooltipContext-DRtEpNZN.js";import"./CartesianChart-Dv3UTRbp.js";import"./project-icon-BHcF2TIr.js";import"./project-apps-B94DpdMu.js";import"./config-Bn4oMb7y.js";import"./task-key-Binbqohp.js";import"./task-route-IxeWFQf4.js";import"./ReferenceLine-DmbAcSH6.js";import"./utils-DII4rh9V.js";import"./editor-B_YvqDEq.js";import"./preview-content-D6MLtumX.js";import"./file-share-button-BUHoICkf.js";import"./use-navigate-to-agent-DjeX7xEq.js";import"./repository-picker-CXtPhUQx.js";import"./github-icon-BoZrKkV3.js";import"./use-debounced-value-BkJoL4uj.js";import"./new-project-store-DleT4y6U.js";const O="home",Q="brief";function ee(e){return`users/${e}/brief`}function Ee(e,t){return`${e}/${t}.html`}function Fe(e){const t=String(e.getFullYear()).padStart(4,"0"),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Ie(e){if(!e.endsWith(".html"))return null;const t=e.slice(0,-5);return be(t)?t:null}const Te=7;function te(e,t){return Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5)}function Me(e,t){let i=null;for(const s of e){const a=Ie(s);if(!a||i&&a<=i.day)continue;const n=te(a,t);n>=0&&n<Te&&(i={name:s,day:a})}return i}const K=e=>e.slice(e.lastIndexOf("/")+1);function J(e,t,i,s){const a=i.filter(o=>o.kind==="file"),n=Me(a.map(o=>K(o.path)),s),l=n&&a.find(o=>K(o.path)===n.name);return n&&l?{scope:e,path:Ee(t,n.day),filename:n.name,size:l.size,day:n.day,ageDays:te(n.day,s)}:null}function Ae({userId:e,personal:t,org:i,today:s}){return[e?J("personal",ee(e),t,s):null,J("org",Q,i,s)].filter(a=>a!==null)}function Le(e,t){return t===0?e("home.dailyBrief.today"):t===1?e("home.dailyBrief.yesterday"):e("home.dailyBrief.daysAgo",{count:t})}function He(e,t){return new Date(`${t}T12:00:00Z`).toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long",timeZone:"UTC"})}function Re(){const e=M.c(54),t=Z(),[i]=X(),{data:s}=q.useSession(),a=s?.user?.id,n=W(O,Q),l=a??"";let o;e[0]!==l?(o=ee(l),e[0]=l,e[1]=o):o=e[1];const D=!!a;let h;e[2]!==D?(h={enabled:D},e[2]=D,e[3]=h):h=e[3];const d=W(O,o,h),p=je(O),[k,v]=z.useState(null),[x,u]=z.useState(!1);let f,m,c,b,g,y,j,B,S,_;if(e[4]!==n.data||e[5]!==d.data||e[6]!==i||e[7]!==p||e[8]!==k||e[9]!==t||e[10]!==a){b=Symbol.for("react.early_return_sentinel");e:{const G=Ae({userId:a,personal:d.data??[],org:n.data??[],today:Fe(new Date)});if(m=G.find(T=>T.scope===k)??G[0],!m){b=null;break e}_="flex flex-col overflow-hidden surface";let A;e[21]!==t?(A=t("home.dailyBrief.title"),e[21]=t,e[22]=A):A=e[22];const U=r.jsxs("h2",{className:"flex min-w-0 items-baseline gap-2 text-[0.9rem] font-medium tracking-tight text-foreground",children:[A,r.jsxs("span",{className:"truncate text-xs font-normal text-muted-foreground",children:[Le(t,m.ageDays)," ·"," ",He(i.language,m.day)]})]}),Y=G.length>1&&r.jsxs(he,{type:"single",variant:"segmented",size:"sm",value:m.scope,onValueChange:T=>{(T==="personal"||T==="org")&&v(T)},children:[r.jsx(V,{value:"personal",className:"px-2.5 text-xs",children:t("home.dailyBrief.personal")}),r.jsx(V,{value:"org",className:"px-2.5 text-xs",children:t("home.dailyBrief.org")})]});let E;e[23]!==t?(E=t("home.dailyBrief.fullscreen"),e[23]=t,e[24]=E):E=e[24];let L,H;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=()=>u(!0),H=r.jsx(xe,{size:14}),e[25]=L,e[26]=H):(L=e[25],H=e[26]);let F;e[27]!==E?(F=r.jsx(de,{label:E,onClick:L,children:H}),e[27]=E,e[28]=F):F=e[28];let I;e[29]!==Y||e[30]!==F?(I=r.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[Y,F]}),e[29]=Y,e[30]=F,e[31]=I):I=e[31],e[32]!==U||e[33]!==I?(c=r.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[U,I]}),e[32]=U,e[33]=I,e[34]=c):c=e[34],S="h-[32rem]",f=ye,g=m.path,y=m.filename,j=m.size,B=p(m.path)}e[4]=n.data,e[5]=d.data,e[6]=i,e[7]=p,e[8]=k,e[9]=t,e[10]=a,e[11]=f,e[12]=m,e[13]=c,e[14]=b,e[15]=g,e[16]=y,e[17]=j,e[18]=B,e[19]=S,e[20]=_}else f=e[11],m=e[12],c=e[13],b=e[14],g=e[15],y=e[16],j=e[17],B=e[18],S=e[19],_=e[20];if(b!==Symbol.for("react.early_return_sentinel"))return b;let w;e[35]!==g||e[36]!==y||e[37]!==j||e[38]!==B?(w={key:g,filename:y,size:j,downloadUrl:B},e[35]=g,e[36]=y,e[37]=j,e[38]=B,e[39]=w):w=e[39];let C;e[40]!==f||e[41]!==w?(C=r.jsx(f,{file:w}),e[40]=f,e[41]=w,e[42]=C):C=e[42];let N;e[43]!==C||e[44]!==S?(N=r.jsx("div",{className:S,children:C}),e[43]=C,e[44]=S,e[45]=N):N=e[45];let $;e[46]!==m||e[47]!==x?($=x&&r.jsx(Se,{previewPath:`${O}/${m.path}`,onClose:()=>u(!1),showSeeInLibrary:!0}),e[46]=m,e[47]=x,e[48]=$):$=e[48];let P;return e[49]!==c||e[50]!==N||e[51]!==$||e[52]!==_?(P=r.jsxs("section",{className:_,children:[c,N,$]}),e[49]=c,e[50]=N,e[51]=$,e[52]=_,e[53]=P):P=e[53],P}function Oe(e){return e<12?"morning":e<18?"afternoon":"evening"}function ze(e){const t=(e??"").trim().split(/\s+/)[0];return t||null}function Ge(e,t){return t.toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long"})}function Ue(e){return e==="morning"?"overnight":"today"}function Ye(e,t){const i=new Date(t);return i.setHours(0,0,0,0),e==="morning"&&i.setHours(-6),i.getTime()}const Ze={morning:{named:"home.orgHome.greetingMorning",bare:"home.orgHome.greetingMorningBare"},afternoon:{named:"home.orgHome.greetingAfternoon",bare:"home.orgHome.greetingAfternoonBare"},evening:{named:"home.orgHome.greetingEvening",bare:"home.orgHome.greetingEveningBare"}};function qe(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex min-h-64 items-center justify-center",children:r.jsx(ie,{className:"size-5 text-muted-foreground"})}),e[0]=t):t=e[0],t}function Ve(e,t,i,s,a){const n=Ue(i)==="overnight",l=[];if(t>0){const o=e(t===1?"home.brief.changeOne":"home.brief.changeMany",{count:t});l.push(e(n?"home.brief.overnightShipped":"home.brief.todayShipped",{changes:o}))}else s===0&&l.push(e(a>0?"home.brief.working":n?"home.brief.quietNight":"home.brief.quietDay"));return l.push(s===0?e("home.brief.waitingNone"):e(s===1?"home.brief.waitingOne":"home.brief.waitingMany",{count:s})),l.join(" ")}function We(e){const t=M.c(41),{canManageProjects:i,eyebrow:s,greeting:a,slot:n}=e,l=Z(),{org:o}=oe(),{data:D}=q.useSession();let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={pageSize:1e3},t[0]=h):h=t[0];const d=$e(h),p=ce(),k=Ce(),{recent:v}=Ne(o.slug);let x,u;if(t[1]!==d||t[2]!==i||t[3]!==o.id){u=Symbol.for("react.early_return_sentinel");e:{let N;t[6]!==o.id?(N=P=>P.id!==o.id,t[6]=o.id,t[7]=N):N=t[7];const $=Pe(d).filter(N);if($.length===0){let P;t[8]!==i?(P=r.jsx(ve,{canCreate:i}),t[8]=i,t[9]=P):P=t[9],u=P;break e}x=Be($)}t[1]=d,t[2]=i,t[3]=o.id,t[4]=x,t[5]=u}else x=t[4],u=t[5];if(u!==Symbol.for("react.early_return_sentinel"))return u;const f=x;let m,c;t[10]!==D?.user?.id||t[11]!==n||t[12]!==l||t[13]!==p?(c=_e(p,D?.user?.id),m=Ve(l,De(p,Ye(n,new Date)),n,c.length,we(p).length),t[10]=D?.user?.id,t[11]=n,t[12]=l,t[13]=p,t[14]=m,t[15]=c):(m=t[14],c=t[15]);const b=m;let g;t[16]!==s?(g=r.jsx("span",{className:"text-xs text-muted-foreground",children:s}),t[16]=s,t[17]=g):g=t[17];let y;t[18]!==b||t[19]!==a?(y=r.jsxs("h1",{className:"max-w-[40ch] text-2xl font-medium text-balance text-foreground",children:[a," ",b]}),t[18]=b,t[19]=a,t[20]=y):y=t[20];let j;t[21]!==g||t[22]!==y?(j=r.jsxs("div",{className:"flex flex-col gap-1",children:[g,y]}),t[21]=g,t[22]=y,t[23]=j):j=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(Re,{}),t[24]=B):B=t[24];let S;t[25]!==k.updates||t[26]!==f||t[27]!==o.slug||t[28]!==p||t[29]!==c?(S=r.jsx(fe,{waiting:c,tasks:p,mentions:k.updates,index:f,orgSlug:o.slug}),t[25]=k.updates,t[26]=f,t[27]=o.slug,t[28]=p,t[29]=c,t[30]=S):S=t[30];let _;t[31]!==o.slug||t[32]!==v?(_=r.jsx(ue,{recent:v,orgSlug:o.slug}),t[31]=o.slug,t[32]=v,t[33]=_):_=t[33];let w;t[34]!==p?(w=r.jsx(ge,{tasks:p}),t[34]=p,t[35]=w):w=t[35];let C;return t[36]!==_||t[37]!==w||t[38]!==j||t[39]!==S?(C=r.jsxs("div",{className:"flex flex-col gap-8",children:[j,B,S,_,w]}),t[36]=_,t[37]=w,t[38]=j,t[39]=S,t[40]=C):C=t[40],C}function Ke(){const e=M.c(25),t=Z(),[i]=X(),s=le("home_task_intake_enabled"),{data:a}=q.useSession(),{granted:n}=re("agents:manage");let l,o,D;if(e[0]!==i.language||e[1]!==a?.user?.name||e[2]!==t){const c=new Date,b=ze(a?.user?.name);o=Oe(c.getHours());const g=Ze[o];l=Ge(i.language,c),D=b?t(g.named,{name:b}):t(g.bare),e[0]=i.language,e[1]=a?.user?.name,e[2]=t,e[3]=l,e[4]=o,e[5]=D}else l=e[3],o=e[4],D=e[5];const h=D;let d;e[6]!==n?(d=n&&r.jsx(ke,{source:"org_home_header"}),e[6]=n,e[7]=d):d=e[7];let p;e[8]!==d?(p=r.jsx(R.Actions,{children:d}),e[8]=d,e[9]=p):p=e[9];let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(pe,{}),e[10]=k):k=e[10];let v;e[11]!==s?(v=s&&r.jsx(z.Suspense,{fallback:null,children:r.jsx(ae,{children:r.jsx(me,{children:r.jsx(se,{homeTaskComposer:!0})})})}),e[11]=s,e[12]=v):v=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(qe,{}),e[13]=x):x=e[13];let u;e[14]!==n||e[15]!==l||e[16]!==h||e[17]!==o?(u=r.jsx(z.Suspense,{fallback:x,children:r.jsx(We,{canManageProjects:n,eyebrow:l,greeting:h,slot:o})}),e[14]=n,e[15]=l,e[16]=h,e[17]=o,e[18]=u):u=e[18];let f;e[19]!==v||e[20]!==u?(f=r.jsx(R.Content,{children:r.jsxs(R.Container,{width:"wide",className:"flex min-h-full flex-col gap-10",children:[k,v,u]})}),e[19]=v,e[20]=u,e[21]=f):f=e[21];let m;return e[22]!==p||e[23]!==f?(m=r.jsxs(R,{children:[p,f]}),e[22]=p,e[23]=f,e[24]=m):m=e[24],m}function Zo(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(ne.Content,{children:r.jsx(Ke,{})}),e[0]=t):t=e[0],t}export{Zo as default};
|
|
1
|
+
import{c as M,b as Z,J as X,a as q,r as z,j as r,aq as re,n as R,a4 as oe,h as ie}from"./index-CnlrqsCd.js";import{ChatLayout as ne}from"./index-BT86t2zN.js";import{b as se}from"./input-CzlhHu3g.js";import{D as ae,a as me}from"./chat-context-Cdr2Tzco.js";import{a as le}from"./use-organization-settings-DmJ49Wll.js";import{C as pe,u as ce,F as fe,R as ue,M as ge}from"./home-overview-Dks5WIsU.js";import{I as de}from"./icon-button-DhhoBQY7.js";import{T as he,a as V}from"./toggle-group-DNENle-P.js";import{a as xe}from"./MessageCircle01-dCZEdQhF.js";import{i as be}from"./sprints-C1z9xhcL.js";import{F as ye}from"./file-preview-CB_q0R1c.js";import{u as W,a as je}from"./use-org-fs-qpGfwwQf.js";import{L as Se}from"./preview-dialog-DZ2IwkzI.js";import{t as _e,r as we,s as De}from"./daily-pulse-eHpvhv3c.js";import{N as ke}from"./new-project-dialog-DqENGapI.js";import{P as ve}from"./projects-empty-state-CqVfdsjs.js";import{b as Be}from"./project-index-D_813h_x.js";import{u as Ce}from"./use-inbox-feed-BBbvu_QZ.js";import{b as Ne}from"./use-recent-apps-B62FmT2v.js";import{s as Pe}from"./use-project-scope-B49l3tYT.js";import{u as $e}from"./repository-binding-B-NGFlA8.js";import"./use-mobile-dNUmCifC.js";import"./tooltip-iXXWa3VG.js";import"./index-DEg1eCWz.js";import"./XClose-BAaBoHXT.js";import"./thread-button-D5DY5gNU.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-chat-layout-state-C8KgaHCk.js";import"./use-panel-navigate-BtwQP9g-.js";import"./thread-route-BizqFXgE.js";import"./toolbar-icon-button-BzpP1rEG.js";import"./use-in-settings-DF-tVIoE.js";import"./resizable-BlRMDdrh.js";import"./route-page-header-X-mAmINr.js";import"./LayoutLeft-C8ndIALE.js";import"./use-current-view-DbaDobC4.js";import"./usage-stats-Cpv39cmk.js";import"./utils-CVEq3hMx.js";import"./markdown-DPh7H1MH.js";import"./use-copy-jVRNS72q.js";import"./agent-icon-Da3tHBMv.js";import"./AlertCircle-BckhzGo9.js";import"./UserCheck01-lNPupOG8.js";import"./Tool01-CtY1k5Dx.js";import"./ArrowUp-jwPYnWqs.js";import"./ArrowLeft-DjFnycHz.js";import"./ArrowRight-DdCk_HCk.js";import"./BookOpen01-B2ISsdx6.js";import"./Globe04-C8iXbhsR.js";import"./CheckCircle-p76CoLTf.js";import"./TrendUp01-DAuvMm77.js";import"./ChevronDown-Cf6eg1Aj.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./ChevronUp-Yoxwp_-j.js";import"./UserSquare-xrIyO385.js";import"./LinkBroken01-WNn1RqQL.js";import"./CreditCard01-DOIepajb.js";import"./File02-B4TAUApJ.js";import"./SwitchHorizontal01-DB7Iju_C.js";import"./Eye-B-zZzOpR.js";import"./Image01-BKS8Yp4v.js";import"./Key01-D3gaP9qK.js";import"./Minus-BGxu6wTp.js";import"./Monitor01-CrmQoLWb.js";import"./Sun-CnYsG6YA.js";import"./Play-B1JyKt5J.js";import"./Plus-nOMLt4Yk.js";import"./SearchMd-BQl6TEDK.js";import"./ShoppingBag01-DPoH0u5v.js";import"./Trash01-DLwaS_5I.js";import"./Upload01-D8Llo-n7.js";import"./Users01-B6_L_w2p.js";import"./Zap-DV5_FZrE.js";import"./task-board-B47Oba0a.js";import"./schema-DCd8UMh8.js";import"./gateway-client-BwxdQL6w.js";import"./form-9ojGZv11.js";import"./label-D9MCble5.js";import"./use-entitlements-cKoK0gNm.js";import"./file-type-icon-BAAuwpOK.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./thread-intent-CMPSad7_.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-wQgu9ix_.js";import"./session-runtime-CPmKckVH.js";import"./chat-draft--xvDfEkY.js";import"./use-voice-input-DwLhccAL.js";import"./popover-BehWQy5s.js";import"./drawer-CRP1WiCk.js";import"./use-ai-providers-DAAK1LJH.js";import"./index-xBV0t4Yq.js";import"./checkbox-ClBCJgC4.js";import"./select-P0a7iEwt.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./tabs-BB9AjDp8.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-CH6PNQ_v.js";import"./input-BzVp3-J0.js";import"./suggestion-vwX5VgUe.js";import"./use-mcp-prompts-B6Jw27dX.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-DKi0OK9Z.js";import"./plan-ladder-heY6MciQ.js";import"./add-connection-dialog-HNNoGhQz.js";import"./collection-search-CW9SJXAE.js";import"./extract-connection-data-C26a1rUY.js";import"./metadata-D72DunRR.js";import"./connection-BNwNEPn2.js";import"./url-slug-Dl2YaRDk.js";import"./connection-card-Bz0SPOqT.js";import"./useInfiniteQuery-B7ay7aNP.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./connection-slug-mPfdw4iI.js";import"./integration-icon-XdnHhG6r.js";import"./textarea-BfYW4m9c.js";import"./use-connection-CyhiAuyN.js";import"./schema-BBpKzKno.js";import"./connection-form-helpers-Bw7x5pKf.js";import"./authenticate-and-persist-oauth-D450Ij-p.js";import"./mcp-oauth-D_ZnYWZH.js";import"./mcp-oauth-XpGc4vgb.js";import"./collection-tabs-Y93FdN1l.js";import"./badge-loE1b0Vr.js";import"./use-infinite-scroll-iq2V7hOe.js";import"./useSuspenseInfiniteQuery-BuojYKnE.js";import"./use-task-board-items-DT4Yu9ci.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./connect-key-CeYjF2jt.js";import"./use-api-keys-DYWSrleO.js";import"./chart-BvG6MEBA.js";import"./CategoricalChart-Di2gWvs8.js";import"./index-CQwlvIdC.js";import"./tooltipContext-C8y_VFmL.js";import"./CartesianChart-2VySs-qY.js";import"./project-icon-DsXJkCkm.js";import"./project-apps-BcbysZgz.js";import"./config-CheVupom.js";import"./task-key-CzMIIXuS.js";import"./task-route-DnF8qwEX.js";import"./ReferenceLine-CVaZ4J9I.js";import"./utils-DBfgNQF1.js";import"./editor-Ca65jgGo.js";import"./preview-content-CE2XWmAb.js";import"./file-share-button-DdNZkOgu.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./use-debounced-value-CI6OWQk7.js";import"./new-project-store-BCRxr-mc.js";const O="home",Q="brief";function ee(e){return`users/${e}/brief`}function Ee(e,t){return`${e}/${t}.html`}function Fe(e){const t=String(e.getFullYear()).padStart(4,"0"),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function Ie(e){if(!e.endsWith(".html"))return null;const t=e.slice(0,-5);return be(t)?t:null}const Te=7;function te(e,t){return Math.round((Date.parse(`${t}T00:00:00Z`)-Date.parse(`${e}T00:00:00Z`))/864e5)}function Me(e,t){let i=null;for(const s of e){const a=Ie(s);if(!a||i&&a<=i.day)continue;const n=te(a,t);n>=0&&n<Te&&(i={name:s,day:a})}return i}const K=e=>e.slice(e.lastIndexOf("/")+1);function J(e,t,i,s){const a=i.filter(o=>o.kind==="file"),n=Me(a.map(o=>K(o.path)),s),l=n&&a.find(o=>K(o.path)===n.name);return n&&l?{scope:e,path:Ee(t,n.day),filename:n.name,size:l.size,day:n.day,ageDays:te(n.day,s)}:null}function Ae({userId:e,personal:t,org:i,today:s}){return[e?J("personal",ee(e),t,s):null,J("org",Q,i,s)].filter(a=>a!==null)}function Le(e,t){return t===0?e("home.dailyBrief.today"):t===1?e("home.dailyBrief.yesterday"):e("home.dailyBrief.daysAgo",{count:t})}function He(e,t){return new Date(`${t}T12:00:00Z`).toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long",timeZone:"UTC"})}function Re(){const e=M.c(54),t=Z(),[i]=X(),{data:s}=q.useSession(),a=s?.user?.id,n=W(O,Q),l=a??"";let o;e[0]!==l?(o=ee(l),e[0]=l,e[1]=o):o=e[1];const D=!!a;let h;e[2]!==D?(h={enabled:D},e[2]=D,e[3]=h):h=e[3];const d=W(O,o,h),p=je(O),[k,v]=z.useState(null),[x,u]=z.useState(!1);let f,m,c,b,g,y,j,B,S,_;if(e[4]!==n.data||e[5]!==d.data||e[6]!==i||e[7]!==p||e[8]!==k||e[9]!==t||e[10]!==a){b=Symbol.for("react.early_return_sentinel");e:{const G=Ae({userId:a,personal:d.data??[],org:n.data??[],today:Fe(new Date)});if(m=G.find(T=>T.scope===k)??G[0],!m){b=null;break e}_="flex flex-col overflow-hidden surface";let A;e[21]!==t?(A=t("home.dailyBrief.title"),e[21]=t,e[22]=A):A=e[22];const U=r.jsxs("h2",{className:"flex min-w-0 items-baseline gap-2 text-[0.9rem] font-medium tracking-tight text-foreground",children:[A,r.jsxs("span",{className:"truncate text-xs font-normal text-muted-foreground",children:[Le(t,m.ageDays)," ·"," ",He(i.language,m.day)]})]}),Y=G.length>1&&r.jsxs(he,{type:"single",variant:"segmented",size:"sm",value:m.scope,onValueChange:T=>{(T==="personal"||T==="org")&&v(T)},children:[r.jsx(V,{value:"personal",className:"px-2.5 text-xs",children:t("home.dailyBrief.personal")}),r.jsx(V,{value:"org",className:"px-2.5 text-xs",children:t("home.dailyBrief.org")})]});let E;e[23]!==t?(E=t("home.dailyBrief.fullscreen"),e[23]=t,e[24]=E):E=e[24];let L,H;e[25]===Symbol.for("react.memo_cache_sentinel")?(L=()=>u(!0),H=r.jsx(xe,{size:14}),e[25]=L,e[26]=H):(L=e[25],H=e[26]);let F;e[27]!==E?(F=r.jsx(de,{label:E,onClick:L,children:H}),e[27]=E,e[28]=F):F=e[28];let I;e[29]!==Y||e[30]!==F?(I=r.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[Y,F]}),e[29]=Y,e[30]=F,e[31]=I):I=e[31],e[32]!==U||e[33]!==I?(c=r.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[U,I]}),e[32]=U,e[33]=I,e[34]=c):c=e[34],S="h-[32rem]",f=ye,g=m.path,y=m.filename,j=m.size,B=p(m.path)}e[4]=n.data,e[5]=d.data,e[6]=i,e[7]=p,e[8]=k,e[9]=t,e[10]=a,e[11]=f,e[12]=m,e[13]=c,e[14]=b,e[15]=g,e[16]=y,e[17]=j,e[18]=B,e[19]=S,e[20]=_}else f=e[11],m=e[12],c=e[13],b=e[14],g=e[15],y=e[16],j=e[17],B=e[18],S=e[19],_=e[20];if(b!==Symbol.for("react.early_return_sentinel"))return b;let w;e[35]!==g||e[36]!==y||e[37]!==j||e[38]!==B?(w={key:g,filename:y,size:j,downloadUrl:B},e[35]=g,e[36]=y,e[37]=j,e[38]=B,e[39]=w):w=e[39];let C;e[40]!==f||e[41]!==w?(C=r.jsx(f,{file:w}),e[40]=f,e[41]=w,e[42]=C):C=e[42];let N;e[43]!==C||e[44]!==S?(N=r.jsx("div",{className:S,children:C}),e[43]=C,e[44]=S,e[45]=N):N=e[45];let $;e[46]!==m||e[47]!==x?($=x&&r.jsx(Se,{previewPath:`${O}/${m.path}`,onClose:()=>u(!1),showSeeInLibrary:!0}),e[46]=m,e[47]=x,e[48]=$):$=e[48];let P;return e[49]!==c||e[50]!==N||e[51]!==$||e[52]!==_?(P=r.jsxs("section",{className:_,children:[c,N,$]}),e[49]=c,e[50]=N,e[51]=$,e[52]=_,e[53]=P):P=e[53],P}function Oe(e){return e<12?"morning":e<18?"afternoon":"evening"}function ze(e){const t=(e??"").trim().split(/\s+/)[0];return t||null}function Ge(e,t){return t.toLocaleDateString(e,{weekday:"long",day:"numeric",month:"long"})}function Ue(e){return e==="morning"?"overnight":"today"}function Ye(e,t){const i=new Date(t);return i.setHours(0,0,0,0),e==="morning"&&i.setHours(-6),i.getTime()}const Ze={morning:{named:"home.orgHome.greetingMorning",bare:"home.orgHome.greetingMorningBare"},afternoon:{named:"home.orgHome.greetingAfternoon",bare:"home.orgHome.greetingAfternoonBare"},evening:{named:"home.orgHome.greetingEvening",bare:"home.orgHome.greetingEveningBare"}};function qe(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx("div",{className:"flex min-h-64 items-center justify-center",children:r.jsx(ie,{className:"size-5 text-muted-foreground"})}),e[0]=t):t=e[0],t}function Ve(e,t,i,s,a){const n=Ue(i)==="overnight",l=[];if(t>0){const o=e(t===1?"home.brief.changeOne":"home.brief.changeMany",{count:t});l.push(e(n?"home.brief.overnightShipped":"home.brief.todayShipped",{changes:o}))}else s===0&&l.push(e(a>0?"home.brief.working":n?"home.brief.quietNight":"home.brief.quietDay"));return l.push(s===0?e("home.brief.waitingNone"):e(s===1?"home.brief.waitingOne":"home.brief.waitingMany",{count:s})),l.join(" ")}function We(e){const t=M.c(41),{canManageProjects:i,eyebrow:s,greeting:a,slot:n}=e,l=Z(),{org:o}=oe(),{data:D}=q.useSession();let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={pageSize:1e3},t[0]=h):h=t[0];const d=$e(h),p=ce(),k=Ce(),{recent:v}=Ne(o.slug);let x,u;if(t[1]!==d||t[2]!==i||t[3]!==o.id){u=Symbol.for("react.early_return_sentinel");e:{let N;t[6]!==o.id?(N=P=>P.id!==o.id,t[6]=o.id,t[7]=N):N=t[7];const $=Pe(d).filter(N);if($.length===0){let P;t[8]!==i?(P=r.jsx(ve,{canCreate:i}),t[8]=i,t[9]=P):P=t[9],u=P;break e}x=Be($)}t[1]=d,t[2]=i,t[3]=o.id,t[4]=x,t[5]=u}else x=t[4],u=t[5];if(u!==Symbol.for("react.early_return_sentinel"))return u;const f=x;let m,c;t[10]!==D?.user?.id||t[11]!==n||t[12]!==l||t[13]!==p?(c=_e(p,D?.user?.id),m=Ve(l,De(p,Ye(n,new Date)),n,c.length,we(p).length),t[10]=D?.user?.id,t[11]=n,t[12]=l,t[13]=p,t[14]=m,t[15]=c):(m=t[14],c=t[15]);const b=m;let g;t[16]!==s?(g=r.jsx("span",{className:"text-xs text-muted-foreground",children:s}),t[16]=s,t[17]=g):g=t[17];let y;t[18]!==b||t[19]!==a?(y=r.jsxs("h1",{className:"max-w-[40ch] text-2xl font-medium text-balance text-foreground",children:[a," ",b]}),t[18]=b,t[19]=a,t[20]=y):y=t[20];let j;t[21]!==g||t[22]!==y?(j=r.jsxs("div",{className:"flex flex-col gap-1",children:[g,y]}),t[21]=g,t[22]=y,t[23]=j):j=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=r.jsx(Re,{}),t[24]=B):B=t[24];let S;t[25]!==k.updates||t[26]!==f||t[27]!==o.slug||t[28]!==p||t[29]!==c?(S=r.jsx(fe,{waiting:c,tasks:p,mentions:k.updates,index:f,orgSlug:o.slug}),t[25]=k.updates,t[26]=f,t[27]=o.slug,t[28]=p,t[29]=c,t[30]=S):S=t[30];let _;t[31]!==o.slug||t[32]!==v?(_=r.jsx(ue,{recent:v,orgSlug:o.slug}),t[31]=o.slug,t[32]=v,t[33]=_):_=t[33];let w;t[34]!==p?(w=r.jsx(ge,{tasks:p}),t[34]=p,t[35]=w):w=t[35];let C;return t[36]!==_||t[37]!==w||t[38]!==j||t[39]!==S?(C=r.jsxs("div",{className:"flex flex-col gap-8",children:[j,B,S,_,w]}),t[36]=_,t[37]=w,t[38]=j,t[39]=S,t[40]=C):C=t[40],C}function Ke(){const e=M.c(25),t=Z(),[i]=X(),s=le("home_task_intake_enabled"),{data:a}=q.useSession(),{granted:n}=re("agents:manage");let l,o,D;if(e[0]!==i.language||e[1]!==a?.user?.name||e[2]!==t){const c=new Date,b=ze(a?.user?.name);o=Oe(c.getHours());const g=Ze[o];l=Ge(i.language,c),D=b?t(g.named,{name:b}):t(g.bare),e[0]=i.language,e[1]=a?.user?.name,e[2]=t,e[3]=l,e[4]=o,e[5]=D}else l=e[3],o=e[4],D=e[5];const h=D;let d;e[6]!==n?(d=n&&r.jsx(ke,{source:"org_home_header"}),e[6]=n,e[7]=d):d=e[7];let p;e[8]!==d?(p=r.jsx(R.Actions,{children:d}),e[8]=d,e[9]=p):p=e[9];let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(pe,{}),e[10]=k):k=e[10];let v;e[11]!==s?(v=s&&r.jsx(z.Suspense,{fallback:null,children:r.jsx(ae,{children:r.jsx(me,{children:r.jsx(se,{homeTaskComposer:!0})})})}),e[11]=s,e[12]=v):v=e[12];let x;e[13]===Symbol.for("react.memo_cache_sentinel")?(x=r.jsx(qe,{}),e[13]=x):x=e[13];let u;e[14]!==n||e[15]!==l||e[16]!==h||e[17]!==o?(u=r.jsx(z.Suspense,{fallback:x,children:r.jsx(We,{canManageProjects:n,eyebrow:l,greeting:h,slot:o})}),e[14]=n,e[15]=l,e[16]=h,e[17]=o,e[18]=u):u=e[18];let f;e[19]!==v||e[20]!==u?(f=r.jsx(R.Content,{children:r.jsxs(R.Container,{width:"wide",className:"flex min-h-full flex-col gap-10",children:[k,v,u]})}),e[19]=v,e[20]=u,e[21]=f):f=e[21];let m;return e[22]!==p||e[23]!==f?(m=r.jsxs(R,{children:[p,f]}),e[22]=p,e[23]=f,e[24]=m):m=e[24],m}function Zo(){const e=M.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(ne.Content,{children:r.jsx(Ke,{})}),e[0]=t):t=e[0],t}export{Zo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as A,b as B,a4 as Q,aq as ne,j as o,m as K,L as P,E as V,ak as oe,V as re,h as ae,ae as ie,$ as le,o as ce}from"./index-BsAwgxIf.js";import{i as Z}from"./ArrowRight-C1EmTlL-.js";import{C as me,a as fe,b as de,c as ue}from"./connect-key-BqwNSl8t.js";import{u as xe}from"./use-api-keys-lPXg3MPh.js";import{u as pe,t as ge}from"./use-task-board-items-DX_SyoB4.js";import{i as he}from"./AlertCircle-DA6gE5vw.js";import{i as H}from"./CheckCircle-Bh1gNJET.js";import{s as je}from"./Eye-DL5oRAI4.js";import{u as ve,A as ke}from"./agent-icon-B9nZhdi2.js";import{C as be,a as we,B as ye,b as Ne,c as _e}from"./chart-B0F_JJb6.js";import{P as Se}from"./project-icon-BHcF2TIr.js";import{T as X,P as Ce,A as Ie}from"./project-apps-B94DpdMu.js";import{a as Te}from"./config-Bn4oMb7y.js";import{t as ze}from"./task-route-IxeWFQf4.js";import{p as $e}from"./project-index-Be1RuOJ6.js";import{a as Re,b as Ee,c as Ae,d as Me,R as F,f as G}from"./daily-pulse-BA0ikU80.js";import{R as De}from"./ReferenceLine-DmbAcSH6.js";import{C as Le,X as Be,Y as Ke}from"./CartesianChart-Dv3UTRbp.js";const ee=[{name:"Claude",Icon:me,size:[11,14],bg:"#D97757",fg:"#fff"},{name:"Cursor",Icon:fe,size:[10,12],bg:"#000",fg:"#fff"},{name:"Codex",Icon:de,size:[10,12],bg:"#4F46E5",fg:"#fff"}];function wt(t){const e=A.c(22),{dense:a}=t,s=a===void 0?!0:a,l=B(),{org:n}=Q();let i;e[0]!==n.slug?(i={org:n.slug},e[0]=n.slug,e[1]=i):i=e[1];const c=s?"h-7 shrink-0 gap-x-2 whitespace-nowrap pl-3 pr-1.5":"flex-wrap gap-x-3 gap-y-2 py-1.5 pl-4 pr-2.5";let r;e[2]!==c?(r=K("group hidden max-w-full @3xl/panel-header:inline-flex items-center justify-center rounded-full bg-card text-sm shadow-edge transition-colors hover:bg-accent",c),e[2]=c,e[3]=r):r=e[3];let m;e[4]!==l?(m=l("home.orgHome.connectPill"),e[4]=l,e[5]=m):m=e[5];let d;e[6]!==m?(d=o.jsx("span",{className:"font-medium text-foreground",children:m}),e[6]=m,e[7]=d):d=e[7];let f;e[8]!==s?(f=ee.map(j=>{const{name:v,Icon:z,size:_,bg:S,fg:$}=j;return o.jsx("span",{title:v,className:K("flex items-center justify-center rounded-full",s?"size-5":"size-6"),style:{backgroundColor:S,color:$},children:o.jsx(z,{size:s?_[0]:_[1]})},v)}),e[8]=s,e[9]=f):f=e[9];let u;e[10]!==f?(u=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:f}),e[10]=f,e[11]=u):u=e[11];const x=s?"size-3":"size-3.5";let p;e[12]!==x?(p=K(x,"shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"),e[12]=x,e[13]=p):p=e[13];let g;e[14]!==p?(g=o.jsx(Z,{className:p}),e[14]=p,e[15]=g):g=e[15];let h;return e[16]!==g||e[17]!==i||e[18]!==r||e[19]!==d||e[20]!==u?(h=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Oe,className:r,children:[d,u,g]}),e[16]=g,e[17]=i,e[18]=r,e[19]=d,e[20]=u,e[21]=h):h=e[21],h}function Oe(){return V("connect_clients_opened",{source:"org_home"})}function yt(){const t=A.c(13),e=B(),{org:a}=Q(),{granted:s}=ne("api-keys:manage");let l;t[0]!==s?(l={enabled:s},t[0]=s,t[1]=l):l=t[1];const{data:n}=xe(l);if(s&&!n||n?.some(Fe))return null;let i;t[2]!==a.slug?(i={org:a.slug},t[2]=a.slug,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:ee.map(Ye)}),t[4]=c):c=t[4];let r;t[5]!==e?(r=e("home.orgHome.connectPill"),t[5]=e,t[6]=r):r=t[6];let m;t[7]!==r?(m=o.jsx("span",{className:"font-medium text-foreground",children:r}),t[7]=r,t[8]=m):m=t[8];let d;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Z,{className:"ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"}),t[9]=d):d=t[9];let f;return t[10]!==i||t[11]!==m?(f=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Pe,className:"group hidden items-center gap-3 rounded-xl bg-card px-4 py-2.5 text-sm shadow-edge transition-colors hover:bg-accent md:flex",children:[c,m,d]}),t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function Ye(t){const{name:e,Icon:a,size:s,bg:l,fg:n}=t;return o.jsx("span",{className:"flex size-5 items-center justify-center rounded-full",style:{backgroundColor:l,color:n},children:o.jsx(a,{size:s[0]})},e)}function Pe(){return V("connect_clients_opened",{source:"org_home"})}function Fe(t){return t.name.startsWith(ue)}function Nt(){const t=A.c(3),{locator:e}=Q(),a=oe();pe();let s;t[0]!==e||t[1]!==a?(s=ge(e,a),t[0]=e,t[1]=a,t[2]=s):s=t[2];const{data:l}=re(s);return l.items}function _t(t){const e=A.c(16),{recent:a,orgSlug:s}=t,l=B();let n,i,c,r;if(e[0]!==s||e[1]!==a||e[2]!==l){r=Symbol.for("react.early_return_sentinel");e:{let d;e[7]!==s||e[8]!==l?(d=u=>{const x={org:s,agentId:u.projectId};if(u.connection){const{label:g,icon:h,id:j,toolName:v}=u.connection;return[{key:`${j}:${v}:${u.projectId}`,label:g,project:u.projectTitle,link:{to:le.app,params:{...x,connectionId:j,toolName:v}},glyph:o.jsx(ke,{icon:h,name:g,size:"md",className:X})}]}const p=Ce[u.app];return p?[{key:`${u.app}:${u.projectId}`,label:l(p.labelKey),project:u.projectTitle,link:{to:p.to,params:x},glyph:o.jsx("span",{className:K(X,"flex items-center",p.tone),children:o.jsx(p.Icon,{size:24})})}]:[]},e[7]=s,e[8]=l,e[9]=d):d=e[9];const f=a.slice(0,8).flatMap(d);if(f.length===0){r=null;break e}n=Ie,e[10]!==l?(i=l("home.overview.recentApps"),e[10]=l,e[11]=i):i=e[11],c=f.map(Ue)}e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r}else n=e[3],i=e[4],c=e[5],r=e[6];if(r!==Symbol.for("react.early_return_sentinel"))return r;let m;return e[12]!==n||e[13]!==i||e[14]!==c?(m=o.jsx(n,{title:i,children:c}),e[12]=n,e[13]=i,e[14]=c,e[15]=m):m=e[15],m}function Ue(t){return o.jsxs(P,{to:t.link.to,params:t.link.params,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 active:scale-[0.97]",children:[t.glyph,o.jsxs("span",{className:"flex w-full min-w-0 flex-col",children:[o.jsx("span",{className:"line-clamp-2 text-xs font-medium break-words text-foreground",children:t.label}),o.jsx("span",{className:"truncate text-xs text-muted-foreground",children:t.project})]})]},t.key)}function qe(t,e){return{to:ie.tasks,params:{org:t,taskKey:ze(t,e)}}}const He={answer:{Icon:ve,tone:"text-warning",reasonKey:"home.needsYou.reasonAnswer"},failed:{Icon:he,tone:"text-destructive",reasonKey:"home.overview.reasonFailed"},review:{Icon:je,tone:"text-warning",reasonKey:"home.needsYou.reasonReview"},running:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.overview.reasonRunning"},assigned:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.needsYou.reasonAssigned"}},J=["answer","failed","review","running","assigned"];function Qe(t,e){const a=new Set,s=[],l=(n,i)=>{a.has(n.id)||(a.add(n.id),s.push({task:n,kind:i}))};for(const n of t)l(n,Re(n));for(const n of e){if(n.status==="done"||n.status==="archived")continue;const i=Te(n);i==="failed"?l(n,"failed"):i==="running"&&l(n,"running")}return s.sort((n,i)=>J.indexOf(n.kind)-J.indexOf(i.kind))}function Xe(t,e){const a=new Map;for(const r of e){if(r.action!=="mentioned"&&r.action!=="commented")continue;const m=a.get(r.taskBoardItemId);(!m||m.action!=="mentioned"&&r.action==="mentioned")&&a.set(r.taskBoardItemId,r)}const s=new Set(t.map(r=>r.task.id)),l=[...a.values()].filter(r=>!s.has(r.taskBoardItemId)).map(r=>({kind:"mention",task:null,mention:r})),n=t.map(({task:r,kind:m})=>({kind:m,task:r,mention:a.get(r.id)??null})),i=n.filter(r=>r.kind==="answer"),c=n.filter(r=>r.kind!=="answer");return[...i,...l,...c]}const Ge=7;function W(t){const e=A.c(6),{mention:a}=t,s=B();let l;e[0]!==a.actorName||e[1]!==s?(l=a.actorName??s("home.overview.someone"),e[0]=a.actorName,e[1]=s,e[2]=l):l=e[2];const n=l,i=a.actorImage??void 0;let c;return e[3]!==n||e[4]!==i?(c=o.jsx(ce,{url:i,fallback:n,shape:"circle",size:"2xs"}),e[3]=n,e[4]=i,e[5]=c):c=e[5],c}function Je(t,e){const a=t.actorName??e("home.overview.someone");return e(t.action==="mentioned"?"home.overview.mentioned":"home.overview.commented",{actor:a})}function St(t){const e=A.c(12),{waiting:a,tasks:s,mentions:l,index:n,orgSlug:i}=t,c=B();let r;if(e[0]!==n||e[1]!==l||e[2]!==i||e[3]!==c||e[4]!==s||e[5]!==a){const m=Xe(Qe(a,s),l);let d;e[7]!==c?(d=c("home.overview.forYou"),e[7]=c,e[8]=d):d=e[8];const f=m.length>0&&o.jsx("span",{className:"text-muted-foreground tabular-nums",children:m.length});let u;e[9]!==d||e[10]!==f?(u=o.jsxs("h2",{className:"flex items-center gap-2 px-2 pt-1 pb-1 text-sm font-medium text-foreground",children:[d,f]}),e[9]=d,e[10]=f,e[11]=u):u=e[11],r=o.jsxs("section",{className:"flex flex-col gap-2 surface p-3",children:[u,m.length===0?o.jsxs("div",{className:"flex flex-col items-center gap-3 px-2 py-10 text-center",children:[o.jsx("span",{className:"flex size-10 items-center justify-center rounded-full bg-success/10 text-success",children:o.jsx(H,{size:20})}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:c("home.overview.allClearTitle")}),o.jsx("p",{className:"text-sm text-muted-foreground",children:c("home.overview.allClearDescription")})]})]}):o.jsx("div",{className:"flex flex-col",children:m.slice(0,Ge).map(x=>{const p=x.kind==="mention"?{id:x.mention.taskBoardItemId,keySeq:x.mention.taskKeySeq,title:x.mention.taskTitle}:x.task,g=x.task?$e(x.task,n):null,h=x.kind==="mention"?null:He[x.kind],j=x.mention?Je(x.mention,c):h?c(h.reasonKey):"";return o.jsxs(P,{...qe(i,p),className:"group flex h-10 items-center gap-3 rounded-lg px-2 transition-colors hover:bg-accent",children:[o.jsx("span",{className:K("flex size-4 shrink-0 items-center justify-center",h?.tone),children:x.kind==="mention"?o.jsx(W,{mention:x.mention}):x.kind==="running"?o.jsx(ae,{className:"size-3.5"}):h?o.jsx(h.Icon,{size:16}):null}),o.jsx("span",{className:"min-w-0 truncate text-sm text-foreground",children:p.title}),o.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-sm text-muted-foreground",children:[x.kind!=="mention"&&x.mention&&o.jsx(W,{mention:x.mention}),o.jsx("span",{className:"truncate",children:j})]}),g&&o.jsxs("span",{className:"hidden max-w-48 shrink-0 items-center gap-1.5 text-xs text-muted-foreground md:flex",children:[o.jsx(Se,{icon:g.icon,name:g.title}),o.jsx("span",{className:"truncate",children:g.title})]})]},p.id)})})]}),e[0]=n,e[1]=l,e[2]=i,e[3]=c,e[4]=s,e[5]=a,e[6]=r}else r=e[6];return r}function We(t){if(t<=0)return 1;const e=10**Math.floor(Math.log10(t));for(const a of[1,2,2.5,5,10])if(a*e>=t)return a*e;return 10*e}const Ve=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function U(t){const e=A.c(52),{series:a,start:s,format:l,label:n,averageLabel:i}=t,c=We(Math.max(...a,0));let r;e[0]!==a?(r=a.length===0?0:a.reduce(et,0)/a.length,e[0]=a,e[1]=r):r=e[1];const m=r;let d;if(e[2]!==a||e[3]!==s){let E;e[5]!==s?(E=(te,se)=>({day:Ve.format(new Date(s.getTime()+se*864e5)),value:te}),e[5]=s,e[6]=E):E=e[6],d=a.map(E),e[2]=a,e[3]=s,e[4]=d}else d=e[4];const f=d,u=Math.max(f.length-1,0),x=f[0]?.day;let p;e[7]!==u||e[8]!==f?(p=f[Math.round(u/2)]?.day,e[7]=u,e[8]=f,e[9]=p):p=e[9];const g=f[u]?.day;let h;e[10]!==x||e[11]!==p||e[12]!==g?(h=[x,p,g].filter(Ze),e[10]=x,e[11]=p,e[12]=g,e[13]=h):h=e[13];const j=h;let v;e[14]!==n?(v={value:{label:n,color:"var(--chart-1)"}},e[14]=n,e[15]=v):v=e[15];const z=v;let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_={top:8,right:0,bottom:0,left:0},e[16]=_):_=e[16];let S;e[17]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(Le,{vertical:!1,strokeDasharray:"4 4",stroke:"var(--border)"}),e[17]=S):S=e[17];let $,R;e[18]===Symbol.for("react.memo_cache_sentinel")?($={stroke:"var(--border)"},R={fontSize:12,fill:"var(--muted-foreground)"},e[18]=$,e[19]=R):($=e[18],R=e[19]);let b;e[20]!==j?(b=o.jsx(Be,{dataKey:"day",ticks:j,interval:"preserveStartEnd",tickLine:!1,axisLine:$,tick:R,tickMargin:8}),e[20]=j,e[21]=b):b=e[21];let I;e[22]!==c?(I=[0,c],e[22]=c,e[23]=I):I=e[23];const T=c/2;let w;e[24]!==c||e[25]!==T?(w=[0,T,c],e[24]=c,e[25]=T,e[26]=w):w=e[26];let y;e[27]!==l?(y=E=>E===0?"0":l(E),e[27]=l,e[28]=y):y=e[28];let M;e[29]===Symbol.for("react.memo_cache_sentinel")?(M={fontSize:12,fill:"var(--muted-foreground)"},e[29]=M):M=e[29];let N;e[30]!==I||e[31]!==w||e[32]!==y?(N=o.jsx(Ke,{orientation:"right",domain:I,ticks:w,tickFormatter:y,tickLine:!1,axisLine:!1,tick:M,width:44}),e[30]=I,e[31]=w,e[32]=y,e[33]=N):N=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C={fill:"var(--muted)",opacity:.6},e[34]=C):C=e[34];let k;e[35]!==l||e[36]!==n?(k=o.jsx(be,{cursor:C,content:o.jsx(we,{indicator:"line",formatter:E=>o.jsxs("div",{className:"flex flex-1 items-center justify-between gap-3 leading-none",children:[o.jsx("span",{className:"text-muted-foreground",children:n}),o.jsx("span",{className:"font-medium text-foreground tabular-nums",children:l(Number(E))})]})})}),e[35]=l,e[36]=n,e[37]=k):k=e[37];let D;e[38]!==m||e[39]!==i||e[40]!==l?(D=m>0&&o.jsx(De,{y:m,stroke:"var(--foreground)",strokeOpacity:.6,strokeDasharray:"2 2",label:{value:i(l(m)),position:"insideBottomLeft",fontSize:12,fill:"var(--foreground)"}}),e[38]=m,e[39]=i,e[40]=l,e[41]=D):D=e[41];let O;e[42]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsx(ye,{dataKey:"value",fill:"var(--color-value)",radius:[2,2,0,0],maxBarSize:4,animationDuration:300}),e[42]=O):O=e[42];let L;e[43]!==f||e[44]!==b||e[45]!==N||e[46]!==k||e[47]!==D?(L=o.jsxs(Ne,{data:f,margin:_,barCategoryGap:"30%",children:[S,b,N,k,D,O]}),e[43]=f,e[44]=b,e[45]=N,e[46]=k,e[47]=D,e[48]=L):L=e[48];let Y;return e[49]!==z||e[50]!==L?(Y=o.jsx(_e,{config:z,className:"aspect-auto h-[159px] w-full",children:L}),e[49]=z,e[50]=L,e[51]=Y):Y=e[51],Y}function Ze(t){return!!t}function et(t,e){return t+e}function q(t){const e=A.c(10),{label:a,value:s,chart:l}=t;let n;e[0]!==a?(n=o.jsx("span",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=n):n=e[1];let i;e[2]!==s?(i=o.jsx("span",{className:"text-[32px] leading-none font-medium tracking-tight tabular-nums text-foreground",children:s}),e[2]=s,e[3]=i):i=e[3];let c;e[4]!==n||e[5]!==i?(c=o.jsxs("div",{className:"flex flex-col gap-2.5",children:[n,i]}),e[4]=n,e[5]=i,e[6]=c):c=e[6];let r;return e[7]!==l||e[8]!==c?(r=o.jsxs("section",{className:"flex flex-col gap-6 surface p-5",children:[c,l]}),e[7]=l,e[8]=c,e[9]=r):r=e[9],r}function Ct(t){const e=A.c(58),{tasks:a}=t,s=B();let l,n,i,c,r,m,d,f,u;if(e[0]!==s||e[1]!==a){const j=Ee(a,F),v=Ae(a,F);i=Me(a);const z=st;let _,S;if(e[11]===Symbol.for("react.memo_cache_sentinel")){const k=new Date;S=new Date(k.getFullYear(),k.getMonth(),k.getDate()-(F-1)),_=new Date(k.getFullYear(),k.getMonth(),1),e[11]=_,e[12]=S}else _=e[11],S=e[12];c=_;const $=tt;let R;e[13]!==s?(R=k=>s("home.overview.average",{value:k}),e[13]=s,e[14]=R):R=e[14],n=R,d="grid gap-4 md:grid-cols-3";let b;e[15]!==s?(b=s("home.overview.delivered"),e[15]=s,e[16]=b):b=e[16];const I=String(z(j));let T;e[17]!==s?(T=s("home.overview.delivered"),e[17]=s,e[18]=T):T=e[18];let w;e[19]!==n||e[20]!==j||e[21]!==T?(w=o.jsx(U,{label:T,series:j,start:S,format:$,averageLabel:n}),e[19]=n,e[20]=j,e[21]=T,e[22]=w):w=e[22],e[23]!==w||e[24]!==b||e[25]!==I?(f=o.jsx(q,{label:b,value:I,chart:w}),e[23]=w,e[24]=b,e[25]=I,e[26]=f):f=e[26];let y;e[27]!==s?(y=s("home.overview.agentRuns"),e[27]=s,e[28]=y):y=e[28];const M=String(z(v));let N;e[29]!==s?(N=s("home.overview.agentRuns"),e[29]=s,e[30]=N):N=e[30];let C;e[31]!==n||e[32]!==v||e[33]!==N?(C=o.jsx(U,{label:N,series:v,start:S,format:$,averageLabel:n}),e[31]=n,e[32]=v,e[33]=N,e[34]=C):C=e[34],e[35]!==y||e[36]!==M||e[37]!==C?(u=o.jsx(q,{label:y,value:M,chart:C}),e[35]=y,e[36]=M,e[37]=C,e[38]=u):u=e[38],l=q,e[39]!==s?(r=s("home.overview.agentCost"),e[39]=s,e[40]=r):r=e[40],m=G(z(i)),e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r,e[7]=m,e[8]=d,e[9]=f,e[10]=u}else l=e[2],n=e[3],i=e[4],c=e[5],r=e[6],m=e[7],d=e[8],f=e[9],u=e[10];let x;e[41]!==s?(x=s("home.overview.agentCost"),e[41]=s,e[42]=x):x=e[42];let p;e[43]!==n||e[44]!==i||e[45]!==c||e[46]!==x?(p=o.jsx(U,{label:x,series:i,start:c,format:G,averageLabel:n}),e[43]=n,e[44]=i,e[45]=c,e[46]=x,e[47]=p):p=e[47];let g;e[48]!==l||e[49]!==r||e[50]!==m||e[51]!==p?(g=o.jsx(l,{label:r,value:m,chart:p}),e[48]=l,e[49]=r,e[50]=m,e[51]=p,e[52]=g):g=e[52];let h;return e[53]!==d||e[54]!==f||e[55]!==u||e[56]!==g?(h=o.jsxs("div",{className:d,children:[f,u,g]}),e[53]=d,e[54]=f,e[55]=u,e[56]=g,e[57]=h):h=e[57],h}function tt(t){return String(Math.round(t*10)/10)}function st(t){return t.reduce(nt,0)}function nt(t,e){return t+e}export{yt as C,St as F,Ct as M,_t as R,wt as a,Nt as u};
|
|
1
|
+
import{c as A,b as B,a4 as Q,aq as ne,j as o,m as K,L as P,E as V,ak as oe,V as re,h as ae,ae as ie,$ as le,o as ce}from"./index-CnlrqsCd.js";import{i as Z}from"./ArrowRight-DdCk_HCk.js";import{C as me,a as fe,b as de,c as ue}from"./connect-key-CeYjF2jt.js";import{u as xe}from"./use-api-keys-DYWSrleO.js";import{u as pe,t as ge}from"./use-task-board-items-DT4Yu9ci.js";import{i as he}from"./AlertCircle-BckhzGo9.js";import{i as H}from"./CheckCircle-p76CoLTf.js";import{s as je}from"./Eye-B-zZzOpR.js";import{u as ve,A as ke}from"./agent-icon-Da3tHBMv.js";import{C as be,a as we,B as ye,b as Ne,c as _e}from"./chart-BvG6MEBA.js";import{P as Se}from"./project-icon-DsXJkCkm.js";import{T as X,P as Ce,A as Ie}from"./project-apps-BcbysZgz.js";import{a as Te}from"./config-CheVupom.js";import{t as ze}from"./task-route-DnF8qwEX.js";import{p as $e}from"./project-index-D_813h_x.js";import{a as Re,b as Ee,c as Ae,d as Me,R as F,f as G}from"./daily-pulse-eHpvhv3c.js";import{R as De}from"./ReferenceLine-CVaZ4J9I.js";import{C as Le,X as Be,Y as Ke}from"./CartesianChart-2VySs-qY.js";const ee=[{name:"Claude",Icon:me,size:[11,14],bg:"#D97757",fg:"#fff"},{name:"Cursor",Icon:fe,size:[10,12],bg:"#000",fg:"#fff"},{name:"Codex",Icon:de,size:[10,12],bg:"#4F46E5",fg:"#fff"}];function wt(t){const e=A.c(22),{dense:a}=t,s=a===void 0?!0:a,l=B(),{org:n}=Q();let i;e[0]!==n.slug?(i={org:n.slug},e[0]=n.slug,e[1]=i):i=e[1];const c=s?"h-7 shrink-0 gap-x-2 whitespace-nowrap pl-3 pr-1.5":"flex-wrap gap-x-3 gap-y-2 py-1.5 pl-4 pr-2.5";let r;e[2]!==c?(r=K("group hidden max-w-full @3xl/panel-header:inline-flex items-center justify-center rounded-full bg-card text-sm shadow-edge transition-colors hover:bg-accent",c),e[2]=c,e[3]=r):r=e[3];let m;e[4]!==l?(m=l("home.orgHome.connectPill"),e[4]=l,e[5]=m):m=e[5];let d;e[6]!==m?(d=o.jsx("span",{className:"font-medium text-foreground",children:m}),e[6]=m,e[7]=d):d=e[7];let f;e[8]!==s?(f=ee.map(j=>{const{name:v,Icon:z,size:_,bg:S,fg:$}=j;return o.jsx("span",{title:v,className:K("flex items-center justify-center rounded-full",s?"size-5":"size-6"),style:{backgroundColor:S,color:$},children:o.jsx(z,{size:s?_[0]:_[1]})},v)}),e[8]=s,e[9]=f):f=e[9];let u;e[10]!==f?(u=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:f}),e[10]=f,e[11]=u):u=e[11];const x=s?"size-3":"size-3.5";let p;e[12]!==x?(p=K(x,"shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"),e[12]=x,e[13]=p):p=e[13];let g;e[14]!==p?(g=o.jsx(Z,{className:p}),e[14]=p,e[15]=g):g=e[15];let h;return e[16]!==g||e[17]!==i||e[18]!==r||e[19]!==d||e[20]!==u?(h=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Oe,className:r,children:[d,u,g]}),e[16]=g,e[17]=i,e[18]=r,e[19]=d,e[20]=u,e[21]=h):h=e[21],h}function Oe(){return V("connect_clients_opened",{source:"org_home"})}function yt(){const t=A.c(13),e=B(),{org:a}=Q(),{granted:s}=ne("api-keys:manage");let l;t[0]!==s?(l={enabled:s},t[0]=s,t[1]=l):l=t[1];const{data:n}=xe(l);if(s&&!n||n?.some(Fe))return null;let i;t[2]!==a.slug?(i={org:a.slug},t[2]=a.slug,t[3]=i):i=t[3];let c;t[4]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":"true",className:"flex items-center gap-1",children:ee.map(Ye)}),t[4]=c):c=t[4];let r;t[5]!==e?(r=e("home.orgHome.connectPill"),t[5]=e,t[6]=r):r=t[6];let m;t[7]!==r?(m=o.jsx("span",{className:"font-medium text-foreground",children:r}),t[7]=r,t[8]=m):m=t[8];let d;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Z,{className:"ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"}),t[9]=d):d=t[9];let f;return t[10]!==i||t[11]!==m?(f=o.jsxs(P,{to:"/$org/settings/connect",params:i,onClick:Pe,className:"group hidden items-center gap-3 rounded-xl bg-card px-4 py-2.5 text-sm shadow-edge transition-colors hover:bg-accent md:flex",children:[c,m,d]}),t[10]=i,t[11]=m,t[12]=f):f=t[12],f}function Ye(t){const{name:e,Icon:a,size:s,bg:l,fg:n}=t;return o.jsx("span",{className:"flex size-5 items-center justify-center rounded-full",style:{backgroundColor:l,color:n},children:o.jsx(a,{size:s[0]})},e)}function Pe(){return V("connect_clients_opened",{source:"org_home"})}function Fe(t){return t.name.startsWith(ue)}function Nt(){const t=A.c(3),{locator:e}=Q(),a=oe();pe();let s;t[0]!==e||t[1]!==a?(s=ge(e,a),t[0]=e,t[1]=a,t[2]=s):s=t[2];const{data:l}=re(s);return l.items}function _t(t){const e=A.c(16),{recent:a,orgSlug:s}=t,l=B();let n,i,c,r;if(e[0]!==s||e[1]!==a||e[2]!==l){r=Symbol.for("react.early_return_sentinel");e:{let d;e[7]!==s||e[8]!==l?(d=u=>{const x={org:s,agentId:u.projectId};if(u.connection){const{label:g,icon:h,id:j,toolName:v}=u.connection;return[{key:`${j}:${v}:${u.projectId}`,label:g,project:u.projectTitle,link:{to:le.app,params:{...x,connectionId:j,toolName:v}},glyph:o.jsx(ke,{icon:h,name:g,size:"md",className:X})}]}const p=Ce[u.app];return p?[{key:`${u.app}:${u.projectId}`,label:l(p.labelKey),project:u.projectTitle,link:{to:p.to,params:x},glyph:o.jsx("span",{className:K(X,"flex items-center",p.tone),children:o.jsx(p.Icon,{size:24})})}]:[]},e[7]=s,e[8]=l,e[9]=d):d=e[9];const f=a.slice(0,8).flatMap(d);if(f.length===0){r=null;break e}n=Ie,e[10]!==l?(i=l("home.overview.recentApps"),e[10]=l,e[11]=i):i=e[11],c=f.map(Ue)}e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r}else n=e[3],i=e[4],c=e[5],r=e[6];if(r!==Symbol.for("react.early_return_sentinel"))return r;let m;return e[12]!==n||e[13]!==i||e[14]!==c?(m=o.jsx(n,{title:i,children:c}),e[12]=n,e[13]=i,e[14]=c,e[15]=m):m=e[15],m}function Ue(t){return o.jsxs(P,{to:t.link.to,params:t.link.params,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 active:scale-[0.97]",children:[t.glyph,o.jsxs("span",{className:"flex w-full min-w-0 flex-col",children:[o.jsx("span",{className:"line-clamp-2 text-xs font-medium break-words text-foreground",children:t.label}),o.jsx("span",{className:"truncate text-xs text-muted-foreground",children:t.project})]})]},t.key)}function qe(t,e){return{to:ie.tasks,params:{org:t,taskKey:ze(t,e)}}}const He={answer:{Icon:ve,tone:"text-warning",reasonKey:"home.needsYou.reasonAnswer"},failed:{Icon:he,tone:"text-destructive",reasonKey:"home.overview.reasonFailed"},review:{Icon:je,tone:"text-warning",reasonKey:"home.needsYou.reasonReview"},running:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.overview.reasonRunning"},assigned:{Icon:H,tone:"text-muted-foreground",reasonKey:"home.needsYou.reasonAssigned"}},J=["answer","failed","review","running","assigned"];function Qe(t,e){const a=new Set,s=[],l=(n,i)=>{a.has(n.id)||(a.add(n.id),s.push({task:n,kind:i}))};for(const n of t)l(n,Re(n));for(const n of e){if(n.status==="done"||n.status==="archived")continue;const i=Te(n);i==="failed"?l(n,"failed"):i==="running"&&l(n,"running")}return s.sort((n,i)=>J.indexOf(n.kind)-J.indexOf(i.kind))}function Xe(t,e){const a=new Map;for(const r of e){if(r.action!=="mentioned"&&r.action!=="commented")continue;const m=a.get(r.taskBoardItemId);(!m||m.action!=="mentioned"&&r.action==="mentioned")&&a.set(r.taskBoardItemId,r)}const s=new Set(t.map(r=>r.task.id)),l=[...a.values()].filter(r=>!s.has(r.taskBoardItemId)).map(r=>({kind:"mention",task:null,mention:r})),n=t.map(({task:r,kind:m})=>({kind:m,task:r,mention:a.get(r.id)??null})),i=n.filter(r=>r.kind==="answer"),c=n.filter(r=>r.kind!=="answer");return[...i,...l,...c]}const Ge=7;function W(t){const e=A.c(6),{mention:a}=t,s=B();let l;e[0]!==a.actorName||e[1]!==s?(l=a.actorName??s("home.overview.someone"),e[0]=a.actorName,e[1]=s,e[2]=l):l=e[2];const n=l,i=a.actorImage??void 0;let c;return e[3]!==n||e[4]!==i?(c=o.jsx(ce,{url:i,fallback:n,shape:"circle",size:"2xs"}),e[3]=n,e[4]=i,e[5]=c):c=e[5],c}function Je(t,e){const a=t.actorName??e("home.overview.someone");return e(t.action==="mentioned"?"home.overview.mentioned":"home.overview.commented",{actor:a})}function St(t){const e=A.c(12),{waiting:a,tasks:s,mentions:l,index:n,orgSlug:i}=t,c=B();let r;if(e[0]!==n||e[1]!==l||e[2]!==i||e[3]!==c||e[4]!==s||e[5]!==a){const m=Xe(Qe(a,s),l);let d;e[7]!==c?(d=c("home.overview.forYou"),e[7]=c,e[8]=d):d=e[8];const f=m.length>0&&o.jsx("span",{className:"text-muted-foreground tabular-nums",children:m.length});let u;e[9]!==d||e[10]!==f?(u=o.jsxs("h2",{className:"flex items-center gap-2 px-2 pt-1 pb-1 text-sm font-medium text-foreground",children:[d,f]}),e[9]=d,e[10]=f,e[11]=u):u=e[11],r=o.jsxs("section",{className:"flex flex-col gap-2 surface p-3",children:[u,m.length===0?o.jsxs("div",{className:"flex flex-col items-center gap-3 px-2 py-10 text-center",children:[o.jsx("span",{className:"flex size-10 items-center justify-center rounded-full bg-success/10 text-success",children:o.jsx(H,{size:20})}),o.jsxs("div",{className:"flex flex-col gap-1",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:c("home.overview.allClearTitle")}),o.jsx("p",{className:"text-sm text-muted-foreground",children:c("home.overview.allClearDescription")})]})]}):o.jsx("div",{className:"flex flex-col",children:m.slice(0,Ge).map(x=>{const p=x.kind==="mention"?{id:x.mention.taskBoardItemId,keySeq:x.mention.taskKeySeq,title:x.mention.taskTitle}:x.task,g=x.task?$e(x.task,n):null,h=x.kind==="mention"?null:He[x.kind],j=x.mention?Je(x.mention,c):h?c(h.reasonKey):"";return o.jsxs(P,{...qe(i,p),className:"group flex h-10 items-center gap-3 rounded-lg px-2 transition-colors hover:bg-accent",children:[o.jsx("span",{"aria-hidden":"true",className:K("flex size-4 shrink-0 items-center justify-center",h?.tone),children:x.kind==="mention"?o.jsx(W,{mention:x.mention}):x.kind==="running"?o.jsx(ae,{className:"size-3.5"}):h?o.jsx(h.Icon,{size:16}):null}),o.jsx("span",{className:"min-w-0 truncate text-sm text-foreground",children:p.title}),o.jsxs("span",{className:"flex min-w-0 flex-1 items-center gap-1.5 text-sm text-muted-foreground",children:[x.kind!=="mention"&&x.mention&&o.jsx("span",{"aria-hidden":"true",children:o.jsx(W,{mention:x.mention})}),o.jsx("span",{className:"truncate",children:j})]}),g&&o.jsxs("span",{className:"hidden max-w-48 shrink-0 items-center gap-1.5 text-xs text-muted-foreground md:flex",children:[o.jsx(Se,{icon:g.icon,name:g.title}),o.jsx("span",{className:"truncate",children:g.title})]})]},p.id)})})]}),e[0]=n,e[1]=l,e[2]=i,e[3]=c,e[4]=s,e[5]=a,e[6]=r}else r=e[6];return r}function We(t){if(t<=0)return 1;const e=10**Math.floor(Math.log10(t));for(const a of[1,2,2.5,5,10])if(a*e>=t)return a*e;return 10*e}const Ve=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric"});function U(t){const e=A.c(52),{series:a,start:s,format:l,label:n,averageLabel:i}=t,c=We(Math.max(...a,0));let r;e[0]!==a?(r=a.length===0?0:a.reduce(et,0)/a.length,e[0]=a,e[1]=r):r=e[1];const m=r;let d;if(e[2]!==a||e[3]!==s){let E;e[5]!==s?(E=(te,se)=>({day:Ve.format(new Date(s.getTime()+se*864e5)),value:te}),e[5]=s,e[6]=E):E=e[6],d=a.map(E),e[2]=a,e[3]=s,e[4]=d}else d=e[4];const f=d,u=Math.max(f.length-1,0),x=f[0]?.day;let p;e[7]!==u||e[8]!==f?(p=f[Math.round(u/2)]?.day,e[7]=u,e[8]=f,e[9]=p):p=e[9];const g=f[u]?.day;let h;e[10]!==x||e[11]!==p||e[12]!==g?(h=[x,p,g].filter(Ze),e[10]=x,e[11]=p,e[12]=g,e[13]=h):h=e[13];const j=h;let v;e[14]!==n?(v={value:{label:n,color:"var(--chart-1)"}},e[14]=n,e[15]=v):v=e[15];const z=v;let _;e[16]===Symbol.for("react.memo_cache_sentinel")?(_={top:8,right:0,bottom:0,left:0},e[16]=_):_=e[16];let S;e[17]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsx(Le,{vertical:!1,strokeDasharray:"4 4",stroke:"var(--border)"}),e[17]=S):S=e[17];let $,R;e[18]===Symbol.for("react.memo_cache_sentinel")?($={stroke:"var(--border)"},R={fontSize:12,fill:"var(--muted-foreground)"},e[18]=$,e[19]=R):($=e[18],R=e[19]);let b;e[20]!==j?(b=o.jsx(Be,{dataKey:"day",ticks:j,interval:"preserveStartEnd",tickLine:!1,axisLine:$,tick:R,tickMargin:8}),e[20]=j,e[21]=b):b=e[21];let I;e[22]!==c?(I=[0,c],e[22]=c,e[23]=I):I=e[23];const T=c/2;let w;e[24]!==c||e[25]!==T?(w=[0,T,c],e[24]=c,e[25]=T,e[26]=w):w=e[26];let y;e[27]!==l?(y=E=>E===0?"0":l(E),e[27]=l,e[28]=y):y=e[28];let M;e[29]===Symbol.for("react.memo_cache_sentinel")?(M={fontSize:12,fill:"var(--muted-foreground)"},e[29]=M):M=e[29];let N;e[30]!==I||e[31]!==w||e[32]!==y?(N=o.jsx(Ke,{orientation:"right",domain:I,ticks:w,tickFormatter:y,tickLine:!1,axisLine:!1,tick:M,width:44}),e[30]=I,e[31]=w,e[32]=y,e[33]=N):N=e[33];let C;e[34]===Symbol.for("react.memo_cache_sentinel")?(C={fill:"var(--muted)",opacity:.6},e[34]=C):C=e[34];let k;e[35]!==l||e[36]!==n?(k=o.jsx(be,{cursor:C,content:o.jsx(we,{indicator:"line",formatter:E=>o.jsxs("div",{className:"flex flex-1 items-center justify-between gap-3 leading-none",children:[o.jsx("span",{className:"text-muted-foreground",children:n}),o.jsx("span",{className:"font-medium text-foreground tabular-nums",children:l(Number(E))})]})})}),e[35]=l,e[36]=n,e[37]=k):k=e[37];let D;e[38]!==m||e[39]!==i||e[40]!==l?(D=m>0&&o.jsx(De,{y:m,stroke:"var(--foreground)",strokeOpacity:.6,strokeDasharray:"2 2",label:{value:i(l(m)),position:"insideBottomLeft",fontSize:12,fill:"var(--foreground)"}}),e[38]=m,e[39]=i,e[40]=l,e[41]=D):D=e[41];let O;e[42]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsx(ye,{dataKey:"value",fill:"var(--color-value)",radius:[2,2,0,0],maxBarSize:4,animationDuration:300}),e[42]=O):O=e[42];let L;e[43]!==f||e[44]!==b||e[45]!==N||e[46]!==k||e[47]!==D?(L=o.jsxs(Ne,{data:f,margin:_,barCategoryGap:"30%",children:[S,b,N,k,D,O]}),e[43]=f,e[44]=b,e[45]=N,e[46]=k,e[47]=D,e[48]=L):L=e[48];let Y;return e[49]!==z||e[50]!==L?(Y=o.jsx(_e,{config:z,className:"aspect-auto h-[159px] w-full",children:L}),e[49]=z,e[50]=L,e[51]=Y):Y=e[51],Y}function Ze(t){return!!t}function et(t,e){return t+e}function q(t){const e=A.c(10),{label:a,value:s,chart:l}=t;let n;e[0]!==a?(n=o.jsx("span",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=n):n=e[1];let i;e[2]!==s?(i=o.jsx("span",{className:"text-[32px] leading-none font-medium tracking-tight tabular-nums text-foreground",children:s}),e[2]=s,e[3]=i):i=e[3];let c;e[4]!==n||e[5]!==i?(c=o.jsxs("div",{className:"flex flex-col gap-2.5",children:[n,i]}),e[4]=n,e[5]=i,e[6]=c):c=e[6];let r;return e[7]!==l||e[8]!==c?(r=o.jsxs("section",{className:"flex flex-col gap-6 surface p-5",children:[c,l]}),e[7]=l,e[8]=c,e[9]=r):r=e[9],r}function Ct(t){const e=A.c(58),{tasks:a}=t,s=B();let l,n,i,c,r,m,d,f,u;if(e[0]!==s||e[1]!==a){const j=Ee(a,F),v=Ae(a,F);i=Me(a);const z=st;let _,S;if(e[11]===Symbol.for("react.memo_cache_sentinel")){const k=new Date;S=new Date(k.getFullYear(),k.getMonth(),k.getDate()-(F-1)),_=new Date(k.getFullYear(),k.getMonth(),1),e[11]=_,e[12]=S}else _=e[11],S=e[12];c=_;const $=tt;let R;e[13]!==s?(R=k=>s("home.overview.average",{value:k}),e[13]=s,e[14]=R):R=e[14],n=R,d="grid gap-4 md:grid-cols-3";let b;e[15]!==s?(b=s("home.overview.delivered"),e[15]=s,e[16]=b):b=e[16];const I=String(z(j));let T;e[17]!==s?(T=s("home.overview.delivered"),e[17]=s,e[18]=T):T=e[18];let w;e[19]!==n||e[20]!==j||e[21]!==T?(w=o.jsx(U,{label:T,series:j,start:S,format:$,averageLabel:n}),e[19]=n,e[20]=j,e[21]=T,e[22]=w):w=e[22],e[23]!==w||e[24]!==b||e[25]!==I?(f=o.jsx(q,{label:b,value:I,chart:w}),e[23]=w,e[24]=b,e[25]=I,e[26]=f):f=e[26];let y;e[27]!==s?(y=s("home.overview.agentRuns"),e[27]=s,e[28]=y):y=e[28];const M=String(z(v));let N;e[29]!==s?(N=s("home.overview.agentRuns"),e[29]=s,e[30]=N):N=e[30];let C;e[31]!==n||e[32]!==v||e[33]!==N?(C=o.jsx(U,{label:N,series:v,start:S,format:$,averageLabel:n}),e[31]=n,e[32]=v,e[33]=N,e[34]=C):C=e[34],e[35]!==y||e[36]!==M||e[37]!==C?(u=o.jsx(q,{label:y,value:M,chart:C}),e[35]=y,e[36]=M,e[37]=C,e[38]=u):u=e[38],l=q,e[39]!==s?(r=s("home.overview.agentCost"),e[39]=s,e[40]=r):r=e[40],m=G(z(i)),e[0]=s,e[1]=a,e[2]=l,e[3]=n,e[4]=i,e[5]=c,e[6]=r,e[7]=m,e[8]=d,e[9]=f,e[10]=u}else l=e[2],n=e[3],i=e[4],c=e[5],r=e[6],m=e[7],d=e[8],f=e[9],u=e[10];let x;e[41]!==s?(x=s("home.overview.agentCost"),e[41]=s,e[42]=x):x=e[42];let p;e[43]!==n||e[44]!==i||e[45]!==c||e[46]!==x?(p=o.jsx(U,{label:x,series:i,start:c,format:G,averageLabel:n}),e[43]=n,e[44]=i,e[45]=c,e[46]=x,e[47]=p):p=e[47];let g;e[48]!==l||e[49]!==r||e[50]!==m||e[51]!==p?(g=o.jsx(l,{label:r,value:m,chart:p}),e[48]=l,e[49]=r,e[50]=m,e[51]=p,e[52]=g):g=e[52];let h;return e[53]!==d||e[54]!==f||e[55]!==u||e[56]!==g?(h=o.jsxs("div",{className:d,children:[f,u,g]}),e[53]=d,e[54]=f,e[55]=u,e[56]=g,e[57]=h):h=e[57],h}function tt(t){return String(Math.round(t*10)/10)}function st(t){return t.reduce(nt,0)}function nt(t,e){return t+e}export{yt as C,St as F,Ct as M,_t as R,wt as a,Nt as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fV as B,ey as T,fW as J,c as U,r as Y,fL as N,fM as S,fR as K,fN as P,K as V,fO as z,fQ as G,fP as X,fJ as R}from"./index-
|
|
1
|
+
import{fV as B,ey as T,fW as J,c as U,r as Y,fL as N,fM as S,fR as K,fN as P,K as V,fO as z,fQ as G,fP as X,fJ as R}from"./index-CnlrqsCd.js";import{ax as Z,au as x,aF as ee,av as te,aw as C,aJ as ne,ay as re,aA as se}from"./site-editor-toast-BCIjRFDB.js";import{a5 as F,ak as oe,a8 as ie,a4 as ae}from"./blocks-tab-states-DCjOLpkz.js";async function ce(e,t){return e.inDraft?e.value===void 0?T:J(e.value):await B(null,e.value,t)??null}class Ce{constructor(t){this.now=t,this.loaded=t()}now;copies=new Map;generations=new Map;loaded;settle(){this.loaded||(this.loaded=this.now())}get(t){const n=this.copies.get(t);if(n)return n;if(this.loaded)return{value:this.loaded.blocks[t],inDraft:this.loaded.versionOf(t)!==null}}generation(t){return this.generations.get(t)??0}edited(t){return{generation:this.generation(t),copy:this.get(t)}}guardOf(t,n){return n&&n.generation!==this.generation(t)?n.copy:this.get(t)}hold(t){this.generations.set(t,this.generation(t)+1);const n=this.now();!n||!Object.hasOwn(n.blocks,t)||this.copies.set(t,{value:n.blocks[t],inDraft:n.versionOf(t)!==null})}saved(t,n){this.copies.set(t,{value:n,inDraft:!0})}}const g=new Map,k=new Set,E=new Map;function ke(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function Ee(e,t){const n=new Map(g.get(e)??E);n.set(t,(n.get(t)??0)+1),g.set(e,n);for(const s of k)s()}function le(e){return k.add(e),()=>k.delete(e)}const A=new WeakMap;function fe(e){let t=A.get(e);return t||(t=n=>e.get(n)??0,A.set(e,t)),t}function De(e){const t=U.c(5);let n,s;t[0]!==e?(n=()=>g.get(e)??E,s=()=>g.get(e)??E,t[0]=e,t[1]=n,t[2]=s):(n=t[1],s=t[2]);const r=Y.useSyncExternalStore(le,n,s);let o;return t[3]!==r?(o=fe(r),t[3]=r,t[4]=o):o=t[4],o}class p extends Error{constructor(t){super("kept their version"),this.deleted=t,this.name="HostedKeptTheirsError"}deleted}const ue=3;function de(e,t,n,s){const r={},o={},i={};for(const a of e)t&&Object.hasOwn(t,a)&&(r[a]=t[a]),Object.hasOwn(n.writes,a)&&(o[a]=n.writes[a]),Object.hasOwn(s,a)&&(i[a]=s[a]);return z({ancestor:r,mine:o,theirs:i})}function he(e,t,n){const s={},r=[];for(const o of e){const i=t[o];W(i)?s[o]=i:Object.hasOwn(n,o)&&r.push(o)}return{writes:s,deletes:r}}function we(e,t){for(const[n,s]of Object.entries(e.writes))if(!Object.hasOwn(t,n)||R(t[n])!==R(s))return!1;return e.deletes.every(n=>!Object.hasOwn(t,n))}function Oe(e,t){if(!W(t))return null;if(F(e,t))return oe(t);const n=typeof t.name=="string"?t.name.trim():"";return n&&n!==e?n:I(e)}function I(e){const t=F(e);if(t)return ie(t);const n=e.split("/").pop()??e;return ae(n).trim()||n}function L(e,...t){for(const n of t){const s=Oe(e,n);if(s)return s}return I(e)}function H(e,t,n){return Object.keys(e.writes).some(r=>!t||!Object.hasOwn(t,r))?e.deletes.filter(r=>!Object.hasOwn(e.writes,r)&&n(r)):[]}async function q(e,t,n){const s=Object.keys(e.writes).filter(i=>!t||!Object.hasOwn(t,i)).map(i=>e.writes[i]),r=n[0];if(await P({kind:"theyDeleted",label:L(r,t?.[r],...s)})==="theirs")throw new p(!0);return{writes:e.writes,deletes:e.deletes.filter(i=>!n.includes(i))}}function Q(e){if(e.pointers.length!==1)return null;const t=e.pointers[0],n=t.split("/");if(n.length!==2)return null;const s=n[1].replaceAll("~1","/").replaceAll("~0","~"),r=e.mine[s],o=e.theirs[s];return r===void 0==(o===void 0)?null:{pointer:t,conflict:{kind:o===void 0?"theyDeleted":"youDeleted",label:L(s,r,o,e.ancestor[s])}}}async function pe(e,t,n,s){const r=Q(e);if(r)return{[r.pointer]:await P(r.conflict)};const o=G(e,t);return X(e,s?o.map(s):o,n?.author?{...n,author:{...n.author,keyed:!0}}:n)}function Me(e){const t=e.split("/")[1];return t?t.replaceAll("~1","/").replaceAll("~0","~"):null}function ge(e){const t=Object.values(e);return t.length>0&&t.every(n=>n==="theirs")}async function ve(e,t,n){const s=o=>se(e.queryClient,e.cacheKey,o,e.backend);if(t.some(o=>s(o)===void 0))try{await te(e.queryClient,e.backend,e.params,e.cacheKey)}catch{throw new C}const r={};for(const o of t){const i=s(o);if(i===void 0)throw new C;const a=n&&Object.hasOwn(n,o)?await B(i,n[o],N(e.queryClient,e.cacheKey,o)):i;if(a===void 0)throw new C;r[o]=a}return r}async function me(e,t,n,s){if(s&&w(e,t,r=>Object.hasOwn(s,r)?{value:s[r]}:null),!ne(e.queryClient,e.backend,e.cacheKey,n))for(const r of t)await re(e.queryClient,e.backend,e.params,e.cacheKey,r,n);return e.queryClient.getQueryData(V.decofile(e.cacheKey))??{}}async function Se(e,t,n,s){let r=t;const o=s?Object.keys(s):[];let i=o.length===0?n:{...n,...Object.fromEntries(o.map(a=>[a,s[a].value]))};for(let a=0;;a++){const v=r.deletes.filter(l=>!Object.hasOwn(r.writes,l)),d=[...Object.keys(r.writes),...v],O=await ve(e,d,a===0?i:void 0);if(a===0)for(const l of o)Object.hasOwn(O,l)&&(O[l]=await ce(s[l],N(e.queryClient,e.cacheKey,l)));const m=H(r,i,l=>O[l]===T);if(m.length>0){try{if(!S())throw new p(!0);r=await q(r,i,m)}catch(l){throw w(e,d,c=>m.includes(c)||!i||!Object.hasOwn(i,c)?null:{value:i[c]}),l}continue}try{const l=await Z(e.queryClient,e.backend,e.params,e.cacheKey,{set:r.writes,...v.length>0?{delete:v}:{}},O);return w(e,d,c=>Object.hasOwn(r.writes,c)?{value:r.writes[c]}:null),{...l,change:r}}catch(l){if(!x(l))throw l;const c=await me(e,d,l,i);if(a+1>=ue)throw new ee;if(!S())throw l;const D=Object.keys(r.writes).filter(u=>!i||!Object.hasOwn(i,u)),_=r;w(e,D,u=>({value:_.writes[u]}));const M=()=>w(e,D,u=>Object.hasOwn(c,u)?{value:c[u]}:null);try{const u=H(r,i,f=>!!i&&Object.hasOwn(i,f)&&!Object.hasOwn(c,f));if(u.length>0){r=await q(r,i,u),i=Object.fromEntries(d.filter(f=>Object.hasOwn(c,f)).map(f=>[f,c[f]]));continue}const h=de(d,i,r,c),b=h.pointers.length===0?{}:await pe(h),y=Q(h);if(y&&b[y.pointer]==="theirs")throw new p(y.conflict.kind==="theyDeleted");const $=h.pointers.length===0?h.merged:K(h,b),j=he(d,$,c);if(we(j,c)){if(ge(b))throw new p(d.some(f=>!Object.hasOwn(c,f)));return M(),{revision:"",versions:{},change:j}}r=j,i=Object.fromEntries(d.filter(f=>Object.hasOwn(c,f)).map(f=>[f,c[f]]))}catch(u){throw M(),u}}}}function w(e,t,n){e.queryClient.setQueryData(V.decofile(e.cacheKey),s=>{if(!s)return s;const r={...s};for(const o of t){const i=n(o);i?r[o]=i.value:delete r[o]}return r})}function W(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}export{p as H,ve as a,Ee as b,ke as c,ue as d,L as e,ge as f,Ce as g,ce as h,Se as i,pe as j,Me as k,he as l,we as m,de as p,De as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,j as p,B as h}from"./index-
|
|
1
|
+
import{c as f,j as p,B as h}from"./index-CnlrqsCd.js";import{T as j,a as v,c as T}from"./tooltip-iXXWa3VG.js";function B(d){const t=f.c(19);let e,o,i,n,r,a;t[0]!==d?({label:o,tooltipSide:n,variant:r,size:a,children:e,...i}=d,t[0]=d,t[1]=e,t[2]=o,t[3]=i,t[4]=n,t[5]=r,t[6]=a):(e=t[1],o=t[2],i=t[3],n=t[4],r=t[5],a=t[6]);const m=n===void 0?"top":n,u=r===void 0?"ghost":r,x=a===void 0?"icon-sm":a;let s;t[7]!==e||t[8]!==o||t[9]!==i||t[10]!==x||t[11]!==u?(s=p.jsx(j,{asChild:!0,children:p.jsx(h,{"data-slot":"icon-button","aria-label":o,variant:u,size:x,...i,children:e})}),t[7]=e,t[8]=o,t[9]=i,t[10]=x,t[11]=u,t[12]=s):s=t[12];let l;t[13]!==o||t[14]!==m?(l=p.jsx(v,{side:m,children:o}),t[13]=o,t[14]=m,t[15]=l):l=t[15];let c;return t[16]!==s||t[17]!==l?(c=p.jsxs(T,{children:[s,l]}),t[16]=s,t[17]=l,t[18]=c):c=t[18],c}export{B as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,b$ as ce,j as p,c5 as _,c4 as T,c2 as C,ca as le,b_ as de,cm as ue,ci as fe,cb as me}from"./index-
|
|
1
|
+
import{r as l,b$ as ce,j as p,c5 as _,c4 as T,c2 as C,ca as le,b_ as de,cm as ue,ci as fe,cb as me}from"./index-CnlrqsCd.js";import{c as Y}from"./index-BdQq_4o_.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),x=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:b=>{[...m.current][f.current]?.focus(),i(b)}}),j=l.useRef(S);function B(b){const y=ye(S,b);I(b,y)}function se(b){I(b,f.current)}function ae(){const b=j.current[f.current];S[f.current]!==b&&d(S)}function I(b,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((b-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=be(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(x,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:b,direction:y})=>{if(!a){const z=$.includes(b.key)||b.shiftKey&&X.includes(b.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,x=>d(x)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(x){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(x-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=D(x.clientX);r?.(S)},onSlideMove:x=>{const S=D(x.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:x=>{const K=G[f?"from-left":"from-right"].includes(x.key);w?.({event:x,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],x=O(f,v?[n,o]:[o,n]);return d.current=m,x(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var xe="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=xe;function be(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Te as R,Ae as T,Ie as a,Ve as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,ar as W,at as q,b as E,r as z,d as G,j as o,aR as $,R as I,P as N,n as U,B as k,b5 as V}from"./index-
|
|
1
|
+
import{c as j,ar as W,at as q,b as E,r as z,d as G,j as o,aR as $,R as I,P as N,n as U,B as k,b5 as V}from"./index-CnlrqsCd.js";import{u as K}from"./use-mobile-dNUmCifC.js";import{T as Y,a as Z,c as J}from"./tooltip-iXXWa3VG.js";import{t as Q,a as X}from"./MessageCircle01-dCZEdQhF.js";import{s as ee}from"./XClose-BAaBoHXT.js";import{b as te}from"./thread-button-D5DY5gNU.js";import{T as ne}from"./toolbar-icon-button-BzpP1rEG.js";import{b as se,R as oe,a as D}from"./resizable-BlRMDdrh.js";import{c as re,r as ie,m as le}from"./use-chat-layout-state-C8KgaHCk.js";import{R as ae}from"./route-page-header-X-mAmINr.js";import"./index-DEg1eCWz.js";import"./use-sidebar-collapsed-euA02TXK.js";import"./sheet-p2Ousfn8.js";import"./use-in-settings-DF-tVIoE.js";import"./use-panel-navigate-BtwQP9g-.js";import"./thread-route-BizqFXgE.js";import"./use-project-scope-B49l3tYT.js";import"./repository-binding-B-NGFlA8.js";import"./use-mcp-client-Bq8ol96W.js";import"./auth-CNYHKCFg.js";import"./LayoutLeft-C8ndIALE.js";import"./use-current-view-DbaDobC4.js";function A(t,e){const n=typeof t=="number"?t:Number(t);return!Number.isFinite(n)||n<=0||n>=100?e:n}function ce(t,e){const n=j.c(8);let r;n[0]!==e?(r=c=>A(c,e),n[0]=e,n[1]=r):r=n[1];const[i,l]=W(t,r);let s;n[2]!==e||n[3]!==i?(s=A(i,e),n[2]=e,n[3]=i,n[4]=s):s=n[4];let a;return n[5]!==l||n[6]!==s?(a=[s,l],n[5]=l,n[6]=s,n[7]=a):a=n[7],a}const ue=33;function de(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=q.sidePanelWidth(),t[0]=e):e=t[0],ce(e,ue)}const P="chat-layout-thread",M="chat-layout-content",H="320px",O=z.createContext(null);function Fe(){return T()}function fe(){return z.use(O)}function T(){const t=z.use(O);if(!t)throw new Error("ChatLayout regions require a ChatLayout");return t}function he(t){const e=j.c(22),{children:n,...r}=t,i=K(),l=G(),s=z.useRef(null),[a,c]=de(),{threadOpen:u,contentOpen:d}=r,h=re(r),m=u&&d?a:h.side,p=100-m,y=b=>{const v=b.getLayout(),w=v[P],S=v[M];typeof w!="number"||typeof S!="number"||Math.abs(w-m)<.001&&Math.abs(S-p)<.001||b.setLayout({[P]:m,[M]:p})},C=ie(r);let x;e[0]!==i||e[1]!==r||e[2]!==C?(x={...r,isMobile:i,mobileSurface:C},e[0]=i,e[1]=r,e[2]=C,e[3]=x):x=e[3];const f=x;let g;e[4]!==i||e[5]!==r||e[6]!==l||e[7]!==f?(g=i&&!r.threadless&&o.jsx(te,{open:f.mobileSurface==="chat",onToggle:()=>{l({to:".",search:b=>({...b,...le(f.mobileSurface==="chat"?"main":"chat")}),replace:!0})}}),e[4]=i,e[5]=r,e[6]=l,e[7]=f,e[8]=g):g=e[8];let L;e[9]!==n||e[10]!==d||e[11]!==p||e[12]!==i||e[13]!==c||e[14]!==y||e[15]!==u||e[16]!==m?(L=i?o.jsx("div",{"data-slot":"chat-layout",className:"flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:n}):o.jsx(oe,{ref:b=>{if(s.current=b,!b)return;let v=!0;return queueMicrotask(()=>{v&&y(b)}),()=>{v=!1,s.current===b&&(s.current=null)}},defaultLayout:{[P]:m,[M]:p},orientation:"horizontal","data-slot":"chat-layout",className:"flex-1 min-h-0 pt-1 pb-1 pr-1 pl-0",style:{overflow:"visible"},onLayoutChanged:(b,v)=>{const{isUserInteraction:w}=v;if(!w){const B=s.current;B&&y(B);return}const S=b[P];u&&d&&typeof S=="number"&&S>0&&S<100&&c(S)},children:n}),e[9]=n,e[10]=d,e[11]=p,e[12]=i,e[13]=c,e[14]=y,e[15]=u,e[16]=m,e[17]=L):L=e[17];let _;return e[18]!==g||e[19]!==L||e[20]!==f?(_=o.jsxs(O,{value:f,children:[g,L]}),e[18]=g,e[19]=L,e[20]=f,e[21]=_):_=e[21],_}function me(t){const e=j.c(14),{children:n,topbar:r}=t,i=T();if(i.isMobile){let u;return e[0]!==n||e[1]!==i.mobileSurface||e[2]!==r?(u=i.mobileSurface==="chat"?o.jsxs(N,{variant:"plain","data-slot":"chat-layout-thread",children:[r,o.jsx(N.Content,{"data-testid":"chat-panel",children:n})]}):null,e[0]=n,e[1]=i.mobileSurface,e[2]=r,e[3]=u):u=e[3],u}if(!i.threadOpen)return null;let l;e[4]!==i.contentOpen?(l=i.contentOpen&&o.jsx(se,{className:"bg-sidebar"}),e[4]=i.contentOpen,e[5]=l):l=e[5];let s;e[6]!==n?(s=o.jsx(N.Content,{"data-testid":"chat-panel",children:n}),e[6]=n,e[7]=s):s=e[7];let a;e[8]!==s||e[9]!==r?(a=o.jsx(D,{id:P,defaultSize:"33%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsx("div",{className:"h-full min-h-0 p-0.5",children:o.jsxs(N,{"data-testid":"side-panel",children:[r,s]})})}),e[8]=s,e[9]=r,e[10]=a):a=e[10];let c;return e[11]!==l||e[12]!==a?(c=o.jsxs(o.Fragment,{children:[l,a]}),e[11]=l,e[12]=a,e[13]=c):c=e[13],c}function F(t){const e=j.c(10),{label:n,pressed:r,onClick:i,children:l}=t;let s;e[0]!==l||e[1]!==n||e[2]!==i||e[3]!==r?(s=o.jsx(Y,{asChild:!0,children:o.jsx(ne,{"aria-label":n,"aria-pressed":r,onClick:i,children:l})}),e[0]=l,e[1]=n,e[2]=i,e[3]=r,e[4]=s):s=e[4];let a;e[5]!==n?(a=o.jsx(Z,{side:"bottom",children:n}),e[5]=n,e[6]=a):a=e[6];let c;return e[7]!==s||e[8]!==a?(c=o.jsxs(J,{children:[s,a]}),e[7]=s,e[8]=a,e[9]=c):c=e[9],c}function pe(){const t=j.c(12),e=E(),n=T();if(n.isMobile||n.threadless)return null;const r=!n.threadOpen;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("span",{"aria-hidden":!0,className:"mr-1.5 h-4 w-px shrink-0 bg-border"}),t[0]=i):i=t[0];let l;t[1]!==r||t[2]!==n.toggleFullscreen||t[3]!==e?(l=r?o.jsxs(k,{variant:"ghost",size:"sm","aria-pressed":r,className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:n.toggleFullscreen,children:[o.jsx(Q,{size:16}),e("page.exitFullscreen")]}):o.jsx(F,{label:e("page.enterFullscreen"),pressed:r,onClick:n.toggleFullscreen,children:o.jsx(X,{size:16})}),t[1]=r,t[2]=n.toggleFullscreen,t[3]=e,t[4]=l):l=t[4];let s;t[5]!==r||t[6]!==n.toggleContent||t[7]!==e?(s=!r&&o.jsx(F,{label:e("page.closeMainPanel"),onClick:n.toggleContent,children:o.jsx(ee,{size:16})}),t[5]=r,t[6]=n.toggleContent,t[7]=e,t[8]=s):s=t[8];let a;return t[9]!==l||t[10]!==s?(a=o.jsxs("div",{className:"flex items-center gap-0.5",children:[i,l,s]}),t[9]=l,t[10]=s,t[11]=a):a=t[11],a}function Ke(){const t=j.c(9),e=E(),n=K(),r=fe();if(n||!r||r.threadless||r.contentOpen)return null;const i=r.toggleContent;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(xe,{}),t[0]=l):l=t[0];let s;t[1]!==e?(s=e("page.openMainPanel"),t[1]=e,t[2]=s):s=t[2];let a;t[3]!==r.toggleContent||t[4]!==s?(a=o.jsxs(k,{variant:"ghost",size:"sm",className:"h-7 gap-1.5 px-2 text-sidebar-foreground/60 hover:bg-sidebar-accent hover:text-sidebar-foreground",onClick:i,children:[l,s]}),t[3]=r.toggleContent,t[4]=s,t[5]=a):a=t[5];let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("span",{"aria-hidden":!0,className:"mx-1 h-4 w-px shrink-0 bg-border"}),t[6]=c):c=t[6];let u;return t[7]!==a?(u=o.jsxs(o.Fragment,{children:[a,c]}),t[7]=a,t[8]=u):u=t[8],u}function xe(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"shrink-0",children:o.jsx("path",{d:"M4 5v14M8 12h12m0 0-6-6m6 6-6 6"})}),t[0]=e):e=t[0],e}function ge({children:t,routeId:e}){return t}function R(t){const e=j.c(26),{children:n,actions:r,drawer:i,aside:l}=t,s=T();if(s.isMobile&&s.mobileSurface!=="main")return null;const a=s.isMobile?"plain":"card";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(pe,{}),e[0]=c):c=e[0];let u;e[1]!==r||e[2]!==s.contentNavigation?(u=o.jsx(ae,{navigation:s.contentNavigation,actions:r,trailingActions:c}),e[1]=r,e[2]=s.contentNavigation,e[3]=u):u=e[3];let d;e[4]!==n||e[5]!==s.contentKey?(d=o.jsx($,{children:o.jsx(ge,{routeId:s.contentKey,children:n})}),e[4]=n,e[5]=s.contentKey,e[6]=d):d=e[6];let h;e[7]!==s.contentKey||e[8]!==d?(h=o.jsx("div",{className:"min-h-0 flex-1 overflow-hidden",children:o.jsx(I,{children:d},s.contentKey)}),e[7]=s.contentKey,e[8]=d,e[9]=h):h=e[9];let m;e[10]!==i||e[11]!==h?(m=o.jsxs(N.Content,{children:[h,i]}),e[10]=i,e[11]=h,e[12]=m):m=e[12];let p;e[13]!==u||e[14]!==m?(p=o.jsxs(U.Breadcrumbs.Provider,{children:[u,m]}),e[13]=u,e[14]=m,e[15]=p):p=e[15];let y;e[16]!==a||e[17]!==p?(y=o.jsx(N,{"data-testid":"main-panel",variant:a,children:p}),e[16]=a,e[17]=p,e[18]=y):y=e[18];const C=y;if(s.isMobile)return C;if(!s.contentOpen)return null;let x;e[19]!==C?(x=o.jsx("div",{className:"h-full min-h-0 min-w-0 flex-1 p-0.5",children:C}),e[19]=C,e[20]=x):x=e[20];let f;e[21]!==l?(f=l&&o.jsx("div",{className:"h-full min-h-0 w-[42%] min-w-80 shrink-0 p-0.5",children:o.jsx(N,{"data-testid":"aside-panel",children:o.jsx(I,{children:o.jsx($,{children:l})},z.isValidElement(l)?l.key??void 0:void 0)})}),e[21]=l,e[22]=f):f=e[22];let g;return e[23]!==f||e[24]!==x?(g=o.jsx(D,{id:M,defaultSize:"67%",minSize:H,className:"min-w-0 overflow-hidden bg-sidebar",children:o.jsxs("div",{className:"flex h-full min-h-0",children:[x,f]})}),e[23]=f,e[24]=x,e[25]=g):g=e[25],g}function De(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(R,{children:o.jsx(V,{})}),t[0]=e):e=t[0],e}function He(t){const e=j.c(18),{error:n,reset:r}=t,i=E();let l;e[0]!==i?(l=i("common.errorBoundary.somethingWentWrong"),e[0]=i,e[1]=l):l=e[1];let s;e[2]!==l?(s=o.jsx("h2",{className:"text-lg font-medium",children:l}),e[2]=l,e[3]=s):s=e[3];let a;e[4]!==n.message||e[5]!==i?(a=n.message||i("common.errorBoundary.unexpectedError"),e[4]=n.message,e[5]=i,e[6]=a):a=e[6];let c;e[7]!==a?(c=o.jsx("p",{className:"max-w-lg whitespace-pre-wrap text-sm text-muted-foreground",children:a}),e[7]=a,e[8]=c):c=e[8];let u;e[9]!==i?(u=i("common.errorBoundary.tryAgain"),e[9]=i,e[10]=u):u=e[10];let d;e[11]!==r||e[12]!==u?(d=o.jsx(k,{variant:"outline",onClick:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13];let h;return e[14]!==s||e[15]!==c||e[16]!==d?(h=o.jsx(R,{children:o.jsxs("div",{role:"alert",className:"flex h-full flex-col items-center justify-center gap-4 p-6 text-center",children:[s,c,d]})}),e[14]=s,e[15]=c,e[16]=d,e[17]=h):h=e[17],h}const We=Object.assign(he,{Thread:me,Content:R});export{We as ChatLayout,He as ChatLayoutError,De as ChatLayoutPending,Ke as OpenMainPanelButton,Fe as useChatLayout,fe as useOptionalChatLayout};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-
|
|
1
|
+
import{r as s,b_ as L,b$ as B,j as c,f_ as q,c4 as x,c2 as E,fZ as K,c5 as C,f$ as I,d$ as T,ci as w,cb as U,cm as V}from"./index-CnlrqsCd.js";var _="Radio",[$,P]=w(_),[z,H]=$(_),k=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(d,b=>m(b)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(z,{scope:o,checked:e,disabled:a,children:[c.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,b=>{e||f?.(),h&&(u.current=b.isPropagationStopped(),u.current||b.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=_;var g="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=H(g,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=w(y,[I,P]),j=I(),N=P(),[Z,J]=Y(y),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,b]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return c.jsx(Z,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:b,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=J(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{X.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var Q="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=Q;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,a4 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aS as Z,w as J,v as ee,D as te}from"./index-BsAwgxIf.js";import{n as se}from"./ArrowUp-DyF0Rx2O.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-BhwgXdxZ.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-Cy8KNDYA.js";import{u as je,a as ve,S as be,M as A}from"./pair-4JIJkNK2.js";import{A as ye,f as Q}from"./agent-icon-B9nZhdi2.js";import{n as Ne}from"./use-sandbox-events-aK2a02aF.js";import{a as Ce}from"./agent-capabilities-MDN7TVuK.js";import{a as we}from"./repository-binding-BS9v5Fe_.js";import{c as Se,i as ke}from"./thread-intent-BNoxio0t.js";import{a as Te}from"./use-panel-navigate-DpEZACCY.js";import{N as $e}from"./index-CT5cpmuw.js";import{i as Ee}from"./ArrowRight-C1EmTlL-.js";import{d as De}from"./use-entitlements-BRKIl3Rz.js";import{u as Pe}from"./use-deco-credits-zD_A42hI.js";import{F as _e}from"./feature-paywall-BQdFbBKY.js";import{i as Ie}from"./AlertCircle-DA6gE5vw.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function W(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(W(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(W(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.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"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("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"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("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=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function We(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);We({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
|
|
1
|
+
import{c as v,a4 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aS as Z,w as J,v as ee,D as te}from"./index-CnlrqsCd.js";import{n as se}from"./ArrowUp-jwPYnWqs.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-Cdr2Tzco.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-CzlhHu3g.js";import{u as je,a as ve,S as be,M as A}from"./pair-BqleDpPR.js";import{A as ye,f as Q}from"./agent-icon-Da3tHBMv.js";import{n as Ne}from"./use-sandbox-events-CNUqntlP.js";import{a as Ce}from"./agent-capabilities-BI0sCkjS.js";import{a as we}from"./repository-binding-B-NGFlA8.js";import{c as Se,i as ke}from"./thread-intent-CMPSad7_.js";import{a as Te}from"./use-panel-navigate-BtwQP9g-.js";import{N as $e}from"./index-xBV0t4Yq.js";import{i as Ee}from"./ArrowRight-DdCk_HCk.js";import{d as De}from"./use-entitlements-cKoK0gNm.js";import{u as Pe}from"./use-deco-credits-CH6PNQ_v.js";import{F as _e}from"./feature-paywall-DKi0OK9Z.js";import{i as Ie}from"./AlertCircle-BckhzGo9.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function W(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(W(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(W(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.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"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(Q,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("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"),i=l.jsx(Q,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function Qe(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("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=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function We(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);We({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:Qe,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-
|
|
1
|
+
import{c as ue,r as xe,d as ns,a4 as ht,b as Pe,j as t,B as je,t as dt,aW as Wt,ak as as,K as bt,i as Et,a5 as As,m as ot,gE as _s,o as cs,h as Ks,d_ as Us,ab as Vs,L as qs,u as Hs,n as _t,E as Yt,R as Bs,dU as Js,hd as Gs,T as Qs,W as Ws,I as Xt}from"./index-CnlrqsCd.js";import{S as Ys}from"./search-input-Cu6jTXVw.js";import{E as Ht}from"./empty-state-BWFEJiAD.js";import{R as Xs}from"./require-capability-kZjYTRSp.js";import{f as js}from"./pair-BqleDpPR.js";import{b as ts}from"./use-connection-CyhiAuyN.js";import{g as Ps}from"./connection-slug-mPfdw4iI.js";import{B as Lt}from"./badge-loE1b0Vr.js";import{P as ds,a as ms,b as us}from"./popover-BehWQy5s.js";import{c as Pt,T as Dt,a as Rt,b as Zs}from"./tooltip-iXXWa3VG.js";import{z as fs,e as Ut,bw as el,aw as Ns,K as tl}from"./agent-icon-Da3tHBMv.js";import{i as sl}from"./Key01-D3gaP9qK.js";import{i as ll}from"./Play-B1JyKt5J.js";import{MonacoCodeEditor as bs}from"./monaco-editor-DO6kYNn6.js";import{u as rl}from"./use-mcp-client-Bq8ol96W.js";import{u as il}from"./repository-binding-B-NGFlA8.js";import{n as Ot}from"./LinkBroken01-WNn1RqQL.js";import{c as ol}from"./SwitchHorizontal01-DB7Iju_C.js";import{s as nl}from"./Plus-nOMLt4Yk.js";import{s as al}from"./Trash01-DLwaS_5I.js";import{M as zt}from"./multi-select-DVrZLS4y.js";import{b as yt,a as wt,c as ze,d as St,S as Ct}from"./select-P0a7iEwt.js";import{e as ys,T as cl}from"./time-range-picker-DpPBnDJs.js";import{T as dl}from"./textarea-BfYW4m9c.js";import{C as Ds}from"./collection-tabs-Y93FdN1l.js";import{S as ml}from"./switch-DhrqiPup.js";import{L as ul}from"./label-D9MCble5.js";import{I as It}from"./integration-icon-XdnHhG6r.js";import{A as fl,a as xl,b as pl}from"./alert-2VptOQ03.js";import{K as gt}from"./monitoring-stats-row-CDy_z2_I.js";import{b as Bt}from"./use-entitlements-cKoK0gNm.js";import{g as gl,b as ws,f as Nt,c as Zt,d as hl,e as Ss,a as xs,h as vl,i as ps,T as jl,j as Nl,r as bl,k as yl}from"./thread-sheet-body-XpKlRgjQ.js";import{u as wl}from"./useSuspenseInfiniteQuery-BuojYKnE.js";import{c as Sl,S as Cl,b as Rs,a as Ls}from"./sheet-p2Ousfn8.js";import{c as _e,b as vt,d as Jt,e as Gt,T as ge,a as Qt}from"./table-C2Ra_yKM.js";import{t as ss}from"./ChevronDown-Cf6eg1Aj.js";import{n as ls}from"./ChevronUp-Yoxwp_-j.js";import{u as Os}from"./use-id-selection-BfYt0Wlx.js";import{u as Fs}from"./use-infinite-scroll-iq2V7hOe.js";import{u as Il}from"./useInfiniteQuery-B7ay7aNP.js";import{g as Tl}from"./task-status-Cgcee3O1.js";import{u as kl,d as Ml}from"./use-automations-BlLUMChm.js";import{A as _l}from"./automation-runs-DBCPwmkF.js";import{i as Pl}from"./ArrowLeft-DjFnycHz.js";import{E as Cs}from"./empty-state--JGqfPR-.js";import{O as $s}from"./watch-sse-pool-wQgu9ix_.js";import{t as Dl}from"./task-key-CzMIIXuS.js";import{b as Rl,r as Ll,O as Ol,e as Fl}from"./order-monitor-day-958y0odK.js";import{F as $l}from"./feature-gate-BRL5qzLx.js";import"./SearchMd-BQl6TEDK.js";import"./access-gate-DAmYKrNY.js";import"./capability-load-error-qZIBtmfz.js";import"./Tool01-CtY1k5Dx.js";import"./ArrowRight-DdCk_HCk.js";import"./collapsible-6ftDlMsd.js";import"./use-copy-jVRNS72q.js";import"./usage-stats-Cpv39cmk.js";import"./utils-CVEq3hMx.js";import"./markdown-DPh7H1MH.js";import"./chat-context-Cdr2Tzco.js";import"./use-panel-navigate-BtwQP9g-.js";import"./thread-route-BizqFXgE.js";import"./use-project-scope-B49l3tYT.js";import"./use-view-draft-kind-D6a-C5cc.js";import"./use-blog-view-CjVBpsro.js";import"./use-organization-settings-DmJ49Wll.js";import"./schema-DCd8UMh8.js";import"./task-board-B47Oba0a.js";import"./thread-intent-CMPSad7_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./session-runtime-CPmKckVH.js";import"./use-ai-providers-DAAK1LJH.js";import"./use-current-view-DbaDobC4.js";import"./use-in-settings-DF-tVIoE.js";import"./use-decopilot-events-CsRo6_4Z.js";import"./use-mobile-dNUmCifC.js";import"./File02-B4TAUApJ.js";import"./gateway-client-BwxdQL6w.js";import"./form-9ojGZv11.js";import"./UserCheck01-lNPupOG8.js";import"./use-task-board-items-DT4Yu9ci.js";import"./config-CheVupom.js";import"./AlertCircle-BckhzGo9.js";import"./CheckCircle-p76CoLTf.js";import"./Eye-B-zZzOpR.js";import"./task-route-DnF8qwEX.js";import"./project-index-D_813h_x.js";import"./TrendUp01-DAuvMm77.js";import"./shell-layout-ipiZBDIC.js";import"./Globe04-C8iXbhsR.js";import"./UserSquare-xrIyO385.js";import"./use-deployment-admin-DsggmftG.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-BAaBoHXT.js";import"./use-org-notice-DEvisT2l.js";import"./Monitor01-CrmQoLWb.js";import"./Zap-DV5_FZrE.js";import"./command-CtLQP1YS.js";import"./index-DjQbsfzi.js";import"./project-icon-DsXJkCkm.js";import"./use-navigate-to-agent-DeYqaaa3.js";import"./use-debounced-value-CI6OWQk7.js";import"./new-project-dialog-DqENGapI.js";import"./repository-picker-gzTJe9Gv.js";import"./github-icon-Bx9ss8sA.js";import"./collection-search-CW9SJXAE.js";import"./BookOpen01-B2ISsdx6.js";import"./ShoppingBag01-DPoH0u5v.js";import"./new-project-store-BCRxr-mc.js";import"./legacy-admin-welcome-dialog-5lUmP66o.js";import"./drawer-CRP1WiCk.js";import"./required-auth-layout-nH3iv-0Q.js";import"./use-org-sso-DiEFaIS8.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DEDNSoX2.js";import"./types-Ds7H4BQL.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./Image01-BKS8Yp4v.js";import"./use-mcp-prompts-B6Jw27dX.js";import"./use-thread-outputs-riYbRXeW.js";import"./file-type-icon-BAAuwpOK.js";import"./index-DEg1eCWz.js";import"./ArrowUp-jwPYnWqs.js";import"./ChevronSelectorVertical-ies3TLws.js";import"./CreditCard01-DOIepajb.js";import"./MessageCircle01-dCZEdQhF.js";import"./LayoutLeft-C8ndIALE.js";import"./Minus-BGxu6wTp.js";import"./Sun-CnYsG6YA.js";import"./Upload01-D8Llo-n7.js";import"./Users01-B6_L_w2p.js";import"./editor-Ca65jgGo.js";import"./auth-CNYHKCFg.js";import"./checkbox-ClBCJgC4.js";import"./index-BdQq_4o_.js";import"./scroll-area-Csvonw83.js";import"./calendar-BI3J-A5m.js";import"./chart-BvG6MEBA.js";import"./CategoricalChart-Di2gWvs8.js";import"./index-CQwlvIdC.js";import"./tooltipContext-C8y_VFmL.js";import"./CartesianChart-2VySs-qY.js";import"./AreaChart-CH55n4Jv.js";import"./infiniteQueryObserver-d6eMImhi.js";import"./useQueries-v3dcLTuG.js";import"./ReferenceLine-CVaZ4J9I.js";import"./feature-paywall-DKi0OK9Z.js";import"./plan-ladder-heY6MciQ.js";const rs={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3},zl=["eq","contains","exists","in"];function El(s){return zl.includes(s)}function jt(s){return s.filter(e=>e.key.trim()).map(e=>{const l=encodeURIComponent(e.key.trim()),i=encodeURIComponent(e.value||"");return`${l}:${e.operator}:${i}`}).join(",")}function Al(s){return!s||typeof s!="string"?[]:s.split(",").map(e=>{if(!e)return;const[l,i,...m]=e.split(":"),n=l?decodeURIComponent(l):"";if(n.trim())return{key:n,operator:i&&El(i)?i:"eq",value:decodeURIComponent(m.join(":")||"")}}).filter(e=>e!==void 0)}function Vt(s){return s.filter(e=>e.key.trim()).map(e=>{switch(e.operator){case"eq":return`${e.key}=${e.value}`;case"contains":return`${e.key}~${e.value}`;case"exists":return`${e.key}?`;case"in":return`${e.key}@${e.value}`}}).join(`
|
|
2
2
|
`)}function Is(s){return s.trim()?s.split(`
|
|
3
3
|
`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{if(e.endsWith("?"))return{key:e.slice(0,-1),operator:"exists",value:""};if(e.includes("=")){const[l,...i]=e.split("=");return{key:l||"",operator:"eq",value:i.join("=")}}if(e.includes("~")){const[l,...i]=e.split("~");return{key:l||"",operator:"contains",value:i.join("~")}}if(e.includes("@")){const[l,...i]=e.split("@");return{key:l||"",operator:"in",value:i.join("@")}}return{key:e,operator:"exists",value:""}}):[]}function Kl(s){const e={},l={},i=[],m={};for(const n of s)if(n.key.trim())switch(n.operator){case"eq":n.value&&(e[n.key]=n.value);break;case"contains":n.value&&(l[n.key]=`%${n.value}%`);break;case"exists":i.push(n.key);break;case"in":n.value&&(m[n.key]=n.value);break}return{properties:Object.keys(e).length>0?e:void 0,propertyPatterns:Object.keys(l).length>0?l:void 0,propertyKeys:i.length>0?i:void 0,propertyInValues:Object.keys(m).length>0?m:void 0}}function Ts(s){if(!s)return{content:"null",isTruncated:!1,originalSize:4};const e=s._decocms_truncated;if(typeof e=="string"&&e.length>0)return{content:e,isTruncated:!0,originalSize:e.length};let l;try{l=JSON.stringify(s,null,2)}catch{return{content:"[Unable to serialize JSON]",isTruncated:!1,originalSize:0}}const i=l.length;return i<=rs.maxJsonRenderSize?{content:l,isTruncated:!1,originalSize:i}:{content:l.slice(0,rs.maxJsonRenderSize)+`
|
|
4
4
|
|