decocms 4.373.2 → 4.373.3
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-D0XfIdP3.js → AlertCircle-NKpIdBKl.js} +1 -1
- package/dist/client/assets/{AreaChart-BahcMnDC.js → AreaChart-Bm-WOd7b.js} +1 -1
- package/dist/client/assets/{ArrowLeft-COesgQ7q.js → ArrowLeft-BKx_QTJr.js} +1 -1
- package/dist/client/assets/{ArrowRight-CnMpegh6.js → ArrowRight-8mLQGGMI.js} +1 -1
- package/dist/client/assets/{ArrowUp-17ZWJBkC.js → ArrowUp-BgjnqmUz.js} +1 -1
- package/dist/client/assets/{CartesianChart-DqSaDs52.js → CartesianChart-CyfhriNO.js} +1 -1
- package/dist/client/assets/{CheckCircle-GwUJIVVh.js → CheckCircle-DBlA9wkb.js} +1 -1
- package/dist/client/assets/{ChevronUp-CodzCI7T.js → ChevronUp-BAQXOf5D.js} +1 -1
- package/dist/client/assets/{Copy01-CrFZhFXo.js → Copy01-wurPIobv.js} +1 -1
- package/dist/client/assets/{CreditCard01-DDojC3kk.js → CreditCard01-DjPXzBq6.js} +1 -1
- package/dist/client/assets/{DotsVertical-DMzYFBsd.js → DotsVertical-Bx5qjzcz.js} +1 -1
- package/dist/client/assets/{Download01-B93GUT2-.js → Download01-BWFtS53v.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-BUk8y7Bj.js → ErrorBarContext-DQtaxwUD.js} +1 -1
- package/dist/client/assets/{Eye-Bxxku7SE.js → Eye-BD0ZbSdl.js} +1 -1
- package/dist/client/assets/{Globe01-DjdW3vEO.js → Globe01-0DpEacUx.js} +1 -1
- package/dist/client/assets/{Globe04-1G-_QSZW.js → Globe04-D59f7pGB.js} +1 -1
- package/dist/client/assets/{Image01-DPvj49a-.js → Image01-BUYhMNkS.js} +1 -1
- package/dist/client/assets/{Key01-O_Ykzy8v.js → Key01-BvLdmCTc.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Cr5_A1QG.js → LayoutLeft-CyJFqp-6.js} +1 -1
- package/dist/client/assets/{Line-aFR7lShe.js → Line-BeN-bY3Y.js} +1 -1
- package/dist/client/assets/{Link01-D8T6mRIR.js → Link01-qIayyFAq.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CWPNoGQ_.js → LinkExternal01-hkxOMKQE.js} +1 -1
- package/dist/client/assets/{Monitor01-CQaKbr3c.js → Monitor01-DyfIXCt5.js} +1 -1
- package/dist/client/assets/{Package-Cd3aVeK8.js → Package-EQg-wMAD.js} +1 -1
- package/dist/client/assets/{Palette-HRmzWYeK.js → Palette-DI15yG1R.js} +1 -1
- package/dist/client/assets/{Play-CaxaoMwA.js → Play-Cg9yqLoQ.js} +1 -1
- package/dist/client/assets/{Plus-BjOenFFb.js → Plus-BKjrQCsd.js} +1 -1
- package/dist/client/assets/{SearchLg-CT-Vntfj.js → SearchLg-RqwylEUM.js} +1 -1
- package/dist/client/assets/{SearchMd-C6gkQ2l2.js → SearchMd-I-u-Ppkp.js} +1 -1
- package/dist/client/assets/{Sector-B-fHBulW.js → Sector-C46Vk0wT.js} +1 -1
- package/dist/client/assets/{Settings02-DH86cX_B.js → Settings02-DJVGKnwW.js} +1 -1
- package/dist/client/assets/{Share07-Bw4Wicv2.js → Share07-adzWfg3s.js} +1 -1
- package/dist/client/assets/{Stars01-B1kYoDFp.js → Stars01-BEbgNJbY.js} +1 -1
- package/dist/client/assets/{Sun-kycCorOO.js → Sun-YVYc7YRc.js} +1 -1
- package/dist/client/assets/{Tool01-iak9ZtFE.js → Tool01-DDTjazFm.js} +1 -1
- package/dist/client/assets/{Tool02-CFu103hl.js → Tool02-BLokvBBs.js} +1 -1
- package/dist/client/assets/{Trash01-CpN6r-a0.js → Trash01-VGFb49EH.js} +1 -1
- package/dist/client/assets/{TrendUp01-DlYmFZ7k.js → TrendUp01-BPu5TWOk.js} +1 -1
- package/dist/client/assets/{Upload01-DkDsqCWe.js → Upload01-Cv7tN2NN.js} +1 -1
- package/dist/client/assets/{User01-CmNzW4kH.js → User01-BI5R-4Xj.js} +1 -1
- package/dist/client/assets/{UserSquare-1_FC93GE.js → UserSquare-C_kKkH0n.js} +1 -1
- package/dist/client/assets/{Users01-CVhfgklM.js → Users01-DVg45Kv0.js} +1 -1
- package/dist/client/assets/{X-DTaqHNcB.js → X-CvjnZl5e.js} +1 -1
- package/dist/client/assets/{XCircle-BR8ZZHlj.js → XCircle-CB3Q-O1t.js} +1 -1
- package/dist/client/assets/{XClose-VLid_ZSM.js → XClose-l9OyLGUl.js} +1 -1
- package/dist/client/assets/{Zap-D3d1wpzw.js → Zap-UqD0_RZa.js} +1 -1
- package/dist/client/assets/{ZoomOut-B3S7N50e.js → ZoomOut-Cq1zMqoM.js} +1 -1
- package/dist/client/assets/{access-gate-DAO7tJ5A.js → access-gate-eZrCTx42.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CaHZ3eeK.js → add-connection-dialog-CCnr4x54.js} +1 -1
- package/dist/client/assets/{agent-analytics-CzbWclRj.js → agent-analytics-BHAmS_Vv.js} +1 -1
- package/dist/client/assets/agent-app-0Lj8xuLI.js +1 -0
- package/dist/client/assets/{agent-assets-Dfpjbzyj.js → agent-assets-Dl566Cx2.js} +1 -1
- package/dist/client/assets/{agent-automation-C8r5_lAR.js → agent-automation-ZRwCzRyz.js} +1 -1
- package/dist/client/assets/{agent-automations-BSaV8k3Y.js → agent-automations-CcGv--oW.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-AkHuiIU0.js → agent-connect-sources-DOCL0L4U.js} +1 -1
- package/dist/client/assets/agent-deck-EC_2q0-4.js +1 -0
- package/dist/client/assets/{agent-e2e-CjCqLXH1.js → agent-e2e-BheTu3sG.js} +1 -1
- package/dist/client/assets/{agent-experiments-4inK9Pvj.js → agent-experiments-DySEMnSa.js} +1 -1
- package/dist/client/assets/agent-file-CDMSSq77.js +1 -0
- package/dist/client/assets/{agent-git-BZmL1C91.js → agent-git-CGVI6Aq_.js} +1 -1
- package/dist/client/assets/{agent-hosting-CP9gImki.js → agent-hosting-CuK5vWln.js} +1 -1
- package/dist/client/assets/{agent-icon-D5Ih-I28.js → agent-icon-Du4foZ5w.js} +1 -1
- package/dist/client/assets/agent-library-file-CVu7KBHy.js +1 -0
- package/dist/client/assets/{agent-monitor-D7bE1AUL.js → agent-monitor-GtldlQaQ.js} +1 -1
- package/dist/client/assets/{agent-overview-C5zU0xJO.js → agent-overview-CV_KF9Yq.js} +1 -1
- package/dist/client/assets/agent-settings-S0BObv95.js +1 -0
- package/dist/client/assets/{agent-site-editor-BRzwUORk.js → agent-site-editor-DwI3mXwZ.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-DHn9ldlr.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-Da0JfE-w.js → agent-site-editor-content-B-s4vnUX.js} +2 -2
- package/dist/client/assets/{agent-site-editor-preview-DqMQfEJz.js → agent-site-editor-preview-BUdForMN.js} +3 -3
- package/dist/client/assets/agent-view-CMVA1gTC.js +1 -0
- package/dist/client/assets/{agent-view-guard-CmXIeKCe.js → agent-view-guard-O3WyIY56.js} +1 -1
- package/dist/client/assets/{agents-list-wHHXJTl8.js → agents-list-Bb_RX3Ji.js} +1 -1
- package/dist/client/assets/{ai-providers-COexxMGY.js → ai-providers-DDzOPCjm.js} +1 -1
- package/dist/client/assets/{alert-C_EPjsLF.js → alert-CXDlDd5b.js} +1 -1
- package/dist/client/assets/{alert-dialog-D6rlFoy0.js → alert-dialog-D2J-kRAV.js} +1 -1
- package/dist/client/assets/api-keys-CKnoL6XY.js +1 -0
- package/dist/client/assets/{api-keys-o45lgGkw.js → api-keys-DOy--osE.js} +1 -1
- package/dist/client/assets/app-editor-BHGu8CuE.js +1 -0
- package/dist/client/assets/{asset-utils-BG24FUsq.js → asset-utils-Bl8mgxfa.js} +1 -1
- package/dist/client/assets/{auth-B_QE3yd2.js → auth-DoQ4Nalq.js} +1 -1
- package/dist/client/assets/{auth-catchall-BM8U6OhG.js → auth-catchall-D5w-ZyXF.js} +1 -1
- package/dist/client/assets/{auth-entry-CdieewWf.js → auth-entry-DBl5DaPH.js} +1 -1
- package/dist/client/assets/{auth-split-layout-rKTEf0Lh.js → auth-split-layout-BgPxcBcB.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-Cm242zr2.js → authenticate-and-persist-oauth-CMWIzBXQ.js} +1 -1
- package/dist/client/assets/{automation-list-row-DDeJYMHS.js → automation-list-row-CdHBSjU2.js} +1 -1
- package/dist/client/assets/{automation-runs-BGXJk3-4.js → automation-runs-DkQGSYfz.js} +1 -1
- package/dist/client/assets/{automations-BhhOtnrs.js → automations-rIGMTqYL.js} +1 -1
- package/dist/client/assets/{autosend-DtYV6o0l.js → autosend-Bln98kNi.js} +1 -1
- package/dist/client/assets/{avatar-Dwn9Bjsb.js → avatar-1Yn634Bu.js} +1 -1
- package/dist/client/assets/{badge-BSirYRuD.js → badge-BMrNoDQF.js} +1 -1
- package/dist/client/assets/{block-document-DjxI0Nln.js → block-document-B0bO5MdC.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BwjlsTrq.js → blocks-preview-workspace-context-okcOywiO.js} +1 -1
- package/dist/client/assets/{breadcrumb-BpbnoaV3.js → breadcrumb-CzmrQK1U.js} +1 -1
- package/dist/client/assets/{buckets-DdptE4Pj.js → buckets-D85bhcTG.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-CIkgt5Ml.js → build-improve-prompt-doc-Jx4Nw8lc.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BUvAK76e.js → bulk-category-panel-Cpa3qfBq.js} +1 -1
- package/dist/client/assets/{calendar-Bhg3W8Dv.js → calendar-CDf47KON.js} +1 -1
- package/dist/client/assets/{capability-load-error-l-yxDu1W.js → capability-load-error-CG1OQua7.js} +1 -1
- package/dist/client/assets/category-editor-BzcQSv3B.js +1 -0
- package/dist/client/assets/{chart-B7hxFGKr.js → chart-Bcix-phJ.js} +1 -1
- package/dist/client/assets/{chat-context-CVZ1rNGo.js → chat-context-WkB72QDr.js} +1 -1
- package/dist/client/assets/{chat-draft-UIE-uNFd.js → chat-draft-anvjkrXf.js} +1 -1
- package/dist/client/assets/{checkbox-VSstjUSb.js → checkbox-Yo-_CoUr.js} +1 -1
- package/dist/client/assets/{choose-editor-DD3-fBUp.js → choose-editor-j32E7S6T.js} +1 -1
- package/dist/client/assets/{cli-auth-success-LIJhoLzG.js → cli-auth-success-Bz3RxiUp.js} +1 -1
- package/dist/client/assets/{client-icons-D8SzN11F.js → client-icons-BL2yc5kE.js} +1 -1
- package/dist/client/assets/{collapsible-BX137q_-.js → collapsible-Cz7g8j4s.js} +1 -1
- package/dist/client/assets/{collection-detail-Brbyx-hM.js → collection-detail-ChcpgbQd.js} +1 -1
- package/dist/client/assets/{collection-display-button-LAyYKy93.js → collection-display-button-Cqq95Rk5.js} +1 -1
- package/dist/client/assets/{collection-search-Dvf73igt.js → collection-search-DFM5AYUG.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-_ZnQA9Nx.js → collection-table-wrapper-DxZT2IDQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-BW0egx-_.js → collection-tabs-CU5BwvHd.js} +1 -1
- package/dist/client/assets/{combobox-D6GclaQ-.js → combobox-5QbF4j2b.js} +1 -1
- package/dist/client/assets/{command-Dsz0XoYc.js → command-CY_32gBM.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-D7ntAaGF.js → companion-mcps-section-C5Ce-Ae8.js} +1 -1
- package/dist/client/assets/{connect-ChX83wmI.js → connect-VHpAEDVp.js} +1 -1
- package/dist/client/assets/{connect-layout-SP9zSVi3.js → connect-layout-DosY7Ren.js} +1 -1
- package/dist/client/assets/{connection-2MR1zroe.js → connection-BtAmcsWV.js} +1 -1
- package/dist/client/assets/{connection-card-B5yTdNvS.js → connection-card-DNLyrdBM.js} +1 -1
- package/dist/client/assets/{connection-detail-DKOxQWbq.js → connection-detail-ByWc2VaQ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-PrMbwr2L.js → connection-form-helpers-pqXyLS21.js} +1 -1
- package/dist/client/assets/{connections-lQVX-uGO.js → connections-BLrf_knq.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-Ccojws8S.js → create-organization-dialog-DqGp97lF.js} +1 -1
- package/dist/client/assets/{decofile-api-DygXY02K.js → decofile-api-C6MVAHgF.js} +1 -1
- package/dist/client/assets/{decopilot-rj_BJ_Z1.js → decopilot-C2LtkKnC.js} +1 -1
- package/dist/client/assets/{dialog-BKhaq-Xf.js → dialog-uPTcsM6n.js} +1 -1
- package/dist/client/assets/{discover-C_imFiZx.js → discover-D15TnXT7.js} +1 -1
- package/dist/client/assets/{domain-settings-CUKpZjNV.js → domain-settings-C4iSYJi_.js} +1 -1
- package/dist/client/assets/{download-app-dialog-wNu8nmu1.js → download-app-dialog-CSAHR0v5.js} +1 -1
- package/dist/client/assets/{drawer-CCmZWflK.js → drawer-CJhbJSjB.js} +1 -1
- package/dist/client/assets/{editor-DMij_Pa1.js → editor-DhWDdB15.js} +1 -1
- package/dist/client/assets/{empty-state-BDpfsfUL.js → empty-state-CvynDoal.js} +1 -1
- package/dist/client/assets/{empty-state-DiRnF-wA.js → empty-state-DATmbbqz.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Bdk8iF2q.js → extract-connection-data-C-_k_HrX.js} +1 -1
- package/dist/client/assets/{feature-gate-KPNWzkBp.js → feature-gate-NGY-PlEE.js} +1 -1
- package/dist/client/assets/{feature-paywall-B3_no1lb.js → feature-paywall-C-R3YJVm.js} +1 -1
- package/dist/client/assets/{file-explorer-oIhs2jyB.js → file-explorer-CBVvygyV.js} +1 -1
- package/dist/client/assets/{file-preview-BFDgPeRr.js → file-preview-BQWchARE.js} +1 -1
- package/dist/client/assets/{file-share-button-7xy_ju8b.js → file-share-button-D6ndnz7e.js} +1 -1
- package/dist/client/assets/{file-type-icon-Co9lETmZ.js → file-type-icon-x1wD28_F.js} +1 -1
- package/dist/client/assets/{folder-icon-CPH1Bszw.js → folder-icon-BsGi9z8O.js} +1 -1
- package/dist/client/assets/{form-CxKBX2E3.js → form-CzXfgfFr.js} +1 -1
- package/dist/client/assets/{gateway-client-B8HHtBA6.js → gateway-client-_lcPratN.js} +1 -1
- package/dist/client/assets/{general-BXQ_6idC.js → general-CLxa6dw_.js} +1 -1
- package/dist/client/assets/{github-icon-DSeg1rga.js → github-icon-DD7YJLb0.js} +1 -1
- package/dist/client/assets/{home-FAOklPf6.js → home-Cc_gG_k0.js} +1 -1
- package/dist/client/assets/{hooks-CFjlhRX0.js → hooks-BDNT0Adb.js} +1 -1
- package/dist/client/assets/{hooks-BFlZlUD7.js → hooks-DdW3hvoh.js} +1 -1
- package/dist/client/assets/{icon-button-_3vMPXZp.js → icon-button-B9TVjSua.js} +1 -1
- package/dist/client/assets/{index-B3clFfYi.js → index--5W-89Xn.js} +1 -1
- package/dist/client/assets/{index-Coo4IGyG.js → index-Bb2NSQTG.js} +1 -1
- package/dist/client/assets/{index-BwwpOrcS.js → index-C5oMfVw1.js} +1 -1
- package/dist/client/assets/{index-CV2G6XgT.js → index-CQcZAkPo.js} +1 -1
- package/dist/client/assets/{index-DZmKVVGY.js → index-CdCeTCag.js} +1 -1
- package/dist/client/assets/{index-CC7J7MsT.js → index-DXBmCj7V.js} +2 -2
- package/dist/client/assets/{index-BrLZxE6-.js → index-DlTwltzZ.js} +1 -1
- package/dist/client/assets/{index-DoCuIH7r.js → index-DuEn4YkZ.js} +1 -1
- package/dist/client/assets/{index-Ci8CqfCi.js → index-Dud89Ecl.js} +1 -1
- package/dist/client/assets/{index-zFkCX32V.js → index-Oih4fNwt.js} +1 -1
- package/dist/client/assets/{index-D2HOssRq.js → index-U6uQHeCm.js} +1 -1
- package/dist/client/assets/{index-BcfYNZk_.js → index-VAuix8Ds.js} +1 -1
- package/dist/client/assets/{index-WfTG300W.js → index-VD5I0PAu.js} +1 -1
- package/dist/client/assets/{index-CxsDd08k.js → index-_1eIUhNB.js} +1 -1
- package/dist/client/assets/{index-redirect-BV59ZcWQ.js → index-redirect-BhYkN3DP.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CKT-6XMq.js → infiniteQueryObserver-DhQG5Ba-.js} +1 -1
- package/dist/client/assets/{infra-billing-RcXbwjta.js → infra-billing-CIY_y-NM.js} +1 -1
- package/dist/client/assets/{input-DSV_9cOM.js → input-CA3NO5_t.js} +1 -1
- package/dist/client/assets/{input-QKe7l082.js → input-Cl33QWb6.js} +1 -1
- package/dist/client/assets/{input-X38P96BY.js → input-DJ90IYpm.js} +1 -1
- package/dist/client/assets/{integration-icon-BARnXRTY.js → integration-icon-CAyUCGPQ.js} +1 -1
- package/dist/client/assets/{label-YKssz_GS.js → label-C_cX51We.js} +1 -1
- package/dist/client/assets/{last-preview-page-D5EFEwR4.js → last-preview-page-DolafzDL.js} +1 -1
- package/dist/client/assets/{layout-UcqeKFE9.js → layout-BDvTf5Y1.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BYo-BuCs.js → legacy-agents-deep-CovYAG5o.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-NyVTUirL.js → legacy-main-redirect-DakI8WgO.js} +1 -1
- package/dist/client/assets/{library-FX2TKWir.js → library-CQOC6rOe.js} +1 -1
- package/dist/client/assets/{login-gigmbDXu.js → login-CzeMsg8T.js} +1 -1
- package/dist/client/assets/{markdown-tOSThun8.js → markdown-CqOP0_5N.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-c3JU3ROq.js → mcp-app-renderer-BrIoKm0G.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cr_ZflCp.js → mcp-oauth-ZZeDQKuh.js} +1 -1
- package/dist/client/assets/{members-Cd4baVfz.js → members-8jDg9Gt8.js} +1 -1
- package/dist/client/assets/{message-templates-Pr7m4Pgn.js → message-templates-D5TTMXdz.js} +1 -1
- package/dist/client/assets/{mini-report-page-0G8UQBMn.js → mini-report-page-VIPIzU0p.js} +1 -1
- package/dist/client/assets/{mock-board-Dw3AKqte.js → mock-board-DNOBo32D.js} +3 -3
- package/dist/client/assets/{monaco-editor-BhkNNN8A.js → monaco-editor-D3gyKeW5.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D3wuHD5K.js → monitoring-stats-row-B2mHnjHP.js} +1 -1
- package/dist/client/assets/{multi-select-Bw9uE0vh.js → multi-select-DWjNtzij.js} +1 -1
- package/dist/client/assets/{mustache-BMe4E-3i.js → mustache-ChbLhy-e.js} +1 -1
- package/dist/client/assets/{oauth-callback-Ckn9o5ws.js → oauth-callback-PixJQkgi.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B7dYzzRe.js → oauth-callback-ai-provider-Bo-B7c2F.js} +1 -1
- package/dist/client/assets/{onboarding-BtLLloCy.js → onboarding-Ci-02n6u.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-8yO8-q3h.js → optimistic-project-sidebar-views-DXHATWeY.js} +1 -1
- package/dist/client/assets/{org-file-open-context-k2zY7W2A.js → org-file-open-context-B3uxBbrN.js} +1 -1
- package/dist/client/assets/{organization-choice-oi5kPDHh.js → organization-choice-DTNV4OA3.js} +1 -1
- package/dist/client/assets/{orgs-C8VfgzyW.js → orgs-T1j1ZJVH.js} +1 -1
- package/dist/client/assets/{page-seo-form-D-yemID7.js → page-seo-form-CEP8eX1I.js} +1 -1
- package/dist/client/assets/{pair-CbUh0olY.js → pair-BFIjmC4W.js} +1 -1
- package/dist/client/assets/{plan-ladder-DR8Snnfh.js → plan-ladder-BGfca4Fl.js} +1 -1
- package/dist/client/assets/{popover-tYq49O5I.js → popover-B1-bCr3Y.js} +1 -1
- package/dist/client/assets/{post-calendar-n3g3NXQN.js → post-calendar-BJNEmWBL.js} +1 -1
- package/dist/client/assets/{post-editor-BCki1XwL.js → post-editor-CXDWBybn.js} +1 -1
- package/dist/client/assets/{preview-content-BEe_g5h_.js → preview-content-BJxZz0wL.js} +1 -1
- package/dist/client/assets/{preview-dialog-B88KWjD7.js → preview-dialog-tXexYYvy.js} +1 -1
- package/dist/client/assets/{primitives-DvNXO9ko.js → primitives-CVINQDcd.js} +1 -1
- package/dist/client/assets/{profile-Dn8W-1_J.js → profile-BDVO0CZL.js} +1 -1
- package/dist/client/assets/{project-app-view-CHIgEuQJ.js → project-app-view-D5WewSj0.js} +1 -1
- package/dist/client/assets/{project-feed-BeVLcst-.js → project-feed-BJK1cP5l.js} +1 -1
- package/dist/client/assets/{project-icon-BuTPt9Ec.js → project-icon-I77gr-pK.js} +1 -1
- package/dist/client/assets/project-reports-C-M11Ewx.js +1 -0
- package/dist/client/assets/project-tasks-DTM5l8Na.js +1 -0
- package/dist/client/assets/{prompts-BrLG0HnD.js → prompts-CMF-VFXI.js} +1 -1
- package/dist/client/assets/record-editor-D668-cnv.js +1 -0
- package/dist/client/assets/{redirect-editor-DQh1NXo4.js → redirect-editor-DIpeG6wi.js} +1 -1
- package/dist/client/assets/registry-BL1mut8w.js +2 -0
- package/dist/client/assets/{registry-layout-tLc7-FpU.js → registry-layout-BmUtYGzz.js} +1 -1
- package/dist/client/assets/{reports-Bgxd82xF.js → reports-B5M0xDyn.js} +1 -1
- package/dist/client/assets/reports-DZF0Eu6T.js +1 -0
- package/dist/client/assets/{reports-onboarding-BORIliYh.js → reports-onboarding-pRaIN0gW.js} +1 -1
- package/dist/client/assets/{reports-tab-3yvhtU-e.js → reports-tab-b87PNkNv.js} +2 -2
- package/dist/client/assets/{repositories-DnQQ93Vy.js → repositories-J4P1iWK3.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B1zE1wEx.js → repository-import-picker-CxfUH2IT.js} +1 -1
- package/dist/client/assets/{repository-picker-DMUsWfjy.js → repository-picker-C84r9pEi.js} +1 -1
- package/dist/client/assets/{require-capability-B9l2cjC7.js → require-capability-nXjtpUGm.js} +1 -1
- package/dist/client/assets/{required-auth-layout-qQ6V67AS.js → required-auth-layout-D6L2B3lC.js} +1 -1
- package/dist/client/assets/{reset-password-CzGwWM54.js → reset-password-CnmRONVL.js} +1 -1
- package/dist/client/assets/{resizable-c-JEmBrU.js → resizable-DGvuTNz4.js} +1 -1
- package/dist/client/assets/{review-settings-CBDmCs9f.js → review-settings-0gzJBFQk.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-B4QybUls.js → rich-text-link-control-D1jkHV9n.js} +1 -1
- package/dist/client/assets/{roles-9Q5Zr1_l.js → roles-D0xiAKmZ.js} +1 -1
- package/dist/client/assets/{route-D9feMXoH.js → route-BXepAEc1.js} +1 -1
- package/dist/client/assets/{route-Cyp-PzpR.js → route-CRwg4ev7.js} +1 -1
- package/dist/client/assets/{route-DrZOVBG5.js → route-D4AIZCoB.js} +1 -1
- package/dist/client/assets/{route-page-header-BzWw0nja.js → route-page-header-DPnz1U8f.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-nQ69L6jb.js → runnable-block-editor-DPGvOiWb.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-DLKr6QBG.js → sandbox-lifecycle-context-BrifGyM7.js} +1 -1
- package/dist/client/assets/{schema-CStbpjQf.js → schema-CQ48zDTU.js} +1 -1
- package/dist/client/assets/{scroll-area-BLDUQh9N.js → scroll-area-SUblEurA.js} +1 -1
- package/dist/client/assets/{search-input-MlNEh696.js → search-input-DN1HxMQM.js} +1 -1
- package/dist/client/assets/{search-toggle-SUy-5Oe0.js → search-toggle-0BP5lkY1.js} +1 -1
- package/dist/client/assets/{secrets-CEw0kB_t.js → secrets-BaKuwycc.js} +1 -1
- package/dist/client/assets/{sections-editor-l8Cc724N.js → sections-editor-AVazcTA0.js} +1 -1
- package/dist/client/assets/{select-C_C7jdl-.js → select-DOrOm388.js} +1 -1
- package/dist/client/assets/{select-model-FW_XGeEU.js → select-model-BYr7h8L7.js} +1 -1
- package/dist/client/assets/{seo-editor-BhZJvD6-.js → seo-editor-Byp247PA.js} +1 -1
- package/dist/client/assets/{separator-D-DaNCb-.js → separator-CId9iV2J.js} +1 -1
- package/dist/client/assets/{settings-tab-DhuuexRq.js → settings-tab-BG8Rq5w6.js} +1 -1
- package/dist/client/assets/{sheet-B5ncClVO.js → sheet-DlPfrw9X.js} +1 -1
- package/dist/client/assets/{shell-layout-p-WJ7uxl.js → shell-layout-BDka9RLc.js} +1 -1
- package/dist/client/assets/{sidebar-BlfpAzXY.js → sidebar-6rO43IUN.js} +1 -1
- package/dist/client/assets/{skill-preview-CeIBKDR2.js → skill-preview-Co5VzFcl.js} +1 -1
- package/dist/client/assets/{skills-Cpf0zAbB.js → skills-BjII2RGG.js} +1 -1
- package/dist/client/assets/{sso-CYe8kGWS.js → sso-DisHvnNZ.js} +1 -1
- package/dist/client/assets/{store-DDl3lPqK.js → store-CFvcGu_A.js} +1 -1
- package/dist/client/assets/store-registry-ap1IeTES.js +2 -0
- package/dist/client/assets/{switch-C_FmZ5Us.js → switch-BV-MyRQN.js} +1 -1
- package/dist/client/assets/{synced-repos-DHbM7OOb.js → synced-repos-DQ8WQsrQ.js} +1 -1
- package/dist/client/assets/{table-mH2G1tkg.js → table-zCmjz1mf.js} +1 -1
- package/dist/client/assets/{tabs-jjUOgDeE.js → tabs-tFCunu6d.js} +1 -1
- package/dist/client/assets/{task-board-BtEMyO1f.js → task-board-D3lC_1Th.js} +1 -1
- package/dist/client/assets/{task-route-BaALoopn.js → task-route-Bcy3o1uq.js} +1 -1
- package/dist/client/assets/{task-status-CCMsckzm.js → task-status-DZ2zcnv8.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CzQSxt8I.js → taskboard-analytics-DN3ZXOV0.js} +1 -1
- package/dist/client/assets/tasks-C6FPIHKX.js +1 -0
- package/dist/client/assets/{tasks-K4e2STZ0.js → tasks-fYEHHw5V.js} +1 -1
- package/dist/client/assets/{textarea-B7wqTmSc.js → textarea-D-6K9r19.js} +1 -1
- package/dist/client/assets/{thread-button-B9U3gqvP.js → thread-button-DD23ms1j.js} +1 -1
- package/dist/client/assets/{thread-intent-DZx7N_NL.js → thread-intent-vrMbWjYP.js} +1 -1
- package/dist/client/assets/{thread-route-B3hhxYHj.js → thread-route-BSTJ2qPY.js} +1 -1
- package/dist/client/assets/{thread-route-DnE31jZ2.js → thread-route-QtII8A2p.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D_py0jIP.js → thread-sheet-body-KQlmfRxf.js} +1 -1
- package/dist/client/assets/{toggle-group-C-J6fFSZ.js → toggle-group-XcXQjaHX.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DQAUOhdv.js → toolbar-icon-button-BIBFTsar.js} +1 -1
- package/dist/client/assets/{tooltip-DSCGYdw1.js → tooltip-rAdo_tRS.js} +1 -1
- package/dist/client/assets/{track-BWEjISsx.js → track-DmnUsSfo.js} +1 -1
- package/dist/client/assets/{types-BQYrCHfb.js → types-CzTQ99AX.js} +1 -1
- package/dist/client/assets/{usage-stats-CH100JwP.js → usage-stats-CYrj10jy.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DPIPADTm.js → use-ai-providers-BwceVIHL.js} +1 -1
- package/dist/client/assets/{use-automations-Cm_whz3Q.js → use-automations-LlaDJlNA.js} +1 -1
- package/dist/client/assets/{use-autosave-C09DCahC.js → use-autosave-DVR2xqFT.js} +1 -1
- package/dist/client/assets/{use-connect-companion-D45RJA2C.js → use-connect-companion-C-xpH0dL.js} +1 -1
- package/dist/client/assets/{use-connection-DAR6kA6F.js → use-connection-BN3cT5kd.js} +1 -1
- package/dist/client/assets/{use-copy-CLZ5Gmjm.js → use-copy-Dcx9tDN2.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DlDbTDWh.js → use-create-virtual-mcp-9-NMNx3_.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-4a1GuGUG.js → use-date-fns-locale-CDbheytD.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-s6ooboiq.js → use-debounced-autosave-DvQCb6wJ.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C7PP6GCc.js → use-debounced-value-CfEN0fzg.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C78gqYYg.js → use-deco-credits-6yJRZ2JQ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DDN9tgML.js → use-decopilot-events-R9ZDtZrh.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DT4K_5dd.js → use-delete-connection-BodmL1FQ.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-mukdSbJI.js → use-deployment-admin-C884vS-k.js} +1 -1
- package/dist/client/assets/{use-entitlements-CsT7-WMV.js → use-entitlements-Dx7XqEcC.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BofBOVEy.js → use-fast-preview-draft-url-CAOVYx78.js} +1 -1
- package/dist/client/assets/{use-file-configs-DT6Slpub.js → use-file-configs-BJjPt2Ut.js} +1 -1
- package/dist/client/assets/{use-in-settings-BuwNY17C.js → use-in-settings-Bx-OzfKC.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BEJH1fno.js → use-infinite-scroll-CWWIqkZ2.js} +1 -1
- package/dist/client/assets/{use-join-requests-CRlXrVsN.js → use-join-requests-gm28lnmh.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CHXW72tt.js → use-main-panel-tabs-Dcfn9hBK.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BUHt6LYh.js → use-mcp-auth-status-CwUBv4Hm.js} +1 -1
- package/dist/client/assets/{use-mcp-client-jmamuSRM.js → use-mcp-client-BtmoWWkf.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Cb12ACl6.js → use-mcp-prompts-BkeLGKHx.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-U5kwqIN7.js → use-mcp-tools-B84418Zt.js} +1 -1
- package/dist/client/assets/{use-members-CZk_logh.js → use-members-DOLKWeYn.js} +1 -1
- package/dist/client/assets/{use-mobile-X_9uHXB5.js → use-mobile-CRuuooNM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-XZHI0vTx.js → use-navigate-to-agent-DIpRW39A.js} +1 -1
- package/dist/client/assets/{use-open-billing-url-BygdFnSn.js → use-open-billing-url-C5SPvsb8.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-6spdYft8.js → use-org-auth-client-TdQ8MWNM.js} +1 -1
- package/dist/client/assets/{use-org-fs-C4AEj3YR.js → use-org-fs-DnKhdb5t.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-D5-YS2q1.js → use-org-repo-syncs-DJd41R4N.js} +1 -1
- package/dist/client/assets/{use-org-sso-CbtWg6df.js → use-org-sso-D6hDWGLC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B2NYy6qP.js → use-organization-roles-BXwewduE.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DiOLzOn-.js → use-organization-settings-yjdHHrMs.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-YnjVvVnu.js → use-panel-navigate-DEBeb2CL.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-S2GuqygD.js → use-project-native-view-presence-CHdUtv7D.js} +1 -1
- package/dist/client/assets/{use-project-scope-azWGklpf.js → use-project-scope-DHl6lLqa.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Dr6Tl0jy.js → use-registry-connections-B13lXSQz.js} +1 -1
- package/dist/client/assets/{use-releases-sRilJRv7.js → use-releases-CASa78Vi.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-b56ze7yP.js → use-reports-diagnostic-jdgV6F3e.js} +1 -1
- package/dist/client/assets/{use-route-default-main-DAXdKSA3.js → use-route-default-main-DSxGO_aw.js} +1 -1
- package/dist/client/assets/{use-secrets-BD25jCAi.js → use-secrets-B-9J9EkQ.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-CfKeOl7s.js → use-section-preview-base-Di3xgtD1.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D8PgcjtK.js → use-session-runtime-Dc42TY0X.js} +1 -1
- package/dist/client/assets/{use-tags-DMzy8m-k.js → use-tags-CCJJRf2p.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BXM0SDto.js → use-task-board-analytics-CK3_uAaU.js} +1 -1
- package/dist/client/assets/{use-task-metadata-IzJB5PVG.js → use-task-metadata-jNANkRmK.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BhhE_Gkc.js → use-thread-outputs-BoiojEnU.js} +1 -1
- package/dist/client/assets/{use-view-mode-CUHkIbeG.js → use-view-mode-D8IEchi6.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Bt7oX0ej.js → use-virtual-mcp-2UFz9K4W.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bvk6obSJ.js +1 -0
- package/dist/client/assets/{useQueries-D7ondynP.js → useQueries-thkmee8L.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-7JvmV8My.js +1 -0
- package/dist/client/assets/{users-CP4Dfulp.js → users-BGtd_KGY.js} +1 -1
- package/dist/client/assets/{utils-CcX7wgow.js → utils-1s66UjII.js} +1 -1
- package/dist/client/assets/{variant-calendar-BYxVe-PM.js → variant-calendar-Dg9C2UkW.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CgX58Kkx.js → variant-matcher-override-DquKUvoE.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-CRnJAx40.js → view-mode-toggle-CJQ43vUA.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BWl8nlWy.js → virtual-mcp-Be7V69gW.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +597 -597
- package/dist/server/server.js +392 -392
- package/package.json +1 -1
- package/dist/client/assets/agent-app-DqzssWfL.js +0 -1
- package/dist/client/assets/agent-deck-BQOqb5JA.js +0 -1
- package/dist/client/assets/agent-file-CN4CJx4b.js +0 -1
- package/dist/client/assets/agent-library-file-CMtJlgeS.js +0 -1
- package/dist/client/assets/agent-settings-G7qQl7Yj.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BV4iQvoi.js +0 -2
- package/dist/client/assets/agent-view-BinIwia6.js +0 -1
- package/dist/client/assets/api-keys-CN-jy2XH.js +0 -1
- package/dist/client/assets/app-editor-BPKOcfIg.js +0 -1
- package/dist/client/assets/category-editor-Crlp5xLx.js +0 -1
- package/dist/client/assets/project-reports-EFWj1j4Z.js +0 -1
- package/dist/client/assets/project-tasks-DGYfz1Ev.js +0 -1
- package/dist/client/assets/record-editor-AST5wQoO.js +0 -1
- package/dist/client/assets/registry-FGkay0Wa.js +0 -2
- package/dist/client/assets/reports-CqtPOzss.js +0 -1
- package/dist/client/assets/store-registry-DUH5xq3l.js +0 -2
- package/dist/client/assets/tasks-CI20rxb_.js +0 -1
- package/dist/client/assets/useInfiniteQuery-zZoTJbYm.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BvOl5Id0.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c_ as O,au as U,c as P,j as r,r as G,E as ee,b as F,B as q,a0 as te,K as Q,o as se,l as ne}from"./index-CC7J7MsT.js";import{u as re}from"./useSuspenseInfiniteQuery-BvOl5Id0.js";import{S as ae,c as ie}from"./sheet-B5ncClVO.js";import{A as le}from"./avatar-Dwn9Bjsb.js";import{n as oe,t as ce}from"./ChevronUp-CodzCI7T.js";import{n as W}from"./Tool02-CFu103hl.js";import{a as ue,M as de}from"./pair-CbUh0olY.js";import{D as me}from"./chat-context-CVZ1rNGo.js";import{I as Y}from"./integration-icon-BARnXRTY.js";import{u as fe}from"./use-decopilot-events-DDN9tgML.js";import{u as xe}from"./use-infinite-scroll-BEJH1fno.js";import{g as ge}from"./task-status-CCMsckzm.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 Ye(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Z(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function J(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 X(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=Z(s);u=J(N,i,n,""),c=X(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(Y,{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=Z(s);u=J(I,i,n,""),c=X(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(Y,{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 Ze(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{Ze as T,Ue as a,Ge as b,be as c,Ye as d,We as e,Oe as f,He as g,Qe as h,je as i,Z as j,X as k,J as r};
|
|
1
|
+
import{c_ as O,au as U,c as P,j as r,r as G,E as ee,b as F,B as q,a0 as te,K as Q,o as se,l as ne}from"./index-DXBmCj7V.js";import{u as re}from"./useSuspenseInfiniteQuery-7JvmV8My.js";import{S as ae,c as ie}from"./sheet-DlPfrw9X.js";import{A as le}from"./avatar-1Yn634Bu.js";import{n as oe,t as ce}from"./ChevronUp-BAQXOf5D.js";import{n as W}from"./Tool02-BLokvBBs.js";import{a as ue,M as de}from"./pair-BFIjmC4W.js";import{D as me}from"./chat-context-WkB72QDr.js";import{I as Y}from"./integration-icon-CAyUCGPQ.js";import{u as fe}from"./use-decopilot-events-R9ZDtZrh.js";import{u as xe}from"./use-infinite-scroll-CWWIqkZ2.js";import{g as ge}from"./task-status-DZ2zcnv8.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 Ye(t,e){return e==="requests"?t.calls.toLocaleString():e==="errors"?`${t.errorRate.toFixed(1)}%`:be(t.avgDurationMs)}function Z(t){return(t.run_config??{}).agent?.id??(t.virtual_mcp_id||null)}function J(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 X(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=Z(s);u=J(N,i,n,""),c=X(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(Y,{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=Z(s);u=J(I,i,n,""),c=X(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(Y,{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 Ze(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{Ze as T,Ue as a,Ge as b,be as c,Ye as d,We as e,Oe as f,He as g,Qe as h,je as i,Z as j,X as k,J as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,bu as b,j as c,bo as m,bp as k,e7 as p,eq as F,er as T,bt as M,es as S,bF as A,aF as $,c as P,l as C}from"./index-
|
|
1
|
+
import{r as x,bu as b,j as c,bo as m,bp as k,e7 as p,eq as F,er as T,bt as M,es as S,bF as A,aF as $,c as P,l as C}from"./index-DXBmCj7V.js";var j="Toggle",_=x.forwardRef((a,e)=>{const{pressed:l,defaultPressed:s,onPressedChange:n,...r}=a,[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":a.disabled?"":void 0,...r,ref:e,onClick:k(a.onClick,()=>{a.disabled||o(!t)})})});_.displayName=j;var v="ToggleGroup",[w]=A(v,[T]),I=T(),h=p.forwardRef((a,e)=>{const{type:l,...s}=a;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((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[t,o]=b({prop:l,defaultProp:s??"",onChange:n,caller:v});return c.jsx(z,{scope:a.__scopeToggleGroup,type:"single",value:p.useMemo(()=>t?[t]:[],[t]),onItemActivate:o,onItemDeactivate:p.useCallback(()=>o(""),[o]),children:c.jsx(R,{...r,ref:e})})}),B=p.forwardRef((a,e)=>{const{value:l,defaultValue:s,onValueChange:n=()=>{},...r}=a,[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:a.__scopeToggleGroup,type:"multiple",value:t,onItemActivate:i,onItemDeactivate:d,children:c.jsx(R,{...r,ref:e})})});h.displayName=v;var[O,q]=w(v),R=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,disabled:s=!1,rovingFocus:n=!0,orientation:r,dir:t,loop:o=!0,...i}=a,d=I(l),u=M(t),g={role:"group",dir:u,...i};return c.jsx(O,{scope:l,rovingFocus:n,disabled:s,children:n?c.jsx(S,{asChild:!0,...d,orientation:r,dir:u,loop:o,children:c.jsx(m.div,{...g,ref:e})}):c.jsx(m.div,{...g,ref:e})})}),f="ToggleGroupItem",N=p.forwardRef((a,e)=>{const l=y(f,a.__scopeToggleGroup),s=q(f,a.__scopeToggleGroup),n=I(a.__scopeToggleGroup),r=l.value.includes(a.value),t=s.disabled||a.disabled,o={...a,pressed:r,disabled:t},i=p.useRef(null);return s.rovingFocus?c.jsx(F,{asChild:!0,...n,focusable:!t,active:r,ref:i,children:c.jsx(G,{...o,ref:e})}):c.jsx(G,{...o,ref:e})});N.displayName=f;var G=p.forwardRef((a,e)=>{const{__scopeToggleGroup:l,value:s,...n}=a,r=y(f,l),t={role:"radio","aria-checked":a.pressed,"aria-pressed":void 0},o=r.type==="single"?t:void 0;return c.jsx(_,{...o,...n,ref:e,onPressedChange:i=>{i?r.onItemActivate(s):r.onItemDeactivate(s)}})}),H=h,L=N;const U=$("inline-flex items-center justify-center gap-2 classic:rounded-md compact: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(a){const e=P.c(20);let l,s,n,r,t;e[0]!==a?({className:s,variant:t,size:r,children:l,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);let o;e[6]!==s?(o=C("group/toggle-group flex w-fit items-center classic:rounded-md compact:rounded-lg data-[variant=outline]:shadow-xs",s),e[6]=s,e[7]=o):o=e[7];let i;e[8]!==r||e[9]!==t?(i={variant:t,size:r},e[8]=r,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]!==r||e[16]!==o||e[17]!==d||e[18]!==t?(u=c.jsx(H,{"data-slot":"toggle-group","data-variant":t,"data-size":r,className:o,...n,children:d}),e[14]=n,e[15]=r,e[16]=o,e[17]=d,e[18]=t,e[19]=u):u=e[19],u}function Q(a){const e=P.c(18);let l,s,n,r,t;e[0]!==a?({className:s,children:l,variant:t,size:r,...n}=a,e[0]=a,e[1]=l,e[2]=s,e[3]=n,e[4]=r,e[5]=t):(l=e[1],s=e[2],n=e[3],r=e[4],t=e[5]);const o=x.useContext(E),i=o.variant||t,d=o.size||r;let u;e[6]!==s||e[7]!==o.size||e[8]!==o.variant||e[9]!==r||e[10]!==t?(u=C(U({variant:o.variant||t,size:o.size||r}),"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]=r,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-DQAUOhdv.js → toolbar-icon-button-BIBFTsar.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as d,c as v,Z as g,j as m,B as p}from"./index-
|
|
1
|
+
import{l as d,c as v,Z as g,j as m,B as p}from"./index-DXBmCj7V.js";const x="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 b(a){return d("[transition:background-color_180ms_ease,color_180ms_ease] hover:bg-sidebar-accent hover:text-sidebar-foreground dark:hover:bg-sidebar-accent",x,a?"bg-sidebar-accent text-sidebar-foreground":"text-sidebar-foreground/60")}function h(a){const e=v.c(22);let s,t,o,i,l;e[0]!==a?({active:s,className:t,ref:i,type:l,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=i,e[5]=l):(s=e[1],t=e[2],o=e[3],i=e[4],l=e[5]);const r=l===void 0?"button":l;if(!g()){let c;e[6]!==s||e[7]!==t?(c=d("relative flex size-10 md:size-7 shrink-0 items-center justify-center rounded-md","max-md:[&_svg]:size-5",b(s),t),e[6]=s,e[7]=t,e[8]=c):c=e[8];let f;return e[9]!==o||e[10]!==i||e[11]!==c||e[12]!==r?(f=m.jsx("button",{ref:i,type:r,className:c,...o}),e[9]=o,e[10]=i,e[11]=c,e[12]=r,e[13]=f):f=e[13],f}let n;e[14]!==s||e[15]!==t?(n=d("relative size-10 md:size-7","max-md:[&_svg:not([class*='size-'])]:size-5",b(s),t),e[14]=s,e[15]=t,e[16]=n):n=e[16];let u;return e[17]!==o||e[18]!==i||e[19]!==n||e[20]!==r?(u=m.jsx(p,{ref:i,type:r,variant:"ghost",size:"icon-sm",className:n,...o}),e[17]=o,e[18]=i,e[19]=n,e[20]=r,e[21]=u):u=e[21],u}export{x as I,h as T,b as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,bm as H,j as c,bq as K,bo as W,bp as b,dj as S,bs as J,bn as Q,bu as Z,bv as ee,bx as $,bD as te,bH as oe,bF as re,dc as ne,bI as se,c as j,l as ae}from"./index-
|
|
1
|
+
import{r as i,bm as H,j as c,bq as K,bo as W,bp as b,dj as S,bs as J,bn as Q,bu as Z,bv as ee,bx as $,bD as te,bH as oe,bF as re,dc as ne,bI as se,c as j,l as ae}from"./index-DXBmCj7V.js";import{R as ie}from"./index-U6uQHeCm.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=Q(),f=i.useRef(0),h=l??a.disableHoverableContent,T=d??a.delayDuration,g=i.useRef(!1),[y,m]=Z({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(ee,{...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(K,{asChild:!0,...l,children:c.jsx(W.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}),q=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(J,{asChild:!0,container:n,children:r})})})};q.displayName=I;var C="TooltipContent",U=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(V,{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(V,{...o,ref:s})}),[ve,xe]=O(R,{isInside:!1}),he=ne("TooltipContent"),V=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})})]})})});U.displayName=C;var Y="TooltipArrow",X=i.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=D(t);return xe(Y,t).isInside?null:c.jsx(se,{...n,...r,ref:e})});X.displayName=Y;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=q,_e=U,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,Oe as b,Le as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as _,U as l}from"./index-
|
|
1
|
+
import{v as _,U as l}from"./index-DXBmCj7V.js";let s=!1;const p="report:auth-attempt:",f=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`${p}${e}`}function g(){try{return globalThis.crypto.randomUUID()}catch{return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}}function d(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>f?(window.sessionStorage.removeItem(i(e)),null):n}catch{return null}}function m(e){try{window.sessionStorage.setItem(i(e.domain),JSON.stringify(e))}catch{}}function w(e){const t=d(e);if(t)return t;const n={attempt_id:g(),domain:e,gate_shown_at:Date.now(),...c()};return m(n),n}function y(e,t){const n={...w(e),...t};return m(n),n}function T(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=d(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){s=e}function M(e,t,n){if(_())try{l.capture(e,{...c(),...t,...s?{report_preview:"reviewer"}:{}},n)}catch{}}export{S as a,w as b,M as c,T as d,R as e,h as r,I as s,y as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cP as l,cU as e,bM as h,ap as r,et as b,ao as t,bK as p,bL as d,aI as c,bO as m,eu as v,ev as E,ew as I,ex as w,cr as x,dz as T,ey as z,ez as C,eA as D,c6 as B,eB as O,cI as V,eC as W,eD as $,eE as F,eF as K,cE as J,cs as Z,cB as j,cC as Q,cD as Y,cu as G,cA as X,ct as ee,cM as te}from"./index-
|
|
1
|
+
import{cP as l,cU as e,bM as h,ap as r,et as b,ao as t,bK as p,bL as d,aI as c,bO as m,eu as v,ev as E,ew as I,ex as w,cr as x,dz as T,ey as z,ez as C,eA as D,c6 as B,eB as O,cI as V,eC as W,eD as $,eE as F,eF as K,cE as J,cs as Z,cB as j,cC as Q,cD as Y,cu as G,cA as X,ct as ee,cM as te}from"./index-DXBmCj7V.js";import{P as oe}from"./use-mcp-client-BtmoWWkf.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,a9 as V,l as q,q as X}from"./index-CC7J7MsT.js";import{u as Y}from"./use-copy-CLZ5Gmjm.js";import{M as ee}from"./markdown-tOSThun8.js";import{a as te}from"./Copy01-CrFZhFXo.js";import{c as A,T as z,a as G}from"./tooltip-DSCGYdw1.js";import{q as se}from"./agent-icon-D5Ih-I28.js";import{b as Z}from"./format-time-BtXRrtv4.js";import{b as H}from"./use-entitlements-CsT7-WMV.js";import{y as K}from"./chat-context-CVZ1rNGo.js";function de(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:x}=Y(),m=J(),[r,N]=Q.useState(!1);let k;e[0]!==x||e[1]!==s||e[2]!==l.text?(k=async()=>{X("chat_message_copied",{message_id:s,chars:l.text.length}),await x(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=x,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(ee,{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]!==m?(c=g&&t.jsxs("div",{className:q("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":m("chat.textPart.copyMessage"),children:r?t.jsx(V,{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]=m,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,B=2.5,O=(v-B)/2,U=2*Math.PI*O;function he(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(z,{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 x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=x):x=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=m):m=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:[x,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[m,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(A,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function ue(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(A,{children:[t.jsx(z,{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 x;e[7]!==p||e[8]!==n||e[9]!==a?(x=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]=x):x=e[10];let m;e[11]!==p||e[12]!==a||e[13]!==s?(m=(p||a)&&t.jsxs(A,{children:[t.jsx(z,{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]=m):m=e[14];let r;return e[15]!==i||e[16]!==x||e[17]!==m?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,x,m]}),e[15]=i,e[16]=x,e[17]=m,e[18]=r):r=e[18],r}function pe(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,x=s?.inputTokens??0,m=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=q("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:O,fill:"none",stroke:"currentColor",strokeWidth:B,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=q(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:O,fill:"none",stroke:"currentColor",strokeWidth:B,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(z,{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]!==x||e[40]!==m?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()})]}),e[38]=i,e[39]=x,e[40]=m,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(A,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{de as M,pe as S,he as a,ue as b};
|
|
1
|
+
import{c as P,b as J,r as Q,j as t,a9 as V,l as q,q as X}from"./index-DXBmCj7V.js";import{u as Y}from"./use-copy-Dcx9tDN2.js";import{M as ee}from"./markdown-CqOP0_5N.js";import{a as te}from"./Copy01-wurPIobv.js";import{c as A,T as z,a as G}from"./tooltip-rAdo_tRS.js";import{q as se}from"./agent-icon-Du4foZ5w.js";import{b as Z}from"./format-time-BtXRrtv4.js";import{b as H}from"./use-entitlements-Dx7XqEcC.js";import{y as K}from"./chat-context-WkB72QDr.js";function de(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:x}=Y(),m=J(),[r,N]=Q.useState(!1);let k;e[0]!==x||e[1]!==s||e[2]!==l.text?(k=async()=>{X("chat_message_copied",{message_id:s,chars:l.text.length}),await x(l.text),N(!0),setTimeout(()=>N(!1),2e3)},e[0]=x,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(ee,{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]!==m?(c=g&&t.jsxs("div",{className:q("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":m("chat.textPart.copyMessage"),children:r?t.jsx(V,{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]=m,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,B=2.5,O=(v-B)/2,U=2*Math.PI*O;function he(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(z,{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 x;e[6]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx("p",{className:"text-muted text-[10px] mb-1",children:"tokens"}),e[6]=x):x=e[6];let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("span",{className:"text-muted",children:"in"}),e[7]=m):m=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:[x,t.jsxs("div",{className:"grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5",children:[m,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(A,{children:[i,h]}),e[26]=h,e[27]=i,e[28]=y):y=e[28],y}function ue(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(A,{children:[t.jsx(z,{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 x;e[7]!==p||e[8]!==n||e[9]!==a?(x=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]=x):x=e[10];let m;e[11]!==p||e[12]!==a||e[13]!==s?(m=(p||a)&&t.jsxs(A,{children:[t.jsx(z,{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]=m):m=e[14];let r;return e[15]!==i||e[16]!==x||e[17]!==m?(r=t.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[i,x,m]}),e[15]=i,e[16]=x,e[17]=m,e[18]=r):r=e[18],r}function pe(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,x=s?.inputTokens??0,m=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=q("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:O,fill:"none",stroke:"currentColor",strokeWidth:B,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=q(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:O,fill:"none",stroke:"currentColor",strokeWidth:B,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(z,{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]!==x||e[40]!==m?(M=i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-muted",children:"in"}),t.jsx("span",{className:"text-right tabular-nums",children:x.toLocaleString()}),t.jsx("span",{className:"text-muted",children:"out"}),t.jsx("span",{className:"text-right tabular-nums",children:m.toLocaleString()})]}),e[38]=i,e[39]=x,e[40]=m,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(A,{children:[w,E]}),e[49]=w,e[50]=E,e[51]=W):W=e[51],W}export{de as M,pe as S,he as a,ue as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,a0 as m,a6 as R,K as g,m as D,D as S,aE as y}from"./index-
|
|
1
|
+
import{c as p,a0 as m,a6 as R,K as g,m as D,D as S,aE as y}from"./index-DXBmCj7V.js";const P=["deco","anthropic","openrouter","llmapi","google","openai-compatible"],M=new Set(P);function O(o){return M.has(o)}const A={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"]},v={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"]},L={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"]},T={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"]},K={openrouter:["perplexity/sonar","perplexity/sonar-pro"],deco:["perplexity/sonar","perplexity/sonar-pro"]},w={openrouter:["perplexity/deep-research","perplexity/sonar-pro"],deco:["perplexity/deep-research","perplexity/sonar-pro"]};function _(o){return o.toLowerCase().replace(/[^a-z0-9]/g,"")}function x(o){return _(o).includes("deepresearch")}const q=["sonar","searchpreview","online"];function I(o){const e=_(o);return e.includes("deepresearch")?!1:q.some(t=>e.includes(t))}function C(o){return o.asyncResearch!==!0&&I(o.modelId)}function F(o){return o.asyncResearch===!0||x(o.modelId)||I(o.modelId)}function u(o,e,t,n){for(const i of t){const s=o.find(a=>a.modelId===i);if(s)return{keyId:e,modelId:s.modelId,title:s.title}}for(const i of t){const s=o.find(a=>a.modelId.includes(i));if(s)return{keyId:e,modelId:s.modelId,title:s.title}}if(n){const i=o.find(n);if(i)return{keyId:e,modelId:i.modelId,title:i.title}}return null}function b(o,e){const t={chat:{fast:null,smart:null,thinking:null},image:null,webSearch:null,deepResearch:null};for(const n of o){const i=e[n.id]??[],s=n.providerId;t.chat.fast||(t.chat.fast=u(i,n.id,A[s]??[])),t.chat.smart||(t.chat.smart=u(i,n.id,v[s]??[])),t.chat.thinking||(t.chat.thinking=u(i,n.id,L[s]??[])),t.image||(t.image=u(i,n.id,T[s]??[],a=>a.capabilities?.includes("image")===!0&&!a.modelId.startsWith("openrouter/auto"))),t.webSearch||(t.webSearch=u(i,n.id,K[s]??[],C)),t.deepResearch||(t.deepResearch=u(i,n.id,w[s]??[],F))}return t}function H(o,e){return{queryKey:g.aiProviderKeys(e),staleTime:6e4,queryFn:async()=>await y(o,"AI_PROVIDER_KEY_LIST",{})}}function $(){const o=p.c(7),{org:e}=m(),t=R();let n;o[0]!==e.id?(n=g.aiProviders(e.id),o[0]=e.id,o[1]=n):n=o[1];let i;o[2]!==t?(i=async()=>await t.call("AI_PROVIDERS_LIST",{}),o[2]=t,o[3]=i):i=o[3];let s;o[4]!==n||o[5]!==i?(s={queryKey:n,staleTime:1/0,queryFn:i},o[4]=n,o[5]=i,o[6]=s):s=o[6];const{data:a}=S(s);return a}function N(){const o=p.c(5),{org:e}=m();let t;o[0]!==e.id||o[1]!==e.slug?(t=H(e.slug,e.id),o[0]=e.id,o[1]=e.slug,o[2]=t):t=o[2];const{data:n}=S(t);let i;return o[3]!==n?.keys?(i=n?.keys??[],o[3]=n?.keys,o[4]=i):i=o[4],i}function z(){const o=p.c(2),e=N();let t;return o[0]!==e?(t=e.filter(Q),o[0]=e,o[1]=t):t=o[1],t}function Q(o){return O(o.providerId)}function E(o){const e=p.c(15),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=g.aiProviderModels(t.id,o??""),e[0]=o,e[1]=t.id,e[2]=i):i=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]!==i||e[7]!==s||e[8]!==a?(r={queryKey:i,enabled:s,staleTime:6e4,queryFn:a},e[6]=i,e[7]=s,e[8]=a,e[9]=r):r=e[9];const{data:l,isLoading:c}=D(r);let d;e[10]!==l?.models?(d=l?.models??[],e[10]=l?.models,e[11]=d):d=e[11];const h=!!o&&c;let f;return e[12]!==d||e[13]!==h?(f={models:d,isLoading:h},e[12]=d,e[13]=h,e[14]=f):f=e[14],f}function B(o){const e=p.c(8),t=o[0],n=o[1],i=o[2],{models:s}=E(t?.id),{models:a}=E(n?.id),{models:r}=E(i?.id);let l;if(e[0]!==t||e[1]!==n||e[2]!==i||e[3]!==o||e[4]!==s||e[5]!==a||e[6]!==r){const c={};t?.id&&(c[t.id]=s),n?.id&&(c[n.id]=a),i?.id&&(c[i.id]=r),l=b(o,c),e[0]=t,e[1]=n,e[2]=i,e[3]=o,e[4]=s,e[5]=a,e[6]=r,e[7]=l}else l=e[7];return l}function G(o){const e=p.c(11),{org:t}=m(),n=R();let i;e[0]!==o||e[1]!==t.id?(i=g.aiProviderModels(t.id,o),e[0]=o,e[1]=t.id,e[2]=i):i=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]!==i||e[7]!==s?(a={queryKey:i,staleTime:6e4,queryFn:s},e[6]=i,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,F as b,B as c,$ as d,N as e,O as f,G as g,C as i,b as p,z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,a0 as q,a6 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,a0 as q,a6 as I,K as T,m as Q,o as x,e as y,t as m,z}from"./index-DXBmCj7V.js";import{u as J}from"./use-mcp-client-BtmoWWkf.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:X},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:W},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:H},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:B,onError:Y},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 Y(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to run automation: ${e}`)}function B(t){t.skipped?m.info(`Automation skipped: ${t.skipped}`):t.error?m.error(`Automation failed: ${t.error}`):m.success("Automation triggered")}function H(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to delete automation: ${e}`)}function W(t){const e=t instanceof Error?t.message:String(t);m.error(`Failed to update automation: ${e}`)}function X(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 o}from"./index-
|
|
1
|
+
import{c as T,r as o}from"./index-DXBmCj7V.js";const _=700;function D(s,l,S){const e=T.c(7),a=S?.delay??_,p=S?.isSaving??!1,[f,m]=o.useState(s),[g,y]=o.useState(s),[A,d]=o.useState(!1),t=o.useRef(null);s!==g&&(y(s),!A&&!p&&m(s));let r;e[0]!==a||e[1]!==l?(r=u=>{m(u),d(!0),t.current&&clearTimeout(t.current),t.current=setTimeout(()=>{t.current=null,d(!1),l(u)},a)},e[0]=a,e[1]=l,e[2]=r):r=e[2];const i=r;let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=u=>{m(u),t.current&&clearTimeout(t.current),t.current=null,d(!1)},e[3]=c):c=e[3];const E=c;let n;return e[4]!==f||e[5]!==i?(n=[f,i,E],e[4]=f,e[5]=i,e[6]=n):n=e[6],n}export{D as u};
|