@openhands/agent-canvas 1.12.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-CzWS1DgR.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-D2J1dKVd.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-D70oJj2c.js → api-key-entry-screen-D8Fade_-.js} +1 -1
- package/build/assets/{app-settings-D0OKHB3M.js → app-settings-CpyGB3AT.js} +1 -1
- package/build/assets/{automation-detail-C0SxWTnQ.js → automation-detail-B-jQ39Mm.js} +1 -1
- package/build/assets/{automation-export-BjQa_fT6.js → automation-export-B1dywoqk.js} +1 -1
- package/build/assets/{automation-setup-route-BzCNpljP.js → automation-setup-route-C-bWUZBi.js} +1 -1
- package/build/assets/{automation-templates-D9gs6ihu.js → automation-templates-DgpCGOJV.js} +1 -1
- package/build/assets/{automations-list-dZg8zOCl.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-HwclKrUS.js → backend-form-modal-DiVrD4Cm.js} +1 -1
- package/build/assets/{backend-synced-settings-badge-YI3k09Wr.js → backend-synced-settings-badge-7MIjpr8M.js} +1 -1
- package/build/assets/{badge-Dpn3-LTV.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-4CPdj3J3.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-CcSez21r.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-BKOLj-TC.js → command-menu-BXy03FBl.js} +1 -1
- package/build/assets/{condenser-settings-DLQogFnB.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-CtgILxWF.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-EBn3ZtNP.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-BZ3HYztk.js → extensions-hub-BqUINAhp.js} +1 -1
- package/build/assets/{extensions-navigation-Bnx32WAb.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-relative-time-BerVamGl.js → format-relative-time-DSErAuVr.js} +1 -1
- package/build/assets/git-provider-icon-BvlLAche.js +1 -0
- package/build/assets/{git-repo-dropdown-B5VnMftu.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-Y0aDou-a.js → home-BOrlwLqG.js} +1 -1
- package/build/assets/home-BvMNC6E-.js +1 -0
- package/build/assets/{home-store-Cubdq0uP.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-DW6dSyGr.js → install-server-modal-Bl4G1zF4.js} +1 -1
- package/build/assets/{kebab-menu-item-content-CKydZrbH.js → kebab-menu-item-content-BGoGFEAg.js} +1 -1
- package/build/assets/{launch-c4GEP8oo.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-DTCME_Pu.js → manage-backends-modal-DhGk5mJt.js} +1 -1
- package/build/assets/manifest-653b89aa.js +1 -0
- package/build/assets/{manifest-subpage-layout-Ds7G5GZ8.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-Da7wFU7A.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-Cswluf6-.js → npm-DLckoeJc.js} +1 -1
- package/build/assets/{onboarding-BKbTYlW1.js → onboarding-D7WDG66N.js} +1 -1
- package/build/assets/{onboarding-modal-DrrGlEQq.js → onboarding-modal-C_xVrFNv.js} +1 -1
- package/build/assets/{organization-service.api-DK8csGvK.js → organization-service.api-D-s9z18a.js} +1 -1
- package/build/assets/pencil-BGOCPRyu.js +1 -0
- package/build/assets/{planner-tab-D-mZ1I7n.js → planner-tab-AKaXIIfg.js} +1 -1
- package/build/assets/{plugins-management-service-CywqyfLK.js → plugins-management-service-wtmY4QQw.js} +1 -1
- package/build/assets/plus-zNEL8rcX.js +1 -0
- package/build/assets/{profiles-service.api-vcE_jJCe.js → profiles-service.api-DCMYxHMi.js} +1 -1
- package/build/assets/{providers-CdrPPm0z.js → providers-BjrtjX4L.js} +1 -1
- package/build/assets/{proxy-b4aqL4SX.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-CBBi6IAe.js → root-DkfG_UWR.js} +2 -2
- package/build/assets/root-layout-D75LHYhh.js +2 -0
- package/build/assets/{schema-field-Z-rMg9ti.js → schema-field-OnM5Uob_.js} +1 -1
- package/build/assets/{sdk-section-page-m_cjygxR.js → sdk-section-page-m5WQm2sy.js} +1 -1
- package/build/assets/search-CycosyjN.js +1 -0
- package/build/assets/{secrets-service-BHF4fxML.js → secrets-service-B26R61C1.js} +1 -1
- package/build/assets/{secrets-settings-aBGXtQhX.js → secrets-settings-CbLYCKOX.js} +1 -1
- package/build/assets/{segmented-toggle-SmvsR3jW.js → segmented-toggle-DCspm2U5.js} +1 -1
- package/build/assets/{settings-CZPGNens.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-Dtlegd6s.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-CalzJP2l.js → settings-modal-BIrIVn97.js} +1 -1
- package/build/assets/{settings-service.api-DfPYaxZJ.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-C6HpQ55l.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-Dt1V5X2p.js → skill-scope-Dc3JPW-8.js} +1 -1
- package/build/assets/{skills-plugins-B-H0cCOP.js → skills-plugins-CpTV27n3.js} +1 -1
- package/build/assets/{skills-settings-DthdIDUb.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-BTde81Iu.js → task-list-tab-mAHMOkUz.js} +1 -1
- package/build/assets/{terminal-DRrJo-cR.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-DGyo0QvL.js → use-acp-credential-form-BPNi0Zbm.js} +1 -1
- package/build/assets/{use-activate-agent-profile-DrPzIKJF.js → use-activate-agent-profile-D9YRQPTF.js} +1 -1
- package/build/assets/{use-agent-profiles-B37XWDLq.js → use-agent-profiles-Cb2zUW3l.js} +1 -1
- package/build/assets/{use-can-manage-org-profiles-BzE28H3x.js → use-can-manage-org-profiles-Dxzq2AEd.js} +1 -1
- package/build/assets/{use-cloud-current-user-id-U6HPjy50.js → use-cloud-current-user-id-Co2eJk2A.js} +1 -1
- package/build/assets/{use-config-DapX3pjC.js → use-config-DKAMiI5R.js} +1 -1
- package/build/assets/use-create-conversation-CoHTiCbI.js +1 -0
- package/build/assets/{use-create-secret-DcpT3RPw.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-zihHDbMW.js → use-manifest-capabilities-DPrQsaPP.js} +1 -1
- package/build/assets/{use-onboarding-completion-6kWOW3ul.js → use-onboarding-completion-CCE8OQgV.js} +1 -1
- package/build/assets/{use-plugins-marketplace-CqkR8kLE.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-DIEurJ3D.js → use-save-settings-DNmnbG6f.js} +1 -1
- package/build/assets/{use-settings-nav-items-DV9qgeu7.js → use-settings-nav-items-BlFL7YhM.js} +1 -1
- package/build/assets/{use-settings-BmLzQjnC.js → use-settings-wCwPaSIv.js} +1 -1
- package/build/assets/{use-tracking-salbPJxT.js → use-tracking-CVwPmhlX.js} +1 -1
- package/build/assets/{use-user-conversation-Dt-W6uNw.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-oi54wEc1.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/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/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 +25 -17
- 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/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/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/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/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-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-B_bg5h9O.js +0 -2
- package/build/assets/agent-profiles-settings-hd2cAIZM.js +0 -1
- package/build/assets/agent-server-conversation-service.api-BheU4HX3.js +0 -86
- package/build/assets/agent-settings-D_SVrWhI.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-Cmyw9bFh.js +0 -90
- package/build/assets/conversation-CvoGZ5vC.js +0 -1
- package/build/assets/conversation-panel-CvoGZ5vC.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-D5zuU5TY.js +0 -1
- package/build/assets/git-provider-icon-zuKz2cwo.js +0 -1
- package/build/assets/git-repo-dropdown-Bo7ciSNX.js +0 -1
- package/build/assets/home-DqyeeFA_.js +0 -1
- package/build/assets/index-home-DqyeeFA_.js +0 -1
- package/build/assets/info-C9lpK5pw.js +0 -1
- package/build/assets/llm-not-configured-banner-DCE_0B4I.js +0 -27
- package/build/assets/llm-settings-8eWBF3Ij.js +0 -1
- package/build/assets/llm-settings-D9ko42Pi.js +0 -1
- package/build/assets/llm-subscription-service-B3K-97lP.js +0 -1
- package/build/assets/loader-circle-C5AnEN8r.js +0 -1
- package/build/assets/manifest-e1c3bc3b.js +0 -1
- package/build/assets/markdown-renderer-DzvgdZey.js +0 -8
- package/build/assets/mcp-marketplace-utils-DSLou4n7.js +0 -1
- package/build/assets/messages-B2l0qLVk.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-DIYgUdMm.js +0 -1
- package/build/assets/refresh-cw-B9GhC3QC.js +0 -1
- package/build/assets/root-CRK9fOFd.css +0 -1
- package/build/assets/root-layout-BFN2rCOy.js +0 -2
- package/build/assets/search-CYaiKHRp.js +0 -1
- package/build/assets/shared-conversation-BIAcuORk.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-CRf1dCm5.js +0 -1
- package/build/assets/use-is-authed-Bka89Xmm.js +0 -1
- package/build/assets/use-llm-profiles-CHxqoHiN.js +0 -1
- package/build/assets/use-save-agent-profile-CH9_EXQG.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
|
@@ -8,135 +8,143 @@ import "../node_modules/@openhands/typescript-client/dist/clients.js";
|
|
|
8
8
|
import { buildWebSocketUrl as a } from "../utils/websocket-url.js";
|
|
9
9
|
import { getAgentServerClientOptions as te } from "../api/agent-server-client-options.js";
|
|
10
10
|
import { useQueryClient as ne } from "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js";
|
|
11
|
-
import { isActionEvent as
|
|
12
|
-
import { useEventStore as
|
|
13
|
-
import { useWebSocket as
|
|
14
|
-
import { SERVER_CONNECTION_ERROR_MESSAGE as
|
|
15
|
-
import { useErrorMessageStore as
|
|
16
|
-
import { useOptimisticUserMessageStore as
|
|
17
|
-
import { useGoalStore as
|
|
18
|
-
import { handleCanvasUIAction as
|
|
19
|
-
import { getStoredConversationMetadata as
|
|
20
|
-
import { handleLaunchChildConversationAction as
|
|
21
|
-
import { handleActionEventCacheInvalidation as
|
|
22
|
-
import
|
|
23
|
-
import { trackError as
|
|
24
|
-
import { useReadConversationFile as
|
|
25
|
-
import
|
|
26
|
-
import { useConversationHistory as
|
|
27
|
-
import { recordModelSwitchMessage as
|
|
28
|
-
import { invalidateConversationQueries as
|
|
29
|
-
import
|
|
30
|
-
import { jsx as
|
|
11
|
+
import { isActionEvent as o, isAgentErrorEvent as re, isAgentServerEvent as ie, isAgentStatusConversationStateUpdateEvent as ae, isBrowserNavigateActionEvent as oe, isBrowserObservationEvent as se, isCanvasUIActionEvent as ce, isConversationStateUpdateEvent as s, isDisplayableErrorEvent as le, isExecuteBashActionEvent as ue, isExecuteBashObservationEvent as de, isFullStateConversationStateUpdateEvent as fe, isGoalConversationStateUpdateEvent as pe, isLaunchChildConversationActionEvent as me, isPlanningFileEditorObservationEvent as he, isStatsConversationStateUpdateEvent as ge, isSwitchLLMObservationEvent as _e, isUserMessageEvent as c } from "../types/agent-server/type-guards.js";
|
|
12
|
+
import { useEventStore as l } from "../stores/use-event-store.js";
|
|
13
|
+
import { useWebSocket as u } from "../hooks/use-websocket.js";
|
|
14
|
+
import { SERVER_CONNECTION_ERROR_MESSAGE as ve } from "../constants/server-connection-error.js";
|
|
15
|
+
import { useErrorMessageStore as ye } from "../stores/error-message-store.js";
|
|
16
|
+
import { useOptimisticUserMessageStore as be } from "../stores/optimistic-user-message-store.js";
|
|
17
|
+
import { useGoalStore as xe } from "../stores/goal-store.js";
|
|
18
|
+
import { handleCanvasUIAction as Se } from "../services/canvas-ui.js";
|
|
19
|
+
import { getStoredConversationMetadata as Ce, setStoredConversationMetadata as we } from "../api/conversation-metadata-store.js";
|
|
20
|
+
import { handleLaunchChildConversationAction as Te } from "../services/child-conversation-launch.js";
|
|
21
|
+
import { handleActionEventCacheInvalidation as Ee } from "../utils/cache-utils.js";
|
|
22
|
+
import De from "../api/event-service/event-service.api.js";
|
|
23
|
+
import { trackError as d } from "../utils/error-handler.js";
|
|
24
|
+
import { useReadConversationFile as Oe } from "../hooks/mutation/use-read-conversation-file.js";
|
|
25
|
+
import ke from "../stores/metrics-store.js";
|
|
26
|
+
import { useConversationHistory as Ae } from "../hooks/query/use-conversation-history.js";
|
|
27
|
+
import { recordModelSwitchMessage as je, seedModelSwitchesFromHistory as Me } from "../hooks/chat/record-model-switch-message.js";
|
|
28
|
+
import { invalidateConversationQueries as Ne, updateConversationLlmModelInCache as Pe } from "../hooks/mutation/conversation-mutation-utils.js";
|
|
29
|
+
import Fe, { createContext as Ie, useCallback as f, useContext as p, useEffect as m, useLayoutEffect as h, useMemo as g, useRef as _, useState as v } from "react";
|
|
30
|
+
import { jsx as Le } from "react/jsx-runtime";
|
|
31
31
|
//#region src/contexts/conversation-websocket-context.tsx
|
|
32
|
-
var
|
|
33
|
-
function
|
|
32
|
+
var y = Ie(void 0);
|
|
33
|
+
function b(e) {
|
|
34
34
|
return e.llm_message.content.filter((e) => e.type === "text").map((e) => e.text).join("");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
let [
|
|
38
|
-
|
|
39
|
-
}, [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
function x({ children: Ie, conversationId: p, conversationUrl: x, sessionApiKey: S, subConversations: C, subConversationIds: Re }) {
|
|
37
|
+
let [w, T] = v("CONNECTING"), [E, D] = v("CONNECTING"), O = Fe.useRef(!1), k = Fe.useRef(!1), A = ne(), j = l((e) => e.addEvent), ze = l((e) => e.addEvents), Be = l((e) => e.clearEventsForConversation), { setErrorMessage: M, removeErrorMessage: Ve, clearConnectionError: N } = ye(), P = be((e) => e.consumeMatchingPendingMessage), { setExecutionStatus: F } = i(), { appendInput: I, appendOutput: L } = t(), He = e((e) => e.reset), [R, z] = v(!0), [B, Ue] = v(null), { setPlanContent: V } = r(), { mutate: H } = Oe(), U = _(0), W = _(null), We = (e) => e?.toUpperCase().endsWith("PLAN.MD") ?? !1, G = f(() => {
|
|
38
|
+
N();
|
|
39
|
+
}, [N]), K = f((e) => {
|
|
40
|
+
let t = e.value.usage_to_metrics;
|
|
41
|
+
if (!t) return;
|
|
42
|
+
let n = Object.values(t).reduce((e, t) => {
|
|
43
|
+
e.cost += t.accumulated_cost, e.maxBudgetPerTask === null && t.max_budget_per_task !== null && (e.maxBudgetPerTask = t.max_budget_per_task);
|
|
44
|
+
let n = t.accumulated_token_usage;
|
|
45
|
+
return n && (e.usage = {
|
|
46
|
+
prompt_tokens: (e.usage?.prompt_tokens ?? 0) + n.prompt_tokens,
|
|
47
|
+
completion_tokens: (e.usage?.completion_tokens ?? 0) + n.completion_tokens,
|
|
48
|
+
cache_read_tokens: (e.usage?.cache_read_tokens ?? 0) + n.cache_read_tokens,
|
|
49
|
+
cache_write_tokens: (e.usage?.cache_write_tokens ?? 0) + n.cache_write_tokens,
|
|
50
|
+
context_window: Math.max(e.usage?.context_window ?? 0, n.context_window),
|
|
51
|
+
per_turn_token: Math.max(e.usage?.per_turn_token ?? 0, n.per_turn_token)
|
|
52
|
+
}), e;
|
|
53
|
+
}, {
|
|
54
|
+
cost: 0,
|
|
55
|
+
maxBudgetPerTask: null,
|
|
56
|
+
usage: null
|
|
57
|
+
});
|
|
58
|
+
ke.getState().setMetrics({
|
|
59
|
+
cost: n.cost,
|
|
60
|
+
max_budget_per_task: n.maxBudgetPerTask,
|
|
61
|
+
usage: n.usage
|
|
62
|
+
});
|
|
63
|
+
}, []), { data: q, isPending: Ge, isFetching: J, isError: Ke } = Ae(p), qe = !!p && Ge;
|
|
64
|
+
h(() => {
|
|
65
|
+
let e = p ?? null;
|
|
66
|
+
l.getState().loadedConversationId !== e && (Be(e), He(), ke.getState().resetMetrics());
|
|
59
67
|
}, [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
]),
|
|
64
|
-
if (!(!
|
|
65
|
-
|
|
66
|
-
for (let e of
|
|
68
|
+
p,
|
|
69
|
+
Be,
|
|
70
|
+
He
|
|
71
|
+
]), h(() => {
|
|
72
|
+
if (!(!q || q.events.length === 0) && (ze(q.events), p)) {
|
|
73
|
+
Me(p, l.getState().uiEvents);
|
|
74
|
+
for (let e of q.events) c(e) && P(p, b(e));
|
|
67
75
|
}
|
|
68
76
|
}, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
77
|
+
q,
|
|
78
|
+
ze,
|
|
79
|
+
p,
|
|
80
|
+
P
|
|
73
81
|
]);
|
|
74
|
-
let
|
|
75
|
-
if (
|
|
76
|
-
let e =
|
|
82
|
+
let Y = g(() => {
|
|
83
|
+
if (J) return null;
|
|
84
|
+
let e = q?.events ?? [], t = e[e.length - 1];
|
|
77
85
|
return !t || !("timestamp" in t) || !t.timestamp ? null : t.timestamp;
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
]),
|
|
84
|
-
if (!
|
|
85
|
-
let e =
|
|
86
|
+
}, [q, J]), X = g(() => !p || !x || J && !Ke ? null : a(p, x), [
|
|
87
|
+
p,
|
|
88
|
+
x,
|
|
89
|
+
J,
|
|
90
|
+
Ke
|
|
91
|
+
]), Z = g(() => {
|
|
92
|
+
if (!C?.length) return null;
|
|
93
|
+
let e = C[0];
|
|
86
94
|
return !e?.id || !e.conversation_url ? null : a(e.id, e.conversation_url);
|
|
87
|
-
}, [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
95
|
+
}, [C]), Je = g(() => Z ? w === "CONNECTING" || E === "CONNECTING" ? "CONNECTING" : w === "OPEN" && E === "OPEN" ? "OPEN" : w === "CLOSED" && E === "CLOSED" ? "CLOSED" : w === "CLOSING" || E === "CLOSING" ? "CLOSING" : "CLOSED" : w, [
|
|
96
|
+
w,
|
|
97
|
+
E,
|
|
98
|
+
Z
|
|
91
99
|
]);
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
m(() => {
|
|
101
|
+
B !== null && U.current >= B && R && z(!1);
|
|
94
102
|
}, [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
]),
|
|
99
|
-
if (!
|
|
100
|
-
let { path: e, conversationId: t } =
|
|
101
|
-
|
|
103
|
+
B,
|
|
104
|
+
R,
|
|
105
|
+
U
|
|
106
|
+
]), m(() => {
|
|
107
|
+
if (!R && W.current) {
|
|
108
|
+
let { path: e, conversationId: t } = W.current;
|
|
109
|
+
H({
|
|
102
110
|
conversationId: t,
|
|
103
111
|
filePath: e
|
|
104
112
|
}, {
|
|
105
113
|
onSuccess: (e) => {
|
|
106
|
-
|
|
114
|
+
V(e);
|
|
107
115
|
},
|
|
108
116
|
onError: (e) => {
|
|
109
117
|
console.warn("Failed to read conversation file:", e);
|
|
110
118
|
}
|
|
111
|
-
}),
|
|
119
|
+
}), W.current = null;
|
|
112
120
|
}
|
|
113
121
|
}, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
]),
|
|
118
|
-
|
|
119
|
-
}, [
|
|
120
|
-
|
|
121
|
-
}, [
|
|
122
|
-
let
|
|
122
|
+
R,
|
|
123
|
+
H,
|
|
124
|
+
V
|
|
125
|
+
]), m(() => {
|
|
126
|
+
O.current = !1, z(!!Re?.length), Ue(null), U.current = 0, W.current = null;
|
|
127
|
+
}, [Re]), m(() => {
|
|
128
|
+
O.current = !1, k.current = !1, W.current = null;
|
|
129
|
+
}, [p]);
|
|
130
|
+
let Ye = g(() => qe || R, [qe, R]), Xe = f((t) => {
|
|
123
131
|
try {
|
|
124
132
|
let r = JSON.parse(t.data);
|
|
125
|
-
if (
|
|
126
|
-
let t =
|
|
127
|
-
if (
|
|
128
|
-
if (
|
|
133
|
+
if (ie(r)) {
|
|
134
|
+
let t = l.getState().eventIds.has(r.id ?? ""), i = _e(r) ? r : null;
|
|
135
|
+
if (j(r), t) return;
|
|
136
|
+
if (le(r)) {
|
|
129
137
|
let e = r;
|
|
130
|
-
|
|
138
|
+
d({
|
|
131
139
|
message: e.detail,
|
|
132
140
|
source: "conversation",
|
|
133
141
|
metadata: {
|
|
134
142
|
eventId: e.id,
|
|
135
143
|
errorCode: e.code
|
|
136
144
|
}
|
|
137
|
-
}),
|
|
138
|
-
} else
|
|
139
|
-
if (
|
|
145
|
+
}), M(e.detail, "conversation", e.code);
|
|
146
|
+
} else G();
|
|
147
|
+
if (re(r) && d({
|
|
140
148
|
message: r.error,
|
|
141
149
|
source: "agent",
|
|
142
150
|
metadata: {
|
|
@@ -144,62 +152,62 @@ function b({ children: Le, conversationId: f, conversationUrl: b, sessionApiKey:
|
|
|
144
152
|
toolName: r.tool_name,
|
|
145
153
|
toolCallId: r.tool_call_id
|
|
146
154
|
}
|
|
147
|
-
}),
|
|
155
|
+
}), c(r) && p && (P(p, b(r)), n(p, { draftMessage: null })), o(r) && Ee(r, p || "test-conversation-id", A), s(r) && (fe(r) && F(r.value.execution_status), ae(r) && F(r.value), ge(r) && K(r), pe(r) && p && xe.getState().setStatus(p, r.value)), ue(r) && I(r.action.command), de(r) && L(r.observation.content.filter((e) => e.type === "text").map((e) => e.text).join("\n")), se(r)) {
|
|
148
156
|
let { screenshot_data: t } = r.observation;
|
|
149
157
|
if (t) {
|
|
150
158
|
let n = t.startsWith("data:") ? t : `data:image/png;base64,${t}`;
|
|
151
159
|
e.getState().setScreenshotSrc(n);
|
|
152
160
|
}
|
|
153
161
|
}
|
|
154
|
-
if (
|
|
155
|
-
|
|
156
|
-
let e =
|
|
157
|
-
|
|
162
|
+
if (oe(r) && e.getState().setUrl(r.action.url), p && i && !i.observation.is_error) {
|
|
163
|
+
je(p, i.observation.profile_name);
|
|
164
|
+
let e = Ce(p);
|
|
165
|
+
we(p, {
|
|
158
166
|
selected_repository: e?.selected_repository ?? null,
|
|
159
167
|
selected_branch: e?.selected_branch ?? null,
|
|
160
168
|
git_provider: e?.git_provider ?? null,
|
|
161
169
|
selected_workspace: e?.selected_workspace ?? null,
|
|
162
170
|
active_profile: i.observation.profile_name,
|
|
163
171
|
plugins: e?.plugins ?? null
|
|
164
|
-
}), i.observation.active_model &&
|
|
172
|
+
}), i.observation.active_model && Pe(A, p, i.observation.active_model), Ne(A, p);
|
|
165
173
|
}
|
|
166
|
-
|
|
174
|
+
ce(r) && Se(r.action, p ?? null), p && me(r) && Te(r.action, p, r.tool_call_id);
|
|
167
175
|
}
|
|
168
176
|
} catch (e) {
|
|
169
177
|
console.warn("Failed to parse WebSocket message as JSON:", e);
|
|
170
178
|
}
|
|
171
179
|
}, [
|
|
172
|
-
A,
|
|
173
180
|
j,
|
|
174
|
-
|
|
175
|
-
k,
|
|
176
|
-
f,
|
|
181
|
+
M,
|
|
177
182
|
P,
|
|
183
|
+
A,
|
|
184
|
+
p,
|
|
178
185
|
F,
|
|
179
186
|
I,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
187
|
+
L,
|
|
188
|
+
K,
|
|
189
|
+
G
|
|
190
|
+
]), Ze = f((e) => {
|
|
183
191
|
try {
|
|
184
192
|
let t = JSON.parse(e.data);
|
|
185
|
-
if (
|
|
186
|
-
let e =
|
|
187
|
-
if (
|
|
193
|
+
if (R && (U.current += 1, B !== null && U.current >= B && z(!1)), ie(t)) {
|
|
194
|
+
let e = l.getState().eventIds.has(t.id ?? "");
|
|
195
|
+
if (j({
|
|
188
196
|
...t,
|
|
189
197
|
isFromPlanningAgent: !0
|
|
190
198
|
}), e) return;
|
|
191
|
-
if (
|
|
199
|
+
if (le(t)) {
|
|
192
200
|
let e = t;
|
|
193
|
-
|
|
201
|
+
d({
|
|
194
202
|
message: e.detail,
|
|
195
203
|
source: "planning_conversation",
|
|
196
204
|
metadata: {
|
|
197
205
|
eventId: e.id,
|
|
198
206
|
errorCode: e.code
|
|
199
207
|
}
|
|
200
|
-
}),
|
|
201
|
-
} else
|
|
202
|
-
if (
|
|
208
|
+
}), M(e.detail, "conversation", e.code);
|
|
209
|
+
} else G();
|
|
210
|
+
if (re(t) && d({
|
|
203
211
|
message: t.error,
|
|
204
212
|
source: "planning_agent",
|
|
205
213
|
metadata: {
|
|
@@ -207,19 +215,19 @@ function b({ children: Le, conversationId: f, conversationUrl: b, sessionApiKey:
|
|
|
207
215
|
toolName: t.tool_name,
|
|
208
216
|
toolCallId: t.tool_call_id
|
|
209
217
|
}
|
|
210
|
-
}),
|
|
218
|
+
}), c(t) && p && (P(p, b(t)), n(p, { draftMessage: null })), o(t) && Ee(t, C?.[0]?.id || "test-conversation-id", A), s(t) && (fe(t) && F(t.value.execution_status), ae(t) && F(t.value), ge(t) && K(t), pe(t) && p && xe.getState().setStatus(p, t.value)), ue(t) && I(t.action.command), de(t) && L(t.observation.content.filter((e) => e.type === "text").map((e) => e.text).join("\n")), he(t)) {
|
|
211
219
|
let { path: e } = t.observation;
|
|
212
|
-
if (
|
|
213
|
-
let t =
|
|
214
|
-
t && e && (
|
|
220
|
+
if (We(e)) {
|
|
221
|
+
let t = C?.[0]?.id;
|
|
222
|
+
t && e && (R ? W.current = {
|
|
215
223
|
path: e,
|
|
216
224
|
conversationId: t
|
|
217
|
-
} :
|
|
225
|
+
} : H({
|
|
218
226
|
conversationId: t,
|
|
219
227
|
filePath: e
|
|
220
228
|
}, {
|
|
221
229
|
onSuccess: (e) => {
|
|
222
|
-
|
|
230
|
+
V(e);
|
|
223
231
|
},
|
|
224
232
|
onError: (e) => {
|
|
225
233
|
console.warn("Failed to read conversation file:", e);
|
|
@@ -232,97 +240,97 @@ function b({ children: Le, conversationId: f, conversationUrl: b, sessionApiKey:
|
|
|
232
240
|
console.warn("Failed to parse WebSocket message as JSON:", e);
|
|
233
241
|
}
|
|
234
242
|
}, [
|
|
235
|
-
A,
|
|
236
|
-
L,
|
|
237
|
-
z,
|
|
238
243
|
j,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
f,
|
|
244
|
+
R,
|
|
245
|
+
B,
|
|
246
|
+
M,
|
|
243
247
|
P,
|
|
248
|
+
A,
|
|
249
|
+
C,
|
|
250
|
+
p,
|
|
244
251
|
F,
|
|
245
252
|
I,
|
|
253
|
+
L,
|
|
254
|
+
H,
|
|
246
255
|
V,
|
|
247
|
-
|
|
248
|
-
G
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
queryParams: J ? {
|
|
256
|
+
K,
|
|
257
|
+
G
|
|
258
|
+
]), Qe = g(() => ({
|
|
259
|
+
queryParams: Y ? {
|
|
252
260
|
resend_mode: "since",
|
|
253
|
-
after_timestamp:
|
|
261
|
+
after_timestamp: Y
|
|
254
262
|
} : { resend_mode: "all" },
|
|
255
|
-
sessionApiKey:
|
|
263
|
+
sessionApiKey: S,
|
|
256
264
|
reconnect: { enabled: !0 },
|
|
257
265
|
onOpen: () => {
|
|
258
|
-
|
|
266
|
+
T("OPEN"), O.current = !0, N();
|
|
259
267
|
},
|
|
260
268
|
onClose: () => {
|
|
261
|
-
|
|
269
|
+
T("CLOSED");
|
|
262
270
|
},
|
|
263
271
|
onError: () => {
|
|
264
|
-
|
|
272
|
+
T("CLOSED"), O.current && M(ve, "connection");
|
|
265
273
|
},
|
|
266
|
-
onMessage:
|
|
274
|
+
onMessage: Xe
|
|
267
275
|
}), [
|
|
268
|
-
|
|
269
|
-
j,
|
|
276
|
+
Xe,
|
|
270
277
|
M,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
278
|
+
N,
|
|
279
|
+
S,
|
|
280
|
+
Y
|
|
281
|
+
]), $e = g(() => {
|
|
282
|
+
let e = { resend_all: !0 }, t = C?.[0];
|
|
275
283
|
return {
|
|
276
284
|
queryParams: e,
|
|
277
|
-
sessionApiKey: t?.session_api_key ??
|
|
285
|
+
sessionApiKey: t?.session_api_key ?? S,
|
|
278
286
|
reconnect: { enabled: !0 },
|
|
279
287
|
onOpen: async () => {
|
|
280
|
-
if (
|
|
281
|
-
let e = await
|
|
282
|
-
|
|
288
|
+
if (D("OPEN"), k.current = !0, N(), t?.id && t.conversation_url) try {
|
|
289
|
+
let e = await De.getEventCount(t.id, t.conversation_url, t.session_api_key);
|
|
290
|
+
Ue(e), e === 0 && z(!1);
|
|
283
291
|
} catch {
|
|
284
|
-
|
|
292
|
+
z(!1);
|
|
285
293
|
}
|
|
286
294
|
},
|
|
287
295
|
onClose: () => {
|
|
288
|
-
|
|
296
|
+
D("CLOSED");
|
|
289
297
|
},
|
|
290
298
|
onError: () => {
|
|
291
|
-
|
|
299
|
+
D("CLOSED"), k.current && M(ve, "connection");
|
|
292
300
|
},
|
|
293
|
-
onMessage:
|
|
301
|
+
onMessage: Ze
|
|
294
302
|
};
|
|
295
303
|
}, [
|
|
296
|
-
|
|
297
|
-
j,
|
|
304
|
+
Ze,
|
|
298
305
|
M,
|
|
299
|
-
|
|
300
|
-
S
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
306
|
+
N,
|
|
307
|
+
S,
|
|
308
|
+
C
|
|
309
|
+
]), { socket: Q, reconnect: et } = u(X || "", Qe), { socket: $, reconnect: tt } = u(Z || "", $e), nt = f(() => {
|
|
310
|
+
if (Ve(), r.getState().conversationMode === "plan" && Z) {
|
|
311
|
+
tt();
|
|
304
312
|
return;
|
|
305
313
|
}
|
|
306
|
-
|
|
314
|
+
et();
|
|
307
315
|
}, [
|
|
308
|
-
|
|
316
|
+
Z,
|
|
317
|
+
et,
|
|
309
318
|
tt,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
let t = r.getState().conversationMode === "plan" ? Q : Z;
|
|
319
|
+
Ve
|
|
320
|
+
]), rt = f(async (e) => {
|
|
321
|
+
let t = r.getState().conversationMode === "plan" ? $ : Q;
|
|
314
322
|
if (t?.readyState !== WebSocket.OPEN) {
|
|
315
|
-
if (!
|
|
323
|
+
if (!p) {
|
|
316
324
|
let e = /* @__PURE__ */ Error("No conversation ID available");
|
|
317
|
-
throw
|
|
325
|
+
throw M(e.message), e;
|
|
318
326
|
}
|
|
319
327
|
try {
|
|
320
|
-
return await new ee(te()).sendEvent(
|
|
328
|
+
return await new ee(te()).sendEvent(p, {
|
|
321
329
|
role: "user",
|
|
322
330
|
content: e.content
|
|
323
331
|
}, { run: !0 }), { queued: !0 };
|
|
324
332
|
} catch (e) {
|
|
325
|
-
throw
|
|
333
|
+
throw M(e instanceof Error ? e.message : "Failed to queue message for delivery"), e;
|
|
326
334
|
}
|
|
327
335
|
}
|
|
328
336
|
try {
|
|
@@ -331,73 +339,73 @@ function b({ children: Le, conversationId: f, conversationUrl: b, sessionApiKey:
|
|
|
331
339
|
run: !0
|
|
332
340
|
})), { queued: !1 };
|
|
333
341
|
} catch (e) {
|
|
334
|
-
throw
|
|
342
|
+
throw M(e instanceof Error ? e.message : "Failed to send message"), e;
|
|
335
343
|
}
|
|
336
344
|
}, [
|
|
337
|
-
Z,
|
|
338
345
|
Q,
|
|
339
|
-
|
|
340
|
-
|
|
346
|
+
$,
|
|
347
|
+
M,
|
|
348
|
+
p
|
|
341
349
|
]);
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
switch (
|
|
350
|
+
m(() => {
|
|
351
|
+
Q && X && (() => {
|
|
352
|
+
switch (Q.readyState) {
|
|
345
353
|
case WebSocket.CONNECTING:
|
|
346
|
-
|
|
354
|
+
T("CONNECTING");
|
|
347
355
|
break;
|
|
348
356
|
case WebSocket.OPEN:
|
|
349
|
-
|
|
357
|
+
T("OPEN");
|
|
350
358
|
break;
|
|
351
359
|
case WebSocket.CLOSING:
|
|
352
|
-
|
|
360
|
+
T("CLOSING");
|
|
353
361
|
break;
|
|
354
362
|
case WebSocket.CLOSED:
|
|
355
|
-
|
|
363
|
+
T("CLOSED");
|
|
356
364
|
break;
|
|
357
365
|
default:
|
|
358
|
-
|
|
366
|
+
T("CLOSED");
|
|
359
367
|
break;
|
|
360
368
|
}
|
|
361
369
|
})();
|
|
362
|
-
}, [
|
|
363
|
-
|
|
364
|
-
switch (
|
|
370
|
+
}, [Q, X]), m(() => {
|
|
371
|
+
$ && Z && (() => {
|
|
372
|
+
switch ($.readyState) {
|
|
365
373
|
case WebSocket.CONNECTING:
|
|
366
|
-
|
|
374
|
+
D("CONNECTING");
|
|
367
375
|
break;
|
|
368
376
|
case WebSocket.OPEN:
|
|
369
|
-
|
|
377
|
+
D("OPEN");
|
|
370
378
|
break;
|
|
371
379
|
case WebSocket.CLOSING:
|
|
372
|
-
|
|
380
|
+
D("CLOSING");
|
|
373
381
|
break;
|
|
374
382
|
case WebSocket.CLOSED:
|
|
375
|
-
|
|
383
|
+
D("CLOSED");
|
|
376
384
|
break;
|
|
377
385
|
default:
|
|
378
|
-
|
|
386
|
+
D("CLOSED");
|
|
379
387
|
break;
|
|
380
388
|
}
|
|
381
389
|
})();
|
|
382
|
-
}, [
|
|
383
|
-
let it =
|
|
384
|
-
connectionState:
|
|
385
|
-
sendMessage:
|
|
386
|
-
isLoadingHistory:
|
|
387
|
-
reconnect:
|
|
390
|
+
}, [$, Z]);
|
|
391
|
+
let it = g(() => ({
|
|
392
|
+
connectionState: Je,
|
|
393
|
+
sendMessage: rt,
|
|
394
|
+
isLoadingHistory: Ye,
|
|
395
|
+
reconnect: nt
|
|
388
396
|
}), [
|
|
397
|
+
Je,
|
|
398
|
+
rt,
|
|
389
399
|
Ye,
|
|
390
|
-
|
|
391
|
-
Xe,
|
|
392
|
-
rt
|
|
400
|
+
nt
|
|
393
401
|
]);
|
|
394
|
-
return /* @__PURE__ */
|
|
402
|
+
return /* @__PURE__ */ Le(y.Provider, {
|
|
395
403
|
value: it,
|
|
396
|
-
children:
|
|
404
|
+
children: Ie
|
|
397
405
|
});
|
|
398
406
|
}
|
|
399
|
-
var
|
|
407
|
+
var S = () => p(y) || null;
|
|
400
408
|
//#endregion
|
|
401
|
-
export {
|
|
409
|
+
export { x as ConversationWebSocketProvider, S as useConversationWebSocket };
|
|
402
410
|
|
|
403
411
|
//# sourceMappingURL=conversation-websocket-context.js.map
|