@openhands/agent-canvas 1.15.0 → 1.17.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 +15 -1
- package/README.windows.md +2 -2
- package/build/assets/{acp-providers-BKvmTf82.js → acp-providers-DrjNsPOH.js} +1 -1
- package/build/assets/active-backend-context-rZiLJRUc.js +2 -0
- package/build/assets/{agent-context-settings-D3PjSTU1.js → agent-context-settings-CJUrcBut.js} +1 -1
- package/build/assets/agent-profiles-service.api-Biieml2L.js +1 -0
- package/build/assets/agent-profiles-settings-x6RvPsq7.js +1 -0
- package/build/assets/agent-server-client-options-BikiNwTa.js +1 -0
- package/build/assets/agent-server-conversation-service.api-DYFsNHKf.js +88 -0
- package/build/assets/agent-settings-BJyovpJ_.js +1 -0
- package/build/assets/agent-settings-CpY3zObk.js +2 -0
- package/build/assets/alert-banner-vARz1idS.js +1 -0
- package/build/assets/{api-error-message-BJyfWp6p.js → api-error-message-Ve79qDcN.js} +1 -1
- package/build/assets/api-key-entry-screen-CsMuBhoP.js +1 -0
- package/build/assets/{app-settings-CbHqzQus.js → app-settings-BaJ7nfHt.js} +1 -1
- package/build/assets/automation-detail-CVoGDrKq.js +3 -0
- package/build/assets/{automation-export-BRopEHMu.js → automation-export-DxY47m3T.js} +1 -1
- package/build/assets/automation-git-sync-CRMP9Bbm.js +1 -0
- package/build/assets/automation-setup-route-072beLz1.js +3 -0
- package/build/assets/{automation-templates-C_0FZgLG.js → automation-templates-4C4PM8K7.js} +1 -1
- package/build/assets/automations-list-xuqTSQL4.js +1 -0
- package/build/assets/{back-nav-button-Dm9tIjVf.js → back-nav-button-B8tH0BEp.js} +1 -1
- package/build/assets/backend-form-modal-0aJmWdsa.js +1 -0
- package/build/assets/{backend-synced-settings-badge-3fOwg6Bd.js → backend-synced-settings-badge-B7rKWBir.js} +1 -1
- package/build/assets/{badge-D4SqUCsR.js → badge-CcGx2TaV.js} +1 -1
- package/build/assets/{base-modal-C7_BDl_U.js → base-modal-DTULovNc.js} +1 -1
- package/build/assets/bot-CLMxGFaq.js +1 -0
- package/build/assets/{brand-button-Dxv6PDeN.js → brand-button-DxPO4Lf8.js} +1 -1
- package/build/assets/browser-C-_qBasq.js +46 -0
- package/build/assets/{browser-tab-BAl4ckJE.js → browser-tab-DZanIw5m.js} +1 -1
- package/build/assets/canvas-extension-page-o_cWgE9B.js +1 -0
- package/build/assets/canvas-extensions-DSgNlCha.js +1 -0
- package/build/assets/canvas-extensions-runtime-DdnkgJXV.js +1 -0
- package/build/assets/{chat-send-button-DWwR2cgI.js → chat-send-button-B3SFSIg5.js} +1 -1
- package/build/assets/check-fDEfgSzj.js +1 -0
- package/build/assets/chevron-down-CFrWHqu8.js +1 -0
- package/build/assets/chevron-right-C5roOrJu.js +1 -0
- package/build/assets/circle-check-ClTzJTdb.js +1 -0
- package/build/assets/{circle-plus-check-toggle-CBh_qomE.js → circle-plus-check-toggle-Fr-h-mbL.js} +1 -1
- package/build/assets/{cloud-funnel-analytics-287iIERo.js → cloud-funnel-analytics-BQanUEEC.js} +1 -1
- package/build/assets/{cog-C4rrw-ZK.js → cog-VBlRo6iw.js} +1 -1
- package/build/assets/command-menu-BT3Ia5Ru.js +1 -0
- package/build/assets/commits-tab-2jhtaohl.js +1 -0
- package/build/assets/{condenser-settings-BcNmYR4s.js → condenser-settings-eVKFMvap.js} +1 -1
- package/build/assets/confirmation-modal-gIFHeZt6.js +1 -0
- package/build/assets/{context-menu-list-item-lVYETtY5.js → context-menu-list-item-DDROe12Z.js} +1 -1
- package/build/assets/conversation-BnjJSFf5.js +93 -0
- package/build/assets/conversation-DZ578rOX.js +1 -0
- package/build/assets/conversation-panel-DZ578rOX.js +1 -0
- package/build/assets/conversation-state-store-D1_G_9I-.js +1 -0
- package/build/assets/{conversation-store-Ca3ghXap.js → conversation-store-DVVfkCsk.js} +1 -1
- package/build/assets/{conversation-tab-empty-state-HJtkmHZj.js → conversation-tab-empty-state-DKlzAz5c.js} +1 -1
- package/build/assets/{copy-to-clipboard-button-Cjkswvnj.js → copy-to-clipboard-button-B3w0X7WH.js} +1 -1
- package/build/assets/{device-verify-EZhHhBT7.js → device-verify-BfkCzyFB.js} +1 -1
- package/build/assets/{dropdown-classes-DJe-E6MC.js → dropdown-classes-B9kJVDIk.js} +1 -1
- package/build/assets/edit-automation-modal-BwhJ39JT.js +1 -0
- package/build/assets/empty-state-RZz0OfnY.js +1 -0
- package/build/assets/{entry.client-C7Bi2tkU.js → entry.client-Ds8LVp-E.js} +2 -2
- package/build/assets/enum-filter-dropdown-C4pW0ORd.js +1 -0
- package/build/assets/{environment-switch-overlay-CEKrFiMw.js → environment-switch-overlay-P2ZAuzov.js} +1 -1
- package/build/assets/{error-state-BALXiBNy.js → error-state-B_5cgNPJ.js} +1 -1
- package/build/assets/extensions-hub-DsaUr4ca.js +1 -0
- package/build/assets/extensions-navigation-CRMZd-FE.js +1 -0
- package/build/assets/external-link-DQtv7eTh.js +1 -0
- package/build/assets/files-tab-CCgAcVdc.js +1 -0
- package/build/assets/{form-control-classes-CGw40z5h.js → form-control-classes-B-z85REi.js} +1 -1
- package/build/assets/format-model-name-CasAP3nd.js +1 -0
- package/build/assets/get-git-path-EHrSDxTM.js +1 -0
- package/build/assets/git-repo-dropdown-D2WEQ97X.js +1 -0
- package/build/assets/{git-repo-dropdown-ai8qaNkD.js → git-repo-dropdown-DVeCUUXG.js} +1 -1
- package/build/assets/{highlighted-source-view-C3sxykQi.js → highlighted-source-view-DjHO3SdW.js} +1 -1
- package/build/assets/home-BorS_vdS.js +1 -0
- package/build/assets/home-aIMbHw5M.js +1 -0
- package/build/assets/home-automation-run-tooltip-CpHNFiFl.js +1 -0
- package/build/assets/home-store-DyXz0w6d.js +1 -0
- package/build/assets/hooks-service-C6dpRtZM.js +1 -0
- package/build/assets/index-home-zKFuKK2B.js +1 -0
- package/build/assets/info-CTIdjttz.js +1 -0
- package/build/assets/install-server-modal-DUiZMc8u.js +1 -0
- package/build/assets/kebab-menu-item-content-mm04SBD3.js +1 -0
- package/build/assets/{key-Cn5za3rg.js → key-CfXbJa8w.js} +1 -1
- package/build/assets/{launch-C1ieiOGe.js → launch-BSIf9KEg.js} +1 -1
- package/build/assets/list-filter-CNpqTWVY.js +1 -0
- package/build/assets/{list-todo-Cuu-STFc.js → list-todo-ByXMdY4W.js} +1 -1
- package/build/assets/llm-not-configured-banner-z_QRSeV0.js +27 -0
- package/build/assets/llm-settings-B-5AHMiX.js +1 -0
- package/build/assets/llm-settings-B3SjHDmA.js +1 -0
- package/build/assets/llm-subscription-service-aDNBQ7Gq.js +1 -0
- package/build/assets/loader-circle-Dex47vVW.js +1 -0
- package/build/assets/{loading-spinner-0L3ZTToZ.js → loading-spinner-DfHI77BA.js} +1 -1
- package/build/assets/manage-backends-modal-q1NdFisr.js +1 -0
- package/build/assets/manifest-8920b615.js +1 -0
- package/build/assets/{manifest-subpage-layout-BGhiUQbA.js → manifest-subpage-layout-BQQy5ipR.js} +1 -1
- package/build/assets/{map-provider-B9LTm23I.js → map-provider-DXvssjw9.js} +1 -1
- package/build/assets/markdown-renderer-rivLvYh-.js +8 -0
- package/build/assets/{mcp-CKbR4Vft.js → mcp-CEXDhQWn.js} +1 -1
- package/build/assets/{mcp-marketplace-utils-C13fFccR.js → mcp-marketplace-utils-Cn_NIMWM.js} +1 -1
- package/build/assets/mcp-page-LGYIICMG.js +9 -0
- package/build/assets/messages-DUSeANAh.js +41 -0
- package/build/assets/{modal-body-CMOc2tLl.js → modal-body-DJw4xBki.js} +1 -1
- package/build/assets/{modal-classes-BAb4Y_BG.js → modal-classes-Dg0ngBPO.js} +1 -1
- package/build/assets/{modal-close-button-CkJ0Ktjj.js → modal-close-button-B9j4nasm.js} +1 -1
- package/build/assets/{mouse-pointer-click-CsgRs_-r.js → mouse-pointer-click-DEhsSUpu.js} +1 -1
- package/build/assets/onboarding-BjFebfs5.js +1 -0
- package/build/assets/onboarding-modal-DDTjOpyd.js +1 -0
- package/build/assets/organization-service.api-Cyg1Tn03.js +1 -0
- package/build/assets/pencil-D5c47kyN.js +1 -0
- package/build/assets/pin-C7vMagvf.js +1 -0
- package/build/assets/planner-tab-D8f2Y3rn.js +1 -0
- package/build/assets/plug-CeaqeF6u.js +1 -0
- package/build/assets/plugins-management-service-Bh_pBuf-.js +1 -0
- package/build/assets/plus-B3wvU06-.js +1 -0
- package/build/assets/profiles-service.api-BbOK0EkF.js +1 -0
- package/build/assets/providers-2gIIkz2N.js +1 -0
- package/build/assets/proxy-CBgMd2zf.js +1 -0
- package/build/assets/{puzzle-A9pGxxai.js → puzzle-DdAqbUrb.js} +1 -1
- package/build/assets/recommended-automations-launcher-YLAQTp4s.js +1 -0
- package/build/assets/refresh-cw-DEQdPCpH.js +1 -0
- package/build/assets/root-Bye_XmEL.js +2 -0
- package/build/assets/root-Cnwwzgo0.css +1 -0
- package/build/assets/root-layout-CSAwxBGM.js +2 -0
- package/build/assets/schema-field-CK0xYNbO.js +1 -0
- package/build/assets/scroll-fade-state-Dt_fx2kf.js +1 -0
- package/build/assets/sdk-section-page-Da73Rs_o.js +1 -0
- package/build/assets/secret-form-CB2VwYYg.js +1 -0
- package/build/assets/secrets-service-Cr8g8xuv.js +1 -0
- package/build/assets/{secrets-settings-BizaTEr1.js → secrets-settings-Bh0udeKv.js} +1 -1
- package/build/assets/settings-CKqk8ZnH.js +1 -0
- package/build/assets/settings-DmyIgRxO.js +1 -0
- package/build/assets/{settings-dropdown-input-tM0A0ipy.js → settings-dropdown-input-DVpyD87C.js} +1 -1
- package/build/assets/settings-index-BSJUFmjE.js +1 -0
- package/build/assets/{settings-input-C03KUoSC.js → settings-input-C0dd8Utu.js} +1 -1
- package/build/assets/{settings-list-classes-BJ0g8rWj.js → settings-list-classes-Ds4jPBHK.js} +1 -1
- package/build/assets/{settings-modal-AzEF1QPP.js → settings-modal-yStgEh2o.js} +1 -1
- package/build/assets/settings-service.api-9_xdv_mh.js +1 -0
- package/build/assets/{settings-switch-CQE0EGC-.js → settings-switch-B78Khmyz.js} +1 -1
- package/build/assets/{settings-utils-ClYOkbbI.js → settings-utils-8GIIgOQL.js} +1 -1
- package/build/assets/shared-conversation-DM96X4KV.js +1 -0
- package/build/assets/shield-check-DO7wa_eu.js +1 -0
- package/build/assets/{sidebar-layout-D3hE08wK.js → sidebar-layout-EPfWxk11.js} +1 -1
- package/build/assets/sidebar-mobile-menu-toggle-D5GR5xT9.js +1 -0
- package/build/assets/sidebar-nav-link-_t4_Ef-9.js +1 -0
- package/build/assets/{sidebar-onboarding-checklist-storage-3qYflszY.js → sidebar-onboarding-checklist-storage-DbDX-Wvj.js} +1 -1
- package/build/assets/sidebar-store-CSDFK0W5.js +1 -0
- package/build/assets/{skill-card-pill-row-CFxjoqxn.js → skill-card-pill-row-989y15jV.js} +1 -1
- package/build/assets/skill-enablement-DXeaImBz.js +1 -0
- package/build/assets/skill-filter-BBeZ4JEP.js +2 -0
- package/build/assets/{skill-icon-badge-CPQJ6A-I.js → skill-icon-badge-BDhQ-tQ0.js} +1 -1
- package/build/assets/skill-scope-Dz3kPH3P.js +1 -0
- package/build/assets/skills-plugins-e3CYGdUJ.js +1 -0
- package/build/assets/skills-settings-3e-FuHw_.js +1 -0
- package/build/assets/styled-tooltip-Pd22BIvr.js +1 -0
- package/build/assets/{task-list-tab-04GNQuii.js → task-list-tab-3Jg8ywch.js} +1 -1
- package/build/assets/{terminal-Cj0iHIW7.js → terminal-onXx0_Qz.js} +1 -1
- package/build/assets/toggle-switch-lwQtxDcm.js +1 -0
- package/build/assets/trash-2-ZhKuTLiz.js +1 -0
- package/build/assets/trash-B6OIe4yX.js +1 -0
- package/build/assets/triangle-alert-BajLPpQg.js +1 -0
- package/build/assets/{typography-SgFy466J.js → typography-HLLg_FAn.js} +1 -1
- package/build/assets/usage-tab-Cm-9j3UK.js +1 -0
- package/build/assets/use-acp-credential-form-BARcvjYE.js +1 -0
- package/build/assets/use-activate-agent-profile-BLKML6vQ.js +1 -0
- package/build/assets/use-agent-profiles-1P91KSXz.js +1 -0
- package/build/assets/{use-automation-health-BxXdzZMP.js → use-automation-health-BZkQNEA8.js} +1 -1
- package/build/assets/use-automation-permissions-B_RpvL-s.js +1 -0
- package/build/assets/{use-automations-zYb0dUny.js → use-automations-Cg0PDIZr.js} +1 -1
- package/build/assets/{use-can-manage-org-profiles-BWMahtUh.js → use-can-manage-org-profiles-BbN6KfDr.js} +1 -1
- package/build/assets/use-canvas-extensions-CFUpHat6.js +1 -0
- package/build/assets/{use-cloud-current-user-id-CPHMDG-C.js → use-cloud-current-user-id-Dk0rjr63.js} +1 -1
- package/build/assets/use-config-DpafU_QP.js +1 -0
- package/build/assets/use-create-conversation-1YgmAHt-.js +1 -0
- package/build/assets/use-create-secret-D8p9ybQj.js +1 -0
- package/build/assets/{use-get-secrets-BT4ihRwj.js → use-get-secrets-CQ4b0qK8.js} +1 -1
- package/build/assets/use-is-authed-BRPjCRKM.js +1 -0
- package/build/assets/{use-launch-skill-in-chat-BYjYihBP.js → use-launch-skill-in-chat-DeYa1tFM.js} +1 -1
- package/build/assets/use-llm-configured-DGm8FiRR.js +1 -0
- package/build/assets/use-llm-profiles-BTTtpW4z.js +1 -0
- package/build/assets/use-manifest-capabilities-AOWGcu0j.js +1 -0
- package/build/assets/use-onboarding-completion-CoINurkm.js +1 -0
- package/build/assets/use-pinned-home-route-D6krwXjy.js +1 -0
- package/build/assets/use-plugins-marketplace-mLsIDhBv.js +1 -0
- package/build/assets/use-save-agent-profile-CxyO9YG-.js +1 -0
- package/build/assets/{use-save-settings-CUZW6yXP.js → use-save-settings-3U5K9-8x.js} +1 -1
- package/build/assets/use-settings-Dn00UISA.js +1 -0
- package/build/assets/use-settings-nav-items-vrjxTqcu.js +16 -0
- package/build/assets/use-tracking-B9prBsrq.js +3 -0
- package/build/assets/{use-user-conversation-DT0_QCnL.js → use-user-conversation-ZWlXtbZb.js} +1 -1
- package/build/assets/{useInfiniteQuery-CgeUQPfs.js → useInfiniteQuery-BzrRqjLg.js} +1 -1
- package/build/assets/{useMutation-DFnzkf6f.js → useMutation-CJuK90oc.js} +1 -1
- package/build/assets/{useQueries-BhbrGEf1.js → useQueries-CykmpT-a.js} +1 -1
- package/build/assets/{useQuery-BXWbZBZl.js → useQuery-S6j94er1.js} +1 -1
- package/build/assets/utils-BOco8mxR.js +1 -0
- package/build/assets/{vendor~conversation-panel~conversation-CTvDDiXg.js → vendor~conversation-panel~conversation-4eJ0tml3.js} +1 -1
- package/build/assets/{vendor~entry.client-BFE7Llz9.js → vendor~entry.client-CoCfUXUF.js} +1 -1
- package/build/assets/{vendor~entry.client-BaKt_PIp.js → vendor~entry.client-DA2izTjq.js} +1 -1
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js +2 -0
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js +185 -0
- package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-DnDoaYNi.js} +1 -1
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation-BTyukeM-.js → vendor~index-home~home~conversation-panel~conversation-CSFLzmTN.js} +1 -1
- package/build/assets/vendor~root-layout-n8XCEXG8.js +1 -0
- package/build/assets/{vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js → vendor~root-layout~conversation-panel~conversation-3Idg1_U3.js} +1 -1
- package/build/assets/{vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js → vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-DkPlXWl9.js} +1 -1
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation-DgQ564nC.js +1 -0
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-CxhwKuAd.js +1 -0
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-CnsDDzeE.js} +2 -2
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iyia17eu-CV850oio.js +1 -0
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-BPjI-atc.js} +125 -15
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-BgxDvUcf.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-C7HiY4Ae.js} +42 -3
- package/build/assets/{verification-settings-Bj6bo097.js → verification-settings-u2POabjH.js} +1 -1
- package/build/assets/{wrench-hi7Q13dF.js → wrench-CkgI4rxA.js} +1 -1
- package/build/assets/x-By6qCmtY.js +1 -0
- package/build/index.html +4 -4
- package/build/locales/ar/openhands.json +94 -25
- package/build/locales/ca/openhands.json +94 -25
- package/build/locales/de/openhands.json +94 -25
- package/build/locales/en/openhands.json +94 -25
- package/build/locales/es/openhands.json +94 -25
- package/build/locales/fr/openhands.json +94 -25
- package/build/locales/it/openhands.json +94 -25
- package/build/locales/ja/openhands.json +94 -25
- package/build/locales/ko-KR/openhands.json +94 -25
- package/build/locales/no/openhands.json +94 -25
- package/build/locales/pt/openhands.json +94 -25
- package/build/locales/tr/openhands.json +94 -25
- package/build/locales/uk/openhands.json +94 -25
- package/build/locales/zh-CN/openhands.json +94 -25
- package/build/locales/zh-TW/openhands.json +94 -25
- package/config/defaults.json +9 -5
- package/dist/api/agent-profiles-service/profile-field-support.d.ts +26 -0
- package/dist/api/agent-server-adapter.cjs +3 -3
- package/dist/api/agent-server-adapter.cjs.map +1 -1
- package/dist/api/agent-server-adapter.d.ts +72 -12
- package/dist/api/agent-server-adapter.js +249 -145
- package/dist/api/agent-server-adapter.js.map +1 -1
- 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.d.ts +21 -0
- package/dist/api/agent-server-compatibility.js +52 -38
- package/dist/api/agent-server-compatibility.js.map +1 -1
- package/dist/api/agent-server-config.cjs +1 -1
- package/dist/api/agent-server-config.cjs.map +1 -1
- package/dist/api/agent-server-config.d.ts +32 -0
- package/dist/api/agent-server-config.js +21 -5
- package/dist/api/agent-server-config.js.map +1 -1
- package/dist/api/automation-service/automation-service.api.cjs +1 -1
- package/dist/api/automation-service/automation-service.api.cjs.map +1 -1
- package/dist/api/automation-service/automation-service.api.d.ts +2 -2
- package/dist/api/automation-service/automation-service.api.js +7 -7
- package/dist/api/automation-service/automation-service.api.js.map +1 -1
- package/dist/api/canvas-extensions-service.cjs +1 -0
- package/dist/api/canvas-extensions-service.d.ts +22 -0
- package/dist/api/canvas-extensions-service.js +4 -0
- package/dist/api/cloud/conversation-service.api.cjs +1 -1
- package/dist/api/cloud/conversation-service.api.cjs.map +1 -1
- package/dist/api/cloud/conversation-service.api.d.ts +6 -0
- package/dist/api/cloud/conversation-service.api.js +14 -6
- package/dist/api/cloud/conversation-service.api.js.map +1 -1
- package/dist/api/cloud/provider-connections-service.api.cjs +2 -0
- package/dist/api/cloud/provider-connections-service.api.cjs.map +1 -0
- package/dist/api/cloud/provider-connections-service.api.d.ts +5 -0
- package/dist/api/cloud/provider-connections-service.api.js +50 -0
- package/dist/api/cloud/provider-connections-service.api.js.map +1 -0
- package/dist/api/cloud/skills-service.api.cjs +1 -1
- package/dist/api/cloud/skills-service.api.cjs.map +1 -1
- package/dist/api/cloud/skills-service.api.d.ts +10 -0
- package/dist/api/cloud/skills-service.api.js +11 -1
- package/dist/api/cloud/skills-service.api.js.map +1 -1
- package/dist/api/conversation-file-upload.api.cjs +1 -1
- package/dist/api/conversation-file-upload.api.js +10 -10
- package/dist/api/conversation-metadata-store.cjs +1 -1
- package/dist/api/conversation-metadata-store.cjs.map +1 -1
- package/dist/api/conversation-metadata-store.d.ts +24 -0
- package/dist/api/conversation-metadata-store.js +10 -2
- package/dist/api/conversation-metadata-store.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 +31 -0
- package/dist/api/conversation-service/agent-server-conversation-service.api.js +188 -128
- package/dist/api/conversation-service/agent-server-conversation-service.api.js.map +1 -1
- package/dist/api/event-service/event-service.api.cjs +1 -1
- package/dist/api/event-service/event-service.api.js +12 -12
- package/dist/api/git-service/agent-server-git-service.api.cjs +1 -1
- package/dist/api/git-service/agent-server-git-service.api.js +8 -8
- package/dist/api/hooks-service.cjs +2 -0
- package/dist/api/hooks-service.cjs.map +1 -0
- package/dist/api/hooks-service.d.ts +13 -0
- package/dist/api/hooks-service.js +20 -0
- package/dist/api/hooks-service.js.map +1 -0
- package/dist/api/provider-connections-service/provider-connections-service.api.cjs +1 -1
- package/dist/api/provider-connections-service/provider-connections-service.api.cjs.map +1 -1
- package/dist/api/provider-connections-service/provider-connections-service.api.js +25 -16
- package/dist/api/provider-connections-service/provider-connections-service.api.js.map +1 -1
- package/dist/api/runtime-service/agent-server-runtime-service.cjs +1 -1
- package/dist/api/runtime-service/agent-server-runtime-service.js +8 -8
- package/dist/api/settings-service/settings-service.api.cjs +1 -1
- package/dist/api/settings-service/settings-service.api.cjs.map +1 -1
- package/dist/api/settings-service/settings-service.api.d.ts +5 -2
- package/dist/api/settings-service/settings-service.api.js +20 -11
- package/dist/api/settings-service/settings-service.api.js.map +1 -1
- package/dist/api/skills-service.cjs +1 -1
- package/dist/api/skills-service.cjs.map +1 -1
- package/dist/api/skills-service.d.ts +7 -0
- package/dist/api/skills-service.js +11 -8
- package/dist/api/skills-service.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/critic-result-display.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/critic-result-display.js +5 -5
- package/dist/components/conversation-events/chat/event-message-components/event-group.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/event-group.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/event-group.js +40 -36
- package/dist/components/conversation-events/chat/event-message-components/event-group.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.js +2 -1
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.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.d.ts +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.js +28 -28
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.js +2 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.d.ts +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.js +37 -37
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message.cjs +2 -2
- package/dist/components/conversation-events/chat/event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message.js +79 -70
- package/dist/components/conversation-events/chat/event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/messages.cjs +1 -1
- package/dist/components/conversation-events/chat/messages.cjs.map +1 -1
- package/dist/components/conversation-events/chat/messages.js +28 -27
- package/dist/components/conversation-events/chat/messages.js.map +1 -1
- package/dist/components/features/automations/automation-card.cjs +1 -1
- package/dist/components/features/automations/automation-card.cjs.map +1 -1
- package/dist/components/features/automations/automation-card.js +118 -102
- package/dist/components/features/automations/automation-card.js.map +1 -1
- package/dist/components/features/automations/automation-list-row.cjs +1 -1
- package/dist/components/features/automations/automation-list-row.cjs.map +1 -1
- package/dist/components/features/automations/automation-list-row.js +88 -77
- package/dist/components/features/automations/automation-list-row.js.map +1 -1
- package/dist/components/features/automations/detail/detail-header.d.ts +3 -1
- package/dist/components/features/automations/detail/run-phase.cjs +2 -0
- package/dist/components/features/automations/detail/run-phase.cjs.map +1 -0
- package/dist/components/features/automations/detail/run-phase.d.ts +89 -0
- package/dist/components/features/automations/detail/run-phase.js +72 -0
- package/dist/components/features/automations/detail/run-phase.js.map +1 -0
- package/dist/components/features/automations/detail/run-status-badge.cjs +1 -1
- package/dist/components/features/automations/detail/run-status-badge.cjs.map +1 -1
- package/dist/components/features/automations/detail/run-status-badge.d.ts +2 -2
- package/dist/components/features/automations/detail/run-status-badge.js +82 -53
- package/dist/components/features/automations/detail/run-status-badge.js.map +1 -1
- package/dist/components/features/automations/kebab-menu.cjs +1 -1
- package/dist/components/features/automations/kebab-menu.cjs.map +1 -1
- package/dist/components/features/automations/kebab-menu.js +9 -5
- package/dist/components/features/automations/kebab-menu.js.map +1 -1
- package/dist/components/features/automations/recommended-automations-launcher.cjs +1 -1
- package/dist/components/features/automations/recommended-automations-launcher.cjs.map +1 -1
- package/dist/components/features/automations/recommended-automations-launcher.js +12 -12
- package/dist/components/features/automations/recommended-automations-launcher.js.map +1 -1
- package/dist/components/features/automations/recommended-automations-section.cjs +1 -1
- package/dist/components/features/automations/recommended-automations-section.js +9 -9
- package/dist/components/features/backends/backend-form-modal.cjs +1 -1
- package/dist/components/features/backends/backend-form-modal.cjs.map +1 -1
- package/dist/components/features/backends/backend-form-modal.js +5 -11
- package/dist/components/features/backends/backend-form-modal.js.map +1 -1
- package/dist/components/features/backends/backend-selector.cjs +1 -1
- package/dist/components/features/backends/backend-selector.cjs.map +1 -1
- package/dist/components/features/backends/backend-selector.js +133 -122
- package/dist/components/features/backends/backend-selector.js.map +1 -1
- package/dist/components/features/backends/manage-backends-modal.cjs +1 -1
- package/dist/components/features/backends/manage-backends-modal.cjs.map +1 -1
- package/dist/components/features/backends/manage-backends-modal.js +29 -29
- package/dist/components/features/backends/manage-backends-modal.js.map +1 -1
- package/dist/components/features/canvas-extensions/add-canvas-extension-modal.d.ts +6 -0
- package/dist/components/features/canvas-extensions/canvas-extension-card.d.ts +9 -0
- package/dist/components/features/canvas-extensions/canvas-extensions-runtime.cjs +2 -0
- package/dist/components/features/canvas-extensions/canvas-extensions-runtime.cjs.map +1 -0
- package/dist/components/features/canvas-extensions/canvas-extensions-runtime.d.ts +23 -0
- package/dist/components/features/canvas-extensions/canvas-extensions-runtime.js +19 -0
- package/dist/components/features/canvas-extensions/canvas-extensions-runtime.js.map +1 -0
- package/dist/components/features/chat/change-agent-button.cjs +1 -1
- package/dist/components/features/chat/change-agent-button.js +4 -4
- package/dist/components/features/chat/chat-interface.cjs +2 -2
- package/dist/components/features/chat/chat-interface.cjs.map +1 -1
- package/dist/components/features/chat/chat-interface.js +107 -104
- package/dist/components/features/chat/chat-interface.js.map +1 -1
- package/dist/components/features/chat/chat-markdown-path-code.cjs +3 -0
- package/dist/components/features/chat/chat-markdown-path-code.cjs.map +1 -0
- package/dist/components/features/chat/chat-markdown-path-code.d.ts +27 -0
- package/dist/components/features/chat/chat-markdown-path-code.js +72 -0
- package/dist/components/features/chat/chat-markdown-path-code.js.map +1 -0
- package/dist/components/features/chat/chat-message.cjs +1 -1
- package/dist/components/features/chat/chat-message.cjs.map +1 -1
- package/dist/components/features/chat/chat-message.d.ts +2 -1
- package/dist/components/features/chat/chat-message.js +88 -79
- package/dist/components/features/chat/chat-message.js.map +1 -1
- package/dist/components/features/chat/components/context-window-meter.cjs +1 -1
- package/dist/components/features/chat/components/context-window-meter.js +4 -4
- package/dist/components/features/chat/confirmation-mode-enabled.cjs +1 -1
- package/dist/components/features/chat/confirmation-mode-enabled.js +4 -4
- package/dist/components/features/chat/generic-event-message.cjs +1 -1
- package/dist/components/features/chat/generic-event-message.cjs.map +1 -1
- package/dist/components/features/chat/generic-event-message.d.ts +2 -1
- package/dist/components/features/chat/generic-event-message.js +41 -22
- package/dist/components/features/chat/generic-event-message.js.map +1 -1
- package/dist/components/features/chat/interactive-chat-box.cjs +1 -1
- package/dist/components/features/chat/interactive-chat-box.cjs.map +1 -1
- package/dist/components/features/chat/interactive-chat-box.js +20 -19
- package/dist/components/features/chat/interactive-chat-box.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.d.ts +8 -2
- package/dist/components/features/chat/path-component.js +33 -21
- package/dist/components/features/chat/path-component.js.map +1 -1
- 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.js +38 -43
- 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 +8 -5
- package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.js +22 -16
- package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.js.map +1 -1
- package/dist/components/features/chat/user-message-body.cjs +1 -1
- package/dist/components/features/chat/user-message-body.cjs.map +1 -1
- package/dist/components/features/chat/user-message-body.d.ts +4 -0
- package/dist/components/features/chat/user-message-body.js +30 -24
- package/dist/components/features/chat/user-message-body.js.map +1 -1
- package/dist/components/features/conversation/conversation-overview-git-section.cjs +1 -1
- package/dist/components/features/conversation/conversation-overview-git-section.js +4 -4
- package/dist/components/features/conversation/conversation-overview-skills-panel.cjs +1 -1
- package/dist/components/features/conversation/conversation-overview-skills-panel.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-overview-skills-panel.js +63 -81
- package/dist/components/features/conversation/conversation-overview-skills-panel.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 +77 -78
- 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 +96 -96
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/drawer-vscode-link.cjs +1 -1
- package/dist/components/features/conversation/conversation-tabs/drawer-vscode-link.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/drawer-vscode-link.d.ts +1 -1
- package/dist/components/features/conversation/conversation-tabs/drawer-vscode-link.js +3 -3
- package/dist/components/features/conversation/conversation-tabs/drawer-vscode-link.js.map +1 -1
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.cjs +2 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.cjs.map +1 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.d.ts +21 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.js +239 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.js.map +1 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.cjs +2 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.cjs.map +1 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.d.ts +28 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.js +69 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.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 +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.js +19 -18
- 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 +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.js +91 -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-preview.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.js +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.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 +7 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.js +87 -81
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.js +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.js +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-layouts-menu.cjs +2 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.cjs.map +1 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.d.ts +29 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.js +177 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.js.map +1 -0
- 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 +37 -0
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js +85 -45
- 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 +296 -290
- package/dist/components/features/conversation-panel/conversation-panel.js.map +1 -1
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.cjs +2 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.cjs.map +1 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.d.ts +22 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.js +153 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.js.map +1 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.cjs +2 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.cjs.map +1 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.d.ts +6 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.js +65 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.js.map +1 -0
- package/dist/components/features/conversation-panel/menu-row.cjs +1 -1
- package/dist/components/features/conversation-panel/menu-row.cjs.map +1 -1
- package/dist/components/features/conversation-panel/menu-row.d.ts +11 -1
- package/dist/components/features/conversation-panel/menu-row.js +27 -16
- package/dist/components/features/conversation-panel/menu-row.js.map +1 -1
- package/dist/components/features/conversation-panel/skills-modal.cjs +1 -1
- package/dist/components/features/conversation-panel/skills-modal.cjs.map +1 -1
- package/dist/components/features/conversation-panel/skills-modal.js +29 -28
- package/dist/components/features/conversation-panel/skills-modal.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.js +5 -5
- package/dist/components/features/home/featured-automations/automation-health-indicator.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-health-indicator.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-health-indicator.js +1 -1
- package/dist/components/features/home/featured-automations/automation-health-indicator.js.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.d.ts +4 -3
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js +22 -25
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.d.ts +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js +15 -15
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-health.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-run-health.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-health.d.ts +5 -3
- package/dist/components/features/home/featured-automations/automation-run-health.js +30 -23
- package/dist/components/features/home/featured-automations/automation-run-health.js.map +1 -1
- package/dist/components/features/home/featured-automations/home-automation-activity.d.ts +3 -2
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs +1 -1
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.d.ts +1 -1
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js +59 -37
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js.map +1 -1
- package/dist/components/features/manifest/manifest-form-field.d.ts +3 -1
- package/dist/components/features/manifest/manifest-review-step.d.ts +3 -1
- package/dist/components/features/onboarding/onboarding-host.d.ts +3 -4
- package/dist/components/features/onboarding/steps/setup-llm-step.d.ts +5 -9
- package/dist/components/features/settings/acp-auth-status-banner.d.ts +23 -6
- package/dist/components/features/settings/cloud-settings-link.cjs +1 -1
- package/dist/components/features/settings/cloud-settings-link.cjs.map +1 -1
- package/dist/components/features/settings/cloud-settings-link.js +5 -3
- package/dist/components/features/settings/cloud-settings-link.js.map +1 -1
- package/dist/components/features/settings/integrations-settings-link.cjs +1 -1
- package/dist/components/features/settings/integrations-settings-link.cjs.map +1 -1
- package/dist/components/features/settings/integrations-settings-link.d.ts +3 -1
- package/dist/components/features/settings/integrations-settings-link.js +20 -17
- package/dist/components/features/settings/integrations-settings-link.js.map +1 -1
- package/dist/components/features/settings/llm-profiles/llm-settings-local-view.cjs +1 -1
- package/dist/components/features/settings/llm-profiles/llm-settings-local-view.js +2 -1
- package/dist/components/features/settings/llm-profiles/profiles-body.d.ts +2 -2
- package/dist/components/features/settings/llm-profiles/provider-connection-modal.cjs +1 -1
- package/dist/components/features/settings/llm-profiles/provider-connection-modal.js +3 -0
- package/dist/components/features/settings/sdk-settings/field-help.cjs +1 -1
- package/dist/components/features/settings/sdk-settings/field-help.cjs.map +1 -1
- package/dist/components/features/settings/sdk-settings/field-help.d.ts +1 -1
- package/dist/components/features/settings/sdk-settings/field-help.js +1 -1
- package/dist/components/features/settings/sdk-settings/field-help.js.map +1 -1
- package/dist/components/features/settings/sdk-settings/sdk-section-page.cjs +1 -1
- package/dist/components/features/settings/sdk-settings/sdk-section-page.cjs.map +1 -1
- package/dist/components/features/settings/sdk-settings/sdk-section-page.d.ts +8 -7
- package/dist/components/features/settings/sdk-settings/sdk-section-page.js +172 -142
- package/dist/components/features/settings/sdk-settings/sdk-section-page.js.map +1 -1
- package/dist/components/features/settings/secrets-settings/secret-form.cjs +1 -1
- package/dist/components/features/settings/secrets-settings/secret-form.cjs.map +1 -1
- package/dist/components/features/settings/secrets-settings/secret-form.js +38 -25
- package/dist/components/features/settings/secrets-settings/secret-form.js.map +1 -1
- package/dist/components/features/settings/settings-dropdown-input.cjs +1 -1
- package/dist/components/features/settings/settings-dropdown-input.js +6 -6
- package/dist/components/features/sidebar/sidebar-nav-link.cjs +1 -1
- package/dist/components/features/sidebar/sidebar-nav-link.cjs.map +1 -1
- package/dist/components/features/sidebar/sidebar-nav-link.d.ts +10 -1
- package/dist/components/features/sidebar/sidebar-nav-link.js +54 -36
- package/dist/components/features/sidebar/sidebar-nav-link.js.map +1 -1
- package/dist/components/features/sidebar/sidebar-rail-body.cjs +1 -1
- package/dist/components/features/sidebar/sidebar-rail-body.cjs.map +1 -1
- package/dist/components/features/sidebar/sidebar-rail-body.d.ts +3 -1
- package/dist/components/features/sidebar/sidebar-rail-body.js +98 -58
- package/dist/components/features/sidebar/sidebar-rail-body.js.map +1 -1
- package/dist/components/features/sidebar/sidebar.cjs +1 -1
- package/dist/components/features/sidebar/sidebar.cjs.map +1 -1
- package/dist/components/features/sidebar/sidebar.js +44 -43
- package/dist/components/features/sidebar/sidebar.js.map +1 -1
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs +1 -1
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js +3 -3
- package/dist/components/features/skills/build-skill-pills.cjs +1 -1
- package/dist/components/features/skills/build-skill-pills.cjs.map +1 -1
- package/dist/components/features/skills/build-skill-pills.js +60 -52
- package/dist/components/features/skills/build-skill-pills.js.map +1 -1
- package/dist/components/features/skills/extensions-navigation.cjs +1 -1
- package/dist/components/features/skills/extensions-navigation.cjs.map +1 -1
- package/dist/components/features/skills/extensions-navigation.js +54 -43
- package/dist/components/features/skills/extensions-navigation.js.map +1 -1
- package/dist/components/features/skills/skill-filter.cjs +1 -1
- package/dist/components/features/skills/skill-filter.cjs.map +1 -1
- package/dist/components/features/skills/skill-filter.d.ts +8 -3
- package/dist/components/features/skills/skill-filter.js +69 -52
- package/dist/components/features/skills/skill-filter.js.map +1 -1
- package/dist/components/shared/buttons/styled-tooltip.cjs +1 -1
- package/dist/components/shared/buttons/styled-tooltip.cjs.map +1 -1
- package/dist/components/shared/buttons/styled-tooltip.d.ts +2 -1
- package/dist/components/shared/buttons/styled-tooltip.js +2 -1
- package/dist/components/shared/buttons/styled-tooltip.js.map +1 -1
- package/dist/components/shared/filters/enum-filter-dropdown.cjs +1 -1
- package/dist/components/shared/filters/enum-filter-dropdown.cjs.map +1 -1
- package/dist/components/shared/filters/enum-filter-dropdown.d.ts +5 -1
- package/dist/components/shared/filters/enum-filter-dropdown.js +14 -14
- package/dist/components/shared/filters/enum-filter-dropdown.js.map +1 -1
- package/dist/components/shared/modals/confirmation-modal.cjs +1 -1
- package/dist/components/shared/modals/confirmation-modal.cjs.map +1 -1
- package/dist/components/shared/modals/confirmation-modal.d.ts +2 -1
- package/dist/components/shared/modals/confirmation-modal.js +8 -8
- package/dist/components/shared/modals/confirmation-modal.js.map +1 -1
- package/dist/components/shared/modals/settings/model-selector.cjs +1 -1
- package/dist/components/shared/modals/settings/model-selector.js +27 -27
- package/dist/components/shared/modals/settings/settings-form.cjs +1 -1
- package/dist/components/shared/modals/settings/settings-form.js +8 -8
- package/dist/config/defaults.cjs +1 -1
- package/dist/config/defaults.cjs.map +1 -1
- package/dist/config/defaults.js +9 -5
- package/dist/config/defaults.js.map +1 -1
- package/dist/constants/settings-nav.d.ts +8 -0
- package/dist/contexts/conversation-websocket-context.cjs +3 -3
- package/dist/contexts/conversation-websocket-context.cjs.map +1 -1
- package/dist/contexts/conversation-websocket-context.d.ts +5 -0
- package/dist/contexts/conversation-websocket-context.js +194 -198
- package/dist/contexts/conversation-websocket-context.js.map +1 -1
- package/dist/contexts/websocket-provider-wrapper.cjs +1 -1
- package/dist/contexts/websocket-provider-wrapper.cjs.map +1 -1
- package/dist/contexts/websocket-provider-wrapper.js +31 -15
- package/dist/contexts/websocket-provider-wrapper.js.map +1 -1
- package/dist/extensions/canvas-extension-module-loader.d.ts +11 -0
- package/dist/hooks/chat/record-model-switch-message.cjs +1 -1
- package/dist/hooks/chat/record-model-switch-message.cjs.map +1 -1
- package/dist/hooks/chat/record-model-switch-message.d.ts +31 -0
- package/dist/hooks/chat/record-model-switch-message.js +25 -12
- package/dist/hooks/chat/record-model-switch-message.js.map +1 -1
- package/dist/hooks/chat/use-plan-mode-interceptor.cjs +2 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.cjs.map +1 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.d.ts +16 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.js +43 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.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 +5 -1
- package/dist/hooks/mutation/use-create-conversation.js.map +1 -1
- package/dist/hooks/mutation/use-manage-canvas-extensions.d.ts +12 -0
- package/dist/hooks/mutation/use-read-conversation-file.cjs +1 -1
- package/dist/hooks/mutation/use-read-conversation-file.cjs.map +1 -1
- package/dist/hooks/mutation/use-read-conversation-file.js +11 -4
- package/dist/hooks/mutation/use-read-conversation-file.js.map +1 -1
- package/dist/hooks/mutation/use-save-settings.cjs +1 -1
- package/dist/hooks/mutation/use-save-settings.js +3 -3
- package/dist/hooks/mutation/use-switch-llm-profile.cjs +1 -1
- package/dist/hooks/mutation/use-switch-llm-profile.cjs.map +1 -1
- package/dist/hooks/mutation/use-switch-llm-profile.js +13 -25
- package/dist/hooks/mutation/use-switch-llm-profile.js.map +1 -1
- package/dist/hooks/mutation/use-update-conversation-tags.cjs +2 -0
- package/dist/hooks/mutation/use-update-conversation-tags.cjs.map +1 -0
- package/dist/hooks/mutation/use-update-conversation-tags.d.ts +8 -0
- package/dist/hooks/mutation/use-update-conversation-tags.js +45 -0
- package/dist/hooks/mutation/use-update-conversation-tags.js.map +1 -0
- package/dist/hooks/query/concurrency-limiter.cjs +2 -0
- package/dist/hooks/query/concurrency-limiter.cjs.map +1 -0
- package/dist/hooks/query/concurrency-limiter.d.ts +22 -0
- package/dist/hooks/query/concurrency-limiter.js +29 -0
- package/dist/hooks/query/concurrency-limiter.js.map +1 -0
- package/dist/hooks/query/query-keys.cjs +1 -1
- package/dist/hooks/query/query-keys.cjs.map +1 -1
- package/dist/hooks/query/query-keys.d.ts +10 -0
- package/dist/hooks/query/query-keys.js +2 -2
- package/dist/hooks/query/query-keys.js.map +1 -1
- package/dist/hooks/query/use-active-conversation.cjs +1 -1
- package/dist/hooks/query/use-active-conversation.js +4 -4
- package/dist/hooks/query/use-automation-sdk-version.cjs +1 -1
- package/dist/hooks/query/use-automation-sdk-version.cjs.map +1 -1
- package/dist/hooks/query/use-automation-sdk-version.d.ts +0 -1
- package/dist/hooks/query/use-automation-sdk-version.js +30 -55
- package/dist/hooks/query/use-automation-sdk-version.js.map +1 -1
- package/dist/hooks/query/use-automations.cjs.map +1 -1
- package/dist/hooks/query/use-automations.js.map +1 -1
- package/dist/hooks/query/use-backends-health.cjs +1 -1
- package/dist/hooks/query/use-backends-health.cjs.map +1 -1
- package/dist/hooks/query/use-backends-health.d.ts +1 -1
- package/dist/hooks/query/use-backends-health.js +50 -64
- package/dist/hooks/query/use-backends-health.js.map +1 -1
- package/dist/hooks/query/use-canvas-extensions.cjs +1 -0
- package/dist/hooks/query/use-canvas-extensions.d.ts +5 -0
- package/dist/hooks/query/use-canvas-extensions.js +3 -0
- package/dist/hooks/query/use-commit-changes.cjs +1 -1
- package/dist/hooks/query/use-commit-changes.js +4 -4
- package/dist/hooks/query/use-conversation-skills.cjs +1 -1
- package/dist/hooks/query/use-conversation-skills.cjs.map +1 -1
- package/dist/hooks/query/use-conversation-skills.d.ts +14 -5
- package/dist/hooks/query/use-conversation-skills.js +20 -4
- package/dist/hooks/query/use-conversation-skills.js.map +1 -1
- package/dist/hooks/query/use-latest-automation-runs.cjs +1 -1
- package/dist/hooks/query/use-latest-automation-runs.js +1 -0
- package/dist/hooks/query/use-paginated-conversations.cjs +1 -1
- package/dist/hooks/query/use-paginated-conversations.cjs.map +1 -1
- package/dist/hooks/query/use-paginated-conversations.js +19 -16
- package/dist/hooks/query/use-paginated-conversations.js.map +1 -1
- package/dist/hooks/query/use-provider-connections.cjs +1 -1
- package/dist/hooks/query/use-provider-connections.cjs.map +1 -1
- package/dist/hooks/query/use-provider-connections.d.ts +6 -3
- package/dist/hooks/query/use-provider-connections.js +7 -3
- package/dist/hooks/query/use-provider-connections.js.map +1 -1
- 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 +17 -10
- package/dist/hooks/query/use-search-providers.js.map +1 -1
- package/dist/hooks/query/use-sub-conversations.cjs +1 -1
- package/dist/hooks/query/use-sub-conversations.cjs.map +1 -1
- package/dist/hooks/query/use-sub-conversations.js +16 -16
- package/dist/hooks/query/use-sub-conversations.js.map +1 -1
- package/dist/hooks/query/use-unified-get-git-changes.cjs +1 -1
- package/dist/hooks/query/use-unified-get-git-changes.js +4 -4
- package/dist/hooks/query/use-unified-git-commits.cjs +1 -1
- package/dist/hooks/query/use-unified-git-commits.js +4 -4
- package/dist/hooks/query/use-unified-git-diff.cjs +1 -1
- package/dist/hooks/query/use-unified-git-diff.js +4 -4
- package/dist/hooks/query/use-unified-vscode-url.cjs +1 -1
- package/dist/hooks/query/use-unified-vscode-url.cjs.map +1 -1
- package/dist/hooks/query/use-unified-vscode-url.d.ts +1 -0
- package/dist/hooks/query/use-unified-vscode-url.js +40 -26
- package/dist/hooks/query/use-unified-vscode-url.js.map +1 -1
- package/dist/hooks/query/use-workspace-file-content.cjs +1 -1
- package/dist/hooks/query/use-workspace-file-content.js +5 -5
- package/dist/hooks/query/use-workspace-files.cjs +1 -1
- package/dist/hooks/query/use-workspace-files.js +6 -6
- package/dist/hooks/use-acp-credential-form.d.ts +6 -0
- package/dist/hooks/use-acp-model-context.cjs +1 -1
- package/dist/hooks/use-acp-model-context.js +3 -3
- package/dist/hooks/use-agent-state.cjs +1 -1
- package/dist/hooks/use-agent-state.cjs.map +1 -1
- package/dist/hooks/use-agent-state.d.ts +17 -1
- package/dist/hooks/use-agent-state.js +19 -9
- package/dist/hooks/use-agent-state.js.map +1 -1
- package/dist/hooks/use-automation-permissions.cjs +2 -0
- package/dist/hooks/use-automation-permissions.cjs.map +1 -0
- package/dist/hooks/use-automation-permissions.d.ts +43 -0
- package/dist/hooks/use-automation-permissions.js +52 -0
- package/dist/hooks/use-automation-permissions.js.map +1 -0
- package/dist/hooks/use-chat-input-model-state.cjs +1 -1
- package/dist/hooks/use-chat-input-model-state.js +3 -3
- package/dist/hooks/use-conversation-overview-git-diff-stats.cjs +1 -1
- package/dist/hooks/use-conversation-overview-git-diff-stats.js +4 -4
- package/dist/hooks/use-handle-plan-click.cjs +1 -1
- package/dist/hooks/use-handle-plan-click.cjs.map +1 -1
- package/dist/hooks/use-handle-plan-click.d.ts +3 -1
- package/dist/hooks/use-handle-plan-click.js +85 -26
- package/dist/hooks/use-handle-plan-click.js.map +1 -1
- package/dist/hooks/use-home-automation-actions.cjs +1 -1
- package/dist/hooks/use-home-automation-actions.cjs.map +1 -1
- package/dist/hooks/use-home-automation-actions.js +1 -0
- package/dist/hooks/use-home-automation-actions.js.map +1 -1
- package/dist/hooks/use-llm-configured.cjs +1 -1
- package/dist/hooks/use-llm-configured.js +3 -3
- package/dist/hooks/use-manifest-preflight.d.ts +1 -1
- package/dist/hooks/use-pinned-home-route.cjs +2 -0
- package/dist/hooks/use-pinned-home-route.cjs.map +1 -0
- package/dist/hooks/use-pinned-home-route.d.ts +33 -0
- package/dist/hooks/use-pinned-home-route.js +34 -0
- package/dist/hooks/use-pinned-home-route.js.map +1 -0
- package/dist/hooks/use-skill-enablement.cjs +2 -0
- package/dist/hooks/use-skill-enablement.cjs.map +1 -0
- package/dist/hooks/use-skill-enablement.d.ts +14 -0
- package/dist/hooks/use-skill-enablement.js +80 -0
- package/dist/hooks/use-skill-enablement.js.map +1 -0
- package/dist/hooks/use-unified-websocket-status.cjs +1 -1
- package/dist/hooks/use-unified-websocket-status.cjs.map +1 -1
- package/dist/hooks/use-unified-websocket-status.d.ts +7 -0
- package/dist/hooks/use-unified-websocket-status.js +5 -1
- package/dist/hooks/use-unified-websocket-status.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 +83 -14
- package/dist/i18n/declaration.js +1 -1
- package/dist/i18n/declaration.js.map +1 -1
- package/dist/i18n/translation.cjs +3 -3
- package/dist/i18n/translation.cjs.map +1 -1
- package/dist/i18n/translation.js +1575 -402
- package/dist/i18n/translation.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -14
- package/dist/lib/index.cjs +1 -1
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +1 -0
- package/dist/locales/ar/openhands.json +94 -25
- package/dist/locales/ca/openhands.json +94 -25
- package/dist/locales/de/openhands.json +94 -25
- package/dist/locales/en/openhands.json +94 -25
- package/dist/locales/es/openhands.json +94 -25
- package/dist/locales/fr/openhands.json +94 -25
- package/dist/locales/it/openhands.json +94 -25
- package/dist/locales/ja/openhands.json +94 -25
- package/dist/locales/ko-KR/openhands.json +94 -25
- package/dist/locales/no/openhands.json +94 -25
- package/dist/locales/pt/openhands.json +94 -25
- package/dist/locales/tr/openhands.json +94 -25
- package/dist/locales/uk/openhands.json +94 -25
- package/dist/locales/zh-CN/openhands.json +94 -25
- package/dist/locales/zh-TW/openhands.json +94 -25
- package/dist/manifests/automation-insights.cjs.map +1 -1
- package/dist/manifests/automation-insights.d.ts +10 -2
- package/dist/manifests/automation-insights.js.map +1 -1
- package/dist/manifests/automation-interface.cjs +1 -1
- package/dist/manifests/automation-interface.cjs.map +1 -1
- package/dist/manifests/automation-interface.d.ts +6 -0
- package/dist/manifests/automation-interface.js +11 -8
- package/dist/manifests/automation-interface.js.map +1 -1
- package/dist/manifests/automation-setup.cjs +1 -1
- package/dist/manifests/automation-setup.cjs.map +1 -1
- package/dist/manifests/automation-setup.d.ts +9 -16
- package/dist/manifests/automation-setup.js +17 -7
- package/dist/manifests/automation-setup.js.map +1 -1
- package/dist/manifests/manifest-actions.d.ts +1 -1
- package/dist/manifests/manifest-capabilities.d.ts +3 -1
- package/dist/manifests/manifest-local-validation.cjs +2 -0
- package/dist/manifests/manifest-local-validation.cjs.map +1 -0
- package/dist/manifests/manifest-local-validation.d.ts +15 -11
- package/dist/manifests/manifest-local-validation.js +8 -0
- package/dist/manifests/manifest-local-validation.js.map +1 -0
- package/dist/manifests/manifest-template.cjs +2 -0
- package/dist/manifests/manifest-template.cjs.map +1 -0
- package/dist/manifests/manifest-template.d.ts +4 -4
- package/dist/manifests/manifest-template.js +12 -0
- package/dist/manifests/manifest-template.js.map +1 -0
- package/dist/manifests/manifest-validation.cjs +1 -1
- package/dist/manifests/manifest-validation.cjs.map +1 -1
- package/dist/manifests/manifest-validation.js +106 -28
- package/dist/manifests/manifest-validation.js.map +1 -1
- package/dist/manifests/types.cjs.map +1 -1
- package/dist/manifests/types.d.ts +39 -4
- package/dist/manifests/types.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs +45 -4
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.js +1 -1
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.cjs +8 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.js +221 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js +5 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs +2 -2
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js +6 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs +2 -2
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js +6 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js +5 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-bitbucket-pr/manifest.cjs +9 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-bitbucket-pr/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-bitbucket-pr/manifest.js +21 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-bitbucket-pr/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-gitlab-mr/manifest.cjs +9 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-gitlab-mr/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-gitlab-mr/manifest.js +21 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-gitlab-mr/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-bitbucket-pr/manifest.cjs +9 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-bitbucket-pr/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-bitbucket-pr/manifest.js +21 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-bitbucket-pr/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-github-pr/manifest.cjs +9 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-github-pr/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-github-pr/manifest.js +21 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-github-pr/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-gitlab-mr/manifest.cjs +9 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-gitlab-mr/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-gitlab-mr/manifest.js +21 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/linear-issue-to-gitlab-mr/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js +5 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.cjs +30 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.js +65 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.js +28 -14
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.js +2 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/datadog.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/datadog.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/datadog.js +2 -2
- package/dist/node_modules/@openhands/extensions/integrations/catalog/datadog.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.cjs +2 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.js +59 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog/notion.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/notion.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/notion.js +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/notion.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js +74 -72
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/skills/index.cjs +42 -3
- package/dist/node_modules/@openhands/extensions/skills/index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/skills/index.js +22 -3
- package/dist/node_modules/@openhands/extensions/skills/index.js.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/remote-conversation.cjs +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/remote-conversation.js +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/remote-state.cjs +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/remote-state.cjs.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/remote-state.js +8 -7
- package/dist/node_modules/@openhands/typescript-client/dist/conversation/remote-state.js.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/index.cjs +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/index.js +2 -2
- package/dist/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/blocks.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/blocks.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/blocks.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/blocks.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panels-top-left.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panels-top-left.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panels-top-left.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/panels-top-left.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js +43 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.js.map +1 -0
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +5 -5
- package/dist/package.js.map +1 -1
- package/dist/routes/agent-settings.d.ts +12 -0
- package/dist/routes/app-settings.cjs +1 -1
- package/dist/routes/app-settings.cjs.map +1 -1
- package/dist/routes/app-settings.js +11 -11
- package/dist/routes/files-tab.cjs +1 -1
- package/dist/routes/files-tab.cjs.map +1 -1
- package/dist/routes/files-tab.js +14 -14
- package/dist/routes/files-tab.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.d.ts +3 -1
- package/dist/routes/llm-settings.js +100 -91
- package/dist/routes/llm-settings.js.map +1 -1
- package/dist/routes/planner-tab.cjs +1 -1
- package/dist/routes/planner-tab.cjs.map +1 -1
- package/dist/routes/planner-tab.js +44 -28
- package/dist/routes/planner-tab.js.map +1 -1
- package/dist/services/canvas-ui.cjs +1 -1
- package/dist/services/canvas-ui.cjs.map +1 -1
- package/dist/services/canvas-ui.d.ts +5 -0
- package/dist/services/canvas-ui.js +24 -10
- package/dist/services/canvas-ui.js.map +1 -1
- package/dist/services/settings.cjs +1 -1
- package/dist/services/settings.cjs.map +1 -1
- package/dist/services/settings.js +3 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/services/telemetry.cjs +1 -1
- package/dist/services/telemetry.cjs.map +1 -1
- package/dist/services/telemetry.d.ts +5 -0
- package/dist/services/telemetry.js +122 -115
- package/dist/services/telemetry.js.map +1 -1
- 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 +32 -5
- package/dist/stores/conversation-panel-preferences-store.js +29 -12
- package/dist/stores/conversation-panel-preferences-store.js.map +1 -1
- package/dist/stores/conversation-state-store.cjs +1 -1
- package/dist/stores/conversation-state-store.cjs.map +1 -1
- package/dist/stores/conversation-state-store.d.ts +9 -3
- package/dist/stores/conversation-state-store.js +6 -3
- package/dist/stores/conversation-state-store.js.map +1 -1
- package/dist/stores/conversation-store.cjs +1 -1
- package/dist/stores/conversation-store.cjs.map +1 -1
- package/dist/stores/conversation-store.d.ts +2 -0
- package/dist/stores/conversation-store.js +3 -0
- package/dist/stores/conversation-store.js.map +1 -1
- package/dist/stores/model-store.cjs +1 -1
- package/dist/stores/model-store.cjs.map +1 -1
- package/dist/stores/model-store.d.ts +7 -0
- package/dist/stores/model-store.js +4 -0
- package/dist/stores/model-store.js.map +1 -1
- package/dist/types/automation.cjs.map +1 -1
- package/dist/types/automation.d.ts +66 -1
- package/dist/types/automation.js.map +1 -1
- package/dist/types/canvas-extension.cjs +2 -0
- package/dist/types/canvas-extension.cjs.map +1 -0
- package/dist/types/canvas-extension.d.ts +77 -0
- package/dist/types/canvas-extension.js +6 -0
- package/dist/types/canvas-extension.js.map +1 -0
- package/dist/types/settings.d.ts +7 -0
- package/dist/ui/context-menu.d.ts +1 -1
- package/dist/ui/help-link.cjs +1 -1
- package/dist/ui/help-link.cjs.map +1 -1
- package/dist/ui/help-link.d.ts +6 -1
- package/dist/ui/help-link.js +32 -18
- package/dist/ui/help-link.js.map +1 -1
- package/dist/ui/toggle-switch.cjs +1 -1
- package/dist/ui/toggle-switch.cjs.map +1 -1
- package/dist/ui/toggle-switch.d.ts +4 -1
- package/dist/ui/toggle-switch.js +4 -3
- package/dist/ui/toggle-switch.js.map +1 -1
- package/dist/utils/acp-auth-display.d.ts +35 -0
- package/dist/utils/automation-catalog.cjs +1 -1
- package/dist/utils/automation-catalog.cjs.map +1 -1
- package/dist/utils/automation-catalog.d.ts +12 -1
- package/dist/utils/automation-catalog.js +42 -12
- package/dist/utils/automation-catalog.js.map +1 -1
- package/dist/utils/automation-run-display.cjs +2 -0
- package/dist/utils/automation-run-display.cjs.map +1 -0
- package/dist/utils/automation-run-display.d.ts +20 -0
- package/dist/utils/automation-run-display.js +85 -0
- package/dist/utils/automation-run-display.js.map +1 -0
- package/dist/utils/automation-schedule.cjs +1 -1
- package/dist/utils/automation-schedule.cjs.map +1 -1
- package/dist/utils/automation-schedule.d.ts +16 -0
- package/dist/utils/automation-schedule.js +2 -0
- package/dist/utils/automation-schedule.js.map +1 -1
- package/dist/utils/cache-utils.cjs +1 -1
- package/dist/utils/cache-utils.js +5 -5
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.cjs.map +1 -1
- package/dist/utils/constants.d.ts +4 -0
- package/dist/utils/constants.js +23 -3
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/format-event-timestamp.cjs +2 -0
- package/dist/utils/format-event-timestamp.cjs.map +1 -0
- package/dist/utils/format-event-timestamp.d.ts +1 -0
- package/dist/utils/format-event-timestamp.js +13 -0
- package/dist/utils/format-event-timestamp.js.map +1 -0
- 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 +7 -3
- package/dist/utils/format-model-name.js +6 -11
- package/dist/utils/format-model-name.js.map +1 -1
- package/dist/utils/format-relative-time.cjs +1 -1
- package/dist/utils/format-relative-time.cjs.map +1 -1
- package/dist/utils/format-relative-time.d.ts +7 -0
- package/dist/utils/format-relative-time.js +7 -2
- package/dist/utils/format-relative-time.js.map +1 -1
- package/dist/utils/git-diff-stats.cjs +2 -2
- package/dist/utils/git-diff-stats.cjs.map +1 -1
- package/dist/utils/git-diff-stats.d.ts +4 -0
- package/dist/utils/git-diff-stats.js +12 -2
- package/dist/utils/git-diff-stats.js.map +1 -1
- package/dist/utils/path-utils.cjs +1 -1
- package/dist/utils/path-utils.cjs.map +1 -1
- package/dist/utils/path-utils.d.ts +15 -3
- package/dist/utils/path-utils.js +29 -3
- package/dist/utils/path-utils.js.map +1 -1
- package/dist/utils/plan-file.cjs +4 -0
- package/dist/utils/plan-file.cjs.map +1 -0
- package/dist/utils/plan-file.d.ts +18 -0
- package/dist/utils/plan-file.js +58 -0
- package/dist/utils/plan-file.js.map +1 -0
- package/dist/utils/recommended-automation-rail.cjs +1 -1
- package/dist/utils/recommended-automation-rail.cjs.map +1 -1
- package/dist/utils/recommended-automation-rail.js +1 -0
- package/dist/utils/recommended-automation-rail.js.map +1 -1
- package/dist/utils/scroll-fade-state.cjs +1 -1
- package/dist/utils/scroll-fade-state.cjs.map +1 -1
- package/dist/utils/scroll-fade-state.d.ts +6 -0
- package/dist/utils/scroll-fade-state.js +8 -1
- package/dist/utils/scroll-fade-state.js.map +1 -1
- package/dist/utils/sdk-settings-schema.cjs +1 -1
- package/dist/utils/sdk-settings-schema.cjs.map +1 -1
- package/dist/utils/sdk-settings-schema.d.ts +1 -0
- package/dist/utils/sdk-settings-schema.js +25 -22
- package/dist/utils/sdk-settings-schema.js.map +1 -1
- package/dist/utils/skill-enablement.cjs +2 -0
- package/dist/utils/skill-enablement.cjs.map +1 -0
- package/dist/utils/skill-enablement.d.ts +51 -0
- package/dist/utils/skill-enablement.js +31 -0
- package/dist/utils/skill-enablement.js.map +1 -0
- package/dist/utils/utils.cjs +1 -1
- package/dist/utils/utils.cjs.map +1 -1
- package/dist/utils/utils.js +11 -11
- package/dist/utils/utils.js.map +1 -1
- package/dist/utils/vscode-origin.cjs +2 -0
- package/dist/utils/vscode-origin.cjs.map +1 -0
- package/dist/utils/vscode-origin.d.ts +55 -0
- package/dist/utils/vscode-origin.js +27 -0
- package/dist/utils/vscode-origin.js.map +1 -0
- package/dist/utils/workspace-mode.d.ts +4 -0
- package/package.json +5 -5
- package/scripts/check-sdk-version-sync.mjs +6 -6
- package/scripts/check-translation-completeness.cjs +1 -0
- package/scripts/dev-extra-backend.mjs +28 -9
- package/scripts/dev-safe.mjs +81 -8
- package/scripts/dev-static.mjs +35 -37
- package/scripts/dev-with-automation.mjs +83 -2
- package/scripts/ingress.mjs +27 -1
- package/scripts/static-server.mjs +107 -2
- package/tools/canvas_ui_tool.py +19 -0
- package/build/assets/active-backend-context-DKFSMbn3.js +0 -2
- package/build/assets/agent-profiles-settings-D4cY5U2T.js +0 -1
- package/build/assets/agent-server-conversation-service.api-DozDKIW_.js +0 -86
- package/build/assets/agent-settings-351vXWc9.js +0 -2
- package/build/assets/agent-settings-Ce7BDZ6I.js +0 -1
- package/build/assets/alert-banner-Kyy1YWZU.js +0 -1
- package/build/assets/api-key-entry-screen-INIxqAMs.js +0 -1
- package/build/assets/automation-detail-DXDhUwPq.js +0 -3
- package/build/assets/automation-git-sync-CzyS4cn1.js +0 -1
- package/build/assets/automation-setup-route-FRr05f_g.js +0 -1
- package/build/assets/automations-list-CERuQWE6.js +0 -1
- package/build/assets/backend-form-modal-DK78-jn1.js +0 -1
- package/build/assets/bot-C-0Wu7vQ.js +0 -1
- package/build/assets/browser-11etCQ04.js +0 -7
- package/build/assets/check-Cf2YoT90.js +0 -1
- package/build/assets/chevron-down-C3OQ-ehx.js +0 -1
- package/build/assets/chevron-right-CN1uUiJ1.js +0 -1
- package/build/assets/circle-check-g5yeGMd-.js +0 -1
- package/build/assets/command-menu-BZQ8S3Ke.js +0 -1
- package/build/assets/commits-tab-DZtJgaDM.js +0 -1
- package/build/assets/confirmation-modal-Bk4JRcCM.js +0 -1
- package/build/assets/conversation-CchMzpGl.js +0 -1
- package/build/assets/conversation-Dpzftz57.js +0 -93
- package/build/assets/conversation-panel-CchMzpGl.js +0 -1
- package/build/assets/conversation-state-store-a9d2fxRc.js +0 -1
- package/build/assets/edit-automation-modal-D-urtv8n.js +0 -1
- package/build/assets/empty-state-CvaVahVr.js +0 -1
- package/build/assets/enum-filter-dropdown-DliX_Lo0.js +0 -1
- package/build/assets/extensions-hub-CFduxBnk.js +0 -1
- package/build/assets/extensions-navigation-BeC224yX.js +0 -1
- package/build/assets/external-link-DFpYunfj.js +0 -1
- package/build/assets/files-tab-CL3J9b3p.js +0 -1
- package/build/assets/format-model-name-BNPKVsIq.js +0 -1
- package/build/assets/get-git-path-DlAJa_i6.js +0 -1
- package/build/assets/git-repo-dropdown-DGMEhz7d.js +0 -1
- package/build/assets/home-BCGlNJCA.js +0 -1
- package/build/assets/home-DB1pRqTC.js +0 -1
- package/build/assets/home-automation-run-tooltip-CooFQRIG.js +0 -1
- package/build/assets/home-store-Dl1dPE58.js +0 -1
- package/build/assets/index-home-DB1pRqTC.js +0 -1
- package/build/assets/info-uYSVzX86.js +0 -1
- package/build/assets/install-server-modal-BbJdhzet.js +0 -1
- package/build/assets/kebab-menu-item-content-BYokkRHi.js +0 -1
- package/build/assets/list-filter-OFkpRrmi.js +0 -1
- package/build/assets/llm-not-configured-banner-BqqYnJ1t.js +0 -27
- package/build/assets/llm-settings-CnDbbmVW.js +0 -1
- package/build/assets/llm-settings-S8Yjg__1.js +0 -1
- package/build/assets/llm-subscription-service-BpPfzW4x.js +0 -1
- package/build/assets/loader-circle-nvrwthvj.js +0 -1
- package/build/assets/manage-backends-modal-BCUPswyl.js +0 -1
- package/build/assets/manifest-58597dde.js +0 -1
- package/build/assets/markdown-renderer-Cb2sBWtV.js +0 -8
- package/build/assets/mcp-page-Bm4K2NQq.js +0 -9
- package/build/assets/messages-BTN5thLe.js +0 -40
- package/build/assets/onboarding-Cx_kaiD1.js +0 -1
- package/build/assets/onboarding-modal-vMwn7ihv.js +0 -1
- package/build/assets/organization-service.api-C8XpQ0pM.js +0 -1
- package/build/assets/pencil-Clh1Wjvh.js +0 -1
- package/build/assets/planner-tab-DQvDU3ap.js +0 -1
- package/build/assets/plug-BuQhHSSG.js +0 -1
- package/build/assets/plugins-management-service-BjYeF0b0.js +0 -1
- package/build/assets/plus-CEKne-Yp.js +0 -1
- package/build/assets/profiles-service.api-QB-T_u-g.js +0 -1
- package/build/assets/providers-FfSZ5TXP.js +0 -1
- package/build/assets/proxy-tcFL2yTQ.js +0 -1
- package/build/assets/recommended-automations-launcher-Bw8uC4V6.js +0 -1
- package/build/assets/refresh-cw-Bh69DyYO.js +0 -1
- package/build/assets/root-BLeQfBEq.css +0 -1
- package/build/assets/root-ZKKYPR1Z.js +0 -2
- package/build/assets/root-layout-luJoE9IG.js +0 -2
- package/build/assets/schema-field-Csw5fhtN.js +0 -1
- package/build/assets/scroll-fade-state-Dw-i4SGq.js +0 -1
- package/build/assets/sdk-section-page-HTffvm7Q.js +0 -1
- package/build/assets/secret-form-HTUbYw5o.js +0 -1
- package/build/assets/secrets-service-BTor9uAU.js +0 -1
- package/build/assets/settings-BlmrkwRi.js +0 -1
- package/build/assets/settings-DcNPxz0v.js +0 -1
- package/build/assets/settings-index-CKq0b0Vg.js +0 -1
- package/build/assets/settings-service.api-B2agVfjL.js +0 -1
- package/build/assets/shared-conversation-B55pCyBG.js +0 -1
- package/build/assets/shield-check-CFDViW82.js +0 -1
- package/build/assets/sidebar-mobile-menu-toggle-BOtyJHwE.js +0 -1
- package/build/assets/sidebar-nav-link-CPzhyHQg.js +0 -1
- package/build/assets/sidebar-store-DtpU7zaI.js +0 -1
- package/build/assets/skill-filter-CWZ5kjcg.js +0 -2
- package/build/assets/skill-scope-CV1dkAbW.js +0 -1
- package/build/assets/skills-plugins-DGHULTq6.js +0 -1
- package/build/assets/skills-settings-CM1lFv3e.js +0 -1
- package/build/assets/styled-tooltip-Dl06rkpY.js +0 -1
- package/build/assets/toggle-switch-Fd_QGz0r.js +0 -1
- package/build/assets/trash-2-Dl8_RGz0.js +0 -1
- package/build/assets/trash-_RMt7Ayc.js +0 -1
- package/build/assets/triangle-alert-SM-q4NU_.js +0 -1
- package/build/assets/usage-tab-BcfWV6db.js +0 -1
- package/build/assets/use-acp-credential-form-BsSW5NHG.js +0 -1
- package/build/assets/use-activate-agent-profile-B2NS8nA5.js +0 -1
- package/build/assets/use-agent-profiles-DWBPC0Si.js +0 -1
- package/build/assets/use-config-Bft35DOK.js +0 -1
- package/build/assets/use-create-conversation-DwN5vv2f.js +0 -1
- package/build/assets/use-create-secret-BSxJMxHp.js +0 -1
- package/build/assets/use-has-permission-B3C8rQmR.js +0 -1
- package/build/assets/use-is-authed-CFGkY3-Z.js +0 -1
- package/build/assets/use-llm-configured-BI6obxsc.js +0 -1
- package/build/assets/use-llm-profiles-djGAhTWL.js +0 -1
- package/build/assets/use-manifest-capabilities-3z0-1G59.js +0 -1
- package/build/assets/use-onboarding-completion-BXpyUSsJ.js +0 -1
- package/build/assets/use-plugins-marketplace-DI4_pK56.js +0 -1
- package/build/assets/use-save-agent-profile-DdBSTdpN.js +0 -1
- package/build/assets/use-settings-C5VhGpqd.js +0 -1
- package/build/assets/use-settings-nav-items-DHaUu1Dg.js +0 -16
- package/build/assets/use-tracking-D5t9otIF.js +0 -3
- package/build/assets/utils-DaCIEEQP.js +0 -1
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js +0 -186
- package/build/assets/vendor~index-home~home~conversation-panel~conversation~alert-banner-B3qC_oj8.js +0 -1
- package/build/assets/vendor~root-layout-BlUaZ18v.js +0 -1
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js +0 -1
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js +0 -1
- package/build/assets/x-DkgltWa0.js +0 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs +0 -2
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs.map +0 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.d.ts +0 -35
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js +0 -247
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js.map +0 -1
- package/dist/components/features/tips/random-tip.d.ts +0 -2
- package/dist/hooks/query/use-skills.cjs +0 -2
- package/dist/hooks/query/use-skills.cjs.map +0 -1
- package/dist/hooks/query/use-skills.d.ts +0 -7
- package/dist/hooks/query/use-skills.js +0 -13
- package/dist/hooks/query/use-skills.js.map +0 -1
- package/dist/hooks/use-has-permission.cjs +0 -2
- package/dist/hooks/use-has-permission.cjs.map +0 -1
- package/dist/hooks/use-has-permission.d.ts +0 -1
- package/dist/hooks/use-has-permission.js +0 -8
- package/dist/hooks/use-has-permission.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.cjs +0 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.cjs.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js.map +0 -1
- package/dist/utils/tips.d.ts +0 -7
- package/dist/utils/workspace-relative-path.cjs +0 -2
- package/dist/utils/workspace-relative-path.cjs.map +0 -1
- package/dist/utils/workspace-relative-path.d.ts +0 -10
- package/dist/utils/workspace-relative-path.js +0 -22
- package/dist/utils/workspace-relative-path.js.map +0 -1
- /package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~i58xkef6-cHFhpUBq.js} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/files-tab-CCgAcVdc.js","assets/rolldown-runtime-Cyuzqnbw.js","assets/vendor-styling-Ck5D_A2Q.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-CnsDDzeE.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-DnDoaYNi.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iyia17eu-CV850oio.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~i58xkef6-cHFhpUBq.js","assets/useQuery-S6j94er1.js","assets/messages-DUSeANAh.js","assets/active-backend-context-rZiLJRUc.js","assets/agent-server-client-options-BikiNwTa.js","assets/utils-BOco8mxR.js","assets/vendor-markdown-j0kYzV48.js","assets/useMutation-CJuK90oc.js","assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-DkPlXWl9.js","assets/markdown-renderer-rivLvYh-.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-DXqM7vqB.js","assets/iconBase-C2sR-uAp.js","assets/agent-server-conversation-service.api-DYFsNHKf.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-C7HiY4Ae.js","assets/proxy-CBgMd2zf.js","assets/profiles-service.api-BbOK0EkF.js","assets/settings-service.api-9_xdv_mh.js","assets/settings-CKqk8ZnH.js","assets/llm-subscription-service-aDNBQ7Gq.js","assets/llm-subscription-DTqtBCWz.js","assets/acp-providers-DrjNsPOH.js","assets/skill-enablement-DXeaImBz.js","assets/conversation-store-DVVfkCsk.js","assets/conversation-state-store-D1_G_9I-.js","assets/syntax-highlighter-BGDg_7w9.js","assets/copy-to-clipboard-button-B3w0X7WH.js","assets/checkmark-XZyokq_Y.js","assets/copy-Drmhc2jD.js","assets/navigation-context-CQZwH_tC.js","assets/use-settings-Dn00UISA.js","assets/use-user-conversation-ZWlXtbZb.js","assets/scroll-fade-state-Dt_fx2kf.js","assets/chevron-down-CFrWHqu8.js","assets/chevron-right-C5roOrJu.js","assets/loader-circle-Dex47vVW.js","assets/vendor~root-layout~conversation-panel~conversation~shared-conversation-DOuig0C0.js","assets/use-config-DpafU_QP.js","assets/styled-tooltip-Pd22BIvr.js","assets/get-git-path-EHrSDxTM.js","assets/close-ScPlnwyq.js","assets/skills-B0IliMxw.js","assets/u-check-circle-BKn1spCL.js","assets/typography-HLLg_FAn.js","assets/dist-Bl64nBZL.js","assets/form-control-classes-B-z85REi.js","assets/format-model-name-CasAP3nd.js","assets/cloud-funnel-analytics-BQanUEEC.js","assets/mouse-pointer-click-DEhsSUpu.js","assets/use-llm-configured-DGm8FiRR.js","assets/agent-profiles-service.api-Biieml2L.js","assets/use-tracking-B9prBsrq.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-BPjI-atc.js","assets/bot-CLMxGFaq.js","assets/use-agent-profiles-1P91KSXz.js","assets/use-llm-profiles-BTTtpW4z.js","assets/settings-utils-8GIIgOQL.js","assets/map-provider-DXvssjw9.js","assets/conversation-tab-empty-state-DKlzAz5c.js","assets/highlighted-source-view-DjHO3SdW.js","assets/folder-C1ou4_DT.js","assets/link-external-BNZzCM1I.js","assets/commits-tab-2jhtaohl.js","assets/vendor~commits-tab-BaO2Ce3e.js","assets/vendor~conversation-panel~conversation-4eJ0tml3.js","assets/vendor~root-layout~conversation-panel~conversation-3Idg1_U3.js","assets/llm-not-configured-banner-z_QRSeV0.js","assets/vendor~index-home~home~conversation-panel~conversation-CSFLzmTN.js","assets/useInfiniteQuery-BzrRqjLg.js","assets/recommended-automations-launcher-YLAQTp4s.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-CxhwKuAd.js","assets/secrets-service-Cr8g8xuv.js","assets/install-server-modal-DUiZMc8u.js","assets/brand-button-DxPO4Lf8.js","assets/settings-input-C0dd8Utu.js","assets/modal-backdrop-BSzNhM4r.js","assets/modal-close-button-B9j4nasm.js","assets/mcp-marketplace-utils-Cn_NIMWM.js","assets/modal-classes-Dg0ngBPO.js","assets/skill-card-pill-row-989y15jV.js","assets/extension-module-card-classes-DpeaYhYo.js","assets/circle-plus-check-toggle-Fr-h-mbL.js","assets/x-mark-BopmFoBq.js","assets/use-create-conversation-1YgmAHt-.js","assets/plugins-management-service-Bh_pBuf-.js","assets/use-create-secret-D8p9ybQj.js","assets/use-automations-Cg0PDIZr.js","assets/automation-C_eCrGyP.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation-DgQ564nC.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~automation-setup-route-CjECvSl5.js","assets/chat-send-button-B3SFSIg5.js","assets/check-fDEfgSzj.js","assets/circle-check-ClTzJTdb.js","assets/plus-B3wvU06-.js","assets/refresh-cw-DEQdPCpH.js","assets/context-menu-list-item-DDROe12Z.js","assets/dropdown-classes-B9kJVDIk.js","assets/home-store-DyXz0w6d.js","assets/use-is-authed-BRPjCRKM.js","assets/skill-scope-Dz3kPH3P.js","assets/use-save-settings-3U5K9-8x.js","assets/use-can-manage-org-profiles-BbN6KfDr.js","assets/organization-service.api-Cyg1Tn03.js","assets/git-repo-dropdown-DVeCUUXG.js","assets/settings-dropdown-input-DVpyD87C.js","assets/merge-agent-profile-save-input-WcFmQVKK.js","assets/base-modal-DTULovNc.js","assets/modal-body-DJw4xBki.js","assets/loading-spinner-DfHI77BA.js","assets/navigation-link-Bxo3-4vo.js","assets/use-activate-agent-profile-BLKML6vQ.js","assets/use-click-outside-element-W6Os4Nlb.js","assets/settings-gear-DaJj6Pde.js","assets/u-robot-BvAOA2ZD.js","assets/format-time-delta-BIR5Os7T.js","assets/browser-tab-DZanIw5m.js","assets/external-link-DQtv7eTh.js","assets/vendor~browser-tab-C5uuAxZX.js","assets/planner-tab-D8f2Y3rn.js","assets/list-todo-ByXMdY4W.js","assets/task-list-tab-3Jg8ywch.js","assets/usage-tab-Cm-9j3UK.js","assets/info-CTIdjttz.js","assets/terminal-onXx0_Qz.js","assets/vendor~terminal-BVSbSr6V.js","assets/vendor~terminal-T4IDBjWs.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,a as n,bt as r,m as i,xt as a,yt as o}from"./vendor-styling-Ck5D_A2Q.js";import{F as s,I as c,R as l,U as u}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~i58xkef6-cHFhpUBq.js";import{r as d}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-DnDoaYNi.js";import{t as f}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iyia17eu-CV850oio.js";import{c as p,n as m,r as h}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js";import{t as g}from"./useMutation-CJuK90oc.js";import{t as _}from"./useQueries-CykmpT-a.js";import{t as v}from"./useQuery-S6j94er1.js";import{i as y}from"./recommended-automations-launcher-YLAQTp4s.js";import{t as b}from"./vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-DkPlXWl9.js";import{$ as x,ct as S,dt as C,gt as w,n as T,ot as E,st as D}from"./active-backend-context-rZiLJRUc.js";import{A as O,D as k,E as A,F as j,G as M,K as N,L as P,M as F,T as ee,V as te,W as ne,a as I,d as re,f as ie,h as ae,i as oe,j as se,k as L,l as ce,m as le,n as ue,o as de,p as fe,r as pe,s as me,t as R,u as z,w as he,y as ge}from"./utils-BOco8mxR.js";import{a as _e,c as ve,i as ye,n as B}from"./agent-server-client-options-BikiNwTa.js";import{c as be}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-BPjI-atc.js";import{A as xe,D as Se,E as Ce,M as we,N as Te,O as Ee,P as De,S as Oe,T as ke,_ as Ae,b as je,c as Me,f as Ne,g as Pe,h as Fe,j as Ie,k as Le,l as Re,m as ze,n as Be,p as Ve,s as He,t as Ue,u as We,v as Ge,w as Ke,x as qe,y as Je}from"./messages-DUSeANAh.js";import{t as Ye}from"./check-fDEfgSzj.js";import{n as Xe,r as Ze,t as Qe}from"./vendor~root-layout~conversation-panel~conversation-3Idg1_U3.js";import{r as $e}from"./map-provider-DXvssjw9.js";import{i as et,n as tt,r as nt,t as rt}from"./empty-state-RZz0OfnY.js";import{t as it}from"./external-link-DQtv7eTh.js";import{n as at,r as ot,t as st}from"./vendor~root-layout~index-home~home~conversation-panel~conversation-DgQ564nC.js";import{c as ct,d as lt,l as ut,n as dt,s as ft,u as pt}from"./vendor~conversation-panel~conversation-4eJ0tml3.js";import{a as mt,i as ht}from"./cloud-funnel-analytics-BQanUEEC.js";import{t as gt}from"./info-CTIdjttz.js";import{t as _t}from"./list-todo-ByXMdY4W.js";import{t as vt}from"./loader-circle-Dex47vVW.js";import{a as yt,c as bt,d as xt,f as St,i as Ct,l as wt,m as Tt,n as Et,p as Dt,r as Ot,t as kt}from"./skill-filter-BBeZ4JEP.js";import{t as At}from"./x-By6qCmtY.js";import{t as jt}from"./trash-2-ZhKuTLiz.js";import{n as Mt,t as V}from"./context-menu-list-item-DDROe12Z.js";import{f as Nt}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js";import{i as Pt}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-CnsDDzeE.js";import{t as Ft}from"./proxy-CBgMd2zf.js";import{t as It}from"./loading-spinner-DfHI77BA.js";import{t as Lt}from"./use-tracking-B9prBsrq.js";import{l as Rt}from"./settings-service.api-9_xdv_mh.js";import{n as zt}from"./use-settings-Dn00UISA.js";import{t as Bt}from"./modal-backdrop-BSzNhM4r.js";import{n as Vt}from"./modal-body-DJw4xBki.js";import{n as Ht,r as Ut}from"./base-modal-DTULovNc.js";import{_ as Wt,i as Gt,u as Kt}from"./form-control-classes-B-z85REi.js";import{t as qt}from"./brand-button-DxPO4Lf8.js";import{n as Jt}from"./navigation-context-CQZwH_tC.js";import{t as Yt}from"./styled-tooltip-Pd22BIvr.js";import{r as Xt,u as Zt}from"./dropdown-classes-B9kJVDIk.js";import{c as Qt,d as $t,i as en,l as tn,m as nn,t as rn}from"./use-llm-configured-DGm8FiRR.js";import{_ as an,a as on,c as sn,d as cn,f as ln,h as un,l as H,o as dn,p as fn,t as U,u as W}from"./conversation-store-DVVfkCsk.js";import{t as pn}from"./modal-close-button-B9j4nasm.js";import{t as mn}from"./confirmation-modal-gIFHeZt6.js";import{E as hn,T as gn,j as _n,o as vn,t as yn}from"./agent-server-conversation-service.api-DYFsNHKf.js";import{t as bn}from"./use-is-authed-BRPjCRKM.js";import{d as xn,g as Sn,l as Cn,m as wn,s as Tn,t as En,u as Dn,v as On}from"./conversation-state-store-D1_G_9I-.js";import{c as kn,d as An,i as jn,l as Mn,n as Nn,r as Pn,s as Fn,t as In,u as Ln}from"./sidebar-mobile-menu-toggle-D5GR5xT9.js";import{t as Rn}from"./use-click-outside-element-W6Os4Nlb.js";import{n as zn}from"./use-create-conversation-1YgmAHt-.js";import{r as Bn}from"./vendor~root-layout~conversation-panel~conversation~shared-conversation-DOuig0C0.js";import{a as G,i as Vn,n as Hn}from"./use-can-manage-org-profiles-BbN6KfDr.js";import{t as Un}from"./u-edit-DAkcF52u.js";import{t as Wn}from"./skills-B0IliMxw.js";import{t as Gn}from"./install-server-modal-DUiZMc8u.js";import{o as Kn,s as qn,t as Jn}from"./home-store-DyXz0w6d.js";import{t as Yn}from"./use-automation-health-BZkQNEA8.js";import{t as Xn}from"./use-automations-Cg0PDIZr.js";import{t as Zn}from"./use-user-conversation-ZWlXtbZb.js";import{t as Qn}from"./copy-Drmhc2jD.js";import{r as $n}from"./typography-HLLg_FAn.js";import{n as er,o as tr,t as nr}from"./extension-module-card-classes-DpeaYhYo.js";import{t as rr}from"./secrets-service-Cr8g8xuv.js";import{t as ir}from"./use-get-secrets-CQ4b0qK8.js";import{f as ar,l as or,s as sr,t as cr}from"./mcp-marketplace-utils-Cn_NIMWM.js";import{t as lr}from"./vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-CxhwKuAd.js";import{t as ur}from"./x-mark-BopmFoBq.js";import{A as dr,B as fr,C as pr,D as mr,E as hr,F as gr,G as _r,I as vr,L as yr,M as br,N as xr,O as Sr,P as Cr,R as wr,S as Tr,T as Er,U as Dr,V as Or,W as kr,_ as Ar,a as jr,b as Mr,c as Nr,g as Pr,h as Fr,i as Ir,j as Lr,n as Rr,o as zr,p as Br,q as Vr,r as Hr,s as Ur,t as Wr,v as Gr,w as Kr,x as qr,y as Jr}from"./llm-not-configured-banner-z_QRSeV0.js";import{$ as Yr,A as Xr,B as Zr,D as K,E as Qr,F as $r,H as ei,I as ti,J as ni,K as ri,M as ii,N as ai,O as oi,P as si,Q as ci,S as li,T as q,U as ui,V as di,W as fi,Z as pi,a as mi,c as hi,et as gi,h as _i,k as vi,m as yi,nt as J,p as bi,q as xi,rt as Si,s as Ci,tt as Y,u as wi,v as Ti,w as Ei,y as Di,z as Oi}from"./markdown-renderer-rivLvYh-.js";import{a as ki,n as Ai,t as ji}from"./skill-scope-Dz3kPH3P.js";import{t as Mi}from"./git-repo-dropdown-DVeCUUXG.js";import{n as Ni,t as Pi}from"./get-git-path-EHrSDxTM.js";import{t as Fi}from"./parse-git-remote-url-DpDM9bK6.js";import{t as Ii}from"./use-breakpoint-DWtihr9g.js";import{n as Li,t as Ri}from"./error-state-B_5cgNPJ.js";import{a as zi,i as Bi,n as Vi,o as Hi,r as Ui,t as Wi}from"./mcp-page-LGYIICMG.js";import{n as Gi,t as Ki}from"./secret-form-CB2VwYYg.js";var X=e(t(),1),qi={curAgentState:L.LOADING},Ji=an(e=>({...qi,setCurrentAgentState:t=>e({curAgentState:t}),reset:()=>e(qi)})),Yi=`openhands-last-conversation-by-backend`;function Xi(e,t){return t?`${e}::${t}`:e}function Zi(){if(typeof window>`u`)return{};try{let e=window.localStorage.getItem(Yi);if(!e)return{};let t=JSON.parse(e);if(typeof t!=`object`||!t)return{};let n={};for(let[e,r]of Object.entries(t))typeof r==`string`&&r.length>0&&(n[e]=r);return n}catch{return{}}}function Qi(e){if(!(typeof window>`u`))try{window.localStorage.setItem(Yi,JSON.stringify(e))}catch{}}function $i(e,t,n){if(!n)return;let r=Zi();r[Xi(e,t)]=n,Qi(r)}function ea(e,t){let n=Zi(),r=Xi(e,t);r in n&&(delete n[r],Qi(n))}var ta=e=>({action:Te.CHANGE_AGENT_STATE,args:{agent_state:e}}),na=e=>`error`in e,ra=e=>`type`in e&&e.type===`error`,ia=()=>{let{send:e}=we(),t=K(e=>e.events);X.useEffect(()=>{if(!t.length)return;let n=t[t.length-1];if(!(ti(n)&&$r(n))){if(na(n)){if(n.error_code===401){D(`Session expired.`);return}typeof n.error==`string`?D(n.error):D(n.message);return}ra(n)&&`${n.message??``}`.startsWith(`Agent reached maximum`)&&e(ta(L.PAUSED))}},[t.length])},aa=()=>{let{curAgentState:e}=Yr();return{runtimeActive:!O.includes(e)}};function oa({children:e}){return ia(),aa(),e}var sa=`ACPAuthRequired`,ca={ACPAuthRequired:N.ERROR$ACP_AUTH_REQUIRED_TITLE,ACPSpawnError:N.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,ACPInitError:N.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,ACPPromptError:N.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,UsagePolicyRefusal:N.CHAT_INTERFACE$AGENT_ERROR_MESSAGE};function la(e){return e?ca[e]??null:null}function ua(e){return e===sa}var da={entriesByConversation:{}},fa=(e,t,n)=>({entriesByConversation:{...e.entriesByConversation,[t]:n(e.entriesByConversation[t]??[])}}),pa=an()(un(e=>({...da,addPending:(t,n)=>{let r=_n();return e(e=>fa(e,t,e=>[...e,{id:r,question:n,status:`pending`}])),r},resolve:(t,n,r)=>e(e=>fa(e,t,e=>e.map(e=>e.id===n?{...e,response:r,status:`done`}:e))),fail:(t,n,r)=>e(e=>fa(e,t,e=>e.map(e=>e.id===n?{...e,response:r,status:`error`}:e))),dismiss:(t,n)=>e(e=>fa(e,t,e=>e.filter(e=>e.id!==n)))}),{name:`BtwStore`})),Z=o();function ma({onClick:e}){let{t}=f(`openhands`);return(0,Z.jsxs)(`button`,{type:`button`,onClick:e,className:`flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-normal text-success bg-success/10 hover:bg-success/20 border border-success/30 transition-colors`,children:[(0,Z.jsx)(Le,{className:`w-3.5 h-3.5 fill-success`}),(0,Z.jsx)(`span`,{children:t(N.CHAT_INTERFACE$BTW_GOT_IT)})]})}function ha({conversationId:e}){let{t}=f(`openhands`),n=pa(e=>e.entriesByConversation),r=pa(e=>e.dismiss),i=e?n[e]??[]:[];return!e||i.length===0?null:(0,Z.jsx)(`div`,{"data-testid":`btw-messages`,className:`flex flex-col w-full`,children:i.map(n=>{let i=n.status===`pending`;return(0,Z.jsx)(xe,{title:(0,Z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`opacity-60`,children:t(N.CHAT_INTERFACE$BTW_PREFIX)}),(0,Z.jsx)(`span`,{children:n.question}),i&&(0,Z.jsx)(`span`,{"data-testid":`btw-spinner`,className:`inline-block w-3.5 h-3.5 ml-2 rounded-full border-2 border-transparent border-t-[var(--oh-border-input)] animate-spin`})]}),details:i?t(N.CHAT_INTERFACE$BTW_WAITING_FOR_ANSWER):n.response??``,initiallyExpanded:!i,chevronPosition:`before`,titleTrailing:!i&&(0,Z.jsx)(ma,{onClick:()=>r(e,n.id)})},n.id)})})}function ga({conversationId:e}){let t=li(e=>e.statusByConversation),n=e?t[e]:void 0;return n?.active?(0,Z.jsx)(Ee,{status:n}):null}var _a=`${F} `,va=(e,t)=>{let n=pa(e=>e.addPending),r=pa(e=>e.resolve),i=pa(e=>e.fail);return(0,X.useCallback)(a=>{let o=a.trim(),s=o===`/btw`||o.startsWith(_a);if(!e||!s){t(a);return}let c=o.slice(F.length).trim();if(!c)return;let l=n(e,c);Dn(e,c).then(({response:t})=>r(e,l,t)).catch(t=>i(e,l,t?.message??`Failed to ask agent`))},[e,t,n,r,i])},ya=`${P} `,ba=/^--max(?:=|\s+)(\d+)\s*/,xa=(e,t)=>{let{t:n}=f();return(0,X.useCallback)(r=>{let i=r.trim(),a=i===`/goal`||i.startsWith(ya);if(!e||!a){t(r);return}let o=i.slice(P.length).trim(),s,c=o.match(ba);c&&(s=parseInt(c[1],10),o=o.slice(c[0].length).trim());let l=o;if(!l){D(n(N.GOAL$OBJECTIVE_REQUIRED));return}let u={objective:l};s&&s>=1&&(u.max_iterations=s),Sn(e,u).catch(e=>{let t=n(N.GOAL$START_FAILED);D(e instanceof Error&&e.message?e.message:t)})},[e,t,n])},Sa=`${te} `,Ca=`${j} `,wa=(e,t,n)=>{let r=U(e=>e.setConversationMode),{handlePlanClick:i,hasPlanner:a,isCreatingConversation:o}=xr(),s=Dr()===`OPEN`,c=kr()===`OPEN`,{isPlanningAgentRunning:l}=gi();return(0,X.useCallback)(u=>{let d=u.trim(),f=d===`/plan`||d.startsWith(Sa),p=d===`/code`||d.startsWith(Ca);if(!e||!f&&!p){n(u);return}if(!(t===L.RUNNING||o))if(f){if(l||!c)return;let e=d.slice(te.length).trim();e&&a?(r(`plan`),n(e)):i(void 0,e||void 0)}else{if(!s)return;r(`code`);let e=d.slice(j.length).trim();e&&n(e)}},[e,t,a,o,s,l,c,n,i,r])},Ta=`flex flex-row gap-1 items-center justify-center rounded-[100px]`;function Ea(e){return R(Ta,e?`bg-[var(--oh-surface)] hover:bg-tertiary cursor-pointer text-white`:`bg-[var(--oh-surface)] cursor-not-allowed opacity-50 text-[var(--oh-muted)]`)}function Da(e){return e?`white`:`var(--oh-muted)`}var Oa=`font-normal text-sm leading-5 truncate`;function ka({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,isConversationReady:r=!0}){let{t:i}=f(`openhands`),{trackPullButtonClick:a}=Lt(),o=n&&t&&r;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{a(),e(re())},disabled:!o,className:R(Ea(o),`px-0.5 py-1 w-[76px] min-w-[76px]`),children:[(0,Z.jsx)(`div`,{className:`w-3 h-3 flex items-center justify-center`,children:(0,Z.jsx)(Er,{width:12,height:12,color:Da(o)})}),(0,Z.jsx)(`div`,{className:R(Oa,`max-w-[76px]`),title:i(N.COMMON$PULL),children:i(N.COMMON$PULL)})]})}function Aa({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,currentGitProvider:r,isConversationReady:i=!0}){let{t:a}=f(`openhands`),{trackPushButtonClick:o}=Lt(),s=n&&t&&i;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{o(),e(ie(r))},disabled:!s,className:R(Ea(s),`px-2 py-1 w-[77px] min-w-[77px]`),children:[(0,Z.jsx)(`div`,{className:`w-3 h-3 flex items-center justify-center`,children:(0,Z.jsx)(hr,{width:12,height:12,color:Da(s)})}),(0,Z.jsx)(`div`,{className:R(Oa,`max-w-[77px]`),title:a(N.COMMON$PUSH),children:a(N.COMMON$PUSH)})]})}function ja({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,currentGitProvider:r,isConversationReady:i=!0}){let{t:a}=f(`openhands`),{trackCreatePrButtonClick:o}=Lt(),s=n&&t&&i;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{o(),e(me(r))},disabled:!s,className:R(Ea(s),`px-2 py-1 w-[126px] min-w-[126px] h-7`),children:[(0,Z.jsx)(`div`,{className:`w-3 h-3 flex items-center justify-center`,children:(0,Z.jsx)(Kr,{width:12,height:12,color:Da(s)})}),(0,Z.jsx)(`div`,{className:R(Oa,`max-w-[126px]`),title:a(N.COMMON$PULL_REQUEST),children:a(N.COMMON$PULL_REQUEST)})]})}function Ma(e){return e.kind===`BashCommand`}function Na(e){return e.kind===`BashOutput`}function Pa(e){return e.kind===`BashError`}function Fa(e,t,n){let r=(0,X.useRef)(null),i=(0,X.useRef)(null),a=(0,X.useRef)([]),o=(0,X.useRef)([]),s=(0,X.useRef)(new Map);return(0,X.useEffect)(()=>{if(!n)return;let c=ye(e),l=new WebSocket(c);r.current=l,i.current=null;let u=pi(l);l.onopen=()=>{u(),ci(l,t),i.current=l;for(let{command:e,cwd:t,timeout:n,resolve:r,reject:i}of a.current)o.current.push({resolve:r,reject:i}),l.send(JSON.stringify({command:e,cwd:t,timeout:n}));a.current=[]},l.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(Ma(t)){let e=o.current.shift();e&&s.current.set(t.id,{...e,stdout:[],stderr:[]})}else if(Na(t)&&t.command_id){let e=s.current.get(t.command_id);e&&(t.stdout&&e.stdout.push(t.stdout),t.stderr&&e.stderr.push(t.stderr),t.exit_code!=null&&(s.current.delete(t.command_id),e.resolve({exit_code:t.exit_code,stdout:e.stdout.join(``),stderr:e.stderr.join(``)})))}else Pa(t)&&d(`Bash error: ${t.code}: ${t.detail}`)};function d(e){let t=Error(e);for(let{reject:e}of a.current)e(t);a.current=[];for(let e of o.current)e.reject(t);o.current=[];for(let e of s.current.values())e.reject(t);s.current.clear()}return l.onclose=()=>{u(),r.current=null,i.current=null,d(`Bash WebSocket closed`)},l.onerror=()=>{r.current=null,i.current=null,d(`Bash WebSocket error`)},()=>{u(),l.onclose=null,l.onerror=null,l.close(),r.current=null,i.current=null,d(`Bash WebSocket unmounted`)}},[n,e,t]),(0,X.useCallback)((e,t,n)=>new Promise((s,c)=>{let l=r.current;if(!l||l.readyState===WebSocket.CLOSED||l.readyState===WebSocket.CLOSING){c(Error(`Bash WebSocket not available`));return}l.readyState!==WebSocket.OPEN||i.current!==l?a.current.push({command:e,cwd:t,timeout:n,resolve:s,reject:c}):(o.current.push({resolve:s,reject:c}),l.send(JSON.stringify({command:e,cwd:t,timeout:n})))}),[])}var Ia={repository:null,branch:null,provider:null,remoteUrl:null},La=[`r=$(git remote get-url origin 2>/dev/null)`,`b=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)`,`if [ -z "$r$b" ]; then`,`n=$(find . -mindepth 2 -maxdepth 4 -name .git 2>/dev/null | cut -c3- | sed 's|/.git$||' | sort -u)`,`c=$(printf '%s\\n' "$n" | grep -c '[^[:space:]]')`,`if [ "$c" = "1" ] && [ -n "$n" ]; then`,`r=$(git -C "$n" remote get-url origin 2>/dev/null)`,`b=$(git -C "$n" rev-parse --abbrev-ref HEAD 2>/dev/null)`,`fi`,`fi`,`printf '%s\\n%s' "$r" "$b"`].join(`
|
|
3
|
+
`);async function Ra(e,t){let n=await e(La,t,10);if(n.exit_code!==0)return Ia;let r=n.stdout.indexOf(`
|
|
4
|
+
`),i=(r>=0?n.stdout.slice(0,r):n.stdout).trim(),a=(r>=0?n.stdout.slice(r+1):``).trim(),o=a&&a!==`HEAD`?a:null;if(!i&&!o)return Ia;let s=Fi(i);return{repository:s?.repository??null,provider:s?.provider??null,remoteUrl:i||null,branch:o}}var za=()=>{let{data:e}=Y(),t=Ni(),{backend:n}=T(),r=n.kind===`local`,i=e?.id,a=e?.conversation_url,o=e?.session_api_key,s=e?.workspace?.working_dir?.trim(),c=!!e?.selected_repository,l=!!e?.git_provider,u=!!e?.selected_branch,d=r&&t&&!!i&&!!s&&(!c||!l||!u),f=Fa(a,o,d),p=(0,X.useRef)(f);return p.current=f,v({queryKey:[`local-git-info`,i,a,o,s],queryFn:async()=>Ra((e,t,n)=>p.current(e,t,n),s),enabled:d,retry:!1,staleTime:1e4,refetchInterval:1e4,gcTime:1e3*60*5,meta:{disableToast:!0}})},Ba=()=>{let e=d(),{t}=f(`openhands`);return g({mutationFn:e=>yn.updateConversationRepository(e.conversationId,e.repository,e.branch,e.gitProvider),onMutate:async t=>{let n=[`user`,`conversation`,t.conversationId];await e.cancelQueries({queryKey:n});let r=e.getQueriesData({queryKey:n});return e.setQueriesData({queryKey:n},e=>e&&{...e,selected_repository:t.repository,selected_branch:t.branch??null,git_provider:t.gitProvider??null}),{previousEntries:r}},onError:(n,r,i)=>{i?.previousEntries.forEach(([t,n])=>{e.setQueryData(t,n)}),D(t(N.CONVERSATION$FAILED_TO_UPDATE_REPOSITORY))},onSuccess:()=>{S(t(N.CONVERSATION$REPOSITORY_UPDATED))},onSettled:(t,n,r)=>{e.invalidateQueries({queryKey:[`user`,`conversation`,r.conversationId]}),e.invalidateQueries({queryKey:[`user`,`conversations`]}),e.invalidateQueries({queryKey:[`local-git-info`,r.conversationId]})}})};function Va({children:e,tooltipMessage:t,testId:n,shouldShowTooltip:r}){return r?(0,Z.jsx)(Yt,{content:t,placement:`top`,showArrow:!0,tooltipClassName:`bg-white text-black`,children:(0,Z.jsx)(`span`,{"data-testid":n,className:`hover:opacity-100`,children:e})}):e}function Ha({isOpen:e,onClose:t,onLaunch:n,defaultProvider:r=`github`}){let{t:i}=f(`openhands`),{providers:a}=qn(),[o,s]=(0,X.useState)(null),[c,l]=(0,X.useState)(null),[u,d]=(0,X.useState)(null);(0,X.useEffect)(()=>{a.length===1&&!o?s(a[0]):a.length>1&&!o&&r&&a.includes(r)&&s(r)},[a,o,r]);let p=(0,X.useCallback)(e=>{e!==o&&(s(e),l(null),d(null))},[o]),m=(0,X.useCallback)(e=>{e?(l(e),d(null)):(l(null),d(null))},[]),h=(0,X.useCallback)(e=>{d(e)},[]),g=()=>{!c||!u||(n(c,u),l(null),d(null),t())},_=()=>{s(null),l(null),d(null),t()};if(!e)return null;let v=c?.git_provider||o||r,y=!!c&&!!u;return(0,Z.jsx)(Bt,{onClose:_,children:(0,Z.jsxs)(Vt,{width:`sm`,className:`relative items-start border border-[var(--oh-border)] !gap-4`,children:[(0,Z.jsx)(pn,{onClose:_,testId:`close-open-repository-modal`}),(0,Z.jsx)(`div`,{className:`w-full pr-6`,children:(0,Z.jsx)(Ut,{title:i(N.CONVERSATION$OPEN_REPOSITORY)})}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-4 w-full`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Z.jsx)(`span`,{className:`text-sm text-white font-normal leading-[22px]`,children:i(N.CONVERSATION$SELECT_OR_INSERT_LINK)}),a.length>1&&(0,Z.jsx)(jr,{providers:a,value:o,onChange:p})]}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-[10px] w-full`,children:[(0,Z.jsx)(Mi,{provider:v,value:c?.id||null,repositoryName:c?.full_name||null,onChange:m,className:`w-full`}),(0,Z.jsx)(Ir,{repository:c?.full_name||null,provider:v,selectedBranch:u,onBranchSelect:h,defaultBranch:c?.main_branch||null,disabled:!c,className:`w-full`})]})]}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2 w-full`,onClick:e=>e.stopPropagation(),children:[(0,Z.jsx)(qt,{type:`button`,variant:`secondary`,onClick:_,children:i(N.BUTTON$CANCEL)}),(0,Z.jsx)(qt,{type:`button`,variant:`primary`,onClick:g,isDisabled:!y,children:i(N.BUTTON$LAUNCH)})]})]})})}function Ua({onSuggestionsClick:e}){let{t}=f(`openhands`),{conversationId:n}=J(),[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(!1),s=(0,X.useRef)(null),{addRecentRepository:c}=Jn(),l=q(e=>e.enqueuePendingMessage),u=q(e=>e.markPendingMessageError),{backend:d}=T(),p=d.kind===`local`,{providers:m}=qn(),h=p||m.length>0,{data:g}=Y(),{repositoryInfo:_}=vr(),{data:v}=za(),y=kr(),b=hi()?.isLoadingHistory??!1,x=(0,X.useRef)(y);(0,X.useEffect)(()=>{x.current=y},[y]);let{send:S}=we(),C=(0,X.useRef)(S);(0,X.useEffect)(()=>{C.current=S},[S]);let w=ke(),{mutate:E}=Ba(),{mutate:O,isPending:k}=zn(),A=g?.selected_repository||_?.selectedRepository,j=g?.git_provider||_?.gitProvider,M=g?.selected_branch||_?.selectedBranch,P=A||v?.repository||void 0,F=j||v?.provider,ee=M||v?.branch||void 0,te=(g?.id?hn(g.id):null)?.selected_workspace??null,ne=te&&te.replace(/\/+$/,``).split(`/`).pop()||null,I=!!P&&!!F,re=!!g&&y===`OPEN`&&!b;(0,X.useEffect)(()=>{if(!a)return;let e=e=>{s.current&&!s.current.contains(e.target)&&o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]),(0,X.useEffect)(()=>{if(!a)return;let e=e=>{e.key===`Escape`&&o(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[a]);let ie=(e,r)=>{n&&(c(e),E({conversationId:n,repository:e.full_name,branch:r.name,gitProvider:e.git_provider},{onSuccess:()=>{if(x.current!==`OPEN`){D(t(N.CONVERSATION$CLONE_COMMAND_FAILED_DISCONNECTED));return}let i=e.git_provider.charAt(0).toUpperCase()+e.git_provider.slice(1),a=`Clone ${e.full_name} from ${i} and checkout branch ${r.name}.`,o=n?l({conversationId:n,text:a}):null;w?.scrollDomToBottom(),Promise.resolve(C.current({action:`message`,args:{content:a,timestamp:new Date().toISOString()}})).catch(e=>{o&&u(o,e instanceof Error?e.message:t(N.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))})}}))},ae=!p||!!P||!!ne,oe=p&&!I;return ae||ee||I?(0,Z.jsxs)(`div`,{className:`flex flex-row items-center`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-row gap-2.5 items-center overflow-x-auto flex-nowrap relative scrollbar-hide`,children:[ae?(0,Z.jsx)(Hr,{selectedRepository:P,gitProvider:F,workspaceName:ne,onClick:()=>i(!0),disabled:!re||oe}):null,ee?(0,Z.jsx)(Rr,{selectedBranch:ee,selectedRepository:P,gitProvider:F}):null,I?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Va,{tooltipMessage:t(N.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-pull-button-tooltip`,shouldShowTooltip:!I,children:(0,Z.jsx)(ka,{onSuggestionsClick:e,hasRepository:I,providerTokensReady:h,isConversationReady:re})}),(0,Z.jsx)(Va,{tooltipMessage:t(N.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-push-button-tooltip`,shouldShowTooltip:!I,children:(0,Z.jsx)(Aa,{onSuggestionsClick:e,hasRepository:I,providerTokensReady:h,currentGitProvider:F,isConversationReady:re})}),(0,Z.jsx)(Va,{tooltipMessage:t(N.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-pr-button-tooltip`,shouldShowTooltip:!I,children:(0,Z.jsx)(ja,{onSuggestionsClick:e,hasRepository:I,providerTokensReady:h,currentGitProvider:F,isConversationReady:re})})]}):null]}),(0,Z.jsx)(Ha,{isOpen:r,onClose:()=>i(!1),onLaunch:ie,defaultProvider:F})]}):null}function Wa({onSubmit:e,disabled:t=!1,hasStartedConversation:n}){let{images:r,files:i,imagesMarkedUploadAsFile:a,clearAllFiles:o,subConversationTaskId:s}=U(),{curAgentState:c}=Yr(),{data:l}=Y(),{conversationId:u}=Si(),d=u??l?.id??null,{taskStatus:f}=gr(s,l?.id||null),{handleUpload:p}=zr(),m=Ur(d,xa(d,wa(d,c,va(d,t=>{let{imagesToEmbed:n,imagesAsFiles:s}=Vr(r,a);e(t,n,[...i,...s]),o()}))));return(0,Z.jsxs)(`div`,{"data-testid":`interactive-chat-box`,children:[(0,Z.jsx)(Nr,{disabled:t||c===L.AWAITING_USER_CONFIRMATION||ge(f),isNewConversationPending:t,hasStartedConversation:n,onSubmit:m,onFilesPaste:p}),(0,Z.jsx)(`div`,{className:`mt-3 pb-3`,children:(0,Z.jsx)(Ua,{onSuggestionsClick:e=>{m(e)}})})]})}function Ga(){let e=K(e=>e.events),t=K(e=>e.uiEvents),n=X.useMemo(()=>t.filter(yi),[t]),r=X.useMemo(()=>e,[e]),i=X.useMemo(()=>n.length,[n]),a=X.useMemo(()=>r.some(e=>e.source===`agent`&&!ni(e)&&!Oi(e)),[r]),o=bi(r);return{storeEvents:e,uiEvents:t,renderableEvents:n,allConversationEvents:r,totalEvents:i,hasSubstantiveAgentActions:a,conversationUserEventsExist:o,userEventsExist:o}}var Ka=e=>`timestamp`in e?e.timestamp:void 0,qa=e=>{let t=!!e&&on(e),n=t?void 0:e,{data:r}=Zn(e??null),{data:i,isFetched:a}=_i(n??void 0),o=K(e=>e.addEvents),[s,c]=X.useState(!1),[l,u]=X.useState(!0),d=X.useRef(!1),f=X.useRef(!0);return X.useEffect(()=>{if(d.current=!1,c(!1),t){f.current=!1,u(!1);return}f.current=!0,u(!0)},[e,t]),X.useEffect(()=>{t||!a||!i||i.hasMore||(f.current=!1,u(!1))},[t,a,i?.hasMore,n]),{isLoading:s,hasMore:l,loadOlder:X.useCallback(async()=>{if(!e||on(e)||d.current||!f.current||!r)return;let{events:t}=K.getState(),n=t[0];if(!n)return;let i=Ka(n);if(!i){f.current=!1,u(!1);return}d.current=!0,c(!0);try{let t=await Ti.searchEvents(e,r?.conversation_url??null,r?.session_api_key??null,{limit:50,sortOrder:`TIMESTAMP_DESC`,timestampLt:i});if(!Array.isArray(t.items))throw Error(`Invalid older-events response: expected page.items to be an array.`);let n=[...t.items].reverse();n.length>0&&(o(n),wi(e,K.getState().uiEvents)),(!t.next_page_id||t.items.length<50)&&(f.current=!1,u(!1))}finally{d.current=!1,c(!1)}},[e,r,r?.conversation_url,r?.session_api_key,o])}},Ja=an(e=>({count:0,bump:()=>e(e=>({count:e.count+1}))}));function Ya(e,t){return e===null?null:`${e}${e.includes(`?`)?`&`:`?`}v=${t}`}var Xa=new Set([`FileEditorObservation`,`StrReplaceEditorObservation`,`PlanningFileEditorObservation`]),Za=new Set([`view`]),Qa=new Set([`ExecuteBashObservation`,`TerminalObservation`]);function $a(e){let t=e.observation;return!(!t||typeof t.kind!=`string`||!Xa.has(t.kind)||t.command&&Za.has(t.command))}function eo(e){let t=e.observation;return!!t&&typeof t.kind==`string`&&Qa.has(t.kind)}function to(){let e=d(),t=K(e=>e.events),n=Ja(e=>e.bump),r=(0,X.useRef)(new Set),i=(0,X.useRef)(new WeakSet);(0,X.useEffect)(()=>{let a=!1,o=!1;for(let e of t){let t=`id`in e?e.id:void 0;(t===void 0?i.current.has(e):r.current.has(t))||(t===void 0?i.current.add(e):r.current.add(t),$a(e)?a=!0:eo(e)&&(o=!0))}!a&&!o||(e.invalidateQueries({queryKey:[`file_changes`]}),e.invalidateQueries({queryKey:[`file_diff`]}),e.invalidateQueries({queryKey:[`git_commits`]}),a&&(e.invalidateQueries({queryKey:[`workspace-files`]}),e.invalidateQueries({queryKey:[`workspace-file-content`]}),n()))},[t,e,n])}var no={kind:`translation`,key:`ACTION_MESSAGE$THINK`,values:{}},ro=new Set([`ExecuteBashAction`,`TerminalAction`,`FileEditorAction`,`StrReplaceEditorAction`,`MCPToolAction`,`InvokeSkillAction`,`TaskAction`,`ThinkAction`,`TaskTrackerAction`,`GrepAction`,`GlobAction`,`BrowserNavigateAction`,`BrowserClickAction`,`BrowserTypeAction`,`BrowserGetStateAction`,`BrowserGetContentAction`,`BrowserScrollAction`,`BrowserGoBackAction`,`BrowserListTabsAction`,`BrowserSwitchTabAction`,`BrowserCloseTabAction`]),io=e=>{if(!si(e))return null;let t=Ge(e);return t?{kind:`text`,text:t}:ro.has(e.action.kind)?Ae(e):null},ao=e=>e.source===`environment`&&`rejection_reason`in e,oo=e=>{let t=new Set,n=new Set;for(let r=e.length-1;r>=0;--r){let i=e[r];if(!i.isFromPlanningAgent){if(fi(i)||ao(i)){t.add(i.action_id),n.add(i.tool_call_id);continue}if($r(i)){n.add(i.tool_call_id);continue}if(ai(i)){if(!(i.status===`pending`||i.status===`in_progress`)){n.add(i.tool_call_id);continue}if(n.has(i.tool_call_id))continue;let e=qe(i);return e?{kind:`translation`,key:je(i),values:{title:e}}:no}if(si(i)&&!t.has(i.id)&&!n.has(i.tool_call_id))return io(i)??no}}return no};function so({events:e}){let t=oo(e);return(0,Z.jsxs)(`div`,{className:`flex min-w-0 max-w-full items-center gap-2 rounded-full border border-[var(--oh-border)] bg-[var(--oh-surface)] px-3 py-1.5 text-xs text-[var(--oh-text-secondary)]`,"data-testid":`live-activity-chip`,role:`status`,"aria-live":`polite`,children:[(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 shrink-0 animate-pulse rounded-full bg-[var(--oh-status-success)] motion-reduce:animate-none`}),(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:t.kind===`text`?t.text:(0,Z.jsx)(b,{ns:`openhands`,i18nKey:t.key,values:t.values,components:{path:(0,Z.jsx)(Fe,{}),cmd:(0,Z.jsx)(Pe,{})}})})]})}function co({suggestion:e,onClick:t}){let{t:n}=f(`openhands`);return(0,Z.jsxs)(`button`,{type:`button`,className:`list-none border border-[var(--oh-border)] rounded-[15px] hover:bg-surface-raised hover:border-[var(--oh-interactive-hover)] transition-colors flex-1 flex items-center justify-center cursor-pointer gap-[10px] h-[55px] px-4`,onClick:()=>t(e.value),children:[(0,X.useMemo)(()=>{switch(e.label){case`INCREASE_TEST_COVERAGE`:return(0,Z.jsx)(pr,{width:24,height:24,color:`#fff`});case`AUTO_MERGE_PRS`:return(0,Z.jsx)(Tr,{width:19,height:20,color:`#fff`});case`FIX_README`:return(0,Z.jsx)(qr,{width:24,height:24,color:`#fff`});case`CLEAN_DEPENDENCIES`:return(0,Z.jsx)(Mr,{width:24,height:24,color:`#fff`});default:return null}},[e]),(0,Z.jsx)(`span`,{"data-testid":`suggestion`,className:`text-[15px] font-normal leading-5 text-white text-center cursor-pointer`,children:n(e.label)})]})}function lo({suggestions:e,onSuggestionClick:t}){return(0,Z.jsx)(`div`,{"data-testid":`suggestions`,className:`grid grid-cols-2 gap-5 max-w-fit`,children:e.map((e,n)=>(0,Z.jsx)(co,{suggestion:e,onClick:t},n))})}var uo=N.SUGGESTIONS$HACKER_NEWS,fo=`Please write a bash script which displays the top story on Hacker News. It should show the title, the link, and the number of points.
|
|
5
|
+
The script should only use tools that are widely available on unix systems, like curl and grep.`,po=N.SUGGESTIONS$HELLO_WORLD,mo=`I want to create a Hello World app in Javascript that:
|
|
6
|
+
* Displays Hello World in the middle.
|
|
7
|
+
* Has a button that when clicked, changes the greeting with a bouncing animation to fun versions of Hello.
|
|
8
|
+
* Has a counter for how many times the button has been clicked.
|
|
9
|
+
* Has another button that changes the app's background color.`,ho=N.SUGGESTIONS$TODO_APP,go=`I want to create a VueJS app that allows me to:
|
|
10
|
+
* See all the items on my todo list
|
|
11
|
+
* add a new item to the list
|
|
12
|
+
* mark an item as done
|
|
13
|
+
* totally remove an item from the list
|
|
14
|
+
* change the text of an item
|
|
15
|
+
* set a due date on the item
|
|
16
|
+
|
|
17
|
+
This should be a client-only app with no backend. The list should persist in localStorage.`,_o={repo:Jr,"non-repo":{[uo]:fo,[po]:mo,[ho]:go}};function vo({onSuggestionsClick:e}){let{t}=f(`openhands`),{shouldHideSuggestions:n}=U();return(0,Z.jsx)(i,{children:!n&&(0,Z.jsxs)(Qe.div,{"data-testid":`chat-suggestions`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:`easeInOut`},className:`pointer-events-auto absolute inset-x-4 bottom-[151px] top-0 flex flex-col items-center justify-center md:inset-x-8`,children:[(0,Z.jsx)(`div`,{className:`flex flex-col items-center p-4 rounded-xl w-full`,children:(0,Z.jsx)(`span`,{className:`pb-6 text-[32px] font-medium leading-5 text-white`,children:t(N.LANDING$TITLE)})}),(0,Z.jsx)(lo,{suggestions:Object.entries(_o.repo).slice(0,4).map(([e,t])=>({label:e,value:t})),onSuggestionClick:e})]})})}var yo={files:[],initialPrompt:null,selectedRepository:null,selectedRepositoryProvider:null,replayJson:null},bo=an(e=>({...yo,addFile:t=>e(e=>({files:[...e.files,t]})),removeFile:t=>e(e=>({files:e.files.filter((e,n)=>n!==t)})),clearFiles:()=>e(()=>({files:[]})),setInitialPrompt:t=>e(()=>({initialPrompt:t})),clearInitialPrompt:()=>e(()=>({initialPrompt:null})),setSelectedRepository:t=>e(()=>({selectedRepository:t})),clearSelectedRepository:()=>e(()=>({selectedRepository:null})),setSelectedRepositoryProvider:t=>e(()=>({selectedRepositoryProvider:t})),setReplayJson:t=>e(()=>({replayJson:t})),reset:()=>e(()=>yo)})),xo=e=>(0,Z.jsx)(`svg`,{width:12,height:17,viewBox:`0 0 12 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.5304 6.46978L10.4697 7.53044L6.75006 3.81077L6.75006 17.0001H5.25006L5.25006 3.81077L1.53039 7.53044L0.469727 6.46978L6.00006 0.939453L11.5304 6.46978Z`,fill:`currentColor`})});function So({onClick:e}){return(0,Z.jsx)(`button`,{type:`button`,onClick:e,"data-testid":`scroll-to-bottom`,className:`flex items-center justify-center size-8 rounded-full bg-[var(--oh-surface)] text-[var(--oh-muted)] hover:bg-tertiary hover:text-white rotate-180 cursor-pointer transition-colors`,children:(0,Z.jsx)(xo,{width:15,height:15})})}var Co=[{width:`w-[25%]`,height:`h-4`,align:`justify-end`},{width:`w-[60%]`,height:`h-4`,align:`justify-start`},{width:`w-[45%]`,height:`h-4`,align:`justify-start`},{width:`w-[65%]`,height:`h-20`,align:`justify-start`},{width:`w-[35%]`,height:`h-4`,align:`justify-end`},{width:`w-[50%]`,height:`h-4`,align:`justify-start`},{width:`w-[30%]`,height:`h-4`,align:`justify-end`},{width:`w-[75%]`,height:`h-4`,align:`justify-start`},{width:`w-[55%]`,height:`h-4`,align:`justify-start`}];function wo({width:e,height:t}){return(0,Z.jsx)(`div`,{className:R(`rounded-md bg-foreground/5 animate-pulse`,e,t)})}function To(){let{t:e}=f(`openhands`);return(0,Z.jsx)(`div`,{className:`flex flex-col gap-6 p-4 w-full h-full overflow-hidden`,"data-testid":`chat-messages-skeleton`,"aria-label":e(N.CHAT_INTERFACE$LOADING_CONVERSATION),children:Co.map((e,t)=>(0,Z.jsx)(`div`,{className:R(`flex w-full`,e.align),children:(0,Z.jsx)(wo,{width:e.width,height:e.height})},t))})}var Eo=220;function Do({message:e,code:t,onDismiss:n,onRetry:r,onReauth:i,classification:a}){let{t:o,i18n:s}=f(`openhands`),c=la(t),[l,u]=X.useState(!1),[d,p]=X.useState(!1),[m,g]=X.useState(!1),_=X.useRef(null),v=s.exists(e,{ns:`openhands`}),y=v?String(o(e)):e,x=y.length>Eo,S=x&&!l;return X.useEffect(()=>{if(!m)return;let e=setTimeout(()=>{g(!1)},2e3);return()=>clearTimeout(e)},[m]),X.useEffect(()=>{g(!1)},[y]),X.useLayoutEffect(()=>{let e=_.current;if(!e)return;let t=()=>{let t=Number.parseFloat(getComputedStyle(e).lineHeight);if(!Number.isFinite(t)||t<=0){p(!1);return}p(e.getBoundingClientRect().height>t*1.5)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[y,S,l,e]),(0,Z.jsxs)(`div`,{className:R(`flex w-full gap-2 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-2 text-[var(--oh-foreground)]`,d?`items-start`:`items-center`),"data-testid":`error-message-banner`,children:[a!=null&&a.kind!==`internal`&&a.kind!==`unknown`?(0,Z.jsx)(be,{"aria-hidden":!0,className:`h-4 w-4 shrink-0 text-[var(--oh-warning)]`,strokeWidth:2,"data-testid":`warning-message-banner-icon`}):(0,Z.jsx)(h,{"aria-hidden":!0,className:`h-4 w-4 shrink-0`,strokeWidth:2,style:{color:ne},"data-testid":`error-message-banner-icon`}),(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[c&&(0,Z.jsx)(`div`,{className:`text-sm font-medium text-[var(--oh-foreground)]`,"data-testid":`error-message-banner-header`,children:o(c)}),(0,Z.jsx)(`div`,{ref:_,className:R(`whitespace-pre-wrap break-words text-sm text-[var(--oh-muted)]`,S&&`line-clamp-3`),"data-testid":`error-message-banner-content`,children:v?(0,Z.jsx)(b,{ns:`openhands`,i18nKey:e}):e}),i&&(0,Z.jsx)(`button`,{type:`button`,onClick:i,className:`mt-2 cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]`,"data-testid":`error-message-banner-reauth`,children:o(N.ERROR$ACP_UPDATE_CREDENTIALS)}),x&&(0,Z.jsx)(`button`,{type:`button`,className:`mt-1 cursor-pointer text-xs font-normal text-[var(--oh-foreground)] underline`,onClick:()=>u(e=>!e),"data-testid":`error-message-banner-toggle`,children:o(l?N.COMMON$VIEW_LESS:N.COMMON$VIEW_MORE)})]}),(0,Z.jsxs)(`div`,{className:R(`flex shrink-0 gap-1`,d?`self-start`:`items-center`),children:[r&&(0,Z.jsx)(`button`,{type:`button`,onClick:r,className:`cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]`,"data-testid":`error-message-banner-retry`,children:o(N.CHAT_INTERFACE$MESSAGE_RETRY)}),(0,Z.jsx)(`button`,{type:`button`,onClick:async()=>{try{await navigator.clipboard.writeText(y),g(!0)}catch{D(o(N.CHAT_INTERFACE$CHAT_MESSAGE_COPY_FAILED))}},className:`shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]`,"aria-label":o(m?N.BUTTON$COPIED:N.BUTTON$COPY),"data-testid":`error-message-banner-copy`,children:m?(0,Z.jsx)(Ye,{className:`h-4 w-4`,"aria-hidden":!0}):(0,Z.jsx)($e,{className:`h-4 w-4`,"aria-hidden":!0})}),n&&(0,Z.jsx)(`button`,{type:`button`,onClick:n,className:`shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]`,"aria-label":o(N.BUTTON$CLOSE),"data-testid":`error-message-banner-dismiss`,children:(0,Z.jsx)(At,{className:`h-4 w-4`,"aria-hidden":!0})})]})]})}var Oo={dismissedEventIds:{}},ko=an()(un(e=>({...Oo,dismiss:t=>e(e=>({dismissedEventIds:{...e.dismissedEventIds,...Object.fromEntries(t.map(e=>[e,!0]))}}))}),{name:`SkillInstallBannerStore`})),Ao=/^✅ Successfully installed '([^']+)' to (.+)$/m;function jo(e){let t=new Map;for(let n of e){if(!Zr(n))continue;let e=n.observation.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
18
|
+
`).match(Ao);if(!e)continue;let r=e[1],i=e[2].replace(/\\/g,`/`).replace(/\/+$/,``),a=`/.agents/skills/${r}`;if(!i.endsWith(a))continue;let o=i.slice(0,-a.length);if(!o)continue;let s=`${o}::${r}`;t.delete(s),t.set(s,{eventId:n.id,skillName:r,workspacePath:o})}return[...t.values()]}var Mo=e=>{let t=K(e=>e.events),n=K(e=>e.loadedConversationId),r=ko(e=>e.dismissedEventIds),i=ko(e=>e.dismiss),a=(0,X.useMemo)(()=>!e||e!==n?[]:jo(t).filter(e=>!r[e.eventId]),[e,n,t,r]);return{installs:a,dismissAll:(0,X.useCallback)(()=>i(a.map(e=>e.eventId)),[i,a])}};function No({conversationId:e}){let{t}=f(`openhands`),{installs:n,dismissAll:r}=Mo(e),{backend:i}=T(),{mutate:a,isPending:o}=zn(),s=y(),{navigate:c}=Jt(),{data:l}=Y();if(i.kind!==`local`||n.length===0)return null;let u=n[n.length-1],d=n.filter(e=>e.workspacePath===u.workspacePath).map(e=>e.skillName);return(0,Z.jsxs)(`div`,{className:`flex w-full items-start gap-2 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-2 text-[var(--oh-foreground)]`,"data-testid":`skill-install-restart-banner`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-[var(--oh-foreground)]`,children:t(N.SKILLS$INSTALL_BANNER_MESSAGE,{skills:d.join(`, `)})}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>{o||s||a({workingDir:u.workspacePath,workspaceMode:`local_repo`,repository:l?.selected_repository&&l?.git_provider?{name:l.selected_repository,gitProvider:l.git_provider,branch:l.selected_branch??void 0}:void 0,entryPoint:`skill_install_restart_banner`},{onSuccess:e=>c(`/conversations/${e.conversation_id}`),onError:e=>D(e.message)})},disabled:o||s,className:`mt-2 cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)] disabled:cursor-not-allowed disabled:opacity-50`,"data-testid":`skill-install-restart-action`,children:t(N.SKILLS$INSTALL_BANNER_ACTION)})]}),(0,Z.jsx)(`button`,{type:`button`,onClick:r,className:`shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]`,"aria-label":t(N.BUTTON$CLOSE),"data-testid":`skill-install-restart-dismiss`,children:(0,Z.jsx)(At,{className:`h-4 w-4`,"aria-hidden":!0})})]})}function Po(){let{t:e}=f(`openhands`),{conversationId:t}=Si(),n=q(e=>e.pendingMessages),r=q(e=>e.markPendingMessageError),i=q(e=>e.markPendingMessageSending),a=q(e=>e.removePendingMessage),o=U(e=>e.restoreMessageToInputIfEmpty),{send:s}=we(),c=X.useMemo(()=>t?n.filter(e=>wr(t,e.conversationId)):[],[n,t]),l=X.useCallback(async t=>{let n=q.getState().pendingMessages.find(e=>e.id===t);if(n){i(t);try{await s(Ie(n.text,n.imageUrls,n.fileUrls,n.timestamp))}catch(n){r(t,n instanceof Error?n.message:e(N.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))}}},[s,r,i,e]),u=X.useCallback((e,t)=>{o(t),a(e)},[o,a]),d=X.useCallback(e=>{a(e)},[a]);return c.length===0?null:(0,Z.jsx)(Z.Fragment,{children:c.map(e=>(0,Z.jsx)(Ne,{type:`user`,message:e.text,pendingStatus:e.status,onRetry:e.status===`error`?()=>l(e.id):void 0,onDismiss:e.status===`error`?()=>d(e.id):void 0,onStop:e.status===`sending`?()=>u(e.id,e.text):void 0,children:e.imageUrls.length>0&&(0,Z.jsx)(We,{size:`small`,images:e.imageUrls})},e.id))})}var Fo=()=>{let{data:e}=Y();return g({mutationKey:[`unified-upload-files`],mutationFn:async t=>{let{conversationId:n,files:r}=t;return Cn(n,r,e)},meta:{disableToast:!0}})},Io=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 3.25C9.92893 3.25 8.25 4.92893 8.25 7V10H7C6.44772 10 6 10.4477 6 11V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V11C18 10.4477 17.5523 10 17 10H15.75V7C15.75 4.92893 14.0711 3.25 12 3.25ZM14.25 10V7C14.25 5.75736 13.2426 4.75 12 4.75C10.7574 4.75 9.75 5.75736 9.75 7V10H14.25Z`,fill:`currentColor`})});function Lo(){let{t:e}=f(`openhands`),{data:t}=zt();return t?.confirmation_mode?(0,Z.jsx)(Yt,{closeDelay:100,content:e(N.COMMON$CONFIRMATION_MODE_ENABLED),tooltipClassName:`bg-white text-black hover:bg-transparent`,children:(0,Z.jsx)(`div`,{className:`flex items-center justify-center w-[26px] h-[26px] rounded-lg bg-[var(--oh-surface)]`,children:(0,Z.jsx)(Io,{width:15,height:15})})}):null}var Ro=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{d:`M15 12C15 12.7956 14.6839 13.5587 14.1213 14.1213C13.5587 14.6839 12.7956 15 12 15C11.2044 15 10.4413 14.6839 9.87868 14.1213C9.31607 13.5587 9 12.7956 9 12C9 11.2044 9.31607 10.4413 9.87868 9.87868C10.4413 9.31607 11.2044 9 12 9C12.7956 9 13.5587 9.31607 14.1213 9.87868C14.6839 10.4413 15 11.2044 15 12Z`,fill:`currentColor`})});function zo({status:e,statusColor:t}){return(0,Z.jsx)(`div`,{"data-testid":`chat-status-indicator`,className:n(`w-full max-w-full rounded-[100px] p-1 bg-[var(--oh-surface)] flex items-center gap-1`),children:(0,Z.jsxs)(i,{mode:`wait`,children:[(0,Z.jsx)(Qe.span,{className:`flex-shrink-0 animate-[pulse_1.2s_ease-in-out_infinite]`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,Z.jsx)(Ro,{className:`w-4 h-4`,color:t})},`dot-${e}`),(0,Z.jsx)(Qe.span,{initial:{opacity:0,y:-2},animate:{opacity:1,y:0},exit:{opacity:0,y:2},transition:{duration:.3},className:`pr-1.5 font-normal text-[11px] leading-[16px] normal-case break-words whitespace-normal`,children:e},`text-${e}`)]})})}var Bo=()=>{let e=d(),{navigate:t}=Jt(),{t:n}=f(`openhands`),{data:r}=Y(),{trackConversationCreated:i}=Lt();return g({mutationFn:async()=>{if(!r?.id)throw Error(`No active conversation`);let e=await yn.createConversation({sandboxId:r.sandbox_id??void 0});if(e.status===`ERROR`)throw Error(e.detail||`Failed to create new conversation`);return{newConversationId:e.app_conversation_id?e.app_conversation_id:`task-${e.id}`,oldConversationId:r.id,taskId:e.id}},onMutate:()=>{m.loading(n(N.CONVERSATION$CLEARING),{...E,id:`clear-conversation`})},onSuccess:r=>{i({conversationId:r.newConversationId,taskId:r.taskId,hasRepository:!1,hasWorkspace:!1,hasInitialQuery:!1,hasParentConversation:!1,entryPoint:`new_command`}),m.dismiss(`clear-conversation`),S(n(N.CONVERSATION$CLEAR_SUCCESS)),t(`/conversations/${r.newConversationId}`),e.invalidateQueries({queryKey:[`user`,`conversations`]}),e.invalidateQueries({queryKey:[`v1-batch-get-app-conversations`]})},onError:e=>{m.dismiss(`clear-conversation`);let t=n(N.CONVERSATION$CLEAR_UNKNOWN_ERROR);e instanceof Error?t=e.message:typeof e==`string`&&(t=e),D(n(N.CONVERSATION$CLEAR_FAILED,{error:t}))}})};function Vo(e,t){return e?`github`:t?`replay`:`direct`}function Ho(){to();let{trackInitialQuerySubmitted:e,trackUserMessageSent:t}=Lt(),{setMessageToSend:n,conversationMode:r,planContent:i}=U(),{errorMessage:a,errorCode:o,errorClassification:s,removeErrorMessage:c,setErrorMessage:u}=Qr(),d=l(),{isTask:p,taskStatus:m,taskDetail:h}=vr(),g=p,_=hi(),{send:v}=we(),{renderableEvents:y,allConversationEvents:b,totalEvents:x,hasSubstantiveAgentActions:S,userEventsExist:C}=Ga(),w=q(e=>e.enqueuePendingMessage),T=q(e=>e.markPendingMessageError),E=q(e=>e.pendingMessages),{t:O}=f(`openhands`),k=X.useRef(null),{scrollDomToBottom:A,onChatBodyScroll:j,hitBottom:M,autoScroll:P,setAutoScroll:F,setHitBottom:ee}=Ce(k),{mutate:te,isPending:ne}=Bo(),{curAgentState:I}=Yr(),{isPlanningAgentRunning:re}=gi(),{handleBuildPlanClick:ie}=ze(),{data:oe}=Y(),se=oe?.sandbox_status??null,ce=Ar(),{isConfigured:ue,isLoading:de}=rn(),fe=!de&&!ue,pe=I===L.RUNNING||I===L.LOADING;X.useEffect(()=>{if(pe||r!==`plan`||!i)return;let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),ie(e),A())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[pe,r,i,ie,A]);let{selectedRepository:me,replayJson:R}=bo(),{conversationId:z}=Si(),he=li(e=>{let t=z?e.statusByConversation[z]:void 0;return t?.active?`${t.iteration}:${t.status}`:null}),{mutateAsync:ge}=Fo(),{isLoading:_e,hasMore:ve,loadOlder:ye}=qa(z),B=X.useRef(null),be=X.useCallback(e=>{if(g||_e||!ve)return;let t=e.scrollTop<=80,n=e.scrollHeight<=e.clientHeight+80;!t&&!n||(B.current={scrollHeight:e.scrollHeight,scrollTop:e.scrollTop},ye().catch(e=>{B.current=null,u(e instanceof Error&&e.message?e.message:O(N.ERROR$GENERIC))}))},[ve,_e,g,ye,u,O]),xe=X.useCallback(e=>{e.deltaY<0&&e.currentTarget.scrollTop<=0&&be(e.currentTarget)},[be]),Te=X.useMemo(()=>z?E.some(e=>wr(z,e.conversationId)):!1,[E,z]),Ee=Di(e=>z?(e.entriesByConversation[z]?.length??0)>0:!1),De=br({isLoadingHistory:_?.isLoadingHistory===!0,hasUserEvents:C,hasPendingUserMessages:Te,hasSubstantiveAgentActions:S,hasModelEntries:Ee}),ke=b.length>0||Te||!_?.isLoadingHistory,Ae=!!z,je=!ke&&!p,Me=async(r,i,a)=>{if(r.trim()===`/new`){if(!z){D(O(N.CONVERSATION$CLEAR_NO_ID));return}if(x===0){D(O(N.CONVERSATION$CLEAR_EMPTY));return}if(ne)return;te();return}let o=[...i],s=[...a];x===0?e({entryPoint:Vo(me!==null,R!==null),queryCharacterLength:r.length,replayJsonSize:R?.length}):t({sessionMessageCount:x,currentMessageLength:r.length});let c=fr([...o,...s]);if(!c.isValid){D(`Error: ${c.errorMessage}`);return}let l=o.map(e=>Or(e)),u=await Promise.all(l),d=new Date().toISOString(),{skipped_files:f,uploaded_files:p}=s.length>0?await ge({conversationId:z,files:s}):{skipped_files:[],uploaded_files:[]};f.forEach(e=>D(e.reason));let m=`${O(N.CHAT_INTERFACE$AUGMENTED_PROMPT_FILES_TITLE)}: ${p.join(`
|
|
19
|
+
|
|
20
|
+
`)}`,h=p.length>0?`${r}\n\n${m}`:r,g=w({conversationId:z,text:r,content:h,imageUrls:u,fileUrls:p,timestamp:d});A(),n(``);try{await v(Ie(h,u,p,d))}catch(e){T(g,e instanceof Error?e.message:O(N.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))}};X.useEffect(()=>{if(B.current&&k.current){let{scrollHeight:e,scrollTop:t}=B.current,n=k.current,r=n.scrollHeight-e;r>0&&(n.scrollTop=t+r),B.current=null;return}P&&A()},[y.length,Te,he,A]);let Ne=X.useRef(be);X.useEffect(()=>{Ne.current=be}),X.useEffect(()=>{let e=k.current;e&&Ne.current(e)},[y.length,ve]);let Pe={scrollRef:k,autoScroll:P,setAutoScroll:F,scrollDomToBottom:A,hitBottom:M,setHitBottom:ee,onChatBodyScroll:j},Fe=I===L.LOADING||I===L.INIT,Le=I===L.STOPPED,Re=I===L.PAUSED,Be=le({isPausing:Re,isTask:p,taskStatus:m,isStartingStatus:Fe,isStopStatus:Le,curAgentState:I}),Ve=ae({isPausing:Re,isTask:p,taskStatus:m,taskDetail:h,isStartingStatus:Fe,isStopStatus:Le,curAgentState:I,errorMessage:a,t:O});return(0,Z.jsx)(Oe,{children:(0,Z.jsx)(Ke,{value:Pe,children:(0,Z.jsxs)(`div`,{className:`relative flex h-full flex-col justify-between px-4`,"data-testid":`chat-interface`,children:[!S&&!Te&&!C&&!Ee&&!je&&!g&&x===0&&!ce&&!fe&&(0,Z.jsx)(vo,{onSuggestionsClick:e=>n(e)}),(0,Z.jsxs)(`div`,{ref:k,"data-testid":`chat-scroll-container`,onScroll:e=>{j(e.currentTarget),be(e.currentTarget)},onWheel:xe,className:`custom-scrollbar-always flex min-h-0 grow flex-col gap-2 overflow-x-hidden overflow-y-auto px-0 pt-4 pb-8 md:px-4`,children:[je&&Ae&&(0,Z.jsx)(To,{}),je&&!Ae&&(0,Z.jsx)(`div`,{className:`flex justify-center`,"data-testid":`loading-spinner`,children:(0,Z.jsx)(It,{size:`small`})}),_e&&(0,Z.jsxs)(`div`,{className:`flex items-center justify-center gap-2 py-3 text-sm text-neutral-400`,"data-testid":`loading-older-events`,children:[(0,Z.jsx)(It,{size:`small`}),(0,Z.jsx)(`span`,{children:O(N.CHAT_INTERFACE$FETCHING_OLDER_MESSAGES)})]}),(0,Z.jsx)(Se,{conversationId:z,anchorEventId:null}),ke&&y.length>0&&(0,Z.jsx)(Ue,{messages:y,allEvents:b}),(0,Z.jsx)(Po,{}),(0,Z.jsx)(ga,{conversationId:z})]}),(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-[6px] pb-4`,children:[(0,Z.jsx)(No,{conversationId:z}),(0,Z.jsx)(ha,{conversationId:z}),a&&(0,Z.jsx)(Do,{message:a,code:o,classification:s,onDismiss:c,onRetry:a===`Unable to connect to server`?()=>_?.reconnect():void 0,onReauth:ua(o)?()=>d(`/settings/agents`):void 0}),fe&&!ce&&(0,Z.jsx)(Wr,{}),ce?(0,Z.jsxs)(`div`,{"data-testid":`archived-conversation-banner`,className:`mx-1 px-4 py-3 rounded-lg bg-[var(--oh-surface)] border border-[var(--oh-border-subtle)]`,children:[(0,Z.jsx)(`p`,{className:`text-xs font-semibold text-[var(--oh-foreground)]`,children:O(se===`ERROR`?N.CHAT_INTERFACE$ERROR_SANDBOX_TITLE:N.CHAT_INTERFACE$ARCHIVED_SANDBOX_TITLE)}),(0,Z.jsx)(`p`,{className:`text-xs text-[var(--oh-muted)] mt-0.5`,children:O(se===`ERROR`?N.CHAT_INTERFACE$ERROR_SANDBOX_DESCRIPTION:N.CHAT_INTERFACE$ARCHIVED_SANDBOX_DESCRIPTION)})]}):(0,Z.jsxs)(`div`,{className:`relative`,children:[(0,Z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-full mb-1 z-20`,children:(0,Z.jsxs)(`div`,{className:`flex justify-between relative`,children:[(0,Z.jsxs)(`div`,{className:`flex items-end gap-1 pointer-events-auto`,children:[(0,Z.jsx)(Lo,{}),Fe&&(0,Z.jsx)(zo,{statusColor:Be,status:Ve})]}),M?(I===L.RUNNING||re)&&(0,Z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-9 bottom-0 flex justify-center`,children:(0,Z.jsx)(so,{events:b})}):(0,Z.jsx)(`div`,{className:`absolute left-1/2 transform -translate-x-1/2 bottom-0 pointer-events-auto`,children:(0,Z.jsx)(So,{onClick:A})})]})}),(0,Z.jsx)(Wa,{onSubmit:Me,disabled:ne||fe,hasStartedConversation:De})]})]})]})})})}function Uo(e){return e?e.replace(/\/+$/,``).split(`/`).pop()||e:null}function Wo(){let{conversationId:e}=J(),{data:t}=Y();return{workspaceName:Uo((e?hn(e):null)?.selected_workspace??t?.selected_workspace??null)}}function Go(){let{data:e}=Y(),{repositoryInfo:t}=vr(),{data:n}=za(),r=e?.selected_repository||t?.selectedRepository,i=e?.git_provider||t?.gitProvider,a=e?.selected_branch||t?.selectedBranch,o=r||n?.repository||null,s=i||n?.provider||null;return{repository:o,provider:s,branch:a||n?.branch||null,isConnected:!!(o&&s)}}function Ko(e){return e.startsWith(`/`)?e:`/${e}`}async function qo(e,t,n,r){let i=ve().backend;if(i.kind===`cloud`&&e){let a=new URLSearchParams({...r,path:Ko(r.path)});return Ft({backend:i,method:`GET`,hostOverride:_e(e),path:`${n}?${a.toString()}`,authMode:`session-api-key`,sessionApiKey:t??void 0})}return(await new Pt(B({conversationUrl:e,sessionApiKey:t})).client.get(n,{params:r})).data}function Jo(e){return x(e,404)||p(e)&&e.response?.status===404}var Yo=class{static async getGitChanges(e,t,n,r){let i=ve().backend;if(i.kind===`cloud`&&e){let t=new URLSearchParams;t.set(`path`,Ko(r));let n=await Ft({backend:i,method:`GET`,path:`/api/v1/app-conversations/${e}/git/changes?${t.toString()}`});if(!Array.isArray(n))throw Error(`Invalid response from runtime - runtime may be unavailable`);return n.map(e=>({status:Kn(String(e.status)),path:e.path}))}let a=await new Pt(B({conversationUrl:t,sessionApiKey:n})).gitChanges(r);if(!Array.isArray(a))throw Error(`Invalid response from runtime - runtime may be unavailable`);return a.map(e=>({status:Kn(String(e.status)),path:e.path}))}static async getGitCommits(e,t,n,r=50){try{let i=await qo(e,t,`/api/git/commits`,{path:n,limit:String(r)});return{commits:(i?.commits??[]).map(e=>({sha:e.sha,shortSha:e.short_sha,subject:e.subject,author:e.author,timestamp:e.timestamp})),hasMore:!!i?.has_more}}catch(e){if(Jo(e))return null;throw e}}static async getCommitChanges(e,t,n,r){let i=await qo(e,t,`/api/git/commits/${encodeURIComponent(r)}/changes`,{path:n});if(!Array.isArray(i))throw Error(`Invalid response from runtime - runtime may be unavailable`);return i.map(e=>({status:Kn(String(e.status)),path:e.path}))}static async getGitChangeDiff(e,t,n,r,i){if(i){let e=await qo(t,n,`/api/git/diff`,{path:r,commit:i});return{modified:e?.modified??``,original:e?.original??``,...e?.diff?{diff:e.diff}:{}}}let a=ve().backend;if(a.kind===`cloud`&&e){let t=new URLSearchParams;t.set(`path`,Ko(r));let n=await Ft({backend:a,method:`GET`,path:`/api/v1/app-conversations/${e}/git/diff?${t.toString()}`});return{modified:n?.modified??``,original:n?.original??``,...n?.diff?{diff:n.diff}:{}}}let o=await new Pt(B({conversationUrl:t,sessionApiKey:n})).gitDiff(r);return{modified:o.modified??``,original:o.original??``,...o.diff?{diff:o.diff}:{}}}},Xo=()=>{let{conversationId:e}=J(),{data:t}=Y(),[n,r]=X.useState([]),i=X.useRef(null),a=Ni(),o=t?.conversation_url,s=t?.session_api_key,c=t?.selected_repository,l=t?.workspace?.working_dir?.trim(),u=X.useMemo(()=>Pi(c,l),[c,l]),d=v({queryKey:[`file_changes`,e,o,s,u],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return Yo.getGitChanges(e,o,s,u)},retry:!1,staleTime:1e3*60*5,gcTime:1e3*60*15,refetchOnMount:`always`,enabled:a&&!!e,meta:{disableToast:!0}});return X.useEffect(()=>{if(!d.isFetching&&d.isSuccess&&d.data){let e=d.data;if(e!==i.current)if(i.current=e,Array.isArray(e)){let t=new Set(e.map(e=>e.path)),i=new Set(n.map(e=>e.path)),a=e.filter(e=>!i.has(e.path)),o=n.filter(e=>t.has(e.path));r([...a,...o])}else r([e])}},[d.isFetching,d.isSuccess,d.data]),{data:n,isLoading:d.isLoading,isFetching:d.isFetching,isSuccess:d.isSuccess,isError:d.isError,error:d.error,refetch:d.refetch}};function Zo(e){let t=0,n=0,r=!1;for(let i of e.split(`
|
|
21
|
+
`)){if(i.startsWith(`diff --git`)||i.startsWith(`index `)){r=!1;continue}if(i.startsWith(`@@`)){r=!0;continue}!r&&(i.startsWith(`---`)||i.startsWith(`+++`))||r&&(i.startsWith(`+`)?t+=1:i.startsWith(`-`)&&(n+=1))}return{additions:t,deletions:n}}function Qo(e,t){let n=e.length===0?[]:e.split(`
|
|
22
|
+
`),r=t.length===0?[]:t.split(`
|
|
23
|
+
`);if(n.length===0)return{additions:r.length,deletions:0};if(r.length===0)return{additions:0,deletions:n.length};let i=0,a=0,o=0,s=0;for(;o<n.length||s<r.length;){let e=n[o],t=r[s];if(o<n.length&&s<r.length&&e===t){o+=1,s+=1;continue}if(s<r.length&&(o>=n.length||!n.slice(o).includes(t))){i+=1,s+=1;continue}o<n.length&&(a+=1,o+=1)}return{additions:i,deletions:a}}function $o(e){return typeof e.diff==`string`&&e.diff.length>0?Zo(e.diff):Qo(e.original??``,e.modified??``)}function es(e){return e.reduce((e,t)=>({additions:e.additions+t.additions,deletions:e.deletions+t.deletions}),{additions:0,deletions:0})}function ts(){let{conversationId:e}=J(),{data:t}=Y(),n=Ni(),{data:r,isLoading:i,isSuccess:a,isError:o}=Xo(),s=t?.conversation_url,c=t?.session_api_key,l=(0,X.useMemo)(()=>Pi(t?.selected_repository,t?.workspace?.working_dir?.trim()),[t?.selected_repository,t?.workspace?.working_dir]),u=_({queries:(0,X.useMemo)(()=>(r??[]).filter(e=>e.status!==`D`),[r]).map(t=>({queryKey:[`conversation_overview_file_diff`,e,s,c,l,t.path],queryFn:async()=>Yo.getGitChangeDiff(e,s,c,`${l}/${t.path}`),enabled:n&&!!e&&a&&!!t.path,staleTime:1e3*60*5,meta:{disableToast:!0}}))}),d=u.some(e=>e.isLoading),f=es(u.flatMap(e=>e.data?[$o(e.data)]:[]));return{additions:f.additions,deletions:f.deletions,changeCount:r?.length??0,isLoading:i||d,isError:o}}var ns=(0,X.createContext)(null);function rs({children:e}){let[t,n]=(0,X.useState)(null),[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(0),s=(0,X.useCallback)((e,t)=>{n(e),i(!!t?.openAdd),o(0)},[]),c=(0,X.useCallback)(()=>{n(null),i(!1),o(0)},[]),l=(0,X.useCallback)(()=>{o(e=>e+1)},[]),u=(0,X.useMemo)(()=>({section:t,openAdd:r,addRequestKey:a,openSection:s,closeDrawer:c,requestAdd:l}),[a,c,r,s,l,t]);return(0,Z.jsx)(ns.Provider,{value:u,children:e})}function is(){let e=(0,X.useContext)(ns);if(!e)throw Error(`useConversationOverviewDrawer must be used within ConversationOverviewDrawerProvider`);return e}function as(){return(0,X.useContext)(ns)}var os=e(r(),1),ss=`!w-auto whitespace-nowrap`;function cs({anchorRef:e,onClose:t,gitProvider:n,testIdPrefix:r=`conversation-git-actions`}){let{t:i}=f(`openhands`),a=Rn(t),o=U(e=>e.setMessageToSend),[s,c]=(0,X.useState)();return(0,X.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let n=()=>{let e=t.getBoundingClientRect();c({position:`fixed`,top:e.bottom+4,right:window.innerWidth-e.right,zIndex:50})};return n(),window.addEventListener(`resize`,n),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,n,!0)}},[e]),s?os.createPortal((0,Z.jsxs)(Mt,{ref:a,testId:`${r}-menu`,theme:`popover`,style:s,className:`w-max min-w-[8rem]`,children:[(0,Z.jsx)(V,{testId:`${r}-commit`,onClick:()=>{o(ce()),t()},className:ss,children:(0,Z.jsx)(mr,{icon:(0,Z.jsx)(lt,{className:`size-4`,"aria-hidden":!0}),text:i(N.DIFF_VIEWER$COMMITS)})}),(0,Z.jsx)(V,{testId:`${r}-pull`,onClick:()=>{o(re()),t()},className:ss,children:(0,Z.jsx)(mr,{icon:(0,Z.jsx)(Er,{width:16,height:16,"aria-hidden":!0}),text:i(N.COMMON$PULL)})}),(0,Z.jsx)(V,{testId:`${r}-push`,onClick:()=>{o(ie(n)),t()},className:ss,children:(0,Z.jsx)(mr,{icon:(0,Z.jsx)(hr,{width:16,height:16,"aria-hidden":!0}),text:i(N.COMMON$PUSH)})}),(0,Z.jsx)(V,{testId:`${r}-create-pr`,onClick:()=>{o(me(n)),t()},className:ss,children:(0,Z.jsx)(mr,{icon:(0,Z.jsx)(Kr,{width:16,height:16,"aria-hidden":!0}),text:i(N.COMMON$CREATE_PR)})}),(0,Z.jsx)(V,{testId:`${r}-create-new-branch`,onClick:()=>{o(de()),t()},className:ss,children:(0,Z.jsx)(mr,{icon:(0,Z.jsx)(dr,{width:16,height:16,"aria-hidden":!0}),text:i(N.COMMON$CREATE_NEW_BRANCH)})})]}),document.body):null}var ls=R(`flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5`,`cursor-pointer border-0 bg-transparent text-left`),us=`size-4 shrink-0 text-[var(--oh-muted)]`,ds=`conversation-overview-diffs-git-action`,fs=R(ds,`absolute inset-0 inline-flex items-center justify-center`,`rounded-md text-[var(--oh-muted)] transition-opacity`,`hover:bg-white/10 hover:text-[var(--oh-foreground)]`),ps=R(`flex items-center rounded-md transition-colors`,`hover:bg-white/5`,`has-[.${ds}:hover]:bg-transparent`),ms=R(`pointer-events-none invisible opacity-0`,`group-hover/diffstats:pointer-events-auto group-hover/diffstats:visible group-hover/diffstats:opacity-100`,`group-focus-within/diffstats:pointer-events-auto group-focus-within/diffstats:visible group-focus-within/diffstats:opacity-100`);function hs(){let{t:e}=f(`openhands`),{navigateToChanges:t}=mi(),n=as(),{data:r}=Y(),{additions:i,deletions:a,isLoading:o}=ts(),s=r?.git_provider??`github`,[c,l]=(0,X.useState)(!1),u=(0,X.useRef)(null);return(0,X.useEffect)(()=>{if(!c)return;let e=e=>{e.key===`Escape`&&l(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[c]),(0,Z.jsxs)(`li`,{className:ps,children:[(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-diffs`,"aria-label":e(N.CONVERSATION$OVERVIEW_OPEN_CHANGES),onClick:()=>{n?.closeDrawer(),t()},className:ls,children:[(0,Z.jsx)(dt,{className:us,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(N.COMMON$CHANGES)})]}),(0,Z.jsx)(`div`,{className:`group/diffstats relative mr-2 flex h-6 min-w-6 shrink-0 items-center justify-center`,children:o?(0,Z.jsx)(`span`,{className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:`…`}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`span`,{className:R(`flex items-center gap-1.5 text-sm tabular-nums transition-opacity`,c?`opacity-0`:`group-hover/diffstats:opacity-0 group-focus-within/diffstats:opacity-0`),children:[(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-diffs-additions`,style:{color:M},children:e(N.CONVERSATION$OVERVIEW_DIFF_ADDITIONS,{count:i.toLocaleString()})}),(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-diffs-deletions`,style:{color:ne},children:e(N.CONVERSATION$OVERVIEW_DIFF_DELETIONS,{count:a.toLocaleString()})})]}),(0,Z.jsx)(`button`,{ref:u,type:`button`,"data-testid":`conversation-overview-diffs-git-action`,"aria-label":e(N.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),"aria-expanded":c,"aria-haspopup":`menu`,onClick:e=>{e.stopPropagation(),l(e=>!e)},className:R(fs,!c&&ms,c&&`pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]`),children:(0,Z.jsx)(lt,{className:`size-4`,"aria-hidden":!0})}),c?(0,Z.jsx)(cs,{anchorRef:u,gitProvider:s,testIdPrefix:`conversation-overview-diffs-git`,onClose:()=>l(!1)}):null]})})]})}var gs=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.13832 8.76476C8.25957 8.17949 9.52697 7.9727 10.7515 8.14436L14.9025 2.52826L21.4717 9.09737L15.8555 13.2484C16.0272 14.4729 15.8204 15.7403 15.2351 16.8616C15.1872 16.9535 15.1366 17.0444 15.0836 17.1343C14.8318 17.5605 14.5228 17.9624 14.1566 18.3286L10.4443 14.6163L4.75207 20.3085H3.69141V19.2478L9.38361 13.5556L5.6713 9.84332C6.03755 9.47708 6.43936 9.16808 6.86562 8.91632C6.95547 8.86326 7.04641 8.81274 7.13832 8.76476ZM15.0735 4.82054L19.1794 8.92641L14.2461 12.5727L14.3701 13.4567C14.492 14.3266 14.3596 15.2233 13.9758 16.0265L7.97338 10.0241C8.77665 9.64035 9.67335 9.50789 10.5432 9.62984L11.4272 9.75376L15.0735 4.82054Z`,fill:`currentColor`})}),_s=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{d:`M10.9706 10.1586C10.2819 10.0621 9.56905 10.1784 8.93842 10.5075C8.88672 10.5345 8.83557 10.5629 8.78504 10.5928C8.54529 10.7344 8.3193 10.9082 8.11331 11.1142L9.83702 12.8372L7.00054 15.75L7 17H8.25064L11.1628 14.1632L12.8857 15.8865C13.0917 15.6805 13.2655 15.4545 13.4071 15.2147C13.437 15.1642 13.4654 15.1131 13.4924 15.0614C13.8215 14.4308 13.9378 13.718 13.8413 13.0293L17 10.6946L13.3053 7L10.9706 10.1586Z`,fill:`currentColor`})}),Q={automations:`automations`,skills:`skills`,mcp:`mcp`,secrets:`secrets`,pull_requests:`pull_requests`,issues:`issues`},vs={[W.workspace]:{section:W.workspace,icon:pt,i18nKey:N.CONVERSATION$OVERVIEW_WORKSPACE}},ys=[{part:H.changes,icon:dt,i18nKey:N.COMMON$CHANGES,opensChanges:!0},{part:H.repository,icon:Xe,i18nKey:N.CONVERSATION$REPOSITORY},{part:H.branch,icon:at,i18nKey:N.CONVERSATION$BRANCH},{part:H.commits,icon:lt,i18nKey:N.DIFF_VIEWER$COMMITS,opensCommits:!0},{part:H.pull_requests,icon:Kr,i18nKey:N.CONVERSATION$OVERVIEW_PULL_REQUESTS,drawerSection:Q.pull_requests}];function bs({testId:e,pinned:t,pinnedLabel:n,unpinnedLabel:r,onClick:i}){return(0,Z.jsx)(`button`,{type:`button`,"data-testid":e,className:R(`flex shrink-0 cursor-pointer items-center justify-center rounded-r px-2 text-white`,Xt,`hover:bg-white/10`),"aria-pressed":t,"aria-label":t?n:r,onClick:i,children:(0,Z.jsx)(`span`,{className:R(`ml-auto overflow-hidden`,Zt),"aria-hidden":!0,children:t?(0,Z.jsx)(_s,{className:`size-4`,width:16,height:16}):(0,Z.jsx)(gs,{className:`size-4`,width:16,height:16})})})}function xs({isOpen:e,onClose:t,ignoreOutsideClickRef:n,anchorRef:r}){let i=Rn(t,n),[a,o]=(0,X.useState)(),{t:s}=f(`openhands`),{conversationId:c}=J(),{state:l,setUnpinnedOverviewSections:u,setUnpinnedOverviewGitParts:d}=sn(c),{navigateToChanges:p,navigateToCommits:m}=mi(),h=as();(0,X.useLayoutEffect)(()=>{if(!e||!r?.current){o(void 0);return}let t=()=>{let e=r.current?.getBoundingClientRect();e&&o({position:`fixed`,zIndex:9999,top:e.bottom+8,right:window.innerWidth-e.right})};return t(),window.addEventListener(`resize`,t),window.addEventListener(`scroll`,t,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t,!0)}},[e,r]);let g=e=>{if(e.opensChanges){h?.closeDrawer(),p(),t();return}if(e.opensCommits){h?.closeDrawer(),m(),t();return}e.drawerSection&&(h?.openSection(e.drawerSection),t())},_=(e,t)=>{t.preventDefault(),t.stopPropagation();let n=l.unpinnedOverviewSections??[];if(n.includes(e)){u?.(n.filter(t=>t!==e));return}u?.([...n,e])},v=(e,t)=>{t.preventDefault(),t.stopPropagation();let n=l.unpinnedOverviewGitParts??[];if(n.includes(e)){d?.(n.filter(t=>t!==e));return}d?.([...n,e])};if(!e)return null;let y=!!(r?.current&&a),b=fn(W.git,l.unpinnedOverviewSections??[]),x=s(N.CONVERSATION$UNPIN_OVERVIEW_SECTION),S=s(N.CONVERSATION$PIN_OVERVIEW_SECTION),C=({key:e,testIdOpen:t,testIdPin:n,icon:r,label:i,pinned:a,isActionable:o,indent:s=!1,onOpen:c,onPinToggle:l})=>{let u=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`span`,{className:Zt,"aria-hidden":!0,children:(0,Z.jsx)(r,{className:`h-4 w-4`})}),(0,Z.jsx)(`span`,{className:`text-sm`,children:i})]});return(0,Z.jsx)(`li`,{className:`list-none`,children:(0,Z.jsxs)(`div`,{className:R(`group flex h-[30px] w-full min-w-0 items-stretch rounded hover:bg-[var(--oh-interactive-hover)]`,s&&`pl-4`),children:[o?(0,Z.jsx)(`button`,{type:`button`,"data-testid":t,className:R(`flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-l p-2 text-start text-white`,Xt),onClick:c,children:u}):(0,Z.jsx)(`div`,{"data-testid":t,className:R(`flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white`,Xt),children:u}),(0,Z.jsx)(bs,{testId:n,pinned:a,pinnedLabel:x,unpinnedLabel:S,onClick:l})]})},e)},w=e=>{if(e===W.git)return null;let t=vs[e];return C({key:e,testIdOpen:`conversation-overview-menu-open-${e}`,testIdPin:`conversation-overview-menu-pin-${e}`,icon:t.icon,label:s(t.i18nKey),pinned:fn(e,l.unpinnedOverviewSections??[]),isActionable:!1,onPinToggle:t=>_(e,t)})},T=(0,Z.jsxs)(Mt,{ref:i,testId:`conversation-overview-context-menu`,theme:y?`popover`:`default`,position:y?`none`:`bottom`,alignment:y?`none`:`right`,spacing:y?`none`:`default`,className:R(`z-[9999] w-fit`,y?`mt-0`:`mt-2`),children:[cn.map((e,t)=>(0,Z.jsxs)(X.Fragment,{children:[t>0?(0,Z.jsx)(nn,{testId:`conversation-overview-menu-divider-${t}`,inset:`menu`}):null,e.sections.map(e=>w(e))]},e.sections.join(`-`))),(0,Z.jsx)(nn,{testId:`conversation-overview-menu-divider-git`,inset:`menu`}),C({key:W.git,testIdOpen:`conversation-overview-menu-open-${W.git}`,testIdPin:`conversation-overview-menu-pin-${W.git}`,icon:at,label:s(N.CONVERSATION$OVERVIEW_GIT),pinned:b,isActionable:!1,onPinToggle:e=>_(W.git,e)}),ys.map(e=>C({key:e.part,testIdOpen:`conversation-overview-menu-open-git-${e.part}`,testIdPin:`conversation-overview-menu-pin-git-${e.part}`,icon:e.icon,label:s(e.i18nKey),pinned:ln(e.part,l.unpinnedOverviewGitParts??[]),isActionable:!!(e.drawerSection||e.opensCommits||e.opensChanges),indent:!0,onOpen:()=>g(e),onPinToggle:t=>v(e.part,t)}))]});return y&&a&&typeof document<`u`?os.createPortal((0,Z.jsx)(`div`,{style:a,children:T}),document.body):T}var Ss={github:[`GITHUB_TOKEN`,`GH_TOKEN`,`github`],gitlab:[`GITLAB_TOKEN`,`GL_TOKEN`,`gitlab`],bitbucket:[`BITBUCKET_TOKEN`,`bitbucket`],forgejo:[`FORGEJO_TOKEN`,`forgejo`]},Cs=30;async function ws(e){if(ve().backend.kind!==`local`)return null;let t=Ss[e]??[];if(t.length===0)return null;let n=await rr.getSecrets(),r=new Set(n.map(e=>e.name)),i=t.find(e=>r.has(e));if(!i)return null;try{return await new Nt(B()).getSecret(i)}catch{return null}}function Ts(e,t,n){let r=z(t);switch(t){case`gitlab`:return`${r}/${n}/-/issues/${e}`;case`bitbucket`:return`${r}/${n}/issues/${e}`;case`forgejo`:return`${r}/${n}/issues/${e}`;default:return`${r}/${n}/issues/${e}`}}function Es(e,t){let n=z(e);switch(e){case`gitlab`:return`${n}/${t}/-/issues`;case`bitbucket`:return`${n}/${t}/issues`;case`forgejo`:return`${n}/${t}/issues`;default:return`${n}/${t}/issues`}}function Ds(e,t){let n=z(e);switch(e){case`gitlab`:return`${n}/${t}/-/merge_requests`;case`bitbucket`:return`${n}/${t}/pull-requests`;case`forgejo`:return`${n}/${t}/pulls`;default:return`${n}/${t}/pulls`}}async function Os(e,t){let n={Accept:`application/vnd.github+json`,"X-GitHub-Api-Version":`2022-11-28`};t&&(n.Authorization=`Bearer ${t}`);let r=await fetch(`https://api.github.com${e}`,{headers:n});if(!r.ok)throw Error(`GitHub API ${r.status}`);return r.json()}async function ks(e,t){let n={Accept:`application/json`};t&&(n[`PRIVATE-TOKEN`]=t);let r=await fetch(`https://gitlab.com/api/v4${e}`,{headers:n});if(!r.ok)throw Error(`GitLab API ${r.status}`);return r.json()}var As=class{static constructIssuesListUrl=Es;static constructPullRequestsListUrl=Ds;static async listPullRequests(e,t){let n=await ws(t);if(t===`gitlab`)return(await ks(`/projects/${encodeURIComponent(e)}/merge_requests?state=opened&per_page=${Cs}`,n)).map(e=>({id:e.id,number:e.iid,title:e.title,url:e.web_url,authorLogin:e.author?.username??null,updatedAt:e.updated_at??null}));if(t!==`github`&&t!==`forgejo`)return[];let[r,i]=e.split(`/`);return!r||!i?[]:(await Os(`/repos/${r}/${i}/pulls?state=open&per_page=${Cs}`,n)).map(n=>({id:n.id,number:n.number,title:n.title,url:n.html_url||pe(n.number,t,e),authorLogin:n.user?.login??null,updatedAt:n.updated_at??null}))}static async listIssues(e,t){let n=await ws(t);if(t===`gitlab`)return(await ks(`/projects/${encodeURIComponent(e)}/issues?state=opened&per_page=${Cs}`,n)).map(e=>({id:e.id,number:e.iid,title:e.title,url:e.web_url,authorLogin:e.author?.username??null,updatedAt:e.updated_at??null}));if(t!==`github`&&t!==`forgejo`)return[];let[r,i]=e.split(`/`);return!r||!i?[]:(await Os(`/repos/${r}/${i}/issues?state=open&per_page=${Cs}`,n)).filter(e=>!e.pull_request).map(n=>({id:n.id,number:n.number,title:n.title,url:n.html_url||Ts(n.number,t,e),authorLogin:n.user?.login??null,updatedAt:n.updated_at??null}))}};function js(e,t){return v({queryKey:[`repository-pull-requests`,t,e],queryFn:()=>As.listPullRequests(e,t),enabled:!!(e&&t),staleTime:6e4,meta:{disableToast:!0}})}function Ms(e,t){return v({queryKey:[`repository-issues`,t,e],queryFn:()=>As.listIssues(e,t),enabled:!!(e&&t),staleTime:6e4,meta:{disableToast:!0}})}var Ns=()=>{let{conversationId:e}=J(),{data:t}=Y(),n=Ni(),r=t?.conversation_url,i=t?.session_api_key,a=t?.selected_repository,o=t?.workspace?.working_dir?.trim(),s=X.useMemo(()=>Pi(a,o),[a,o]),c=v({queryKey:[`git_commits`,e,r,i,s],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return Yo.getGitCommits(r,i,s,50)},retry:!1,staleTime:1e3*60*5,gcTime:1e3*60*15,refetchOnMount:`always`,enabled:n&&!!e,meta:{disableToast:!0}});return{commits:c.data?.commits??[],hasMore:c.data?.hasMore??!1,isUnsupported:c.data===null,isLoading:c.isLoading,isFetching:c.isFetching,isSuccess:c.isSuccess,isError:c.isError}},Ps=`size-4 shrink-0 text-[var(--oh-muted)]`,Fs=R(`size-3.5 shrink-0 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100`),Is=`-`;function Ls(){let{t:e}=f(`openhands`),{conversationId:t}=J(),{state:n}=sn(t),{navigateToCommits:r}=mi(),i=as(),{data:a}=zt(),{repository:o,provider:s,branch:c,isConnected:l}=Go(),u=ln(H.repository,n.unpinnedOverviewGitParts??[]),d=ln(H.branch,n.unpinnedOverviewGitParts??[]),p=ln(H.commits,n.unpinnedOverviewGitParts??[]),m=ln(H.pull_requests,n.unpinnedOverviewGitParts??[]),h=js(m?o:null,m?s:null),g=Ns();if(!l||!o||!s||!u&&!d&&!p&&!m)return null;let _=a?.provider_tokens_set?.[s]??null,v=oe(s,o,_),y=c?ue(s,o,c,_):null,b=h.data?.length??null,x=g.isUnsupported?null:g.commits.length,S=x!==null&&x>0?g.hasMore?`${x}+`:String(x):Is,C=()=>{i?.openSection(Q.pull_requests)},w=()=>{i?.closeDrawer(),r()},T=u||d,E=p||m;return(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-git-section`,children:[T?(0,Z.jsxs)(`div`,{className:`px-2 pb-1`,children:[u?(0,Z.jsxs)(`a`,{href:v,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-git-repo`,className:R(`group flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(en,{gitProvider:s,className:Ps}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:o}),(0,Z.jsx)(it,{className:Fs,"aria-hidden":!0})]}):null,d?c&&y?(0,Z.jsxs)(`a`,{href:y,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-git-branch`,className:R(`group flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(Bn,{size:14,className:`shrink-0 text-[var(--oh-muted)]`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:c}),(0,Z.jsx)(it,{className:Fs,"aria-hidden":!0})]}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-git-branch`,className:`flex min-w-0 items-center gap-2 px-2 py-1.5`,children:[(0,Z.jsx)(at,{className:`size-3.5 shrink-0 text-[var(--oh-muted)]`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:R(`text-sm`,c?`text-[var(--oh-foreground)]`:`text-[var(--oh-muted)]`),children:c||e(N.CONVERSATION$OVERVIEW_NONE)})]}):null]}):null,E?(0,Z.jsxs)(`ul`,{className:`px-2`,children:[p?(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-commits`,onClick:w,className:R(`flex w-full min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`cursor-pointer bg-transparent text-left transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(lt,{className:Ps,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(N.DIFF_VIEWER$COMMITS)}),g.isLoading?(0,Z.jsx)(`span`,{className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:`…`}):(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-commits-count`,className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:S})]})}):null,m?(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-pull-requests`,onClick:C,className:R(`flex w-full min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`cursor-pointer bg-transparent text-left transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(Kr,{className:Ps,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(N.CONVERSATION$OVERVIEW_PULL_REQUESTS)}),h.isLoading?(0,Z.jsx)(`span`,{className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:`…`}):(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-pull-requests-count`,className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:b!==null&&b>0?b:Is})]})}):null]}):null]})}var Rs=R(`w-full max-w-[240px] rounded-xl border border-[var(--oh-border)]`,`bg-[var(--oh-surface)] pb-1`),zs=R(`flex items-center gap-2 rounded-md px-2 py-1.5`,`transition-colors hover:bg-white/5`),Bs=`size-4 shrink-0 text-[var(--oh-muted)]`;function Vs({icon:e,label:t,value:n,testId:r}){return(0,Z.jsxs)(`li`,{"data-testid":r,className:zs,children:[e,(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:t}),(0,Z.jsx)(`span`,{className:`max-w-[45%] shrink-0 truncate text-right text-sm text-[var(--oh-muted)]`,children:n})]})}function Hs(){return(0,Z.jsx)(`div`,{className:`px-1`,children:(0,Z.jsx)(nn,{inset:`menu`})})}function Us(){let{t:e}=f(`openhands`),t=Wo(),{conversationId:n}=J(),{state:r}=sn(n),{isConnected:i}=Go(),[a,o]=(0,X.useState)(!1),s=(0,X.useRef)(null),c=e=>fn(e,r.unpinnedOverviewSections??[]),l=ln(H.changes,r.unpinnedOverviewGitParts??[]),u=c(W.git)&&(l||i),d=cn.flatMap(e=>e.sections.filter(e=>c(e))),p=[];u&&p.push({kind:`git`,key:`git`}),d.length>0&&p.push({kind:`sections`,key:d.join(`-`),sections:d});let m=n=>{switch(n){case W.workspace:return(0,Z.jsx)(Vs,{testId:`conversation-overview-workspace`,icon:(0,Z.jsx)(pt,{className:Bs}),label:e(N.CONVERSATION$OVERVIEW_WORKSPACE),value:t.workspaceName??e(N.CONVERSATION$OVERVIEW_NONE)},n);case W.git:return null;default:return n}};return(0,Z.jsxs)(`aside`,{"data-testid":`conversation-overview-panel`,"aria-label":e(N.CONVERSATION$OVERVIEW),className:Rs,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between px-4 pb-0.5 pt-2.5`,children:[(0,Z.jsx)(`span`,{className:`text-xs font-medium text-[var(--oh-muted)]`,children:e(N.CONVERSATION$OVERVIEW)}),(0,Z.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,Z.jsx)(Hn,{ref:s,testId:`conversation-overview-ellipsis`,onClick:()=>o(e=>!e),ariaLabel:e(N.COMMON$MORE_OPTIONS)}),(0,Z.jsx)(xs,{isOpen:a,onClose:()=>o(!1),ignoreOutsideClickRef:s,anchorRef:s})]})]}),p.map((e,t)=>(0,Z.jsxs)(X.Fragment,{children:[t>0?(0,Z.jsx)(Hs,{}):null,e.kind===`git`?(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-git-block`,children:[l?(0,Z.jsx)(`ul`,{className:`px-2`,children:(0,Z.jsx)(hs,{})}):null,i?(0,Z.jsx)(Ls,{}):null]}):(0,Z.jsx)(`ul`,{className:`px-2`,children:e.sections.map(e=>m(e))})]},e.key))]})}var Ws={duration:.2,ease:`easeInOut`};function Gs(e){return e>=596}var Ks=typeof window<`u`?X.useLayoutEffect:X.useEffect;function qs(e,t){let[n,r]=(0,X.useState)(!1);return Ks(()=>{if(!t){r(!1);return}let n=e.current;if(!n)return;let i=()=>{r(Gs(n.clientWidth))};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(n),()=>a.disconnect()},[e,t]),n}var Js=`w-full min-w-0 max-w-[800px] h-full flex flex-col min-h-0`;function Ys({isRightPanelShown:e}){let t=Ii(),n=!De()&&!0,r=U(e=>e.isOverviewPanelShown),a=(0,X.useRef)(null),o=!t&&r,s=qs(a,o);return(0,Z.jsxs)(`div`,{ref:a,className:`flex h-full min-h-0 w-full overflow-hidden`,children:[(0,Z.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 justify-center overflow-hidden`,children:(0,Z.jsx)(`div`,{className:Js,children:(0,Z.jsx)(Ho,{})})}),(0,Z.jsx)(i,{children:o&&s?(0,Z.jsx)(Qe.div,{"data-testid":`conversation-overview-column`,initial:n?{width:0,opacity:0}:!1,animate:{width:268,opacity:1},exit:n?{width:0,opacity:0}:{opacity:0},transition:Ws,className:`flex shrink-0 flex-col items-start overflow-hidden pt-4 pl-3 pr-4`,children:(0,Z.jsx)(`div`,{className:`w-full shrink-0`,style:{width:268},children:(0,Z.jsx)(Us,{})})},`conversation-overview-column`):null})]})}function Xs({children:e}){return(0,Z.jsx)(`div`,{className:`absolute inset-0`,children:e})}function Zs({children:e}){return(0,Z.jsx)(`div`,{className:`flex flex-col h-full w-full`,children:e})}function Qs({children:e}){return(0,Z.jsx)(`div`,{className:`overflow-hidden flex-grow h-full w-full relative`,children:e})}function $s({className:e}){let{t}=f(`openhands`);return(0,Z.jsxs)(`div`,{className:R(`bg-[var(--oh-surface)] flex h-full w-full flex-col items-center justify-center gap-3`,e),children:[(0,Z.jsx)(vt,{className:`h-8 w-8 shrink-0 animate-spin text-tertiary-light`,"aria-hidden":!0}),(0,Z.jsx)(Ve,{as:`p`,role:`status`,"aria-live":`polite`,className:`block w-full text-center text-base font-normal leading-5`,duration:1,spread:2,children:t(N.HOME$LOADING)})]})}function ec({children:e,onReady:t}){return(0,X.useLayoutEffect)(()=>{t()},[t]),e}function tc({onPending:e}){return(0,X.useLayoutEffect)(()=>{e()},[e]),(0,Z.jsx)($s,{})}var nc={duration:.35,ease:`easeInOut`};function rc({showAgentLoading:e,tabKey:t,children:n}){let r=De(),[a,o]=(0,X.useState)(!1);(0,X.useLayoutEffect)(()=>{o(!1)},[t]);let s=(0,X.useCallback)(()=>{o(!0)},[]),c=(0,X.useCallback)(()=>{o(!1)},[]),l=e||a;return r?(0,Z.jsx)(`div`,{className:`relative h-full w-full overflow-hidden`,children:l?(0,Z.jsx)($s,{}):(0,Z.jsx)(X.Suspense,{fallback:(0,Z.jsx)(tc,{onPending:s}),children:(0,Z.jsx)(ec,{onReady:c,children:n})})}):(0,Z.jsxs)(`div`,{className:`relative h-full w-full overflow-hidden`,children:[(0,Z.jsx)(Qe.div,{className:`absolute inset-0 h-full w-full`,initial:!1,animate:{opacity:+!l},transition:nc,"aria-hidden":l,children:(0,Z.jsx)(X.Suspense,{fallback:(0,Z.jsx)(tc,{onPending:s}),children:(0,Z.jsx)(ec,{onReady:c,children:n})})}),(0,Z.jsx)(i,{children:l?(0,Z.jsx)(Qe.div,{className:`absolute inset-0 z-10 h-full w-full`,initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},transition:nc,children:(0,Z.jsx)($s,{})},`conversation-tab-loading-overlay`):null})]})}var ic=(0,X.lazy)(()=>a(()=>import(`./files-tab-CCgAcVdc.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68]))),ac=(0,X.lazy)(()=>a(()=>import(`./commits-tab-2jhtaohl.js`),__vite__mapDeps([69,1,2,70,7,5,8,9,71,6,19,72,10,11,4,12,13,14,3,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,73,74,75,76,59,77,58,60,78,79,80,81,82,83,84,85,86,87,88,89,90,57,91,61,62,92,93,94,95,96,97,98,99,54,100,101,102,103,104,105,106,107,56,63,64,108,109,110,111,112,113,114,115,116,117,118,68,119,120,65,121]))),oc=(0,X.lazy)(()=>a(()=>import(`./browser-tab-DZanIw5m.js`),__vite__mapDeps([122,2,1,7,5,8,17,11,4,6,12,13,14,3,15,9,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,123,124,65]))),sc=(0,X.lazy)(()=>a(()=>import(`./planner-tab-D8f2Y3rn.js`),__vite__mapDeps([125,1,2,7,5,8,10,11,4,6,12,13,14,3,15,9,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,126,73,74,75,76,59,77,58,60,78,79,80,81,82,83,84,85,86,87,88,89,90,57,91,61,62,92,93,94,95,96,97,98,99,54,100,101,102,103,104,105,106,107,56,63,64,108,109,110,111,112,113,114,115,116,117,118,68,119,120,65]))),cc=(0,X.lazy)(()=>a(()=>import(`./task-list-tab-3Jg8ywch.js`),__vite__mapDeps([127,1,2,7,5,8,10,11,4,6,12,13,14,3,15,9,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,65]))),lc=(0,X.lazy)(()=>a(()=>import(`./usage-tab-Cm-9j3UK.js`),__vite__mapDeps([128,1,2,11,4,6,5,8,12,13,74,7,9,95,17,14,3,15,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,129,42,101,73,75,76,59,77,58,60,78,79,80,52,81,45,82,83,84,85,86,87,88,89,90,57,91,61,62,92,93,94,51,96,97,98,40,41,99,54,100,102,103,104,105,106,107,56,44,63,64,108,109,110,111,50,112,113,114,115,116,117,118,68,119,48,120,53,65]))),uc=(0,X.lazy)(()=>a(()=>import(`./terminal-onXx0_Qz.js`),__vite__mapDeps([130,1,2,7,5,8,131,132,71,6,19,17,11,4,12,13,14,3,15,9,18,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,73,74,75,76,59,77,58,60,78,79,80,52,81,45,82,83,84,85,86,87,88,89,90,57,91,61,62,92,93,94,95,51,96,97,98,40,41,99,54,42,100,101,102,103,104,105,106,107,56,44,63,64,108,109,110,111,50,112,113,114,115,116,117,118,68,119,48,120,53,65]))),dc={tasklist:{component:cc},files:{component:ic},commits:{component:ac},browser:{component:oc},terminal:{component:uc},planner:{component:sc},usage:{component:lc}};function fc(){let{selectedTab:e,shouldShownAgentLoading:t}=U(),{conversationId:n}=J(),r=(0,X.useMemo)(()=>dc[e]??dc.files,[e]).component,i=e===`terminal`?`${e}-${n}`:e??`files`;return(0,Z.jsx)(Zs,{children:(0,Z.jsx)(Qs,{children:(0,Z.jsx)(rc,{showAgentLoading:t,tabKey:i,children:(0,Z.jsx)(Xs,{children:(0,Z.jsx)(r,{})},i)})})})}var pc=()=>{let e=d(),t=Qr(e=>e.removeErrorMessage);return g({mutationKey:[`start-conversation`],mutationFn:async e=>wn(e.conversationId),onMutate:async()=>(await e.cancelQueries({queryKey:[`user`,`conversations`]}),{previousConversations:e.getQueryData([`user`,`conversations`])}),onError:(t,n,r)=>{r?.previousConversations&&e.setQueryData([`user`,`conversations`],r.previousConversations)},onSettled:(t,n,r)=>{xn(e,r.conversationId)},onSuccess:(n,r)=>{t(),On(e,r.conversationId,k.RUNNING)}})},mc=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM10 9H14A1 1 0 0 1 15 10V14A1 1 0 0 1 14 15H10A1 1 0 0 1 9 14V10A1 1 0 0 1 10 9Z`,fill:`currentColor`})}),hc=e=>(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.9 1.50004C15.3 1.65004 17.55 2.85004 19.2 4.50004C21.15 6.60004 22.2 9.15004 22.2 12.15C22.2 14.55 21.3 16.8 19.8 18.75C18.3 20.55 16.2 21.9 13.8 22.35C11.4 22.8 9 22.5 6.9 21.3C4.8 20.1 3.15 18.3 2.25 16.05C1.35 13.8 1.2 11.25 1.95 9.00004C2.7 6.60004 4.05 4.65004 6.15 3.30004C8.1 1.95004 10.5 1.35004 12.9 1.50004ZM13.65 20.85C15.6 20.4 17.4 19.35 18.75 17.7C19.95 16.05 20.7 14.1 20.55 12C20.55 9.60004 19.65 7.20004 18 5.55004C16.5 4.05004 14.7 3.15004 12.6 3.00004C10.65 2.85004 8.55 3.30004 6.9 4.50004C5.25 5.70004 4.05 7.35004 3.45 9.45004C2.85 11.4 2.85 13.5 3.75 15.45C4.65 17.4 6 18.9 7.8 19.95C9.6 21 11.7 21.3 13.65 20.85Z`,fill:`currentColor`}),(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9 7.49998L10.1655 6.87598L16.9155 11.376V12.624L10.1655 17.124L9 16.5V7.49998ZM10.5 8.90098V15.099L15.1485 12L10.5 8.90098Z`,fill:`currentColor`})]});function gc({icon:e,text:t,onClick:n,testId:r}){return(0,Z.jsx)(V,{testId:r,onClick:n,children:(0,Z.jsxs)(`div`,{className:`flex min-w-0 w-full items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:t}),(0,Z.jsx)(`span`,{className:Zt,"aria-hidden":!0,children:e})]})})}function _c({className:e=``,executionStatus:t,isPausing:n=!1}){let{curAgentState:r}=Yr(),{isTask:i,taskStatus:a,taskDetail:o}=vr(),{t:s}=f(`openhands`),{errorMessage:c}=Qr(),l=r===L.LOADING||r===L.INIT,u=ee(t)||A(t),d=le({isPausing:n,isTask:i,taskStatus:a,isStartingStatus:l,isStopStatus:u,curAgentState:r}),p=ae({isPausing:n,isTask:i,taskStatus:a,taskDetail:o,isStartingStatus:l,isStopStatus:u,curAgentState:r,errorMessage:c,t:s});return(0,Z.jsx)(`div`,{className:e,"data-testid":`server-status`,children:(0,Z.jsxs)(`div`,{className:`flex items-center`,children:[(0,Z.jsx)(Ro,{className:`w-6 h-6 shrink-0`,color:d}),(0,Z.jsx)(`span`,{className:`text-[13px] text-white font-normal`,children:p})]})})}function vc({onClose:e,onStopServer:t,onStartServer:n,executionStatus:r,position:i=`top`,className:a=``,isPausing:o=!1,ignoreOutsideClickRef:s}){let{t:c}=f(`openhands`),l=Rn(e,s),u=he(r),d=A(r),p=u||d;return(0,Z.jsxs)(Mt,{ref:l,testId:`server-status-context-menu`,position:i,alignment:`left`,size:`default`,className:R(`left-2 w-fit min-w-42`,a),children:[(0,Z.jsx)(_c,{executionStatus:r,isPausing:o,className:`pl-0 pr-2 py-1`}),p&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(nn,{inset:`menu`}),u&&t&&(0,Z.jsx)(gc,{icon:(0,Z.jsx)(mc,{width:18,height:18}),text:c(N.COMMON$STOP_RUNTIME),onClick:t,testId:`stop-server-button`}),d&&n&&(0,Z.jsx)(gc,{icon:(0,Z.jsx)(hc,{width:18,height:18}),text:c(N.COMMON$START_RUNTIME),onClick:n,testId:`start-server-button`})]})]})}function yc({isPublic:e,onToggle:t,ariaLabel:n}){return(0,Z.jsxs)(`label`,{className:`relative inline-flex shrink-0 cursor-pointer items-center`,children:[(0,Z.jsx)(`input`,{hidden:!0,type:`checkbox`,"data-testid":`share-publicly-button`,checked:e,"aria-label":n,onChange:e=>t(e.target.checked)}),(0,Z.jsx)(`span`,{"aria-hidden":!0,className:R(`inline-flex h-3.5 w-7 items-center rounded-full px-0.5 py-px transition-colors duration-200 ease-in-out`,e?`bg-white`:`bg-base-secondary`),children:(0,Z.jsx)(`span`,{className:R(`block h-2 w-2 shrink-0 rounded-full transition-transform duration-200 ease-in-out`,e?`translate-x-[calc(1rem-1px)] bg-base-secondary`:`translate-x-px bg-tertiary-light`)})})]})}function bc({onClose:e,onRename:t,onDelete:n,onStop:r,onDisplayCost:i,onShowAgentTools:a,onShowSkills:o,onShowHooks:s,onTogglePublic:c,onCopyShareLink:l,onExportTranscript:u,onDownloadConversation:d,shareUrl:p,position:m=`bottom`,anchorRef:h}){let g=Ii(),{t:_}=f(`openhands`),{backend:v}=T(),{data:y}=Y(),b=Ar(),x=Rn(e,h),S=h?.current??null,[C,w]=X.useState();X.useLayoutEffect(()=>{if(!S)return;let e=()=>{let e=S.getBoundingClientRect();if(!e)return;let t={position:`fixed`,zIndex:9999};m===`top`?t.bottom=window.innerHeight-e.top+8:t.top=e.bottom+8,t.left=e.left,w(t)};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[S,m]);let E=!!(a||o||s),D=!!i,O=!!(r||n),k=v.kind===`cloud`?N.COMMON$CLOSE_CONVERSATION_STOP_RUNTIME:N.COMMON$STOP_CONVERSATION,A=v.kind===`cloud`&&!!c,j=y?.public||!1,M=!!S,P=(0,Z.jsxs)(Mt,{ref:x,testId:`conversation-name-context-menu`,position:m,alignment:`left`,className:R(g?`right-0 translate-x-[34%] left-auto`:``,M?`!static !top-auto !bottom-auto !left-auto !right-auto !mt-0`:``),children:[t&&(0,Z.jsx)(V,{testId:`rename-button`,onClick:t,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Un,{width:16,height:16}),text:_(N.BUTTON$RENAME)})}),E&&(0,Z.jsx)(nn,{testId:`separator-tools`,inset:`menu`}),o&&(0,Z.jsx)(Gr,{isDisabled:b,children:(0,Z.jsx)(V,{testId:`show-skills-button`,onClick:o,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Wn,{width:16,height:16,className:`stroke-[1.75]`,"aria-hidden":!0}),text:_(N.CONVERSATION$SHOW_SKILLS)})})}),s&&(0,Z.jsx)(Gr,{isDisabled:b,children:(0,Z.jsx)(V,{testId:`show-hooks-button`,onClick:s,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Sr,{width:16,height:16,"aria-hidden":!0}),text:_(N.CONVERSATION$SHOW_HOOKS)})})}),a&&(0,Z.jsx)(Gr,{isDisabled:b,children:(0,Z.jsx)(V,{testId:`show-agent-tools-button`,onClick:a,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(tn,{width:16,height:16}),text:_(N.BUTTON$SHOW_AGENT_TOOLS_AND_METADATA)})})}),u&&(0,Z.jsx)(V,{testId:`export-transcript-button`,onClick:u,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Fn,{width:16,height:16}),text:_(N.BUTTON$EXPORT_TRANSCRIPT)})}),d&&(0,Z.jsx)(V,{testId:`download-trajectory-button`,onClick:d,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Fn,{width:16,height:16}),text:_(N.BUTTON$DOWNLOAD_CONVERSATION_DATA)})}),(D||O)&&(0,Z.jsx)(nn,{testId:`separator-info-control`,inset:`menu`}),i&&(0,Z.jsx)(V,{testId:`display-cost-button`,onClick:i,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(ot,{size:16}),text:_(N.BUTTON$DISPLAY_COST)})}),A&&c&&(0,Z.jsxs)(`li`,{className:`flex w-full items-center gap-2 rounded px-2 py-2 hover:bg-[var(--oh-interactive-hover)]`,children:[(0,Z.jsx)(`span`,{className:`flex shrink-0 items-center text-[var(--oh-muted)]`,"aria-hidden":!0,children:(0,Z.jsx)(ut,{size:16})}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,children:_(N.CONVERSATION$SHARE_PUBLICLY)}),(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-center`,children:[j&&p&&l&&(0,Z.jsxs)(`div`,{className:`mr-2 flex items-center gap-0.5`,children:[(0,Z.jsx)(`button`,{type:`button`,"data-testid":`copy-share-link-button`,onClick:l,className:`rounded p-0.5 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-selected)] hover:text-[var(--oh-foreground)] cursor-pointer [&_svg]:text-current`,title:_(N.BUTTON$COPY_TO_CLIPBOARD),children:(0,Z.jsx)(Qn,{width:14,height:14})}),(0,Z.jsx)(`a`,{"data-testid":`open-share-link-button`,href:p,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),className:`rounded p-0.5 text-[var(--oh-muted)] no-underline visited:text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-selected)] hover:text-[var(--oh-foreground)] cursor-pointer [&_svg]:text-current`,title:_(N.BUTTON$OPEN_IN_NEW_TAB),children:(0,Z.jsx)(it,{size:14,"aria-hidden":!0})})]}),(0,Z.jsx)(yc,{isPublic:j,onToggle:c,ariaLabel:_(N.CONVERSATION$SHARE_PUBLICLY)})]})]}),r&&(0,Z.jsx)(Gr,{isDisabled:b,children:(0,Z.jsx)(V,{testId:`stop-button`,onClick:r,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Qt,{width:16,height:16}),text:_(k)})})}),n&&(0,Z.jsx)(V,{testId:`delete-button`,onClick:n,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Vn,{width:16,height:16}),text:_(N.COMMON$DELETE_CONVERSATION)})})]});return M?typeof document>`u`||!C?null:os.createPortal((0,Z.jsx)(`div`,{style:C,children:P}),document.body):P}var xc=new Set([`BrowserClickAction`,`BrowserCloseTabAction`,`BrowserGetContentAction`,`BrowserGetStateAction`,`BrowserGoBackAction`,`BrowserListTabsAction`,`BrowserNavigateAction`,`BrowserScrollAction`,`BrowserSwitchTabAction`,`BrowserTypeAction`,`ExecuteBashAction`,`FileEditorAction`,`GlobAction`,`GrepAction`,`InvokeSkillAction`,`MCPToolAction`,`StrReplaceEditorAction`,`TaskAction`,`TaskTrackerAction`,`TerminalAction`,`ThinkAction`]),Sc=new Set([`BrowserObservation`,`CanvasUIObservation`,`ExecuteBashObservation`,`FileEditorObservation`,`GlobObservation`,`GrepObservation`,`InvokeSkillObservation`,`MCPToolObservation`,`StrReplaceEditorObservation`,`SwitchLLMObservation`,`TaskTrackerObservation`,`TaskObservation`,`TerminalObservation`]),Cc=e=>e.replace(/[\r\n]+/g,` `).replace(/\s+/g,` `).trim(),wc=(e,t=100)=>e.length>t?`${e.slice(0,t)}…`:e,Tc=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toISOString()},$=e=>e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`"`,`"`).replaceAll(`'`,`'`),Ec=e=>e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replace(/(!?)\[([^\]]*)\]\(\s*((?:javascript|data|vbscript):[^)]*)\)/gi,`$1\\[$2\\]($3)`).replace(/^(\s{0,3})\[([^\]]+)\]:(\s*<?(?:javascript|data|vbscript):)/gim,`$1\\[$2\\]:$3`),Dc=e=>Cc(e||w.t(N.TRANSCRIPT_EXPORT$DEFAULT_TITLE))||w.t(N.TRANSCRIPT_EXPORT$DEFAULT_TITLE),Oc=(e,t)=>Cc(w.t(e,t).replace(/<\/?(?:cmd|path)>/g,``)),kc=e=>/^[a-z][a-z0-9_]*\s*:\s*[[{]/i.test(e),Ac=e=>e.replace(/(?:Action|Observation)$/,``).replace(/([a-z])([A-Z])/g,`$1 $2`).trim(),jc=e=>{let t=Cc(e.summary||``);return t&&!kc(t)?t:Cc(e.tool_name)||Ac(e.action.kind)},Mc=(e,t)=>t?jc(t):Cc(e.tool_name)||Ac(e.observation.kind),Nc=e=>e.filter(e=>e.type===`text`&&typeof e.text==`string`).map(e=>e.text).join(`
|
|
24
|
+
`),Pc=e=>[`${w.t(N.TASK$SUBAGENT)}: ${e.subagent_type}`,`${w.t(N.TASK$QUERY)}:\n${e.prompt}`].join(`
|
|
25
|
+
|
|
26
|
+
`),Fc=(e,t)=>{let n=t?.action.kind===`TaskAction`?t.action:void 0;return[`${w.t(N.TASK$SUBAGENT)}: ${e.subagent}`,`${w.t(N.TASK$TASK_ID)}: ${e.task_id}`,n?`${w.t(N.TASK$QUERY)}:\n${n.prompt}`:``,`${w.t(N.TASK$RESULT)}:\n${Nc(e.content)}`].filter(Boolean).join(`
|
|
27
|
+
|
|
28
|
+
`)},Ic=e=>e.action.kind===`TaskAction`?Pc(e.action):xc.has(e.action.kind)?Me(e):``,Lc=(e,t)=>e.observation.kind===`TaskObservation`?Fc(e.observation,t):Sc.has(e.observation.kind)?He(e):``,Rc=e=>ei(e)?[e.reason,e.error,e.stdout,e.stderr].filter(e=>!!e?.trim()).join(`
|
|
29
|
+
|
|
30
|
+
`):``,zc=e=>[Xr(e),vi(e)].map(e=>e.trim()).filter(Boolean).join(`
|
|
31
|
+
|
|
32
|
+
`),Bc=e=>![`FinishAction`,`SwitchLLMAction`,`ThinkAction`].includes(e.action.kind),Vc=(e,t)=>{let n=e.reduce((e,t)=>{try{return oi(t,e)}catch{return e}},[]),r=new Map(e.filter(si).map(e=>[e.id,e])),i=[],a=new Set,o=Be(n.filter(e=>xi(e)&&!e.observation.is_error||yi(e)),2**53-1,e),s=e=>{if(a.has(e.id)||!Bc(e))return;a.add(e.id);let t=zc(e);t&&i.push({kind:`message`,author:`assistant`,content:t,timestamp:e.timestamp})};for(let e of o){if(e.kind===`group`)continue;if(e.kind===`thought`){s(e.action);continue}let{event:n}=e;try{let e=si(n)?n:fi(n)?r.get(n.action_id):void 0;if(e&&s(e),xi(n)&&!n.observation.is_error){i.push({kind:`note`,summary:Oc(N.MODEL$SWITCHED_TO_PROFILE,{name:n.observation.profile_name}),content:[n.observation.active_model?`${w.t(N.TRANSCRIPT_EXPORT$MODEL)}: ${n.observation.active_model}`:``,n.observation.reason?`${w.t(N.TRANSCRIPT_EXPORT$REASON)}: ${n.observation.reason}`:``].filter(Boolean).join(`
|
|
33
|
+
`),timestamp:n.timestamp??``});continue}if(ui(n)){let e=Re(n).trim();if(n.source===`agent`){let{reasoning:t,message:r}=ii(e);[t,r].filter(Boolean).forEach(e=>{i.push({kind:`message`,author:`assistant`,content:e,timestamp:n.timestamp??``})})}else e&&i.push({kind:`message`,author:`user`,content:e,timestamp:n.timestamp??``});continue}if(ri(n)){let{reasoning:e,message:t}=ii(n.content??``,{streaming:!0}),r=[n.reasoning_content?.trim()||``,e].filter(Boolean).join(`
|
|
34
|
+
|
|
35
|
+
`);r&&i.push({kind:`message`,author:`assistant`,content:r,timestamp:n.timestamp??``}),t.trim()&&i.push({kind:`message`,author:`assistant`,content:t.trim(),timestamp:n.timestamp??``});continue}if($r(n)){i.push({kind:`error`,content:n.error,timestamp:n.timestamp??``});continue}if(si(n)){if(n.action.kind===`FinishAction`){let e=n.action.message.trim();e&&i.push({kind:`message`,author:`assistant`,content:e,timestamp:n.timestamp??``})}else i.push({kind:`tool`,summary:jc(n),details:t?Ic(n):``,timestamp:n.timestamp??``});continue}if(fi(n)){let e=r.get(n.action_id);i.push({kind:`tool`,summary:Mc(n,e),details:t?Lc(n,e):``,timestamp:n.timestamp??``});continue}if(ai(n)){i.push({kind:`tool`,summary:qe(n)||w.t(N.ACTION_MESSAGE$ACP_TOOL),details:t?Je(n):``,timestamp:n.timestamp??``});continue}if(ei(n)){i.push({kind:`tool`,summary:w.t(N.TRANSCRIPT_EXPORT$HOOK,{command:wc(Cc(n.hook_command),100)}),details:t?Rc(n):``,timestamp:n.timestamp??``});continue}Oi(n)&&di(n)&&i.push({kind:`note`,summary:`${w.t(N.GOAL$PREFIX)} ${w.t({running:N.GOAL$STATUS_RUNNING,complete:N.GOAL$STATUS_COMPLETE,capped:N.GOAL$STATUS_CAPPED,interrupted:N.GOAL$STATUS_INTERRUPTED}[n.value.status])}`,content:[n.value.objective,n.value.verdict?.missing||``].filter(Boolean).join(`
|
|
36
|
+
|
|
37
|
+
`),timestamp:n.timestamp??``})}catch{}}return i},Hc=(e,t)=>t.includeTimestamps?`<sub>${$(Tc(e.timestamp))}</sub>\n\n`:``,Uc=e=>{let t=Math.max(0,...Array.from(e.matchAll(/`+/g),e=>e[0].length)),n="`".repeat(Math.max(3,t+1));return`${n}text\n${e}\n${n}`},Wc=(e,t)=>{let n=[`# ${Ec(Dc(t.title))}`,``];t.model&&n.push(`**${w.t(N.TRANSCRIPT_EXPORT$MODEL)}:** ${Ec(Cc(t.model))}`,``);for(let r of Vc(e,t.includeToolDetails)){let e=Hc(r,t);if(r.kind===`message`){let t=r.author===`user`?w.t(N.TRANSCRIPT_EXPORT$USER):w.t(N.CHAT_INTERFACE$ASSISTANT);n.push(`## ${t}`,``,e+Ec(r.content),``)}else if(r.kind===`error`){let t=r.content.split(`
|
|
38
|
+
`).map(e=>`> ${Ec(e)}`).join(`
|
|
39
|
+
`);n.push(`## ${w.t(N.COMMON$ERROR)}`,``,e+t,``)}else if(r.kind===`note`)n.push(`> **${$(r.summary)}**`,``,e+Ec(r.content),``);else if(t.includeToolDetails&&r.details)n.push(`<details>`,`<summary><strong>${$(w.t(N.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(r.summary)}</summary>`,``,e+Uc(r.details),``,`</details>`,``);else{let t=e?`<br>${e.trimEnd()}`:``;n.push(`<p><strong>${$(w.t(N.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(r.summary)}${t}</p>`,``)}}return`${n.join(`
|
|
40
|
+
`).trim()}\n`},Gc=(e,t)=>{if(!t.includeTimestamps)return``;let n=Tc(e.timestamp);return`<time datetime="${$(n)}">${$(n)}</time>`},Kc=(e,t)=>{let n=Dc(t.title),r=Vc(e,t.includeToolDetails).map(e=>{let n=Gc(e,t);if(e.kind===`message`){let t=e.author===`user`?w.t(N.TRANSCRIPT_EXPORT$USER):w.t(N.CHAT_INTERFACE$ASSISTANT);return`<section class="message ${e.author.toLowerCase()}">
|
|
41
|
+
<header><h2>${$(t)}</h2>${n}</header>
|
|
42
|
+
<div class="content">${$(e.content)}</div>
|
|
43
|
+
</section>`}return e.kind===`error`?`<section class="message error">
|
|
44
|
+
<header><h2>${$(w.t(N.COMMON$ERROR))}</h2>${n}</header>
|
|
45
|
+
<div class="content">${$(e.content)}</div>
|
|
46
|
+
</section>`:e.kind===`note`?`<aside class="note">
|
|
47
|
+
<header><strong>${$(e.summary)}</strong>${n}</header>
|
|
48
|
+
${e.content?`<div class="content">${$(e.content)}</div>`:``}
|
|
49
|
+
</aside>`:t.includeToolDetails&&e.details?`<details>
|
|
50
|
+
<summary><strong>${$(w.t(N.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(e.summary)}${n}</summary>
|
|
51
|
+
<pre>${$(e.details)}</pre>
|
|
52
|
+
</details>`:`<div class="tool-summary"><strong>${$(w.t(N.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(e.summary)}${n}</div>`}).join(`
|
|
53
|
+
`),i=t.model?`<p class="model"><strong>${$(w.t(N.TRANSCRIPT_EXPORT$MODEL))}:</strong> ${$(Cc(t.model))}</p>`:``;return`<!doctype html>
|
|
54
|
+
<html lang="${$(w.resolvedLanguage||w.language||`en`)}">
|
|
55
|
+
<head>
|
|
56
|
+
<meta charset="utf-8">
|
|
57
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
58
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:">
|
|
59
|
+
<title>${$(n)}</title>
|
|
60
|
+
<style>
|
|
61
|
+
:root { color-scheme: light dark; font-family: ui-sans-serif, system-ui, sans-serif; }
|
|
62
|
+
body { margin: 0; background: #111827; color: #e5e7eb; line-height: 1.55; }
|
|
63
|
+
main { box-sizing: border-box; width: min(860px, 100%); margin: 0 auto; padding: 48px 24px 80px; }
|
|
64
|
+
h1 { margin: 0; font-size: 2rem; }
|
|
65
|
+
h2 { margin: 0; font-size: 1rem; }
|
|
66
|
+
.model { margin: 8px 0 32px; color: #9ca3af; }
|
|
67
|
+
.message, details, .tool-summary, .note { margin: 16px 0; border: 1px solid #374151; border-radius: 10px; padding: 16px; background: #1f2937; }
|
|
68
|
+
.user { border-left: 4px solid #60a5fa; }
|
|
69
|
+
.assistant { border-left: 4px solid #34d399; }
|
|
70
|
+
.error { border-left: 4px solid #f87171; }
|
|
71
|
+
.note { border-left: 4px solid #a78bfa; }
|
|
72
|
+
header, summary, .tool-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
|
|
73
|
+
summary { cursor: pointer; }
|
|
74
|
+
time { flex: none; color: #9ca3af; font-size: .75rem; font-weight: 400; }
|
|
75
|
+
.content { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
76
|
+
pre { margin: 14px 0 0; padding: 14px; overflow-x: auto; border-radius: 7px; background: #111827; color: #d1d5db; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
77
|
+
@media (prefers-color-scheme: light) {
|
|
78
|
+
body { background: #f9fafb; color: #111827; }
|
|
79
|
+
.message, details, .tool-summary, .note { border-color: #d1d5db; background: #fff; }
|
|
80
|
+
pre { background: #f3f4f6; color: #1f2937; }
|
|
81
|
+
.model, time { color: #6b7280; }
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
84
|
+
</head>
|
|
85
|
+
<body>
|
|
86
|
+
<main>
|
|
87
|
+
<h1>${$(n)}</h1>
|
|
88
|
+
${i}
|
|
89
|
+
${r}
|
|
90
|
+
</main>
|
|
91
|
+
</body>
|
|
92
|
+
</html>
|
|
93
|
+
`},qc=(e,t)=>(e.timestamp??``).localeCompare(t.timestamp??``),Jc=async(e,t,n)=>{let r=[],i=new Set,a=[],o=0,s=new Set,c,l,u=!1,d=!1;for(;;){let e=await t({limit:100,sortOrder:`TIMESTAMP_DESC`,strictPagination:!0,...l?{pageId:l}:{},...c?{timestampLt:c}:{}});if(!Array.isArray(e.items))throw Error(`Invalid transcript history response: expected page.items to be an array.`);r.push(...e.items);let a,f=!1;if(e.items.forEach(e=>{i.has(e.id??``)||(e.id?i.add(e.id):o+=1,f=!0),(!a||(e.timestamp??``)<a)&&(a=e.timestamp??``)}),e.next_page_id){if(s.has(e.next_page_id))throw Error(`Transcript history pagination repeated a page cursor.`);s.add(e.next_page_id),l=e.next_page_id,c=void 0,u=!0;continue}if(u&&!d||e.items.length<100)break;if(n===void 0)throw Error(`Transcript history pagination cannot prove that all events were loaded.`);if(!a||c&&(!f||a>=c))throw Error(`Transcript history pagination did not advance.`);l=void 0,c=a,d=!0}let f=new Map;r.slice().reverse().forEach(e=>{if(e.id!==void 0){f.has(e.id)||f.set(e.id,e);return}a.push(e)}),e.forEach(e=>{if(e.id!==void 0){f.has(e.id)||f.set(e.id,e);return}a.push(e)});let p=[...a,...f.values()].sort(qc);if(n!==void 0&&i.size+o<n)throw Error(`Transcript history is incomplete: expected ${n} persisted events, received ${i.size+o}.`);return p},Yc=`transcript-export-format`;function Xc({conversationId:e,conversationUrl:t,sessionApiKey:n,conversationTitle:r,model:i,onClose:a}){let{t:o}=f(`openhands`),{trackConversationExported:s}=Lt(),[c,l]=X.useState(`markdown`),[u,d]=X.useState(!0),[p,m]=X.useState(!0),[h,g]=X.useState(!1),_=X.useRef(!1),v=X.useRef(!1),y=X.useRef(!0);X.useEffect(()=>(y.current=!0,()=>{y.current=!1,v.current=!0}),[]);let b=()=>{_.current&&(v.current=!0),a()};return(0,Z.jsx)(Bt,{onClose:b,"aria-label":o(N.TRANSCRIPT_EXPORT$TITLE),children:(0,Z.jsxs)(Vt,{testID:`transcript-export-modal`,className:`relative items-start border border-[var(--oh-border)]`,children:[(0,Z.jsx)(pn,{onClose:b,testId:`close-transcript-export-modal`,className:`absolute right-4 top-4`}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2 pr-8`,children:[(0,Z.jsx)(Ut,{title:o(N.TRANSCRIPT_EXPORT$TITLE)}),(0,Z.jsx)(Ht,{description:o(N.TRANSCRIPT_EXPORT$DESCRIPTION)})]}),(0,Z.jsxs)(`fieldset`,{className:`flex w-full flex-col gap-2`,children:[(0,Z.jsx)(`legend`,{className:`mb-2 text-sm font-medium text-white`,children:o(N.TRANSCRIPT_EXPORT$FORMAT)}),(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-md border border-[var(--oh-border)] px-3 py-2 text-sm text-white`,children:[(0,Z.jsx)(`input`,{type:`radio`,name:Yc,value:`markdown`,disabled:h,checked:c===`markdown`,onChange:()=>l(`markdown`)}),o(N.TRANSCRIPT_EXPORT$MARKDOWN)]}),(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-md border border-[var(--oh-border)] px-3 py-2 text-sm text-white`,children:[(0,Z.jsx)(`input`,{type:`radio`,name:Yc,value:`html`,disabled:h,checked:c===`html`,onChange:()=>l(`html`)}),o(N.TRANSCRIPT_EXPORT$HTML)]})]}),(0,Z.jsxs)(`div`,{className:`flex w-full flex-col gap-3 text-sm text-white`,children:[(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,disabled:h,checked:u,onChange:e=>d(e.target.checked)}),o(N.TRANSCRIPT_EXPORT$INCLUDE_TOOL_DETAILS)]}),(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,disabled:h,checked:p,onChange:e=>m(e.target.checked)}),o(N.TRANSCRIPT_EXPORT$INCLUDE_TIMESTAMPS)]})]}),(0,Z.jsxs)(`div`,{className:`flex w-full justify-end gap-2`,children:[(0,Z.jsx)(qt,{type:`button`,variant:`secondary`,onClick:b,testId:`cancel-transcript-export`,children:o(N.BUTTON$CANCEL)}),(0,Z.jsx)(qt,{type:`button`,variant:`primary`,onClick:async()=>{if(!_.current){v.current=!1,_.current=!0,g(!0);try{let o=await Ti.getEventCount(e,t??``,n).catch(()=>void 0);if(v.current)return;let l=K.getState(),d=await Jc(l.loadedConversationId===e?l.events:[],r=>Ti.searchEvents(e,t,n,r),o);if(v.current)return;let f={includeToolDetails:u,includeTimestamps:p,title:r,model:i},m=c===`markdown`,h=m?Wc(d,f):Kc(d,f),g=m?`md`:`html`;I(new Blob([h],{type:m?`text/markdown;charset=utf-8`:`text/html;charset=utf-8`}),`conversation-${e}.${g}`),s(c),a()}catch{v.current||D(o(N.ERROR$GENERIC))}finally{_.current=!1,y.current&&g(!1)}}},testId:`confirm-transcript-export`,isDisabled:h,"aria-busy":h,children:o(N.BUTTON$EXPORT_CONVERSATION)})]})]})})}function Zc(){let{t:e}=f(`openhands`),{conversationId:t}=J(),{data:n}=Y(),{mutate:r}=Mn(),[i,a]=X.useState(`view`),[o,s]=X.useState(!1),[c,l]=X.useState(!1),u=X.useRef(null),d=X.useRef(null),{handleDelete:p,handleStop:m,handleDownloadConversation:h,handleDisplayCost:g,handleShowAgentTools:_,handleShowSkills:v,handleShowHooks:y,handleTogglePublic:b,handleCopyShareLink:x,shareUrl:C,handleConfirmDelete:w,handleConfirmStop:T,systemModalVisible:E,setSystemModalVisible:D,skillsModalVisible:O,setSkillsModalVisible:k,hooksModalVisible:A,setHooksModalVisible:j,confirmDeleteModalVisible:M,setConfirmDeleteModalVisible:P,confirmStopModalVisible:F,setConfirmStopModalVisible:ee,systemMessage:te,shouldShowStop:ne,shouldShowDownloadConversation:I,shouldShowDisplayCost:re,shouldShowAgentTools:ie,shouldShowSkills:ae,shouldShowHooks:oe}=Lr({conversationId:t,executionStatus:n?.execution_status,showOptions:!0,onContextMenuToggle:s});return X.useEffect(()=>{i===`edit`&&u.current?.focus()},[i]),n?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 h-[22px] text-base font-normal text-left pl-0 lg:pl-1 min-w-0`,"data-testid":`conversation-name`,children:[i===`edit`?(0,Z.jsx)(`input`,{ref:u,"data-testid":`conversation-name-input`,onClick:e=>{i===`edit`&&(e.preventDefault(),e.stopPropagation())},onBlur:()=>{if(u.current?.value&&t){let i=u.current.value.trim();i!==n?.title&&r({conversationId:t,newTitle:i},{onSuccess:()=>{S(e(N.CONVERSATION$TITLE_UPDATED))}})}else u.current&&(u.current.value=n?.title??``);a(`view`)},onKeyUp:e=>{e.nativeEvent.isComposing||e.key===`Enter`&&e.currentTarget.blur()},type:`text`,defaultValue:n.title||``,className:`text-white leading-5 bg-transparent border-none outline-none text-base font-normal w-fit max-w-fit field-sizing-content`}):(0,Z.jsx)(`div`,{className:`text-white leading-5 truncate`,"data-testid":`conversation-name-title`,onDoubleClick:()=>{a(`edit`)},title:n.title||``,children:n.title}),i!==`edit`&&(0,Z.jsxs)(`div`,{ref:d,className:`relative flex items-center shrink-0`,children:[(0,Z.jsx)(Hn,{onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!o)},ariaLabel:e(N.COMMON$MORE_OPTIONS)}),o&&(0,Z.jsx)(bc,{onClose:()=>s(!1),onRename:e=>{e.preventDefault(),e.stopPropagation(),a(`edit`),s(!1)},onDelete:p,onStop:ne?m:void 0,onDisplayCost:re?g:void 0,onShowAgentTools:ie?_:void 0,onShowSkills:ae?v:void 0,onShowHooks:oe?y:void 0,onTogglePublic:b,onCopyShareLink:x,shareUrl:C,onExportTranscript:e=>{e.preventDefault(),e.stopPropagation(),l(!0),s(!1)},onDownloadConversation:I?h:void 0,position:`bottom`,anchorRef:d})]})]}),c&&t&&(0,Z.jsx)(Xc,{conversationId:t,conversationUrl:n.conversation_url,sessionApiKey:n.session_api_key,conversationTitle:n.title,model:n.llm_model,onClose:()=>l(!1)}),(0,Z.jsx)(Pr,{isOpen:E,onClose:()=>D(!1),systemMessage:te||null}),O&&(0,Z.jsx)(Fr,{onClose:()=>k(!1)}),A&&(0,Z.jsx)(Br,{onClose:()=>j(!1)}),M&&(0,Z.jsx)(An,{onConfirm:w,onCancel:()=>P(!1),conversationTitle:n?.title||``}),F&&(0,Z.jsx)(Ln,{onConfirm:T,onCancel:()=>ee(!1)})]}):null}function Qc({children:e,tooltip:t,ariaLabel:n}){return(0,Z.jsx)(Yt,{content:t,placement:`bottom`,tooltipClassName:`bg-white text-black text-xs font-medium leading-5`,children:(0,Z.jsx)(`span`,{"data-aria-label":n,children:e})})}var $c=R(`inline-flex h-7 min-h-7 w-fit shrink-0 cursor-pointer items-center justify-center gap-1.5 px-2.5`,`rounded-md text-xs font-normal leading-none`,Gt,Wt,`text-[var(--oh-muted)]`,Kt,`disabled:cursor-not-allowed disabled:opacity-30`);function el({className:e}){let{t}=f(`openhands`),n=Ar(),{data:r}=Y(),[i,a]=(0,X.useState)(!1),o=(0,X.useRef)(null),s=r?.git_provider??`github`;(0,X.useEffect)(()=>{if(!i)return;let e=e=>{e.key===`Escape`&&a(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[i]);let c=t(N.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),l=(0,Z.jsxs)(`button`,{ref:o,type:`button`,onClick:()=>{n||a(e=>!e)},disabled:n,className:R($c,i&&`bg-white/10 text-[var(--oh-foreground)]`,n&&`cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]`,e),"aria-expanded":i,"aria-haspopup":`menu`,"aria-disabled":n,"data-testid":`conversation-git-actions-toggle`,children:[(0,Z.jsx)(lt,{className:`size-4 shrink-0`,size:16,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`whitespace-nowrap`,children:c})]});return(0,Z.jsxs)(`div`,{className:`relative inline-flex items-center self-center`,children:[n?(0,Z.jsx)(Qc,{tooltip:t(N.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES),ariaLabel:t(N.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES),children:l}):l,i?(0,Z.jsx)(cs,{anchorRef:o,gitProvider:s,onClose:()=>a(!1)}):null]})}var tl=null;function nl(){tl!==null&&(clearTimeout(tl),tl=null)}function rl(){let{isRightPanelShown:e,isOverviewPanelShown:t,setIsOverviewPanelPeeked:n}=U.getState();!e||t||(nl(),n(!0))}function il(){nl(),tl=setTimeout(()=>{tl=null,U.getState().setIsOverviewPanelPeeked(!1)},150)}function al(){nl(),U.getState().setIsOverviewPanelPeeked(!1)}function ol(){let e=U(e=>e.isRightPanelShown),t=U(e=>e.isOverviewPanelShown),n=U(e=>e.isOverviewPanelPeeked);(0,X.useEffect)(()=>{n&&(!e||t)&&al()},[n,t,e])}function sl({className:e}){let{t}=f(`openhands`),n=Ar(),{conversationId:r}=Si(),i=(0,X.useRef)(null),[a,o]=(0,X.useState)(null),{isOverviewPanelShown:s,isOverviewPanelPeeked:c,isRightPanelShown:l,setIsOverviewPanelShown:u,setHasRightPanelToggled:d,setIsRightPanelShown:p}=U();ol(),(0,X.useEffect)(()=>{l&&s&&u(!1)},[s,l,u]);let m=!n&&l&&!s,h=m&&c;(0,X.useLayoutEffect)(()=>{if(!h){o(null);return}let e=()=>{let e=i.current?.getBoundingClientRect();e&&o({top:e.bottom+4,left:Math.max(8,e.right-240)})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[h]);let g=()=>{if(!n){if(l){d(!1),p(!1),r&&dn(r,{rightPanelShown:!1}),u(!0);return}u(!s)}},_=s||h,v=t(n?N.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES:s?N.CONVERSATION$HIDE_OVERVIEW:N.CONVERSATION$SHOW_OVERVIEW),y=h&&a?os.createPortal((0,Z.jsx)(`div`,{"data-testid":`conversation-overview-peek`,className:`fixed z-50`,style:{top:a.top,left:a.left,width:240},onMouseEnter:rl,onMouseLeave:il,children:(0,Z.jsx)(`div`,{className:`shadow-lg`,children:(0,Z.jsx)(Us,{})})}),document.body):null;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:i,className:`relative inline-flex items-center self-center`,onMouseEnter:()=>{m&&rl()},onMouseLeave:()=>{(m||c)&&il()},children:(0,Z.jsx)(Qc,{tooltip:v,ariaLabel:v,children:(0,Z.jsx)(`button`,{type:`button`,onClick:g,disabled:n,className:R(Pn,`size-7`,_&&`bg-white/10 text-[var(--oh-foreground)]`,n&&`cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]`,e),"aria-label":v,"aria-pressed":s,"aria-disabled":n,"data-testid":`conversation-overview-toggle`,children:(0,Z.jsx)(gt,{className:`h-4 w-4 shrink-0`,size:16,"aria-hidden":!0})})})}),y]})}function cl({className:e}){let{t}=f(`openhands`),n=Ii(),r=Ar(),i=l(),{conversationId:a}=J(),{isRightPanelShown:o,setHasRightPanelToggled:s,setIsRightPanelShown:c,setSelectedTab:u}=U(),d=()=>{if(r)return;if(n){if(!a)return;s(!0),c(!0),dn(a,{rightPanelShown:!0});let{selectedTab:e}=U.getState();e||u(`files`),i(`/conversations/${a}/panel`);return}let e=!o;if(s(e),c(e),a&&dn(a,{rightPanelShown:e}),e){let{selectedTab:e}=U.getState();e||u(`files`)}},p=t(r?N.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES:n?N.COMMON$SHOW_PANEL:o?N.COMMON$HIDE_PANEL:N.COMMON$SHOW_PANEL),m=n?!1:o;return(0,Z.jsx)(Qc,{tooltip:p,ariaLabel:p,children:(0,Z.jsx)(`button`,{type:`button`,onClick:d,disabled:r,className:R(Pn,`size-7 self-center`,r&&`cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]`,e),"aria-label":p,"aria-pressed":m,"aria-disabled":r,"data-testid":`right-panel-toggle`,children:(0,Z.jsx)(Nn,{className:`size-5 -scale-x-100`})})})}function ll(){let{t:e}=f(`openhands`),{conversationId:t}=J(),{data:n}=Y(),{curAgentState:r}=Yr(),{isTask:i,taskStatus:a}=vr(),{mutate:o}=$t(),{mutate:s}=pc(),{providers:c}=qn(),[l,u]=X.useState(!1),[d,p]=X.useState(!1),m=X.useRef(null),h=n?.execution_status??null,g=le({isPausing:!1,isTask:i,taskStatus:a,isStartingStatus:r===L.LOADING||r===L.INIT,isStopStatus:ee(h),curAgentState:r}),_=l||d,v=()=>{u(!1),p(!1)};return(0,Z.jsxs)(`div`,{className:`flex items-center justify-between w-full`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center min-w-0`,children:[(0,Z.jsxs)(`div`,{className:`relative shrink-0`,onPointerEnter:e=>{e.pointerType===`mouse`&&p(!0)},onPointerLeave:e=>{e.pointerType===`mouse`&&p(!1)},children:[(0,Z.jsx)(`button`,{ref:m,type:`button`,"data-testid":`server-status-menu-trigger`,"aria-label":e(N.COMMON$SERVER_STATUS),"aria-expanded":_,"aria-haspopup":`menu`,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),_){v();return}u(!0)},className:R(`flex items-center justify-center rounded-md`,`text-[var(--oh-muted)] hover:bg-white/10`),children:(0,Z.jsx)(Ro,{className:`ml-[3.5px] w-6 h-6 cursor-pointer`,color:g,"aria-hidden":!0})}),_?(0,Z.jsx)(vc,{onClose:v,ignoreOutsideClickRef:m,onStopServer:he(h)?e=>{e.preventDefault(),e.stopPropagation(),t&&o({conversationId:t}),v()}:void 0,onStartServer:A(h)?e=>{e.preventDefault(),e.stopPropagation(),t&&s({conversationId:t,providers:c}),v()}:void 0,executionStatus:h,position:`bottom`,className:`bottom-full left-0 mt-0 min-h-fit`,isPausing:!1}):null]}),(0,Z.jsx)(Zc,{})]}),(0,Z.jsxs)(`div`,{className:`mr-2 flex shrink-0 items-center gap-1`,children:[(0,Z.jsx)(el,{}),(0,Z.jsx)(sl,{}),(0,Z.jsx)(cl,{})]})]})}var ul=e=>(0,Z.jsxs)(`svg`,{width:20,height:20,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,Z.jsx)(`path`,{d:`M3 10.5L6.5 14L14 6`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M7 10.5L10.5 14L18 6`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,strokeLinejoin:`round`})]}),dl=160,fl={duration:.22,ease:[.4,0,.2,1]};function pl({tabValue:e,icon:t,onClick:n,isActive:r,label:i,className:a,measureOnly:o,suppressLayoutAnimation:s=!1}){let c=De(),l=o||c||!1,u=!l&&!s,d=R(`flex items-center rounded-md cursor-pointer`,`pl-1.5 pr-2 py-1 lg:py-1.5`,`text-[var(--oh-muted)] bg-transparent`,r&&`bg-[var(--oh-interactive-active)] text-white`,r?`hover:text-white hover:bg-[var(--oh-interactive-hover)]`:`hover:text-white hover:bg-white/5`,r?`focus-within:text-white`:`focus-within:text-[var(--oh-muted)]`,a),f=(0,Z.jsx)(t,{className:R(`h-4 w-4 shrink-0 text-inherit`)}),p=i&&r?(0,Z.jsx)(`span`,{className:`whitespace-nowrap text-sm font-normal`,children:i}):null,m=i?(0,Z.jsx)(Qe.span,{initial:!1,animate:{maxWidth:r?dl:0,opacity:+!!r,marginLeft:r?8:0},transition:fl,className:`block overflow-hidden whitespace-nowrap text-sm font-normal`,"aria-hidden":!r,children:i}):null;return l?(0,Z.jsxs)(`button`,{type:`button`,onClick:n,...o?{}:{"data-testid":`conversation-tab-${e}`},"data-tab-measure":o?`true`:void 0,className:R(d,`gap-2`),children:[f,p]}):(0,Z.jsxs)(Qe.button,{layout:u?`position`:!1,type:`button`,onClick:n,...o?{}:{"data-testid":`conversation-tab-${e}`},"data-tab-measure":o?`true`:void 0,className:d,transition:u?{layout:fl}:void 0,children:[f,m]})}var ml=e=>(0,Z.jsx)(`svg`,{viewBox:`0 0 128 128`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,Z.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M90.767 127.126a7.968 7.968 0 0 0 6.35-.244l26.353-12.681a8 8 0 0 0 4.53-7.209V21.009a8 8 0 0 0-4.53-7.21L97.117 1.12a7.97 7.97 0 0 0-9.093 1.548l-50.45 46.026L15.6 32.013a5.328 5.328 0 0 0-6.807.302l-7.048 6.411a5.335 5.335 0 0 0-.006 7.888L20.796 64 1.74 81.387a5.336 5.336 0 0 0 .006 7.887l7.048 6.411a5.327 5.327 0 0 0 6.807.303l21.974-16.68 50.45 46.025a7.96 7.96 0 0 0 2.743 1.793Zm5.252-92.183L57.74 64l38.28 29.058V34.943Z`})});function hl(){let e=ve().backend;if(e.kind!==`cloud`)throw Error(`Cloud sandboxes call requires a cloud backend.`);return e}async function gl(e){if(e.length===0)return[];let t=hl(),n=new URLSearchParams;for(let t of e)n.append(`id`,t);return await Ft({backend:t,method:`GET`,path:`/api/v1/sandboxes?${n.toString()}`})??[]}var _l=e=>{let t=T(),n=t.backend.kind===`cloud`;return v({queryKey:[`cloud`,`sandbox`,t.backend.id,t.orgId,e],queryFn:async()=>{if(!e)return null;let[t]=await gl([e]);return t??null},enabled:n&&!!e,staleTime:1e3*60*5,gcTime:1e3*60*15})},vl=`__AGENT_CANVAS_VSCODE_BASE_PATH__`;function yl(){if(typeof window<`u`){let e=window[vl];if(typeof e==`string`&&e.trim())return bl(e.trim())}return null}function bl(e){let t=e.startsWith(`/`)?e:`/${e}`;return t.length>1?t.replace(/\/+$/,``):t}function xl(e,t){if(!e||!t)return!1;let n;try{n=new URL(e,typeof window<`u`?window.location.href:void 0)}catch{return!1}return typeof window<`u`&&n.origin!==window.location.origin?!1:n.pathname===t||n.pathname.startsWith(`${t}/`)}var Sl=`VSCODE`,Cl=()=>{let{t:e}=f(`openhands`),{conversationId:t}=J(),n=Ni({allowAgentError:!0}),{data:r}=Y(),i=T(),a=r?.conversation_url??null,o=r?.session_api_key??null,s=r?.sandbox_id??null,c=i.backend.kind===`cloud`,l=yl(),u=l!==null,d=_l(c?s:null),p=v({queryKey:[`unified`,`vscode_status`,`local`,t,a,o],queryFn:()=>yn.getVSCodeStatus(a,o),enabled:!c&&u&&n&&!!t,refetchOnMount:!0}),m=p.data?.enabled===!0&&p.data?.running===!0,h=v({queryKey:[`unified`,`vscode_url`,`local`,t,a,o],queryFn:async()=>{if(!t)throw Error(`No conversation ID`);return{url:kn((await yn.getVSCodeUrl(t,a,o).catch(()=>Tn.getVSCodeUrl(t))).vscode_url)}},enabled:!c&&u&&n&&!!t&&m,refetchOnMount:!0,retry:3}),g,_,y,b,x,S,C,w;if(c){let e=d.data?.exposed_urls?.find(e=>e.name===Sl)?.url??null;g=d.isSuccess?{url:kn(e)}:void 0,_=d.isLoading,y=d.isError,b=d.isSuccess,x=d.status,S=d.error,C=async()=>{let e=await d.refetch(),t=e.data?.exposed_urls?.find(e=>e.name===Sl)?.url??null;return{data:e.data?{url:kn(t)}:void 0}},w=!1}else g=h.data,_=p.isLoading||h.isLoading,y=p.isError||h.isError,b=h.isSuccess,x=h.status,S=p.error??h.error,C=async()=>({data:(await h.refetch()).data}),w=!u||p.isSuccess&&!m||b&&!h.data?.url||b&&!xl(h.data?.url,l);let E=g&&!g.url?e(N.VSCODE$URL_NOT_AVAILABLE):null;return{data:g?{...g,error:E}:void 0,error:S,isLoading:_,isError:y,isSuccess:b,isUnavailable:w,status:x,refetch:C}};function wl(){let{t:e}=f(`openhands`),{curAgentState:t}=Yr(),{data:n,refetch:r,isLoading:i,isUnavailable:a}=Cl(),o=se.includes(t);return a?null:(0,Z.jsxs)(`button`,{type:`button`,onClick:async()=>{let e=n?.url;e||=(await r()).data?.url??null,e&&window.open(e,`_blank`,`noopener,noreferrer`)},disabled:i||o,"aria-label":e(N.VSCODE$OPEN),title:e(N.VSCODE$OPEN),"data-testid":`drawer-vscode-link`,className:R(`inline-flex items-center gap-1.5 rounded-[7px] border border-[var(--oh-border)] bg-base-secondary px-2 py-1 text-xs`,`text-[var(--oh-muted)] transition-colors hover:enabled:bg-surface-raised hover:enabled:text-white`,`cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed`),children:[(0,Z.jsx)(ml,{className:`h-[15px] w-[15px] shrink-0`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{children:e(N.FILES$VSCODE)}),(0,Z.jsx)(it,{className:`h-3.5 w-3.5 shrink-0`,"aria-hidden":!0,strokeWidth:2})]})}function Tl(e){if(fi(e)&&e.observation.kind===`TaskTrackerObservation`){let t=e.observation;if(t.command===`plan`)return t.task_list.map((e,t)=>({id:String(t+1),title:e.title,status:e.status,notes:e.notes||void 0}))}return null}function El(){let e=K(e=>e.events);return(0,X.useMemo)(()=>{for(let t=e.length-1;t>=0;--t){let n=Tl(e[t]);if(n)return{taskList:n,hasTaskList:n.length>0}}return{taskList:[],hasTaskList:!1}},[e])}function Dl({isOpen:e,onClose:t,ignoreOutsideClickRef:n,anchorRef:r}){let i=Rn(t,n),[a,o]=(0,X.useState)();(0,X.useLayoutEffect)(()=>{if(!e||!r?.current){o(void 0);return}let t=()=>{let e=r.current?.getBoundingClientRect();e&&o({position:`fixed`,zIndex:9999,top:e.bottom+8,left:e.left})};return t(),window.addEventListener(`resize`,t),window.addEventListener(`scroll`,t,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t,!0)}},[e,r]);let{t:s}=f(`openhands`),{conversationId:c}=J(),{state:l,setUnpinnedTabs:u,setSelectedTab:d}=sn(c),{selectedTab:p,isRightPanelShown:m,setSelectedTab:h}=U(),{navigateToTab:g}=mi(),{hasTaskList:_}=El(),v=Ar(),y=[{tab:`planner`,icon:_t,i18nKey:N.COMMON$PLANNER},{tab:`files`,icon:qr,i18nKey:N.COMMON$FILES},{tab:`commits`,icon:dt,i18nKey:N.DIFF_VIEWER$COMMITS},{tab:`terminal`,icon:ct,i18nKey:N.COMMON$TERMINAL},{tab:`browser`,icon:mt,i18nKey:N.COMMON$BROWSER},{tab:`usage`,icon:ot,i18nKey:N.COMMON$USAGE}];_&&y.unshift({tab:`tasklist`,icon:ul,i18nKey:N.COMMON$TASK_LIST});let b=e=>{v||(g(e),t())},x=(e,t)=>{if(v){t.preventDefault(),t.stopPropagation();return}if(t.preventDefault(),t.stopPropagation(),l.unpinnedTabs.includes(e))u(l.unpinnedTabs.filter(t=>t!==e));else{let t=[...l.unpinnedTabs,e];if(u(t),p===e&&m){let n=y.find(({tab:n})=>n!==e&&!t.includes(n));n&&(h(n.tab),d(n.tab))}}};if(!e)return null;let S=!!(r?.current&&a),C=(0,Z.jsx)(Mt,{ref:i,theme:S?`popover`:`default`,position:S?`none`:`bottom`,alignment:S?`none`:`left`,spacing:S?`none`:`default`,className:R(`z-[9999] w-fit`,S?`mt-0`:`mt-2`),children:y.map(({tab:e,icon:t,i18nKey:n})=>{let r=!l.unpinnedTabs.includes(e);return(0,Z.jsx)(`li`,{className:`list-none`,children:(0,Z.jsx)(Gr,{isDisabled:v,children:(0,Z.jsxs)(`div`,{className:R(`group flex h-[30px] w-full min-w-0 items-stretch rounded`,!v&&`hover:bg-[var(--oh-interactive-hover)]`,v&&`opacity-50`),children:[(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-tabs-menu-open-${e}`,disabled:v,className:R(`flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white`,Xt,v?`cursor-not-allowed`:`cursor-pointer`),onClick:()=>b(e),children:[(0,Z.jsx)(`span`,{className:Zt,"aria-hidden":!0,children:(0,Z.jsx)(t,{className:`h-4 w-4`})}),(0,Z.jsx)(`span`,{className:`text-sm`,children:s(n)})]}),(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-tabs-menu-pin-${e}`,disabled:v,className:R(`flex shrink-0 items-center justify-center rounded-r px-2 text-white`,Xt,v?`cursor-not-allowed`:`cursor-pointer hover:bg-white/10`),"aria-pressed":r,"aria-label":s(r?N.CONVERSATION$UNPIN_TAB:N.CONVERSATION$PIN_TAB),onClick:t=>x(e,t),children:r?(0,Z.jsx)(`span`,{className:R(`-mr-[5px] ml-auto`,Zt),"aria-hidden":!0,children:(0,Z.jsx)(_s,{className:`h-7 w-7`})}):(0,Z.jsx)(`span`,{className:R(`ml-auto`,Zt),"aria-hidden":!0,children:(0,Z.jsx)(gs,{className:`h-4.5 w-4.5`})})})]})})},e)})});return S&&a&&typeof document<`u`?os.createPortal((0,Z.jsx)(`div`,{style:a,children:C}),document.body):C}function Ol({variant:e=`default`,isPanelResizing:t=!1}){let{conversationId:n}=J(),{setSelectedTab:r,planContent:i}=U(),[a,o]=(0,X.useState)(!1),{state:s}=sn(n),{hasTaskList:c}=El(),{backend:l}=T(),{handleBuildPlanClick:u}=ze(),{curAgentState:d}=Yr(),{isPlanningAgentRunning:p}=gi(),{selectTab:m,isTabActive:h,onTabChange:g,selectedTab:_,isRightPanelShown:v}=mi();(0,X.useEffect)(()=>{r(s.selectedTab)},[r,s.selectedTab]),(0,X.useEffect)(()=>{v&&(_||g(`files`))},[v,_,g]);let{t:y,i18n:b}=f(`openhands`),x=[{tabValue:`files`,isActive:h(`files`),icon:qr,onClick:()=>m(`files`),tooltipContent:y(N.COMMON$FILES),tooltipAriaLabel:y(N.COMMON$FILES),label:y(N.COMMON$FILES)},{tabValue:`commits`,isActive:h(`commits`),icon:dt,onClick:()=>m(`commits`),tooltipContent:y(N.DIFF_VIEWER$COMMITS),tooltipAriaLabel:y(N.DIFF_VIEWER$COMMITS),label:y(N.DIFF_VIEWER$COMMITS)},{tabValue:`planner`,isActive:h(`planner`),icon:_t,onClick:()=>m(`planner`),tooltipContent:y(N.COMMON$PLANNER),tooltipAriaLabel:y(N.COMMON$PLANNER),label:y(N.COMMON$PLANNER)},{tabValue:`terminal`,isActive:h(`terminal`),icon:ct,onClick:()=>m(`terminal`),tooltipContent:y(N.COMMON$TERMINAL),tooltipAriaLabel:y(N.COMMON$TERMINAL),label:y(N.COMMON$TERMINAL),className:`pl-2`},{tabValue:`browser`,isActive:h(`browser`),icon:mt,onClick:()=>m(`browser`),tooltipContent:y(N.COMMON$BROWSER),tooltipAriaLabel:y(N.COMMON$BROWSER),label:y(N.COMMON$BROWSER)},{tabValue:`usage`,isActive:h(`usage`),icon:ot,onClick:()=>m(`usage`),tooltipContent:y(N.COMMON$USAGE),tooltipAriaLabel:y(N.COMMON$USAGE),label:y(N.COMMON$USAGE)}];c&&x.splice(2,0,{tabValue:`tasklist`,isActive:h(`tasklist`),icon:ul,onClick:()=>m(`tasklist`),tooltipContent:y(N.COMMON$TASK_LIST),tooltipAriaLabel:y(N.COMMON$TASK_LIST),label:y(N.COMMON$TASK_LIST)});let S=x.filter(e=>s.unpinnedTabs.includes(e.tabValue)?_===e.tabValue:!0),C=s.unpinnedTabs.join(`,`),w=d===L.RUNNING||d===L.LOADING||p||!i,E=(0,X.useRef)(null),D=(0,X.useRef)(null),O=(0,X.useRef)(null),k=(0,X.useRef)(null),A=(0,X.useRef)(null),[j,M]=(0,X.useState)(S.length);(0,X.useLayoutEffect)(()=>{let e=E.current,t=D.current,n=O.current,r=k.current;if(!e||!t||!n||!r)return;let i=()=>{let i=t.querySelectorAll(`[data-tab-measure="true"]`),a=i.length,o=e.getBoundingClientRect().width;if(o===0){M(a);return}let s=Array.from(i).map(e=>e.getBoundingClientRect().width);if(s.length!==a||a===0){M(Math.max(0,a));return}let c=n.getBoundingClientRect().width,l=r.getBoundingClientRect().width,u=getComputedStyle(e).columnGap||getComputedStyle(e).gap,d=parseFloat(u)||6,f=0;for(let e=a;e>=0;--e){let t=c+l;for(let n=0;n<e;n+=1)t+=s[n]??0;if(e>0&&(t+=e*d),t<=o+.5){f=e;break}}M(e=>e===f?e:f)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(e),a.observe(r),()=>a.disconnect()},[C,S.length,c,l.kind,_,v,b.language]);let P=Math.min(j,S.length);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:R(`relative w-full min-w-0`,e===`compact`?`flex h-full min-h-0 items-center py-0 pl-0 pr-1`:`min-h-10 p-1`),children:[(0,Z.jsx)(`div`,{ref:D,"aria-hidden":!0,className:`pointer-events-none absolute top-0 left-[-10000px] flex flex-nowrap items-center gap-1.5`,children:S.map(({tabValue:e,icon:t,isActive:n,tooltipContent:r,tooltipAriaLabel:i,label:a,className:o},s)=>(0,Z.jsx)(Qc,{tooltip:r,ariaLabel:i,children:(0,Z.jsx)(pl,{tabValue:e,icon:t,onClick:()=>{},isActive:n,label:a,className:R(o,`shrink-0`),measureOnly:!0})},`measure-${e}-${s}`))}),(0,Z.jsxs)(`div`,{ref:E,className:`flex w-full min-w-0 flex-nowrap items-center justify-start`,children:[(0,Z.jsx)(`div`,{className:`flex min-w-0 flex-1 items-center justify-start overflow-hidden`,children:(0,Z.jsxs)(`div`,{className:`flex w-fit max-w-full min-w-0 items-center gap-1.5`,children:[(0,Z.jsx)(ft,{id:`conversation-drawer-tabs`,children:(0,Z.jsx)(`div`,{className:`flex w-fit max-w-full min-w-0 flex-nowrap items-center gap-1.5 overflow-x-hidden`,children:S.slice(0,P).map(({tabValue:e,icon:n,onClick:r,isActive:i,tooltipContent:a,tooltipAriaLabel:o,label:s,className:c},l)=>(0,Z.jsx)(Qc,{tooltip:a,ariaLabel:o,children:(0,Z.jsx)(pl,{tabValue:e,icon:n,onClick:r,isActive:i,label:s,className:R(c,`shrink-0`),suppressLayoutAnimation:t})},`${e}-${l}`))})}),(0,Z.jsxs)(`div`,{ref:O,className:`relative shrink-0`,children:[(0,Z.jsx)(Hn,{ref:A,onClick:()=>o(!a),ariaLabel:y(N.COMMON$MORE_OPTIONS),iconClassName:e===`compact`?jn:void 0}),(0,Z.jsx)(Dl,{isOpen:a,onClose:()=>o(!1),ignoreOutsideClickRef:A,anchorRef:A})]})]})}),(0,Z.jsx)(`div`,{ref:k,className:`ml-auto shrink-0 pr-1`,children:(0,Z.jsx)(wl,{})})]})]}),h(`planner`)&&(0,Z.jsx)(`div`,{className:R(`flex h-10 min-h-10 shrink-0 items-center border-t border-[var(--oh-border)] pl-[10px] pr-1`),children:(0,Z.jsx)(`button`,{type:`button`,onClick:u,disabled:w,className:R(`flex h-5 min-w-17 items-center justify-center rounded bg-white px-2 transition-opacity`,w?`cursor-not-allowed opacity-50`:`cursor-pointer hover:opacity-90`),"data-testid":`planner-tab-build-button`,children:(0,Z.jsxs)($n.Text,{className:`text-[11px] font-normal leading-5 text-black`,children:[y(N.COMMON$BUILD),` ⌘↩`]})})})]})}function kl({onMouseDown:e,className:t,isDragging:n=!1,testId:r}){let[i,a]=(0,X.useState)(!1),o=n||i;return(0,Z.jsxs)(`div`,{"data-testid":r,className:R(`relative z-10 w-0 shrink-0 self-stretch`,t),"aria-hidden":!0,children:[(0,Z.jsx)(`div`,{className:`absolute inset-y-0 left-1/2 w-3 min-w-[12px] -translate-x-1/2 cursor-ew-resize`,onMouseDown:e,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)}),(0,Z.jsx)(`div`,{className:R(`pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 transition-colors`,o?`bg-white`:`bg-transparent`),"aria-hidden":!0})]})}var Al=200;function jl({defaultLeftWidth:e=50,minLeftWidth:t=30,maxLeftWidth:n=80,storageKey:r=`desktop-layout-panel-width`}={}){let[i,a]=st(r,e),o=(0,X.useCallback)(e=>Math.max(t,Math.min(n,e)),[t,n]),[s,c]=(0,X.useState)(()=>o(i)),[l,u]=(0,X.useState)(!1),d=(0,X.useRef)(null),f=(0,X.useCallback)(e=>{e.preventDefault(),u(!0)},[]),p=(0,X.useCallback)(e=>{if(!l||!d.current)return;let t=d.current.getBoundingClientRect();c(o((e.clientX-t.left)/t.width*100))},[l,o]),m=(0,X.useCallback)(()=>{l&&(u(!1),a(s))},[l,s,a]);return(0,X.useLayoutEffect)(()=>{if(!l)return;let e=document.createElement(`div`);return e.setAttribute(`aria-hidden`,`true`),e.dataset.panelDragShield=``,Object.assign(e.style,{position:`fixed`,inset:`0`,zIndex:String(Al),cursor:`ew-resize`}),document.body.appendChild(e),document.addEventListener(`mousemove`,p),document.addEventListener(`mouseup`,m),document.body.style.cursor=`ew-resize`,document.body.style.userSelect=`none`,()=>{document.removeEventListener(`mousemove`,p),document.removeEventListener(`mouseup`,m),document.body.style.cursor=``,document.body.style.userSelect=``,e.remove()}},[l,p,m]),{leftWidth:s,rightWidth:100-s,isDragging:l,containerRef:d,handleMouseDown:f}}var Ml=200;function Nl({containerRef:e,defaultWidth:t,minWidth:n,maxWidth:r,storageKey:i,enabled:a=!0,edge:o=`right`}){let[s,c]=st(i,t),l=(0,X.useCallback)(e=>Math.max(n,Math.min(r,e)),[n,r]),[u,d]=(0,X.useState)(()=>l(s)),[f,p]=(0,X.useState)(!1),m=(0,X.useRef)(u);m.current=u;let h=(0,X.useCallback)(e=>{a&&(e.preventDefault(),p(!0))},[a]),g=(0,X.useCallback)(t=>{if(!f||!e.current)return;let n=e.current.getBoundingClientRect();d(l(o===`left`?t.clientX-n.left:n.right-t.clientX))},[l,e,o,f]),_=(0,X.useCallback)(()=>{f&&(p(!1),c(m.current))},[f,c]);return(0,X.useLayoutEffect)(()=>{if(!f)return;let e=document.createElement(`div`);return e.setAttribute(`aria-hidden`,`true`),e.dataset.panelDragShield=``,Object.assign(e.style,{position:`fixed`,inset:`0`,zIndex:String(Ml),cursor:`ew-resize`}),document.body.appendChild(e),document.addEventListener(`mousemove`,g),document.addEventListener(`mouseup`,_),document.body.style.cursor=`ew-resize`,document.body.style.userSelect=`none`,()=>{document.removeEventListener(`mousemove`,g),document.removeEventListener(`mouseup`,_),document.body.style.cursor=``,document.body.style.userSelect=``,e.remove()}},[g,_,f]),{drawerWidth:u,isDragging:f,handleMouseDown:h}}var Pl=()=>void 0;function Fl({openAdd:e}){let{t}=f(`openhands`),[n,r]=(0,X.useState)(e),{data:i,isLoading:a,refetch:o}=Yn(),{data:s,isLoading:c,isError:l,refetch:u}=Xn({limit:50,offset:0,enabled:i?.status===`ok`});(0,X.useEffect)(()=>{e&&r(!0)},[e]);let d;return d=a||i?.status===`ok`&&c?(0,Z.jsx)(et,{}):i?.status===`ok`?l?(0,Z.jsx)(Ri,{onRetry:u}):s?.automations.length?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(nt,{title:t(N.CONVERSATION_PANEL$AUTOMATIONS),count:s.automations.length,automations:s.automations,view:`list`,onToggle:Pl,onRunNow:Pl,onDelete:Pl,onExport:Pl}),(0,Z.jsx)(tt,{isOpen:n,onClose:()=>r(!1)})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(rt,{}),(0,Z.jsx)(tt,{isOpen:n,onClose:()=>r(!1)})]}):(0,Z.jsx)(Li,{onRetry:o}),(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-automations-panel`,children:d})}var Il={project:`project`,all:`all`};function Ll(e,t){return Ai(e,t)===`project`}function Rl(e,t,n){return t===Il.all?e:e.filter(e=>Ll(e,n))}function zl(e,t){return[...e].sort((e,n)=>{let r=Ai(e,t),i=Ai(n,t),a=ji.indexOf(r),o=ji.indexOf(i);return a===o?e.name.localeCompare(n.name):a-o})}function Bl({value:e,onChange:t,testId:n}){let{t:r}=f(`openhands`);return(0,Z.jsx)(`div`,{className:`flex w-full justify-center [&>[role=radiogroup]]:w-full`,children:(0,Z.jsx)(ht,{value:e,onChange:t,ariaLabel:r(N.CONVERSATION$OVERVIEW_SCOPE_FILTER),testId:n,options:[{value:Il.project,label:r(N.CONVERSATION$OVERVIEW_SCOPE_PROJECT)},{value:Il.all,label:r(N.CONVERSATION$OVERVIEW_SCOPE_ALL)}]})})}function Vl({openAdd:e}){let{t}=f(`openhands`),{isLoading:n}=zt(),{data:r}=Y(),{data:i,isLoading:a}=_r(),{isEnabled:o,setEnabled:s}=ki(),c=as()?.addRequestKey??0,l=r?.selected_workspace??null,[u,d]=(0,X.useState)(Il.project),[p,m]=(0,X.useState)(kt),[h,g]=(0,X.useState)(!1),[_,v]=(0,X.useState)(null),[y,b]=(0,X.useState)(!1);(0,X.useEffect)(()=>{e&&b(!0)},[e]),(0,X.useEffect)(()=>{c!==0&&b(!0)},[c]);let x=(0,X.useMemo)(()=>{if(!i)return[];let e=Rl(i,u,l);return u===Il.all?zl(e,l):e},[i,u,l]),S=(0,X.useMemo)(()=>Et(x,o,p),[x,o,p]);return a||n?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`text-sm text-muted`,children:`…`}):!i||i.length===0?(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-empty`,className:tr,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(N.SETTINGS$SKILLS_NO_SKILLS)})}),y?(0,Z.jsx)(St,{onClose:()=>b(!1)}):null]}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(Bl,{value:u,onChange:d,testId:`conversation-overview-skills-scope`}),(0,Z.jsx)(xt,{search:p.query,onSearchChange:e=>m(t=>({...t,query:e})),activeFilterCount:yt(p),onOpenFilters:()=>g(!0)}),x.length===0?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-project-empty`,className:tr,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(N.CONVERSATION$OVERVIEW_SCOPE_PROJECT_EMPTY_SKILLS)})}):S.length===0?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-no-match`,className:tr,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(N.SETTINGS$SKILLS_NO_MATCH)})}):(0,Z.jsx)(`section`,{className:R(`flex min-w-0 flex-col gap-3`,er),children:(0,Z.jsx)(`div`,{className:R(nr,`grid-cols-1`),children:S.map(e=>(0,Z.jsx)(Tt,{skill:e,enabled:o(e),onOpen:()=>v(e),onToggle:t=>s(e.name,t)},e.name))})}),_?(0,Z.jsx)(Dt,{skill:_,enabled:o(_),onToggle:e=>s(_.name,e),onClose:()=>v(null)}):null,y?(0,Z.jsx)(St,{onClose:()=>b(!1)}):null,h?(0,Z.jsx)(wt,{groups:Ot(x,o,p),activeCount:yt(p),onToggle:(e,t)=>m(n=>bt(n,e,t)),onClearAll:()=>m(e=>Ct(e)),onClose:()=>g(!1)}):null]})}function Hl({openAdd:e}){let{t}=f(`openhands`),{data:n,isLoading:r}=zt(),{mutate:i,isPending:a}=Hi(),{mutate:o}=zi(),s=as()?.addRequestKey??0,[c,l]=(0,X.useState)(null),[u,d]=(0,X.useState)(null),[p,m]=(0,X.useState)(null),[h,g]=(0,X.useState)(``),[_,v]=(0,X.useState)(`all`);(0,X.useEffect)(()=>{e&&d({id:``,type:`sse`})},[e]),(0,X.useEffect)(()=>{s!==0&&d({id:``,type:`sse`})},[s]);let y=ar(Rt(n?.agent_settings?.mcp_config)),b=sr(lr),x=y.filter(e=>or(e,cr(e,b),h));return r||!n?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-mcp-panel`,className:`text-sm text-muted`,children:`…`}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-mcp-panel`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(Wi,{search:h,onSearchChange:g,sectionFilter:_,onSectionFilterChange:v}),_===`library`?null:(0,Z.jsxs)(`section`,{className:`flex flex-col gap-3`,children:[(0,Z.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:t(N.MCP$INSTALLED_TITLE)}),(0,Z.jsx)(Bi,{servers:x,hasAnyInstalled:y.length>0,query:h,onEdit:d,onToggleEnabled:(e,t)=>{o({serverId:e.id,server:{...e,enabled:t}})}})]}),_===`installed`?null:(0,Z.jsx)(Ui,{onSelect:l,onAdd:l,query:h}),c?(0,Z.jsx)(Gn,{entry:c,existingServers:y,onClose:()=>l(null)}):null,u?(0,Z.jsx)(Vi,{server:u,existingServers:y,onClose:()=>d(null)}):null,p?(0,Z.jsx)(mn,{text:t(N.SETTINGS$MCP_CONFIRM_DELETE),onCancel:()=>m(null),onConfirm:()=>{p&&i(p,{onSuccess:()=>{S(t(N.MCP$REMOVE_SUCCESS)),m(null)},onError:e=>{D(C(e)||t(N.ERROR$GENERIC)),m(null)}})},isConfirming:a}):null]})}function Ul({openAdd:e}){let t=d(),{t:n}=f(`openhands`),r=as()?.addRequestKey??0,{data:i,isLoading:a}=ir(),{mutate:o,isPending:s}=Gi(),[c,l]=(0,X.useState)(`list`),[u,p]=(0,X.useState)(null);(0,X.useEffect)(()=>{e&&l(`add-secret-form`)},[e]),(0,X.useEffect)(()=>{r!==0&&l(`add-secret-form`)},[r]);let m=()=>{t.invalidateQueries({queryKey:[`secrets-search`]}),t.invalidateQueries({queryKey:[`secrets`]})};return c===`add-secret-form`?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-secrets-add-form`,className:`flex h-full min-h-0 flex-col overflow-y-auto p-4`,children:(0,Z.jsx)(Ki,{mode:`add`,selectedSecret:null,onCancel:()=>l(`list`)})}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-secrets-panel`,className:`flex h-full min-h-0 flex-col`,children:[(0,Z.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-2 py-2`,children:a?(0,Z.jsx)(`p`,{className:`px-2 py-4 text-sm text-[var(--oh-muted)]`,children:n(N.HOME$LOADING)}):i&&i.length>0?(0,Z.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:i.map(e=>(0,Z.jsxs)(`li`,{"data-testid":`conversation-overview-secret-item`,className:`group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-white/5`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsx)(`p`,{className:`truncate text-sm text-[var(--oh-foreground)]`,children:e.name}),e.description?(0,Z.jsx)(`p`,{className:`truncate text-xs text-[var(--oh-muted)]`,children:e.description}):null]}),(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-overview-secret-delete-${e.name}`,"aria-label":n(N.BUTTON$DELETE),onClick:()=>p(e.name),className:R(`shrink-0 rounded-md p-1 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100`,`hover:bg-white/10 hover:text-[var(--oh-foreground)]`),children:(0,Z.jsx)(jt,{className:`size-3.5`,"aria-hidden":!0})})]},e.name))}):(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-secrets-empty`,className:R(tr,`px-2 py-6 text-center text-sm`),children:n(N.SECRETS$EMPTY)})}),u?(0,Z.jsx)(mn,{text:n(N.SECRETS$CONFIRM_DELETE_KEY),isConfirming:s,onCancel:()=>p(null),onConfirm:()=>{o(u,{onSettled:()=>p(null),onSuccess:m,onError:m})}}):null]})}var Wl=R(`size-3.5 shrink-0 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100`);function Gl(e){let{repository:t,provider:n}=Go();return!t||!n?null:e===Q.pull_requests?As.constructPullRequestsListUrl(n,t):As.constructIssuesListUrl(n,t)}function Kl({kind:e}){let{t}=f(`openhands`),{provider:n}=Go(),r=Gl(e);return!r||!n?null:(0,Z.jsxs)(`a`,{href:r,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-${e}-open-external`,className:R(`inline-flex h-7 min-h-7 shrink-0 items-center gap-1.5 whitespace-nowrap`,`px-1 text-xs text-[var(--oh-muted)] transition-colors`,`hover:text-[var(--oh-foreground)]`),children:[t(N.CONVERSATION$OVERVIEW_VIEW_ON_PROVIDER,{provider:fe(n)}),(0,Z.jsx)(it,{className:`size-3.5`,"aria-hidden":!0})]})}function ql({kind:e}){let{t}=f(`openhands`),{repository:n,provider:r,isConnected:i}=Go(),a=js(n,r),o=Ms(n,r),s=e===Q.pull_requests?a:o;return!i||!n||!r?(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-git-items-unavailable`,className:R(tr,`px-4 py-6 text-center text-sm`),children:t(N.CONVERSATION$OVERVIEW_GIT_UNAVAILABLE)}):(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-${e}-panel`,className:`min-h-0 flex-1 overflow-y-auto px-2 py-2`,children:s.isLoading?(0,Z.jsx)(`p`,{className:`px-2 py-4 text-sm text-[var(--oh-muted)]`,children:t(N.HOME$LOADING)}):s.isError?(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-${e}-error`,className:R(tr,`px-2 py-6 text-center text-sm`),children:t(N.CONVERSATION$OVERVIEW_GIT_ITEMS_ERROR)}):s.data&&s.data.length>0?(0,Z.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:s.data.map(t=>(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(`a`,{href:t.url,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-${e}-item-${t.number}`,className:R(`group flex min-w-0 items-center gap-2 rounded-md px-2 py-2`,`transition-colors hover:bg-white/5`),children:[(0,Z.jsxs)(`span`,{className:`shrink-0 text-sm tabular-nums text-[var(--oh-muted)]`,children:[`#`,t.number]}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:t.title}),(0,Z.jsx)(it,{className:Wl,"aria-hidden":!0})]})},t.id))}):(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-${e}-empty`,className:R(tr,`px-2 py-6 text-center text-sm`),children:e===Q.pull_requests?t(N.CONVERSATION$OVERVIEW_PULL_REQUESTS_EMPTY):t(N.CONVERSATION$OVERVIEW_ISSUES_EMPTY)})})}var Jl=R(`flex h-10 min-h-10 shrink-0 items-center gap-1.5`,`border-b border-[var(--oh-border)] py-1 pl-1 pr-4`),Yl=R(`h-7 min-h-7 shrink-0 whitespace-nowrap px-2.5 text-xs`),Xl=R(`inline-flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md`,`text-muted transition-colors hover:bg-white/10 hover:text-white`);function Zl(e){switch(e){case Q.automations:return N.CONVERSATION_PANEL$AUTOMATIONS;case Q.skills:return N.SETTINGS$NAV_SKILLS;case Q.mcp:return N.CONVERSATION$OVERVIEW_MCP;case Q.secrets:return N.SETTINGS$NAV_SECRETS;case Q.pull_requests:return N.CONVERSATION$OVERVIEW_PULL_REQUESTS;case Q.issues:return N.CONVERSATION$OVERVIEW_ISSUES;default:return e}}function Ql({section:e}){let{t}=f(`openhands`),{requestAdd:n}=is();switch(e){case Q.automations:return(0,Z.jsx)(qt,{type:`button`,variant:`primary`,testId:`conversation-overview-automations-add`,className:Yl,onClick:n,children:t(N.AUTOMATIONS$ADD_AUTOMATION)});case Q.skills:return(0,Z.jsx)(qt,{type:`button`,variant:`primary`,testId:`conversation-overview-skills-add-skill-button`,className:Yl,onClick:n,children:t(N.SETTINGS$SKILLS_ADD_BUTTON)});case Q.mcp:return(0,Z.jsx)(qt,{type:`button`,variant:`secondary`,testId:`conversation-overview-mcp-add-server`,className:Yl,onClick:n,children:t(N.MCP$ADD_CUSTOM)});case Q.secrets:return(0,Z.jsx)(qt,{type:`button`,variant:`primary`,testId:`conversation-overview-secrets-add-button`,className:Yl,onClick:n,children:t(N.SECRETS$ADD_NEW_SECRET)});case Q.pull_requests:return(0,Z.jsx)(Kl,{kind:`pull_requests`});case Q.issues:return(0,Z.jsx)(Kl,{kind:`issues`});default:return null}}function $l({section:e,openAdd:t}){switch(e){case Q.automations:return(0,Z.jsx)(Fl,{openAdd:t});case Q.skills:return(0,Z.jsx)(Vl,{openAdd:t});case Q.mcp:return(0,Z.jsx)(Hl,{openAdd:t});case Q.secrets:return(0,Z.jsx)(Ul,{openAdd:t});case Q.pull_requests:return(0,Z.jsx)(ql,{kind:`pull_requests`});case Q.issues:return(0,Z.jsx)(ql,{kind:`issues`});default:return e}}function eu({className:e}){let{t}=f(`openhands`),{section:n,openAdd:r,closeDrawer:i}=is(),{workspaceName:a}=Wo();if((0,X.useEffect)(()=>{if(!n)return;let e=e=>{e.key===`Escape`&&i()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,n]),!n)return null;let o=n===Q.pull_requests||n===Q.issues||n===Q.secrets;return(0,Z.jsxs)(`aside`,{"data-testid":`conversation-overview-drawer-content`,"aria-label":t(Zl(n)),className:R(`flex h-full w-full min-h-0 flex-col overflow-hidden bg-base-secondary`,e),children:[(0,Z.jsxs)(`header`,{className:Jl,children:[(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-overview-drawer-close`,"aria-label":t(N.BUTTON$CLOSE),onClick:i,className:Xl,children:(0,Z.jsx)(ur,{className:`size-4`,"aria-hidden":!0})}),(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[(0,Z.jsx)(`h2`,{className:`truncate text-sm font-medium text-content`,children:t(Zl(n))}),a?(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-drawer-workspace`,className:`truncate text-xs text-muted`,children:a}):null]}),(0,Z.jsx)(`div`,{className:`shrink-0`,children:(0,Z.jsx)(Ql,{section:n})})]}),(0,Z.jsx)(`div`,{className:R(`min-h-0 flex-1 custom-scrollbar-always`,o?`flex flex-col overflow-hidden`:`overflow-y-auto px-4 py-4`),children:(0,Z.jsx)($l,{section:n,openAdd:r})})]})}var tu=`conversation-overview-drawer-width`,nu=`conversation-overview-drawer-resize-handle`,ru=`conversation-overview-drawer`;function iu(e){return e?`translate-x-0 opacity-100`:`w-0 translate-x-full opacity-0`}function au({isMobile:e,resizeContainerRef:t}){let n=as(),r=!!n?.section,{drawerWidth:i,isDragging:a,handleMouseDown:o}=Nl({containerRef:t??{current:null},defaultWidth:420,minWidth:300,maxWidth:640,storageKey:tu,enabled:r&&!e&&t!=null});return n?e?r?(0,Z.jsx)(eu,{className:`max-h-[min(50vh,420px)] w-full border-t border-[var(--oh-border)]`}):null:(0,Z.jsxs)(Z.Fragment,{children:[r&&t?(0,Z.jsx)(`div`,{"data-testid":nu,children:(0,Z.jsx)(kl,{onMouseDown:o,isDragging:a})}):null,(0,Z.jsx)(`div`,{"data-testid":ru,"aria-hidden":!r,className:R(`shrink-0 overflow-hidden ease-in-out`,a?`transition-[transform,opacity] duration-300`:`transition-all duration-300`,iu(r)),style:{width:r?`${i}px`:`0px`,transitionProperty:a?`transform, opacity`:`width, transform, opacity`},children:(0,Z.jsx)(`div`,{className:`flex h-full flex-col overflow-hidden border-l border-[var(--oh-border)] bg-base-secondary`,style:{width:`${i}px`},children:r?(0,Z.jsx)(eu,{className:`h-full`}):null})})]}):null}function ou(e){return e?`translate-x-0 opacity-100`:`w-0 translate-x-full opacity-0`}function su(){let e=Ii(),t=Ii(767),{isRightPanelShown:n}=U(),r=!!as()?.section,{leftWidth:i,rightWidth:a,isDragging:o,containerRef:s,handleMouseDown:c}=jl({defaultLeftWidth:50,minLeftWidth:30,maxLeftWidth:80,storageKey:`desktop-layout-panel-width`});return(0,Z.jsx)(`div`,{className:R(e?`relative min-h-0 flex-1 flex flex-col`:`h-full flex flex-col overflow-hidden`),children:(0,Z.jsxs)(`div`,{ref:s,className:R(`flex flex-1 overflow-hidden`,e?`flex-col`:`transition-all duration-300 ease-in-out`),style:e?void 0:{transitionProperty:o?`none`:`all`},children:[(0,Z.jsxs)(`div`,{className:R(`flex flex-col bg-base overflow-hidden`,e?`flex-1`:R(`min-w-0`,!r&&`transition-[width] duration-300 ease-in-out`)),style:e?void 0:{width:n?`${i}%`:`100%`,transitionProperty:o||r?`none`:`width`},children:[(0,Z.jsxs)(`div`,{"data-testid":`chat-pane-header`,className:R(`flex h-10 min-h-10 shrink-0 items-center`,t&&`gap-2 pl-2.5`),children:[t?(0,Z.jsx)(In,{}):null,(0,Z.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Z.jsx)(ll,{})})]}),(0,Z.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,Z.jsx)(Ys,{isRightPanelShown:!e&&n})})]}),!e&&n&&(0,Z.jsx)(kl,{onMouseDown:c,isDragging:o}),!e&&(0,Z.jsx)(`div`,{className:R(`transition-all duration-300 ease-in-out overflow-hidden`,ou(n)),style:{width:n?`${a}%`:`0%`,transitionProperty:o?`opacity, transform`:`all`},children:(0,Z.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:(0,Z.jsxs)(`div`,{className:`flex flex-col flex-1 min-h-0 bg-[var(--oh-surface)] border-l border-[var(--oh-border)] overflow-hidden`,children:[(0,Z.jsx)(`div`,{"data-testid":`tabs-pane-header`,className:`flex shrink-0 flex-col border-b border-[var(--oh-border)]`,children:(0,Z.jsx)(Ol,{isPanelResizing:o})}),(0,Z.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,Z.jsx)(fc,{})})]})})}),(0,Z.jsx)(au,{isMobile:e,resizeContainerRef:s})]})})}function cu({onNavigateBack:e}){let{t}=f(`openhands`),{setIsRightPanelShown:n,setHasRightPanelToggled:r,setSelectedTab:i}=U();return X.useLayoutEffect(()=>(n(!0),r(!0),U.getState().selectedTab||i(`files`),()=>{n(!1),r(!1)}),[n,r,i]),(0,Z.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col bg-[var(--oh-surface)]`,children:[(0,Z.jsxs)(`div`,{"data-testid":`conversation-mobile-panel-top`,className:`flex h-10 min-h-10 shrink-0 items-center gap-1.5 border-b border-[var(--oh-border)] pl-2.5`,children:[(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-mobile-panel-back`,onClick:()=>{e()},"aria-label":t(N.COMMON$BACK),className:Pn,children:(0,Z.jsx)(Ze,{size:20,className:jn,"aria-hidden":!0,strokeWidth:2})}),(0,Z.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 items-center self-stretch`,children:(0,Z.jsx)(`div`,{"data-testid":`tabs-pane-header`,className:`flex h-full min-h-0 w-full min-w-0 flex-col justify-center`,children:(0,Z.jsx)(Ol,{variant:`compact`})})})]}),(0,Z.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col bg-[var(--oh-surface)]`,children:(0,Z.jsx)(fc,{})})]})}function lu({children:e,conversationId:t}){let{data:n}=Y(),{backend:r}=T(),i=r.kind!==`cloud`,a=U(e=>e.localPlanningConversationId),o=n?.id===t?a:null,s=X.useMemo(()=>i?n?.sub_conversation_ids&&n.sub_conversation_ids.length>0?n.sub_conversation_ids:o?[o]:[]:n?.sub_conversation_ids??[],[i,n?.sub_conversation_ids,o]),{data:c}=Cr(s),l=X.useMemo(()=>i?vn(c,n?.id):null,[i,c,n?.id]),u=X.useMemo(()=>i?l?[l]:o?[o]:[]:s,[i,s,l,o]),d=c?.filter(e=>e!==null&&u.includes(e.id));return(0,Z.jsx)(Ci,{conversationId:t,conversationUrl:n?.sandbox_status===`PAUSED`?null:n?.conversation_url,sessionApiKey:n?.session_api_key,subConversationIds:u,subConversations:d,children:e})}function uu(){let{t:e}=f(`openhands`),{conversationId:t}=J(),n=c(`/conversations/:conversationId/panel`),{isTask:r,taskStatus:i,taskDetail:a}=yr(),o=T(),u=X.useRef(o.backend.id),d=X.useRef(o.orgId),p=u.current!==o.backend.id||d.current!==o.orgId,{data:m,isFetched:h}=Y(),{data:g}=bn(),{resetConversationState:_}=U(),v=l(),y=s(),b=Ei(e=>e.clearTerminal),x=En(e=>e.reset),S=Ji(e=>e.setCurrentAgentState),C=Qr(e=>e.removeErrorMessage);X.useEffect(()=>{b(),_(),x(),S(L.LOADING),C()},[t,b,_,x,S,C]),X.useEffect(()=>{if(r&&i===`ERROR`){D(a||e(N.CONVERSATION$FAILED_TO_START_FROM_TASK));let t=y.state?.resumedFromConversationId;v(t?`/conversations/${t}`:`/conversations`,{replace:!0})}},[r,i,a,e,v,y.state]),X.useEffect(()=>{!h||!g||p||m||(ea(o.backend.id,o.orgId),D(e(N.CONVERSATION$NOT_EXIST_OR_NO_PERMISSION)),v(`/conversations`))},[m,h,g,v,e,p,o.backend.id,o.orgId]),X.useEffect(()=>{p||t&&(t.startsWith(`task-`)||$i(o.backend.id,o.orgId,t))},[t,p,o.backend.id,o.orgId]);let w=X.useRef(null);return X.useEffect(()=>{!h||!m||o.backend.kind===`cloud`&&m.sandbox_status===`PAUSED`&&m.sandbox_id&&w.current!==m.id&&(w.current=m.id,gn(m.sandbox_id).catch(()=>{D(e(N.CONVERSATION$FAILED_TO_START_FROM_TASK))}))},[h,m?.id,m?.sandbox_status,m?.sandbox_id,o.backend.kind,e]),p?null:(0,Z.jsx)(lu,{conversationId:t,children:(0,Z.jsx)(oa,{children:(0,Z.jsx)(rs,{children:(0,Z.jsx)(`div`,{"data-testid":`app-route`,className:`flex h-full flex-col`,children:n?(0,Z.jsx)(cu,{onNavigateBack:()=>v(`/conversations/${t}`)}):(0,Z.jsx)(su,{})})})})})}function du(){return(0,Z.jsx)(uu,{})}var fu=u(du);export{Ns as a,to as c,El as i,Ja as l,Nl as n,Xo as o,kl as r,Yo as s,fu as t,Ya as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./conversation-BnjJSFf5.js";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./conversation-BnjJSFf5.js";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./rolldown-runtime-Cyuzqnbw.js";import{St as e,yt as t}from"./vendor-styling-Ck5D_A2Q.js";import{E as n,c as r,n as i,r as a,x as o}from"./agent-server-client-options-BikiNwTa.js";import{l as s,y as c}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js";import{a as l,i as u}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-CnsDDzeE.js";import{_ as d}from"./conversation-store-DVVfkCsk.js";import{A as f,E as p,S as m,t as h,v as g}from"./agent-server-conversation-service.api-DYFsNHKf.js";var _=async e=>{let t=(await h.batchGetAppConversations([e]))[0];if(!t)throw Error(`V1 conversation not found: ${e}`);return{conversationUrl:t.conversation_url,sessionApiKey:t.session_api_key,sandboxId:t.sandbox_id}},v=async e=>{let{conversationUrl:t,sessionApiKey:n,sandboxId:a}=await _(e);if(r().backend.kind===`cloud`){if(!a)throw Error(`Cannot stop runtime: cloud conversation ${e} has no sandbox_id.`);return await m(a),{success:!0}}return new c(i({conversationUrl:t,sessionApiKey:n})).interruptConversation(e)},y=async(e,t)=>{let{conversationUrl:n,sessionApiKey:r}=await _(e);return new c(i({conversationUrl:n,sessionApiKey:r})).askAgent(e,t)},b=async(e,t)=>{let{conversationUrl:n,sessionApiKey:r}=await _(e);await new c(i({conversationUrl:n,sessionApiKey:r})).startGoal(e,t)},x=async e=>{let{conversationUrl:t,sessionApiKey:n}=await _(e);await new c(i({conversationUrl:t,sessionApiKey:n})).stopGoal(e)},S=async e=>{let{conversationUrl:t,sessionApiKey:n}=await _(e);await new c(i({conversationUrl:t,sessionApiKey:n})).resumeGoal(e)},C=async e=>{let{conversationUrl:t,sessionApiKey:n}=await _(e);return new c(i({conversationUrl:t,sessionApiKey:n})).runConversation(e)},w=(e,t,n)=>{e.setQueriesData({queryKey:[`user`,`conversation`,t]},e=>e&&{...e,...n}),e.setQueriesData({queryKey:[`user`,`conversations`]},e=>e&&{...e,pages:e.pages.map(e=>({...e,items:e.items.map(e=>e.id===t?{...e,...n}:e)}))})},T=(e,t,n)=>w(e,t,{execution_status:n}),E=(e,t,n)=>w(e,t,{llm_model:n}),D=(e,t)=>{e.invalidateQueries({queryKey:[`user`,`conversation`,t]}),e.invalidateQueries({queryKey:[`user`,`conversations`]}),e.invalidateQueries({queryKey:[`v1-batch-get-app-conversations`]}),e.invalidateQueries({queryKey:[`unified`,`vscode_url`]})},O=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function k(e){let t=e.split(/[\\/]+/).filter(Boolean),n=t[t.length-1];if(!n||n===`.`||n===`..`)throw Error(`Invalid file name`);return n}async function A(e,t={}){return f(e,t)}async function j(e,t,n={}){let r=k(e);return`${(await A(t,n)).replace(/[/\\]+$/,``)}/${r}`}async function M(e,t){if(t?.id===e&&t.workspace?.working_dir?.trim())return t.workspace.working_dir.trim();let r=p(e);return r?.selected_workspace?.trim()?r.selected_workspace.trim():O.test(e)?h.resolveConversationWorkingDir(e):n()}var N=5;async function P(e,t){if(t?.id===e&&t.conversation_url?.trim()&&t.session_api_key?.trim())return{conversationUrl:t.conversation_url.trim(),sessionApiKey:t.session_api_key.trim()};if(r().backend.kind===`cloud`){let[t]=await g([e]);return{conversationUrl:t?.conversation_url?.trim()??null,sessionApiKey:t?.session_api_key?.trim()??null}}return{conversationUrl:null,sessionApiKey:null}}function F(e){if(!e.conversationUrl||!e.sessionApiKey)throw Error(`Conversation sandbox is still starting. Wait for it to finish, then try again.`);return{conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey}}async function I(e,t,n){let i=await M(e,n),a=await P(e,n),o=r().backend.kind===`cloud`,s=n?.id===e?n.session_api_key??a.sessionApiKey:a.sessionApiKey,c=n?.id===e?n.conversation_url??a.conversationUrl:a.conversationUrl;if(o){let e=F({conversationUrl:c,sessionApiKey:s});return L({files:t,workingDir:i,conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey})}return L({files:t,workingDir:i,conversationUrl:c,sessionApiKey:s})}async function L(e){let{files:t,workingDir:n,conversationUrl:r,sessionApiKey:a}=e,o=new u(i({conversationUrl:r,sessionApiKey:a,workingDir:n})),s=async e=>{try{let t=k(e.name),i=await j(e.name,n,{conversationUrl:r,sessionApiKey:a});return await o.fileUpload(e,i),{uploadedFile:t,skippedFile:null}}catch(t){return{uploadedFile:null,skippedFile:{name:e.name,reason:t instanceof Error?t.message:`Upload failed`}}}},c=[];for(let e=0;e<t.length;e+=N){let n=t.slice(e,e+N);c.push(...await Promise.all(n.map(s)))}return{uploaded_files:c.flatMap(e=>e.uploadedFile?[e.uploadedFile]:[]),skipped_files:c.flatMap(e=>e.skippedFile?[e.skippedFile]:[])}}var R=class{static currentConversation=null;static setCurrentConversation(e){this.currentConversation=e}static getCurrentConversation(){return this.currentConversation}static getClientOverrides(){return{sessionApiKey:this.currentConversation?.session_api_key}}static async getVSCodeUrl(e){let t=this.currentConversation?.id===e?this.currentConversation?.workspace?.working_dir??n():n();return{vscode_url:await new s(i(this.getClientOverrides())).getUrl({baseUrl:typeof window<`u`?window.location.origin:void 0,workspaceDir:t})}}static async getTrajectory(e){return{trajectory:(await new l(a(this.getClientOverrides()),e).search({limit:1e4})).items??[]}}static async uploadFiles(e,t){return I(e,t,this.currentConversation)}};e();var z=t(),B=e=>(0,z.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,z.jsx)(`path`,{d:`M21.0004 6.00001C21.0016 5.43668 20.8441 4.88442 20.5459 4.40644C20.2478 3.92846 19.8212 3.54406 19.3148 3.29726C18.8084 3.05046 18.2428 2.95122 17.6826 3.0109C17.1224 3.07059 16.5904 3.28678 16.1474 3.63473C15.7044 3.98269 15.3683 4.44835 15.1776 4.97841C14.9869 5.50848 14.9493 6.08152 15.0691 6.63197C15.1888 7.18241 15.4612 7.688 15.8549 8.09088C16.2487 8.49375 16.7479 8.77762 17.2954 8.91001V10.5C17.2978 10.6372 17.261 10.7722 17.1892 10.8891C17.1175 11.006 17.0138 11.1 16.8904 11.16L12.7354 13.32L8.59544 11.22C8.46356 11.1544 8.35443 11.0507 8.28221 10.9223C8.21 10.7939 8.17802 10.6468 8.19044 10.5V8.91001C8.89743 8.72746 9.51358 8.29333 9.92339 7.689C10.3332 7.08467 10.5085 6.35161 10.4165 5.62725C10.3245 4.90289 9.97149 4.23695 9.42361 3.75426C8.87573 3.27157 8.17062 3.00527 7.44044 3.00527C6.71026 3.00527 6.00514 3.27157 5.45726 3.75426C4.90938 4.23695 4.55635 4.90289 4.46435 5.62725C4.37234 6.35161 4.54768 7.08467 4.95749 7.689C5.36729 8.29333 5.98344 8.72746 6.69044 8.91001V10.5C6.6913 10.9156 6.80651 11.323 7.02346 11.6776C7.24041 12.0321 7.55073 12.3201 7.92044 12.51L12.0004 14.61V16.59C11.2934 16.7726 10.6773 17.2067 10.2675 17.811C9.85768 18.4153 9.68234 19.1484 9.77435 19.8728C9.86635 20.5971 10.2194 21.2631 10.7673 21.7457C11.3151 22.2284 12.0203 22.4947 12.7504 22.4947C13.4806 22.4947 14.1857 22.2284 14.7336 21.7457C15.2815 21.2631 15.6345 20.5971 15.7265 19.8728C15.8185 19.1484 15.6432 18.4153 15.2334 17.811C14.8236 17.2067 14.2074 16.7726 13.5004 16.59V14.61L17.5504 12.57C17.9317 12.3784 18.2501 12.0816 18.468 11.7148C18.686 11.348 18.7944 10.9265 18.7804 10.5V8.88001C19.4147 8.70922 19.9755 8.33496 20.3765 7.81469C20.7776 7.29442 20.9967 6.6569 21.0004 6.00001ZM6.00044 6.00001C6.00044 5.60218 6.15847 5.22065 6.43978 4.93934C6.72108 4.65804 7.10261 4.5 7.50044 4.5C7.89826 4.5 8.27979 4.65804 8.5611 4.93934C8.8424 5.22065 9.00044 5.60218 9.00044 6.00001C9.00044 6.39783 8.8424 6.77936 8.5611 7.06067C8.27979 7.34197 7.89826 7.50001 7.50044 7.50001C7.10261 7.50001 6.72108 7.34197 6.43978 7.06067C6.15847 6.77936 6.00044 6.39783 6.00044 6.00001ZM14.2054 19.5C14.2054 19.8978 14.0474 20.2794 13.7661 20.5607C13.4848 20.842 13.1033 21 12.7054 21C12.3076 21 11.9261 20.842 11.6448 20.5607C11.3635 20.2794 11.2054 19.8978 11.2054 19.5C11.2054 19.1022 11.3635 18.7207 11.6448 18.4393C11.9261 18.158 12.3076 18 12.7054 18C13.1033 18 13.4848 18.158 13.7661 18.4393C14.0474 18.7207 14.2054 19.1022 14.2054 19.5ZM18.0004 7.50001C17.6026 7.50001 17.2211 7.34197 16.9398 7.06067C16.6585 6.77936 16.5004 6.39783 16.5004 6.00001C16.5004 5.60218 16.6585 5.22065 16.9398 4.93934C17.2211 4.65804 17.6026 4.5 18.0004 4.5C18.3983 4.5 18.7798 4.65804 19.0611 4.93934C19.3424 5.22065 19.5004 5.60218 19.5004 6.00001C19.5004 6.39783 19.3424 6.77936 19.0611 7.06067C18.7798 7.34197 18.3983 7.50001 18.0004 7.50001Z`,fill:`currentColor`})}),V=e=>{let t=e.match(/^\/workspace\/[^/]+\/(.*)$/);return t?t[1]:e};function H(e){let t=e.trim().replace(/\\/g,`/`).replace(/\/+$/,``);return t?t.startsWith(`/`)||/^[A-Za-z]:(\/|$)/.test(t)?t:`/${t}`:``}var U=(e,t)=>{let n=e.trim().replace(/\\/g,`/`);if(!n)return``;n=n.replace(/:(\d+)(-\d+)?$/,``);let r=[t,o].filter(e=>!!e?.trim());for(let e of r){let t=H(e);if(t){if(n===t)return``;if(n.startsWith(`${t}/`))return n.slice(t.length+1)}}return n.startsWith(`/`)?V(n).replace(/^\.\//,``):n.replace(/^\.\//,``)},W=/\.(md|txt|ts|tsx|js|jsx|mjs|cjs|py|json|html?|css|scss|ya?ml|toml|rs|go|java|kt|swift|c|cc|cpp|h|hpp|sh|bash|zsh|sql|xml|svg|pdf|env|rb|php|vue|svelte|lock|ini|cfg|docx?|xlsx?|pptx?|odt|rtf)$/i,G=e=>{let t=e.trim();if(!t||/\s/.test(t)||/^https?:\/\//i.test(t))return!1;let n=t.replace(/\\/g,`/`).replace(/^\.\//,``);if(n=n.replace(/:(\d+)(-\d+)?$/,``),/^(application|audio|image|text|video|font|multipart|message|model)\/[\w.+-]+$/i.test(n)||/^v?\d+(\.\d+){1,3}([-+][\w.]+)?$/i.test(n))return!1;let r=n.includes(`/`)?n.split(`/`).pop()??``:n;return W.test(r)},K=e=>{let t=e.trim();if(!t)return``;let n=t.replace(/[\\/]+$/,``);if(!n||/^[A-Za-z]:$/.test(n))return``;let r=Math.max(n.lastIndexOf(`/`),n.lastIndexOf(`\\`));return r>=0?n.slice(r+1):n},q=d(e=>({executionStatusByConversation:{},setExecutionStatus:(t,n)=>e(e=>({executionStatusByConversation:{...e.executionStatusByConversation,[t]:n}})),reset:()=>e({executionStatusByConversation:{}})}));export{x as _,U as a,P as c,D as d,w as f,b as g,S as h,V as i,I as l,C as m,K as n,B as o,v as p,G as r,R as s,q as t,y as u,T as v,E as y};
|
|
@@ -3,4 +3,4 @@ import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t}from"./vendor-
|
|
|
3
3
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
4
4
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
5
5
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
6
|
-
`);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&y(t);return}l(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return y(b),s===void 0?m?.init(i.getState()):m?.init(d(c.name));case`COMMIT`:if(s===void 0){m?.init(i.getState());return}return m?.init(d(c.name));case`ROLLBACK`:return v(e.state,e=>{if(s===void 0){y(e),m?.init(i.getState());return}y(e[s]),m?.init(d(c.name))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return v(e.state,e=>{if(s===void 0){y(e);return}JSON.stringify(i.getState())!==JSON.stringify(e[s])&&y(e[s])});case`IMPORT_STATE`:{let{nextLiftedState:t}=e.payload,n=t.computedStates.slice(-1)[0]?.state;if(!n)return;y(s===void 0?n:n[s]),m?.send(null,t);return}case`PAUSE_RECORDING`:return _=!_}return}}),b},v=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error(`[zustand devtools middleware] Could not parse the received json`,e)}n!==void 0&&t(n)};function y(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var b=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return b(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return b(t)(e)}}}},x=(e,t)=>(n,r,i)=>{let a={storage:y(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return b(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},S={workspace:`workspace`,git:`git`},C=[S.workspace,S.git],w=new Set(C),T={changes:`changes`,repository:`repository`,branch:`branch`,commits:`commits`,pull_requests:`pull_requests`},E=[T.changes,T.repository,T.branch,T.commits,T.pull_requests],D=new Set(E),O=[],k=[],A=[{sections:[S.workspace]}];function j(e,t){return!t.includes(e)}function M(e,t){return!t.includes(e)}var N={CONVERSATION_STATE:`conversation-state`,PENDING_TASK_DRAFT:`pending-task-draft`},P=`conversation-state-updated`,F={selectedTab:`files`,unpinnedTabs:[],unpinnedOverviewSections:[...O],unpinnedOverviewGitParts:[...k],conversationMode:`code`,subConversationTaskId:null,draftMessage:null,rightPanelShown:!1,filesTabDiffView:null,filesTabContentViewMode:`rich`,filesTabTreeVisible:!0,filesTabOpenPaths:[],filesTabSelectedPath:null},I=new Set([`files`,`commits`,`browser`,`terminal`,`planner`,`tasklist`,`usage`]),L=new Set([`editor`,`served`,`app`,`vscode`]),R=new Set([`rich`,`plain`]);function z(e){let t=e;if(t.selectedTab!=null&&(L.has(t.selectedTab)||t.selectedTab===`changes`||!I.has(t.selectedTab))){let e=t.selectedTab;t={...t},e===`changes`?t.selectedTab=`commits`:delete t.selectedTab}if(t.unpinnedTabs){let e=t.unpinnedTabs.filter(e=>e!==`changes`&&!L.has(e));e.length!==t.unpinnedTabs.length&&(t={...t,unpinnedTabs:e})}if(t.unpinnedOverviewSections){let e=t.unpinnedOverviewSections.filter(e=>w.has(e));e.length!==t.unpinnedOverviewSections.length&&(t={...t,unpinnedOverviewSections:e})}if(t.unpinnedOverviewGitParts){let e=t.unpinnedOverviewGitParts.filter(e=>D.has(e));e.length!==t.unpinnedOverviewGitParts.length&&(t={...t,unpinnedOverviewGitParts:e})}if(t.filesTabContentViewMode!=null&&!R.has(t.filesTabContentViewMode)&&(t={...t},delete t.filesTabContentViewMode),t.rightPanelShown!=null&&typeof t.rightPanelShown!=`boolean`&&(t={...t},delete t.rightPanelShown),t.filesTabTreeVisible!=null&&typeof t.filesTabTreeVisible!=`boolean`&&(t={...t},delete t.filesTabTreeVisible),t.filesTabOpenPaths!=null)if(!Array.isArray(t.filesTabOpenPaths))t={...t},delete t.filesTabOpenPaths;else{let e=t.filesTabOpenPaths.filter(e=>typeof e==`string`&&e.length>0);e.length!==t.filesTabOpenPaths.length&&(t={...t,filesTabOpenPaths:e})}return t.filesTabSelectedPath!=null&&typeof t.filesTabSelectedPath!=`string`&&(t={...t},delete t.filesTabSelectedPath),t}function B(e){return e.startsWith(`task-`)}function V(e){return e===``||B(e)}function H(e){if(V(e))return F;try{let t=`${N.CONVERSATION_STATE}-${e}`,n=localStorage.getItem(t);return n===null?F:{...F,...z(JSON.parse(n))}}catch{return F}}function U(e,t){if(!V(e))try{let n=`${N.CONVERSATION_STATE}-${e}`,r={...H(e),...t};localStorage.setItem(n,JSON.stringify(r)),typeof window<`u`&&window.dispatchEvent(new CustomEvent(P,{detail:{conversationId:e}}))}catch(e){console.warn(`Failed to set conversation localStorage`,e)}}function W(e){return`${N.PENDING_TASK_DRAFT}-${e}`}function G(e,t){if(e)try{localStorage.setItem(W(e),t)}catch(e){console.warn(`Failed to store pending task draft`,e)}}function K(e){if(!e)return null;try{let t=W(e),n=localStorage.getItem(t);return localStorage.removeItem(t),n}catch(e){return console.warn(`Failed to consume pending task draft`,e),null}}function q(e){try{let t=`${N.CONVERSATION_STATE}-${e}`;localStorage.removeItem(t),typeof window<`u`&&window.dispatchEvent(new CustomEvent(P,{detail:{conversationId:e}}))}catch(t){console.warn(`Failed to clear conversation localStorage`,e,t)}}function J(e){let[t,r]=(0,n.useState)(()=>H(e));(0,n.useEffect)(()=>{if(typeof window>`u`)return;let t=`${N.CONVERSATION_STATE}-${e}`,n=()=>{r(H(e))},i=e=>{e.key===t&&n()},a=t=>{t.detail?.conversationId===e&&n()};return n(),window.addEventListener(`storage`,i),window.addEventListener(P,a),()=>{window.removeEventListener(`storage`,i),window.removeEventListener(P,a)}},[e]);let i=t=>{if(V(e)){r(e=>({...e,...t}));return}U(e,t)};return{state:t,setSelectedTab:e=>i({selectedTab:e}),setUnpinnedTabs:e=>i({unpinnedTabs:e}),setUnpinnedOverviewSections:e=>i({unpinnedOverviewSections:e}),setUnpinnedOverviewGitParts:e=>i({unpinnedOverviewGitParts:e}),setConversationMode:e=>i({conversationMode:e}),setDraftMessage:e=>i({draftMessage:e}),setRightPanelShown:e=>i({rightPanelShown:e}),setFilesTabDiffView:e=>i({filesTabDiffView:e}),setFilesTabContentViewMode:e=>i({filesTabContentViewMode:e}),setFilesTabTreeVisible:e=>i({filesTabTreeVisible:e}),setFilesTabOpenState:(e,t)=>i({filesTabOpenPaths:e,filesTabSelectedPath:t})}}var Y=()=>{if(typeof window>`u`)return null;let e=window.location.pathname.match(/\/conversations\/([^/]+)/);return e?e[1]:null},X=()=>{if(typeof window>`u`)return`code`;let e=Y();return e?H(e).conversationMode:`code`},Z=c()(_(e=>({isRightPanelShown:!1,isOverviewPanelShown:!1,isOverviewPanelPeeked:!1,selectedTab:`files`,commitsAutoExpandSection:null,images:[],files:[],imagesMarkedUploadAsFile:[],pastedImageNames:[],loadingFiles:[],loadingImages:[],messageToSend:null,messageRestoreIfEmpty:null,shouldShownAgentLoading:!1,submittedMessage:null,shouldHideSuggestions:!1,hasRightPanelToggled:!1,planContent:null,conversationMode:X(),subConversationTaskId:null,setIsRightPanelShown:t=>e({isRightPanelShown:t},!1,`setIsRightPanelShown`),setIsOverviewPanelShown:t=>e({isOverviewPanelShown:t,isOverviewPanelPeeked:!1},!1,`setIsOverviewPanelShown`),setIsOverviewPanelPeeked:t=>e({isOverviewPanelPeeked:t},!1,`setIsOverviewPanelPeeked`),setSelectedTab:t=>e({selectedTab:t},!1,`setSelectedTab`),setCommitsAutoExpandSection:t=>e({commitsAutoExpandSection:t},!1,`setCommitsAutoExpandSection`),setShouldShownAgentLoading:t=>e({shouldShownAgentLoading:t},!1,`setShouldShownAgentLoading`),setShouldHideSuggestions:t=>e({shouldHideSuggestions:t},!1,`setShouldHideSuggestions`),addImages:t=>e(e=>({images:[...e.images,...t]}),!1,`addImages`),addFiles:t=>e(e=>({files:[...e.files,...t]}),!1,`addFiles`),toggleImageUploadAsFile:t=>e(e=>{let n=new Set(e.imagesMarkedUploadAsFile);return n.has(t)?n.delete(t):n.add(t),{imagesMarkedUploadAsFile:[...n]}},!1,`toggleImageUploadAsFile`),markImagesAsPasted:t=>e(e=>({pastedImageNames:[...new Set([...e.pastedImageNames,...t])]}),!1,`markImagesAsPasted`),removeImage:t=>e(e=>{let n=e.images[t],r=[...e.images];return r.splice(t,1),{images:r,imagesMarkedUploadAsFile:n?e.imagesMarkedUploadAsFile.filter(e=>e!==n.name):e.imagesMarkedUploadAsFile,pastedImageNames:n?e.pastedImageNames.filter(e=>e!==n.name):e.pastedImageNames}},!1,`removeImage`),removeFile:t=>e(e=>{let n=[...e.files];return n.splice(t,1),{files:n}},!1,`removeFile`),clearImages:()=>e({images:[]},!1,`clearImages`),clearFiles:()=>e({files:[]},!1,`clearFiles`),clearAllFiles:()=>e({images:[],files:[],imagesMarkedUploadAsFile:[],pastedImageNames:[],loadingFiles:[],loadingImages:[]},!1,`clearAllFiles`),addFileLoading:t=>e(e=>e.loadingFiles.includes(t)?e:{loadingFiles:[...e.loadingFiles,t]},!1,`addFileLoading`),removeFileLoading:t=>e(e=>({loadingFiles:e.loadingFiles.filter(e=>e!==t)}),!1,`removeFileLoading`),addImageLoading:t=>e(e=>e.loadingImages.includes(t)?e:{loadingImages:[...e.loadingImages,t]},!1,`addImageLoading`),removeImageLoading:t=>e(e=>({loadingImages:e.loadingImages.filter(e=>e!==t)}),!1,`removeImageLoading`),clearAllLoading:()=>e({loadingFiles:[],loadingImages:[]},!1,`clearAllLoading`),setMessageToSend:t=>e({messageToSend:{text:t,timestamp:Date.now()}},!1,`setMessageToSend`),clearMessageToSend:()=>e({messageToSend:null},!1,`clearMessageToSend`),restoreMessageToInputIfEmpty:t=>e({messageRestoreIfEmpty:{text:t,timestamp:Date.now()}},!1,`restoreMessageToInputIfEmpty`),clearMessageRestoreIfEmpty:()=>e({messageRestoreIfEmpty:null},!1,`clearMessageRestoreIfEmpty`),setSubmittedMessage:t=>e({submittedMessage:t},!1,`setSubmittedMessage`),resetConversationState:()=>e({shouldHideSuggestions:!1,conversationMode:X(),subConversationTaskId:null,planContent:null},!1,`resetConversationState`),setHasRightPanelToggled:t=>e({hasRightPanelToggled:t},!1,`setHasRightPanelToggled`),setConversationMode:t=>{let n=Y();n&&U(n,{conversationMode:t}),e({conversationMode:t},!1,`setConversationMode`)},setSubConversationTaskId:t=>e({subConversationTaskId:t},!1,`setSubConversationTaskId`),setPlanContent:t=>e({planContent:t},!1,`setPlanContent`)}),{name:`conversation-store`}));export{c as _,B as a,J as c,A as d,M as f,x as g,_ as h,H as i,T as l,y as m,q as n,U as o,j as p,K as r,G as s,Z as t,S as u};
|
|
6
|
+
`);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&y(t);return}l(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return y(b),s===void 0?m?.init(i.getState()):m?.init(d(c.name));case`COMMIT`:if(s===void 0){m?.init(i.getState());return}return m?.init(d(c.name));case`ROLLBACK`:return v(e.state,e=>{if(s===void 0){y(e),m?.init(i.getState());return}y(e[s]),m?.init(d(c.name))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return v(e.state,e=>{if(s===void 0){y(e);return}JSON.stringify(i.getState())!==JSON.stringify(e[s])&&y(e[s])});case`IMPORT_STATE`:{let{nextLiftedState:t}=e.payload,n=t.computedStates.slice(-1)[0]?.state;if(!n)return;y(s===void 0?n:n[s]),m?.send(null,t);return}case`PAUSE_RECORDING`:return _=!_}return}}),b},v=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error(`[zustand devtools middleware] Could not parse the received json`,e)}n!==void 0&&t(n)};function y(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var b=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return b(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return b(t)(e)}}}},x=(e,t)=>(n,r,i)=>{let a={storage:y(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return b(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},S={workspace:`workspace`,git:`git`},C=[S.workspace,S.git],w=new Set(C),T={changes:`changes`,repository:`repository`,branch:`branch`,commits:`commits`,pull_requests:`pull_requests`},E=[T.changes,T.repository,T.branch,T.commits,T.pull_requests],D=new Set(E),O=[],k=[],A=[{sections:[S.workspace]}];function j(e,t){return!t.includes(e)}function M(e,t){return!t.includes(e)}var N={CONVERSATION_STATE:`conversation-state`,PENDING_TASK_DRAFT:`pending-task-draft`},P=`conversation-state-updated`,F={selectedTab:`files`,unpinnedTabs:[],unpinnedOverviewSections:[...O],unpinnedOverviewGitParts:[...k],conversationMode:`code`,subConversationTaskId:null,draftMessage:null,rightPanelShown:!1,filesTabDiffView:null,filesTabContentViewMode:`rich`,filesTabTreeVisible:!0,filesTabOpenPaths:[],filesTabSelectedPath:null},I=new Set([`files`,`commits`,`browser`,`terminal`,`planner`,`tasklist`,`usage`]),L=new Set([`editor`,`served`,`app`,`vscode`]),R=new Set([`rich`,`plain`]);function z(e){let t=e;if(t.selectedTab!=null&&(L.has(t.selectedTab)||t.selectedTab===`changes`||!I.has(t.selectedTab))){let e=t.selectedTab;t={...t},e===`changes`?t.selectedTab=`commits`:delete t.selectedTab}if(t.unpinnedTabs){let e=t.unpinnedTabs.filter(e=>e!==`changes`&&!L.has(e));e.length!==t.unpinnedTabs.length&&(t={...t,unpinnedTabs:e})}if(t.unpinnedOverviewSections){let e=t.unpinnedOverviewSections.filter(e=>w.has(e));e.length!==t.unpinnedOverviewSections.length&&(t={...t,unpinnedOverviewSections:e})}if(t.unpinnedOverviewGitParts){let e=t.unpinnedOverviewGitParts.filter(e=>D.has(e));e.length!==t.unpinnedOverviewGitParts.length&&(t={...t,unpinnedOverviewGitParts:e})}if(t.filesTabContentViewMode!=null&&!R.has(t.filesTabContentViewMode)&&(t={...t},delete t.filesTabContentViewMode),t.rightPanelShown!=null&&typeof t.rightPanelShown!=`boolean`&&(t={...t},delete t.rightPanelShown),t.filesTabTreeVisible!=null&&typeof t.filesTabTreeVisible!=`boolean`&&(t={...t},delete t.filesTabTreeVisible),t.filesTabOpenPaths!=null)if(!Array.isArray(t.filesTabOpenPaths))t={...t},delete t.filesTabOpenPaths;else{let e=t.filesTabOpenPaths.filter(e=>typeof e==`string`&&e.length>0);e.length!==t.filesTabOpenPaths.length&&(t={...t,filesTabOpenPaths:e})}return t.filesTabSelectedPath!=null&&typeof t.filesTabSelectedPath!=`string`&&(t={...t},delete t.filesTabSelectedPath),t}function B(e){return e.startsWith(`task-`)}function V(e){return e===``||B(e)}function H(e){if(V(e))return F;try{let t=`${N.CONVERSATION_STATE}-${e}`,n=localStorage.getItem(t);return n===null?F:{...F,...z(JSON.parse(n))}}catch{return F}}function U(e,t){if(!V(e))try{let n=`${N.CONVERSATION_STATE}-${e}`,r={...H(e),...t};localStorage.setItem(n,JSON.stringify(r)),typeof window<`u`&&window.dispatchEvent(new CustomEvent(P,{detail:{conversationId:e}}))}catch(e){console.warn(`Failed to set conversation localStorage`,e)}}function W(e){return`${N.PENDING_TASK_DRAFT}-${e}`}function G(e,t){if(e)try{localStorage.setItem(W(e),t)}catch(e){console.warn(`Failed to store pending task draft`,e)}}function K(e){if(!e)return null;try{let t=W(e),n=localStorage.getItem(t);return localStorage.removeItem(t),n}catch(e){return console.warn(`Failed to consume pending task draft`,e),null}}function q(e){try{let t=`${N.CONVERSATION_STATE}-${e}`;localStorage.removeItem(t),typeof window<`u`&&window.dispatchEvent(new CustomEvent(P,{detail:{conversationId:e}}))}catch(t){console.warn(`Failed to clear conversation localStorage`,e,t)}}function J(e){let[t,r]=(0,n.useState)(()=>H(e));(0,n.useEffect)(()=>{if(typeof window>`u`)return;let t=`${N.CONVERSATION_STATE}-${e}`,n=()=>{r(H(e))},i=e=>{e.key===t&&n()},a=t=>{t.detail?.conversationId===e&&n()};return n(),window.addEventListener(`storage`,i),window.addEventListener(P,a),()=>{window.removeEventListener(`storage`,i),window.removeEventListener(P,a)}},[e]);let i=t=>{if(V(e)){r(e=>({...e,...t}));return}U(e,t)};return{state:t,setSelectedTab:e=>i({selectedTab:e}),setUnpinnedTabs:e=>i({unpinnedTabs:e}),setUnpinnedOverviewSections:e=>i({unpinnedOverviewSections:e}),setUnpinnedOverviewGitParts:e=>i({unpinnedOverviewGitParts:e}),setConversationMode:e=>i({conversationMode:e}),setDraftMessage:e=>i({draftMessage:e}),setRightPanelShown:e=>i({rightPanelShown:e}),setFilesTabDiffView:e=>i({filesTabDiffView:e}),setFilesTabContentViewMode:e=>i({filesTabContentViewMode:e}),setFilesTabTreeVisible:e=>i({filesTabTreeVisible:e}),setFilesTabOpenState:(e,t)=>i({filesTabOpenPaths:e,filesTabSelectedPath:t})}}var Y=()=>{if(typeof window>`u`)return null;let e=window.location.pathname.match(/\/conversations\/([^/]+)/);return e?e[1]:null},X=()=>{if(typeof window>`u`)return`code`;let e=Y();return e?H(e).conversationMode:`code`},Z=c()(_(e=>({isRightPanelShown:!1,isOverviewPanelShown:!1,isOverviewPanelPeeked:!1,selectedTab:`files`,commitsAutoExpandSection:null,images:[],files:[],imagesMarkedUploadAsFile:[],pastedImageNames:[],loadingFiles:[],loadingImages:[],messageToSend:null,messageRestoreIfEmpty:null,shouldShownAgentLoading:!1,submittedMessage:null,shouldHideSuggestions:!1,hasRightPanelToggled:!1,planContent:null,conversationMode:X(),subConversationTaskId:null,localPlanningConversationId:null,setIsRightPanelShown:t=>e({isRightPanelShown:t},!1,`setIsRightPanelShown`),setIsOverviewPanelShown:t=>e({isOverviewPanelShown:t,isOverviewPanelPeeked:!1},!1,`setIsOverviewPanelShown`),setIsOverviewPanelPeeked:t=>e({isOverviewPanelPeeked:t},!1,`setIsOverviewPanelPeeked`),setSelectedTab:t=>e({selectedTab:t},!1,`setSelectedTab`),setCommitsAutoExpandSection:t=>e({commitsAutoExpandSection:t},!1,`setCommitsAutoExpandSection`),setShouldShownAgentLoading:t=>e({shouldShownAgentLoading:t},!1,`setShouldShownAgentLoading`),setShouldHideSuggestions:t=>e({shouldHideSuggestions:t},!1,`setShouldHideSuggestions`),addImages:t=>e(e=>({images:[...e.images,...t]}),!1,`addImages`),addFiles:t=>e(e=>({files:[...e.files,...t]}),!1,`addFiles`),toggleImageUploadAsFile:t=>e(e=>{let n=new Set(e.imagesMarkedUploadAsFile);return n.has(t)?n.delete(t):n.add(t),{imagesMarkedUploadAsFile:[...n]}},!1,`toggleImageUploadAsFile`),markImagesAsPasted:t=>e(e=>({pastedImageNames:[...new Set([...e.pastedImageNames,...t])]}),!1,`markImagesAsPasted`),removeImage:t=>e(e=>{let n=e.images[t],r=[...e.images];return r.splice(t,1),{images:r,imagesMarkedUploadAsFile:n?e.imagesMarkedUploadAsFile.filter(e=>e!==n.name):e.imagesMarkedUploadAsFile,pastedImageNames:n?e.pastedImageNames.filter(e=>e!==n.name):e.pastedImageNames}},!1,`removeImage`),removeFile:t=>e(e=>{let n=[...e.files];return n.splice(t,1),{files:n}},!1,`removeFile`),clearImages:()=>e({images:[]},!1,`clearImages`),clearFiles:()=>e({files:[]},!1,`clearFiles`),clearAllFiles:()=>e({images:[],files:[],imagesMarkedUploadAsFile:[],pastedImageNames:[],loadingFiles:[],loadingImages:[]},!1,`clearAllFiles`),addFileLoading:t=>e(e=>e.loadingFiles.includes(t)?e:{loadingFiles:[...e.loadingFiles,t]},!1,`addFileLoading`),removeFileLoading:t=>e(e=>({loadingFiles:e.loadingFiles.filter(e=>e!==t)}),!1,`removeFileLoading`),addImageLoading:t=>e(e=>e.loadingImages.includes(t)?e:{loadingImages:[...e.loadingImages,t]},!1,`addImageLoading`),removeImageLoading:t=>e(e=>({loadingImages:e.loadingImages.filter(e=>e!==t)}),!1,`removeImageLoading`),clearAllLoading:()=>e({loadingFiles:[],loadingImages:[]},!1,`clearAllLoading`),setMessageToSend:t=>e({messageToSend:{text:t,timestamp:Date.now()}},!1,`setMessageToSend`),clearMessageToSend:()=>e({messageToSend:null},!1,`clearMessageToSend`),restoreMessageToInputIfEmpty:t=>e({messageRestoreIfEmpty:{text:t,timestamp:Date.now()}},!1,`restoreMessageToInputIfEmpty`),clearMessageRestoreIfEmpty:()=>e({messageRestoreIfEmpty:null},!1,`clearMessageRestoreIfEmpty`),setSubmittedMessage:t=>e({submittedMessage:t},!1,`setSubmittedMessage`),resetConversationState:()=>e({shouldHideSuggestions:!1,conversationMode:X(),subConversationTaskId:null,localPlanningConversationId:null,planContent:null},!1,`resetConversationState`),setHasRightPanelToggled:t=>e({hasRightPanelToggled:t},!1,`setHasRightPanelToggled`),setConversationMode:t=>{let n=Y();n&&U(n,{conversationMode:t}),e({conversationMode:t},!1,`setConversationMode`)},setSubConversationTaskId:t=>e({subConversationTaskId:t},!1,`setSubConversationTaskId`),setLocalPlanningConversationId:t=>e({localPlanningConversationId:t},!1,`setLocalPlanningConversationId`),setPlanContent:t=>e({planContent:t},!1,`setPlanContent`)}),{name:`conversation-store`}));export{c as _,B as a,J as c,A as d,M as f,x as g,_ as h,H as i,T as l,y as m,q as n,U as o,j as p,K as r,G as s,Z as t,S as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{t}from"./utils-
|
|
1
|
+
import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{t}from"./utils-BOco8mxR.js";var n=e();function r({icon:e,children:r,action:i,className:a}){return(0,n.jsxs)(`div`,{className:t(`flex flex-col items-center justify-center w-full h-full p-10 gap-4 text-center`,a),children:[(0,n.jsx)(`div`,{className:`shrink-0 text-[var(--oh-muted)] [&_svg]:size-10 [&_svg]:max-h-10 [&_svg]:max-w-10 [&_svg]:shrink-0`,"aria-hidden":!0,children:e}),(0,n.jsx)(`p`,{className:`max-w-sm text-center text-sm font-normal leading-5 text-[var(--oh-muted)]`,children:r}),i?(0,n.jsx)(`div`,{className:`flex justify-center pt-1`,children:i}):null]})}export{r as t};
|
package/build/assets/{copy-to-clipboard-button-Cjkswvnj.js → copy-to-clipboard-button-B3w0X7WH.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{t}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~
|
|
1
|
+
import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{t}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iyia17eu-CV850oio.js";import{K as n}from"./utils-BOco8mxR.js";import{t as r}from"./checkmark-XZyokq_Y.js";import{t as i}from"./copy-Drmhc2jD.js";var a=e();function o({isHidden:e,isDisabled:o,onClick:s,mode:c}){let{t:l}=t(`openhands`);return(0,a.jsxs)(`button`,{hidden:e,disabled:o,"data-testid":`copy-to-clipboard`,type:`button`,onClick:s,"aria-label":l(c===`copy`?n.BUTTON$COPY:n.BUTTON$COPIED),className:`button-base p-1 cursor-pointer`,children:[c===`copy`&&(0,a.jsx)(i,{width:15,height:15}),c===`copied`&&(0,a.jsx)(r,{width:15,height:15})]})}export{o as t};
|