@openhands/agent-canvas 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.windows.md +2 -2
- package/build/assets/{acp-providers-BkL3HWa3.js → acp-providers-D1PORKc0.js} +1 -1
- package/build/assets/active-backend-context-IqOjobNK.js +2 -0
- package/build/assets/{agent-context-settings-Bno1nwPL.js → agent-context-settings-DMrObcIS.js} +1 -1
- package/build/assets/agent-profiles-settings-DororXN5.js +1 -0
- package/build/assets/agent-server-conversation-service.api-DWBe0rbX.js +86 -0
- package/build/assets/{agent-settings-h8hQz-IU.js → agent-settings-BJVk92PU.js} +1 -1
- package/build/assets/agent-settings-COfJsQ1d.js +1 -0
- package/build/assets/{alert-banner-lrK-2_0Y.js → alert-banner-CzZsm7ms.js} +1 -1
- package/build/assets/{api-key-entry-screen-Qsb83VX1.js → api-key-entry-screen-D8Fade_-.js} +1 -1
- package/build/assets/app-settings-CpyGB3AT.js +1 -0
- package/build/assets/{automation-detail-7LkL91j9.js → automation-detail-B-jQ39Mm.js} +1 -1
- package/build/assets/{automation-export-U2QNyNy6.js → automation-export-B1dywoqk.js} +1 -1
- package/build/assets/{automation-setup-route-Bel9_Lue.js → automation-setup-route-C-bWUZBi.js} +1 -1
- package/build/assets/{automation-templates-CRLDssaI.js → automation-templates-DgpCGOJV.js} +1 -1
- package/build/assets/{automations-list-B2iV3ZKW.js → automations-list-DnMxlxsL.js} +1 -1
- package/build/assets/{back-nav-button-B3pYwmUJ.js → back-nav-button-HHEneWMw.js} +1 -1
- package/build/assets/backend-form-modal-DiVrD4Cm.js +1 -0
- package/build/assets/{backend-synced-settings-badge-DB4717Iu.js → backend-synced-settings-badge-7MIjpr8M.js} +1 -1
- package/build/assets/{badge-yR53enbU.js → badge-CpYmcVZV.js} +1 -1
- package/build/assets/{base-modal-3NmIOKDm.js → base-modal-Fnh6Uln9.js} +1 -1
- package/build/assets/bot-BQZx8e2i.js +1 -0
- package/build/assets/{brand-button-CJcwjnfb.js → brand-button-swT1RyO0.js} +1 -1
- package/build/assets/browser-B9AbV6kG.js +7 -0
- package/build/assets/{browser-tab-A94o33Vn.js → browser-tab-zAY12m_i.js} +1 -1
- package/build/assets/{chat-send-button-B8n6-DQA.js → chat-send-button-DsJtivmL.js} +1 -1
- package/build/assets/check-WAFXrrs_.js +1 -0
- package/build/assets/chevron-down-CifNWzme.js +1 -0
- package/build/assets/circle-check-CtnimJa8.js +1 -0
- package/build/assets/{circle-plus-check-toggle-BVzv5EkZ.js → circle-plus-check-toggle-Cuzx55bo.js} +1 -1
- package/build/assets/{cloud-funnel-analytics-CBQdPZl_.js → cloud-funnel-analytics-86CwNdSh.js} +1 -1
- package/build/assets/{combobox-caret-BlmRwiM8.js → combobox-caret-D0fRotFi.js} +1 -1
- package/build/assets/{command-menu-PsRXVBz2.js → command-menu-BXy03FBl.js} +1 -1
- package/build/assets/{condenser-settings-w7L3EFvm.js → condenser-settings-BmZa0ui_.js} +1 -1
- package/build/assets/{confirmation-modal-DAH0XtOp.js → confirmation-modal-BgoN6lbN.js} +1 -1
- package/build/assets/{context-menu-list-item-BQhmFVEK.js → context-menu-list-item-Bq02tc-P.js} +1 -1
- package/build/assets/conversation-BPo8SvLN.js +1 -0
- package/build/assets/conversation-CPCVsCUY.js +90 -0
- package/build/assets/conversation-panel-BPo8SvLN.js +1 -0
- package/build/assets/{conversation-state-store-Bs8gA263.js → conversation-state-store-C5YpjMNy.js} +1 -1
- package/build/assets/conversation-store-Blc5xysY.js +6 -0
- package/build/assets/{conversation-tab-empty-state-C9sfDOlt.js → conversation-tab-empty-state-CMqo_0Bd.js} +1 -1
- package/build/assets/{copy-to-clipboard-button-DatoElj8.js → copy-to-clipboard-button-Cg1pF0xn.js} +1 -1
- package/build/assets/{device-verify-BIjXeW9N.js → device-verify-BfQLgNyq.js} +1 -1
- package/build/assets/{dropdown-classes-zFW7qPSK.js → dropdown-classes-BIqQr5mx.js} +1 -1
- package/build/assets/{entry.client-DzbDyLkV.js → entry.client-CxFjRYqH.js} +2 -2
- package/build/assets/{enum-filter-dropdown-CctILg5t.js → enum-filter-dropdown-C_yV4_bo.js} +1 -1
- package/build/assets/{environment-switch-overlay-Cvmo6clk.js → environment-switch-overlay-Bi4qbh2g.js} +1 -1
- package/build/assets/{extensions-hub-DOmHPGTA.js → extensions-hub-BqUINAhp.js} +1 -1
- package/build/assets/{extensions-navigation-6zU5M1pa.js → extensions-navigation-lraj88Wk.js} +1 -1
- package/build/assets/external-link-CgtpA_a1.js +1 -0
- package/build/assets/{file-text-RecuaId_.js → file-text-DEK4LSVw.js} +1 -1
- package/build/assets/files-tab-DV0L-lFE.js +1 -0
- package/build/assets/{form-control-classes-DLN3Qgub.js → form-control-classes-7yFSQJq_.js} +1 -1
- package/build/assets/format-model-name-BN_rx1Y3.js +1 -0
- package/build/assets/{format-relative-time-DGPQlPx0.js → format-relative-time-DSErAuVr.js} +1 -1
- package/build/assets/git-provider-icon-BvlLAche.js +1 -0
- package/build/assets/{git-repo-dropdown-B7RvO70z.js → git-repo-dropdown-ByMzpNko.js} +1 -1
- package/build/assets/git-repo-dropdown-C6R7hgM8.js +1 -0
- package/build/assets/{highlighted-source-view-CgJfD5VT.js → highlighted-source-view-C_sfncLZ.js} +1 -1
- package/build/assets/{home-DEZaZqYv.js → home-BOrlwLqG.js} +1 -1
- package/build/assets/home-BvMNC6E-.js +1 -0
- package/build/assets/{home-store-D7CjMN_-.js → home-store-CxqsY9Fi.js} +1 -1
- package/build/assets/index-home-BvMNC6E-.js +1 -0
- package/build/assets/info-BRVcJAUg.js +1 -0
- package/build/assets/{install-server-modal-BTwK5lbi.js → install-server-modal-Bl4G1zF4.js} +1 -1
- package/build/assets/{kebab-menu-item-content-C4CkeiJO.js → kebab-menu-item-content-BGoGFEAg.js} +1 -1
- package/build/assets/{launch-DVlx4v9o.js → launch-CkqiSCqi.js} +1 -1
- package/build/assets/{list-todo-CheUtB7F.js → list-todo-DNWlzfaM.js} +1 -1
- package/build/assets/llm-not-configured-banner-DLw_tu-G.js +27 -0
- package/build/assets/llm-settings-B-pkVCrt.js +1 -0
- package/build/assets/llm-settings-DSC0-IQ7.js +1 -0
- package/build/assets/llm-subscription-service-BAdOl5Xx.js +1 -0
- package/build/assets/loader-circle-B47W9XqT.js +1 -0
- package/build/assets/{loading-spinner-CN3riY7k.js → loading-spinner-xhnrGP4Y.js} +1 -1
- package/build/assets/{manage-backends-modal-HNWKLYhq.js → manage-backends-modal-DhGk5mJt.js} +1 -1
- package/build/assets/manifest-653b89aa.js +1 -0
- package/build/assets/{manifest-subpage-layout-D-m-h8_t.js → manifest-subpage-layout-CKWvL2ig.js} +1 -1
- package/build/assets/{map-provider-7Bp2aih5.js → map-provider-Mx8mZuE-.js} +1 -1
- package/build/assets/markdown-renderer-DUmk7pFc.js +8 -0
- package/build/assets/{mcp-gLgPP7AS.js → mcp-DCkvl6K0.js} +2 -2
- package/build/assets/mcp-marketplace-utils-DEbMXlQr.js +1 -0
- package/build/assets/messages-DSXvyc21.js +40 -0
- package/build/assets/{modal-body-duRaxj_K.js → modal-body-gIe21fDv.js} +1 -1
- package/build/assets/{modal-classes-CLEXO6dj.js → modal-classes-D66dlgZ7.js} +1 -1
- package/build/assets/{modal-close-button-D0aT02hs.js → modal-close-button-B6iOGYpI.js} +1 -1
- package/build/assets/{mouse-pointer-click-Px-dXWcS.js → mouse-pointer-click-BYX1Pw5W.js} +1 -1
- package/build/assets/{npm-DRzJF5Zn.js → npm-DLckoeJc.js} +1 -1
- package/build/assets/{onboarding-DSr8hOpk.js → onboarding-D7WDG66N.js} +1 -1
- package/build/assets/{onboarding-modal-C6Euf7N4.js → onboarding-modal-C_xVrFNv.js} +1 -1
- package/build/assets/{organization-service.api-C4GYWwj9.js → organization-service.api-D-s9z18a.js} +1 -1
- package/build/assets/pencil-BGOCPRyu.js +1 -0
- package/build/assets/{planner-tab-CZcguxTK.js → planner-tab-AKaXIIfg.js} +1 -1
- package/build/assets/{plugins-management-service-BmDzOQsd.js → plugins-management-service-wtmY4QQw.js} +1 -1
- package/build/assets/plus-zNEL8rcX.js +1 -0
- package/build/assets/{profiles-service.api-CoLTwjc1.js → profiles-service.api-DCMYxHMi.js} +1 -1
- package/build/assets/{providers-tBzTpz1w.js → providers-BjrtjX4L.js} +1 -1
- package/build/assets/{proxy-DCI9S-LA.js → proxy-9Z_WZggZ.js} +1 -1
- package/build/assets/{puzzle-B3v361yY.js → puzzle-BWLmN8z4.js} +1 -1
- package/build/assets/recommended-automations-launcher-CFlzhu1o.js +1 -0
- package/build/assets/refresh-cw-CXtFWpwv.js +1 -0
- package/build/assets/root-CanxKlNV.css +1 -0
- package/build/assets/root-DkfG_UWR.js +2 -0
- package/build/assets/root-layout-D75LHYhh.js +2 -0
- package/build/assets/{schema-field-zhsVDllR.js → schema-field-OnM5Uob_.js} +1 -1
- package/build/assets/{sdk-section-page-CS4GWn0y.js → sdk-section-page-m5WQm2sy.js} +1 -1
- package/build/assets/search-CycosyjN.js +1 -0
- package/build/assets/{secrets-service-DjgGduXk.js → secrets-service-B26R61C1.js} +1 -1
- package/build/assets/{secrets-settings-f-qahfbi.js → secrets-settings-CbLYCKOX.js} +1 -1
- package/build/assets/{segmented-toggle-SmvsR3jW.js → segmented-toggle-DCspm2U5.js} +1 -1
- package/build/assets/{settings-DQd0xLEw.js → settings-BJQI_iBM.js} +1 -1
- package/build/assets/{settings-dropdown-input-TWIeiG02.js → settings-dropdown-input-BI8V_Nov.js} +1 -1
- package/build/assets/{settings-index-BVwy9JEp.js → settings-index-BiTqJoH7.js} +1 -1
- package/build/assets/{settings-input-D61Vzp9e.js → settings-input-Cz62hWVW.js} +1 -1
- package/build/assets/{settings-list-classes-sE0ASr1s.js → settings-list-classes-z_3FW5H3.js} +1 -1
- package/build/assets/{settings-modal-D6D5ngET.js → settings-modal-BIrIVn97.js} +1 -1
- package/build/assets/{settings-service.api-DZp7E7A9.js → settings-service.api--rJmnuLa.js} +1 -1
- package/build/assets/{settings-switch-Drt-rF5s.js → settings-switch-BRsSI8Vs.js} +1 -1
- package/build/assets/{settings-utils-gw2ppAvw.js → settings-utils-Ba7vel6T.js} +1 -1
- package/build/assets/shared-conversation-CQK_PqHx.js +1 -0
- package/build/assets/shield-check-T3JsDJiM.js +1 -0
- package/build/assets/{sidebar-layout-Dxg6zc2K.js → sidebar-layout-Bhi3hVcu.js} +1 -1
- package/build/assets/{sidebar-mobile-menu-toggle-OoZBHxaT.js → sidebar-mobile-menu-toggle-YWJNRN4p.js} +1 -1
- package/build/assets/{sidebar-nav-link-CxLoG-dG.js → sidebar-nav-link-BSUlY5Ml.js} +1 -1
- package/build/assets/{sidebar-store-BJeYY-E9.js → sidebar-store-Cl1cUv_F.js} +1 -1
- package/build/assets/{skill-card-pill-row-B_BYBONu.js → skill-card-pill-row-BXz8L8Rn.js} +1 -1
- package/build/assets/{skill-icon-badge-CN41Hy9l.js → skill-icon-badge-QgfKv31M.js} +1 -1
- package/build/assets/{skill-scope-B1Per5XI.js → skill-scope-Dc3JPW-8.js} +1 -1
- package/build/assets/{skills-plugins-B3AO6sMz.js → skills-plugins-CpTV27n3.js} +1 -1
- package/build/assets/{skills-settings-DmmgJ6CT.js → skills-settings-CSW__IW4.js} +1 -1
- package/build/assets/{sparkles-g7y3r-Ut.js → sparkles-TJ0mdECe.js} +1 -1
- package/build/assets/{styled-tooltip-C5C07RQC.js → styled-tooltip-BUMSbgrF.js} +1 -1
- package/build/assets/{task-list-tab-C19Q_JNf.js → task-list-tab-mAHMOkUz.js} +1 -1
- package/build/assets/{terminal-CbuMRYal.js → terminal-BzxBaHx2.js} +1 -1
- package/build/assets/{toggle-switch-CIioisto.js → toggle-switch-O5v1FgxW.js} +1 -1
- package/build/assets/trash-2-C0xNVp9c.js +1 -0
- package/build/assets/{typography-D9tiHct7.js → typography-NOKSk9_R.js} +1 -1
- package/build/assets/usage-tab-tEmVN0KD.js +1 -0
- package/build/assets/{use-acp-credential-form-DJmmJKMo.js → use-acp-credential-form-BPNi0Zbm.js} +1 -1
- package/build/assets/{use-activate-agent-profile-CeFfYwu_.js → use-activate-agent-profile-D9YRQPTF.js} +1 -1
- package/build/assets/{use-agent-profiles-BHLkLbRR.js → use-agent-profiles-Cb2zUW3l.js} +1 -1
- package/build/assets/{use-can-manage-org-profiles-Bu4y8gSx.js → use-can-manage-org-profiles-Dxzq2AEd.js} +1 -1
- package/build/assets/{use-cloud-current-user-id-QD9x3ySO.js → use-cloud-current-user-id-Co2eJk2A.js} +1 -1
- package/build/assets/{use-config-CPwqciXN.js → use-config-DKAMiI5R.js} +1 -1
- package/build/assets/use-create-conversation-CoHTiCbI.js +1 -0
- package/build/assets/{use-create-secret-BsOfOLvg.js → use-create-secret-2zBlCDsF.js} +1 -1
- package/build/assets/use-is-authed-C52-ivnB.js +1 -0
- package/build/assets/{use-is-creating-conversation-CVefC9Ns.js → use-is-creating-conversation-DdaAE6jV.js} +1 -1
- package/build/assets/{use-launch-skill-in-chat-BcKNjxxd.js → use-launch-skill-in-chat-COnDpxCQ.js} +1 -1
- package/build/assets/use-llm-profiles-C_BHue65.js +1 -0
- package/build/assets/{use-manifest-capabilities-DBYPjyV6.js → use-manifest-capabilities-DPrQsaPP.js} +1 -1
- package/build/assets/{use-onboarding-completion-CtNJxkXG.js → use-onboarding-completion-CCE8OQgV.js} +1 -1
- package/build/assets/{use-plugins-marketplace-ZEA-gyM9.js → use-plugins-marketplace-CEiak69h.js} +1 -1
- package/build/assets/use-save-agent-profile-DK9idD6a.js +1 -0
- package/build/assets/{use-save-settings-pSjRhD_m.js → use-save-settings-DNmnbG6f.js} +1 -1
- package/build/assets/{use-settings-nav-items-CQgkxUbV.js → use-settings-nav-items-BlFL7YhM.js} +1 -1
- package/build/assets/{use-settings-BHWsOcIG.js → use-settings-wCwPaSIv.js} +1 -1
- package/build/assets/{use-tracking-CGCsBWhg.js → use-tracking-CVwPmhlX.js} +1 -1
- package/build/assets/{use-user-conversation-DRfEU8x0.js → use-user-conversation-DVtfg0B_.js} +1 -1
- package/build/assets/{useInfiniteQuery-DbCv0Jzd.js → useInfiniteQuery-p1xq35r2.js} +1 -1
- package/build/assets/{useMutation-ChpkYxI5.js → useMutation-BFDQmgk9.js} +1 -1
- package/build/assets/{useQueries-Cjv3E8_1.js → useQueries-DF1NAAeC.js} +1 -1
- package/build/assets/{useQuery-BCnzy4LX.js → useQuery-DRv--6bK.js} +1 -1
- package/build/assets/utils-zxEjKE70.js +1 -0
- package/build/assets/{vendor~browser-DJ1pl_wn.js → vendor~browser-B-fae1JU.js} +14 -14
- package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kv3pap4j-oGvLV0dO.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kv3pap4j-B8i84bh4.js} +3 -3
- package/build/assets/{vendor~files-tab-C87pjSpi.js → vendor~files-tab-D9wR9yM2.js} +1 -1
- package/build/assets/vendor~index-home~home~conversation-panel~conversation-Ipoe6hvY.js +13 -0
- package/build/assets/vendor~root-layout-C-IgVx6e.js +1 -0
- package/build/assets/{vendor~root-layout~conversation-panel~conversation-DEzjR4K7.js → vendor~root-layout~conversation-panel~conversation-Dhd_I4H4.js} +1 -1
- package/build/assets/{vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-U-xdsAEx.js → vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-Cc0f9kPP.js} +1 -1
- package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CQR5Sa0H.js → vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-d7svw-BB.js} +1 -1
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~gxu4j2ea-Cwhh3zLe.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~gxu4j2ea-D5DWZVc7.js} +1 -1
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-CuQhkiS7.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-4WsUP-tz.js} +2 -2
- package/build/assets/{verification-settings-BItwt998.js → verification-settings-B8UMQ7MG.js} +1 -1
- package/build/assets/{wrench-B1_H-tL1.js → wrench-DIka3hCq.js} +1 -1
- package/build/assets/x-BWKA2Ver.js +1 -0
- package/build/assets/zap-DHddTPc0.js +1 -0
- package/build/index.html +4 -4
- package/build/locales/ar/openhands.json +28 -1
- package/build/locales/ca/openhands.json +28 -1
- package/build/locales/de/openhands.json +28 -1
- package/build/locales/en/openhands.json +28 -1
- package/build/locales/es/openhands.json +28 -1
- package/build/locales/fr/openhands.json +28 -1
- package/build/locales/it/openhands.json +28 -1
- package/build/locales/ja/openhands.json +28 -1
- package/build/locales/ko-KR/openhands.json +28 -1
- package/build/locales/no/openhands.json +28 -1
- package/build/locales/pt/openhands.json +28 -1
- package/build/locales/tr/openhands.json +28 -1
- package/build/locales/uk/openhands.json +28 -1
- package/build/locales/zh-CN/openhands.json +28 -1
- package/build/locales/zh-TW/openhands.json +28 -1
- package/config/defaults.json +3 -3
- package/dist/api/agent-server-compatibility.cjs +1 -1
- package/dist/api/agent-server-compatibility.cjs.map +1 -1
- package/dist/api/agent-server-compatibility.js +1 -1
- package/dist/api/agent-server-compatibility.js.map +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.cjs +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.cjs.map +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.d.ts +24 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.js +116 -97
- package/dist/api/conversation-service/agent-server-conversation-service.api.js.map +1 -1
- package/dist/api/llm-balance-service.cjs +2 -0
- package/dist/api/llm-balance-service.cjs.map +1 -0
- package/dist/api/llm-balance-service.d.ts +33 -0
- package/dist/api/llm-balance-service.js +53 -0
- package/dist/api/llm-balance-service.js.map +1 -0
- package/dist/api/llm-subscription-service.cjs +1 -1
- package/dist/api/llm-subscription-service.cjs.map +1 -1
- package/dist/api/llm-subscription-service.js +42 -34
- package/dist/api/llm-subscription-service.js.map +1 -1
- package/dist/components/conversation/index.cjs +1 -1
- package/dist/components/conversation/index.d.ts +0 -1
- package/dist/components/conversation/index.js +0 -1
- package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.cjs +1 -1
- package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.js +1 -1
- package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.js +24 -23
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.js.map +1 -1
- package/dist/components/conversation-events/chat/group-events.cjs +1 -1
- package/dist/components/conversation-events/chat/group-events.cjs.map +1 -1
- package/dist/components/conversation-events/chat/group-events.d.ts +3 -3
- package/dist/components/conversation-events/chat/group-events.js +27 -26
- package/dist/components/conversation-events/chat/group-events.js.map +1 -1
- package/dist/components/features/automations/recommended-automations-section.d.ts +7 -0
- package/dist/components/features/chat/components/chat-input-actions.cjs +1 -1
- package/dist/components/features/chat/components/chat-input-actions.cjs.map +1 -1
- package/dist/components/features/chat/components/chat-input-actions.js +123 -118
- package/dist/components/features/chat/components/chat-input-actions.js.map +1 -1
- package/dist/components/features/chat/components/chat-input-grip.cjs +1 -1
- package/dist/components/features/chat/components/chat-input-grip.cjs.map +1 -1
- package/dist/components/features/chat/components/chat-input-grip.d.ts +2 -1
- package/dist/components/features/chat/components/chat-input-grip.js +7 -7
- package/dist/components/features/chat/components/chat-input-grip.js.map +1 -1
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.cjs +1 -1
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.cjs.map +1 -1
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.js +61 -60
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.js.map +1 -1
- package/dist/components/features/chat/components/context-window-meter.cjs +2 -0
- package/dist/components/features/chat/components/context-window-meter.cjs.map +1 -0
- package/dist/components/features/chat/components/context-window-meter.d.ts +2 -0
- package/dist/components/features/chat/components/context-window-meter.js +131 -0
- package/dist/components/features/chat/components/context-window-meter.js.map +1 -0
- package/dist/components/features/chat/components/context-window-ring.cjs +2 -0
- package/dist/components/features/chat/components/context-window-ring.cjs.map +1 -0
- package/dist/components/features/chat/components/context-window-ring.d.ts +26 -0
- package/dist/components/features/chat/components/context-window-ring.js +45 -0
- package/dist/components/features/chat/components/context-window-ring.js.map +1 -0
- package/dist/components/features/chat/custom-chat-input.cjs +1 -1
- package/dist/components/features/chat/custom-chat-input.cjs.map +1 -1
- package/dist/components/features/chat/custom-chat-input.js +68 -67
- package/dist/components/features/chat/custom-chat-input.js.map +1 -1
- package/dist/components/features/chat/model-messages.cjs +1 -1
- package/dist/components/features/chat/model-messages.cjs.map +1 -1
- package/dist/components/features/chat/model-messages.js +26 -25
- package/dist/components/features/chat/model-messages.js.map +1 -1
- package/dist/components/features/chat/path-component.cjs +1 -1
- package/dist/components/features/chat/path-component.cjs.map +1 -1
- package/dist/components/features/chat/path-component.js +9 -6
- package/dist/components/features/chat/path-component.js.map +1 -1
- package/dist/components/features/chat/plan-preview.cjs +1 -1
- package/dist/components/features/chat/plan-preview.js +4 -4
- package/dist/components/features/chat/tool-visualizers/file-editor/file-editor.cjs +1 -1
- package/dist/components/features/chat/tool-visualizers/file-editor/file-editor.cjs.map +1 -1
- package/dist/components/features/chat/tool-visualizers/file-editor/file-editor.d.ts +0 -8
- package/dist/components/features/chat/tool-visualizers/file-editor/file-editor.js +92 -50
- package/dist/components/features/chat/tool-visualizers/file-editor/file-editor.js.map +1 -1
- package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.cjs +1 -1
- package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.cjs.map +1 -1
- package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.d.ts +7 -2
- package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.js +15 -9
- package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.js.map +1 -1
- package/dist/components/features/chat/tool-visualizers/primitives/markdown-file-preview.cjs +2 -0
- package/dist/components/features/chat/tool-visualizers/primitives/markdown-file-preview.cjs.map +1 -0
- package/dist/components/features/chat/tool-visualizers/primitives/markdown-file-preview.d.ts +20 -0
- package/dist/components/features/chat/tool-visualizers/primitives/markdown-file-preview.js +76 -0
- package/dist/components/features/chat/tool-visualizers/primitives/markdown-file-preview.js.map +1 -0
- package/dist/components/features/controls/server-status-context-menu.cjs +1 -1
- package/dist/components/features/controls/server-status-context-menu.cjs.map +1 -1
- package/dist/components/features/controls/server-status-context-menu.d.ts +5 -3
- package/dist/components/features/controls/server-status-context-menu.js +8 -8
- package/dist/components/features/controls/server-status-context-menu.js.map +1 -1
- package/dist/components/features/conversation/conversation-name-context-menu.cjs +1 -1
- package/dist/components/features/conversation/conversation-name-context-menu.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-name-context-menu.js +58 -61
- package/dist/components/features/conversation/conversation-name-context-menu.js.map +1 -1
- package/dist/components/features/conversation/conversation-name-with-status.cjs +1 -1
- package/dist/components/features/conversation/conversation-name-with-status.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-name-with-status.js +74 -46
- package/dist/components/features/conversation/conversation-name-with-status.js.map +1 -1
- package/dist/components/features/conversation/conversation-name.cjs +1 -1
- package/dist/components/features/conversation/conversation-name.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-name.js +69 -71
- package/dist/components/features/conversation/conversation-name.js.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js +7 -6
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js +92 -86
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js +81 -71
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js.map +1 -1
- package/dist/components/features/conversation/metrics-modal/cost-section.cjs +1 -1
- package/dist/components/features/conversation/metrics-modal/cost-section.cjs.map +1 -1
- package/dist/components/features/conversation/metrics-modal/cost-section.js +6 -6
- package/dist/components/features/conversation/metrics-modal/cost-section.js.map +1 -1
- package/dist/components/features/conversation/metrics-modal/metric-row.cjs +1 -1
- package/dist/components/features/conversation/metrics-modal/metric-row.cjs.map +1 -1
- package/dist/components/features/conversation/metrics-modal/metric-row.d.ts +2 -1
- package/dist/components/features/conversation/metrics-modal/metric-row.js +10 -9
- package/dist/components/features/conversation/metrics-modal/metric-row.js.map +1 -1
- package/dist/components/features/conversation/metrics-modal/usage-section.cjs +1 -1
- package/dist/components/features/conversation/metrics-modal/usage-section.cjs.map +1 -1
- package/dist/components/features/conversation/metrics-modal/usage-section.js +2 -1
- package/dist/components/features/conversation/metrics-modal/usage-section.js.map +1 -1
- package/dist/components/features/conversation/usage-panel/compact-context-button.cjs +2 -0
- package/dist/components/features/conversation/usage-panel/compact-context-button.cjs.map +1 -0
- package/dist/components/features/conversation/usage-panel/compact-context-button.d.ts +16 -0
- package/dist/components/features/conversation/usage-panel/compact-context-button.js +59 -0
- package/dist/components/features/conversation/usage-panel/compact-context-button.js.map +1 -0
- package/dist/components/features/conversation/usage-panel/context-meter.cjs +2 -0
- package/dist/components/features/conversation/usage-panel/context-meter.cjs.map +1 -0
- package/dist/components/features/conversation/usage-panel/context-meter.d.ts +19 -0
- package/dist/components/features/conversation/usage-panel/context-meter.js +46 -0
- package/dist/components/features/conversation/usage-panel/context-meter.js.map +1 -0
- package/dist/components/features/conversation/usage-panel/provider-balance-card.cjs +2 -0
- package/dist/components/features/conversation/usage-panel/provider-balance-card.cjs.map +1 -0
- package/dist/components/features/conversation/usage-panel/provider-balance-card.d.ts +7 -0
- package/dist/components/features/conversation/usage-panel/provider-balance-card.js +57 -0
- package/dist/components/features/conversation/usage-panel/provider-balance-card.js.map +1 -0
- package/dist/components/features/conversation/usage-panel/usage-panel.cjs +2 -0
- package/dist/components/features/conversation/usage-panel/usage-panel.cjs.map +1 -0
- package/dist/components/features/conversation/usage-panel/usage-panel.d.ts +9 -0
- package/dist/components/features/conversation/usage-panel/usage-panel.js +68 -0
- package/dist/components/features/conversation/usage-panel/usage-panel.js.map +1 -0
- package/dist/components/features/conversation-panel/budget-display.cjs +1 -1
- package/dist/components/features/conversation-panel/budget-display.cjs.map +1 -1
- package/dist/components/features/conversation-panel/budget-display.js +10 -13
- package/dist/components/features/conversation-panel/budget-display.js.map +1 -1
- package/dist/components/features/conversation-panel/budget-progress-bar.cjs +1 -1
- package/dist/components/features/conversation-panel/budget-progress-bar.cjs.map +1 -1
- package/dist/components/features/conversation-panel/budget-progress-bar.js +2 -2
- package/dist/components/features/conversation-panel/budget-progress-bar.js.map +1 -1
- package/dist/components/features/conversation-panel/confirm-archive-modal.cjs +2 -0
- package/dist/components/features/conversation-panel/confirm-archive-modal.cjs.map +1 -0
- package/dist/components/features/conversation-panel/confirm-archive-modal.d.ts +8 -0
- package/dist/components/features/conversation-panel/confirm-archive-modal.js +48 -0
- package/dist/components/features/conversation-panel/confirm-archive-modal.js.map +1 -0
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.d.ts +3 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.js +39 -34
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.d.ts +3 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.js +104 -80
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.d.ts +7 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js +28 -20
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.d.ts +9 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.js +94 -84
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-list.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-list.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-list.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-list.js +32 -31
- package/dist/components/features/conversation-panel/conversation-group-folder-list.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-row.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-row.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-row.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-group-folder-row.js +27 -26
- package/dist/components/features/conversation-panel/conversation-group-folder-row.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.d.ts +3 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js +116 -106
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.d.ts +27 -0
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js +69 -46
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-panel.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel.js +230 -165
- package/dist/components/features/conversation-panel/conversation-panel.js.map +1 -1
- package/dist/components/features/files-tab/file-content-viewer.cjs +1 -1
- package/dist/components/features/files-tab/file-content-viewer.cjs.map +1 -1
- package/dist/components/features/files-tab/file-content-viewer.js +22 -25
- package/dist/components/features/files-tab/file-content-viewer.js.map +1 -1
- package/dist/components/features/markdown/markdown-table-scroll.cjs +1 -1
- package/dist/components/features/markdown/markdown-table-scroll.cjs.map +1 -1
- package/dist/components/features/markdown/markdown-table-scroll.js +2 -2
- package/dist/components/features/markdown/markdown-table-scroll.js.map +1 -1
- package/dist/components/features/settings/llm-profiles/profile-row.cjs +1 -1
- package/dist/components/features/settings/llm-profiles/profile-row.js +1 -0
- package/dist/components/shared/buttons/conversation-confirmation-buttons.cjs +1 -1
- package/dist/components/shared/buttons/conversation-confirmation-buttons.cjs.map +1 -1
- package/dist/components/shared/buttons/conversation-confirmation-buttons.js +2 -2
- package/dist/components/shared/buttons/conversation-confirmation-buttons.js.map +1 -1
- package/dist/components/shared/modals/confirmation-modals/base-modal.cjs +1 -1
- package/dist/components/shared/modals/confirmation-modals/base-modal.cjs.map +1 -1
- package/dist/components/shared/modals/confirmation-modals/base-modal.js +1 -1
- package/dist/components/shared/modals/confirmation-modals/base-modal.js.map +1 -1
- package/dist/components/shared/modals/settings/model-selector.cjs +1 -1
- package/dist/components/shared/modals/settings/model-selector.cjs.map +1 -1
- package/dist/components/shared/modals/settings/model-selector.js +154 -98
- package/dist/components/shared/modals/settings/model-selector.js.map +1 -1
- package/dist/config/defaults.cjs +1 -1
- package/dist/config/defaults.cjs.map +1 -1
- package/dist/config/defaults.js +3 -3
- package/dist/config/defaults.js.map +1 -1
- package/dist/constants/llm-balance.cjs +2 -0
- package/dist/constants/llm-balance.cjs.map +1 -0
- package/dist/constants/llm-balance.d.ts +13 -0
- package/dist/constants/llm-balance.js +6 -0
- package/dist/constants/llm-balance.js.map +1 -0
- package/dist/contexts/conversation-websocket-context.cjs +2 -2
- package/dist/contexts/conversation-websocket-context.cjs.map +1 -1
- package/dist/contexts/conversation-websocket-context.js +217 -209
- package/dist/contexts/conversation-websocket-context.js.map +1 -1
- package/dist/hooks/chat/use-grip-resize.cjs +1 -1
- package/dist/hooks/chat/use-grip-resize.cjs.map +1 -1
- package/dist/hooks/chat/use-grip-resize.d.ts +1 -0
- package/dist/hooks/chat/use-grip-resize.js +39 -30
- package/dist/hooks/chat/use-grip-resize.js.map +1 -1
- package/dist/hooks/chat/use-slash-command.cjs +1 -1
- package/dist/hooks/chat/use-slash-command.cjs.map +1 -1
- package/dist/hooks/chat/use-slash-command.js +61 -60
- package/dist/hooks/chat/use-slash-command.js.map +1 -1
- package/dist/hooks/mutation/use-condense-conversation.cjs +2 -0
- package/dist/hooks/mutation/use-condense-conversation.cjs.map +1 -0
- package/dist/hooks/mutation/use-condense-conversation.d.ts +12 -0
- package/dist/hooks/mutation/use-condense-conversation.js +17 -0
- package/dist/hooks/mutation/use-condense-conversation.js.map +1 -0
- package/dist/hooks/mutation/use-create-conversation.cjs +1 -1
- package/dist/hooks/mutation/use-create-conversation.cjs.map +1 -1
- package/dist/hooks/mutation/use-create-conversation.js +30 -21
- package/dist/hooks/mutation/use-create-conversation.js.map +1 -1
- package/dist/hooks/mutation/use-new-conversation-command.cjs +1 -1
- package/dist/hooks/mutation/use-new-conversation-command.cjs.map +1 -1
- package/dist/hooks/mutation/use-new-conversation-command.js +1 -1
- package/dist/hooks/mutation/use-new-conversation-command.js.map +1 -1
- package/dist/hooks/query/use-conversation-metrics.cjs +1 -1
- package/dist/hooks/query/use-conversation-metrics.cjs.map +1 -1
- package/dist/hooks/query/use-conversation-metrics.js +1 -1
- package/dist/hooks/query/use-conversation-metrics.js.map +1 -1
- package/dist/hooks/query/use-llm-balance.cjs +2 -0
- package/dist/hooks/query/use-llm-balance.cjs.map +1 -0
- package/dist/hooks/query/use-llm-balance.d.ts +10 -0
- package/dist/hooks/query/use-llm-balance.js +24 -0
- package/dist/hooks/query/use-llm-balance.js.map +1 -0
- package/dist/hooks/query/use-search-providers.cjs +1 -1
- package/dist/hooks/query/use-search-providers.cjs.map +1 -1
- package/dist/hooks/query/use-search-providers.js +1 -1
- package/dist/hooks/query/use-search-providers.js.map +1 -1
- package/dist/hooks/use-await-context-compaction.cjs +2 -0
- package/dist/hooks/use-await-context-compaction.cjs.map +1 -0
- package/dist/hooks/use-await-context-compaction.d.ts +38 -0
- package/dist/hooks/use-await-context-compaction.js +61 -0
- package/dist/hooks/use-await-context-compaction.js.map +1 -0
- package/dist/hooks/use-compact-context-action.cjs +2 -0
- package/dist/hooks/use-compact-context-action.cjs.map +1 -0
- package/dist/hooks/use-compact-context-action.d.ts +10 -0
- package/dist/hooks/use-compact-context-action.js +61 -0
- package/dist/hooks/use-compact-context-action.js.map +1 -0
- package/dist/hooks/use-context-window-usage.cjs +2 -0
- package/dist/hooks/use-context-window-usage.cjs.map +1 -0
- package/dist/hooks/use-context-window-usage.d.ts +5 -0
- package/dist/hooks/use-context-window-usage.js +20 -0
- package/dist/hooks/use-context-window-usage.js.map +1 -0
- package/dist/hooks/use-conversation-name-context-menu.cjs +1 -1
- package/dist/hooks/use-conversation-name-context-menu.cjs.map +1 -1
- package/dist/hooks/use-conversation-name-context-menu.d.ts +0 -3
- package/dist/hooks/use-conversation-name-context-menu.js +54 -57
- package/dist/hooks/use-conversation-name-context-menu.js.map +1 -1
- package/dist/hooks/use-drag-resize.cjs +1 -1
- package/dist/hooks/use-drag-resize.cjs.map +1 -1
- package/dist/hooks/use-drag-resize.d.ts +8 -0
- package/dist/hooks/use-drag-resize.js +21 -18
- package/dist/hooks/use-drag-resize.js.map +1 -1
- package/dist/hooks/use-live-conversation-metrics.cjs +2 -0
- package/dist/hooks/use-live-conversation-metrics.cjs.map +1 -0
- package/dist/hooks/use-live-conversation-metrics.d.ts +18 -0
- package/dist/hooks/use-live-conversation-metrics.js +37 -0
- package/dist/hooks/use-live-conversation-metrics.js.map +1 -0
- package/dist/hooks/use-select-conversation-tab.cjs +1 -1
- package/dist/hooks/use-select-conversation-tab.cjs.map +1 -1
- package/dist/hooks/use-select-conversation-tab.js +2 -2
- package/dist/hooks/use-select-conversation-tab.js.map +1 -1
- package/dist/i18n/declaration.cjs +1 -1
- package/dist/i18n/declaration.cjs.map +1 -1
- package/dist/i18n/declaration.d.ts +27 -0
- package/dist/i18n/declaration.js +1 -1
- package/dist/i18n/declaration.js.map +1 -1
- package/dist/i18n/translation.cjs +2 -2
- package/dist/i18n/translation.cjs.map +1 -1
- package/dist/i18n/translation.js +474 -15
- package/dist/i18n/translation.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +28 -29
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.js +0 -1
- package/dist/locales/ar/openhands.json +28 -1
- package/dist/locales/ca/openhands.json +28 -1
- package/dist/locales/de/openhands.json +28 -1
- package/dist/locales/en/openhands.json +28 -1
- package/dist/locales/es/openhands.json +28 -1
- package/dist/locales/fr/openhands.json +28 -1
- package/dist/locales/it/openhands.json +28 -1
- package/dist/locales/ja/openhands.json +28 -1
- package/dist/locales/ko-KR/openhands.json +28 -1
- package/dist/locales/no/openhands.json +28 -1
- package/dist/locales/pt/openhands.json +28 -1
- package/dist/locales/tr/openhands.json +28 -1
- package/dist/locales/uk/openhands.json +28 -1
- package/dist/locales/zh-CN/openhands.json +28 -1
- package/dist/locales/zh-TW/openhands.json +28 -1
- package/dist/node_modules/@microlink/react-json-view/dist/main.cjs +5 -5
- package/dist/node_modules/@microlink/react-json-view/dist/main.cjs.map +1 -1
- package/dist/node_modules/@microlink/react-json-view/dist/main.js +5194 -5187
- package/dist/node_modules/@microlink/react-json-view/dist/main.js.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.cjs +2 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.cjs.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.js +21 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.js.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/hooks-client.cjs +2 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/hooks-client.cjs.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/hooks-client.js +22 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/hooks-client.js.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/meta-profiles-client.cjs +2 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/meta-profiles-client.cjs.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/meta-profiles-client.js +33 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/meta-profiles-client.js.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/openhands-client.cjs +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/openhands-client.cjs.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/openhands-client.js +56 -22
- package/dist/node_modules/@openhands/typescript-client/dist/client/openhands-client.js.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/profiles-client.cjs +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/profiles-client.cjs.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/profiles-client.js +3 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/profiles-client.js.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/shared-client.cjs +2 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/shared-client.cjs.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/shared-client.js +31 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/shared-client.js.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/sub-agents-client.cjs +2 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/sub-agents-client.cjs.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/sub-agents-client.js +21 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/sub-agents-client.js.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/tool-client.cjs +2 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/tool-client.cjs.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/tool-client.js +21 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/tool-client.js.map +1 -0
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/local-conversation.cjs.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/local-conversation.js.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.cjs +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.cjs.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.js +9 -5
- package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.js.map +1 -1
- package/dist/node_modules/i18next-http-backend/esm/index.cjs +1 -1
- package/dist/node_modules/i18next-http-backend/esm/index.cjs.map +1 -1
- package/dist/node_modules/i18next-http-backend/esm/index.js +2 -2
- package/dist/node_modules/i18next-http-backend/esm/index.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/archive-restore.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/archive-restore.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/archive-restore.js +31 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/archive-restore.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/archive.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/archive.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/archive.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/archive.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minimize.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minimize.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minimize.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/minimize.js.map +1 -0
- package/dist/node_modules/zustand/esm/middleware.cjs +3 -3
- package/dist/node_modules/zustand/esm/middleware.cjs.map +1 -1
- package/dist/node_modules/zustand/esm/middleware.js +33 -31
- package/dist/node_modules/zustand/esm/middleware.js.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +17 -16
- package/dist/package.js.map +1 -1
- package/dist/routes/app-settings.cjs +1 -1
- package/dist/routes/app-settings.cjs.map +1 -1
- package/dist/routes/app-settings.js +94 -93
- package/dist/routes/app-settings.js.map +1 -1
- package/dist/routes/llm-settings.cjs +1 -1
- package/dist/routes/llm-settings.cjs.map +1 -1
- package/dist/routes/llm-settings.js +131 -119
- package/dist/routes/llm-settings.js.map +1 -1
- package/dist/routes/usage-tab.cjs +2 -0
- package/dist/routes/usage-tab.cjs.map +1 -0
- package/dist/routes/usage-tab.d.ts +2 -0
- package/dist/routes/usage-tab.js +10 -0
- package/dist/routes/usage-tab.js.map +1 -0
- package/dist/services/child-conversation-launch.cjs +1 -1
- package/dist/services/child-conversation-launch.cjs.map +1 -1
- package/dist/services/child-conversation-launch.js +11 -5
- package/dist/services/child-conversation-launch.js.map +1 -1
- package/dist/stores/archived-conversations-store.cjs +2 -0
- package/dist/stores/archived-conversations-store.cjs.map +1 -0
- package/dist/stores/archived-conversations-store.d.ts +24 -0
- package/dist/stores/archived-conversations-store.js +33 -0
- package/dist/stores/archived-conversations-store.js.map +1 -0
- package/dist/stores/conversation-panel-preferences-store.cjs +1 -1
- package/dist/stores/conversation-panel-preferences-store.cjs.map +1 -1
- package/dist/stores/conversation-panel-preferences-store.d.ts +3 -0
- package/dist/stores/conversation-panel-preferences-store.js +4 -0
- package/dist/stores/conversation-panel-preferences-store.js.map +1 -1
- package/dist/stores/conversation-store.cjs.map +1 -1
- package/dist/stores/conversation-store.d.ts +1 -1
- package/dist/stores/conversation-store.js.map +1 -1
- package/dist/stores/metrics-store.cjs +1 -1
- package/dist/stores/metrics-store.cjs.map +1 -1
- package/dist/stores/metrics-store.d.ts +1 -0
- package/dist/stores/metrics-store.js +7 -4
- package/dist/stores/metrics-store.js.map +1 -1
- package/dist/types/agent-server/core/events/condensation-event.d.ts +3 -0
- package/dist/types/agent-server/core/events/conversation-state-event.d.ts +4 -6
- package/dist/types/agent-server/type-guards.cjs +1 -1
- package/dist/types/agent-server/type-guards.cjs.map +1 -1
- package/dist/types/agent-server/type-guards.d.ts +5 -0
- package/dist/types/agent-server/type-guards.js +3 -3
- package/dist/types/agent-server/type-guards.js.map +1 -1
- package/dist/utils/conversation-local-storage.cjs +1 -1
- package/dist/utils/conversation-local-storage.cjs.map +1 -1
- package/dist/utils/conversation-local-storage.js +2 -1
- package/dist/utils/conversation-local-storage.js.map +1 -1
- package/dist/utils/format-model-name.cjs +1 -1
- package/dist/utils/format-model-name.cjs.map +1 -1
- package/dist/utils/format-model-name.d.ts +11 -0
- package/dist/utils/format-model-name.js +11 -3
- package/dist/utils/format-model-name.js.map +1 -1
- package/dist/utils/format-token-count.cjs +2 -0
- package/dist/utils/format-token-count.cjs.map +1 -0
- package/dist/utils/format-token-count.d.ts +3 -0
- package/dist/utils/format-token-count.js +19 -0
- package/dist/utils/format-token-count.js.map +1 -0
- package/dist/utils/hover-reveal-classes.cjs +2 -0
- package/dist/utils/hover-reveal-classes.cjs.map +1 -0
- package/dist/utils/hover-reveal-classes.d.ts +34 -0
- package/dist/utils/hover-reveal-classes.js +41 -0
- package/dist/utils/hover-reveal-classes.js.map +1 -0
- package/dist/utils/is-markdown-file-path.cjs +2 -0
- package/dist/utils/is-markdown-file-path.cjs.map +1 -0
- package/dist/utils/is-markdown-file-path.d.ts +4 -0
- package/dist/utils/is-markdown-file-path.js +14 -0
- package/dist/utils/is-markdown-file-path.js.map +1 -0
- package/dist/utils/mcp-marketplace-utils.cjs +1 -1
- package/dist/utils/mcp-marketplace-utils.cjs.map +1 -1
- package/dist/utils/mcp-marketplace-utils.d.ts +7 -0
- package/dist/utils/mcp-marketplace-utils.js +19 -16
- package/dist/utils/mcp-marketplace-utils.js.map +1 -1
- package/dist/utils/transcript-export/index.cjs +3 -3
- package/dist/utils/transcript-export/index.cjs.map +1 -1
- package/dist/utils/transcript-export/index.js +12 -12
- package/dist/utils/transcript-export/index.js.map +1 -1
- package/dist/utils/transcript-export/load-complete-events.cjs +1 -1
- package/dist/utils/transcript-export/load-complete-events.cjs.map +1 -1
- package/dist/utils/transcript-export/load-complete-events.js +4 -4
- package/dist/utils/transcript-export/load-complete-events.js.map +1 -1
- package/dist/utils/workspace-relative-path.cjs +2 -0
- package/dist/utils/workspace-relative-path.cjs.map +1 -0
- package/dist/utils/workspace-relative-path.d.ts +10 -0
- package/dist/utils/workspace-relative-path.js +22 -0
- package/dist/utils/workspace-relative-path.js.map +1 -0
- package/package.json +17 -16
- package/scripts/check-sdk-version-sync.mjs +6 -6
- package/scripts/dev-process-utils.mjs +6 -1
- package/scripts/dev-safe.mjs +57 -2
- package/build/assets/active-backend-context-BBvP-bI2.js +0 -2
- package/build/assets/agent-profiles-settings-DqoS7RL3.js +0 -1
- package/build/assets/agent-server-conversation-service.api-0RztSdJJ.js +0 -86
- package/build/assets/agent-settings-BJHryp65.js +0 -1
- package/build/assets/app-settings-r1RUbgGi.js +0 -1
- package/build/assets/backend-form-modal-OroTqnAv.js +0 -1
- package/build/assets/bot-DuN83i3p.js +0 -1
- package/build/assets/browser--eoQOo4M.js +0 -6
- package/build/assets/check-DLOKoFU9.js +0 -1
- package/build/assets/chevron-down-CnIbtM6i.js +0 -1
- package/build/assets/circle-check-CxCYJrpZ.js +0 -1
- package/build/assets/conversation-BUzBZAc-.js +0 -90
- package/build/assets/conversation-panel-pzAKsSDb.js +0 -1
- package/build/assets/conversation-pzAKsSDb.js +0 -1
- package/build/assets/conversation-store-B8Eahyeg.js +0 -6
- package/build/assets/external-link-zWbg5KXS.js +0 -1
- package/build/assets/files-tab-BzofBmF4.js +0 -1
- package/build/assets/git-provider-icon-BLMlwy02.js +0 -1
- package/build/assets/git-repo-dropdown-B_PTq4ol.js +0 -1
- package/build/assets/home-r89Vj2td.js +0 -1
- package/build/assets/index-home-r89Vj2td.js +0 -1
- package/build/assets/llm-not-configured-banner-CwKu8C6g.js +0 -27
- package/build/assets/llm-settings-BJotLQND.js +0 -1
- package/build/assets/llm-settings-CDM-5H2A.js +0 -1
- package/build/assets/llm-subscription-service-7eVfDIE1.js +0 -1
- package/build/assets/loader-circle-C5AnEN8r.js +0 -1
- package/build/assets/manifest-2a36a8f8.js +0 -1
- package/build/assets/markdown-renderer-BiiiIznl.js +0 -8
- package/build/assets/mcp-marketplace-utils-Dr_HG_ol.js +0 -1
- package/build/assets/messages-D1cbVhRK.js +0 -40
- package/build/assets/pencil-Bl3GWhgq.js +0 -1
- package/build/assets/plus-CtzlyAoF.js +0 -1
- package/build/assets/recommended-automations-launcher-BbJAJVED.js +0 -1
- package/build/assets/refresh-cw-B9GhC3QC.js +0 -1
- package/build/assets/root-BfM_kC_d.css +0 -1
- package/build/assets/root-gstBEjty.js +0 -2
- package/build/assets/root-layout-BIAFLP9p.js +0 -2
- package/build/assets/search-CYaiKHRp.js +0 -1
- package/build/assets/shared-conversation-DIxZjElr.js +0 -1
- package/build/assets/shield-check-D2cpEpv3.js +0 -1
- package/build/assets/trash-2-CzDVN-Iw.js +0 -1
- package/build/assets/use-create-conversation-DWaSVUOB.js +0 -1
- package/build/assets/use-is-authed-Bka89Xmm.js +0 -1
- package/build/assets/use-llm-profiles-CU8ah1pz.js +0 -1
- package/build/assets/use-save-agent-profile-DgI_Uz9a.js +0 -1
- package/build/assets/utils-DPQfkd-7.js +0 -1
- package/build/assets/vendor~index-home~home~conversation-panel~conversation-DiXf0dkj.js +0 -13
- package/build/assets/x-RYDBg-e2.js +0 -1
- package/build/assets/zap-tbKDzCe3.js +0 -1
- package/dist/components/features/conversation/metrics-modal/context-window-section.cjs +0 -2
- package/dist/components/features/conversation/metrics-modal/context-window-section.cjs.map +0 -1
- package/dist/components/features/conversation/metrics-modal/context-window-section.d.ts +0 -6
- package/dist/components/features/conversation/metrics-modal/context-window-section.js +0 -46
- package/dist/components/features/conversation/metrics-modal/context-window-section.js.map +0 -1
- package/dist/components/features/conversation/metrics-modal/empty-state.cjs +0 -2
- package/dist/components/features/conversation/metrics-modal/empty-state.cjs.map +0 -1
- package/dist/components/features/conversation/metrics-modal/empty-state.d.ts +0 -1
- package/dist/components/features/conversation/metrics-modal/empty-state.js +0 -18
- package/dist/components/features/conversation/metrics-modal/empty-state.js.map +0 -1
- package/dist/components/features/conversation/metrics-modal/metrics-modal-header.cjs +0 -2
- package/dist/components/features/conversation/metrics-modal/metrics-modal-header.cjs.map +0 -1
- package/dist/components/features/conversation/metrics-modal/metrics-modal-header.d.ts +0 -5
- package/dist/components/features/conversation/metrics-modal/metrics-modal-header.js +0 -20
- package/dist/components/features/conversation/metrics-modal/metrics-modal-header.js.map +0 -1
- package/dist/components/features/conversation/metrics-modal/metrics-modal.cjs +0 -2
- package/dist/components/features/conversation/metrics-modal/metrics-modal.cjs.map +0 -1
- package/dist/components/features/conversation/metrics-modal/metrics-modal.d.ts +0 -6
- package/dist/components/features/conversation/metrics-modal/metrics-modal.js +0 -57
- package/dist/components/features/conversation/metrics-modal/metrics-modal.js.map +0 -1
- package/dist/icons/u-credit-card.cjs +0 -2
- package/dist/icons/u-credit-card.cjs.map +0 -1
- package/dist/icons/u-credit-card.js +0 -21
- package/dist/icons/u-credit-card.js.map +0 -1
- /package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~cy4jtuc2-rfV8mQ9m.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dh9v73sa-rfV8mQ9m.js} +0 -0
package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../utils/status.cjs"),
|
|
1
|
+
const e=require("../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),n=require("../../../../i18n/declaration.cjs"),r=require("../../../../utils/status.cjs"),i=require("../../../../utils/utils.cjs"),a=require("../ellipsis-button.cjs"),o=require("./conversation-card-context-menu.cjs");let s=require("react");s=e.__toESM(s,1);let c=require("react/jsx-runtime"),l=require("react-dom");function u({contextMenuOpen:e,onContextMenuToggle:u,onDelete:d,onArchive:f,onUnarchive:p,onStop:m,onEdit:h,onDownloadViaVSCode:g,onDownloadConversation:_,executionStatus:v,conversationId:y,showOptions:b}){let{t:x}=t.useTranslation(`openhands`),S=r.isExecutionPaused(v),C=r.isExecutionActive(v),w=(0,s.useRef)(null),[,T]=(0,s.useReducer)(e=>e+1,0);(0,s.useLayoutEffect)(()=>{if(!e)return;T();let t=0,n=()=>{t||=window.requestAnimationFrame(()=>{t=0,T()})};return window.addEventListener(`resize`,n),window.addEventListener(`scroll`,n,!0),()=>{t&&window.cancelAnimationFrame(t),window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,n,!0)}},[e]);let E=(()=>{if(!e||!w.current)return;let t=w.current.getBoundingClientRect(),n=Number(window.innerWidth)||0,r=Number(window.innerHeight)||0,i=Number(t.bottom)||0,a=Number(t.right)||0;return{position:`fixed`,top:i+320+8>r?Math.max(8,t.top-320-4):i+4,right:Math.max(8,n-a),zIndex:1e5}})(),D=typeof document<`u`?document.body:null;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.EllipsisButton,{ref:w,onClick:t=>{t.preventDefault(),t.stopPropagation(),u(!e)},ariaLabel:x(n.I18nKey.COMMON$MORE_OPTIONS),className:i.cn(S&&`opacity-60`)}),e&&E&&D?(0,l.createPortal)((0,c.jsx)(o.ConversationCardContextMenu,{ignoreOutsideClickRef:w,floatingStyle:E,onClose:()=>u(!1),onDelete:d,onArchive:f,onUnarchive:p,onStop:C?m:void 0,onEdit:h,onDownloadViaVSCode:y&&b?g:void 0,onDownloadConversation:y?_:void 0,position:`bottom`}),D):null]})}exports.ConversationCardActions=u;
|
|
2
2
|
//# sourceMappingURL=conversation-card-actions.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-card-actions.cjs","names":[],"sources":["../../../../../src/components/features/conversation-panel/conversation-card/conversation-card-actions.tsx"],"sourcesContent":["import React, { useLayoutEffect, useReducer, useRef } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { cn } from \"#/utils/utils\";\nimport { ExecutionStatus } from \"#/types/agent-server/core/base/common\";\nimport { isExecutionActive, isExecutionPaused } from \"#/utils/status\";\nimport { ConversationCardContextMenu } from \"./conversation-card-context-menu\";\nimport { EllipsisButton } from \"../ellipsis-button\";\n\ninterface ConversationCardActionsProps {\n contextMenuOpen: boolean;\n onContextMenuToggle: (isOpen: boolean) => void;\n onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadViaVSCode?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadConversation?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n executionStatus?: ExecutionStatus | null;\n conversationId?: string;\n showOptions?: boolean;\n}\n\nexport function ConversationCardActions({\n contextMenuOpen,\n onContextMenuToggle,\n onDelete,\n onStop,\n onEdit,\n onDownloadViaVSCode,\n onDownloadConversation,\n executionStatus,\n conversationId,\n showOptions,\n}: ConversationCardActionsProps) {\n const isPaused = isExecutionPaused(executionStatus);\n const isActive = isExecutionActive(executionStatus);\n const anchorRef = useRef<HTMLButtonElement>(null);\n const [, bumpPosition] = useReducer((i: number) => i + 1, 0);\n\n useLayoutEffect(() => {\n if (!contextMenuOpen) return undefined;\n // Anchor ref is assigned after the ellipsis mounts; measure on the next frame.\n bumpPosition();\n // The scroll listener is in capture phase so it fires for nested scroll\n // containers too. Coalesce bursts via rAF so fast scrolling triggers at\n // most one reposition per paint frame instead of one per scroll event.\n let frame = 0;\n const update = () => {\n if (frame) return;\n frame = window.requestAnimationFrame(() => {\n frame = 0;\n bumpPosition();\n });\n };\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", update, true);\n return () => {\n if (frame) window.cancelAnimationFrame(frame);\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", update, true);\n };\n }, [contextMenuOpen]);\n\n const floatingStyle: React.CSSProperties | undefined = (() => {\n if (!contextMenuOpen || !anchorRef.current) return undefined;\n const rect = anchorRef.current.getBoundingClientRect();\n const vw = Number(window.innerWidth) || 0;\n const vh = Number(window.innerHeight) || 0;\n const bottom = Number(rect.bottom) || 0;\n const rectRight = Number(rect.right) || 0;\n // Conservative cap on this menu's intrinsic height (~7 items at\n // ~36px + padding). When the anchor is so close to the viewport\n // bottom that opening downward would clip the menu, flip it above\n // the anchor instead. Slight over-estimate is fine — it just means\n // we flip a few pixels earlier than strictly necessary.\n const ESTIMATED_MENU_HEIGHT =
|
|
1
|
+
{"version":3,"file":"conversation-card-actions.cjs","names":[],"sources":["../../../../../src/components/features/conversation-panel/conversation-card/conversation-card-actions.tsx"],"sourcesContent":["import React, { useLayoutEffect, useReducer, useRef } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { cn } from \"#/utils/utils\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport { ExecutionStatus } from \"#/types/agent-server/core/base/common\";\nimport { isExecutionActive, isExecutionPaused } from \"#/utils/status\";\nimport { ConversationCardContextMenu } from \"./conversation-card-context-menu\";\nimport { EllipsisButton } from \"../ellipsis-button\";\n\ninterface ConversationCardActionsProps {\n contextMenuOpen: boolean;\n onContextMenuToggle: (isOpen: boolean) => void;\n onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onArchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onUnarchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadViaVSCode?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadConversation?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n executionStatus?: ExecutionStatus | null;\n conversationId?: string;\n showOptions?: boolean;\n}\n\nexport function ConversationCardActions({\n contextMenuOpen,\n onContextMenuToggle,\n onDelete,\n onArchive,\n onUnarchive,\n onStop,\n onEdit,\n onDownloadViaVSCode,\n onDownloadConversation,\n executionStatus,\n conversationId,\n showOptions,\n}: ConversationCardActionsProps) {\n const { t } = useTranslation(\"openhands\");\n const isPaused = isExecutionPaused(executionStatus);\n const isActive = isExecutionActive(executionStatus);\n const anchorRef = useRef<HTMLButtonElement>(null);\n const [, bumpPosition] = useReducer((i: number) => i + 1, 0);\n\n useLayoutEffect(() => {\n if (!contextMenuOpen) return undefined;\n // Anchor ref is assigned after the ellipsis mounts; measure on the next frame.\n bumpPosition();\n // The scroll listener is in capture phase so it fires for nested scroll\n // containers too. Coalesce bursts via rAF so fast scrolling triggers at\n // most one reposition per paint frame instead of one per scroll event.\n let frame = 0;\n const update = () => {\n if (frame) return;\n frame = window.requestAnimationFrame(() => {\n frame = 0;\n bumpPosition();\n });\n };\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", update, true);\n return () => {\n if (frame) window.cancelAnimationFrame(frame);\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", update, true);\n };\n }, [contextMenuOpen]);\n\n const floatingStyle: React.CSSProperties | undefined = (() => {\n if (!contextMenuOpen || !anchorRef.current) return undefined;\n const rect = anchorRef.current.getBoundingClientRect();\n const vw = Number(window.innerWidth) || 0;\n const vh = Number(window.innerHeight) || 0;\n const bottom = Number(rect.bottom) || 0;\n const rectRight = Number(rect.right) || 0;\n // Conservative cap on this menu's intrinsic height (~7 items at\n // ~36px + padding). When the anchor is so close to the viewport\n // bottom that opening downward would clip the menu, flip it above\n // the anchor instead. Slight over-estimate is fine — it just means\n // we flip a few pixels earlier than strictly necessary.\n const ESTIMATED_MENU_HEIGHT = 320;\n const gutter = 8;\n const overflowsDownward = bottom + ESTIMATED_MENU_HEIGHT + gutter > vh;\n const top = overflowsDownward\n ? Math.max(gutter, rect.top - ESTIMATED_MENU_HEIGHT - 4)\n : bottom + 4;\n return {\n position: \"fixed\",\n top,\n right: Math.max(gutter, vw - rectRight),\n zIndex: 100_000,\n };\n })();\n\n const portalTarget = typeof document !== \"undefined\" ? document.body : null;\n\n return (\n <>\n <EllipsisButton\n ref={anchorRef}\n onClick={(event) => {\n event.preventDefault();\n event.stopPropagation();\n onContextMenuToggle(!contextMenuOpen);\n }}\n ariaLabel={t(I18nKey.COMMON$MORE_OPTIONS)}\n className={cn(isPaused && \"opacity-60\")}\n />\n {contextMenuOpen && floatingStyle && portalTarget\n ? createPortal(\n <ConversationCardContextMenu\n ignoreOutsideClickRef={anchorRef}\n floatingStyle={floatingStyle}\n onClose={() => onContextMenuToggle(false)}\n onDelete={onDelete}\n onArchive={onArchive}\n onUnarchive={onUnarchive}\n onStop={isActive ? onStop : undefined}\n onEdit={onEdit}\n onDownloadViaVSCode={\n conversationId && showOptions ? onDownloadViaVSCode : undefined\n }\n onDownloadConversation={\n conversationId ? onDownloadConversation : undefined\n }\n position=\"bottom\"\n />,\n portalTarget,\n )\n : null}\n </>\n );\n}\n"],"mappings":"scAyBA,SAAgB,EAAwB,CACtC,kBACA,sBACA,WACA,YACA,cACA,SACA,SACA,sBACA,yBACA,kBACA,iBACA,eAC+B,CAC/B,GAAM,CAAE,KAAM,EAAA,eAAe,WAAW,EAClC,EAAW,EAAA,kBAAkB,CAAe,EAC5C,EAAW,EAAA,kBAAkB,CAAe,EAC5C,GAAA,EAAA,EAAA,QAAsC,IAAI,EAC1C,EAAG,IAAA,EAAA,EAAA,YAA4B,GAAc,EAAI,EAAG,CAAC,GAE3D,EAAA,EAAA,qBAAsB,CACpB,GAAI,CAAC,EAAiB,OAEtB,EAAa,EAIb,IAAI,EAAQ,EACN,MAAe,CACf,AACJ,IAAQ,OAAO,0BAA4B,CACzC,EAAQ,EACR,EAAa,CACf,CAAC,CACH,EAGA,OAFA,OAAO,iBAAiB,SAAU,CAAM,EACxC,OAAO,iBAAiB,SAAU,EAAQ,EAAI,MACjC,CACP,GAAO,OAAO,qBAAqB,CAAK,EAC5C,OAAO,oBAAoB,SAAU,CAAM,EAC3C,OAAO,oBAAoB,SAAU,EAAQ,EAAI,CACnD,CACF,EAAG,CAAC,CAAe,CAAC,EAEpB,IAAM,OAAwD,CAC5D,GAAI,CAAC,GAAmB,CAAC,EAAU,QAAS,OAC5C,IAAM,EAAO,EAAU,QAAQ,sBAAsB,EAC/C,EAAK,OAAO,OAAO,UAAU,GAAK,EAClC,EAAK,OAAO,OAAO,WAAW,GAAK,EACnC,EAAS,OAAO,EAAK,MAAM,GAAK,EAChC,EAAY,OAAO,EAAK,KAAK,GAAK,EAYxC,MAAO,CACL,SAAU,QACV,IANwB,EAAS,IAAwB,EAAS,EAEhE,KAAK,IAAI,EAAQ,EAAK,IAAM,IAAwB,CAAC,EACrD,EAAS,EAIX,MAAO,KAAK,IAAI,EAAQ,EAAK,CAAS,EACtC,OAAQ,GACV,CACF,GAAG,EAEG,EAAe,OAAO,SAAa,IAAc,SAAS,KAAO,KAEvE,OACE,EAAA,EAAA,MAAA,EAAA,SAAA,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAA,eAAD,CACE,IAAK,EACL,QAAU,GAAU,CAClB,EAAM,eAAe,EACrB,EAAM,gBAAgB,EACtB,EAAoB,CAAC,CAAe,CACtC,EACA,UAAW,EAAE,EAAA,QAAQ,mBAAmB,EACxC,UAAW,EAAA,GAAG,GAAY,YAAY,CACvC,CAAA,EACA,GAAmB,GAAiB,GAAA,EAAA,EAAA,eAE/B,EAAA,EAAA,KAAC,EAAA,4BAAD,CACE,sBAAuB,EACR,gBACf,YAAe,EAAoB,EAAK,EAC9B,WACC,YACE,cACb,OAAQ,EAAW,EAAS,IAAA,GACpB,SACR,oBACE,GAAkB,EAAc,EAAsB,IAAA,GAExD,uBACE,EAAiB,EAAyB,IAAA,GAE5C,SAAS,QACV,CAAA,EACD,CACF,EACA,IACJ,CAAA,CAAA,CAEN"}
|
package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ interface ConversationCardActionsProps {
|
|
|
4
4
|
contextMenuOpen: boolean;
|
|
5
5
|
onContextMenuToggle: (isOpen: boolean) => void;
|
|
6
6
|
onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
|
+
onArchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
|
+
onUnarchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
9
|
onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
8
10
|
onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
11
|
onDownloadViaVSCode?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -12,5 +14,5 @@ interface ConversationCardActionsProps {
|
|
|
12
14
|
conversationId?: string;
|
|
13
15
|
showOptions?: boolean;
|
|
14
16
|
}
|
|
15
|
-
export declare function ConversationCardActions({ contextMenuOpen, onContextMenuToggle, onDelete, onStop, onEdit, onDownloadViaVSCode, onDownloadConversation, executionStatus, conversationId, showOptions, }: ConversationCardActionsProps): React.JSX.Element;
|
|
17
|
+
export declare function ConversationCardActions({ contextMenuOpen, onContextMenuToggle, onDelete, onArchive, onUnarchive, onStop, onEdit, onDownloadViaVSCode, onDownloadConversation, executionStatus, conversationId, showOptions, }: ConversationCardActionsProps): React.JSX.Element;
|
|
16
18
|
export {};
|
package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.js
CHANGED
|
@@ -1,54 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { useTranslation as e } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
2
|
+
import { I18nKey as t } from "../../../../i18n/declaration.js";
|
|
3
|
+
import { isExecutionActive as n, isExecutionPaused as r } from "../../../../utils/status.js";
|
|
4
|
+
import { cn as i } from "../../../../utils/utils.js";
|
|
5
|
+
import { EllipsisButton as a } from "../ellipsis-button.js";
|
|
6
|
+
import { ConversationCardContextMenu as o } from "./conversation-card-context-menu.js";
|
|
7
|
+
import { useLayoutEffect as s, useReducer as c, useRef as l } from "react";
|
|
8
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
+
import { createPortal as p } from "react-dom";
|
|
8
10
|
//#region src/components/features/conversation-panel/conversation-card/conversation-card-actions.tsx
|
|
9
|
-
function
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
if (!
|
|
13
|
-
|
|
11
|
+
function m({ contextMenuOpen: m, onContextMenuToggle: h, onDelete: g, onArchive: _, onUnarchive: v, onStop: y, onEdit: b, onDownloadViaVSCode: x, onDownloadConversation: S, executionStatus: C, conversationId: w, showOptions: T }) {
|
|
12
|
+
let { t: E } = e("openhands"), D = r(C), O = n(C), k = l(null), [, A] = c((e) => e + 1, 0);
|
|
13
|
+
s(() => {
|
|
14
|
+
if (!m) return;
|
|
15
|
+
A();
|
|
14
16
|
let e = 0, t = () => {
|
|
15
17
|
e ||= window.requestAnimationFrame(() => {
|
|
16
|
-
e = 0,
|
|
18
|
+
e = 0, A();
|
|
17
19
|
});
|
|
18
20
|
};
|
|
19
21
|
return window.addEventListener("resize", t), window.addEventListener("scroll", t, !0), () => {
|
|
20
22
|
e && window.cancelAnimationFrame(e), window.removeEventListener("resize", t), window.removeEventListener("scroll", t, !0);
|
|
21
23
|
};
|
|
22
|
-
}, [
|
|
23
|
-
let
|
|
24
|
-
if (!
|
|
25
|
-
let e =
|
|
24
|
+
}, [m]);
|
|
25
|
+
let j = (() => {
|
|
26
|
+
if (!m || !k.current) return;
|
|
27
|
+
let e = k.current.getBoundingClientRect(), t = Number(window.innerWidth) || 0, n = Number(window.innerHeight) || 0, r = Number(e.bottom) || 0, i = Number(e.right) || 0;
|
|
26
28
|
return {
|
|
27
29
|
position: "fixed",
|
|
28
|
-
top: r +
|
|
30
|
+
top: r + 320 + 8 > n ? Math.max(8, e.top - 320 - 4) : r + 4,
|
|
29
31
|
right: Math.max(8, t - i),
|
|
30
32
|
zIndex: 1e5
|
|
31
33
|
};
|
|
32
|
-
})(),
|
|
33
|
-
return /* @__PURE__ */ u
|
|
34
|
-
ref:
|
|
34
|
+
})(), M = typeof document < "u" ? document.body : null;
|
|
35
|
+
return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(a, {
|
|
36
|
+
ref: k,
|
|
35
37
|
onClick: (e) => {
|
|
36
|
-
e.preventDefault(), e.stopPropagation(),
|
|
38
|
+
e.preventDefault(), e.stopPropagation(), h(!m);
|
|
37
39
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
ariaLabel: E(t.COMMON$MORE_OPTIONS),
|
|
41
|
+
className: i(D && "opacity-60")
|
|
42
|
+
}), m && j && M ? p(/* @__PURE__ */ d(o, {
|
|
43
|
+
ignoreOutsideClickRef: k,
|
|
44
|
+
floatingStyle: j,
|
|
45
|
+
onClose: () => h(!1),
|
|
46
|
+
onDelete: g,
|
|
47
|
+
onArchive: _,
|
|
48
|
+
onUnarchive: v,
|
|
49
|
+
onStop: O ? y : void 0,
|
|
50
|
+
onEdit: b,
|
|
51
|
+
onDownloadViaVSCode: w && T ? x : void 0,
|
|
52
|
+
onDownloadConversation: w ? S : void 0,
|
|
48
53
|
position: "bottom"
|
|
49
|
-
}),
|
|
54
|
+
}), M) : null] });
|
|
50
55
|
}
|
|
51
56
|
//#endregion
|
|
52
|
-
export {
|
|
57
|
+
export { m as ConversationCardActions };
|
|
53
58
|
|
|
54
59
|
//# sourceMappingURL=conversation-card-actions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-card-actions.js","names":[],"sources":["../../../../../src/components/features/conversation-panel/conversation-card/conversation-card-actions.tsx"],"sourcesContent":["import React, { useLayoutEffect, useReducer, useRef } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { cn } from \"#/utils/utils\";\nimport { ExecutionStatus } from \"#/types/agent-server/core/base/common\";\nimport { isExecutionActive, isExecutionPaused } from \"#/utils/status\";\nimport { ConversationCardContextMenu } from \"./conversation-card-context-menu\";\nimport { EllipsisButton } from \"../ellipsis-button\";\n\ninterface ConversationCardActionsProps {\n contextMenuOpen: boolean;\n onContextMenuToggle: (isOpen: boolean) => void;\n onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadViaVSCode?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadConversation?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n executionStatus?: ExecutionStatus | null;\n conversationId?: string;\n showOptions?: boolean;\n}\n\nexport function ConversationCardActions({\n contextMenuOpen,\n onContextMenuToggle,\n onDelete,\n onStop,\n onEdit,\n onDownloadViaVSCode,\n onDownloadConversation,\n executionStatus,\n conversationId,\n showOptions,\n}: ConversationCardActionsProps) {\n const isPaused = isExecutionPaused(executionStatus);\n const isActive = isExecutionActive(executionStatus);\n const anchorRef = useRef<HTMLButtonElement>(null);\n const [, bumpPosition] = useReducer((i: number) => i + 1, 0);\n\n useLayoutEffect(() => {\n if (!contextMenuOpen) return undefined;\n // Anchor ref is assigned after the ellipsis mounts; measure on the next frame.\n bumpPosition();\n // The scroll listener is in capture phase so it fires for nested scroll\n // containers too. Coalesce bursts via rAF so fast scrolling triggers at\n // most one reposition per paint frame instead of one per scroll event.\n let frame = 0;\n const update = () => {\n if (frame) return;\n frame = window.requestAnimationFrame(() => {\n frame = 0;\n bumpPosition();\n });\n };\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", update, true);\n return () => {\n if (frame) window.cancelAnimationFrame(frame);\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", update, true);\n };\n }, [contextMenuOpen]);\n\n const floatingStyle: React.CSSProperties | undefined = (() => {\n if (!contextMenuOpen || !anchorRef.current) return undefined;\n const rect = anchorRef.current.getBoundingClientRect();\n const vw = Number(window.innerWidth) || 0;\n const vh = Number(window.innerHeight) || 0;\n const bottom = Number(rect.bottom) || 0;\n const rectRight = Number(rect.right) || 0;\n // Conservative cap on this menu's intrinsic height (~7 items at\n // ~36px + padding). When the anchor is so close to the viewport\n // bottom that opening downward would clip the menu, flip it above\n // the anchor instead. Slight over-estimate is fine — it just means\n // we flip a few pixels earlier than strictly necessary.\n const ESTIMATED_MENU_HEIGHT =
|
|
1
|
+
{"version":3,"file":"conversation-card-actions.js","names":[],"sources":["../../../../../src/components/features/conversation-panel/conversation-card/conversation-card-actions.tsx"],"sourcesContent":["import React, { useLayoutEffect, useReducer, useRef } from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { cn } from \"#/utils/utils\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport { ExecutionStatus } from \"#/types/agent-server/core/base/common\";\nimport { isExecutionActive, isExecutionPaused } from \"#/utils/status\";\nimport { ConversationCardContextMenu } from \"./conversation-card-context-menu\";\nimport { EllipsisButton } from \"../ellipsis-button\";\n\ninterface ConversationCardActionsProps {\n contextMenuOpen: boolean;\n onContextMenuToggle: (isOpen: boolean) => void;\n onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onArchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onUnarchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadViaVSCode?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadConversation?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n executionStatus?: ExecutionStatus | null;\n conversationId?: string;\n showOptions?: boolean;\n}\n\nexport function ConversationCardActions({\n contextMenuOpen,\n onContextMenuToggle,\n onDelete,\n onArchive,\n onUnarchive,\n onStop,\n onEdit,\n onDownloadViaVSCode,\n onDownloadConversation,\n executionStatus,\n conversationId,\n showOptions,\n}: ConversationCardActionsProps) {\n const { t } = useTranslation(\"openhands\");\n const isPaused = isExecutionPaused(executionStatus);\n const isActive = isExecutionActive(executionStatus);\n const anchorRef = useRef<HTMLButtonElement>(null);\n const [, bumpPosition] = useReducer((i: number) => i + 1, 0);\n\n useLayoutEffect(() => {\n if (!contextMenuOpen) return undefined;\n // Anchor ref is assigned after the ellipsis mounts; measure on the next frame.\n bumpPosition();\n // The scroll listener is in capture phase so it fires for nested scroll\n // containers too. Coalesce bursts via rAF so fast scrolling triggers at\n // most one reposition per paint frame instead of one per scroll event.\n let frame = 0;\n const update = () => {\n if (frame) return;\n frame = window.requestAnimationFrame(() => {\n frame = 0;\n bumpPosition();\n });\n };\n window.addEventListener(\"resize\", update);\n window.addEventListener(\"scroll\", update, true);\n return () => {\n if (frame) window.cancelAnimationFrame(frame);\n window.removeEventListener(\"resize\", update);\n window.removeEventListener(\"scroll\", update, true);\n };\n }, [contextMenuOpen]);\n\n const floatingStyle: React.CSSProperties | undefined = (() => {\n if (!contextMenuOpen || !anchorRef.current) return undefined;\n const rect = anchorRef.current.getBoundingClientRect();\n const vw = Number(window.innerWidth) || 0;\n const vh = Number(window.innerHeight) || 0;\n const bottom = Number(rect.bottom) || 0;\n const rectRight = Number(rect.right) || 0;\n // Conservative cap on this menu's intrinsic height (~7 items at\n // ~36px + padding). When the anchor is so close to the viewport\n // bottom that opening downward would clip the menu, flip it above\n // the anchor instead. Slight over-estimate is fine — it just means\n // we flip a few pixels earlier than strictly necessary.\n const ESTIMATED_MENU_HEIGHT = 320;\n const gutter = 8;\n const overflowsDownward = bottom + ESTIMATED_MENU_HEIGHT + gutter > vh;\n const top = overflowsDownward\n ? Math.max(gutter, rect.top - ESTIMATED_MENU_HEIGHT - 4)\n : bottom + 4;\n return {\n position: \"fixed\",\n top,\n right: Math.max(gutter, vw - rectRight),\n zIndex: 100_000,\n };\n })();\n\n const portalTarget = typeof document !== \"undefined\" ? document.body : null;\n\n return (\n <>\n <EllipsisButton\n ref={anchorRef}\n onClick={(event) => {\n event.preventDefault();\n event.stopPropagation();\n onContextMenuToggle(!contextMenuOpen);\n }}\n ariaLabel={t(I18nKey.COMMON$MORE_OPTIONS)}\n className={cn(isPaused && \"opacity-60\")}\n />\n {contextMenuOpen && floatingStyle && portalTarget\n ? createPortal(\n <ConversationCardContextMenu\n ignoreOutsideClickRef={anchorRef}\n floatingStyle={floatingStyle}\n onClose={() => onContextMenuToggle(false)}\n onDelete={onDelete}\n onArchive={onArchive}\n onUnarchive={onUnarchive}\n onStop={isActive ? onStop : undefined}\n onEdit={onEdit}\n onDownloadViaVSCode={\n conversationId && showOptions ? onDownloadViaVSCode : undefined\n }\n onDownloadConversation={\n conversationId ? onDownloadConversation : undefined\n }\n position=\"bottom\"\n />,\n portalTarget,\n )\n : null}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;AAyBA,SAAgB,EAAwB,EACtC,oBACA,wBACA,aACA,cACA,gBACA,WACA,WACA,wBACA,2BACA,oBACA,mBACA,kBAC+B;CAC/B,IAAM,EAAE,SAAM,EAAe,WAAW,GAClC,IAAW,EAAkB,CAAe,GAC5C,IAAW,EAAkB,CAAe,GAC5C,IAAY,EAA0B,IAAI,GAC1C,GAAG,KAAgB,GAAY,MAAc,IAAI,GAAG,CAAC;CAE3D,QAAsB;EACpB,IAAI,CAAC,GAAiB;EAEtB,EAAa;EAIb,IAAI,IAAQ,GACN,UAAe;GACf,AACJ,MAAQ,OAAO,4BAA4B;IAEzC,AADA,IAAQ,GACR,EAAa;GACf,CAAC;EACH;EAGA,OAFA,OAAO,iBAAiB,UAAU,CAAM,GACxC,OAAO,iBAAiB,UAAU,GAAQ,EAAI,SACjC;GAGX,AAFI,KAAO,OAAO,qBAAqB,CAAK,GAC5C,OAAO,oBAAoB,UAAU,CAAM,GAC3C,OAAO,oBAAoB,UAAU,GAAQ,EAAI;EACnD;CACF,GAAG,CAAC,CAAe,CAAC;CAEpB,IAAM,WAAwD;EAC5D,IAAI,CAAC,KAAmB,CAAC,EAAU,SAAS;EAC5C,IAAM,IAAO,EAAU,QAAQ,sBAAsB,GAC/C,IAAK,OAAO,OAAO,UAAU,KAAK,GAClC,IAAK,OAAO,OAAO,WAAW,KAAK,GACnC,IAAS,OAAO,EAAK,MAAM,KAAK,GAChC,IAAY,OAAO,EAAK,KAAK,KAAK;EAYxC,OAAO;GACL,UAAU;GACV,KANwB,IAAS,MAAwB,IAAS,IAEhE,KAAK,IAAI,GAAQ,EAAK,MAAM,MAAwB,CAAC,IACrD,IAAS;GAIX,OAAO,KAAK,IAAI,GAAQ,IAAK,CAAS;GACtC,QAAQ;EACV;CACF,GAAG,GAEG,IAAe,OAAO,WAAa,MAAc,SAAS,OAAO;CAEvE,OACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,KAAK;EACL,UAAU,MAAU;GAGlB,AAFA,EAAM,eAAe,GACrB,EAAM,gBAAgB,GACtB,EAAoB,CAAC,CAAe;EACtC;EACA,WAAW,EAAE,EAAQ,mBAAmB;EACxC,WAAW,EAAG,KAAY,YAAY;CACvC,CAAA,GACA,KAAmB,KAAiB,IACjC,EACE,kBAAC,GAAD;EACE,uBAAuB;EACR;EACf,eAAe,EAAoB,EAAK;EAC9B;EACC;EACE;EACb,QAAQ,IAAW,IAAS,KAAA;EACpB;EACR,qBACE,KAAkB,IAAc,IAAsB,KAAA;EAExD,wBACE,IAAiB,IAAyB,KAAA;EAE5C,UAAS;CACV,CAAA,GACD,CACF,IACA,IACJ,EAAA,CAAA;AAEN"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),n=require("../../../../i18n/declaration.cjs"),r=require("../../../../contexts/active-backend-context.cjs"),
|
|
1
|
+
const e=require("../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),n=require("../../../../i18n/declaration.cjs"),r=require("../../../../node_modules/lucide-react/dist/esm/icons/archive-restore.cjs"),i=require("../../../../node_modules/lucide-react/dist/esm/icons/archive.cjs"),a=require("../../../../node_modules/lucide-react/dist/esm/icons/gauge.cjs"),o=require("../../../../contexts/active-backend-context.cjs"),s=require("../../../../icons/u-close.cjs"),c=require("../../../../ui/context-menu.cjs"),l=require("../../context-menu/context-menu-list-item.cjs"),u=require("../../../../hooks/use-click-outside-element.cjs"),d=require("../../../../ui/divider.cjs"),f=require("../../../../icons/skills.cjs"),p=require("../../../../icons/u-tools.cjs"),m=require("../../conversation/conversation-name-context-menu-icon-text.cjs"),h=require("../../../../icons/u-edit.cjs"),g=require("../../../../icons/u-download.cjs"),_=require("../../../../icons/u-delete.cjs");let v=require("react");v=e.__toESM(v,1);let y=require("react/jsx-runtime");function b({onClose:e,onDelete:b,onArchive:x,onUnarchive:S,onStop:C,onEdit:w,onDisplayCost:T,onShowAgentTools:E,onShowSkills:D,onDownloadViaVSCode:O,onDownloadConversation:k,position:A=`bottom`,floatingStyle:j,ignoreOutsideClickRef:M}){let{t:N}=t.useTranslation(`openhands`),{backend:P}=o.useActiveBackend(),F=u.useClickOutsideElement(e,M),I=P.kind===`cloud`?n.I18nKey.COMMON$CLOSE_CONVERSATION_STOP_RUNTIME:n.I18nKey.COMMON$STOP_CONVERSATION,L=(0,v.useCallback)((e,t,n)=>{let r=e.filter(e=>e!=null);return r.length>0?n?(0,y.jsx)(v.default.Fragment,{children:r},t):(0,y.jsxs)(v.default.Fragment,{children:[r,(0,y.jsx)(d.Divider,{inset:`menu`})]},t):null},[]),R=j!=null;return(0,y.jsxs)(c.ContextMenu,{ref:F,testId:`context-menu`,style:R?j:void 0,theme:R?`popover`:`default`,position:R?`none`:A,alignment:R?`none`:`right`,spacing:R?`none`:`default`,className:R?`mt-0 min-w-[200px] w-max max-w-[min(280px,100vw-16px)]`:`z-[200] mt-0`,children:[L([w&&(0,y.jsx)(l.ContextMenuListItem,{testId:`edit-button`,onClick:w,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(h.default,{width:16,height:16}),text:N(n.I18nKey.BUTTON$RENAME)})},`edit-button`)],`edit-section`),L([E&&(0,y.jsx)(l.ContextMenuListItem,{testId:`show-agent-tools-button`,onClick:E,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(p.default,{width:16,height:16}),text:N(n.I18nKey.BUTTON$SHOW_AGENT_TOOLS_AND_METADATA)})},`show-agent-tools-button`),D&&(0,y.jsx)(l.ContextMenuListItem,{testId:`show-skills-button`,onClick:D,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(f.default,{width:16,height:16,className:`stroke-[1.75]`,"aria-hidden":!0}),text:N(n.I18nKey.CONVERSATION$SHOW_SKILLS)})},`show-skills-button`)],`tools-section`),L([C&&(0,y.jsx)(l.ContextMenuListItem,{testId:`stop-button`,onClick:C,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(s.default,{width:16,height:16}),text:N(I)})},`stop-button`),O&&(0,y.jsx)(l.ContextMenuListItem,{testId:`download-vscode-button`,onClick:O,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(g.default,{width:16,height:16}),text:N(n.I18nKey.BUTTON$DOWNLOAD_VIA_VSCODE)})},`download-vscode-button`),k&&(0,y.jsx)(l.ContextMenuListItem,{testId:`download-trajectory-button`,onClick:k,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(g.default,{width:16,height:16}),text:N(n.I18nKey.BUTTON$DOWNLOAD_CONVERSATION_DATA)})},`download-trajectory-button`)],`control-section`),L([T&&(0,y.jsx)(l.ContextMenuListItem,{testId:`display-cost-button`,onClick:T,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(a.Gauge,{size:16}),text:N(n.I18nKey.BUTTON$DISPLAY_COST)})},`display-cost-button`),x&&(0,y.jsx)(l.ContextMenuListItem,{testId:`archive-button`,onClick:x,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(i.Archive,{className:`h-4 w-4`,"aria-hidden":!0}),text:N(n.I18nKey.COMMON$ARCHIVE_CONVERSATION)})},`archive-button`),S&&(0,y.jsx)(l.ContextMenuListItem,{testId:`unarchive-button`,onClick:S,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(r.ArchiveRestore,{className:`h-4 w-4`,"aria-hidden":!0}),text:N(n.I18nKey.COMMON$UNARCHIVE_CONVERSATION)})},`unarchive-button`),b&&(0,y.jsx)(l.ContextMenuListItem,{testId:`delete-button`,onClick:b,children:(0,y.jsx)(m.ConversationNameContextMenuIconText,{icon:(0,y.jsx)(_.default,{width:16,height:16}),text:N(n.I18nKey.COMMON$DELETE_CONVERSATION)})},`delete-button`)],`info-section`,!0)]})}exports.ConversationCardContextMenu=b;
|
|
2
2
|
//# sourceMappingURL=conversation-card-context-menu.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-card-context-menu.cjs","names":[],"sources":["../../../../../src/components/features/conversation-panel/conversation-card/conversation-card-context-menu.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useActiveBackend } from \"#/contexts/active-backend-context\";\nimport { useClickOutsideElement } from \"#/hooks/use-click-outside-element\";\nimport { ContextMenu } from \"#/ui/context-menu\";\nimport { ContextMenuListItem } from \"../../context-menu/context-menu-list-item\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport { ConversationNameContextMenuIconText } from \"../../conversation/conversation-name-context-menu-icon-text\";\n\nimport EditIcon from \"#/icons/u-edit.svg?react\";\nimport SkillsIcon from \"#/icons/skills.svg?react\";\nimport ToolsIcon from \"#/icons/u-tools.svg?react\";\nimport DownloadIcon from \"#/icons/u-download.svg?react\";\nimport CreditCardIcon from \"#/icons/u-credit-card.svg?react\";\nimport CloseIcon from \"#/icons/u-close.svg?react\";\nimport DeleteIcon from \"#/icons/u-delete.svg?react\";\nimport { Divider } from \"#/ui/divider\";\n\ninterface ConversationCardContextMenuProps {\n onClose: () => void;\n onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDisplayCost?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onShowAgentTools?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onShowSkills?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadViaVSCode?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadConversation?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n position?: \"top\" | \"bottom\";\n /**\n * Fixed coordinates for a portaled menu (conversation list overflow\n * stacking). When set, theme/position switch to non-absolute layout.\n */\n floatingStyle?: React.CSSProperties;\n ignoreOutsideClickRef?: React.RefObject<HTMLElement | null>;\n}\n\nexport function ConversationCardContextMenu({\n onClose,\n onDelete,\n onStop,\n onEdit,\n onDisplayCost,\n onShowAgentTools,\n onShowSkills,\n onDownloadViaVSCode,\n onDownloadConversation,\n position = \"bottom\",\n floatingStyle,\n ignoreOutsideClickRef,\n}: ConversationCardContextMenuProps) {\n const { t } = useTranslation(\"openhands\");\n const { backend } = useActiveBackend();\n const ref = useClickOutsideElement<HTMLUListElement>(\n onClose,\n ignoreOutsideClickRef,\n );\n const stopLabelKey =\n backend.kind === \"cloud\"\n ? I18nKey.COMMON$CLOSE_CONVERSATION_STOP_RUNTIME\n : I18nKey.COMMON$STOP_CONVERSATION;\n\n const generateSection = useCallback(\n (items: React.ReactNode[], sectionKey: string, isLast?: boolean) => {\n const filteredItems = items.filter((i) => i != null);\n\n if (filteredItems.length > 0) {\n return !isLast ? (\n <React.Fragment key={sectionKey}>\n {filteredItems}\n <Divider inset=\"menu\" />\n </React.Fragment>\n ) : (\n <React.Fragment key={sectionKey}>{filteredItems}</React.Fragment>\n );\n }\n return null;\n },\n [],\n );\n\n const isPortaled = floatingStyle != null;\n\n return (\n <ContextMenu\n ref={ref}\n testId=\"context-menu\"\n style={isPortaled ? floatingStyle : undefined}\n theme={isPortaled ? \"popover\" : \"default\"}\n position={isPortaled ? \"none\" : position}\n alignment={isPortaled ? \"none\" : \"right\"}\n spacing={isPortaled ? \"none\" : \"default\"}\n className={\n isPortaled\n ? \"mt-0 min-w-[200px] w-max max-w-[min(280px,100vw-16px)]\"\n : \"z-[200] mt-0\"\n }\n >\n {generateSection(\n [\n onEdit && (\n <ContextMenuListItem\n key=\"edit-button\"\n testId=\"edit-button\"\n onClick={onEdit}\n >\n <ConversationNameContextMenuIconText\n icon={<EditIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$RENAME)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"edit-section\",\n )}\n {generateSection(\n [\n onShowAgentTools && (\n <ContextMenuListItem\n key=\"show-agent-tools-button\"\n testId=\"show-agent-tools-button\"\n onClick={onShowAgentTools}\n >\n <ConversationNameContextMenuIconText\n icon={<ToolsIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$SHOW_AGENT_TOOLS_AND_METADATA)}\n />\n </ContextMenuListItem>\n ),\n onShowSkills && (\n <ContextMenuListItem\n key=\"show-skills-button\"\n testId=\"show-skills-button\"\n onClick={onShowSkills}\n >\n <ConversationNameContextMenuIconText\n icon={\n <SkillsIcon\n width={16}\n height={16}\n className=\"stroke-[1.75]\"\n aria-hidden\n />\n }\n text={t(I18nKey.CONVERSATION$SHOW_SKILLS)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"tools-section\",\n )}\n {generateSection(\n [\n onStop && (\n <ContextMenuListItem\n key=\"stop-button\"\n testId=\"stop-button\"\n onClick={onStop}\n >\n <ConversationNameContextMenuIconText\n icon={<CloseIcon width={16} height={16} />}\n text={t(stopLabelKey)}\n />\n </ContextMenuListItem>\n ),\n onDownloadViaVSCode && (\n <ContextMenuListItem\n key=\"download-vscode-button\"\n testId=\"download-vscode-button\"\n onClick={onDownloadViaVSCode}\n >\n <ConversationNameContextMenuIconText\n icon={<DownloadIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$DOWNLOAD_VIA_VSCODE)}\n />\n </ContextMenuListItem>\n ),\n onDownloadConversation && (\n <ContextMenuListItem\n key=\"download-trajectory-button\"\n testId=\"download-trajectory-button\"\n onClick={onDownloadConversation}\n >\n <ConversationNameContextMenuIconText\n icon={<DownloadIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$DOWNLOAD_CONVERSATION_DATA)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"control-section\",\n )}\n {generateSection(\n [\n onDisplayCost && (\n <ContextMenuListItem\n key=\"display-cost-button\"\n testId=\"display-cost-button\"\n onClick={onDisplayCost}\n >\n <ConversationNameContextMenuIconText\n icon={<CreditCardIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$DISPLAY_COST)}\n />\n </ContextMenuListItem>\n ),\n onDelete && (\n <ContextMenuListItem\n key=\"delete-button\"\n testId=\"delete-button\"\n onClick={onDelete}\n >\n <ConversationNameContextMenuIconText\n icon={<DeleteIcon width={16} height={16} />}\n text={t(I18nKey.COMMON$DELETE_CONVERSATION)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"info-section\",\n true,\n )}\n </ContextMenu>\n );\n}\n"],"mappings":"k5BAqCA,SAAgB,EAA4B,CAC1C,UACA,WACA,SACA,SACA,gBACA,mBACA,eACA,sBACA,yBACA,WAAW,SACX,gBACA,yBACmC,CACnC,GAAM,CAAE,KAAM,EAAA,eAAe,WAAW,EAClC,CAAE,WAAY,EAAA,iBAAiB,EAC/B,EAAM,EAAA,uBACV,EACA,CACF,EACM,EACJ,EAAQ,OAAS,QACb,EAAA,QAAQ,uCACR,EAAA,QAAQ,yBAER,GAAA,EAAA,EAAA,cACH,EAA0B,EAAoB,IAAqB,CAClE,IAAM,EAAgB,EAAM,OAAQ,GAAM,GAAK,IAAI,EAYnD,OAVI,EAAc,OAAS,EACjB,GAMN,EAAA,EAAA,KAAC,EAAA,QAAM,SAAP,CAAA,SAAkC,CAA8B,EAA3C,CAA2C,GALhE,EAAA,EAAA,MAAC,EAAA,QAAM,SAAP,CAAA,SAAA,CACG,GACD,EAAA,EAAA,KAAC,EAAA,QAAD,CAAS,MAAM,MAAQ,CAAA,CACT,CAAA,EAHK,CAGL,EAKb,IACT,EACA,CAAC,CACH,EAEM,EAAa,GAAiB,KAEpC,OACE,EAAA,EAAA,MAAC,EAAA,YAAD,CACO,MACL,OAAO,eACP,MAAO,EAAa,EAAgB,IAAA,GACpC,MAAO,EAAa,UAAY,UAChC,SAAU,EAAa,OAAS,EAChC,UAAW,EAAa,OAAS,QACjC,QAAS,EAAa,OAAS,UAC/B,UACE,EACI,yDACA,wBAXR,CAcG,EACC,CACE,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,cACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MAAM,EAAA,EAAA,KAAC,EAAA,QAAD,CAAU,MAAO,GAAI,OAAQ,EAAK,CAAA,EACxC,KAAM,EAAE,EAAA,QAAQ,aAAa,CAC9B,CAAA,CACkB,EARf,aAQe,CAEzB,EAEA,cACF,EACC,EACC,CACE,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,0BACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MAAM,EAAA,EAAA,KAAC,EAAA,QAAD,CAAW,MAAO,GAAI,OAAQ,EAAK,CAAA,EACzC,KAAM,EAAE,EAAA,QAAQ,oCAAoC,CACrD,CAAA,CACkB,EARf,yBAQe,EAEvB,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,qBACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MACE,EAAA,EAAA,KAAC,EAAA,QAAD,CACE,MAAO,GACP,OAAQ,GACR,UAAU,gBACV,cAAA,EACD,CAAA,EAEH,KAAM,EAAE,EAAA,QAAQ,wBAAwB,CACzC,CAAA,CACkB,EAff,oBAee,CAEzB,EAEA,eACF,EACC,EACC,CACE,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,cACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MAAM,EAAA,EAAA,KAAC,EAAA,QAAD,CAAW,MAAO,GAAI,OAAQ,EAAK,CAAA,EACzC,KAAM,EAAE,CAAY,CACrB,CAAA,CACkB,EARf,aAQe,EAEvB,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,yBACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MAAM,EAAA,EAAA,KAAC,EAAA,QAAD,CAAc,MAAO,GAAI,OAAQ,EAAK,CAAA,EAC5C,KAAM,EAAE,EAAA,QAAQ,0BAA0B,CAC3C,CAAA,CACkB,EARf,wBAQe,EAEvB,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,6BACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MAAM,EAAA,EAAA,KAAC,EAAA,QAAD,CAAc,MAAO,GAAI,OAAQ,EAAK,CAAA,EAC5C,KAAM,EAAE,EAAA,QAAQ,iCAAiC,CAClD,CAAA,CACkB,EARf,4BAQe,CAEzB,EAEA,iBACF,EACC,EACC,CACE,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,sBACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MAAM,EAAA,EAAA,KAAC,EAAA,QAAD,CAAgB,MAAO,GAAI,OAAQ,EAAK,CAAA,EAC9C,KAAM,EAAE,EAAA,QAAQ,mBAAmB,CACpC,CAAA,CACkB,EARf,qBAQe,EAEvB,IACE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAEE,OAAO,gBACP,QAAS,YAET,EAAA,EAAA,KAAC,EAAA,oCAAD,CACE,MAAM,EAAA,EAAA,KAAC,EAAA,QAAD,CAAY,MAAO,GAAI,OAAQ,EAAK,CAAA,EAC1C,KAAM,EAAE,EAAA,QAAQ,0BAA0B,CAC3C,CAAA,CACkB,EARf,eAQe,CAEzB,EAEA,eACA,EACF,CACW,GAEjB"}
|
|
1
|
+
{"version":3,"file":"conversation-card-context-menu.cjs","names":[],"sources":["../../../../../src/components/features/conversation-panel/conversation-card/conversation-card-context-menu.tsx"],"sourcesContent":["import React, { useCallback } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useActiveBackend } from \"#/contexts/active-backend-context\";\nimport { useClickOutsideElement } from \"#/hooks/use-click-outside-element\";\nimport { ContextMenu } from \"#/ui/context-menu\";\nimport { ContextMenuListItem } from \"../../context-menu/context-menu-list-item\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport { ConversationNameContextMenuIconText } from \"../../conversation/conversation-name-context-menu-icon-text\";\n\nimport { Archive, ArchiveRestore } from \"lucide-react\";\nimport EditIcon from \"#/icons/u-edit.svg?react\";\nimport SkillsIcon from \"#/icons/skills.svg?react\";\nimport ToolsIcon from \"#/icons/u-tools.svg?react\";\nimport DownloadIcon from \"#/icons/u-download.svg?react\";\nimport CloseIcon from \"#/icons/u-close.svg?react\";\nimport DeleteIcon from \"#/icons/u-delete.svg?react\";\nimport { Divider } from \"#/ui/divider\";\nimport { Gauge } from \"lucide-react\";\n\ninterface ConversationCardContextMenuProps {\n onClose: () => void;\n onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onArchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onUnarchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDisplayCost?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onShowAgentTools?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onShowSkills?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadViaVSCode?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n onDownloadConversation?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n position?: \"top\" | \"bottom\";\n /**\n * Fixed coordinates for a portaled menu (conversation list overflow\n * stacking). When set, theme/position switch to non-absolute layout.\n */\n floatingStyle?: React.CSSProperties;\n ignoreOutsideClickRef?: React.RefObject<HTMLElement | null>;\n}\n\nexport function ConversationCardContextMenu({\n onClose,\n onDelete,\n onArchive,\n onUnarchive,\n onStop,\n onEdit,\n onDisplayCost,\n onShowAgentTools,\n onShowSkills,\n onDownloadViaVSCode,\n onDownloadConversation,\n position = \"bottom\",\n floatingStyle,\n ignoreOutsideClickRef,\n}: ConversationCardContextMenuProps) {\n const { t } = useTranslation(\"openhands\");\n const { backend } = useActiveBackend();\n const ref = useClickOutsideElement<HTMLUListElement>(\n onClose,\n ignoreOutsideClickRef,\n );\n const stopLabelKey =\n backend.kind === \"cloud\"\n ? I18nKey.COMMON$CLOSE_CONVERSATION_STOP_RUNTIME\n : I18nKey.COMMON$STOP_CONVERSATION;\n\n const generateSection = useCallback(\n (items: React.ReactNode[], sectionKey: string, isLast?: boolean) => {\n const filteredItems = items.filter((i) => i != null);\n\n if (filteredItems.length > 0) {\n return !isLast ? (\n <React.Fragment key={sectionKey}>\n {filteredItems}\n <Divider inset=\"menu\" />\n </React.Fragment>\n ) : (\n <React.Fragment key={sectionKey}>{filteredItems}</React.Fragment>\n );\n }\n return null;\n },\n [],\n );\n\n const isPortaled = floatingStyle != null;\n\n return (\n <ContextMenu\n ref={ref}\n testId=\"context-menu\"\n style={isPortaled ? floatingStyle : undefined}\n theme={isPortaled ? \"popover\" : \"default\"}\n position={isPortaled ? \"none\" : position}\n alignment={isPortaled ? \"none\" : \"right\"}\n spacing={isPortaled ? \"none\" : \"default\"}\n className={\n isPortaled\n ? \"mt-0 min-w-[200px] w-max max-w-[min(280px,100vw-16px)]\"\n : \"z-[200] mt-0\"\n }\n >\n {generateSection(\n [\n onEdit && (\n <ContextMenuListItem\n key=\"edit-button\"\n testId=\"edit-button\"\n onClick={onEdit}\n >\n <ConversationNameContextMenuIconText\n icon={<EditIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$RENAME)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"edit-section\",\n )}\n {generateSection(\n [\n onShowAgentTools && (\n <ContextMenuListItem\n key=\"show-agent-tools-button\"\n testId=\"show-agent-tools-button\"\n onClick={onShowAgentTools}\n >\n <ConversationNameContextMenuIconText\n icon={<ToolsIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$SHOW_AGENT_TOOLS_AND_METADATA)}\n />\n </ContextMenuListItem>\n ),\n onShowSkills && (\n <ContextMenuListItem\n key=\"show-skills-button\"\n testId=\"show-skills-button\"\n onClick={onShowSkills}\n >\n <ConversationNameContextMenuIconText\n icon={\n <SkillsIcon\n width={16}\n height={16}\n className=\"stroke-[1.75]\"\n aria-hidden\n />\n }\n text={t(I18nKey.CONVERSATION$SHOW_SKILLS)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"tools-section\",\n )}\n {generateSection(\n [\n onStop && (\n <ContextMenuListItem\n key=\"stop-button\"\n testId=\"stop-button\"\n onClick={onStop}\n >\n <ConversationNameContextMenuIconText\n icon={<CloseIcon width={16} height={16} />}\n text={t(stopLabelKey)}\n />\n </ContextMenuListItem>\n ),\n onDownloadViaVSCode && (\n <ContextMenuListItem\n key=\"download-vscode-button\"\n testId=\"download-vscode-button\"\n onClick={onDownloadViaVSCode}\n >\n <ConversationNameContextMenuIconText\n icon={<DownloadIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$DOWNLOAD_VIA_VSCODE)}\n />\n </ContextMenuListItem>\n ),\n onDownloadConversation && (\n <ContextMenuListItem\n key=\"download-trajectory-button\"\n testId=\"download-trajectory-button\"\n onClick={onDownloadConversation}\n >\n <ConversationNameContextMenuIconText\n icon={<DownloadIcon width={16} height={16} />}\n text={t(I18nKey.BUTTON$DOWNLOAD_CONVERSATION_DATA)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"control-section\",\n )}\n {generateSection(\n [\n onDisplayCost && (\n <ContextMenuListItem\n key=\"display-cost-button\"\n testId=\"display-cost-button\"\n onClick={onDisplayCost}\n >\n <ConversationNameContextMenuIconText\n icon={<Gauge size={16} />}\n text={t(I18nKey.BUTTON$DISPLAY_COST)}\n />\n </ContextMenuListItem>\n ),\n onArchive && (\n <ContextMenuListItem\n key=\"archive-button\"\n testId=\"archive-button\"\n onClick={onArchive}\n >\n <ConversationNameContextMenuIconText\n icon={<Archive className=\"h-4 w-4\" aria-hidden />}\n text={t(I18nKey.COMMON$ARCHIVE_CONVERSATION)}\n />\n </ContextMenuListItem>\n ),\n onUnarchive && (\n <ContextMenuListItem\n key=\"unarchive-button\"\n testId=\"unarchive-button\"\n onClick={onUnarchive}\n >\n <ConversationNameContextMenuIconText\n icon={<ArchiveRestore className=\"h-4 w-4\" aria-hidden />}\n text={t(I18nKey.COMMON$UNARCHIVE_CONVERSATION)}\n />\n </ContextMenuListItem>\n ),\n onDelete && (\n <ContextMenuListItem\n key=\"delete-button\"\n testId=\"delete-button\"\n onClick={onDelete}\n >\n <ConversationNameContextMenuIconText\n icon={<DeleteIcon width={16} height={16} />}\n text={t(I18nKey.COMMON$DELETE_CONVERSATION)}\n />\n </ContextMenuListItem>\n ),\n ],\n // eslint-disable-next-line i18next/no-literal-string -- internal section id, not user-facing\n \"info-section\",\n true,\n )}\n </ContextMenu>\n );\n}\n"],"mappings":"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"}
|
|
@@ -2,6 +2,8 @@ import React from "react";
|
|
|
2
2
|
interface ConversationCardContextMenuProps {
|
|
3
3
|
onClose: () => void;
|
|
4
4
|
onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
onArchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
onUnarchive?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
7
|
onStop?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
8
|
onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
7
9
|
onDisplayCost?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
@@ -17,5 +19,5 @@ interface ConversationCardContextMenuProps {
|
|
|
17
19
|
floatingStyle?: React.CSSProperties;
|
|
18
20
|
ignoreOutsideClickRef?: React.RefObject<HTMLElement | null>;
|
|
19
21
|
}
|
|
20
|
-
export declare function ConversationCardContextMenu({ onClose, onDelete, onStop, onEdit, onDisplayCost, onShowAgentTools, onShowSkills, onDownloadViaVSCode, onDownloadConversation, position, floatingStyle, ignoreOutsideClickRef, }: ConversationCardContextMenuProps): React.JSX.Element;
|
|
22
|
+
export declare function ConversationCardContextMenu({ onClose, onDelete, onArchive, onUnarchive, onStop, onEdit, onDisplayCost, onShowAgentTools, onShowSkills, onDownloadViaVSCode, onDownloadConversation, position, floatingStyle, ignoreOutsideClickRef, }: ConversationCardContextMenuProps): React.JSX.Element;
|
|
21
23
|
export {};
|
|
@@ -1,130 +1,154 @@
|
|
|
1
1
|
import { useTranslation as e } from "../../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
2
2
|
import { I18nKey as t } from "../../../../i18n/declaration.js";
|
|
3
|
-
import {
|
|
4
|
-
import r from "../../../../icons/
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import c from "
|
|
10
|
-
import l from "../../../../
|
|
11
|
-
import u from "../../../../
|
|
12
|
-
import d from "../../../../icons/
|
|
13
|
-
import f from "../../../../icons/u-
|
|
14
|
-
import p from "
|
|
15
|
-
import
|
|
16
|
-
import h
|
|
17
|
-
import
|
|
3
|
+
import { ArchiveRestore as n } from "../../../../node_modules/lucide-react/dist/esm/icons/archive-restore.js";
|
|
4
|
+
import { Archive as r } from "../../../../node_modules/lucide-react/dist/esm/icons/archive.js";
|
|
5
|
+
import { Gauge as i } from "../../../../node_modules/lucide-react/dist/esm/icons/gauge.js";
|
|
6
|
+
import { useActiveBackend as a } from "../../../../contexts/active-backend-context.js";
|
|
7
|
+
import o from "../../../../icons/u-close.js";
|
|
8
|
+
import { ContextMenu as s } from "../../../../ui/context-menu.js";
|
|
9
|
+
import { ContextMenuListItem as c } from "../../context-menu/context-menu-list-item.js";
|
|
10
|
+
import { useClickOutsideElement as l } from "../../../../hooks/use-click-outside-element.js";
|
|
11
|
+
import { Divider as u } from "../../../../ui/divider.js";
|
|
12
|
+
import d from "../../../../icons/skills.js";
|
|
13
|
+
import f from "../../../../icons/u-tools.js";
|
|
14
|
+
import { ConversationNameContextMenuIconText as p } from "../../conversation/conversation-name-context-menu-icon-text.js";
|
|
15
|
+
import m from "../../../../icons/u-edit.js";
|
|
16
|
+
import h from "../../../../icons/u-download.js";
|
|
17
|
+
import g from "../../../../icons/u-delete.js";
|
|
18
|
+
import _, { useCallback as v } from "react";
|
|
19
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
18
20
|
//#region src/components/features/conversation-panel/conversation-card/conversation-card-context-menu.tsx
|
|
19
|
-
function
|
|
20
|
-
let { t:
|
|
21
|
+
function x({ onClose: x, onDelete: S, onArchive: C, onUnarchive: w, onStop: T, onEdit: E, onDisplayCost: D, onShowAgentTools: O, onShowSkills: k, onDownloadViaVSCode: A, onDownloadConversation: j, position: M = "bottom", floatingStyle: N, ignoreOutsideClickRef: P }) {
|
|
22
|
+
let { t: F } = e("openhands"), { backend: I } = a(), L = l(x, P), R = I.kind === "cloud" ? t.COMMON$CLOSE_CONVERSATION_STOP_RUNTIME : t.COMMON$STOP_CONVERSATION, z = v((e, t, n) => {
|
|
21
23
|
let r = e.filter((e) => e != null);
|
|
22
|
-
return r.length > 0 ? n ? /* @__PURE__ */ _
|
|
23
|
-
}, []),
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
ref:
|
|
24
|
+
return r.length > 0 ? n ? /* @__PURE__ */ y(_.Fragment, { children: r }, t) : /* @__PURE__ */ b(_.Fragment, { children: [r, /* @__PURE__ */ y(u, { inset: "menu" })] }, t) : null;
|
|
25
|
+
}, []), B = N != null;
|
|
26
|
+
return /* @__PURE__ */ b(s, {
|
|
27
|
+
ref: L,
|
|
26
28
|
testId: "context-menu",
|
|
27
|
-
style:
|
|
28
|
-
theme:
|
|
29
|
-
position:
|
|
30
|
-
alignment:
|
|
31
|
-
spacing:
|
|
32
|
-
className:
|
|
29
|
+
style: B ? N : void 0,
|
|
30
|
+
theme: B ? "popover" : "default",
|
|
31
|
+
position: B ? "none" : M,
|
|
32
|
+
alignment: B ? "none" : "right",
|
|
33
|
+
spacing: B ? "none" : "default",
|
|
34
|
+
className: B ? "mt-0 min-w-[200px] w-max max-w-[min(280px,100vw-16px)]" : "z-[200] mt-0",
|
|
33
35
|
children: [
|
|
34
|
-
|
|
36
|
+
z([E && /* @__PURE__ */ y(c, {
|
|
35
37
|
testId: "edit-button",
|
|
36
|
-
onClick:
|
|
37
|
-
children: /* @__PURE__ */
|
|
38
|
-
icon: /* @__PURE__ */
|
|
38
|
+
onClick: E,
|
|
39
|
+
children: /* @__PURE__ */ y(p, {
|
|
40
|
+
icon: /* @__PURE__ */ y(m, {
|
|
39
41
|
width: 16,
|
|
40
42
|
height: 16
|
|
41
43
|
}),
|
|
42
|
-
text:
|
|
44
|
+
text: F(t.BUTTON$RENAME)
|
|
43
45
|
})
|
|
44
46
|
}, "edit-button")], "edit-section"),
|
|
45
|
-
|
|
47
|
+
z([O && /* @__PURE__ */ y(c, {
|
|
46
48
|
testId: "show-agent-tools-button",
|
|
47
|
-
onClick:
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
icon: /* @__PURE__ */
|
|
49
|
+
onClick: O,
|
|
50
|
+
children: /* @__PURE__ */ y(p, {
|
|
51
|
+
icon: /* @__PURE__ */ y(f, {
|
|
50
52
|
width: 16,
|
|
51
53
|
height: 16
|
|
52
54
|
}),
|
|
53
|
-
text:
|
|
55
|
+
text: F(t.BUTTON$SHOW_AGENT_TOOLS_AND_METADATA)
|
|
54
56
|
})
|
|
55
|
-
}, "show-agent-tools-button"),
|
|
57
|
+
}, "show-agent-tools-button"), k && /* @__PURE__ */ y(c, {
|
|
56
58
|
testId: "show-skills-button",
|
|
57
|
-
onClick:
|
|
58
|
-
children: /* @__PURE__ */
|
|
59
|
-
icon: /* @__PURE__ */
|
|
59
|
+
onClick: k,
|
|
60
|
+
children: /* @__PURE__ */ y(p, {
|
|
61
|
+
icon: /* @__PURE__ */ y(d, {
|
|
60
62
|
width: 16,
|
|
61
63
|
height: 16,
|
|
62
64
|
className: "stroke-[1.75]",
|
|
63
65
|
"aria-hidden": !0
|
|
64
66
|
}),
|
|
65
|
-
text:
|
|
67
|
+
text: F(t.CONVERSATION$SHOW_SKILLS)
|
|
66
68
|
})
|
|
67
69
|
}, "show-skills-button")], "tools-section"),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
z([
|
|
71
|
+
T && /* @__PURE__ */ y(c, {
|
|
70
72
|
testId: "stop-button",
|
|
71
|
-
onClick:
|
|
72
|
-
children: /* @__PURE__ */
|
|
73
|
-
icon: /* @__PURE__ */
|
|
73
|
+
onClick: T,
|
|
74
|
+
children: /* @__PURE__ */ y(p, {
|
|
75
|
+
icon: /* @__PURE__ */ y(o, {
|
|
74
76
|
width: 16,
|
|
75
77
|
height: 16
|
|
76
78
|
}),
|
|
77
|
-
text:
|
|
79
|
+
text: F(R)
|
|
78
80
|
})
|
|
79
81
|
}, "stop-button"),
|
|
80
|
-
|
|
82
|
+
A && /* @__PURE__ */ y(c, {
|
|
81
83
|
testId: "download-vscode-button",
|
|
82
|
-
onClick:
|
|
83
|
-
children: /* @__PURE__ */
|
|
84
|
-
icon: /* @__PURE__ */
|
|
84
|
+
onClick: A,
|
|
85
|
+
children: /* @__PURE__ */ y(p, {
|
|
86
|
+
icon: /* @__PURE__ */ y(h, {
|
|
85
87
|
width: 16,
|
|
86
88
|
height: 16
|
|
87
89
|
}),
|
|
88
|
-
text:
|
|
90
|
+
text: F(t.BUTTON$DOWNLOAD_VIA_VSCODE)
|
|
89
91
|
})
|
|
90
92
|
}, "download-vscode-button"),
|
|
91
|
-
|
|
93
|
+
j && /* @__PURE__ */ y(c, {
|
|
92
94
|
testId: "download-trajectory-button",
|
|
93
|
-
onClick:
|
|
94
|
-
children: /* @__PURE__ */
|
|
95
|
-
icon: /* @__PURE__ */
|
|
95
|
+
onClick: j,
|
|
96
|
+
children: /* @__PURE__ */ y(p, {
|
|
97
|
+
icon: /* @__PURE__ */ y(h, {
|
|
96
98
|
width: 16,
|
|
97
99
|
height: 16
|
|
98
100
|
}),
|
|
99
|
-
text:
|
|
101
|
+
text: F(t.BUTTON$DOWNLOAD_CONVERSATION_DATA)
|
|
100
102
|
})
|
|
101
103
|
}, "download-trajectory-button")
|
|
102
104
|
], "control-section"),
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
})
|
|
123
|
-
|
|
105
|
+
z([
|
|
106
|
+
D && /* @__PURE__ */ y(c, {
|
|
107
|
+
testId: "display-cost-button",
|
|
108
|
+
onClick: D,
|
|
109
|
+
children: /* @__PURE__ */ y(p, {
|
|
110
|
+
icon: /* @__PURE__ */ y(i, { size: 16 }),
|
|
111
|
+
text: F(t.BUTTON$DISPLAY_COST)
|
|
112
|
+
})
|
|
113
|
+
}, "display-cost-button"),
|
|
114
|
+
C && /* @__PURE__ */ y(c, {
|
|
115
|
+
testId: "archive-button",
|
|
116
|
+
onClick: C,
|
|
117
|
+
children: /* @__PURE__ */ y(p, {
|
|
118
|
+
icon: /* @__PURE__ */ y(r, {
|
|
119
|
+
className: "h-4 w-4",
|
|
120
|
+
"aria-hidden": !0
|
|
121
|
+
}),
|
|
122
|
+
text: F(t.COMMON$ARCHIVE_CONVERSATION)
|
|
123
|
+
})
|
|
124
|
+
}, "archive-button"),
|
|
125
|
+
w && /* @__PURE__ */ y(c, {
|
|
126
|
+
testId: "unarchive-button",
|
|
127
|
+
onClick: w,
|
|
128
|
+
children: /* @__PURE__ */ y(p, {
|
|
129
|
+
icon: /* @__PURE__ */ y(n, {
|
|
130
|
+
className: "h-4 w-4",
|
|
131
|
+
"aria-hidden": !0
|
|
132
|
+
}),
|
|
133
|
+
text: F(t.COMMON$UNARCHIVE_CONVERSATION)
|
|
134
|
+
})
|
|
135
|
+
}, "unarchive-button"),
|
|
136
|
+
S && /* @__PURE__ */ y(c, {
|
|
137
|
+
testId: "delete-button",
|
|
138
|
+
onClick: S,
|
|
139
|
+
children: /* @__PURE__ */ y(p, {
|
|
140
|
+
icon: /* @__PURE__ */ y(g, {
|
|
141
|
+
width: 16,
|
|
142
|
+
height: 16
|
|
143
|
+
}),
|
|
144
|
+
text: F(t.COMMON$DELETE_CONVERSATION)
|
|
145
|
+
})
|
|
146
|
+
}, "delete-button")
|
|
147
|
+
], "info-section", !0)
|
|
124
148
|
]
|
|
125
149
|
});
|
|
126
150
|
}
|
|
127
151
|
//#endregion
|
|
128
|
-
export {
|
|
152
|
+
export { x as ConversationCardContextMenu };
|
|
129
153
|
|
|
130
154
|
//# sourceMappingURL=conversation-card-context-menu.js.map
|