decocms 4.415.0 → 4.415.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-CvaSOOO8.js → AlertCircle-kC7-H0Eq.js} +1 -1
- package/dist/client/assets/{AreaChart-C1zWMN3A.js → AreaChart-BRh_r1hb.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BsqlBCdi.js → ArrowLeft-CmIJpvUZ.js} +1 -1
- package/dist/client/assets/{ArrowRight-B6VZdTtP.js → ArrowRight-CSuUxLXs.js} +1 -1
- package/dist/client/assets/{ArrowUp-C1c3cSMN.js → ArrowUp-C5ammB5D.js} +1 -1
- package/dist/client/assets/{CartesianChart-DT33HVeq.js → CartesianChart-DqoQKbeO.js} +1 -1
- package/dist/client/assets/{Check-ClKm876e.js → Check-Dbt8bZ4k.js} +1 -1
- package/dist/client/assets/{CheckCircle-B38I9lsp.js → CheckCircle-xh5odl0l.js} +1 -1
- package/dist/client/assets/{ChevronUp-BBBSFlle.js → ChevronUp-B2Dk8prO.js} +1 -1
- package/dist/client/assets/{Copy01-kb1901QR.js → Copy01-CnzDdpP4.js} +1 -1
- package/dist/client/assets/{CreditCard01-DkYuXaNf.js → CreditCard01-BlGIgjeE.js} +1 -1
- package/dist/client/assets/{DotsVertical-OXZ2C8qE.js → DotsVertical-B-n3YUHe.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CSFQ9ttu.js → ErrorBarContext-l7sP1UmW.js} +1 -1
- package/dist/client/assets/{Image01-xbxm22_Y.js → Image01-J0gfSiuA.js} +1 -1
- package/dist/client/assets/{Key01-ZIYydTtn.js → Key01-B8-ttURL.js} +1 -1
- package/dist/client/assets/{Line-C_txxRhK.js → Line-CYyv3cvx.js} +1 -1
- package/dist/client/assets/{Link01-cXYRJQde.js → Link01-DTEbhjIF.js} +1 -1
- package/dist/client/assets/{LinkExternal01-UxTfoueY.js → LinkExternal01-CDf0tC6K.js} +1 -1
- package/dist/client/assets/{Monitor01-CINH3FWT.js → Monitor01-CtZ292tS.js} +1 -1
- package/dist/client/assets/{Palette-C2svjF4J.js → Palette-D8COKeRn.js} +1 -1
- package/dist/client/assets/{Plus-Bv10xzXZ.js → Plus-CtWJxGU_.js} +1 -1
- package/dist/client/assets/{SearchMd-DRAIsS0-.js → SearchMd-DkecYIYo.js} +1 -1
- package/dist/client/assets/{Sector-TihpQ2pX.js → Sector-BgTyCRZ3.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-DsBku-zP.js → ShoppingBag01-Bw6UaPe0.js} +1 -1
- package/dist/client/assets/{Sun-CJOAGa8i.js → Sun-Btmv74E4.js} +1 -1
- package/dist/client/assets/{Tool01-gY-gdMF4.js → Tool01-Du0jvtC3.js} +1 -1
- package/dist/client/assets/{Trash01-DUhLvzYZ.js → Trash01-DoLFc_xg.js} +1 -1
- package/dist/client/assets/{Upload01-BsdejHE0.js → Upload01-DkNYZKnb.js} +1 -1
- package/dist/client/assets/{User01-B4dCU7oy.js → User01-q3oA7kn7.js} +1 -1
- package/dist/client/assets/{UserSquare-BA1qsXhU.js → UserSquare-nJ9f4NF0.js} +1 -1
- package/dist/client/assets/{Users01-BLSNtVXz.js → Users01-CZj2rg51.js} +1 -1
- package/dist/client/assets/{X-BTpPaU7c.js → X-DcSBITTK.js} +1 -1
- package/dist/client/assets/{XAxis-Cj_1oR4W.js → XAxis-DEvYHJUW.js} +1 -1
- package/dist/client/assets/{XClose-DnZUIdlK.js → XClose-xx11bGMi.js} +1 -1
- package/dist/client/assets/{ZoomOut-DvQpsf4w.js → ZoomOut-Bl9nBv2m.js} +1 -1
- package/dist/client/assets/{access-gate-BYf0rE33.js → access-gate-Dzi4fnWH.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-BdXnmDrQ.js → add-connection-dialog-eYFdQfcM.js} +1 -1
- package/dist/client/assets/{agent-analytics-DQZgiL7L.js → agent-analytics-B_bnmHFX.js} +1 -1
- package/dist/client/assets/agent-app-CYw-jdzL.js +1 -0
- package/dist/client/assets/{agent-assets-B-r7ioGn.js → agent-assets-CEksftHY.js} +1 -1
- package/dist/client/assets/{agent-automation-BkxL2BIZ.js → agent-automation-Bovs-JL8.js} +1 -1
- package/dist/client/assets/{agent-automations-pf_bDZZ5.js → agent-automations-DbT9Jgwz.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-Do412j4U.js → agent-connect-sources-DC9I3xsN.js} +1 -1
- package/dist/client/assets/agent-deck-DwkA2PhU.js +1 -0
- package/dist/client/assets/{agent-e2e-Db1tY-Py.js → agent-e2e-DRrN4v4e.js} +1 -1
- package/dist/client/assets/{agent-experiments-a-194CZ0.js → agent-experiments-P8pdquwP.js} +1 -1
- package/dist/client/assets/{agent-file-DcPThm01.js → agent-file-C1aPPXJy.js} +1 -1
- package/dist/client/assets/{agent-git-I5DAbFxV.js → agent-git-5PteGkbf.js} +1 -1
- package/dist/client/assets/{agent-hosting-8wURqYK1.js → agent-hosting-BykTv5CP.js} +1 -1
- package/dist/client/assets/{agent-icon-BvDKYGuI.js → agent-icon-DEuXrFU-.js} +1 -1
- package/dist/client/assets/agent-library-Xj5fQ0LD.js +1 -0
- package/dist/client/assets/agent-library-file-D5JsOaVW.js +1 -0
- package/dist/client/assets/{agent-monitor-DU5E9xAR.js → agent-monitor-C9czk4CV.js} +1 -1
- package/dist/client/assets/{agent-overview-BBH7XkKk.js → agent-overview-D45fWzvn.js} +1 -1
- package/dist/client/assets/agent-settings-D6u8Bg4M.js +1 -0
- package/dist/client/assets/{agent-site-editor-DSbFppgh.js → agent-site-editor-Dmu94K1N.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Dl48bYZ_.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-C6CyUicz.js → agent-site-editor-content-Bl-t6lUo.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-Bm6vi5GO.js → agent-site-editor-preview-CzVgKErn.js} +3 -3
- package/dist/client/assets/agent-view-WwVCrWL4.js +1 -0
- package/dist/client/assets/{agent-view-guard-BHFZQ084.js → agent-view-guard-Cpl4t8Wc.js} +1 -1
- package/dist/client/assets/{agents-list-BmcrOH9K.js → agents-list-BFK21Yuo.js} +1 -1
- package/dist/client/assets/{ai-providers-D07lihCf.js → ai-providers-Cen30ZpE.js} +1 -1
- package/dist/client/assets/{alert-CbVRyYdn.js → alert-BgG1hcRk.js} +1 -1
- package/dist/client/assets/{alert-dialog-D5AYweb7.js → alert-dialog-BFN3BsEs.js} +1 -1
- package/dist/client/assets/{analytics-sections-C7kQuinp.js → analytics-sections-D_Y_StFT.js} +1 -1
- package/dist/client/assets/{api-keys-CRcL5tuf.js → api-keys-DR_0hjnW.js} +1 -1
- package/dist/client/assets/api-keys-WCS72Fbb.js +1 -0
- package/dist/client/assets/app-editor-VfjbCTYl.js +1 -0
- package/dist/client/assets/{asset-utils-DxlUH6fM.js → asset-utils-x_rl903X.js} +1 -1
- package/dist/client/assets/{auth-DqmsEfIB.js → auth-CkYcqAeJ.js} +1 -1
- package/dist/client/assets/{auth-catchall-BMmDsnzK.js → auth-catchall-BUEqZAX1.js} +1 -1
- package/dist/client/assets/{auth-entry-B26Aq39u.js → auth-entry-Dy3A6tnR.js} +1 -1
- package/dist/client/assets/{auth-split-layout-D5nNb-G8.js → auth-split-layout-CML6YjN7.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CtghXoSr.js → authenticate-and-persist-oauth-ER6BM4qa.js} +1 -1
- package/dist/client/assets/{automation-list-row-CkyFpQMb.js → automation-list-row-qF4IF2gz.js} +1 -1
- package/dist/client/assets/{automation-runs-CoqjOPyS.js → automation-runs-CGa-cFEV.js} +1 -1
- package/dist/client/assets/{automations-2UeJll3f.js → automations-CsV63rI9.js} +1 -1
- package/dist/client/assets/{autosend-D__v3v-c.js → autosend-B-xGQLGu.js} +1 -1
- package/dist/client/assets/{avatar-JoRElFKl.js → avatar-Cvy6LEar.js} +1 -1
- package/dist/client/assets/{badge-B0yp_bFb.js → badge-DetyAvFv.js} +1 -1
- package/dist/client/assets/{block-document-iObAvspI.js → block-document-CYJ53JSl.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CroMcTkl.js → blocks-preview-workspace-context-B66bFLbm.js} +1 -1
- package/dist/client/assets/{buckets-CdF9xMMp.js → buckets-BMbNhe3B.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CXnpM7kh.js → build-improve-prompt-doc-Ds4R6zCr.js} +1 -1
- package/dist/client/assets/{calendar-_lAvk6Nt.js → calendar-DPRgUXmj.js} +1 -1
- package/dist/client/assets/{capability-load-error-8qZRldzC.js → capability-load-error-DM7abAa5.js} +1 -1
- package/dist/client/assets/{category-editor-fWmRfYwN.js → category-editor-B3RZ0e7d.js} +1 -1
- package/dist/client/assets/{chart-B8A_E9YA.js → chart-BuEQCXB-.js} +1 -1
- package/dist/client/assets/{chat-context-DCpRbJmR.js → chat-context-Cs0DM81h.js} +1 -1
- package/dist/client/assets/{chat-draft-BiPOqsxD.js → chat-draft-RwfJiIVl.js} +1 -1
- package/dist/client/assets/{checkbox-DYn5BX_y.js → checkbox-BlXpCA5l.js} +1 -1
- package/dist/client/assets/{choose-editor-9psJgCK3.js → choose-editor-Ct-ris_d.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CaNBNXR7.js → claim-phase-copy-cMB-5G3-.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B-HmvL0Z.js → cli-auth-success-DxwMrsly.js} +1 -1
- package/dist/client/assets/{client-icons-DRAmgBv8.js → client-icons-CD-w53Wj.js} +1 -1
- package/dist/client/assets/{collapsible-Bg1MAa8S.js → collapsible-Wp8MlWNs.js} +1 -1
- package/dist/client/assets/{collection-detail-CzcE81KP.js → collection-detail-pLn8ZmrH.js} +1 -1
- package/dist/client/assets/{collection-display-button-BbOo6z7N.js → collection-display-button-DwdYwL7P.js} +1 -1
- package/dist/client/assets/{collection-search-EssCGlF9.js → collection-search-D8A3a74H.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BktaVXNL.js → collection-table-wrapper-a4JM1X1A.js} +1 -1
- package/dist/client/assets/{collection-tabs-C2dMZ-Yz.js → collection-tabs-C6yWjqf8.js} +1 -1
- package/dist/client/assets/{combobox-DnOhf0WD.js → combobox-DObm2k8X.js} +1 -1
- package/dist/client/assets/{command-DljL6hzf.js → command-AfsFALr5.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DHfjmvo2.js → companion-mcps-section-BQug3QPM.js} +1 -1
- package/dist/client/assets/{config-BRt8XM2Q.js → config-C31nyUKU.js} +1 -1
- package/dist/client/assets/{connect-COAAkNAe.js → connect-Ps-0woaX.js} +1 -1
- package/dist/client/assets/{connect-layout-D_XB9JJD.js → connect-layout-DrnTRC-G.js} +1 -1
- package/dist/client/assets/{connection-DZucsf0o.js → connection-DeRv5rki.js} +1 -1
- package/dist/client/assets/{connection-card-DrvsNBSo.js → connection-card-COgBNtI5.js} +1 -1
- package/dist/client/assets/{connection-detail-DELb5RqN.js → connection-detail-CAOrkrp2.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BOYwqVWG.js → connection-form-helpers-DzCh8Fyg.js} +1 -1
- package/dist/client/assets/{connections-BTjmigpS.js → connections-C3Pvtb_x.js} +1 -1
- package/dist/client/assets/{context-t3HzYqzN.js → context-CLYUwUzm.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BCIcZ5Ce.js → create-organization-dialog-m6GWowv3.js} +1 -1
- package/dist/client/assets/{decopilot-BbS9GPYA.js → decopilot-BLRbUuvu.js} +1 -1
- package/dist/client/assets/{dialog-CfIoHDlJ.js → dialog-CpigP_0G.js} +1 -1
- package/dist/client/assets/{discover-C6NL6AwE.js → discover-BvFYHKB7.js} +1 -1
- package/dist/client/assets/{domain-settings-I8HFU1tc.js → domain-settings-uCc8I4gL.js} +1 -1
- package/dist/client/assets/{download-app-dialog-bvP5yIID.js → download-app-dialog-CqWOfc3Q.js} +1 -1
- package/dist/client/assets/{drawer-gbdrTv3r.js → drawer-Wo3x06xJ.js} +1 -1
- package/dist/client/assets/{editor-CUtbeyZe.js → editor-B1l1xN-R.js} +1 -1
- package/dist/client/assets/{empty-state-B7JCSTCX.js → empty-state-Dd__gUXO.js} +1 -1
- package/dist/client/assets/{empty-state-B_xAVz84.js → empty-state-HsN3dce3.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CHpjURut.js → extract-connection-data-sRLHFO8e.js} +1 -1
- package/dist/client/assets/{feature-gate-CSCbG-02.js → feature-gate-coci_eA9.js} +1 -1
- package/dist/client/assets/{feature-paywall-BK6fjPbO.js → feature-paywall-HqubjQ02.js} +1 -1
- package/dist/client/assets/{file-explorer-BEA-kxcu.js → file-explorer-DY0zUFrZ.js} +1 -1
- package/dist/client/assets/{file-preview-Bk7_4BhT.js → file-preview-wPqsh5vK.js} +1 -1
- package/dist/client/assets/{file-share-button-CtEMEEnP.js → file-share-button-DIZcq57D.js} +1 -1
- package/dist/client/assets/{file-type-icon-C_2K-vjQ.js → file-type-icon-BAbRvEO3.js} +1 -1
- package/dist/client/assets/flat-project-CGM6aLEe.js +1 -0
- package/dist/client/assets/{folder-icon-D2srQ6r8.js → folder-icon-Dot1jjQ7.js} +1 -1
- package/dist/client/assets/{form-Bw-12Nua.js → form-DJuq50sa.js} +1 -1
- package/dist/client/assets/{gateway-client-DDRZPNgE.js → gateway-client-B7-Qfe3v.js} +1 -1
- package/dist/client/assets/{general-DFurEwpf.js → general-Dgipja2-.js} +1 -1
- package/dist/client/assets/{github-repo-22x8y8Tm.js → github-repo-D8GMoLYQ.js} +1 -1
- package/dist/client/assets/{home-BEfet_Bo.js → home-mbuvU4fS.js} +1 -1
- package/dist/client/assets/{index-CdYIy8eY.js → index-5cuasDox.js} +1 -1
- package/dist/client/assets/{index-Ccktnu9A.js → index-BA7VAgtV.js} +1 -1
- package/dist/client/assets/{index-Ty5Jzwnf.js → index-BAlIJraL.js} +3 -3
- package/dist/client/assets/{index-Cc_Zqhkn.js → index-BLyAkY9g.js} +1 -1
- package/dist/client/assets/{index-B1gW_UZi.js → index-BWgjNz3V.js} +1 -1
- package/dist/client/assets/{index-CP9MPNu2.js → index-Bt730a_r.js} +1 -1
- package/dist/client/assets/{index-BBn8QmOY.js → index-CAr3KF2k.js} +1 -1
- package/dist/client/assets/{index-TvCpAFy_.js → index-CfATIDTo.js} +1 -1
- package/dist/client/assets/{index-DTVMnS9R.js → index-D3eyET-S.js} +1 -1
- package/dist/client/assets/{index-oPco2Z7Q.js → index-DHm3sAos.js} +2 -2
- package/dist/client/assets/{index-CBJQH72Z.js → index-DeRupaYL.js} +1 -1
- package/dist/client/assets/{index-C23QqnY4.js → index-Di6dssOb.js} +1 -1
- package/dist/client/assets/{index-BGw3HTPr.js → index-DlEeRnPz.js} +1 -1
- package/dist/client/assets/{index-BBClJhS5.js → index-M93GjJWb.js} +1 -1
- package/dist/client/assets/{index-DRvgWruv.js → index-MCRUjgWq.js} +1 -1
- package/dist/client/assets/{index-redirect-D8rObEfr.js → index-redirect-C7GDIwb4.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-BiKAGWol.js → infiniteQueryObserver-BwAQcTzb.js} +1 -1
- package/dist/client/assets/{infra-billing-DM30eRIB.js → infra-billing-xSgaA90A.js} +1 -1
- package/dist/client/assets/{input-Dk8ExXFi.js → input-B2DqY8Av.js} +1 -1
- package/dist/client/assets/{input-ZcuegaFq.js → input-BFf0MDPQ.js} +1 -1
- package/dist/client/assets/{input-MYwET4H0.js → input-Bl-eHzaC.js} +1 -1
- package/dist/client/assets/{integration-icon-cSotbhTg.js → integration-icon-C95OvdZY.js} +1 -1
- package/dist/client/assets/{label-9S9F78nK.js → label-CWrp9ARo.js} +1 -1
- package/dist/client/assets/{last-preview-page-BqZ-yKjx.js → last-preview-page-CmStTgKj.js} +1 -1
- package/dist/client/assets/{layout-XmYuHyUp.js → layout-XVXFFsem.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-Cos55l5T.js → legacy-agents-deep-D3b1CQ8z.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-SvbBzQfx.js → legacy-main-redirect-DKkmix2W.js} +1 -1
- package/dist/client/assets/library-DM9WpcZM.js +1 -0
- package/dist/client/assets/{library-tab-jc2e6zcQ.js → library-tab-0tb9G-YP.js} +1 -1
- package/dist/client/assets/{login-Dk9tmaQV.js → login-xXS7j6y2.js} +1 -1
- package/dist/client/assets/{markdown-D8NZ8Hcx.js → markdown-CpLNy1RX.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CMM_xZGY.js → mcp-app-renderer-CNIQCA09.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Rwm2gO51.js → mcp-oauth-Lt1uEt0B.js} +1 -1
- package/dist/client/assets/{members-C7CWAgRC.js → members-B8hITLTy.js} +1 -1
- package/dist/client/assets/{message-templates-LZ9bQOkh.js → message-templates-CwyUaWOP.js} +1 -1
- package/dist/client/assets/{mini-report-page-Djd5YLq-.js → mini-report-page-De2rcl1M.js} +1 -1
- package/dist/client/assets/{mock-board-wLpRW8bx.js → mock-board-Cmt_YWfT.js} +1 -1
- package/dist/client/assets/{monaco-editor-gMJT6cpK.js → monaco-editor-DkCAk4Y1.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DGiOnVB-.js → monitoring-stats-row-D73woEwY.js} +1 -1
- package/dist/client/assets/{multi-select-CgJiEc6d.js → multi-select-CbfQ2v2s.js} +1 -1
- package/dist/client/assets/{mustache-C_QlIzWy.js → mustache-BqJRJimF.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BaZdnvse.js → new-project-dialog-BENzaIpG.js} +1 -1
- package/dist/client/assets/{oauth-callback-DKlgv_Gu.js → oauth-callback-DpfxGbSH.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-bpHWEFSR.js → oauth-callback-ai-provider-C5DazrQW.js} +1 -1
- package/dist/client/assets/{onboarding-BCfoU2BS.js → onboarding-CSwZhVA8.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-CmwJxzI1.js → optimistic-project-sidebar-views-B-5DFhs5.js} +1 -1
- package/dist/client/assets/{org-file-open-context-Bv73tl5K.js → org-file-open-context-BCKy1EPN.js} +1 -1
- package/dist/client/assets/{organization-choice-1eorpCYU.js → organization-choice-D3m4lgCG.js} +1 -1
- package/dist/client/assets/{orgs-zhbMCzP-.js → orgs-dD93PQr5.js} +1 -1
- package/dist/client/assets/{page-seo-form-CshajZtl.js → page-seo-form-B-Izwzp_.js} +1 -1
- package/dist/client/assets/{pair-C-k8zr2J.js → pair-CLpmliBK.js} +1 -1
- package/dist/client/assets/{plan-ladder-BlKhVXlg.js → plan-ladder-CsODIV72.js} +1 -1
- package/dist/client/assets/{popover-BgkxtrX7.js → popover-CEowmtOx.js} +1 -1
- package/dist/client/assets/{post-calendar-B-WdFfky.js → post-calendar-C1qmcGfg.js} +1 -1
- package/dist/client/assets/{post-editor-CsDksmyM.js → post-editor-Dq-kTbq7.js} +1 -1
- package/dist/client/assets/{preview-content-C6mifSrd.js → preview-content-DNwzEC_K.js} +1 -1
- package/dist/client/assets/{preview-dialog-CIYvMHEx.js → preview-dialog-BhZUZz4F.js} +1 -1
- package/dist/client/assets/{profile-C0w8Yfz5.js → profile-kbPC_1WN.js} +1 -1
- package/dist/client/assets/{project-app-view-Sevz3SK2.js → project-app-view-CfApyY5R.js} +1 -1
- package/dist/client/assets/{project-feed-BMtZcRjf.js → project-feed-D3ynHjIB.js} +1 -1
- package/dist/client/assets/{project-icon-C29pLjaM.js → project-icon-ChkGwOWc.js} +1 -1
- package/dist/client/assets/project-reports-DdsVNB9e.js +1 -0
- package/dist/client/assets/project-tasks-D2EeQu7L.js +1 -0
- package/dist/client/assets/{projects-B_9wM2AG.js → projects-BXC0oSzS.js} +1 -1
- package/dist/client/assets/{projects-empty-state-D2roHEQS.js → projects-empty-state-BBjzNMFV.js} +1 -1
- package/dist/client/assets/{prompts-SqPXo2ej.js → prompts-sdO1VJjf.js} +1 -1
- package/dist/client/assets/record-editor-B37l2HpJ.js +1 -0
- package/dist/client/assets/{redirect-editor-BROySec3.js → redirect-editor-DDXMD1gX.js} +1 -1
- package/dist/client/assets/{reports-BAoHRlcZ.js → reports-BAiN8fii.js} +1 -1
- package/dist/client/assets/reports-Cc7c-Vbz.js +1 -0
- package/dist/client/assets/{reports-onboarding-DuXWRm1J.js → reports-onboarding-CBdWbLMl.js} +1 -1
- package/dist/client/assets/{reports-tab-BTG8fjPp.js → reports-tab-DkDH4PST.js} +2 -2
- package/dist/client/assets/{repositories-dyiTYnan.js → repositories-C2l2dcf-.js} +1 -1
- package/dist/client/assets/{repository-import-picker-OR5DGZp9.js → repository-import-picker-DC9mmGO6.js} +1 -1
- package/dist/client/assets/{repository-picker-BSwi4b8i.js → repository-picker-F2OlSGJj.js} +1 -1
- package/dist/client/assets/{require-capability-Bqc8OMTK.js → require-capability-BLka8E11.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Byop8Zzr.js → required-auth-layout-CFjcjBcb.js} +1 -1
- package/dist/client/assets/{reset-password-BJ7ek2C_.js → reset-password-Cop4lNe7.js} +1 -1
- package/dist/client/assets/{resizable-3VTCAPsm.js → resizable-BkLrVd37.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CmlW-pVX.js → resolve-tab-icon-l7zbrRpU.js} +1 -1
- package/dist/client/assets/{review-settings-DV0Kgix-.js → review-settings-G29AJopa.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-DHguSqou.js → rich-text-link-control-CY2KgSuL.js} +1 -1
- package/dist/client/assets/{roles-BddVa5rc.js → roles-Cpd58JKB.js} +1 -1
- package/dist/client/assets/{route-BTyvu5tm.js → route-D-np41Rb.js} +1 -1
- package/dist/client/assets/{route-Dv07Kl62.js → route-DSZCyqFE.js} +1 -1
- package/dist/client/assets/route-xerSimh2.js +1 -0
- package/dist/client/assets/{runnable-block-editor-Do2tVSLe.js → runnable-block-editor-duCsymhu.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DqykpNrC.js → sandbox-lifecycle-context-D0lirKQx.js} +1 -1
- package/dist/client/assets/{schema-DN-s_HG6.js → schema-DiX8ky2j.js} +1 -1
- package/dist/client/assets/{scroll-area--yTJQfnp.js → scroll-area-DBGj1ceN.js} +1 -1
- package/dist/client/assets/{search-input-BNUWPEYj.js → search-input-u9kRB5oS.js} +1 -1
- package/dist/client/assets/{search-toggle-QxOnD3UE.js → search-toggle-BFh8VDlA.js} +1 -1
- package/dist/client/assets/{secret-picker-B-IAzUKw.js → secret-picker-BRjwyTUe.js} +1 -1
- package/dist/client/assets/{secrets-BfsxO5FG.js → secrets-DJczpY8f.js} +1 -1
- package/dist/client/assets/{sections-editor-BSMpRRaP.js → sections-editor-DCxU6ocE.js} +1 -1
- package/dist/client/assets/{select-BSSRUEpK.js → select-aHTy5z3O.js} +1 -1
- package/dist/client/assets/{select-model-BpoA_wtD.js → select-model-kohtsWIk.js} +1 -1
- package/dist/client/assets/{seo-editor-BLMg-jAb.js → seo-editor-B-zD2Sai.js} +1 -1
- package/dist/client/assets/{separator-B-ZEExAQ.js → separator-Z33kxnB4.js} +1 -1
- package/dist/client/assets/{settings-tab-Bjk0NW75.js → settings-tab-CBYL5MBY.js} +1 -1
- package/dist/client/assets/{sheet--8zhfSHm.js → sheet-BziqOxJW.js} +1 -1
- package/dist/client/assets/{shell-layout-DE5WStxe.js → shell-layout-BNJ06xIX.js} +1 -1
- package/dist/client/assets/{skills-5oEukgyq.js → skills-BqCX7EoL.js} +1 -1
- package/dist/client/assets/{sso-p_1To1BG.js → sso-CQbaAOnX.js} +1 -1
- package/dist/client/assets/{suggestion-tikPUWB4.js → suggestion-Bq0iPeIO.js} +1 -1
- package/dist/client/assets/{switch-XXcZ9CO9.js → switch-BPmQbFG7.js} +1 -1
- package/dist/client/assets/{synced-repos-6N09TwCW.js → synced-repos-DJvz90BA.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Cg30pNjq.js → tab-icon-glyph-DuJbvgdd.js} +1 -1
- package/dist/client/assets/{table-UDk1rGCz.js → table-A_pHif2D.js} +1 -1
- package/dist/client/assets/{tabs-DddEqGpk.js → tabs-D5BpnZQ1.js} +1 -1
- package/dist/client/assets/{task-board-BQC0qjBI.js → task-board-BPfcIzWi.js} +1 -1
- package/dist/client/assets/{task-route-BIVpLzI_.js → task-route-Djib_ohK.js} +1 -1
- package/dist/client/assets/{task-status-5qx4S30L.js → task-status-D6kZ5GWu.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-BUkhCXum.js → taskboard-analytics-DZqf-33v.js} +1 -1
- package/dist/client/assets/{tasks-B2IZJpCB.js → tasks-DLypzIUh.js} +1 -1
- package/dist/client/assets/tasks-kvDxHKT1.js +1 -0
- package/dist/client/assets/{textarea-mkcrN5g-.js → textarea-B5y3zgH_.js} +1 -1
- package/dist/client/assets/{thread-analytics-BL_w94D4.js → thread-analytics-ToR840kc.js} +1 -1
- package/dist/client/assets/{thread-button-DwWAsFW7.js → thread-button-B_HgltO0.js} +1 -1
- package/dist/client/assets/{thread-intent-1MB6k5b2.js → thread-intent-DQzWIUxa.js} +1 -1
- package/dist/client/assets/{thread-route-CRhZ1osu.js → thread-route-MHfZTnxN.js} +1 -1
- package/dist/client/assets/{thread-route-BCeXxLYH.js → thread-route-Y2_k4-xt.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-Bo7LPBv_.js → thread-sheet-body-MIvaRayZ.js} +1 -1
- package/dist/client/assets/{toggle-group-Cz7RSOBM.js → toggle-group-C_RkFbyJ.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CiJmHymh.js → toolbar-icon-button-Bwh0s6hU.js} +1 -1
- package/dist/client/assets/{tooltip-CF6AcK-h.js → tooltip-BPqQWogJ.js} +1 -1
- package/dist/client/assets/{track-OWWDrnQ-.js → track-BLdcCbIC.js} +1 -1
- package/dist/client/assets/{types-C-gwtfMH.js → types-DZ6fWkdm.js} +1 -1
- package/dist/client/assets/{usage-stats-CBSbrOk_.js → usage-stats-CHkIvIhF.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B1JZFVlj.js → use-ai-providers-CMRsxIS9.js} +1 -1
- package/dist/client/assets/{use-automations-D_9NQm3c.js → use-automations-C4wi9N8f.js} +1 -1
- package/dist/client/assets/{use-autosave-DlgDe-Tc.js → use-autosave-Ba60olkP.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-D4JUtDU_.js → use-chat-layout-state-BN8QGB1z.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DeEhFjbg.js → use-connect-companion-DnyTevE1.js} +1 -1
- package/dist/client/assets/{use-connection-BSRKwy2j.js → use-connection-BslGkz4t.js} +1 -1
- package/dist/client/assets/{use-copy-BOgEqZMm.js → use-copy-DWINQoQI.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-zRgZOr46.js → use-create-virtual-mcp-CvoX5fT0.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DLQqaR-J.js → use-date-fns-locale-CZY-6GKJ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D_28bChm.js → use-debounced-autosave-DW-vyaLt.js} +1 -1
- package/dist/client/assets/{use-debounced-value-DD9mnPT_.js → use-debounced-value-r4EjWqFM.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BVTpTeQe.js → use-deco-credits-BSN3ogiR.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DrrVrYNR.js → use-decopilot-events-BHyBfguX.js} +1 -1
- package/dist/client/assets/{use-delete-connection-XxANt-J1.js → use-delete-connection-B2dCIG7y.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-2URfC53G.js → use-deployment-admin-bIx5RjSZ.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DEazNknV.js → use-fast-preview-draft-url-BWG3OEdQ.js} +1 -1
- package/dist/client/assets/{use-file-configs-CoaidzsY.js → use-file-configs-7OnkQpu6.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BPqj-R_X.js → use-infinite-scroll-DyIY-5t_.js} +1 -1
- package/dist/client/assets/{use-join-requests-Drw7IeW0.js → use-join-requests-DIo03IWL.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-qFkwsuao.js → use-main-panel-tabs-BIiT10Rh.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CZ-0Pvu1.js → use-mcp-auth-status-BS1CHQR6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DDH2Tr05.js → use-mcp-client-ZKTq8mxe.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CogjK1bQ.js → use-mcp-prompts-DTJM5ZWp.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B7MXLlq3.js → use-mcp-tools-OwK4Zp5y.js} +1 -1
- package/dist/client/assets/{use-members-BLvVhz4X.js → use-members-DFK-1GP_.js} +1 -1
- package/dist/client/assets/{use-mobile-BCSnRACa.js → use-mobile-347n7_IQ.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DYNDpstL.js → use-navigate-to-agent-CRejd8ZE.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-CK_DIXAr.js +1 -0
- package/dist/client/assets/{use-open-billing-url-Dq7moyEm.js → use-open-billing-url-CfpmD4In.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BaoVl8Zl.js → use-org-auth-client-BnRqovXV.js} +1 -1
- package/dist/client/assets/{use-org-fs-gM-Wauv_.js → use-org-fs-DC8W-YoT.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DFgGELdf.js → use-org-repo-syncs-AqRaTOQw.js} +1 -1
- package/dist/client/assets/{use-org-sso-GwZiS-qS.js → use-org-sso-BO74KuQq.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CqvDOd51.js → use-organization-roles-CqUgRQcR.js} +1 -1
- package/dist/client/assets/{use-organization-settings-mKOaKHuY.js → use-organization-settings-DKqPZnyT.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CQHE_TAW.js → use-panel-navigate-CZC-Bri6.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-CjADt2wx.js → use-project-native-view-presence-CD1ozlz_.js} +1 -1
- package/dist/client/assets/{use-project-scope-UozAP0t-.js → use-project-scope-C-9j3flY.js} +1 -1
- package/dist/client/assets/{use-releases-D-iqlxR6.js → use-releases-J-zHWPNJ.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CknaDfb_.js → use-reports-diagnostic-rp-SkDPw.js} +1 -1
- package/dist/client/assets/{use-secrets-Bl8vA-cD.js → use-secrets-CQTvxcbi.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BqbdcWw1.js → use-section-preview-base-BUOsxaK7.js} +1 -1
- package/dist/client/assets/{use-session-runtime-B5XfJc8H.js → use-session-runtime-waDLeiz5.js} +1 -1
- package/dist/client/assets/{use-tags-C0g04rDb.js → use-tags-BCTsmQXh.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DQMIr-R3.js → use-task-board-analytics-B0F_Bodf.js} +1 -1
- package/dist/client/assets/{use-task-metadata--2QUxhiK.js → use-task-metadata-L8nncAZD.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CVoZDp6i.js → use-thread-analytics-CjiR5pXD.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-CYriWIIs.js → use-thread-outputs-6AE2Ko75.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CBGVnf76.js +1 -0
- package/dist/client/assets/{useQueries-tUSXojRG.js → useQueries-Dll0gG_2.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ds4z3m1K.js +1 -0
- package/dist/client/assets/{users-DFvmfIoV.js → users-C55Uyfx5.js} +1 -1
- package/dist/client/assets/{utils-BaPwSBi2.js → utils-C6tzFhyN.js} +1 -1
- package/dist/client/assets/{variant-calendar-sxqpD_Oi.js → variant-calendar-CqaTH_F-.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-C-94qzoj.js → variant-matcher-override-ChIqHd1B.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DrlZskFH.js → view-mode-toggle-CYgbAEts.js} +1 -1
- package/dist/client/assets/{virtual-mcp-DBFF2brO.js → virtual-mcp-ldI9qh61.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +143 -143
- package/dist/server/migrate-dbos.js +1 -1
- package/dist/server/migrate.js +5 -5
- package/dist/server/server.js +134 -134
- package/package.json +1 -1
- package/dist/client/assets/agent-app-C7k2151J.js +0 -1
- package/dist/client/assets/agent-deck-CYuHMzf-.js +0 -1
- package/dist/client/assets/agent-library-DP9jULfe.js +0 -1
- package/dist/client/assets/agent-library-file-C2CuO8zG.js +0 -1
- package/dist/client/assets/agent-settings-DBkRHp58.js +0 -1
- package/dist/client/assets/agent-site-editor-code-CGBlhTFD.js +0 -2
- package/dist/client/assets/agent-view-iS5vUDqd.js +0 -1
- package/dist/client/assets/api-keys-DrGX-MFg.js +0 -1
- package/dist/client/assets/app-editor-BH13ZfO_.js +0 -1
- package/dist/client/assets/flat-project-Bp2uxu0m.js +0 -1
- package/dist/client/assets/library-DwuPF4v9.js +0 -1
- package/dist/client/assets/project-reports-DLR8Px_E.js +0 -1
- package/dist/client/assets/project-tasks-BpKda9bF.js +0 -1
- package/dist/client/assets/record-editor-DwoOuklP.js +0 -1
- package/dist/client/assets/reports-7388ESEV.js +0 -1
- package/dist/client/assets/route-wKh3eUlH.js +0 -1
- package/dist/client/assets/tasks-JL_Q5QmF.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-DGdBBbiW.js +0 -1
- package/dist/client/assets/useInfiniteQuery-U12d5VJc.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-B912YJiX.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as _,c as y,j as l,l as N,bd as L,aC as H,J as T,ab as F,b as k,L as W,q as J,Y as q,k as U,_ as G,aO as X,d as Y,X as Q}from"./index-oPco2Z7Q.js";import{av as Z,aw as ee,m as te,ax as ae,G as se}from"./agent-icon-BvDKYGuI.js";import{a as oe,f as ie}from"./UserSquare-BA1qsXhU.js";import{a as ne}from"./Image01-xbxm22_Y.js";import{i as re}from"./ZoomOut-DvQpsf4w.js";import{e as le,m as ce}from"./use-chat-layout-state-D4JUtDU_.js";import{b as de}from"./use-project-scope-UozAP0t-.js";import{u as pe}from"./use-mobile-BCSnRACa.js";import{b as ue,c as fe,S as be,d as me,a as he}from"./sheet--8zhfSHm.js";import{c as xe,a as B,T as A,b as D}from"./tooltip-CF6AcK-h.js";import{T as ge}from"./toolbar-icon-button-CiJmHymh.js";import{a as ve}from"./shell-layout-DE5WStxe.js";const je="15rem",Se="18rem",ye="4.5rem",z=_.createContext(null);function E(){const a=_.useContext(z);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}function He(a){const e=y.c(19),{children:t,defaultOpen:s,open:o,onOpenChange:i}=a,c=s===void 0?!1:s,r=pe(),[n,d]=_.useState(c),[p,h]=_.useState(!1),b=o!==void 0,u=b?o:n;let m;e[0]!==b||e[1]!==i?(m=I=>{b||d(I),i?.(I)},e[0]=b,e[1]=i,e[2]=m):m=e[2];const f=m;let x;e[3]!==r||e[4]!==u||e[5]!==f?(x=()=>{r?h(we):f(!u)},e[3]=r,e[4]=u,e[5]=f,e[6]=x):x=e[6];const g=x,j=u?"expanded":"collapsed";let v;e[7]!==r||e[8]!==u||e[9]!==p||e[10]!==f||e[11]!==j||e[12]!==g?(v={state:j,open:u,setOpen:f,isMobile:r,openMobile:p,setOpenMobile:h,toggleSidebar:g},e[7]=r,e[8]=u,e[9]=p,e[10]=f,e[11]=j,e[12]=g,e[13]=v):v=e[13];const w=v;let S;e[14]!==t?(S=l.jsx(xe,{delayDuration:0,children:t}),e[14]=t,e[15]=S):S=e[15];let C;return e[16]!==w||e[17]!==S?(C=l.jsx(z.Provider,{value:w,children:S}),e[16]=w,e[17]=S,e[18]=C):C=e[18],C}function we(a){return!a}function Fe(a){const e=y.c(14);let t,s,o,i;e[0]!==a?({className:s,style:i,children:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=i):(t=e[1],s=e[2],o=e[3],i=e[4]);let c;e[5]!==i?(c={"--sidebar-width":je,"--sidebar-width-icon":ye,...i},e[5]=i,e[6]=c):c=e[6];const r=c;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let d;return e[9]!==t||e[10]!==o||e[11]!==r||e[12]!==n?(d=l.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...o,children:t}),e[9]=t,e[10]=o,e[11]=r,e[12]=n,e[13]=d):d=e[13],d}function We(a){const e=y.c(36);let t,s,o,i,c;e[0]!==a?({side:i,variant:c,className:s,children:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=i,e[5]=c):(t=e[1],s=e[2],o=e[3],i=e[4],c=e[5]);const r=i===void 0?"left":i,n=c===void 0?"sidebar":c,{isMobile:d,state:p,openMobile:h,setOpenMobile:b}=E();if(d){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":Se},e[6]=C):C=e[6];let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsxs(fe,{className:"sr-only",children:[l.jsx(be,{children:"Sidebar"}),l.jsx(me,{children:"Displays the mobile sidebar."})]}),e[7]=I):I=e[7];let $;e[8]!==t?($=l.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let P;e[10]!==r||e[11]!==$?(P=l.jsxs(he,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:r,children:[I,$]}),e[10]=r,e[11]=$,e[12]=P):P=e[12];let K;return e[13]!==h||e[14]!==o||e[15]!==b||e[16]!==P?(K=l.jsx(ue,{open:h,onOpenChange:b,...o,children:P}),e[13]=h,e[14]=o,e[15]=b,e[16]=P,e[17]=K):K=e[17],K}const u=p==="expanded",m=u?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==m?(f=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",m),e[18]=m,e[19]=f):f=e[19];const x=u?void 0:"icon",g=u?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let j;e[20]!==s||e[21]!==g?(j=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",g,s),e[20]=s,e[21]=g,e[22]=j):j=e[22];let v;e[23]!==t?(v=l.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=v):v=e[24];let w;e[25]!==o||e[26]!==j||e[27]!==v?(w=l.jsx("div",{"data-slot":"sidebar-container",className:j,...o,children:v}),e[25]=o,e[26]=j,e[27]=v,e[28]=w):w=e[28];let S;return e[29]!==r||e[30]!==p||e[31]!==f||e[32]!==x||e[33]!==w||e[34]!==n?(S=l.jsx("div",{className:f,"data-state":p,"data-collapsible":x,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:w}),e[29]=r,e[30]=p,e[31]=f,e[32]=x,e[33]=w,e[34]=n,e[35]=S):S=e[35],S}function Je(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("main",{"data-slot":"sidebar-inset",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function qe(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function Ue(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function Ge(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function Xe(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}const Ne=H("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ye(a){const e=y.c(28);let t,s,o,i,c,r,n;e[0]!==a?({asChild:o,isActive:i,variant:c,size:r,tooltip:n,className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=i,e[5]=c,e[6]=r,e[7]=n):(t=e[1],s=e[2],o=e[3],i=e[4],c=e[5],r=e[6],n=e[7]);const d=o===void 0?!1:o,p=i===void 0?!1:i,h=c===void 0?"default":c,b=r===void 0?"default":r,u=d?L:"button",{isMobile:m}=E();let f;e[8]!==t||e[9]!==b||e[10]!==h?(f=N(Ne({variant:h,size:b}),t),e[8]=t,e[9]=b,e[10]=h,e[11]=f):f=e[11];let x;e[12]!==u||e[13]!==p||e[14]!==s||e[15]!==b||e[16]!==f?(x=l.jsx(u,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":b,"data-active":p,className:f,...s}),e[12]=u,e[13]=p,e[14]=s,e[15]=b,e[16]=f,e[17]=x):x=e[17];const g=x;if(!n)return g;if(typeof n=="string"){let S;e[18]!==n?(S={children:n},e[18]=n,e[19]=S):S=e[19],n=S}let j;e[20]!==g?(j=l.jsx(A,{asChild:!0,children:g}),e[20]=g,e[21]=j):j=e[21];let v;e[22]!==m||e[23]!==n?(v=l.jsx(B,{side:"right",align:"center",hidden:m,...n}),e[22]=m,e[23]=n,e[24]=v):v=e[24];let w;return e[25]!==j||e[26]!==v?(w=l.jsxs(D,{children:[j,v]}),e[25]=j,e[26]=v,e[27]=w):w=e[27],w}const M={reports:{labelKey:"projects.apps.reports",captionKey:"projects.apps.reportsCaption",Icon:ie,to:T.reports,tone:"bg-chart-2/15 text-chart-2"},"site-editor":{labelKey:"projects.apps.siteEditor",captionKey:"projects.apps.siteEditorCaption",Icon:oe,to:T.siteEditor,tone:"bg-chart-1/15 text-chart-1"},assets:{labelKey:"projects.apps.assets",captionKey:"projects.apps.assetsCaption",Icon:ne,to:T.assets,tone:"bg-chart-2/15 text-chart-2"},hosting:{labelKey:"projects.apps.hosting",captionKey:"projects.apps.hostingCaption",Icon:F,to:T.hosting,tone:"bg-chart-3/15 text-chart-3"},e2e:{labelKey:"projects.apps.e2e",captionKey:"projects.apps.e2eCaption",Icon:ae,to:T.e2e,tone:"bg-chart-4/15 text-chart-4"},analytics:{labelKey:"projects.apps.analytics",captionKey:"projects.apps.analyticsCaption",Icon:te,to:T.analytics,tone:"bg-chart-5/15 text-chart-5"},cdn:{labelKey:"projects.apps.cdn",captionKey:"projects.apps.cdnCaption",Icon:ee,to:T.monitor,tone:"bg-chart-2/15 text-chart-2"},automations:{labelKey:"projects.apps.automations",captionKey:"projects.apps.automationsCaption",Icon:re,to:T.automations,tone:"bg-chart-4/15 text-chart-4"},experiments:{labelKey:"projects.apps.experiments",captionKey:"projects.apps.experimentsCaption",Icon:Z,to:T.experiments,tone:"bg-chart-1/15 text-chart-1"}},Qe=M,V=Object.keys(M);function Ce(a){const e=new Set(le(a.metadata?.sidebarViews,a.metadata?.sidebarViewsVersion));return V.filter(t=>e.has(t))}function Ze(a){const e=y.c(23),{project:t,orgSlug:s}=a,o=k();let i,c,r,n,d;if(e[0]!==s||e[1]!==t||e[2]!==o){d=Symbol.for("react.early_return_sentinel");e:{const b=de(t.metadata),u=Ce(t).filter(x=>x!=="site-editor"||b);if(u.length===0){d=null;break e}r="flex flex-col gap-2";let m;e[8]!==o?(m=o("projects.apps.heading"),e[8]=o,e[9]=m):m=e[9],e[10]!==m?(n=l.jsx("h2",{className:"pl-3 text-muted-foreground text-sm font-medium",children:m}),e[10]=m,e[11]=n):n=e[11],i="flex flex-wrap gap-3";let f;e[12]!==s||e[13]!==t.id||e[14]!==o?(f=x=>{const g=M[x];return l.jsxs(W,{to:g.to,params:{org:s,agentId:t.id},onClick:()=>J("project_app_launched",{app:x}),title:o(g.captionKey),className:"group flex w-20 flex-col items-center gap-2 rounded-xl p-2 text-center transition-colors hover:bg-accent/50",children:[l.jsx("span",{className:N("relative flex size-14 shrink-0 items-center justify-center rounded-2xl transition-transform group-hover:scale-105",g.tone),children:l.jsx(g.Icon,{size:24})}),l.jsx("span",{className:"w-full truncate text-foreground text-xs font-medium",children:o(g.labelKey)})]},x)},e[12]=s,e[13]=t.id,e[14]=o,e[15]=f):f=e[15],c=u.map(f)}e[0]=s,e[1]=t,e[2]=o,e[3]=i,e[4]=c,e[5]=r,e[6]=n,e[7]=d}else i=e[3],c=e[4],r=e[5],n=e[6],d=e[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;let p;e[16]!==i||e[17]!==c?(p=l.jsx("div",{className:i,children:c}),e[16]=i,e[17]=c,e[18]=p):p=e[18];let h;return e[19]!==r||e[20]!==n||e[21]!==p?(h=l.jsxs("section",{className:r,children:[n,p]}),e[19]=r,e[20]=n,e[21]=p,e[22]=h):h=e[22],h}function et(){const a=y.c(3),e=q();let t;a[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Te},a[0]=t):t=a[0];const s=U(t);if(!e||!s)return!1;let o;return a[1]!==s?(o=V.includes(s),a[1]=s,a[2]=o):o=a[2],o}function Te(a){return a.matches.findLast(_e)?.staticData.mainView}function _e(a){return a.staticData.mainView}function Ie(){const a=y.c(1);let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},a[0]=e):e=a[0],!!G(e)}const O=_.createContext(null);function tt(a){const e=y.c(5),{children:t}=a,[s,o]=_.useState(null);let i;e[0]!==s?(i={target:s,setTarget:o},e[0]=s,e[1]=i):i=e[1];let c;return e[2]!==t||e[3]!==i?(c=l.jsx(O,{value:i,children:t}),e[2]=t,e[3]=i,e[4]=c):c=e[4],c}function $e(){const a=_.use(O);if(!a)throw new Error("Sidebar thread controls require a Layout");return a}function R(a){const e=y.c(17),{open:t,onToggle:s}=a,o=k(),{isMobile:i,setOpenMobile:c}=E(),r=t?"page.closeThread":"page.openThread";let n;e[0]!==o||e[1]!==r?(n=o(r),e[0]=o,e[1]=r,e[2]=n):n=e[2];const d=n;let p;e[3]!==i||e[4]!==s||e[5]!==c?(p=()=>{s(),i&&c(!1)},e[3]=i,e[4]=s,e[5]=c,e[6]=p):p=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(se,{size:16}),e[7]=h):h=e[7];let b;e[8]!==d||e[9]!==t||e[10]!==p?(b=l.jsx(A,{asChild:!0,children:l.jsx(ge,{"aria-label":d,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:p,children:h})}),e[8]=d,e[9]=t,e[10]=p,e[11]=b):b=e[11];let u;e[12]!==d?(u=l.jsx(B,{side:"right",children:d}),e[12]=d,e[13]=u):u=e[13];let m;return e[14]!==b||e[15]!==u?(m=l.jsxs(D,{children:[b,u]}),e[14]=b,e[15]=u,e[16]=m):m=e[16],m}function at(a){const e=y.c(3),t=_.use(O);let s;return e[0]!==a||e[1]!==t?(s=t?.target?X.createPortal(l.jsx(R,{...a}),t.target):null,e[0]=a,e[1]=t,e[2]=s):s=e[2],s}function st(){const a=y.c(11),{setTarget:e}=$e(),t=Ie(),{isMobile:s}=E(),o=Y(),{org:i}=Q(),{openSidePanel:c}=ve();let r;a[0]!==e?(r=l.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),a[0]=e,a[1]=r):r=a[1];let n;a[2]!==t||a[3]!==s||a[4]!==o||a[5]!==c||a[6]!==i?(n=l.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:l.jsx(R,{open:!1,onToggle:()=>{t?o({to:"/$org/home",params:{org:i.slug},search:{sidepanel:!0,mainpanel:!s}}):s?o({to:".",search:Pe,replace:!0}):c()}})}),a[2]=t,a[3]=s,a[4]=o,a[5]=c,a[6]=i,a[7]=n):n=a[7];let d;return a[8]!==r||a[9]!==n?(d=l.jsxs(l.Fragment,{children:[r,n]}),a[8]=r,a[9]=n,a[10]=d):d=a[10],d}function Pe(a){return{...a,...ce("chat")}}export{Qe as P,He as S,E as a,Fe as b,tt as c,Je as d,Ye as e,Ge as f,Xe as g,qe as h,st as i,Ue as j,We as k,Ie as l,Ze as m,at as n,et as u};
|
|
1
|
+
import{r as _,c as y,j as l,l as N,bd as L,aC as H,J as T,ab as F,b as k,L as W,q as J,Y as q,k as U,_ as G,aO as X,d as Y,X as Q}from"./index-DHm3sAos.js";import{av as Z,aw as ee,m as te,ax as ae,G as se}from"./agent-icon-DEuXrFU-.js";import{a as oe,f as ie}from"./UserSquare-nJ9f4NF0.js";import{a as ne}from"./Image01-J0gfSiuA.js";import{i as re}from"./ZoomOut-Bl9nBv2m.js";import{e as le,m as ce}from"./use-chat-layout-state-BN8QGB1z.js";import{b as de}from"./use-project-scope-C-9j3flY.js";import{u as pe}from"./use-mobile-347n7_IQ.js";import{b as ue,c as fe,S as be,d as me,a as he}from"./sheet-BziqOxJW.js";import{c as xe,a as B,T as A,b as D}from"./tooltip-BPqQWogJ.js";import{T as ge}from"./toolbar-icon-button-Bwh0s6hU.js";import{a as ve}from"./shell-layout-BNJ06xIX.js";const je="15rem",Se="18rem",ye="4.5rem",z=_.createContext(null);function E(){const a=_.useContext(z);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}function He(a){const e=y.c(19),{children:t,defaultOpen:s,open:o,onOpenChange:i}=a,c=s===void 0?!1:s,r=pe(),[n,d]=_.useState(c),[p,h]=_.useState(!1),b=o!==void 0,u=b?o:n;let m;e[0]!==b||e[1]!==i?(m=I=>{b||d(I),i?.(I)},e[0]=b,e[1]=i,e[2]=m):m=e[2];const f=m;let x;e[3]!==r||e[4]!==u||e[5]!==f?(x=()=>{r?h(we):f(!u)},e[3]=r,e[4]=u,e[5]=f,e[6]=x):x=e[6];const g=x,j=u?"expanded":"collapsed";let v;e[7]!==r||e[8]!==u||e[9]!==p||e[10]!==f||e[11]!==j||e[12]!==g?(v={state:j,open:u,setOpen:f,isMobile:r,openMobile:p,setOpenMobile:h,toggleSidebar:g},e[7]=r,e[8]=u,e[9]=p,e[10]=f,e[11]=j,e[12]=g,e[13]=v):v=e[13];const w=v;let S;e[14]!==t?(S=l.jsx(xe,{delayDuration:0,children:t}),e[14]=t,e[15]=S):S=e[15];let C;return e[16]!==w||e[17]!==S?(C=l.jsx(z.Provider,{value:w,children:S}),e[16]=w,e[17]=S,e[18]=C):C=e[18],C}function we(a){return!a}function Fe(a){const e=y.c(14);let t,s,o,i;e[0]!==a?({className:s,style:i,children:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=i):(t=e[1],s=e[2],o=e[3],i=e[4]);let c;e[5]!==i?(c={"--sidebar-width":je,"--sidebar-width-icon":ye,...i},e[5]=i,e[6]=c):c=e[6];const r=c;let n;e[7]!==s?(n=N("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=n):n=e[8];let d;return e[9]!==t||e[10]!==o||e[11]!==r||e[12]!==n?(d=l.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:n,...o,children:t}),e[9]=t,e[10]=o,e[11]=r,e[12]=n,e[13]=d):d=e[13],d}function We(a){const e=y.c(36);let t,s,o,i,c;e[0]!==a?({side:i,variant:c,className:s,children:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=i,e[5]=c):(t=e[1],s=e[2],o=e[3],i=e[4],c=e[5]);const r=i===void 0?"left":i,n=c===void 0?"sidebar":c,{isMobile:d,state:p,openMobile:h,setOpenMobile:b}=E();if(d){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":Se},e[6]=C):C=e[6];let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsxs(fe,{className:"sr-only",children:[l.jsx(be,{children:"Sidebar"}),l.jsx(me,{children:"Displays the mobile sidebar."})]}),e[7]=I):I=e[7];let $;e[8]!==t?($=l.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let P;e[10]!==r||e[11]!==$?(P=l.jsxs(he,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:r,children:[I,$]}),e[10]=r,e[11]=$,e[12]=P):P=e[12];let K;return e[13]!==h||e[14]!==o||e[15]!==b||e[16]!==P?(K=l.jsx(ue,{open:h,onOpenChange:b,...o,children:P}),e[13]=h,e[14]=o,e[15]=b,e[16]=P,e[17]=K):K=e[17],K}const u=p==="expanded",m=u?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==m?(f=N("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",m),e[18]=m,e[19]=f):f=e[19];const x=u?void 0:"icon",g=u?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let j;e[20]!==s||e[21]!==g?(j=N("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",g,s),e[20]=s,e[21]=g,e[22]=j):j=e[22];let v;e[23]!==t?(v=l.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=v):v=e[24];let w;e[25]!==o||e[26]!==j||e[27]!==v?(w=l.jsx("div",{"data-slot":"sidebar-container",className:j,...o,children:v}),e[25]=o,e[26]=j,e[27]=v,e[28]=w):w=e[28];let S;return e[29]!==r||e[30]!==p||e[31]!==f||e[32]!==x||e[33]!==w||e[34]!==n?(S=l.jsx("div",{className:f,"data-state":p,"data-collapsible":x,"data-variant":n,"data-side":r,"data-slot":"sidebar",children:w}),e[29]=r,e[30]=p,e[31]=f,e[32]=x,e[33]=w,e[34]=n,e[35]=S):S=e[35],S}function Je(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("main",{"data-slot":"sidebar-inset",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function qe(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function Ue(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function Ge(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}function Xe(a){const e=y.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=N("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=o):o=e[4];let i;return e[5]!==s||e[6]!==o?(i=l.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:o,...s}),e[5]=s,e[6]=o,e[7]=i):i=e[7],i}const Ne=H("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ye(a){const e=y.c(28);let t,s,o,i,c,r,n;e[0]!==a?({asChild:o,isActive:i,variant:c,size:r,tooltip:n,className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=i,e[5]=c,e[6]=r,e[7]=n):(t=e[1],s=e[2],o=e[3],i=e[4],c=e[5],r=e[6],n=e[7]);const d=o===void 0?!1:o,p=i===void 0?!1:i,h=c===void 0?"default":c,b=r===void 0?"default":r,u=d?L:"button",{isMobile:m}=E();let f;e[8]!==t||e[9]!==b||e[10]!==h?(f=N(Ne({variant:h,size:b}),t),e[8]=t,e[9]=b,e[10]=h,e[11]=f):f=e[11];let x;e[12]!==u||e[13]!==p||e[14]!==s||e[15]!==b||e[16]!==f?(x=l.jsx(u,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":b,"data-active":p,className:f,...s}),e[12]=u,e[13]=p,e[14]=s,e[15]=b,e[16]=f,e[17]=x):x=e[17];const g=x;if(!n)return g;if(typeof n=="string"){let S;e[18]!==n?(S={children:n},e[18]=n,e[19]=S):S=e[19],n=S}let j;e[20]!==g?(j=l.jsx(A,{asChild:!0,children:g}),e[20]=g,e[21]=j):j=e[21];let v;e[22]!==m||e[23]!==n?(v=l.jsx(B,{side:"right",align:"center",hidden:m,...n}),e[22]=m,e[23]=n,e[24]=v):v=e[24];let w;return e[25]!==j||e[26]!==v?(w=l.jsxs(D,{children:[j,v]}),e[25]=j,e[26]=v,e[27]=w):w=e[27],w}const M={reports:{labelKey:"projects.apps.reports",captionKey:"projects.apps.reportsCaption",Icon:ie,to:T.reports,tone:"bg-chart-2/15 text-chart-2"},"site-editor":{labelKey:"projects.apps.siteEditor",captionKey:"projects.apps.siteEditorCaption",Icon:oe,to:T.siteEditor,tone:"bg-chart-1/15 text-chart-1"},assets:{labelKey:"projects.apps.assets",captionKey:"projects.apps.assetsCaption",Icon:ne,to:T.assets,tone:"bg-chart-2/15 text-chart-2"},hosting:{labelKey:"projects.apps.hosting",captionKey:"projects.apps.hostingCaption",Icon:F,to:T.hosting,tone:"bg-chart-3/15 text-chart-3"},e2e:{labelKey:"projects.apps.e2e",captionKey:"projects.apps.e2eCaption",Icon:ae,to:T.e2e,tone:"bg-chart-4/15 text-chart-4"},analytics:{labelKey:"projects.apps.analytics",captionKey:"projects.apps.analyticsCaption",Icon:te,to:T.analytics,tone:"bg-chart-5/15 text-chart-5"},cdn:{labelKey:"projects.apps.cdn",captionKey:"projects.apps.cdnCaption",Icon:ee,to:T.monitor,tone:"bg-chart-2/15 text-chart-2"},automations:{labelKey:"projects.apps.automations",captionKey:"projects.apps.automationsCaption",Icon:re,to:T.automations,tone:"bg-chart-4/15 text-chart-4"},experiments:{labelKey:"projects.apps.experiments",captionKey:"projects.apps.experimentsCaption",Icon:Z,to:T.experiments,tone:"bg-chart-1/15 text-chart-1"}},Qe=M,V=Object.keys(M);function Ce(a){const e=new Set(le(a.metadata?.sidebarViews,a.metadata?.sidebarViewsVersion));return V.filter(t=>e.has(t))}function Ze(a){const e=y.c(23),{project:t,orgSlug:s}=a,o=k();let i,c,r,n,d;if(e[0]!==s||e[1]!==t||e[2]!==o){d=Symbol.for("react.early_return_sentinel");e:{const b=de(t.metadata),u=Ce(t).filter(x=>x!=="site-editor"||b);if(u.length===0){d=null;break e}r="flex flex-col gap-2";let m;e[8]!==o?(m=o("projects.apps.heading"),e[8]=o,e[9]=m):m=e[9],e[10]!==m?(n=l.jsx("h2",{className:"pl-3 text-muted-foreground text-sm font-medium",children:m}),e[10]=m,e[11]=n):n=e[11],i="flex flex-wrap gap-3";let f;e[12]!==s||e[13]!==t.id||e[14]!==o?(f=x=>{const g=M[x];return l.jsxs(W,{to:g.to,params:{org:s,agentId:t.id},onClick:()=>J("project_app_launched",{app:x}),title:o(g.captionKey),className:"group flex w-20 flex-col items-center gap-2 rounded-xl p-2 text-center transition-colors hover:bg-accent/50",children:[l.jsx("span",{className:N("relative flex size-14 shrink-0 items-center justify-center rounded-2xl transition-transform group-hover:scale-105",g.tone),children:l.jsx(g.Icon,{size:24})}),l.jsx("span",{className:"w-full truncate text-foreground text-xs font-medium",children:o(g.labelKey)})]},x)},e[12]=s,e[13]=t.id,e[14]=o,e[15]=f):f=e[15],c=u.map(f)}e[0]=s,e[1]=t,e[2]=o,e[3]=i,e[4]=c,e[5]=r,e[6]=n,e[7]=d}else i=e[3],c=e[4],r=e[5],n=e[6],d=e[7];if(d!==Symbol.for("react.early_return_sentinel"))return d;let p;e[16]!==i||e[17]!==c?(p=l.jsx("div",{className:i,children:c}),e[16]=i,e[17]=c,e[18]=p):p=e[18];let h;return e[19]!==r||e[20]!==n||e[21]!==p?(h=l.jsxs("section",{className:r,children:[n,p]}),e[19]=r,e[20]=n,e[21]=p,e[22]=h):h=e[22],h}function et(){const a=y.c(3),e=q();let t;a[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:Te},a[0]=t):t=a[0];const s=U(t);if(!e||!s)return!1;let o;return a[1]!==s?(o=V.includes(s),a[1]=s,a[2]=o):o=a[2],o}function Te(a){return a.matches.findLast(_e)?.staticData.mainView}function _e(a){return a.staticData.mainView}function Ie(){const a=y.c(1);let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},a[0]=e):e=a[0],!!G(e)}const O=_.createContext(null);function tt(a){const e=y.c(5),{children:t}=a,[s,o]=_.useState(null);let i;e[0]!==s?(i={target:s,setTarget:o},e[0]=s,e[1]=i):i=e[1];let c;return e[2]!==t||e[3]!==i?(c=l.jsx(O,{value:i,children:t}),e[2]=t,e[3]=i,e[4]=c):c=e[4],c}function $e(){const a=_.use(O);if(!a)throw new Error("Sidebar thread controls require a Layout");return a}function R(a){const e=y.c(17),{open:t,onToggle:s}=a,o=k(),{isMobile:i,setOpenMobile:c}=E(),r=t?"page.closeThread":"page.openThread";let n;e[0]!==o||e[1]!==r?(n=o(r),e[0]=o,e[1]=r,e[2]=n):n=e[2];const d=n;let p;e[3]!==i||e[4]!==s||e[5]!==c?(p=()=>{s(),i&&c(!1)},e[3]=i,e[4]=s,e[5]=c,e[6]=p):p=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=l.jsx(se,{size:16}),e[7]=h):h=e[7];let b;e[8]!==d||e[9]!==t||e[10]!==p?(b=l.jsx(A,{asChild:!0,children:l.jsx(ge,{"aria-label":d,"aria-pressed":t,active:t,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:p,children:h})}),e[8]=d,e[9]=t,e[10]=p,e[11]=b):b=e[11];let u;e[12]!==d?(u=l.jsx(B,{side:"right",children:d}),e[12]=d,e[13]=u):u=e[13];let m;return e[14]!==b||e[15]!==u?(m=l.jsxs(D,{children:[b,u]}),e[14]=b,e[15]=u,e[16]=m):m=e[16],m}function at(a){const e=y.c(3),t=_.use(O);let s;return e[0]!==a||e[1]!==t?(s=t?.target?X.createPortal(l.jsx(R,{...a}),t.target):null,e[0]=a,e[1]=t,e[2]=s):s=e[2],s}function st(){const a=y.c(11),{setTarget:e}=$e(),t=Ie(),{isMobile:s}=E(),o=Y(),{org:i}=Q(),{openSidePanel:c}=ve();let r;a[0]!==e?(r=l.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),a[0]=e,a[1]=r):r=a[1];let n;a[2]!==t||a[3]!==s||a[4]!==o||a[5]!==c||a[6]!==i?(n=l.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:l.jsx(R,{open:!1,onToggle:()=>{t?o({to:"/$org/home",params:{org:i.slug},search:{sidepanel:!0,mainpanel:!s}}):s?o({to:".",search:Pe,replace:!0}):c()}})}),a[2]=t,a[3]=s,a[4]=o,a[5]=c,a[6]=i,a[7]=n):n=a[7];let d;return a[8]!==r||a[9]!==n?(d=l.jsxs(l.Fragment,{children:[r,n]}),a[8]=r,a[9]=n,a[10]=d):d=a[10],d}function Pe(a){return{...a,...ce("chat")}}export{Qe as P,He as S,E as a,Fe as b,tt as c,Je as d,Ye as e,Ge as f,Xe as g,qe as h,st as i,Ue as j,We as k,Ie as l,Ze as m,at as n,et as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cN as Ft,cO as Ut,cP as Bt,bO as Zt,cQ as Vt,ap as zt,bN as Wt,ao as Jt,aF as Gt,cR as Ht,cS as Yt,cT as qt,cU as Kt,cV as Xt,bL as Qt,cW as ea,cX as ta,bK as aa,bM as ra,t as pe,r as W,c as _e,X as na,z as sa,j as oa,V as ia}from"./index-
|
|
1
|
+
import{cN as Ft,cO as Ut,cP as Bt,bO as Zt,cQ as Vt,ap as zt,bN as Wt,ao as Jt,aF as Gt,cR as Ht,cS as Yt,cT as qt,cU as Kt,cV as Xt,bL as Qt,cW as ea,cX as ta,bK as aa,bM as ra,t as pe,r as W,c as _e,X as na,z as sa,j as oa,V as ia}from"./index-DHm3sAos.js";import{u as la}from"./use-mcp-client-ZKTq8mxe.js";import{d as ua,e as Qe}from"./backoff-8mStPHYB.js";import{T as et,a as tt,b as at}from"./task-board-BPfcIzWi.js";import{s as ca}from"./slugify-CEUa2lfQ.js";const oe={STEP:"decopilot.step",FINISH:"decopilot.finish",THREAD_STATUS:"decopilot.thread.status"},rt=Object.values(oe);var nt="vercel.ai.error",da=Symbol.for(nt),Oe,Me,x=class st extends(Me=Error,Oe=da,Me){constructor({name:e,message:a,cause:r}){super(a),this[Oe]=!0,this.name=e,this.cause=r}static isInstance(e){return st.hasMarker(e,nt)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function ot(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.toString():JSON.stringify(t)}var it="AI_InvalidArgumentError",lt=`vercel.ai.error.${it}`,pa=Symbol.for(lt),Ce,Re,fa=class extends(Re=x,Ce=pa,Re){constructor({message:e,cause:a,argument:r}){super({name:it,message:e,cause:a}),this[Ce]=!0,this.argument=r}static isInstance(e){return x.hasMarker(e,lt)}},ut="AI_JSONParseError",ct=`vercel.ai.error.${ut}`,ha=Symbol.for(ct),Pe,Ne,xe=class extends(Ne=x,Pe=ha,Ne){constructor({text:t,cause:e}){super({name:ut,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${ot(e)}`,cause:e}),this[Pe]=!0,this.text=t}static isInstance(t){return x.hasMarker(t,ct)}},dt="AI_TypeValidationError",pt=`vercel.ai.error.${dt}`,ma=Symbol.for(pt),De,je,Z=class fe extends(je=x,De=ma,je){constructor({value:e,cause:a,context:r}){let n="Type validation failed";if(r?.field&&(n+=` for ${r.field}`),r?.entityName||r?.entityId){n+=" (";const i=[];r.entityName&&i.push(r.entityName),r.entityId&&i.push(`id: "${r.entityId}"`),n+=i.join(", "),n+=")"}super({name:dt,message:`${n}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${ot(a)}`,cause:a}),this[De]=!0,this.value=e,this.context=r}static isInstance(e){return x.hasMarker(e,pt)}static wrap({value:e,cause:a,context:r}){var n,i,l;return fe.isInstance(a)&&a.value===e&&((n=a.context)==null?void 0:n.field)===r?.field&&((i=a.context)==null?void 0:i.entityName)===r?.entityName&&((l=a.context)==null?void 0:l.entityId)===r?.entityId?a:new fe({value:e,cause:a,context:r})}};new TextDecoder;var D=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const n=()=>{const i=a.length,l=new Array(e);for(let o=0;o<e;o++)l[o]=a[Math.random()*i|0];return l.join("")};if(t==null)return n;if(a.includes(r))throw new fa({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${n()}`};D();function ga(t){var e,a;return(a=(e=globalThis.Buffer)==null?void 0:e.isBuffer(t))!=null?a:!1}var va=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,ya=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Le(t){const e=JSON.parse(t);return e===null||typeof e!="object"||va.test(t)===!1&&ya.test(t)===!1?e:ba(e)}function ba(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const n in r){const i=r[n];i&&typeof i=="object"&&e.push(i)}}}return t}function Sa(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return Le(t)}try{return Le(t)}finally{Error.stackTraceLimit=e}}function Ee(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){const{additionalProperties:a}=t;t.additionalProperties=a!=null&&typeof a!="boolean"?B(a):!1;const{properties:r}=t;if(r!=null)for(const n of Object.keys(r))r[n]=B(r[n])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(B):B(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(B)),t.allOf!=null&&(t.allOf=t.allOf.map(B)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(B));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=B(e[a]);return t}function B(t){return typeof t=="boolean"?t:Ee(t)}var _a=Symbol("Let zodToJsonSchema decide on which parser to use"),$e={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Ea=t=>typeof t=="string"?{...$e,name:t}:{...$e,...t};function N(){return{}}function Ia(t,e){var a,r,n;const i={type:"array"};return(a=t.type)!=null&&a._def&&((n=(r=t.type)==null?void 0:r._def)==null?void 0:n.typeName)!=="ZodAny"&&(i.items=S(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(i.minItems=t.minLength.value),t.maxLength&&(i.maxItems=t.maxLength.value),t.exactLength&&(i.minItems=t.exactLength.value,i.maxItems=t.exactLength.value),i}function Ta(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function wa(){return{type:"boolean"}}function ft(t,e){return S(t.type._def,e)}var Aa=(t,e)=>S(t.innerType._def,e);function ht(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map(n=>ht(t,e,n))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Oa(t)}}var Oa=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function Ma(t,e){return{...S(t.innerType._def,e),default:t.defaultValue()}}function Ca(t,e){return e.effectStrategy==="input"?S(t.schema._def,e):N()}function Ra(t){return{type:"string",enum:Array.from(t.values)}}var Pa=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function Na(t,e){const a=[S(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),S(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(n=>!!n),r=[];return a.forEach(n=>{if(Pa(n))r.push(...n.allOf);else{let i=n;if("additionalProperties"in n&&n.additionalProperties===!1){const{additionalProperties:l,...o}=n;i=o}r.push(i)}}),r.length?{allOf:r}:void 0}function xa(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var ce=void 0,j={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(ce===void 0&&(ce=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ce),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function mt(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":L(a,"email",r.message,e);break;case"format:idn-email":L(a,"idn-email",r.message,e);break;case"pattern:zod":P(a,j.email,r.message,e);break}break;case"url":L(a,"uri",r.message,e);break;case"uuid":L(a,"uuid",r.message,e);break;case"regex":P(a,r.regex,r.message,e);break;case"cuid":P(a,j.cuid,r.message,e);break;case"cuid2":P(a,j.cuid2,r.message,e);break;case"startsWith":P(a,RegExp(`^${de(r.value,e)}`),r.message,e);break;case"endsWith":P(a,RegExp(`${de(r.value,e)}$`),r.message,e);break;case"datetime":L(a,"date-time",r.message,e);break;case"date":L(a,"date",r.message,e);break;case"time":L(a,"time",r.message,e);break;case"duration":L(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{P(a,RegExp(de(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&L(a,"ipv4",r.message,e),r.version!=="v4"&&L(a,"ipv6",r.message,e);break}case"base64url":P(a,j.base64url,r.message,e);break;case"jwt":P(a,j.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&P(a,j.ipv4Cidr,r.message,e),r.version!=="v4"&&P(a,j.ipv6Cidr,r.message,e);break}case"emoji":P(a,j.emoji(),r.message,e);break;case"ulid":{P(a,j.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{L(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{P(a,j.base64,r.message,e);break}}break}case"nanoid":P(a,j.nanoid,r.message,e)}return a}function de(t,e){return e.patternStrategy==="escape"?ja(t):t}var Da=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function ja(t){let e="";for(let a=0;a<t.length;a++)Da.has(t[a])||(e+="\\"),e+=t[a];return e}function L(t,e,a,r){var n;t.format||(n=t.anyOf)!=null&&n.some(i=>i.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function P(t,e,a,r){var n;t.pattern||(n=t.allOf)!=null&&n.some(i=>i.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:ke(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=ke(e,r)}function ke(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=r.i?t.source.toLowerCase():t.source;let i="",l=!1,o=!1,p=!1;for(let c=0;c<n.length;c++){if(l){i+=n[c],l=!1;continue}if(r.i){if(o){if(n[c].match(/[a-z]/)){p?(i+=n[c],i+=`${n[c-2]}-${n[c]}`.toUpperCase(),p=!1):n[c+1]==="-"&&((a=n[c+2])!=null&&a.match(/[a-z]/))?(i+=n[c],p=!0):i+=`${n[c]}${n[c].toUpperCase()}`;continue}}else if(n[c].match(/[a-z]/)){i+=`[${n[c]}${n[c].toUpperCase()}]`;continue}}if(r.m){if(n[c]==="^"){i+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(n[c]==="$"){i+=`($|(?=[\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i,X as p,as as A,f as g,u as _,d as k,ay as M,bT as P}from"./index-
|
|
1
|
+
import{c as i,X as p,as as A,f as g,u as _,d as k,ay as M,bT as P}from"./index-DHm3sAos.js";function w(e){return e.taskIdParam??e.threadSearch??null}function j(e){return e.threadAgentId==null||e.threadAgentId===e.routeAgentId}function E(){const e=i.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=g(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const s=_(a);let n;return e[2]!==r.taskId||e[3]!==s.thread?(n=w({taskIdParam:r.taskId,threadSearch:s.thread}),e[2]=r.taskId,e[3]=s.thread,e[4]=n):n=e[4],n}function V(e){const t=e.agentIdParam?.trim();if(t)return t;const r=e.virtualMcpIdSearch?.trim();return e.legacyRoute&&r||void 0}function $(){const e=i.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],g(t).taskId!==void 0}function x(){const e=i.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const r=g(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const s=_(a),n="virtualmcpid"in s&&typeof s.virtualmcpid=="string"?s.virtualmcpid:void 0,c=$();let o;return e[2]!==c||e[3]!==r.agentId||e[4]!==n?(o=V({agentIdParam:r.agentId,virtualMcpIdSearch:n,legacyRoute:c}),e[2]=c,e[3]=r.agentId,e[4]=n,e[5]=o):o=e[5],o}function C(){const e=i.c(3),{org:t}=p(),r=x();let a;return e[0]!==t||e[1]!==r?(a=r??A(t.id).id,e[0]=t,e[1]=r,e[2]=a):a=e[2],a}function D(e){const{virtualmcpid:t,main:r,...a}=e.prev,{virtualmcpid:s,main:n,...c}=e.changes;return{...a,...c,thread:e.threadId}}function K(e){return e.routeAgentId??e.threadVirtualMcpId??null}function L(){const e=i.c(10),t=k();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const a=g(r),{org:s}=p(),n=a.org??"",c=a.agentId,o=C();let d;e[1]!==s.id?(d=A(s.id),e[1]=s.id,e[2]=d):d=e[2];const f=d.id;let l;return e[3]!==c||e[4]!==o||e[5]!==t||e[6]!==n||e[7]!==a.taskId||e[8]!==f?(l=(S,y,u)=>{const h=u?.replace??!1,m=u?.virtualMcpId??c,b=u?.view===void 0&&a.taskId===void 0&&(m===void 0||m===c),v=T=>I=>({...D({prev:T?{sidepanel:I.sidepanel}:I,changes:y(I),threadId:S})});if(b)return t({to:".",search:v(!1),replace:h});const R=M({org:n,agentId:m??o,superAgentId:f,tabId:u?.view?.tabId});return P(t,R,{search:v(!0),replace:h})},e[3]=c,e[4]=o,e[5]=t,e[6]=n,e[7]=a.taskId,e[8]=f,e[9]=l):l=e[9],l}export{E as a,C as b,L as c,j as d,K as r,x as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R,d as U,X as E,b as M,V as k,W as T,j as e,B as w,r as S,E as z,aq as D,z as I,D as F,K as A,e as O,q as C,u as L,ar as B,O as K}from"./index-
|
|
1
|
+
import{c as R,d as U,X as E,b as M,V as k,W as T,j as e,B as w,r as S,E as z,aq as D,z as I,D as F,K as A,e as O,q as C,u as L,ar as B,O as K}from"./index-DHm3sAos.js";import{C as q}from"./chat-context-Cs0DM81h.js";import{T as W}from"./thread-intent-DQzWIUxa.js";import{s as G,n as H}from"./site-url-en5df9c-.js";import{f as Q,d as Y,D as $,g as J}from"./dialog-CpigP_0G.js";import{r as V}from"./use-reports-diagnostic-rp-SkDPw.js";import{u as X}from"./use-mcp-client-ZKTq8mxe.js";import{i as N}from"./ArrowRight-CSuUxLXs.js";import{a as Z}from"./use-organization-settings-DKqPZnyT.js";import{C as tt,a as et}from"./companion-mcps-section-BQug3QPM.js";import{C as ot,a as rt}from"./connect-layout-DrnTRC-G.js";import{p as b}from"./self-tool-result-8OxPN9Nm.js";import"./use-panel-navigate-CZC-Bri6.js";import"./thread-route-MHfZTnxN.js";import"./use-project-scope-C-9j3flY.js";import"./github-repo-D8GMoLYQ.js";import"./autosend-B-xGQLGu.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-BHyBfguX.js";import"./use-ai-providers-CMRsxIS9.js";import"./location-DBePU4bz.js";import"./backoff-8mStPHYB.js";import"./task-board-BPfcIzWi.js";import"./schema-DiX8ky2j.js";import"./slugify-CEUa2lfQ.js";import"./X-DcSBITTK.js";import"./companions-core-BnuxEm_5.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-C8GSbvaz.js";import"./auth-CkYcqAeJ.js";import"./use-connect-companion-DnyTevE1.js";import"./integration-icon-C95OvdZY.js";import"./agent-icon-DEuXrFU-.js";import"./AlertCircle-kC7-H0Eq.js";import"./Tool01-Du0jvtC3.js";import"./ArrowUp-C5ammB5D.js";import"./ArrowLeft-CmIJpvUZ.js";import"./ShoppingBag01-Bw6UaPe0.js";import"./ZoomOut-Bl9nBv2m.js";import"./Palette-D8COKeRn.js";import"./CheckCircle-xh5odl0l.js";import"./Check-Dbt8bZ4k.js";import"./ChevronUp-B2Dk8prO.js";import"./UserSquare-nJ9f4NF0.js";import"./Copy01-CnzDdpP4.js";import"./CreditCard01-BlGIgjeE.js";import"./DotsVertical-B-n3YUHe.js";import"./Image01-J0gfSiuA.js";import"./XClose-xx11bGMi.js";import"./Key01-B8-ttURL.js";import"./Link01-DTEbhjIF.js";import"./LinkExternal01-CDf0tC6K.js";import"./Monitor01-CtZ292tS.js";import"./Sun-Btmv74E4.js";import"./Plus-CtWJxGU_.js";import"./SearchMd-DkecYIYo.js";import"./Trash01-DoLFc_xg.js";import"./Upload01-DkNYZKnb.js";import"./User01-q3oA7kn7.js";import"./Users01-CZj2rg51.js";import"./tooltip-BPqQWogJ.js";import"./index-M93GjJWb.js";import"./form-DJuq50sa.js";import"./label-CWrp9ARo.js";import"./input-Bl-eHzaC.js";import"./use-debounced-value-r4EjWqFM.js";import"./provision-repo-scoped-github-connection-B6zdkC6p.js";import"./useQueries-Dll0gG_2.js";import"./authenticate-and-persist-oauth-ER6BM4qa.js";import"./mcp-oauth-Lt1uEt0B.js";import"./track-BLdcCbIC.js";import"./extract-connection-data-sRLHFO8e.js";import"./connection-DeRv5rki.js";function nt(o){const t=R.c(21),{siteUrl:a}=o,r=U(),{org:s}=E(),n=M();let l;t[0]!==r||t[1]!==s?(l=()=>{localStorage.setItem(k.sidebarOpen(),JSON.stringify(!1));const x=V(s,T.REPORTS(s.id));r({...x,search:{...x.search,sidepanel:!1}})},t[0]=r,t[1]=s,t[2]=l):l=t[2];const i=l;let h;t[3]===Symbol.for("react.memo_cache_sentinel")?(h=e.jsx(Q,{className:"bg-black/15 backdrop-blur-sm"}),t[3]=h):h=t[3];let m;t[4]!==n?(m=n("routes.reportsOnboarding.connectModal.dialogTitle"),t[4]=n,t[5]=m):m=t[5];let c;t[6]!==m?(c=e.jsx(Y,{className:"sr-only",children:m}),t[6]=m,t[7]=c):c=t[7];let f;t[8]!==i||t[9]!==n?(f=()=>e.jsxs("div",{className:"grid gap-4 p-6",children:[e.jsx("p",{className:"text-sm text-muted-foreground",children:n("routes.reportsOnboarding.connectModal.loadError")}),e.jsxs(w,{type:"button",size:"xl",className:"w-full",onClick:i,children:[n("routes.reportsOnboarding.connectModal.continueButton"),e.jsx(N,{size:18})]})]}),t[8]=i,t[9]=n,t[10]=f):f=t[10];let _;t[11]===Symbol.for("react.memo_cache_sentinel")?(_=e.jsx(tt,{}),t[11]=_):_=t[11];let u;t[12]!==i||t[13]!==a?(u=e.jsx(S.Suspense,{fallback:_,children:e.jsx(lt,{siteUrlFromUrl:a,onComplete:i})}),t[12]=i,t[13]=a,t[14]=u):u=t[14];let d;t[15]!==f||t[16]!==u?(d=e.jsx(z,{fallback:f,children:u}),t[15]=f,t[16]=u,t[17]=d):d=t[17];let y;return t[18]!==c||t[19]!==d?(y=e.jsx($,{open:!0,children:e.jsxs(J,{children:[h,e.jsxs(D,{"data-slot":"connect-modal",onEscapeKeyDown:st,onPointerDownOutside:it,onInteractOutside:at,className:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex h-[calc(100dvh-1rem)] w-full max-w-[calc(100%-1rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-2xl border p-0 shadow-md duration-200 sm:max-w-lg md:h-auto md:max-h-[calc(100dvh-2rem)] lg:max-h-[calc(100dvh-4rem)] lg:max-w-5xl",children:[c,d]})]})}),t[18]=c,t[19]=d,t[20]=y):y=t[20],y}function at(o){return o.preventDefault()}function it(o){return o.preventDefault()}function st(o){return o.preventDefault()}function lt({siteUrlFromUrl:o,onComplete:t}){const a=M(),{org:r}=E(),s=T.REPORTS(r.id),n=X({connectionId:I,orgId:r.id,orgSlug:r.slug}),i=F({queryKey:A.reportsConnection(r.id,s),queryFn:async()=>{const p=await n.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:s}});return b(p)},retry:!1}).data.item,h=typeof i?.metadata?.siteUrl=="string"?i.metadata.siteUrl:void 0,m=o||h,c=G(m),[f,_]=S.useState(!0),[u,d]=S.useState(null),y=O({mutationFn:async p=>b(await n.callTool({name:"REPORTS_SETUP",arguments:{siteUrl:p}})),retry:!1}),x=O({mutationFn:async p=>b(await n.callTool({name:"REPORTS_RUN",arguments:{siteUrl:p}})),retry:!1}),j=async()=>{d(null),C("commerce_onboarding_open_report_clicked",{domain:c??void 0,organization_id:r.id});const p=m?H(m):null;if(p?.ok)try{let g=await x.mutateAsync(p.value);if(g.triggered||(C("commerce_onboarding_run_reclaim",{domain:c??void 0,organization_id:r.id,reason:g.reason??"not_upgraded"}),await y.mutateAsync(p.value),g=await x.mutateAsync(p.value)),!g.triggered){C("commerce_onboarding_run_failed",{domain:c??void 0,organization_id:r.id,error:g.reason??"not_triggered"}),d(a("routes.reportsOnboarding.connectModal.couldNotGenerateReport"));return}}catch(g){C("commerce_onboarding_run_failed",{domain:c??void 0,organization_id:r.id,error:g instanceof Error?g.message:String(g)}),d(a("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}t()},P=Z("demo_mode"),v=f||P;return e.jsx(ot,{siteHost:c,footer:e.jsxs(e.Fragment,{children:[u?e.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:u}):null,e.jsxs("div",{className:"flex gap-3",children:[e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(rt,{ready:v,pending:x.isPending,label:x.isPending?a("routes.reportsOnboarding.connectModal.openingReport"):a("routes.reportsOnboarding.connectModal.viewDiagnostic"),onClick:()=>{j()},children:e.jsx(N,{size:18})})}),v?null:e.jsx(w,{type:"button",variant:"secondary",size:"lg",className:"h-auto min-h-12 shrink-0 py-3 text-base font-medium leading-tight",disabled:x.isPending,onClick:()=>{j()},children:a("routes.reportsOnboarding.connectModal.skip")})]})]}),children:e.jsx(et,{org:r,cdConnectionId:s,siteUrl:m,onReadinessChange:_})})}function Me(){const o=R.c(7);let t;o[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},o[0]=t):t=o[0];const a=L(t),r="connect"in a&&a.connect==="1",s="siteUrl"in a&&typeof a.siteUrl=="string"?a.siteUrl:void 0;let n;o[1]===Symbol.for("react.memo_cache_sentinel")?(n=e.jsx(B,{children:e.jsx(K,{})}),o[1]=n):n=o[1];let l;o[2]!==r||o[3]!==s?(l=r&&e.jsx(nt,{siteUrl:s}),o[2]=r,o[3]=s,o[4]=l):l=o[4];let i;return o[5]!==l?(i=e.jsx(W,{children:e.jsxs(q,{children:[n,l]})}),o[5]=l,o[6]=i):i=o[6],i}export{Me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c$ as O,as as U,c as P,j as r,r as G,E as ee,b as F,B as q,X as te,K as Q,o as se,l as ne}from"./index-oPco2Z7Q.js";import{u as re}from"./useSuspenseInfiniteQuery-B912YJiX.js";import{S as ae,c as ie}from"./sheet--8zhfSHm.js";import{A as le}from"./avatar-JoRElFKl.js";import{n as oe,t as ce}from"./ChevronUp-BBBSFlle.js";import{at as W}from"./agent-icon-BvDKYGuI.js";import{u as ue,M as de}from"./pair-C-k8zr2J.js";import{D as me}from"./chat-context-DCpRbJmR.js";import{I as X}from"./integration-icon-cSotbhTg.js";import{b as fe}from"./use-decopilot-events-DrrVrYNR.js";import{u as xe}from"./use-infinite-scroll-BPqj-R_X.js";import{g as ge}from"./task-status-5qx4S30L.js";const z=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],he=40;function He(t){const s=(t.endDate.getTime()-t.startDate.getTime())/he;return z.find(i=>i.ms>=s)?.label??z[z.length-1].label}function K(t){const e=z.find(l=>l.label===t);if(e)return e.ms;const s=/^(\d+)([mhd])$/.exec(t);if(!s)return 6e4;const n=parseInt(s[1],10),i=s[2];return i==="h"?n*36e5:i==="d"?n*864e5:n*6e4}function pe(t,e){const s=new Date(t);return K(e)>=864e5?s.toLocaleDateString([],{month:"short",day:"numeric"}):s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function H(t,e){const s=K(e);return new Date(Math.floor(t.getTime()/s)*s)}function be(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function Oe(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function Ue(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function Ge(t,e,s){const n=K(s),i=H(e.startDate,s).getTime(),l=e.endDate.getTime(),a=new Map(t.map(c=>[H(new Date(c.timestamp),s).getTime(),c])),u=[];for(let c=i;c<=l;c+=n){const m=a.get(c),h=new Date(c).toISOString();u.push({t:h,ts:c,label:pe(h,s),calls:m?.calls??0,errors:m?.errors??0,errorRate:m?.errorRate??0,avg:m?.avg??0,p50:m?.p50??0,p95:m?.p95??0,inputTokens:m?.inputTokens??0,outputTokens:m?.outputTokens??0,totalTokens:m?.totalTokens??0,costUsd:m?.costUsd??0})}return u}function Qe(t,e,s,n){const i=new Map;for(const o of t)i.set(o.toolName,(i.get(o.toolName)??0)+o[e]);const l=[...i.entries()].sort((o,d)=>d[1]-o[1]).slice(0,s).map(([o])=>o),a=new Set(l),u=new Map,c=new Map;for(const o of t){if(!a.has(o.toolName))continue;const d=o.virtualMcpId??"";u.set(d,(u.get(d)??0)+o[e]),c.set(`${d}::${o.toolName}`,{calls:o.calls,errors:o.errors,outputSize:o.outputSize})}const m=[...u.entries()].sort((o,d)=>d[1]-o[1]).slice(0,n).map(([o])=>o);let h=0;for(const o of m)for(const d of l){const x=c.get(`${o}::${d}`);x&&x[e]>h&&(h=x[e])}return{topTools:l,topAgentIds:m,cellMap:c,maxValue:h}}function We(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function Xe(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Y(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function Z(t,e,s,n){if(!t)return n;const i=e.find(a=>a.id===t)??s?.find(a=>a.id===t);if(i?.title)return i.title;const l=O(t);return l?U(l).title??n:t}function J(t,e,s){if(!t)return null;const n=e.find(l=>l.id===t)??s?.find(l=>l.id===t);if(n?.icon)return n.icon;const i=O(t);return i?U(i).icon??null:null}function je(t){return t?.data?.members??[]}function V(t){const e=P.c(32),{thread:s,connections:n,virtualMcps:i,nav:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const N=Y(s);u=Z(N,i,n,""),c=J(N,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;e[5]!==u||e[6]!==a||e[7]!==s.title?(h=u||s.title||a("orgs.threads.untitledChat"),e[5]=u,e[6]=a,e[7]=s.title,e[8]=h):h=e[8];let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(W,{}),e[9]=o):o=e[9];let d;e[10]!==m||e[11]!==h?(d=r.jsx(X,{icon:m,name:h,size:"sm",fallbackIcon:o,className:"shadow-sm shrink-0 rounded-md"}),e[10]=m,e[11]=h,e[12]=d):d=e[12];let x;e[13]!==a||e[14]!==s.title?(x=s.title||a("orgs.threads.untitledChat"),e[13]=a,e[14]=s.title,e[15]=x):x=e[15];let b;e[16]!==x?(b=r.jsx(ae,{className:"text-sm leading-snug truncate",children:x}),e[16]=x,e[17]=b):b=e[17];let v;e[18]!==u?(v=u&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:u}),e[18]=u,e[19]=v):v=e[19];let p;e[20]!==b||e[21]!==v?(p=r.jsxs("div",{className:"min-w-0",children:[b,v]}),e[20]=b,e[21]=v,e[22]=p):p=e[22];let f;e[23]!==d||e[24]!==p?(f=r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[d,p]}),e[23]=d,e[24]=p,e[25]=f):f=e[25];let g;e[26]!==l||e[27]!==a?(g=l&&r.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[r.jsx(q,{size:"icon",variant:"ghost",onClick:l.onPrev,disabled:l.index===0,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.previousChat"),children:r.jsx(oe,{size:14})}),r.jsx(q,{size:"icon",variant:"ghost",onClick:l.onNext,disabled:l.index===l.total-1,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.nextChat"),children:r.jsx(ce,{size:14})})]}),e[26]=l,e[27]=a,e[28]=g):g=e[28];let j;return e[29]!==g||e[30]!==f?(j=r.jsx(ie,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:r.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[f,g]})}),e[29]=g,e[30]=f,e[31]=j):j=e[31],j}function ve(t){const e=P.c(62),{thread:s,connections:n,virtualMcps:i,members:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const I=Y(s);u=Z(I,i,n,""),c=J(I,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;if(e[5]!==l||e[6]!==s.created_by){const I=je(l);let R;e[8]!==s.created_by?(R=L=>L.userId===s.created_by,e[8]=s.created_by,e[9]=R):R=e[9],h=I.find(R),e[5]=l,e[6]=s.created_by,e[7]=h}else h=e[7];const o=h;let d;e[10]!==o?.user.email||e[11]!==o?.user.name||e[12]!==s.created_by?(d=o?.user.name??o?.user.email??s.created_by?.substring(0,8)??"—",e[10]=o?.user.email,e[11]=o?.user.name,e[12]=s.created_by,e[13]=d):d=e[13];const x=d,b=o?.user.image??void 0;let v;e[14]!==s.created_at?(v=new Date(s.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=s.created_at,e[15]=v):v=e[15];const p=v;let f,g,j,N,C,w;if(e[16]!==a||e[17]!==s.status){const I=ge(s.status),R=I.icon;f="px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm";let L;e[24]!==a?(L=a("orgs.threads.status"),e[24]=a,e[25]=L):L=e[25],e[26]!==L?(w=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:L}),e[26]=L,e[27]=w):w=e[27],N="flex items-center gap-1.5",C=r.jsx(R,{size:13,className:I.iconClassName}),g=ne("text-sm",I.labelColor),j=a(I.labelKey),e[16]=a,e[17]=s.status,e[18]=f,e[19]=g,e[20]=j,e[21]=N,e[22]=C,e[23]=w}else f=e[18],g=e[19],j=e[20],N=e[21],C=e[22],w=e[23];let T;e[28]!==g||e[29]!==j?(T=r.jsx("span",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=T):T=e[30];let S;e[31]!==T||e[32]!==N||e[33]!==C?(S=r.jsxs("div",{className:N,children:[C,T]}),e[31]=T,e[32]=N,e[33]=C,e[34]=S):S=e[34];let y;e[35]!==S||e[36]!==w?(y=r.jsxs("div",{children:[w,S]}),e[35]=S,e[36]=w,e[37]=y):y=e[37];let E;e[38]!==a?(E=a("orgs.threads.date"),e[38]=a,e[39]=E):E=e[39];let _;e[40]!==E?(_=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:E}),e[40]=E,e[41]=_):_=e[41];let M;e[42]!==p?(M=r.jsx("div",{className:"text-sm text-foreground",children:p}),e[42]=p,e[43]=M):M=e[43];let D;e[44]!==_||e[45]!==M?(D=r.jsxs("div",{children:[_,M]}),e[44]=_,e[45]=M,e[46]=D):D=e[46];let $;e[47]!==a||e[48]!==s.created_by||e[49]!==b||e[50]!==x?($=s.created_by&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.user")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(le,{url:b,fallback:x,shape:"circle",size:"2xs",className:"shrink-0"}),r.jsx("span",{className:"text-sm text-foreground",children:x})]})]}),e[47]=a,e[48]=s.created_by,e[49]=b,e[50]=x,e[51]=$):$=e[51];let k;e[52]!==m||e[53]!==u||e[54]!==a?(k=u&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.agent")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(X,{icon:m,name:u,size:"xs",fallbackIcon:r.jsx(W,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),r.jsx("span",{className:"text-sm text-foreground",children:u})]})]}),e[52]=m,e[53]=u,e[54]=a,e[55]=k):k=e[55];let A;return e[56]!==f||e[57]!==y||e[58]!==D||e[59]!==$||e[60]!==k?(A=r.jsxs("div",{className:f,children:[y,D,$,k]}),e[56]=f,e[57]=y,e[58]=D,e[59]=$,e[60]=k,e[61]=A):A=e[61],A}const B=100;function Ne(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Me(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingMore"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}const Te=400,Se=5e3;function ye(t,e,s){const n=P.c(8),i=se(),l=G.useRef(null);let a;n[0]!==e||n[1]!==i||n[2]!==s?(a=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,i.invalidateQueries({queryKey:Q.threadMessages(e,s)})},Te)},n[0]=e,n[1]=i,n[2]=s,n[3]=a):a=n[3];const u=a;let c;n[4]!==t||n[5]!==u||n[6]!==s?(c={orgSlug:t,taskId:s,onStep:u,onFinish:u,onReconnect:u},n[4]=t,n[5]=u,n[6]=s,n[7]=c):c=n[7],fe(c)}function _e(t){const e=P.c(36),{client:s,locator:n,thread:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,{org:h}=te();let o;e[0]!==n||e[1]!==i.id?(o=Q.threadMessages(n,i.id),e[0]=n,e[1]=i.id,e[2]=o):o=e[2];let d;e[3]!==s||e[4]!==i.id?(d=async _=>{const{pageParam:M}=_,D=M===void 0?0:M;if(!s)throw new Error("MCP client is not available");const $=await s.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:i.id,limit:B,offset:D}});return $.structuredContent??$},e[3]=s,e[4]=i.id,e[5]=d):d=e[5];let x;e[6]!==o||e[7]!==d?(x={queryKey:o,queryFn:d,initialPageParam:0,getNextPageParam:Ee,staleTime:0,refetchInterval:Se},e[6]=o,e[7]=d,e[8]=x):x=e[8];const{data:b,fetchNextPage:v,hasNextPage:p,isFetchingNextPage:f}=re(x);ye(h.slug,n,i.id);let g;e[9]!==b.pages?(g=b.pages.flatMap(Ce).filter(we),e[9]=b.pages,e[10]=g):g=e[10];const j=g,N=ue(j);let C;e[11]!==v||e[12]!==p||e[13]!==f?(C=()=>{p&&!f&&v()},e[11]=v,e[12]=p,e[13]=f,e[14]=C):C=e[14];const w=xe(C,p??!1,f);let T;e[15]!==l||e[16]!==c||e[17]!==i||e[18]!==a?(T=r.jsx(V,{thread:i,connections:l,virtualMcps:a,nav:c}),e[15]=l,e[16]=c,e[17]=i,e[18]=a,e[19]=T):T=e[19];let S;e[20]!==l||e[21]!==u||e[22]!==m||e[23]!==i||e[24]!==a?(S=m&&r.jsx(ve,{thread:i,connections:l,virtualMcps:a,members:u}),e[20]=l,e[21]=u,e[22]=m,e[23]=i,e[24]=a,e[25]=S):S=e[25];let y;e[26]!==f||e[27]!==w||e[28]!==N||e[29]!==j.length||e[30]!==i.status?(y=j.length===0?r.jsx(Ne,{}):r.jsx("div",{"data-chat-scroller":!0,className:"flex-1 overflow-y-auto min-h-0",children:r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[N.map((_,M)=>r.jsx("div",{ref:M===N.length-1?w:void 0,children:r.jsx(de,{pair:_,isLastPair:M===N.length-1,status:M===N.length-1&&i.status==="in_progress"?"streaming":"ready"})},`pair-${_.user?.id??_.assistant?.id}`)),f&&r.jsx(Me,{})]})}),e[26]=f,e[27]=w,e[28]=N,e[29]=j.length,e[30]=i.status,e[31]=y):y=e[31];let E;return e[32]!==T||e[33]!==S||e[34]!==y?(E=r.jsxs(r.Fragment,{children:[T,S,y]}),e[32]=T,e[33]=S,e[34]=y,e[35]=E):E=e[35],E}function we(t){return t.role==="user"||t.role==="assistant"}function Ce(t){return t.items??[]}function Ee(t,e){const s=t,n=e;if(!((s?.items?.length??0)<B))return n.length*B}function Ie(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function $e(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Ye(t){const e=P.c(31),{thread:s,client:n,locator:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,h=m===void 0?!0:m;let o;e[0]!==l||e[1]!==c||e[2]!==s||e[3]!==a?(o=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[0]=l,e[1]=c,e[2]=s,e[3]=a,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(Ie,{}),e[5]=d):d=e[5];let x;e[6]!==o?(x=r.jsxs(r.Fragment,{children:[o,d]}),e[6]=o,e[7]=x):x=e[7];let b;e[8]!==l||e[9]!==c||e[10]!==s||e[11]!==a?(b=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[8]=l,e[9]=c,e[10]=s,e[11]=a,e[12]=b):b=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx($e,{}),e[13]=v):v=e[13];let p;e[14]!==b?(p=r.jsxs(r.Fragment,{children:[b,v]}),e[14]=b,e[15]=p):p=e[15];let f;e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==u||e[20]!==h||e[21]!==c||e[22]!==s||e[23]!==a?(f=r.jsx(_e,{client:n,locator:i,thread:s,connections:l,virtualMcps:a,members:u,nav:c,meta:h}),e[16]=n,e[17]=l,e[18]=i,e[19]=u,e[20]=h,e[21]=c,e[22]=s,e[23]=a,e[24]=f):f=e[24];let g;e[25]!==p||e[26]!==f?(g=r.jsx(G.Suspense,{fallback:p,children:f}),e[25]=p,e[26]=f,e[27]=g):g=e[27];let j;return e[28]!==x||e[29]!==g?(j=r.jsx(me,{children:r.jsx(ee,{fallback:x,children:g})}),e[28]=x,e[29]=g,e[30]=j):j=e[30],j}export{Ye as T,Ue as a,Ge as b,be as c,Xe as d,We as e,Oe as f,He as g,Qe as h,je as i,Y as j,J as k,Z as r};
|
|
1
|
+
import{c$ as O,as as U,c as P,j as r,r as G,E as ee,b as F,B as q,X as te,K as Q,o as se,l as ne}from"./index-DHm3sAos.js";import{u as re}from"./useSuspenseInfiniteQuery-Ds4z3m1K.js";import{S as ae,c as ie}from"./sheet-BziqOxJW.js";import{A as le}from"./avatar-Cvy6LEar.js";import{n as oe,t as ce}from"./ChevronUp-B2Dk8prO.js";import{at as W}from"./agent-icon-DEuXrFU-.js";import{u as ue,M as de}from"./pair-CLpmliBK.js";import{D as me}from"./chat-context-Cs0DM81h.js";import{I as X}from"./integration-icon-C95OvdZY.js";import{b as fe}from"./use-decopilot-events-BHyBfguX.js";import{u as xe}from"./use-infinite-scroll-DyIY-5t_.js";import{g as ge}from"./task-status-D6kZ5GWu.js";const z=[{ms:6e4,label:"1m"},{ms:12e4,label:"2m"},{ms:3e5,label:"5m"},{ms:6e5,label:"10m"},{ms:9e5,label:"15m"},{ms:18e5,label:"30m"},{ms:36e5,label:"1h"},{ms:72e5,label:"2h"},{ms:216e5,label:"6h"},{ms:432e5,label:"12h"},{ms:864e5,label:"1d"},{ms:6048e5,label:"7d"}],he=40;function He(t){const s=(t.endDate.getTime()-t.startDate.getTime())/he;return z.find(i=>i.ms>=s)?.label??z[z.length-1].label}function K(t){const e=z.find(l=>l.label===t);if(e)return e.ms;const s=/^(\d+)([mhd])$/.exec(t);if(!s)return 6e4;const n=parseInt(s[1],10),i=s[2];return i==="h"?n*36e5:i==="d"?n*864e5:n*6e4}function pe(t,e){const s=new Date(t);return K(e)>=864e5?s.toLocaleDateString([],{month:"short",day:"numeric"}):s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function H(t,e){const s=K(e);return new Date(Math.floor(t.getTime()/s)*s)}function be(t){return t>=1e4?`${(t/1e3).toFixed(1)}s`:`${Math.round(t)}ms`}function Oe(t){return Number.isFinite(t)?t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:Math.round(t).toLocaleString():"0"}function Ue(t){return Number.isFinite(t)?`$${t.toFixed(t<1?4:2)}`:"$0.00"}function Ge(t,e,s){const n=K(s),i=H(e.startDate,s).getTime(),l=e.endDate.getTime(),a=new Map(t.map(c=>[H(new Date(c.timestamp),s).getTime(),c])),u=[];for(let c=i;c<=l;c+=n){const m=a.get(c),h=new Date(c).toISOString();u.push({t:h,ts:c,label:pe(h,s),calls:m?.calls??0,errors:m?.errors??0,errorRate:m?.errorRate??0,avg:m?.avg??0,p50:m?.p50??0,p95:m?.p95??0,inputTokens:m?.inputTokens??0,outputTokens:m?.outputTokens??0,totalTokens:m?.totalTokens??0,costUsd:m?.costUsd??0})}return u}function Qe(t,e,s,n){const i=new Map;for(const o of t)i.set(o.toolName,(i.get(o.toolName)??0)+o[e]);const l=[...i.entries()].sort((o,d)=>d[1]-o[1]).slice(0,s).map(([o])=>o),a=new Set(l),u=new Map,c=new Map;for(const o of t){if(!a.has(o.toolName))continue;const d=o.virtualMcpId??"";u.set(d,(u.get(d)??0)+o[e]),c.set(`${d}::${o.toolName}`,{calls:o.calls,errors:o.errors,outputSize:o.outputSize})}const m=[...u.entries()].sort((o,d)=>d[1]-o[1]).slice(0,n).map(([o])=>o);let h=0;for(const o of m)for(const d of l){const x=c.get(`${o}::${d}`);x&&x[e]>h&&(h=x[e])}return{topTools:l,topAgentIds:m,cellMap:c,maxValue:h}}function We(t,e){return e==="requests"?t.calls:e==="errors"?t.errorRate:t.avgDurationMs}function Xe(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Y(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function Z(t,e,s,n){if(!t)return n;const i=e.find(a=>a.id===t)??s?.find(a=>a.id===t);if(i?.title)return i.title;const l=O(t);return l?U(l).title??n:t}function J(t,e,s){if(!t)return null;const n=e.find(l=>l.id===t)??s?.find(l=>l.id===t);if(n?.icon)return n.icon;const i=O(t);return i?U(i).icon??null:null}function je(t){return t?.data?.members??[]}function V(t){const e=P.c(32),{thread:s,connections:n,virtualMcps:i,nav:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const N=Y(s);u=Z(N,i,n,""),c=J(N,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;e[5]!==u||e[6]!==a||e[7]!==s.title?(h=u||s.title||a("orgs.threads.untitledChat"),e[5]=u,e[6]=a,e[7]=s.title,e[8]=h):h=e[8];let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(W,{}),e[9]=o):o=e[9];let d;e[10]!==m||e[11]!==h?(d=r.jsx(X,{icon:m,name:h,size:"sm",fallbackIcon:o,className:"shadow-sm shrink-0 rounded-md"}),e[10]=m,e[11]=h,e[12]=d):d=e[12];let x;e[13]!==a||e[14]!==s.title?(x=s.title||a("orgs.threads.untitledChat"),e[13]=a,e[14]=s.title,e[15]=x):x=e[15];let b;e[16]!==x?(b=r.jsx(ae,{className:"text-sm leading-snug truncate",children:x}),e[16]=x,e[17]=b):b=e[17];let v;e[18]!==u?(v=u&&r.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:u}),e[18]=u,e[19]=v):v=e[19];let p;e[20]!==b||e[21]!==v?(p=r.jsxs("div",{className:"min-w-0",children:[b,v]}),e[20]=b,e[21]=v,e[22]=p):p=e[22];let f;e[23]!==d||e[24]!==p?(f=r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[d,p]}),e[23]=d,e[24]=p,e[25]=f):f=e[25];let g;e[26]!==l||e[27]!==a?(g=l&&r.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[r.jsx(q,{size:"icon",variant:"ghost",onClick:l.onPrev,disabled:l.index===0,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.previousChat"),children:r.jsx(oe,{size:14})}),r.jsx(q,{size:"icon",variant:"ghost",onClick:l.onNext,disabled:l.index===l.total-1,className:"h-7 w-7 text-muted-foreground","aria-label":a("orgs.threads.nextChat"),children:r.jsx(ce,{size:14})})]}),e[26]=l,e[27]=a,e[28]=g):g=e[28];let j;return e[29]!==g||e[30]!==f?(j=r.jsx(ie,{className:"px-5 md:px-6 pt-6 pb-5 border-b border-border shrink-0",children:r.jsxs("div",{className:"flex items-start justify-between gap-3 pr-8",children:[f,g]})}),e[29]=g,e[30]=f,e[31]=j):j=e[31],j}function ve(t){const e=P.c(62),{thread:s,connections:n,virtualMcps:i,members:l}=t,a=F();let u,c;if(e[0]!==n||e[1]!==s||e[2]!==i){const I=Y(s);u=Z(I,i,n,""),c=J(I,i,n),e[0]=n,e[1]=s,e[2]=i,e[3]=u,e[4]=c}else u=e[3],c=e[4];const m=c;let h;if(e[5]!==l||e[6]!==s.created_by){const I=je(l);let R;e[8]!==s.created_by?(R=L=>L.userId===s.created_by,e[8]=s.created_by,e[9]=R):R=e[9],h=I.find(R),e[5]=l,e[6]=s.created_by,e[7]=h}else h=e[7];const o=h;let d;e[10]!==o?.user.email||e[11]!==o?.user.name||e[12]!==s.created_by?(d=o?.user.name??o?.user.email??s.created_by?.substring(0,8)??"—",e[10]=o?.user.email,e[11]=o?.user.name,e[12]=s.created_by,e[13]=d):d=e[13];const x=d,b=o?.user.image??void 0;let v;e[14]!==s.created_at?(v=new Date(s.created_at).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}),e[14]=s.created_at,e[15]=v):v=e[15];const p=v;let f,g,j,N,C,w;if(e[16]!==a||e[17]!==s.status){const I=ge(s.status),R=I.icon;f="px-5 md:px-6 py-5 border-b border-border grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-4 text-sm";let L;e[24]!==a?(L=a("orgs.threads.status"),e[24]=a,e[25]=L):L=e[25],e[26]!==L?(w=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:L}),e[26]=L,e[27]=w):w=e[27],N="flex items-center gap-1.5",C=r.jsx(R,{size:13,className:I.iconClassName}),g=ne("text-sm",I.labelColor),j=a(I.labelKey),e[16]=a,e[17]=s.status,e[18]=f,e[19]=g,e[20]=j,e[21]=N,e[22]=C,e[23]=w}else f=e[18],g=e[19],j=e[20],N=e[21],C=e[22],w=e[23];let T;e[28]!==g||e[29]!==j?(T=r.jsx("span",{className:g,children:j}),e[28]=g,e[29]=j,e[30]=T):T=e[30];let S;e[31]!==T||e[32]!==N||e[33]!==C?(S=r.jsxs("div",{className:N,children:[C,T]}),e[31]=T,e[32]=N,e[33]=C,e[34]=S):S=e[34];let y;e[35]!==S||e[36]!==w?(y=r.jsxs("div",{children:[w,S]}),e[35]=S,e[36]=w,e[37]=y):y=e[37];let E;e[38]!==a?(E=a("orgs.threads.date"),e[38]=a,e[39]=E):E=e[39];let _;e[40]!==E?(_=r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:E}),e[40]=E,e[41]=_):_=e[41];let M;e[42]!==p?(M=r.jsx("div",{className:"text-sm text-foreground",children:p}),e[42]=p,e[43]=M):M=e[43];let D;e[44]!==_||e[45]!==M?(D=r.jsxs("div",{children:[_,M]}),e[44]=_,e[45]=M,e[46]=D):D=e[46];let $;e[47]!==a||e[48]!==s.created_by||e[49]!==b||e[50]!==x?($=s.created_by&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.user")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(le,{url:b,fallback:x,shape:"circle",size:"2xs",className:"shrink-0"}),r.jsx("span",{className:"text-sm text-foreground",children:x})]})]}),e[47]=a,e[48]=s.created_by,e[49]=b,e[50]=x,e[51]=$):$=e[51];let k;e[52]!==m||e[53]!==u||e[54]!==a?(k=u&&r.jsxs("div",{children:[r.jsx("div",{className:"text-xs text-muted-foreground mb-1",children:a("orgs.threads.agent")}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(X,{icon:m,name:u,size:"xs",fallbackIcon:r.jsx(W,{}),className:"shrink-0 size-5! min-w-5! rounded-md"}),r.jsx("span",{className:"text-sm text-foreground",children:u})]})]}),e[52]=m,e[53]=u,e[54]=a,e[55]=k):k=e[55];let A;return e[56]!==f||e[57]!==y||e[58]!==D||e[59]!==$||e[60]!==k?(A=r.jsxs("div",{className:f,children:[y,D,$,k]}),e[56]=f,e[57]=y,e[58]=D,e[59]=$,e[60]=k,e[61]=A):A=e[61],A}const B=100;function Ne(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.noMessagesInChat"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Me(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingMore"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"py-4 text-center text-xs text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}const Te=400,Se=5e3;function ye(t,e,s){const n=P.c(8),i=se(),l=G.useRef(null);let a;n[0]!==e||n[1]!==i||n[2]!==s?(a=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,i.invalidateQueries({queryKey:Q.threadMessages(e,s)})},Te)},n[0]=e,n[1]=i,n[2]=s,n[3]=a):a=n[3];const u=a;let c;n[4]!==t||n[5]!==u||n[6]!==s?(c={orgSlug:t,taskId:s,onStep:u,onFinish:u,onReconnect:u},n[4]=t,n[5]=u,n[6]=s,n[7]=c):c=n[7],fe(c)}function _e(t){const e=P.c(36),{client:s,locator:n,thread:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,{org:h}=te();let o;e[0]!==n||e[1]!==i.id?(o=Q.threadMessages(n,i.id),e[0]=n,e[1]=i.id,e[2]=o):o=e[2];let d;e[3]!==s||e[4]!==i.id?(d=async _=>{const{pageParam:M}=_,D=M===void 0?0:M;if(!s)throw new Error("MCP client is not available");const $=await s.callTool({name:"COLLECTION_THREAD_MESSAGES_LIST",arguments:{thread_id:i.id,limit:B,offset:D}});return $.structuredContent??$},e[3]=s,e[4]=i.id,e[5]=d):d=e[5];let x;e[6]!==o||e[7]!==d?(x={queryKey:o,queryFn:d,initialPageParam:0,getNextPageParam:Ee,staleTime:0,refetchInterval:Se},e[6]=o,e[7]=d,e[8]=x):x=e[8];const{data:b,fetchNextPage:v,hasNextPage:p,isFetchingNextPage:f}=re(x);ye(h.slug,n,i.id);let g;e[9]!==b.pages?(g=b.pages.flatMap(Ce).filter(we),e[9]=b.pages,e[10]=g):g=e[10];const j=g,N=ue(j);let C;e[11]!==v||e[12]!==p||e[13]!==f?(C=()=>{p&&!f&&v()},e[11]=v,e[12]=p,e[13]=f,e[14]=C):C=e[14];const w=xe(C,p??!1,f);let T;e[15]!==l||e[16]!==c||e[17]!==i||e[18]!==a?(T=r.jsx(V,{thread:i,connections:l,virtualMcps:a,nav:c}),e[15]=l,e[16]=c,e[17]=i,e[18]=a,e[19]=T):T=e[19];let S;e[20]!==l||e[21]!==u||e[22]!==m||e[23]!==i||e[24]!==a?(S=m&&r.jsx(ve,{thread:i,connections:l,virtualMcps:a,members:u}),e[20]=l,e[21]=u,e[22]=m,e[23]=i,e[24]=a,e[25]=S):S=e[25];let y;e[26]!==f||e[27]!==w||e[28]!==N||e[29]!==j.length||e[30]!==i.status?(y=j.length===0?r.jsx(Ne,{}):r.jsx("div",{"data-chat-scroller":!0,className:"flex-1 overflow-y-auto min-h-0",children:r.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[N.map((_,M)=>r.jsx("div",{ref:M===N.length-1?w:void 0,children:r.jsx(de,{pair:_,isLastPair:M===N.length-1,status:M===N.length-1&&i.status==="in_progress"?"streaming":"ready"})},`pair-${_.user?.id??_.assistant?.id}`)),f&&r.jsx(Me,{})]})}),e[26]=f,e[27]=w,e[28]=N,e[29]=j.length,e[30]=i.status,e[31]=y):y=e[31];let E;return e[32]!==T||e[33]!==S||e[34]!==y?(E=r.jsxs(r.Fragment,{children:[T,S,y]}),e[32]=T,e[33]=S,e[34]=y,e[35]=E):E=e[35],E}function we(t){return t.role==="user"||t.role==="assistant"}function Ce(t){return t.items??[]}function Ee(t,e){const s=t,n=e;if(!((s?.items?.length??0)<B))return n.length*B}function Ie(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.failedToLoadMessages"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function $e(){const t=P.c(4),e=F();let s;t[0]!==e?(s=e("orgs.threads.loadingConversation"),t[0]=e,t[1]=s):s=t[1];let n;return t[2]!==s?(n=r.jsx("div",{className:"flex-1 flex items-center justify-center text-sm text-muted-foreground",children:s}),t[2]=s,t[3]=n):n=t[3],n}function Ye(t){const e=P.c(31),{thread:s,client:n,locator:i,connections:l,virtualMcps:a,members:u,nav:c,meta:m}=t,h=m===void 0?!0:m;let o;e[0]!==l||e[1]!==c||e[2]!==s||e[3]!==a?(o=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[0]=l,e[1]=c,e[2]=s,e[3]=a,e[4]=o):o=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(Ie,{}),e[5]=d):d=e[5];let x;e[6]!==o?(x=r.jsxs(r.Fragment,{children:[o,d]}),e[6]=o,e[7]=x):x=e[7];let b;e[8]!==l||e[9]!==c||e[10]!==s||e[11]!==a?(b=r.jsx(V,{thread:s,connections:l,virtualMcps:a,nav:c}),e[8]=l,e[9]=c,e[10]=s,e[11]=a,e[12]=b):b=e[12];let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v=r.jsx($e,{}),e[13]=v):v=e[13];let p;e[14]!==b?(p=r.jsxs(r.Fragment,{children:[b,v]}),e[14]=b,e[15]=p):p=e[15];let f;e[16]!==n||e[17]!==l||e[18]!==i||e[19]!==u||e[20]!==h||e[21]!==c||e[22]!==s||e[23]!==a?(f=r.jsx(_e,{client:n,locator:i,thread:s,connections:l,virtualMcps:a,members:u,nav:c,meta:h}),e[16]=n,e[17]=l,e[18]=i,e[19]=u,e[20]=h,e[21]=c,e[22]=s,e[23]=a,e[24]=f):f=e[24];let g;e[25]!==p||e[26]!==f?(g=r.jsx(G.Suspense,{fallback:p,children:f}),e[25]=p,e[26]=f,e[27]=g):g=e[27];let j;return e[28]!==x||e[29]!==g?(j=r.jsx(me,{children:r.jsx(ee,{fallback:x,children:g})}),e[28]=x,e[29]=g,e[30]=j):j=e[30],j}export{Ye as T,Ue as a,Ge as b,be as c,Xe as d,We as e,Oe as f,He as g,Qe as h,je as i,Y as j,J as k,Z as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,br as b,j as c,bo as m,bp as k,e6 as p,ea as M,eb as T,bF as S,bq as A,ec as F,aC as $,c as C,l as P}from"./index-
|
|
1
|
+
import{r as x,br as b,j as c,bo as m,bp as k,e6 as p,ea as M,eb as T,bF as S,bq as A,ec as F,aC as $,c as C,l as P}from"./index-DHm3sAos.js";var j="Toggle",_=x.forwardRef((r,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...a}=r,[t,o]=b({prop:l,onChange:n,defaultProp:s??!1,caller:j});return c.jsx(m.button,{type:"button","aria-pressed":t,"data-state":t?"on":"off","data-disabled":r.disabled?"":void 0,...a,ref:e,onClick:k(r.onClick,()=>{r.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=S(v,[T]),I=T(),h=p.forwardRef((r,e)=>{const{type:l,...s}=r;if(l==="single"){const n=s;return c.jsx(D,{...n,ref:e})}if(l==="multiple"){const n=s;return c.jsx(B,{...n,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${v}\``)});h.displayName=v;var[z,y]=w(v),D=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:r.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...a,ref:e})})}),B=p.forwardRef((r,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...a}=r,[t,o]=b({prop:l,defaultProp:s??[],onChange:n,caller:v}),i=p.useCallback(u=>o((g=[])=>[...g,u]),[o]),d=p.useCallback(u=>o((g=[])=>g.filter(V=>V!==u)),[o]);return c.jsx(z,{scope:r.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...a,ref:e})})});h.displayName=v;var[O,q]=w(v),R=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:a,dir:t,loop:o=!0,...i}=r,d=I(l),u=A(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(F,{asChild:!0,...d,orientation:a,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((r,e)=>{const l=y(f,r.__scopeToggleGroup),s=q(f,r.__scopeToggleGroup),n=I(r.__scopeToggleGroup),a=l.value.includes(r.value),t=s.disabled||r.disabled,o={...r,pressed:a,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(M,{asChild:!0,...n,focusable:!t,active:a,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((r,e)=>{const{__scopeToggleGroup:l,value:s,...n}=r,a=y(f,l),t={role:"radio","aria-checked":r.pressed,"aria-pressed":void 0},o=a.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?a.onItemActivate(s):a.onItemDeactivate(s)}})}),H=h,L=N;const U=$("inline-flex items-center justify-center gap-2 rounded-lg text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-2 min-w-9",sm:"h-7 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),E=x.createContext({size:"default",variant:"default"});function K(r){const e=C.c(20);let l,s,n,a,t;e[0]!==r?({className:s,variant:t,size:a,children:l,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);let o;e[6]!==s?(o=P("group/toggle-group flex w-fit items-center rounded-lg data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==a||e[9]!==t?(i={variant:t,size:a},e[8]=a,e[9]=t,e[10]=i):i=e[10];let d;e[11]!==l||e[12]!==i?(d=c.jsx(E.Provider,{value:i,children:l}),e[11]=l,e[12]=i,e[13]=d):d=e[13];let u;return e[14]!==n||e[15]!==a||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":a,className:o,...n,children:d}),e[14]=n,e[15]=a,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(r){const e=C.c(18);let l,s,n,a,t;e[0]!==r?({className:s,children:l,variant:t,size:a,...n}=r,e[0]=r,e[1]=l,e[2]=s,e[3]=n,e[4]=a,e[5]=t):(l=e[1],s=e[2],n=e[3],a=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||a;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==a||e[10]!==t?(u=P(U({variant:o.variant||t,size:o.size||a}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-lg last:rounded-r-lg focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",s),e[6]=s,e[7]=o.size,e[8]=o.variant,e[9]=a,e[10]=t,e[11]=u):u=e[11];let g;return e[12]!==l||e[13]!==n||e[14]!==i||e[15]!==d||e[16]!==u?(g=c.jsx(L,{"data-slot":"toggle-group-item","data-variant":i,"data-size":d,className:u,...n,children:l}),e[12]=l,e[13]=n,e[14]=i,e[15]=d,e[16]=u,e[17]=g):g=e[17],g}export{Q as T,K as a};
|
package/dist/client/assets/{toolbar-icon-button-CiJmHymh.js → toolbar-icon-button-Bwh0s6hU.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,l as u,j as b,B as d}from"./index-
|
|
1
|
+
import{c as f,l as u,j as b,B as d}from"./index-DHm3sAos.js";const v="focus-visible:not-forced-colors:outline-none focus-visible:forced-colors:outline-2 focus-visible:forced-colors:outline-offset-0 focus-visible:ring-0 focus-visible:border-border focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50";function m(n){return u("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",v,n?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function p(n){const e=f.c(14);let o,s,t,i,c;e[0]!==n?({active:o,className:s,ref:i,type:c,...t}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=i,e[5]=c):(o=e[1],s=e[2],t=e[3],i=e[4],c=e[5]);const a=c===void 0?"button":c;let r;e[6]!==o||e[7]!==s?(r=u("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",m(o),s),e[6]=o,e[7]=s,e[8]=r):r=e[8];let l;return e[9]!==t||e[10]!==i||e[11]!==r||e[12]!==a?(l=b.jsx(d,{ref:i,type:a,variant:"ghost",size:"icon-sm",className:r,...t}),e[9]=t,e[10]=i,e[11]=r,e[12]=a,e[13]=l):l=e[13],l}export{v as I,p as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,bn as K,br as W,j as c,bs as J,bm as H,bt as Q,bo as Z,bp as b,dc as S,bv as ee,bx as $,bE as te,bH as oe,bF as re,dd as ne,bI as se,c as j,l as ae}from"./index-
|
|
1
|
+
import{r as i,bn as K,br as W,j as c,bs as J,bm as H,bt as Q,bo as Z,bp as b,dc as S,bv as ee,bx as $,bE as te,bH as oe,bF as re,dd as ne,bI as se,c as j,l as ae}from"./index-DHm3sAos.js";import{R as ie}from"./index-M93GjJWb.js";var[O]=re("Tooltip",[$]),D=$(),G="TooltipProvider",le=700,A="tooltip.open",[ce,k]=O(G),F=o=>{const{__scopeTooltip:e,delayDuration:t=le,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=i.useRef(!0),d=i.useRef(!1),a=i.useRef(0);return i.useEffect(()=>{const p=a.current;return()=>window.clearTimeout(p)},[]),c.jsx(ce,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:i.useCallback(()=>{window.clearTimeout(a.current),l.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:i.useCallback(p=>{d.current=p},[]),disableHoverableContent:n,children:s})};F.displayName=G;var R="Tooltip",[ue,_]=O(R),z=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:d}=o,a=k(R,o.__scopeTooltip),p=D(e),[u,v]=i.useState(null),x=K(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=W({prop:r,defaultProp:n??!1,onChange:N=>{N?(a.onOpen(),document.dispatchEvent(new CustomEvent(A))):a.onClose(),s?.(N)},caller:R}),w=i.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),E=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,m(!0)},[m]),P=i.useCallback(()=>{window.clearTimeout(f.current),f.current=0,m(!1)},[m]),M=i.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,m(!0),f.current=0},T)},[T,m]);return i.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),c.jsx(J,{...p,children:c.jsx(ue,{scope:e,contentId:x,open:y,stateAttribute:w,trigger:u,onTriggerChange:v,onTriggerEnter:i.useCallback(()=>{a.isOpenDelayedRef.current?M():E()},[a.isOpenDelayedRef,M,E]),onTriggerLeave:i.useCallback(()=>{h?P():(window.clearTimeout(f.current),f.current=0)},[P,h]),onOpen:E,onClose:P,disableHoverableContent:h,children:t})})};z.displayName=R;var L="TooltipTrigger",B=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(L,t),s=k(L,t),l=D(t),d=i.useRef(null),a=H(e,d,n.onTriggerChange),p=i.useRef(!1),u=i.useRef(!1),v=i.useCallback(()=>p.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),c.jsx(Q,{asChild:!0,...l,children:c.jsx(Z.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:a,onPointerMove:b(o.onPointerMove,x=>{x.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),u.current=!0)}),onPointerLeave:b(o.onPointerLeave,()=>{n.onTriggerLeave(),u.current=!1}),onPointerDown:b(o.onPointerDown,()=>{n.open&&n.onClose(),p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:b(o.onFocus,()=>{p.current||n.onOpen()}),onBlur:b(o.onBlur,n.onClose),onClick:b(o.onClick,n.onClose)})})});B.displayName=L;var I="TooltipPortal",[de,pe]=O(I,{forceMount:void 0}),U=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(I,e);return c.jsx(de,{scope:e,forceMount:t,children:c.jsx(S,{present:t||s.open,children:c.jsx(ee,{asChild:!0,container:n,children:r})})})};U.displayName=I;var C="TooltipContent",V=i.forwardRef((o,e)=>{const t=pe(C,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(C,o.__scopeTooltip);return c.jsx(S,{present:r||l.open,children:l.disableHoverableContent?c.jsx(Y,{side:n,...s,ref:e}):c.jsx(fe,{side:n,...s,ref:e})})}),fe=i.forwardRef((o,e)=>{const t=_(C,o.__scopeTooltip),r=k(C,o.__scopeTooltip),n=i.useRef(null),s=H(e,n),[l,d]=i.useState(null),{trigger:a,onClose:p}=t,u=n.current,{onPointerInTransitChange:v}=r,x=i.useCallback(()=>{d(null),v(!1)},[v]),f=i.useCallback((h,T)=>{const g=h.currentTarget,y={x:h.clientX,y:h.clientY},m=ge(y,g.getBoundingClientRect()),w=Te(y,m),E=me(T.getBoundingClientRect()),P=be([...w,...E]);d(P),v(!0)},[v]);return i.useEffect(()=>()=>x(),[x]),i.useEffect(()=>{if(a&&u){const h=g=>f(g,u),T=g=>f(g,a);return a.addEventListener("pointerleave",h),u.addEventListener("pointerleave",T),()=>{a.removeEventListener("pointerleave",h),u.removeEventListener("pointerleave",T)}}},[a,u,f,x]),i.useEffect(()=>{if(l){const h=T=>{const g=T.target,y={x:T.clientX,y:T.clientY},m=a?.contains(g)||u?.contains(g),w=!ye(y,l);m?x():w&&(x(),p())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[a,u,l,p,x]),c.jsx(Y,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),Y=i.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...d}=o,a=_(C,t),p=D(t),{onClose:u}=a;return i.useEffect(()=>(document.addEventListener(A,u),()=>document.removeEventListener(A,u)),[u]),i.useEffect(()=>{if(a.trigger){const v=x=>{x.target?.contains(a.trigger)&&u()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[a.trigger,u]),c.jsx(te,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:u,children:c.jsxs(oe,{"data-state":a.stateAttribute,...p,...d,ref:e,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[c.jsx(he,{children:r}),c.jsx(ve,{scope:t,isInside:!0,children:c.jsx(ie,{id:a.contentId,role:"tooltip",children:n||r})})]})})});V.displayName=C;var q="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(q,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=q;function ge(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Te(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function me(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function ye(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const d=e[s],a=e[l],p=d.x,u=d.y,v=a.x,x=a.y;u>r!=x>r&&t<(v-p)*(r-u)/(x-u)+p&&(n=!n)}return n}function be(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Ce(e)}function Ce(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var we=F,Ee=z,Pe=B,Re=U,_e=V,je=X;function Oe(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=c.jsx(we,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function Le(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Oe,{children:c.jsx(Ee,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function ke(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=c.jsx(Pe,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Ie(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let d;e[5]!==r?(d=ae("notranslate bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=d):d=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=c.jsx(je,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=a):a=e[7];let p;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==d?(p=c.jsx(Re,{children:c.jsxs(_e,{"data-slot":"tooltip-content",sideOffset:l,translate:"no",className:d,...n,children:[t,a]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=d,e[12]=p):p=e[12],p}export{ke as T,Ie as a,Le as b,Oe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as m,T as _}from"./index-
|
|
1
|
+
import{v as m,T as _}from"./index-DHm3sAos.js";const y="onepager",l="report:auth-attempt:",p=3600*1e3;function h(e){const t=new URLSearchParams(e),n=t.get("share_id")||void 0,o=t.get("email_run_id")||void 0,r=t.get("utm_source")||void 0,u=t.get("utm_medium")||void 0,a=t.get("utm_campaign")||void 0;return{entrypoint:n||r==="share"?"share":o||t.has("d")||r==="email"?"email":r?"campaign":"direct",...n?{share_id:n}:{},...o?{email_run_id:o}:{},...r?{utm_source:r}:{},...u?{utm_medium:u}:{},...a?{utm_campaign:a}:{}}}function c(){return h(typeof window>"u"?"":window.location.search)}function i(e){return`${l}${e}`}function f(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function s(e){try{const t=window.sessionStorage.getItem(i(e));if(!t)return null;const n=JSON.parse(t);return n.domain!==e||typeof n.attempt_id!="string"||typeof n.gate_shown_at!="number"||Date.now()-n.gate_shown_at>p?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function d(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function g(e){const t=s(e);if(t)return t;const n={attempt_id:f(),domain:e,gate_shown_at:Date.now(),...c()};return d(n),n}function T(e,t){const n={...g(e),...t};return d(n),n}function v(e){return{auth_attempt_id:e.attempt_id,entrypoint:e.entrypoint,...e.share_id?{share_id:e.share_id}:{},...e.email_run_id?{email_run_id:e.email_run_id}:{},...e.utm_source?{utm_source:e.utm_source}:{},...e.utm_medium?{utm_medium:e.utm_medium}:{},...e.utm_campaign?{utm_campaign:e.utm_campaign}:{}}}function R(e){const t=s(e);if(!t)return null;try{window.sessionStorage.removeItem(i(e))}catch{}return t}function S(e){const t=e.toLowerCase();return t==="invalid_email"?"invalid_email":t.includes("429")||t.includes("rate limit")?"rate_limited":t.includes("otp")||t.includes("verification code")||t.includes("invalid code")||t.includes("expired code")||t.includes("código")||t.includes("codigo")?"invalid_or_expired_code":t.includes("401")||t.includes("unauthorized")?"invalid_credentials":t.includes("409")||t.includes("already exists")?"account_exists":t.includes("network")||t.includes("fetch")?"network":t.includes("cancel")||t.includes("closed")?"cancelled":"unknown"}function I(e,t,n){if(m())try{_.capture(e,{...c(),...t},n)}catch{}}export{y as R,v as a,S as b,I as c,g as d,R as e,h as r,T as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cQ as l,cU as e,bN as h,ap as r,ed as b,ao as t,bK as p,bM as d,aF as c,bO as m,cS as v,ee as E,ef as I,eg as w,cr as x,dC as T,eh as z,ei as C,ej as D,c6 as O,ek as B,cI as V,el as W,em as $,en as F,eo as K,cE as J,cs as j,cB as Z,cC as Q,cD as Y,cu as G,cA as X,ct as ee,cM as te}from"./index-
|
|
1
|
+
import{cQ as l,cU as e,bN as h,ap as r,ed as b,ao as t,bK as p,bM as d,aF as c,bO as m,cS as v,ee as E,ef as I,eg as w,cr as x,dC as T,eh as z,ei as C,ej as D,c6 as O,ek as B,cI as V,el as W,em as $,en as F,eo as K,cE as J,cs as j,cB as Z,cC as Q,cD as Y,cu as G,cA as X,ct as ee,cM as te}from"./index-DHm3sAos.js";import{P as oe}from"./use-mcp-client-ZKTq8mxe.js";(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(o,s)=>(typeof require<"u"?require:o)[s]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});class se extends oe{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(o,s){}_ensureEventSlot(o){let s=this._eventSlots.get(o);if(!s){let i=this.eventSchemas[o];if(!i)throw Error(`Unknown event: ${String(o)}`);s={listeners:[]},this._eventSlots.set(o,s);let a=i.shape.method.value;this._registeredMethods.add(a);let u=s;super.setNotificationHandler(i,g=>{let R=g.params;this.onEventDispatch(o,R),u.onHandler?.(R);for(let A of[...u.listeners])A(R)})}return s}setEventHandler(o,s){let i=this._ensureEventSlot(o);i.onHandler&&s&&console.warn(`[MCP Apps] on${String(o)} handler replaced. Use addEventListener("${String(o)}", …) to add multiple listeners without replacing.`),i.onHandler=s}getEventHandler(o){return this._eventSlots.get(o)?.onHandler}addEventListener(o,s){this._ensureEventSlot(o).listeners.push(s)}removeEventListener(o,s){let i=this._eventSlots.get(o);if(!i)return;let a=i.listeners.indexOf(s);a!==-1&&i.listeners.splice(a,1)}setRequestHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setRequestHandler"),super.setRequestHandler(o,s)};setNotificationHandler=(o,s)=>{this._assertMethodNotRegistered(o,"setNotificationHandler"),super.setNotificationHandler(o,s)};warnIfRequestHandlerReplaced(o,s,i){s&&i&&console.warn(`[MCP Apps] ${o} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(o,s)=>{let i=o.shape.method.value;this._registeredMethods.add(i),super.setRequestHandler(o,s)};_assertMethodNotRegistered(o,s){let i=o.shape.method.value;if(this._registeredMethods.has(i))throw Error(`Handler for "${i}" already registered (via ${s}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(i)}}var L="2026-01-26",ie="ui/notifications/tool-input-partial",re=l([e("light"),e("dark")]).describe("Color theme preference for the host environment."),f=l([e("inline"),e("fullscreen"),e("pip")]).describe("Display mode for UI presentation."),ae=l([e("--color-background-primary"),e("--color-background-secondary"),e("--color-background-tertiary"),e("--color-background-inverse"),e("--color-background-ghost"),e("--color-background-info"),e("--color-background-danger"),e("--color-background-success"),e("--color-background-warning"),e("--color-background-disabled"),e("--color-text-primary"),e("--color-text-secondary"),e("--color-text-tertiary"),e("--color-text-inverse"),e("--color-text-ghost"),e("--color-text-info"),e("--color-text-danger"),e("--color-text-success"),e("--color-text-warning"),e("--color-text-disabled"),e("--color-border-primary"),e("--color-border-secondary"),e("--color-border-tertiary"),e("--color-border-inverse"),e("--color-border-ghost"),e("--color-border-info"),e("--color-border-danger"),e("--color-border-success"),e("--color-border-warning"),e("--color-border-disabled"),e("--color-ring-primary"),e("--color-ring-secondary"),e("--color-ring-inverse"),e("--color-ring-info"),e("--color-ring-danger"),e("--color-ring-success"),e("--color-ring-warning"),e("--font-sans"),e("--font-mono"),e("--font-weight-normal"),e("--font-weight-medium"),e("--font-weight-semibold"),e("--font-weight-bold"),e("--font-text-xs-size"),e("--font-text-sm-size"),e("--font-text-md-size"),e("--font-text-lg-size"),e("--font-heading-xs-size"),e("--font-heading-sm-size"),e("--font-heading-md-size"),e("--font-heading-lg-size"),e("--font-heading-xl-size"),e("--font-heading-2xl-size"),e("--font-heading-3xl-size"),e("--font-text-xs-line-height"),e("--font-text-sm-line-height"),e("--font-text-md-line-height"),e("--font-text-lg-line-height"),e("--font-heading-xs-line-height"),e("--font-heading-sm-line-height"),e("--font-heading-md-line-height"),e("--font-heading-lg-line-height"),e("--font-heading-xl-line-height"),e("--font-heading-2xl-line-height"),e("--font-heading-3xl-line-height"),e("--border-radius-xs"),e("--border-radius-sm"),e("--border-radius-md"),e("--border-radius-lg"),e("--border-radius-xl"),e("--border-radius-full"),e("--border-width-regular"),e("--shadow-hairline"),e("--shadow-sm"),e("--shadow-md"),e("--shadow-lg")]).describe("CSS variable keys available to MCP apps for theming."),ne=h(ae.describe(`Style variables for theming MCP apps.
|
|
2
2
|
|
|
3
3
|
Individual style keys are optional - hosts may provide any subset of these values.
|
|
4
4
|
Values are strings containing CSS values (colors, sizes, font stacks, etc.).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as P,b as J,r as Q,j as t,l as B,q as V}from"./index-oPco2Z7Q.js";import{u as X}from"./use-copy-BOgEqZMm.js";import{M as Y}from"./markdown-D8NZ8Hcx.js";import{i as ee}from"./Check-ClKm876e.js";import{a as te}from"./Copy01-kb1901QR.js";import{b as z,T as A,a as G}from"./tooltip-CF6AcK-h.js";import{z as se}from"./agent-icon-BvDKYGuI.js";import{b as Z}from"./format-time-CjIPQhCN.js";import{c as H}from"./use-decopilot-events-DrrVrYNR.js";import{y as K}from"./chat-context-DCpRbJmR.js";function he(T){const e=P.c(19),{id:s,part:l,copyable:j,extraActions:n,alwaysShowActions:p,animate:a}=T,f=j===void 0?!1:j,o=p===void 0?!1:p,i=a===void 0?!1:a,{handleCopy:m}=X(),x=J(),[r,N]=Q.useState(!1);let k;e[0]!==m||e[1]!==s||e[2]!==l.text?(k=async()=>{V("chat_message_copied",{message_id:s,chars:l.text.length}),await m(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=m,e[1]=s,e[2]=l.text,e[3]=k):k=e[3];const b=k,d=f&&n,g=d||n;let u;e[4]!==i||e[5]!==s||e[6]!==l.text?(u=t.jsx(Y,{id:s,text:l.text,animate:i}),e[4]=i,e[5]=s,e[6]=l.text,e[7]=u):u=e[7];let c;e[8]!==o||e[9]!==n||e[10]!==b||e[11]!==r||e[12]!==g||e[13]!==d||e[14]!==x?(c=g&&t.jsxs("div",{className:B("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",o?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[n,d&&n&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),d&&t.jsx("button",{type:"button",onClick:b,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":x("chat.textPart.copyMessage"),children:r?t.jsx(ee,{className:"size-4"}):t.jsx(te,{className:"size-4"})})]}),e[8]=o,e[9]=n,e[10]=b,e[11]=r,e[12]=g,e[13]=d,e[14]=x,e[15]=c):c=e[15];let h;return e[16]!==u||e[17]!==c?(h=t.jsxs("div",{className:"group/part relative",children:[u,c]}),e[16]=u,e[17]=c,e[18]=h):h=e[18],h}const v=16,O=2.5,q=(v-O)/2,U=2*Math.PI*q;function ue(T){const e=P.c(29),{usage:s}=T,l=H();if(!s)return null;const{totalTokens:j,inputTokens:n,outputTokens:p}=s,a=l?s.cost:0;if(!j&&!n&&!p)return null;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(se,{size:12}),e[0]=f):f=e[0];let o;e[1]!==a||e[2]!==j?(o=a>0?`$${a.toFixed(4)}`:j.toLocaleString(),e[1]=a,e[2]=j,e[3]=o):o=e[3];let i;e[4]!==o?(i=t.jsx(A,{asChild:!0,children:t.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[f,t.jsx("span",{className:"text-sm font-mono tabular-nums",children:o})]})}),e[4]=o,e[5]=i):i=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=x):x=e[7];let r;e[8]!==n?(r=n.toLocaleString(),e[8]=n,e[9]=r):r=e[9];let N;e[10]!==r?(N=t.jsx("span",{className:"text-right tabular-nums",children:r}),e[10]=r,e[11]=N):N=e[11];let k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-muted",children:"out"}),e[12]=k):k=e[12];const b=p-(s.reasoningTokens??0);let d;e[13]!==b?(d=b.toLocaleString(),e[13]=b,e[14]=d):d=e[14];let g;e[15]!==d?(g=t.jsx("span",{className:"text-right tabular-nums",children:d}),e[15]=d,e[16]=g):g=e[16];let u;e[17]!==s?(u=(s.cacheReadTokens>0||s.cacheWriteTokens>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[17]=s,e[18]=u):u=e[18];let c;e[19]!==a?(c=a>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",a.toFixed(4)]})]}),e[19]=a,e[20]=c):c=e[20];let h;e[21]!==g||e[22]!==u||e[23]!==c||e[24]!==N?(h=t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[m,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[x,N,k,g,u,c]})]}),e[21]=g,e[22]=u,e[23]=c,e[24]=N,e[25]=h):h=e[25];let y;return e[26]!==h||e[27]!==i?(y=t.jsxs(z,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function pe(T){const e=P.c(19),{usage:s,duration:l}=T,j=H(),n=l!=null&&l>0,p=j&&s!=null&&(s.cost??0)>0,a=s!=null&&(s.totalTokens??0)>0;if(!n&&!p&&!a)return null;let f;e[0]!==l||e[1]!==n?(f=n?Z(l/1e3):null,e[0]=l,e[1]=n,e[2]=f):f=e[2];const o=f;let i;e[3]!==l||e[4]!==o||e[5]!==s?(i=o&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:o})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),t.jsx("span",{className:"tabular-nums",children:Z(l/1e3)}),(s?.reasoningTokens??0)>0&&t.jsxs("span",{className:"ml-2 opacity-50",children:[s.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=l,e[4]=o,e[5]=s,e[6]=i):i=e[6];let m;e[7]!==p||e[8]!==n||e[9]!==a?(m=n&&(p||a)&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=p,e[8]=n,e[9]=a,e[10]=m):m=e[10];let x;e[11]!==p||e[12]!==a||e[13]!==s?(x=(p||a)&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:p?`$${s.cost.toFixed(4)}`:`${s.totalTokens.toLocaleString()} tok`})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[t.jsx("span",{className:"opacity-60",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:(s.inputTokens??0).toLocaleString()}),t.jsx("span",{className:"opacity-60",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:((s.outputTokens??0)-(s?.reasoningTokens??0)).toLocaleString()}),(s?.reasoningTokens??0)>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"think"}),t.jsx("span",{className:"text-right tabular-nums",children:s.reasoningTokens.toLocaleString()})]}),((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]})]})]})]}),e[11]=p,e[12]=a,e[13]=s,e[14]=x):x=e[14];let r;return e[15]!==i||e[16]!==m||e[17]!==x?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,m,x]}),e[15]=i,e[16]=m,e[17]=x,e[18]=r):r=e[18],r}function fe(T){const e=P.c(52),{usage:s,totalTokens:l,contextWindow:j,onOpenContextPanel:n}=T,p=H(),a=Math.min(l/j*100,100),f=U-a/100*U,o=p?s?.cost??0:0,i=(s?.cost??0)>0,m=s?.inputTokens??0,x=s?.outputTokens??0;let r;e[0]!==a?(r=a.toFixed(0),e[0]=a,e[1]=r):r=e[1];let N;e[2]!==o?(N=o>0?`, $${o.toFixed(2)}`:"",e[2]=o,e[3]=N):N=e[3];const k=`Context usage: ${r}%${N}`,b=n?"cursor-pointer":"cursor-default";let d;e[4]!==b?(d=B("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",b),e[4]=b,e[5]=d):d=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,className:"opacity-15"}),e[6]=g):g=e[6];const u=a>90?"text-destructive":a>70?"text-warning":"text-muted-foreground";let c;e[7]!==u?(c=B(u),e[7]=u,e[8]=c):c=e[8];let h;e[9]!==f||e[10]!==c?(h=t.jsxs("svg",{width:v,height:v,className:"-rotate-90","aria-hidden":"true",children:[g,t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,strokeDasharray:U,strokeDashoffset:f,strokeLinecap:"round",className:c})]}),e[9]=f,e[10]=c,e[11]=h):h=e[11];let y;e[12]!==a?(y=a.toFixed(0),e[12]=a,e[13]=y):y=e[13];let S;e[14]!==o?(S=o>0?` · $${o.toFixed(2)}`:"",e[14]=o,e[15]=S):S=e[15];let C;e[16]!==y||e[17]!==S?(C=t.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[y,"%",S]}),e[16]=y,e[17]=S,e[18]=C):C=e[18];let w;e[19]!==n||e[20]!==C||e[21]!==k||e[22]!==d||e[23]!==h?(w=t.jsx(A,{asChild:!0,children:t.jsxs("button",{type:"button",onClick:n,"aria-label":k,className:d,children:[h,C]})}),e[19]=n,e[20]=C,e[21]=k,e[22]=d,e[23]=h,e[24]=w):w=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{className:"text-muted",children:"context"}),e[25]=D):D=e[25];let _;e[26]!==l?(_=l.toLocaleString(),e[26]=l,e[27]=_):_=e[27];let $;e[28]!==j?($=j.toLocaleString(),e[28]=j,e[29]=$):$=e[29];let F;e[30]!==a?(F=a.toFixed(1),e[30]=a,e[31]=F):F=e[31];let L;e[32]!==_||e[33]!==$||e[34]!==F?(L=t.jsxs("span",{className:"text-right tabular-nums",children:[_," / ",$," (",F,"%)"]}),e[32]=_,e[33]=$,e[34]=F,e[35]=L):L=e[35];let R;e[36]!==o?(R=o>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]})]}),e[36]=o,e[37]=R):R=e[37];let M;e[38]!==i||e[39]!==m||e[40]!==x?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()})]}),e[38]=i,e[39]=m,e[40]=x,e[41]=M):M=e[41];let I;e[42]!==s?(I=((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[42]=s,e[43]=I):I=e[43];let E;e[44]!==L||e[45]!==R||e[46]!==M||e[47]!==I?(E=t.jsx(G,{side:"top",className:"font-mono text-[11px]",children:t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[D,L,R,M,I]})}),e[44]=L,e[45]=R,e[46]=M,e[47]=I,e[48]=E):E=e[48];let W;return e[49]!==w||e[50]!==E?(W=t.jsxs(z,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{he as M,fe as S,ue as a,pe as b};
|
|
1
|
+
import{c as P,b as J,r as Q,j as t,l as B,q as V}from"./index-DHm3sAos.js";import{u as X}from"./use-copy-DWINQoQI.js";import{M as Y}from"./markdown-CpLNy1RX.js";import{i as ee}from"./Check-Dbt8bZ4k.js";import{a as te}from"./Copy01-CnzDdpP4.js";import{b as z,T as A,a as G}from"./tooltip-BPqQWogJ.js";import{z as se}from"./agent-icon-DEuXrFU-.js";import{b as Z}from"./format-time-CjIPQhCN.js";import{c as H}from"./use-decopilot-events-BHyBfguX.js";import{y as K}from"./chat-context-Cs0DM81h.js";function he(T){const e=P.c(19),{id:s,part:l,copyable:j,extraActions:n,alwaysShowActions:p,animate:a}=T,f=j===void 0?!1:j,o=p===void 0?!1:p,i=a===void 0?!1:a,{handleCopy:m}=X(),x=J(),[r,N]=Q.useState(!1);let k;e[0]!==m||e[1]!==s||e[2]!==l.text?(k=async()=>{V("chat_message_copied",{message_id:s,chars:l.text.length}),await m(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=m,e[1]=s,e[2]=l.text,e[3]=k):k=e[3];const b=k,d=f&&n,g=d||n;let u;e[4]!==i||e[5]!==s||e[6]!==l.text?(u=t.jsx(Y,{id:s,text:l.text,animate:i}),e[4]=i,e[5]=s,e[6]=l.text,e[7]=u):u=e[7];let c;e[8]!==o||e[9]!==n||e[10]!==b||e[11]!==r||e[12]!==g||e[13]!==d||e[14]!==x?(c=g&&t.jsxs("div",{className:B("flex w-full items-center gap-2 text-sm text-muted-foreground transition-all duration-200 mt-1 py-1",o?"opacity-100":"opacity-0 pointer-events-none group-hover/part:opacity-100 group-hover/part:pointer-events-auto"),children:[n,d&&n&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),d&&t.jsx("button",{type:"button",onClick:b,className:"text-muted-foreground [@media(hover:hover)]:hover:text-foreground transition-colors active:scale-[0.97]","aria-label":x("chat.textPart.copyMessage"),children:r?t.jsx(ee,{className:"size-4"}):t.jsx(te,{className:"size-4"})})]}),e[8]=o,e[9]=n,e[10]=b,e[11]=r,e[12]=g,e[13]=d,e[14]=x,e[15]=c):c=e[15];let h;return e[16]!==u||e[17]!==c?(h=t.jsxs("div",{className:"group/part relative",children:[u,c]}),e[16]=u,e[17]=c,e[18]=h):h=e[18],h}const v=16,O=2.5,q=(v-O)/2,U=2*Math.PI*q;function ue(T){const e=P.c(29),{usage:s}=T,l=H();if(!s)return null;const{totalTokens:j,inputTokens:n,outputTokens:p}=s,a=l?s.cost:0;if(!j&&!n&&!p)return null;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(se,{size:12}),e[0]=f):f=e[0];let o;e[1]!==a||e[2]!==j?(o=a>0?`$${a.toFixed(4)}`:j.toLocaleString(),e[1]=a,e[2]=j,e[3]=o):o=e[3];let i;e[4]!==o?(i=t.jsx(A,{asChild:!0,children:t.jsxs("span",{className:"inline-flex items-center text-muted-foreground [@media(hover:hover)]:hover:text-foreground pl-1 h-6 gap-1 whitespace-nowrap shrink-0 cursor-default",children:[f,t.jsx("span",{className:"text-sm font-mono tabular-nums",children:o})]})}),e[4]=o,e[5]=i):i=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=m):m=e[6];let x;e[7]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=x):x=e[7];let r;e[8]!==n?(r=n.toLocaleString(),e[8]=n,e[9]=r):r=e[9];let N;e[10]!==r?(N=t.jsx("span",{className:"text-right tabular-nums",children:r}),e[10]=r,e[11]=N):N=e[11];let k;e[12]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("span",{className:"text-muted",children:"out"}),e[12]=k):k=e[12];const b=p-(s.reasoningTokens??0);let d;e[13]!==b?(d=b.toLocaleString(),e[13]=b,e[14]=d):d=e[14];let g;e[15]!==d?(g=t.jsx("span",{className:"text-right tabular-nums",children:d}),e[15]=d,e[16]=g):g=e[16];let u;e[17]!==s?(u=(s.cacheReadTokens>0||s.cacheWriteTokens>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[17]=s,e[18]=u):u=e[18];let c;e[19]!==a?(c=a>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",a.toFixed(4)]})]}),e[19]=a,e[20]=c):c=e[20];let h;e[21]!==g||e[22]!==u||e[23]!==c||e[24]!==N?(h=t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[m,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[x,N,k,g,u,c]})]}),e[21]=g,e[22]=u,e[23]=c,e[24]=N,e[25]=h):h=e[25];let y;return e[26]!==h||e[27]!==i?(y=t.jsxs(z,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function pe(T){const e=P.c(19),{usage:s,duration:l}=T,j=H(),n=l!=null&&l>0,p=j&&s!=null&&(s.cost??0)>0,a=s!=null&&(s.totalTokens??0)>0;if(!n&&!p&&!a)return null;let f;e[0]!==l||e[1]!==n?(f=n?Z(l/1e3):null,e[0]=l,e[1]=n,e[2]=f):f=e[2];const o=f;let i;e[3]!==l||e[4]!==o||e[5]!==s?(i=o&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:o})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"thinking"}),t.jsx("span",{className:"tabular-nums",children:Z(l/1e3)}),(s?.reasoningTokens??0)>0&&t.jsxs("span",{className:"ml-2 opacity-50",children:[s.reasoningTokens.toLocaleString()," tok"]})]})]}),e[3]=l,e[4]=o,e[5]=s,e[6]=i):i=e[6];let m;e[7]!==p||e[8]!==n||e[9]!==a?(m=n&&(p||a)&&t.jsx("span",{className:"text-muted-foreground/40 select-none",children:"·"}),e[7]=p,e[8]=n,e[9]=a,e[10]=m):m=e[10];let x;e[11]!==p||e[12]!==a||e[13]!==s?(x=(p||a)&&t.jsxs(z,{children:[t.jsx(A,{asChild:!0,children:t.jsx("span",{className:"tabular-nums text-sm font-mono text-muted-foreground cursor-default [@media(hover:hover)]:hover:text-foreground transition-colors select-none",children:p?`$${s.cost.toFixed(4)}`:`${s.totalTokens.toLocaleString()} tok`})}),t.jsxs(G,{side:"top",className:"font-mono text-[11px]",children:[t.jsx("p",{className:"opacity-60 text-[10px] mb-1",children:"tokens"}),t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[t.jsx("span",{className:"opacity-60",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:(s.inputTokens??0).toLocaleString()}),t.jsx("span",{className:"opacity-60",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:((s.outputTokens??0)-(s?.reasoningTokens??0)).toLocaleString()}),(s?.reasoningTokens??0)>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"think"}),t.jsx("span",{className:"text-right tabular-nums",children:s.reasoningTokens.toLocaleString()})]}),((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"opacity-60",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]})]})]})]}),e[11]=p,e[12]=a,e[13]=s,e[14]=x):x=e[14];let r;return e[15]!==i||e[16]!==m||e[17]!==x?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,m,x]}),e[15]=i,e[16]=m,e[17]=x,e[18]=r):r=e[18],r}function fe(T){const e=P.c(52),{usage:s,totalTokens:l,contextWindow:j,onOpenContextPanel:n}=T,p=H(),a=Math.min(l/j*100,100),f=U-a/100*U,o=p?s?.cost??0:0,i=(s?.cost??0)>0,m=s?.inputTokens??0,x=s?.outputTokens??0;let r;e[0]!==a?(r=a.toFixed(0),e[0]=a,e[1]=r):r=e[1];let N;e[2]!==o?(N=o>0?`, $${o.toFixed(2)}`:"",e[2]=o,e[3]=N):N=e[3];const k=`Context usage: ${r}%${N}`,b=n?"cursor-pointer":"cursor-default";let d;e[4]!==b?(d=B("flex items-center gap-1.5 text-muted-foreground hover:text-foreground h-6 px-1 shrink-0",b),e[4]=b,e[5]=d):d=e[5];let g;e[6]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,className:"opacity-15"}),e[6]=g):g=e[6];const u=a>90?"text-destructive":a>70?"text-warning":"text-muted-foreground";let c;e[7]!==u?(c=B(u),e[7]=u,e[8]=c):c=e[8];let h;e[9]!==f||e[10]!==c?(h=t.jsxs("svg",{width:v,height:v,className:"-rotate-90","aria-hidden":"true",children:[g,t.jsx("circle",{cx:v/2,cy:v/2,r:q,fill:"none",stroke:"currentColor",strokeWidth:O,strokeDasharray:U,strokeDashoffset:f,strokeLinecap:"round",className:c})]}),e[9]=f,e[10]=c,e[11]=h):h=e[11];let y;e[12]!==a?(y=a.toFixed(0),e[12]=a,e[13]=y):y=e[13];let S;e[14]!==o?(S=o>0?` · $${o.toFixed(2)}`:"",e[14]=o,e[15]=S):S=e[15];let C;e[16]!==y||e[17]!==S?(C=t.jsxs("span",{className:"inline-block overflow-hidden whitespace-nowrap max-w-0 opacity-0 transition-[max-width,opacity] duration-200 ease-out @[320px]/chat-bottom:max-w-32 @[320px]/chat-bottom:opacity-100 text-[11px] font-mono tabular-nums",children:[y,"%",S]}),e[16]=y,e[17]=S,e[18]=C):C=e[18];let w;e[19]!==n||e[20]!==C||e[21]!==k||e[22]!==d||e[23]!==h?(w=t.jsx(A,{asChild:!0,children:t.jsxs("button",{type:"button",onClick:n,"aria-label":k,className:d,children:[h,C]})}),e[19]=n,e[20]=C,e[21]=k,e[22]=d,e[23]=h,e[24]=w):w=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{className:"text-muted",children:"context"}),e[25]=D):D=e[25];let _;e[26]!==l?(_=l.toLocaleString(),e[26]=l,e[27]=_):_=e[27];let $;e[28]!==j?($=j.toLocaleString(),e[28]=j,e[29]=$):$=e[29];let F;e[30]!==a?(F=a.toFixed(1),e[30]=a,e[31]=F):F=e[31];let L;e[32]!==_||e[33]!==$||e[34]!==F?(L=t.jsxs("span",{className:"text-right tabular-nums",children:[_," / ",$," (",F,"%)"]}),e[32]=_,e[33]=$,e[34]=F,e[35]=L):L=e[35];let R;e[36]!==o?(R=o>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cost"}),t.jsxs("span",{className:"text-right tabular-nums",children:["$",o.toFixed(4)]})]}),e[36]=o,e[37]=R):R=e[37];let M;e[38]!==i||e[39]!==m||e[40]!==x?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()})]}),e[38]=i,e[39]=m,e[40]=x,e[41]=M):M=e[41];let I;e[42]!==s?(I=((s?.cacheReadTokens??0)>0||(s?.cacheWriteTokens??0)>0)&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"cache hit"}),t.jsx("span",{className:"text-right tabular-nums",children:`${(K(s)*100).toFixed(0)}%`})]}),e[42]=s,e[43]=I):I=e[43];let E;e[44]!==L||e[45]!==R||e[46]!==M||e[47]!==I?(E=t.jsx(G,{side:"top",className:"font-mono text-[11px]",children:t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[D,L,R,M,I]})}),e[44]=L,e[45]=R,e[46]=M,e[47]=I,e[48]=E):E=e[48];let W;return e[49]!==w||e[50]!==E?(W=t.jsxs(z,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{he as M,fe as S,ue as a,pe as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,X as h,a2 as R,K as m,m as y,D as S,aB as M}from"./index-
|
|
1
|
+
import{c as p,X as h,a2 as R,K as m,m as y,D as S,aB as M}from"./index-DHm3sAos.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],O=new Set(P);function A(o){return O.has(o)}function _(o){return o.capabilities?.includes("decisions")===!0}function B(o){return!_(o)&&o.asyncResearch!==!0}const v={anthropic:["claude-haiku-4-5","claude-haiku"],openrouter:["qwen/qwen3.5-flash","anthropic/claude-haiku-4.5","anthropic/claude-haiku","google/gemini-3-flash"],deco:["qwen/qwen3.5-flash","anthropic/claude-haiku"],llmapi:["claude-haiku-4-5","claude-haiku","gpt-4o-mini"],google:["gemini-2.5-flash","gemini-3-flash"]},L={anthropic:["claude-sonnet-5","claude-sonnet"],openrouter:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude-opus-4.8","google/gemini-3-pro"],deco:["anthropic/claude-sonnet-5","anthropic/claude-sonnet","anthropic/claude"],llmapi:["claude-sonnet-4-6","claude-sonnet"],google:["gemini-3-pro","gemini-3-flash"]},T={anthropic:["claude-opus-4-8","claude-sonnet-5","claude-sonnet","claude-fable-5"],openrouter:["anthropic/claude-opus-4.8:extended","anthropic/claude-opus-4.8","anthropic/claude-sonnet-5:extended","anthropic/claude-sonnet-5","google/gemini-3-pro","anthropic/claude-fable-5"],deco:["anthropic/claude-opus","anthropic/claude-sonnet-4.6","anthropic/claude-sonnet","anthropic/claude-fable"],llmapi:["claude-opus-4-8","claude-opus","claude-sonnet-4-6"],google:["gemini-3-pro"]},K={openrouter:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],deco:["google/gemini-3-pro-image","openai/gpt-5-image","google/gemini-2.5-flash-image"],llmapi:["gemini-2.5-flash-image","gpt-image-1"],google:["gemini-2.0-flash-image"]},w={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},x={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function I(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function C(o){return I(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function D(o){const e=I(o);return e.includes("deepresearch")?!1:q.some(i=>e.includes(i))}function F(o){return o.asyncResearch!==!0&&D(o.modelId)}function b(o){return o.asyncResearch===!0||C(o.modelId)||D(o.modelId)}function u(o,e,i,n){for(const t of i){const s=o.find(a=>a.modelId===t);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const t of i){const s=o.find(a=>a.modelId.includes(t));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const t=o.find(n);if(t)return{keyId:e,modelId:t.modelId,title:t.title}}return null}function H(o,e){const i={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const t=(e[n.id]??[]).filter(a=>!_(a)),s=n.providerId;i.chat.fast||(i.chat.fast=u(t,n.id,v[s]??[])),i.chat.smart||(i.chat.smart=u(t,n.id,L[s]??[])),i.chat.thinking||(i.chat.thinking=u(t,n.id,T[s]??[])),i.image||(i.image=u(t,n.id,K[s]??[],a=>a.capabilities?.includes("image")===!0&&!a.modelId.startsWith("openrouter/auto"))),i.webSearch||(i.webSearch=u(t,n.id,w[s]??[],F)),i.deepResearch||(i.deepResearch=u(t,n.id,x[s]??[],b))}return i}function N(o,e){return{queryKey:m.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await M(o,"AI_PROVIDER_KEY_LIST",{})}}function z(){const o=p.c(7),{org:e}=h(),i=R();let n;o[0]!==e.id?(n=m.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let t;o[2]!==i?(t=async()=>await i.call("AI_PROVIDERS_LIST",{}),o[2]=i,o[3]=t):t=o[3];let s;o[4]!==n||o[5]!==t?(s={queryKey:n,staleTime:1/0,queryFn:t},o[4]=n,o[5]=t,o[6]=s):s=o[6];const{data:a}=S(s);return a}function Q(){const o=p.c(5),{org:e}=h();let i;o[0]!==e.id||o[1]!==e.slug?(i=N(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=i):i=o[2];const{data:n}=S(i);let t;return o[3]!==n?.keys?(t=n?.keys??[],o[3]=n?.keys,o[4]=t):t=o[4],t}function G(){const o=p.c(2),e=Q();let i;return o[0]!==e?(i=e.filter(V),o[0]=e,o[1]=i):i=o[1],i}function V(o){return A(o.providerId)}function E(o){const e=p.c(15),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o??""),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];const s=!!o;let a;e[3]!==o||e[4]!==n?(a=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o??""}),e[3]=o,e[4]=n,e[5]=a):a=e[5];let r;e[6]!==t||e[7]!==s||e[8]!==a?(r={queryKey:t,enabled:s,staleTime:6e4,queryFn:a},e[6]=t,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=y(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const g=!!o&&c;let f;return e[12]!==d||e[13]!==g?(f={models:d,isLoading:g},e[12]=d,e[13]=g,e[14]=f):f=e[14],f}function W(o){const e=p.c(8),i=o[0],n=o[1],t=o[2],{models:s}=E(i?.id),{models:a}=E(n?.id),{models:r}=E(t?.id);let l;if(e[0]!==i||e[1]!==n||e[2]!==t||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};i?.id&&(c[i.id]=s),n?.id&&(c[n.id]=a),t?.id&&(c[t.id]=r),l=H(o,c),e[0]=i,e[1]=n,e[2]=t,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function Y(o){const e=p.c(11),{org:i}=h(),n=R();let t;e[0]!==o||e[1]!==i.id?(t=m.aiProviderModels(i.id,o),e[0]=o,e[1]=i.id,e[2]=t):t=e[2];let s;e[3]!==o||e[4]!==n?(s=async()=>await n.call("AI_PROVIDERS_LIST_MODELS",{keyId:o}),e[3]=o,e[4]=n,e[5]=s):s=e[5];let a;e[6]!==t||e[7]!==s?(a={queryKey:t,staleTime:6e4,queryFn:s},e[6]=t,e[7]=s,e[8]=a):a=e[8];const{data:r}=S(a);let l;return e[9]!==r?.models?(l=r?.models??[],e[9]=r?.models,e[10]=l):l=e[10],l}export{E as a,b,W as c,z as d,B as e,Q as f,A as g,Y as h,F as i,H as p,G as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,X as q,a2 as I,K as T,m as Q,o as x,e as y,t as m,z}from"./index-
|
|
1
|
+
import{c as U,X as q,a2 as I,K as T,m as Q,o as x,e as y,t as m,z}from"./index-DHm3sAos.js";import{u as J}from"./use-mcp-client-ZKTq8mxe.js";function V(t){if(t.paramsSchema&&typeof t.paramsSchema=="object")return t;const e={};if(Array.isArray(t.params))for(const s of t.params)e[s.name]={type:s.type,description:s.description,enum:s.enum};else t.params&&typeof t.params=="object"&&Object.assign(e,t.params);return{type:t.type,description:t.description,paramsSchema:e}}function et(t){const e=U.c(12),{org:s}=q(),l=t??z;let a;e[0]!==s.id||e[1]!==s.slug||e[2]!==l?(a={connectionId:l,orgId:s.id,orgSlug:s.slug},e[0]=s.id,e[1]=s.slug,e[2]=l,e[3]=a):a=e[3];const i=J(a);let n;e[4]!==t?(n=T.toolCall(t??"","TRIGGER_LIST",""),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==i?(o=async()=>{const d=await i.callTool({name:"TRIGGER_LIST",arguments:{}});return(d.structuredContent??d).triggers.map(V)},e[6]=i,e[7]=o):o=e[7];const c=!!t;let r;return e[8]!==n||e[9]!==o||e[10]!==c?(r={queryKey:n,queryFn:o,enabled:c,staleTime:3e4},e[8]=n,e[9]=o,e[10]=c,e[11]=r):r=e[11],Q(r)}function st(t){const e=U.c(9),{org:s}=q(),l=I();let a;e[0]!==s.id||e[1]!==t?(a=T.automations(s.id,t),e[0]=s.id,e[1]=t,e[2]=a):a=e[2];let i;e[3]!==l||e[4]!==t?(i=async()=>(await l.call("AUTOMATION_LIST",t!=null?{virtual_mcp_id:t}:{})).automations,e[3]=l,e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==a||e[7]!==i?(n={queryKey:a,queryFn:i,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n):n=e[8],Q(n)}function it(t){const e=U.c(10),{org:s}=q(),l=I();let a;e[0]!==t||e[1]!==s.id?(a=T.automation(s.id,t),e[0]=t,e[1]=s.id,e[2]=a):a=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("AUTOMATION_GET",{id:t})).automation,e[3]=t,e[4]=l,e[5]=i):i=e[5];const n=!!t;let o;return e[6]!==a||e[7]!==i||e[8]!==n?(o={queryKey:a,queryFn:i,enabled:n,staleTime:1e4},e[6]=a,e[7]=i,e[8]=n,e[9]=o):o=e[9],Q(o)}function ot(t,e){const s=U.c(12),{org:l}=q(),a=I();let i;s[0]!==t||s[1]!==l.id||s[2]!==e?(i=T.automationRunStats(l.id,t,JSON.stringify(e??{})),s[0]=t,s[1]=l.id,s[2]=e,s[3]=i):i=s[3];let n;s[4]!==t||s[5]!==e||s[6]!==a?(n=async()=>await a.call("AUTOMATION_RUN_STATS",{automation_id:t,...e?.startDate?{startDate:e.startDate}:{},...e?.endDate?{endDate:e.endDate}:{}}),s[4]=t,s[5]=e,s[6]=a,s[7]=n):n=s[7];const o=!!t;let c;return s[8]!==i||s[9]!==n||s[10]!==o?(c={queryKey:i,queryFn:n,enabled:o,staleTime:3e4},s[8]=i,s[9]=n,s[10]=o,s[11]=c):c=s[11],Q(c)}function at(t){return{name:"New Automation",messages:[],models:{tier:"smart"},temperature:.5,active:!0,virtual_mcp_id:t}}function nt(){const t=U.c(64),{org:e}=q(),s=I(),l=x();let a;t[0]!==e||t[1]!==l?(a=()=>l.invalidateQueries({queryKey:T.automationsAll(e.id)}),t[0]=e,t[1]=l,t[2]=a):a=t[2];const i=a;let n;t[3]!==e||t[4]!==l?(n=u=>l.invalidateQueries({queryKey:T.automation(e.id,u)}),t[3]=e,t[4]=l,t[5]=n):n=t[5];const o=n;let c;t[6]!==s?(c=async u=>await s.call("AUTOMATION_CREATE",u),t[6]=s,t[7]=c):c=t[7];let r;t[8]!==i?(r=()=>{i(),m.success("Automation created successfully")},t[8]=i,t[9]=r):r=t[9];let d;t[10]!==c||t[11]!==r?(d={mutationFn:c,onSuccess:r,onError:W},t[10]=c,t[11]=r,t[12]=d):d=t[12];const D=y(d);let A;t[13]!==s?(A=async u=>await s.call("AUTOMATION_UPDATE",u),t[13]=s,t[14]=A):A=t[14];let p;t[15]!==i||t[16]!==o?(p=(u,f)=>{i(),typeof f.id=="string"&&o(f.id),m.success("Automation updated successfully")},t[15]=i,t[16]=o,t[17]=p):p=t[17];let G;t[18]!==A||t[19]!==p?(G={mutationFn:A,onSuccess:p,onError:H},t[18]=A,t[19]=p,t[20]=G):G=t[20];const j=y(G);let g;t[21]!==s?(g=async u=>await s.call("AUTOMATION_DELETE",{id:u}),t[21]=s,t[22]=g):g=t[22];let _;t[23]!==i||t[24]!==e||t[25]!==l?(_=(u,f)=>{l.removeQueries({queryKey:T.automation(e.id,f)}),i(),m.success("Automation deleted successfully")},t[23]=i,t[24]=e,t[25]=l,t[26]=_):_=t[26];let $;t[27]!==g||t[28]!==_?($={mutationFn:g,onSuccess:_,onError:B},t[27]=g,t[28]=_,t[29]=$):$=t[29];const k=y($);let E;t[30]!==s?(E=async u=>await s.call("AUTOMATION_TRIGGER_ADD",u),t[30]=s,t[31]=E):E=t[31];let S;t[32]!==i||t[33]!==o?(S=u=>{i(),o(u.automation_id)},t[32]=i,t[33]=o,t[34]=S):S=t[34];let K;t[35]!==E||t[36]!==S?(K={mutationFn:E,onSuccess:S},t[35]=E,t[36]=S,t[37]=K):K=t[37];const P=y(K);let O;t[38]!==s?(O=async u=>await s.call("AUTOMATION_TRIGGER_ROTATE_TOKEN",{trigger_id:u.trigger_id}),t[38]=s,t[39]=O):O=t[39];let R;t[40]!==i||t[41]!==o?(R=(u,f)=>{i(),o(f.automation_id)},t[40]=i,t[41]=o,t[42]=R):R=t[42];let C;t[43]!==O||t[44]!==R?(C={mutationFn:O,onSuccess:R},t[43]=O,t[44]=R,t[45]=C):C=t[45];const h=y(C);let F;t[46]!==s?(F=async u=>await s.call("AUTOMATION_TRIGGER_REMOVE",{trigger_id:u.trigger_id}),t[46]=s,t[47]=F):F=t[47];let N;t[48]!==i||t[49]!==o?(N=(u,f)=>{i(),o(f.automation_id)},t[48]=i,t[49]=o,t[50]=N):N=t[50];let b;t[51]!==F||t[52]!==N?(b={mutationFn:F,onSuccess:N},t[51]=F,t[52]=N,t[53]=b):b=t[53];const v=y(b);let L;t[54]!==s?(L={mutationFn:async u=>await s.call("AUTOMATION_RUN",{id:u}),onSuccess:Y,onError:X},t[54]=s,t[55]=L):L=t[55];const w=y(L);let M;return t[56]!==D||t[57]!==k||t[58]!==w||t[59]!==P||t[60]!==v||t[61]!==h||t[62]!==j?(M={create:D,update:j,remove:k,triggerAdd:P,triggerRemove:v,triggerRotateToken:h,run:w},t[56]=D,t[57]=k,t[58]=w,t[59]=P,t[60]=v,t[61]=h,t[62]=j,t[63]=M):M=t[63],M}function X(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function Y(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function B(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to create automation: ${e}`)}export{nt as a,at as b,et as c,it as d,ot as e,st as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,r as l}from"./index-
|
|
1
|
+
import{c as T,r as l}from"./index-DHm3sAos.js";const _=700;function D(s,a,p){const e=T.c(8),f=p?.delay??_,g=p?.isSaving??!1,[m,d]=l.useState(s),[y,A]=l.useState(s),[r,i]=l.useState(!1),t=l.useRef(null);s!==y&&(A(s),!r&&!g&&d(s));let c;e[0]!==f||e[1]!==a?(c=o=>{d(o),i(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,i(!1),a(o)},f)},e[0]=f,e[1]=a,e[2]=c):c=e[2];const S=c;let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=o=>{d(o),t.current&&clearTimeout(t.current),t.current=null,i(!1)},e[3]=n):n=e[3];const E=n;let u;return e[4]!==m||e[5]!==r||e[6]!==S?(u=[m,S,E,r],e[4]=m,e[5]=r,e[6]=S,e[7]=u):u=e[7],u}export{D as u};
|
package/dist/client/assets/{use-chat-layout-state-D4JUtDU_.js → use-chat-layout-state-BN8QGB1z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as j,k as y,d as R,u as v}from"./index-
|
|
1
|
+
import{c as j,k as y,d as R,u as v}from"./index-DHm3sAos.js";import{a as A}from"./thread-route-MHfZTnxN.js";import{u as C}from"./use-panel-navigate-CZC-Bri6.js";import{b as M}from"./thread-intent-DQzWIUxa.js";const d=["overview","reports","board","site-editor","assets","hosting","e2e","analytics","cdn","automations","experiments"],N=["overview","reports","board","site-editor"],L=1,B=["assets","hosting","e2e","analytics","cdn","experiments"];function X(t,e,n){if(!t)return{project:n??null,resolvedScopeId:null};const r=e?.id===t?e:n?.id===t?n:null;return{project:r,resolvedScopeId:r?t:null}}function Y(t){return t?.sidebarViews!==void 0?t.sidebarViews:t?.ui?.layout?.sidebarViews}function D(t,e){const n=new Set(t??[]);if(e!==L)for(const r of N)n.add(r);return d.filter(r=>n.has(r))}function J(t){return d.some(e=>e===t)}function W(t){return B.some(e=>e===t)}function k(t,e){return{overview:t,reports:t,board:t,"site-editor":t,assets:e.assets,hosting:e.hosting,e2e:e.e2e,analytics:e.analytics,cdn:e.cdn,experiments:t&&e.experiments,automations:!0}}function Z(t,e,n){const r=k(e,n);return t?r:{...r,overview:!0,reports:!0,board:!0}}function ee(t,e,n){const r=new Set(D(t,n));return d.filter(a=>e[a]&&r.has(a))}function te(t,e,n){return n||!t?t:(t.type==="preview"||t.type==="content"||t.type==="code"?"site-editor":t.type)===e?{type:"settings"}:t}function ne(t){return d.filter(e=>t[e])}function H(t,e,n){return!J(t)||e[t]?!1:W(t)?!(t==="assets"?n.assets:n.siteAccess):!0}function re(t,e,n,r,a){return H(t==="preview"||t==="content"||t==="code"?"site-editor":t,e,n)||t==="content"&&!r.includes("content")||t==="code"&&a&&!r.includes("code")}function ae(t,e,n,r){const a=new Set(D(t,r));return n?a.add(e):a.delete(e),d.filter(i=>a.has(i))}function U(){const t=j.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:x},t[0]=e):e=t[0],y(e)}function x(t){for(let e=t.matches.length-1;e>=0;e--){const n=t.matches[e]?.staticData.defaultMain;if(n)return n}return null}function F(t){return!!t.harness_id||!!t.title&&t.title!=="New chat"}function $(t){return t.threadOpen||t.contentOpen?t:{...t,threadOpen:!0}}function z(t){const e=t.entityMetadata?.defaultMainView??null,n=e==null||e.type==="chat",r=t.mainPanelParam??(t.panelNamed||!!t.routeDefaultMain||!n),a=t.routeDefaultMain?!1:n||t.entityMetadata?.chatDefaultOpen===!0||t.threadHasMessages===!0,i=t.threadVisibilityExplicit?t.sidePanelParamValue===!0:a;return $({threadOpen:i,contentOpen:r})}function I(t,e){switch(t.type){case"toggleThread":return e.threadOpen?e.contentOpen?{sidepanel:!1}:null:{sidepanel:!0};case"toggleContent":return e.contentOpen?{mainpanel:!1,sidepanel:!0}:{mainpanel:!0};case"openThread":return e.threadOpen?null:{sidepanel:!0}}}function se(t){return t.threadOpen&&t.contentOpen?{side:33,main:67}:t.threadOpen?{side:100,main:0}:t.contentOpen?{side:0,main:100}:{side:0,main:0}}function ie(t){const{threadOpen:e,contentOpen:n}=t.visibility;return e&&(t.threadVisibilityExplicit||!n)?"chat":n?"main":"chat"}function oe(t){return t==="main"?{sidepanel:!1,mainpanel:!0}:{sidepanel:!0,mainpanel:!1}}function ce(t){const e=j.c(26),n=R();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const a=v(r),{threads:i}=M(),V=U(),O=C(),f=A();let p;if(e[1]!==t||e[2]!==O||e[3]!==V||e[4]!==a.mainpanel||e[5]!==a.sidepanel||e[6]!==f||e[7]!==i){const s=f!=null?i.find(E=>E.id===f):void 0;p=z({entityMetadata:t,mainPanelParam:a.mainpanel,panelNamed:O!==void 0,threadVisibilityExplicit:a.sidepanel!==void 0,sidePanelParamValue:a.sidepanel,routeDefaultMain:V,threadHasMessages:s?F(s):!1}),e[1]=t,e[2]=O,e[3]=V,e[4]=a.mainpanel,e[5]=a.sidepanel,e[6]=f,e[7]=i,e[8]=p}else p=e[8];const{threadOpen:o,contentOpen:c}=p;let m;e[9]!==c||e[10]!==o?(m={threadOpen:o,contentOpen:c},e[9]=c,e[10]=o,e[11]=m):m=e[11];const l=m;let h;e[12]!==n?(h=(s,E)=>{n({to:".",search:T=>({...T,...s}),replace:E?.replace??!1})},e[12]=n,e[13]=h):h=e[13];const u=h;let S;e[14]!==u||e[15]!==l?(S=()=>{const s=I({type:"toggleContent"},l);s&&u(s,{replace:!0})},e[14]=u,e[15]=l,e[16]=S):S=e[16];const b=S;let g;e[17]!==u||e[18]!==l?(g=()=>{const s=I({type:"toggleThread"},l);s&&u(s,{replace:!0})},e[17]=u,e[18]=l,e[19]=g):g=e[19];const _=g,w=a.sidepanel!==void 0;let P;return e[20]!==c||e[21]!==w||e[22]!==o||e[23]!==b||e[24]!==_?(P={threadOpen:o,contentOpen:c,threadVisibilityExplicit:w,toggleContent:b,toggleThread:_},e[20]=c,e[21]=w,e[22]=o,e[23]=b,e[24]=_,e[25]=P):P=e[25],P}export{B as P,L as a,ie as b,se as c,U as d,D as e,X as f,Z as g,re as h,H as i,ne as j,ae as k,te as l,oe as m,k as p,Y as r,ee as s,F as t,ce as u};
|