@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
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/files-tab-CL3J9b3p.js","assets/rolldown-runtime-Cyuzqnbw.js","assets/vendor-styling-Ck5D_A2Q.js","assets/active-backend-context-DKFSMbn3.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js","assets/utils-DaCIEEQP.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js","assets/useQuery-BXWbZBZl.js","assets/messages-BTN5thLe.js","assets/vendor-markdown-j0kYzV48.js","assets/useMutation-DFnzkf6f.js","assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js","assets/markdown-renderer-Cb2sBWtV.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-DozDKIW_.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-BgxDvUcf.js","assets/proxy-tcFL2yTQ.js","assets/profiles-service.api-QB-T_u-g.js","assets/settings-service.api-B2agVfjL.js","assets/settings-DcNPxz0v.js","assets/llm-subscription-service-BpPfzW4x.js","assets/llm-subscription-DTqtBCWz.js","assets/acp-providers-BKvmTf82.js","assets/conversation-store-Ca3ghXap.js","assets/conversation-state-store-a9d2fxRc.js","assets/syntax-highlighter-BGDg_7w9.js","assets/copy-to-clipboard-button-Cjkswvnj.js","assets/checkmark-XZyokq_Y.js","assets/copy-Drmhc2jD.js","assets/navigation-context-CQZwH_tC.js","assets/use-user-conversation-DT0_QCnL.js","assets/scroll-fade-state-Dw-i4SGq.js","assets/chevron-down-C3OQ-ehx.js","assets/chevron-right-CN1uUiJ1.js","assets/loader-circle-nvrwthvj.js","assets/vendor~root-layout~conversation-panel~conversation~shared-conversation-DOuig0C0.js","assets/use-config-Bft35DOK.js","assets/styled-tooltip-Dl06rkpY.js","assets/use-settings-C5VhGpqd.js","assets/close-ScPlnwyq.js","assets/skills-B0IliMxw.js","assets/u-check-circle-BKn1spCL.js","assets/typography-SgFy466J.js","assets/dist-Bl64nBZL.js","assets/form-control-classes-CGw40z5h.js","assets/format-model-name-BNPKVsIq.js","assets/use-llm-configured-BI6obxsc.js","assets/use-agent-profiles-DWBPC0Si.js","assets/use-tracking-D5t9otIF.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js","assets/bot-C-0Wu7vQ.js","assets/use-llm-profiles-djGAhTWL.js","assets/settings-utils-ClYOkbbI.js","assets/map-provider-B9LTm23I.js","assets/cloud-funnel-analytics-287iIERo.js","assets/mouse-pointer-click-CsgRs_-r.js","assets/conversation-tab-empty-state-HJtkmHZj.js","assets/highlighted-source-view-C3sxykQi.js","assets/folder-C1ou4_DT.js","assets/get-git-path-DlAJa_i6.js","assets/link-external-BNZzCM1I.js","assets/commits-tab-DZtJgaDM.js","assets/vendor~commits-tab-BaO2Ce3e.js","assets/vendor~conversation-panel~conversation-CTvDDiXg.js","assets/vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js","assets/llm-not-configured-banner-BqqYnJ1t.js","assets/vendor~index-home~home~conversation-panel~conversation-BTyukeM-.js","assets/useInfiniteQuery-CgeUQPfs.js","assets/recommended-automations-launcher-Bw8uC4V6.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js","assets/secrets-service-BTor9uAU.js","assets/install-server-modal-BbJdhzet.js","assets/brand-button-Dxv6PDeN.js","assets/settings-input-C03KUoSC.js","assets/modal-backdrop-BSzNhM4r.js","assets/modal-close-button-CkJ0Ktjj.js","assets/mcp-marketplace-utils-C13fFccR.js","assets/modal-classes-BAb4Y_BG.js","assets/skill-card-pill-row-CFxjoqxn.js","assets/extension-module-card-classes-DpeaYhYo.js","assets/circle-plus-check-toggle-CBh_qomE.js","assets/x-mark-BopmFoBq.js","assets/use-create-conversation-DwN5vv2f.js","assets/plugins-management-service-BjYeF0b0.js","assets/use-create-secret-BSxJMxHp.js","assets/use-automations-zYb0dUny.js","assets/automation-C_eCrGyP.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~automation-setup-route-CjECvSl5.js","assets/chat-send-button-DWwR2cgI.js","assets/check-Cf2YoT90.js","assets/circle-check-g5yeGMd-.js","assets/plus-CEKne-Yp.js","assets/refresh-cw-Bh69DyYO.js","assets/context-menu-list-item-lVYETtY5.js","assets/dropdown-classes-DJe-E6MC.js","assets/home-store-Dl1dPE58.js","assets/use-is-authed-CFGkY3-Z.js","assets/skill-scope-CV1dkAbW.js","assets/use-can-manage-org-profiles-BWMahtUh.js","assets/organization-service.api-C8XpQ0pM.js","assets/git-repo-dropdown-ai8qaNkD.js","assets/settings-dropdown-input-tM0A0ipy.js","assets/merge-agent-profile-save-input-WcFmQVKK.js","assets/base-modal-C7_BDl_U.js","assets/modal-body-CMOc2tLl.js","assets/loading-spinner-0L3ZTToZ.js","assets/navigation-link-Bxo3-4vo.js","assets/use-activate-agent-profile-B2NS8nA5.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-BAl4ckJE.js","assets/external-link-DFpYunfj.js","assets/vendor~browser-tab-C5uuAxZX.js","assets/planner-tab-DQvDU3ap.js","assets/list-todo-Cuu-STFc.js","assets/task-list-tab-04GNQuii.js","assets/usage-tab-BcfWV6db.js","assets/info-uYSVzX86.js","assets/terminal-Cj0iHIW7.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~ox0jfsa0-cHFhpUBq.js";import{n as d}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js";import{t as f}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{E as p,T as m,f as h,j as g}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js";import{t as _}from"./useMutation-DFnzkf6f.js";import{t as v}from"./useQueries-BhbrGEf1.js";import{t as y}from"./useQuery-BXWbZBZl.js";import{i as b}from"./recommended-automations-launcher-Bw8uC4V6.js";import{t as x}from"./vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js";import{$ as S,Gt as C,It as w,Mt as T,Nt as E,X as D,ct as O,jt as k,n as A,nt as j,tt as ee}from"./active-backend-context-DKFSMbn3.js";import{A as M,D as N,E as te,H as ne,I as re,M as P,T as F,U as ie,W as I,a as ae,d as oe,f as se,h as ce,i as le,j as ue,k as L,l as de,m as fe,n as pe,o as me,p as R,r as he,s as ge,t as z,u as _e,w as ve,y as ye}from"./utils-DaCIEEQP.js";import{c as be}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js";import{A as xe,C as Se,D as Ce,E as we,M as Te,O as Ee,S as De,T as Oe,_ as ke,b as Ae,c as je,f as Me,g as Ne,h as Pe,j as Fe,k as Ie,l as Le,m as Re,n as ze,p as Be,s as Ve,t as He,u as Ue,v as We,w as Ge,x as Ke,y as qe}from"./messages-BTN5thLe.js";import{t as Je}from"./check-Cf2YoT90.js";import{n as Ye,r as Xe,t as Ze}from"./vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js";import{r as Qe}from"./map-provider-B9LTm23I.js";import{i as $e,n as et,r as tt,t as nt}from"./empty-state-CvaVahVr.js";import{t as rt}from"./external-link-DFpYunfj.js";import{c as it,d as at,g as ot,h as st,i as ct,l as lt,m as ut,t as dt}from"./use-llm-configured-BI6obxsc.js";import{c as ft,d as pt,l as mt,n as ht,s as gt,u as _t}from"./vendor~conversation-panel~conversation-CTvDDiXg.js";import{a as vt,i as yt}from"./cloud-funnel-analytics-287iIERo.js";import{t as bt}from"./info-uYSVzX86.js";import{t as xt}from"./list-todo-Cuu-STFc.js";import{t as St}from"./loader-circle-nvrwthvj.js";import{a as Ct,c as wt,d as Tt,f as Et,i as Dt,l as Ot,m as kt,n as At,p as jt,r as Mt,t as Nt}from"./skill-filter-CWZ5kjcg.js";import{t as Pt}from"./x-DkgltWa0.js";import{t as Ft}from"./trash-2-Dl8_RGz0.js";import{n as It,t as B}from"./context-menu-list-item-lVYETtY5.js";import{i as Lt}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js";import{t as Rt}from"./proxy-tcFL2yTQ.js";import{t as zt}from"./loading-spinner-0L3ZTToZ.js";import{t as Bt}from"./use-tracking-D5t9otIF.js";import{l as Vt}from"./settings-service.api-B2agVfjL.js";import{n as Ht}from"./use-settings-C5VhGpqd.js";import{t as Ut}from"./use-save-settings-CUZW6yXP.js";import{t as Wt}from"./modal-backdrop-BSzNhM4r.js";import{n as Gt}from"./modal-body-CMOc2tLl.js";import{n as Kt,r as qt}from"./base-modal-C7_BDl_U.js";import{_ as Jt,i as Yt,u as Xt}from"./form-control-classes-CGw40z5h.js";import{t as V}from"./brand-button-Dxv6PDeN.js";import{n as Zt}from"./navigation-context-CQZwH_tC.js";import{t as Qt}from"./styled-tooltip-Dl06rkpY.js";import{r as $t,u as en}from"./dropdown-classes-DJe-E6MC.js";import{_ as tn,a as nn,c as rn,d as an,f as on,h as sn,l as H,o as cn,p as ln,t as U,u as W}from"./conversation-store-Ca3ghXap.js";import{t as un}from"./modal-close-button-CkJ0Ktjj.js";import{t as dn}from"./confirmation-modal-Bk4JRcCM.js";import{C as fn,D as pn,S as mn,t as hn}from"./agent-server-conversation-service.api-DozDKIW_.js";import{t as gn}from"./use-is-authed-CFGkY3-Z.js";import{a as _n,c as vn,f as yn,g as bn,l as xn,m as Sn,s as Cn,t as wn}from"./conversation-state-store-a9d2fxRc.js";import{c as Tn,d as En,i as Dn,l as On,n as kn,r as An,s as jn,t as Mn,u as Nn}from"./sidebar-mobile-menu-toggle-BOtyJHwE.js";import{t as Pn}from"./use-click-outside-element-W6Os4Nlb.js";import{n as Fn}from"./use-create-conversation-DwN5vv2f.js";import{r as In}from"./vendor~root-layout~conversation-panel~conversation~shared-conversation-DOuig0C0.js";import{a as G,i as Ln,n as Rn}from"./use-can-manage-org-profiles-BWMahtUh.js";import{t as zn}from"./u-edit-DAkcF52u.js";import{t as Bn}from"./skills-B0IliMxw.js";import{t as Vn}from"./install-server-modal-BbJdhzet.js";import{o as Hn,s as Un,t as Wn}from"./home-store-Dl1dPE58.js";import{t as Gn}from"./use-automation-health-BxXdzZMP.js";import{t as Kn}from"./use-automations-zYb0dUny.js";import{t as qn}from"./use-user-conversation-DT0_QCnL.js";import{t as Jn}from"./copy-Drmhc2jD.js";import{r as Yn}from"./typography-SgFy466J.js";import{n as Xn,o as Zn,t as Qn}from"./extension-module-card-classes-DpeaYhYo.js";import{t as $n}from"./secrets-service-BTor9uAU.js";import{t as er}from"./use-get-secrets-BT4ihRwj.js";import{f as tr,l as nr,s as rr,t as ir}from"./mcp-marketplace-utils-C13fFccR.js";import{t as ar}from"./vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js";import{t as or}from"./x-mark-BopmFoBq.js";import{A as sr,B as cr,C as lr,D as ur,E as dr,F as fr,G as pr,H as mr,I as hr,L as gr,M as _r,O as vr,P as yr,S as br,T as xr,U as Sr,_ as Cr,a as wr,b as Tr,c as Er,g as Dr,h as Or,i as kr,j as Ar,n as jr,o as Mr,p as Nr,r as Pr,s as Fr,t as Ir,v as Lr,w as Rr,x as zr,y as Br,z as Vr}from"./llm-not-configured-banner-BqqYnJ1t.js";import{A as Hr,C as Ur,D as Wr,F as Gr,H as Kr,I as qr,J as Jr,K as Yr,L as Xr,O as Zr,P as Qr,R as $r,S as K,T as ei,U as ti,V as ni,X as q,Y as J,Z as ri,_ as ii,a as ai,b as Y,c as oi,d as si,f as ci,h as li,j as ui,k as di,m as fi,o as pi,q as mi,r as hi,u as gi,w as _i,x as vi,y as yi,z as bi}from"./markdown-renderer-Cb2sBWtV.js";import{n as xi,t as Si}from"./skill-scope-CV1dkAbW.js";import{t as Ci}from"./vendor~index-home~home~conversation-panel~conversation~alert-banner-B3qC_oj8.js";import{t as wi}from"./git-repo-dropdown-ai8qaNkD.js";import{n as Ti,t as Ei}from"./get-git-path-DlAJa_i6.js";import{t as Di}from"./parse-git-remote-url-DpDM9bK6.js";import{t as Oi}from"./use-breakpoint-DWtihr9g.js";import{n as ki,t as Ai}from"./error-state-BALXiBNy.js";import{a as ji,i as Mi,n as Ni,o as Pi,r as Fi,t as Ii}from"./mcp-page-Bm4K2NQq.js";import{n as Li,t as Ri}from"./secret-form-HTUbYw5o.js";var X=e(t(),1),zi={curAgentState:L.LOADING},Bi=tn(e=>({...zi,setCurrentAgentState:t=>e({curAgentState:t}),reset:()=>e(zi)})),Vi=`openhands-last-conversation-by-backend`;function Hi(e,t){return t?`${e}::${t}`:e}function Ui(){if(typeof window>`u`)return{};try{let e=window.localStorage.getItem(Vi);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 Wi(e){if(!(typeof window>`u`))try{window.localStorage.setItem(Vi,JSON.stringify(e))}catch{}}function Gi(e,t,n){if(!n)return;let r=Ui();r[Hi(e,t)]=n,Wi(r)}function Ki(e,t){let n=Ui(),r=Hi(e,t);r in n&&(delete n[r],Wi(n))}var qi=e=>({action:Fe.CHANGE_AGENT_STATE,args:{agent_state:e}}),Ji=e=>`error`in e,Yi=e=>`type`in e&&e.type===`error`,Xi=()=>{let{send:e}=xe(),t=K(e=>e.events);X.useEffect(()=>{if(!t.length)return;let n=t[t.length-1];if(!(ui(n)&&Hr(n))){if(Ji(n)){if(n.error_code===401){T(`Session expired.`);return}typeof n.error==`string`?T(n.error):T(n.message);return}Yi(n)&&`${n.message??``}`.startsWith(`Agent reached maximum`)&&e(qi(L.PAUSED))}},[t.length])},Zi=()=>{let{curAgentState:e}=Jr();return{runtimeActive:!M.includes(e)}};function Qi({children:e}){return Xi(),Zi(),e}var $i=`ACPAuthRequired`,ea={ACPAuthRequired:I.ERROR$ACP_AUTH_REQUIRED_TITLE,ACPSpawnError:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,ACPInitError:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,ACPPromptError:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,UsagePolicyRefusal:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE};function ta(e){return e?ea[e]??null:null}function na(e){return e===$i}var ra={entriesByConversation:{}},ia=(e,t,n)=>({entriesByConversation:{...e.entriesByConversation,[t]:n(e.entriesByConversation[t]??[])}}),aa=tn()(sn(e=>({...ra,addPending:(t,n)=>{let r=pn();return e(e=>ia(e,t,e=>[...e,{id:r,question:n,status:`pending`}])),r},resolve:(t,n,r)=>e(e=>ia(e,t,e=>e.map(e=>e.id===n?{...e,response:r,status:`done`}:e))),fail:(t,n,r)=>e(e=>ia(e,t,e=>e.map(e=>e.id===n?{...e,response:r,status:`error`}:e))),dismiss:(t,n)=>e(e=>ia(e,t,e=>e.filter(e=>e.id!==n)))}),{name:`BtwStore`})),Z=o();function oa({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)(Ce,{className:`w-3.5 h-3.5 fill-success`}),(0,Z.jsx)(`span`,{children:t(I.CHAT_INTERFACE$BTW_GOT_IT)})]})}function sa({conversationId:e}){let{t}=f(`openhands`),n=aa(e=>e.entriesByConversation),r=aa(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)(Ee,{title:(0,Z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`opacity-60`,children:t(I.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(I.CHAT_INTERFACE$BTW_WAITING_FOR_ANSWER):n.response??``,initiallyExpanded:!i,chevronPosition:`before`,titleTrailing:!i&&(0,Z.jsx)(oa,{onClick:()=>r(e,n.id)})},n.id)})})}function ca({conversationId:e}){let t=ii(e=>e.statusByConversation),n=e?t[e]:void 0;return n?.active?(0,Z.jsx)(we,{status:n}):null}var la=`${P} `,ua=(e,t)=>{let n=aa(e=>e.addPending),r=aa(e=>e.resolve),i=aa(e=>e.fail);return(0,X.useCallback)(a=>{let o=a.trim(),s=o===`/btw`||o.startsWith(la);if(!e||!s){t(a);return}let c=o.slice(P.length).trim();if(!c)return;let l=n(e,c);vn(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])},da=`${re} `,fa=/^--max(?:=|\s+)(\d+)\s*/,pa=(e,t)=>{let{t:n}=f();return(0,X.useCallback)(r=>{let i=r.trim(),a=i===`/goal`||i.startsWith(da);if(!e||!a){t(r);return}let o=i.slice(re.length).trim(),s,c=o.match(fa);c&&(s=parseInt(c[1],10),o=o.slice(c[0].length).trim());let l=o;if(!l){T(n(I.GOAL$OBJECTIVE_REQUIRED));return}let u={objective:l};s&&s>=1&&(u.max_iterations=s),Sn(e,u).catch(e=>{let t=n(I.GOAL$START_FAILED);T(e instanceof Error&&e.message?e.message:t)})},[e,t,n])},ma=`flex flex-row gap-1 items-center justify-center rounded-[100px]`;function ha(e){return z(ma,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 ga(e){return e?`white`:`var(--oh-muted)`}var _a=`font-normal text-sm leading-5 truncate`;function va({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,isConversationReady:r=!0}){let{t:i}=f(`openhands`),{trackPullButtonClick:a}=Bt(),o=n&&t&&r;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{a(),e(oe())},disabled:!o,className:z(ha(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)(xr,{width:12,height:12,color:ga(o)})}),(0,Z.jsx)(`div`,{className:z(_a,`max-w-[76px]`),title:i(I.COMMON$PULL),children:i(I.COMMON$PULL)})]})}function ya({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,currentGitProvider:r,isConversationReady:i=!0}){let{t:a}=f(`openhands`),{trackPushButtonClick:o}=Bt(),s=n&&t&&i;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{o(),e(se(r))},disabled:!s,className:z(ha(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)(dr,{width:12,height:12,color:ga(s)})}),(0,Z.jsx)(`div`,{className:z(_a,`max-w-[77px]`),title:a(I.COMMON$PUSH),children:a(I.COMMON$PUSH)})]})}function ba({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,currentGitProvider:r,isConversationReady:i=!0}){let{t:a}=f(`openhands`),{trackCreatePrButtonClick:o}=Bt(),s=n&&t&&i;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{o(),e(ge(r))},disabled:!s,className:z(ha(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)(Rr,{width:12,height:12,color:ga(s)})}),(0,Z.jsx)(`div`,{className:z(_a,`max-w-[126px]`),title:a(I.COMMON$PULL_REQUEST),children:a(I.COMMON$PULL_REQUEST)})]})}function xa(e){return e.kind===`BashCommand`}function Sa(e){return e.kind===`BashOutput`}function Ca(e){return e.kind===`BashError`}function wa(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=ee(e),l=new WebSocket(c);r.current=l,i.current=null;let u=Yr(l);l.onopen=()=>{u(),mi(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(xa(t)){let e=o.current.shift();e&&s.current.set(t.id,{...e,stdout:[],stderr:[]})}else if(Sa(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 Ca(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 Ta={repository:null,branch:null,provider:null,remoteUrl:null},Ea=[`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 Da(e,t){let n=await e(Ea,t,10);if(n.exit_code!==0)return Ta;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 Ta;let s=Di(i);return{repository:s?.repository??null,provider:s?.provider??null,remoteUrl:i||null,branch:o}}var Oa=()=>{let{data:e}=J(),t=Ti(),{backend:n}=A(),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=wa(a,o,d),p=(0,X.useRef)(f);return p.current=f,y({queryKey:[`local-git-info`,i,a,o,s],queryFn:async()=>Da((e,t,n)=>p.current(e,t,n),s),enabled:d,retry:!1,staleTime:1e4,refetchInterval:1e4,gcTime:1e3*60*5,meta:{disableToast:!0}})},ka=()=>{let e=d(),{t}=f(`openhands`);return _({mutationFn:e=>hn.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)}),T(t(I.CONVERSATION$FAILED_TO_UPDATE_REPOSITORY))},onSuccess:()=>{E(t(I.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 Aa({children:e,tooltipMessage:t,testId:n,shouldShowTooltip:r}){return r?(0,Z.jsx)(Qt,{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 ja({isOpen:e,onClose:t,onLaunch:n,defaultProvider:r=`github`}){let{t:i}=f(`openhands`),{providers:a}=Un(),[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)(Wt,{onClose:_,children:(0,Z.jsxs)(Gt,{width:`sm`,className:`relative items-start border border-[var(--oh-border)] !gap-4`,children:[(0,Z.jsx)(un,{onClose:_,testId:`close-open-repository-modal`}),(0,Z.jsx)(`div`,{className:`w-full pr-6`,children:(0,Z.jsx)(qt,{title:i(I.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(I.CONVERSATION$SELECT_OR_INSERT_LINK)}),a.length>1&&(0,Z.jsx)(wr,{providers:a,value:o,onChange:p})]}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-[10px] w-full`,children:[(0,Z.jsx)(wi,{provider:v,value:c?.id||null,repositoryName:c?.full_name||null,onChange:m,className:`w-full`}),(0,Z.jsx)(kr,{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)(V,{type:`button`,variant:`secondary`,onClick:_,children:i(I.BUTTON$CANCEL)}),(0,Z.jsx)(V,{type:`button`,variant:`primary`,onClick:g,isDisabled:!y,children:i(I.BUTTON$LAUNCH)})]})]})})}function Ma({onSuggestionsClick:e}){let{t}=f(`openhands`),{conversationId:n}=q(),[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(!1),s=(0,X.useRef)(null),{addRecentRepository:c}=Wn(),l=Y(e=>e.enqueuePendingMessage),u=Y(e=>e.markPendingMessageError),{backend:d}=A(),p=d.kind===`local`,{providers:m}=Un(),h=p||m.length>0,{data:g}=J(),{repositoryInfo:_}=fr(),{data:v}=Oa(),y=mr(),b=pi()?.isLoadingHistory??!1,x=(0,X.useRef)(y);(0,X.useEffect)(()=>{x.current=y},[y]);let{send:S}=xe(),C=(0,X.useRef)(S);(0,X.useEffect)(()=>{C.current=S},[S]);let w=Se(),{mutate:E}=ka(),{mutate:D,isPending:O}=Fn(),k=g?.selected_repository||_?.selectedRepository,j=g?.git_provider||_?.gitProvider,ee=g?.selected_branch||_?.selectedBranch,M=k||v?.repository||void 0,N=j||v?.provider,te=ee||v?.branch||void 0,ne=(g?.id?fn(g.id):null)?.selected_workspace??null,re=ne&&ne.replace(/\/+$/,``).split(`/`).pop()||null,P=!!M&&!!N,F=!!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`){T(t(I.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(I.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))})}}))},ae=!p||!!M||!!re,oe=p&&!P;return ae||te||P?(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)(Pr,{selectedRepository:M,gitProvider:N,workspaceName:re,onClick:()=>i(!0),disabled:!F||oe}):null,te?(0,Z.jsx)(jr,{selectedBranch:te,selectedRepository:M,gitProvider:N}):null,P?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Aa,{tooltipMessage:t(I.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-pull-button-tooltip`,shouldShowTooltip:!P,children:(0,Z.jsx)(va,{onSuggestionsClick:e,hasRepository:P,providerTokensReady:h,isConversationReady:F})}),(0,Z.jsx)(Aa,{tooltipMessage:t(I.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-push-button-tooltip`,shouldShowTooltip:!P,children:(0,Z.jsx)(ya,{onSuggestionsClick:e,hasRepository:P,providerTokensReady:h,currentGitProvider:N,isConversationReady:F})}),(0,Z.jsx)(Aa,{tooltipMessage:t(I.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-pr-button-tooltip`,shouldShowTooltip:!P,children:(0,Z.jsx)(ba,{onSuggestionsClick:e,hasRepository:P,providerTokensReady:h,currentGitProvider:N,isConversationReady:F})})]}):null]}),(0,Z.jsx)(ja,{isOpen:r,onClose:()=>i(!1),onLaunch:ie,defaultProvider:N})]}):null}function Na({onSubmit:e,disabled:t=!1,hasStartedConversation:n}){let{images:r,files:i,imagesMarkedUploadAsFile:a,clearAllFiles:o,subConversationTaskId:s}=U(),{curAgentState:c}=Jr(),{data:l}=J(),{conversationId:u}=ri(),d=u??l?.id??null,{taskStatus:f}=yr(s,l?.id||null),{handleUpload:p}=Mr(),m=Fr(d,pa(d,ua(d,t=>{let{imagesToEmbed:n,imagesAsFiles:s}=pr(r,a);e(t,n,[...i,...s]),o()})));return(0,Z.jsxs)(`div`,{"data-testid":`interactive-chat-box`,children:[(0,Z.jsx)(Er,{disabled:t||c===L.AWAITING_USER_CONFIRMATION||ye(f),isNewConversationPending:t,hasStartedConversation:n,onSubmit:m,onFilesPaste:p}),(0,Z.jsx)(`div`,{className:`mt-3 pb-3`,children:(0,Z.jsx)(Ma,{onSuggestionsClick:e=>{m(e)}})})]})}function Pa(){let e=K(e=>e.events),t=K(e=>e.uiEvents),n=X.useMemo(()=>t.filter(si),[t]),r=X.useMemo(()=>e,[e]),i=X.useMemo(()=>n.length,[n]),a=X.useMemo(()=>r.some(e=>e.source===`agent`&&!ti(e)&&!Qr(e)),[r]),o=gi(r);return{storeEvents:e,uiEvents:t,renderableEvents:n,allConversationEvents:r,totalEvents:i,hasSubstantiveAgentActions:a,conversationUserEventsExist:o,userEventsExist:o}}var Fa=e=>`timestamp`in e?e.timestamp:void 0,Ia=e=>{let t=!!e&&nn(e),n=t?void 0:e,{data:r}=qn(e??null),{data:i,isFetched:a}=ci(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||nn(e)||d.current||!f.current||!r)return;let{events:t}=K.getState(),n=t[0];if(!n)return;let i=Fa(n);if(!i){f.current=!1,u(!1);return}d.current=!0,c(!0);try{let t=await fi.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),oi(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])}},La={kind:`translation`,key:`ACTION_MESSAGE$THINK`,values:{}},Ra=new Set([`ExecuteBashAction`,`TerminalAction`,`FileEditorAction`,`StrReplaceEditorAction`,`MCPToolAction`,`InvokeSkillAction`,`TaskAction`,`ThinkAction`,`TaskTrackerAction`,`GrepAction`,`GlobAction`,`BrowserNavigateAction`,`BrowserClickAction`,`BrowserTypeAction`,`BrowserGetStateAction`,`BrowserGetContentAction`,`BrowserScrollAction`,`BrowserGoBackAction`,`BrowserListTabsAction`,`BrowserSwitchTabAction`,`BrowserCloseTabAction`]),za=e=>{if(!di(e))return null;let t=We(e);return t?{kind:`text`,text:t}:Ra.has(e.action.kind)?ke(e):null},Ba=e=>e.source===`environment`&&`rejection_reason`in e,Va=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(bi(i)||Ba(i)){t.add(i.action_id),n.add(i.tool_call_id);continue}if(Hr(i)){n.add(i.tool_call_id);continue}if(Zr(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=Ke(i);return e?{kind:`translation`,key:Ae(i),values:{title:e}}:La}if(di(i)&&!t.has(i.id)&&!n.has(i.tool_call_id))return za(i)??La}}return La};function Ha({events:e}){let t=Va(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)(x,{ns:`openhands`,i18nKey:t.key,values:t.values,components:{path:(0,Z.jsx)(Pe,{}),cmd:(0,Z.jsx)(Ne,{})}})})]})}function Ua({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)(lr,{width:24,height:24,color:`#fff`});case`AUTO_MERGE_PRS`:return(0,Z.jsx)(br,{width:19,height:20,color:`#fff`});case`FIX_README`:return(0,Z.jsx)(zr,{width:24,height:24,color:`#fff`});case`CLEAN_DEPENDENCIES`:return(0,Z.jsx)(Tr,{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 Wa({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)(Ua,{suggestion:e,onClick:t},n))})}var Ga=I.SUGGESTIONS$HACKER_NEWS,Ka=`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.`,qa=I.SUGGESTIONS$HELLO_WORLD,Ja=`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.`,Ya=I.SUGGESTIONS$TODO_APP,Xa=`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.`,Za={repo:Br,"non-repo":{[Ga]:Ka,[qa]:Ja,[Ya]:Xa}};function Qa({onSuggestionsClick:e}){let{t}=f(`openhands`),{shouldHideSuggestions:n}=U();return(0,Z.jsx)(i,{children:!n&&(0,Z.jsxs)(Ze.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(I.LANDING$TITLE)})}),(0,Z.jsx)(Wa,{suggestions:Object.entries(Za.repo).slice(0,4).map(([e,t])=>({label:e,value:t})),onSuggestionClick:e})]})})}var $a={files:[],initialPrompt:null,selectedRepository:null,selectedRepositoryProvider:null,replayJson:null},eo=tn(e=>({...$a,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(()=>$a)})),to=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 no({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)(to,{width:15,height:15})})}var ro=[{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 io({width:e,height:t}){return(0,Z.jsx)(`div`,{className:z(`rounded-md bg-foreground/5 animate-pulse`,e,t)})}function ao(){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(I.CHAT_INTERFACE$LOADING_CONVERSATION),children:ro.map((e,t)=>(0,Z.jsx)(`div`,{className:z(`flex w-full`,e.align),children:(0,Z.jsx)(io,{width:e.width,height:e.height})},t))})}var oo=220;function so({message:e,code:t,onDismiss:n,onRetry:r,onReauth:i,classification:a}){let{t:o,i18n:s}=f(`openhands`),c=ta(t),[l,u]=X.useState(!1),[d,m]=X.useState(!1),[h,g]=X.useState(!1),_=X.useRef(null),v=s.exists(e,{ns:`openhands`}),y=v?String(o(e)):e,b=y.length>oo,S=b&&!l;return X.useEffect(()=>{if(!h)return;let e=setTimeout(()=>{g(!1)},2e3);return()=>clearTimeout(e)},[h]),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){m(!1);return}m(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:z(`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)(p,{"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:z(`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)(x,{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(I.ERROR$ACP_UPDATE_CREDENTIALS)}),b&&(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?I.COMMON$VIEW_LESS:I.COMMON$VIEW_MORE)})]}),(0,Z.jsxs)(`div`,{className:z(`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(I.CHAT_INTERFACE$MESSAGE_RETRY)}),(0,Z.jsx)(`button`,{type:`button`,onClick:async()=>{try{await navigator.clipboard.writeText(y),g(!0)}catch{T(o(I.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(h?I.BUTTON$COPIED:I.BUTTON$COPY),"data-testid":`error-message-banner-copy`,children:h?(0,Z.jsx)(Je,{className:`h-4 w-4`,"aria-hidden":!0}):(0,Z.jsx)(Qe,{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(I.BUTTON$CLOSE),"data-testid":`error-message-banner-dismiss`,children:(0,Z.jsx)(Pt,{className:`h-4 w-4`,"aria-hidden":!0})})]})]})}var co={dismissedEventIds:{}},lo=tn()(sn(e=>({...co,dismiss:t=>e(e=>({dismissedEventIds:{...e.dismissedEventIds,...Object.fromEntries(t.map(e=>[e,!0]))}}))}),{name:`SkillInstallBannerStore`})),uo=/^✅ Successfully installed '([^']+)' to (.+)$/m;function fo(e){let t=new Map;for(let n of e){if(!Gr(n))continue;let e=n.observation.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
18
|
-
`).match(uo);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 po=e=>{let t=K(e=>e.events),n=K(e=>e.loadedConversationId),r=lo(e=>e.dismissedEventIds),i=lo(e=>e.dismiss),a=(0,X.useMemo)(()=>!e||e!==n?[]:fo(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 mo({conversationId:e}){let{t}=f(`openhands`),{installs:n,dismissAll:r}=po(e),{backend:i}=A(),{mutate:a,isPending:o}=Fn(),s=b(),{navigate:c}=Zt(),{data:l}=J();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(I.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=>T(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(I.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(I.BUTTON$CLOSE),"data-testid":`skill-install-restart-dismiss`,children:(0,Z.jsx)(Pt,{className:`h-4 w-4`,"aria-hidden":!0})})]})}function ho(){let{t:e}=f(`openhands`),{conversationId:t}=ri(),n=Y(e=>e.pendingMessages),r=Y(e=>e.markPendingMessageError),i=Y(e=>e.markPendingMessageSending),a=Y(e=>e.removePendingMessage),o=U(e=>e.restoreMessageToInputIfEmpty),{send:s}=xe(),c=X.useMemo(()=>t?n.filter(e=>gr(t,e.conversationId)):[],[n,t]),l=X.useCallback(async t=>{let n=Y.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(I.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)(Me,{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)(Ue,{size:`small`,images:e.imageUrls})},e.id))})}var go=()=>{let{data:e}=J();return _({mutationKey:[`unified-upload-files`],mutationFn:async t=>{let{conversationId:n,files:r}=t;return Cn(n,r,e)},meta:{disableToast:!0}})},_o=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 vo(){let{t:e}=f(`openhands`),{data:t}=Ht();return t?.confirmation_mode?(0,Z.jsx)(Qt,{closeDelay:100,content:e(I.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)(_o,{width:15,height:15})})}):null}var yo=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 bo({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)(Ze.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)(yo,{className:`w-4 h-4`,color:t})},`dot-${e}`),(0,Z.jsx)(Ze.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 xo=()=>{let e=d(),{navigate:t}=Zt(),{t:n}=f(`openhands`),{data:r}=J(),{trackConversationCreated:i}=Bt();return _({mutationFn:async()=>{if(!r?.id)throw Error(`No active conversation`);let e=await hn.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(I.CONVERSATION$CLEARING),{...k,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`),E(n(I.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(I.CONVERSATION$CLEAR_UNKNOWN_ERROR);e instanceof Error?t=e.message:typeof e==`string`&&(t=e),T(n(I.CONVERSATION$CLEAR_FAILED,{error:t}))}})};function So(e,t){return e?`github`:t?`replay`:`direct`}function Co(){let{trackInitialQuerySubmitted:e,trackUserMessageSent:t}=Bt(),{setMessageToSend:n,conversationMode:r,planContent:i}=U(),{errorMessage:a,errorCode:o,errorClassification:s,removeErrorMessage:c,setErrorMessage:u}=vi(),d=l(),{isTask:p,taskStatus:m,taskDetail:h}=fr(),g=p,_=pi(),{send:v}=xe(),{renderableEvents:y,allConversationEvents:b,totalEvents:x,hasSubstantiveAgentActions:S,userEventsExist:C}=Pa(),w=Y(e=>e.enqueuePendingMessage),E=Y(e=>e.markPendingMessageError),D=Y(e=>e.pendingMessages),{t:O}=f(`openhands`),k=X.useRef(null),{scrollDomToBottom:A,onChatBodyScroll:j,hitBottom:ee,autoScroll:M,setAutoScroll:N,setHitBottom:te}=Ge(k),{mutate:ne,isPending:re}=xo(),{curAgentState:P}=Jr(),{handleBuildPlanClick:F}=Re(),{data:ie}=J(),ae=ie?.sandbox_status??null,oe=Cr(),{isConfigured:se,isLoading:le}=dt(),ue=!le&&!se,de=P===L.RUNNING||P===L.LOADING;X.useEffect(()=>{if(de||r!==`plan`||!i)return;let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),F(e),A())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[de,r,i,F,A]);let{selectedRepository:pe,replayJson:me}=eo(),{conversationId:R}=ri(),he=ii(e=>{let t=R?e.statusByConversation[R]:void 0;return t?.active?`${t.iteration}:${t.status}`:null}),{mutateAsync:ge}=go(),{isLoading:z,hasMore:_e,loadOlder:ve}=Ia(R),ye=X.useRef(null),be=X.useCallback(e=>{if(g||z||!_e)return;let t=e.scrollTop<=80,n=e.scrollHeight<=e.clientHeight+80;!t&&!n||(ye.current={scrollHeight:e.scrollHeight,scrollTop:e.scrollTop},ve().catch(e=>{ye.current=null,u(e instanceof Error&&e.message?e.message:O(I.ERROR$GENERIC))}))},[_e,z,g,ve,u,O]),Se=X.useCallback(e=>{e.deltaY<0&&e.currentTarget.scrollTop<=0&&be(e.currentTarget)},[be]),Ce=X.useMemo(()=>R?D.some(e=>gr(R,e.conversationId)):!1,[D,R]),we=li(e=>R?(e.entriesByConversation[R]?.length??0)>0:!1),Te=_r({isLoadingHistory:_?.isLoadingHistory===!0,hasUserEvents:C,hasPendingUserMessages:Ce,hasSubstantiveAgentActions:S,hasModelEntries:we}),Ee=b.length>0||Ce||!_?.isLoadingHistory,ke=!!R,Ae=!Ee&&!p,je=async(r,i,a)=>{if(r.trim()===`/new`){if(!R){T(O(I.CONVERSATION$CLEAR_NO_ID));return}if(x===0){T(O(I.CONVERSATION$CLEAR_EMPTY));return}if(re)return;ne();return}let o=[...i],s=[...a];x===0?e({entryPoint:So(pe!==null,me!==null),queryCharacterLength:r.length,replayJsonSize:me?.length}):t({sessionMessageCount:x,currentMessageLength:r.length});let c=Vr([...o,...s]);if(!c.isValid){T(`Error: ${c.errorMessage}`);return}let l=o.map(e=>cr(e)),u=await Promise.all(l),d=new Date().toISOString(),{skipped_files:f,uploaded_files:p}=s.length>0?await ge({conversationId:R,files:s}):{skipped_files:[],uploaded_files:[]};f.forEach(e=>T(e.reason));let m=`${O(I.CHAT_INTERFACE$AUGMENTED_PROMPT_FILES_TITLE)}: ${p.join(`
|
|
19
|
-
|
|
20
|
-
`)}`,h=p.length>0?`${r}\n\n${m}`:r,g=w({conversationId:R,text:r,content:h,imageUrls:u,fileUrls:p,timestamp:d});A(),n(``);try{await v(Ie(h,u,p,d))}catch(e){E(g,e instanceof Error?e.message:O(I.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))}};X.useEffect(()=>{if(ye.current&&k.current){let{scrollHeight:e,scrollTop:t}=ye.current,n=k.current,r=n.scrollHeight-e;r>0&&(n.scrollTop=t+r),ye.current=null;return}M&&A()},[y.length,Ce,he,A]);let Me=X.useRef(be);X.useEffect(()=>{Me.current=be}),X.useEffect(()=>{let e=k.current;e&&Me.current(e)},[y.length,_e]);let Ne={scrollRef:k,autoScroll:M,setAutoScroll:N,scrollDomToBottom:A,hitBottom:ee,setHitBottom:te,onChatBodyScroll:j},Pe=P===L.LOADING||P===L.INIT,Fe=P===L.STOPPED,Le=P===L.PAUSED,ze=fe({isPausing:Le,isTask:p,taskStatus:m,isStartingStatus:Pe,isStopStatus:Fe,curAgentState:P}),Be=ce({isPausing:Le,isTask:p,taskStatus:m,taskDetail:h,isStartingStatus:Pe,isStopStatus:Fe,curAgentState:P,errorMessage:a,t:O});return(0,Z.jsx)(De,{value:Ne,children:(0,Z.jsxs)(`div`,{className:`relative flex h-full flex-col justify-between px-4`,"data-testid":`chat-interface`,children:[!S&&!Ce&&!C&&!we&&!Ae&&!g&&x===0&&!oe&&!ue&&(0,Z.jsx)(Qa,{onSuggestionsClick:e=>n(e)}),(0,Z.jsxs)(`div`,{ref:k,"data-testid":`chat-scroll-container`,onScroll:e=>{j(e.currentTarget),be(e.currentTarget)},onWheel:Se,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:[Ae&&ke&&(0,Z.jsx)(ao,{}),Ae&&!ke&&(0,Z.jsx)(`div`,{className:`flex justify-center`,"data-testid":`loading-spinner`,children:(0,Z.jsx)(zt,{size:`small`})}),z&&(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)(zt,{size:`small`}),(0,Z.jsx)(`span`,{children:O(I.CHAT_INTERFACE$FETCHING_OLDER_MESSAGES)})]}),(0,Z.jsx)(Oe,{conversationId:R,anchorEventId:null}),Ee&&y.length>0&&(0,Z.jsx)(He,{messages:y,allEvents:b}),(0,Z.jsx)(ho,{}),(0,Z.jsx)(ca,{conversationId:R})]}),(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-[6px] pb-4`,children:[(0,Z.jsx)(mo,{conversationId:R}),(0,Z.jsx)(sa,{conversationId:R}),a&&(0,Z.jsx)(so,{message:a,code:o,classification:s,onDismiss:c,onRetry:a===`Unable to connect to server`?()=>_?.reconnect():void 0,onReauth:na(o)?()=>d(`/settings/agents`):void 0}),ue&&!oe&&(0,Z.jsx)(Ir,{}),oe?(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(ae===`ERROR`?I.CHAT_INTERFACE$ERROR_SANDBOX_TITLE:I.CHAT_INTERFACE$ARCHIVED_SANDBOX_TITLE)}),(0,Z.jsx)(`p`,{className:`text-xs text-[var(--oh-muted)] mt-0.5`,children:O(ae===`ERROR`?I.CHAT_INTERFACE$ERROR_SANDBOX_DESCRIPTION:I.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)(vo,{}),Pe&&(0,Z.jsx)(bo,{statusColor:ze,status:Be})]}),ee?P===L.RUNNING&&(0,Z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-9 bottom-0 flex justify-center`,children:(0,Z.jsx)(Ha,{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)(no,{onClick:A})})]})}),(0,Z.jsx)(Na,{onSubmit:je,disabled:re||ue,hasStartedConversation:Te})]})]})]})})}function wo(e){return e?e.replace(/\/+$/,``).split(`/`).pop()||e:null}function To(){let{conversationId:e}=q(),{data:t}=J();return{workspaceName:wo((e?fn(e):null)?.selected_workspace??t?.selected_workspace??null)}}function Eo(){let{data:e}=J(),{repositoryInfo:t}=fr(),{data:n}=Oa(),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 Do(e){return e.startsWith(`/`)?e:`/${e}`}async function Oo(e,t,n,r){let i=O().backend;if(i.kind===`cloud`&&e){let a=new URLSearchParams({...r,path:Do(r.path)});return Rt({backend:i,method:`GET`,hostOverride:j(e),path:`${n}?${a.toString()}`,authMode:`session-api-key`,sessionApiKey:t??void 0})}return(await new Lt(S({conversationUrl:e,sessionApiKey:t})).client.get(n,{params:r})).data}function ko(e){return D(e,404)||g(e)&&e.response?.status===404}var Ao=class{static async getGitChanges(e,t,n,r){let i=O().backend;if(i.kind===`cloud`&&e){let t=new URLSearchParams;t.set(`path`,Do(r));let n=await Rt({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:Hn(String(e.status)),path:e.path}))}let a=await new Lt(S({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:Hn(String(e.status)),path:e.path}))}static async getGitCommits(e,t,n,r=50){try{let i=await Oo(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(ko(e))return null;throw e}}static async getCommitChanges(e,t,n,r){let i=await Oo(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:Hn(String(e.status)),path:e.path}))}static async getGitChangeDiff(e,t,n,r,i){if(i){let e=await Oo(t,n,`/api/git/diff`,{path:r,commit:i});return{modified:e?.modified??``,original:e?.original??``,...e?.diff?{diff:e.diff}:{}}}let a=O().backend;if(a.kind===`cloud`&&e){let t=new URLSearchParams;t.set(`path`,Do(r));let n=await Rt({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 Lt(S({conversationUrl:t,sessionApiKey:n})).gitDiff(r);return{modified:o.modified??``,original:o.original??``,...o.diff?{diff:o.diff}:{}}}},jo=()=>{let{conversationId:e}=q(),{data:t}=J(),[n,r]=X.useState([]),i=X.useRef(null),a=Ti(),o=t?.conversation_url,s=t?.session_api_key,c=t?.selected_repository,l=t?.workspace?.working_dir?.trim(),u=X.useMemo(()=>Ei(c,l),[c,l]),d=y({queryKey:[`file_changes`,e,o,s,u],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return Ao.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 Mo(e){let t=0,n=0;for(let r of e.split(`
|
|
21
|
-
`))r.startsWith(`+++`)||r.startsWith(`---`)||r.startsWith(`@@`)||(r.startsWith(`+`)?t+=1:r.startsWith(`-`)&&(n+=1));return{additions:t,deletions:n}}function No(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 Po(e){return typeof e.diff==`string`&&e.diff.length>0?Mo(e.diff):No(e.original??``,e.modified??``)}function Fo(e){return e.reduce((e,t)=>({additions:e.additions+t.additions,deletions:e.deletions+t.deletions}),{additions:0,deletions:0})}function Io(){let{conversationId:e}=q(),{data:t}=J(),n=Ti(),{data:r,isLoading:i,isSuccess:a,isError:o}=jo(),s=t?.conversation_url,c=t?.session_api_key,l=(0,X.useMemo)(()=>Ei(t?.selected_repository,t?.workspace?.working_dir?.trim()),[t?.selected_repository,t?.workspace?.working_dir]),u=v({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()=>Ao.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=Fo(u.flatMap(e=>e.data?[Po(e.data)]:[]));return{additions:f.additions,deletions:f.deletions,changeCount:r?.length??0,isLoading:i||d,isError:o}}var Lo=(0,X.createContext)(null);function Ro({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)(Lo.Provider,{value:u,children:e})}function zo(){let e=(0,X.useContext)(Lo);if(!e)throw Error(`useConversationOverviewDrawer must be used within ConversationOverviewDrawerProvider`);return e}function Bo(){return(0,X.useContext)(Lo)}var Vo=e(r(),1),Ho=`!w-auto whitespace-nowrap`;function Uo({anchorRef:e,onClose:t,gitProvider:n,testIdPrefix:r=`conversation-git-actions`}){let{t:i}=f(`openhands`),a=Pn(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?Vo.createPortal((0,Z.jsxs)(It,{ref:a,testId:`${r}-menu`,theme:`popover`,style:s,className:`w-max min-w-[8rem]`,children:[(0,Z.jsx)(B,{testId:`${r}-commit`,onClick:()=>{o(de()),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(pt,{className:`size-4`,"aria-hidden":!0}),text:i(I.DIFF_VIEWER$COMMITS)})}),(0,Z.jsx)(B,{testId:`${r}-pull`,onClick:()=>{o(oe()),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(xr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$PULL)})}),(0,Z.jsx)(B,{testId:`${r}-push`,onClick:()=>{o(se(n)),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(dr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$PUSH)})}),(0,Z.jsx)(B,{testId:`${r}-create-pr`,onClick:()=>{o(ge(n)),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(Rr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$CREATE_PR)})}),(0,Z.jsx)(B,{testId:`${r}-create-new-branch`,onClick:()=>{o(me()),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(sr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$CREATE_NEW_BRANCH)})})]}),document.body):null}var Wo=z(`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`),Go=`size-4 shrink-0 text-[var(--oh-muted)]`,Ko=`conversation-overview-diffs-git-action`,qo=z(Ko,`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)]`),Jo=z(`flex items-center rounded-md transition-colors`,`hover:bg-white/5`,`has-[.${Ko}:hover]:bg-transparent`),Yo=z(`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 Xo(){let{t:e}=f(`openhands`),{navigateToChanges:t}=hi(),n=Bo(),{data:r}=J(),{additions:i,deletions:a,isLoading:o}=Io(),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:Jo,children:[(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-diffs`,"aria-label":e(I.CONVERSATION$OVERVIEW_OPEN_CHANGES),onClick:()=>{n?.closeDrawer(),t()},className:Wo,children:[(0,Z.jsx)(ht,{className:Go,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(I.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:z(`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:ie},children:e(I.CONVERSATION$OVERVIEW_DIFF_ADDITIONS,{count:i.toLocaleString()})}),(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-diffs-deletions`,style:{color:ne},children:e(I.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(I.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),"aria-expanded":c,"aria-haspopup":`menu`,onClick:e=>{e.stopPropagation(),l(e=>!e)},className:z(qo,!c&&Yo,c&&`pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]`),children:(0,Z.jsx)(pt,{className:`size-4`,"aria-hidden":!0})}),c?(0,Z.jsx)(Uo,{anchorRef:u,gitProvider:s,testIdPrefix:`conversation-overview-diffs-git`,onClose:()=>l(!1)}):null]})})]})}var Zo=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`})}),Qo=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`},$o={[W.workspace]:{section:W.workspace,icon:_t,i18nKey:I.CONVERSATION$OVERVIEW_WORKSPACE}},es=[{part:H.changes,icon:ht,i18nKey:I.COMMON$CHANGES,opensChanges:!0},{part:H.repository,icon:Ye,i18nKey:I.CONVERSATION$REPOSITORY},{part:H.branch,icon:st,i18nKey:I.CONVERSATION$BRANCH},{part:H.commits,icon:pt,i18nKey:I.DIFF_VIEWER$COMMITS,opensCommits:!0},{part:H.pull_requests,icon:Rr,i18nKey:I.CONVERSATION$OVERVIEW_PULL_REQUESTS,drawerSection:Q.pull_requests}];function ts({testId:e,pinned:t,pinnedLabel:n,unpinnedLabel:r,onClick:i}){return(0,Z.jsx)(`button`,{type:`button`,"data-testid":e,className:z(`flex shrink-0 cursor-pointer items-center justify-center rounded-r px-2 text-white`,$t,`hover:bg-white/10`),"aria-pressed":t,"aria-label":t?n:r,onClick:i,children:(0,Z.jsx)(`span`,{className:z(`ml-auto overflow-hidden`,en),"aria-hidden":!0,children:t?(0,Z.jsx)(Qo,{className:`size-4`,width:16,height:16}):(0,Z.jsx)(Zo,{className:`size-4`,width:16,height:16})})})}function ns({isOpen:e,onClose:t,ignoreOutsideClickRef:n,anchorRef:r}){let i=Pn(t,n),[a,o]=(0,X.useState)(),{t:s}=f(`openhands`),{conversationId:c}=q(),{state:l,setUnpinnedOverviewSections:u,setUnpinnedOverviewGitParts:d}=rn(c),{navigateToChanges:p,navigateToCommits:m}=hi(),h=Bo();(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=ln(W.git,l.unpinnedOverviewSections??[]),x=s(I.CONVERSATION$UNPIN_OVERVIEW_SECTION),S=s(I.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:en,"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:z(`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:z(`flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-l p-2 text-start text-white`,$t),onClick:c,children:u}):(0,Z.jsx)(`div`,{"data-testid":t,className:z(`flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white`,$t),children:u}),(0,Z.jsx)(ts,{testId:n,pinned:a,pinnedLabel:x,unpinnedLabel:S,onClick:l})]})},e)},w=e=>{if(e===W.git)return null;let t=$o[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:ln(e,l.unpinnedOverviewSections??[]),isActionable:!1,onPinToggle:t=>_(e,t)})},T=(0,Z.jsxs)(It,{ref:i,testId:`conversation-overview-context-menu`,theme:y?`popover`:`default`,position:y?`none`:`bottom`,alignment:y?`none`:`right`,spacing:y?`none`:`default`,className:z(`z-[9999] w-fit`,y?`mt-0`:`mt-2`),children:[an.map((e,t)=>(0,Z.jsxs)(X.Fragment,{children:[t>0?(0,Z.jsx)(ut,{testId:`conversation-overview-menu-divider-${t}`,inset:`menu`}):null,e.sections.map(e=>w(e))]},e.sections.join(`-`))),(0,Z.jsx)(ut,{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:st,label:s(I.CONVERSATION$OVERVIEW_GIT),pinned:b,isActionable:!1,onPinToggle:e=>_(W.git,e)}),es.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:on(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`?Vo.createPortal((0,Z.jsx)(`div`,{style:a,children:T}),document.body):T}var rs={github:[`GITHUB_TOKEN`,`GH_TOKEN`,`github`],gitlab:[`GITLAB_TOKEN`,`GL_TOKEN`,`gitlab`],bitbucket:[`BITBUCKET_TOKEN`,`bitbucket`],forgejo:[`FORGEJO_TOKEN`,`forgejo`]},is=30;async function as(e){if(O().backend.kind!==`local`)return null;let t=rs[e]??[];if(t.length===0)return null;let n=await $n.getSecrets(),r=new Set(n.map(e=>e.name)),i=t.find(e=>r.has(e));if(!i)return null;try{return await new h(S()).getSecret(i)}catch{return null}}function os(e,t,n){let r=_e(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 ss(e,t){let n=_e(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 cs(e,t){let n=_e(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 ls(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 us(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 ds=class{static constructIssuesListUrl=ss;static constructPullRequestsListUrl=cs;static async listPullRequests(e,t){let n=await as(t);if(t===`gitlab`)return(await us(`/projects/${encodeURIComponent(e)}/merge_requests?state=opened&per_page=${is}`,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 ls(`/repos/${r}/${i}/pulls?state=open&per_page=${is}`,n)).map(n=>({id:n.id,number:n.number,title:n.title,url:n.html_url||he(n.number,t,e),authorLogin:n.user?.login??null,updatedAt:n.updated_at??null}))}static async listIssues(e,t){let n=await as(t);if(t===`gitlab`)return(await us(`/projects/${encodeURIComponent(e)}/issues?state=opened&per_page=${is}`,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 ls(`/repos/${r}/${i}/issues?state=open&per_page=${is}`,n)).filter(e=>!e.pull_request).map(n=>({id:n.id,number:n.number,title:n.title,url:n.html_url||os(n.number,t,e),authorLogin:n.user?.login??null,updatedAt:n.updated_at??null}))}};function fs(e,t){return y({queryKey:[`repository-pull-requests`,t,e],queryFn:()=>ds.listPullRequests(e,t),enabled:!!(e&&t),staleTime:6e4,meta:{disableToast:!0}})}function ps(e,t){return y({queryKey:[`repository-issues`,t,e],queryFn:()=>ds.listIssues(e,t),enabled:!!(e&&t),staleTime:6e4,meta:{disableToast:!0}})}var ms=()=>{let{conversationId:e}=q(),{data:t}=J(),n=Ti(),r=t?.conversation_url,i=t?.session_api_key,a=t?.selected_repository,o=t?.workspace?.working_dir?.trim(),s=X.useMemo(()=>Ei(a,o),[a,o]),c=y({queryKey:[`git_commits`,e,r,i,s],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return Ao.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}},hs=`size-4 shrink-0 text-[var(--oh-muted)]`,gs=z(`size-3.5 shrink-0 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100`),_s=`-`;function vs(){let{t:e}=f(`openhands`),{conversationId:t}=q(),{state:n}=rn(t),{navigateToCommits:r}=hi(),i=Bo(),{data:a}=Ht(),{repository:o,provider:s,branch:c,isConnected:l}=Eo(),u=on(H.repository,n.unpinnedOverviewGitParts??[]),d=on(H.branch,n.unpinnedOverviewGitParts??[]),p=on(H.commits,n.unpinnedOverviewGitParts??[]),m=on(H.pull_requests,n.unpinnedOverviewGitParts??[]),h=fs(m?o:null,m?s:null),g=ms();if(!l||!o||!s||!u&&!d&&!p&&!m)return null;let _=a?.provider_tokens_set?.[s]??null,v=le(s,o,_),y=c?pe(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):_s,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:z(`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)(ct,{gitProvider:s,className:hs}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:o}),(0,Z.jsx)(rt,{className:gs,"aria-hidden":!0})]}):null,d?c&&y?(0,Z.jsxs)(`a`,{href:y,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-git-branch`,className:z(`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)(In,{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)(rt,{className:gs,"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)(st,{className:`size-3.5 shrink-0 text-[var(--oh-muted)]`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:z(`text-sm`,c?`text-[var(--oh-foreground)]`:`text-[var(--oh-muted)]`),children:c||e(I.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:z(`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)(pt,{className:hs,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(I.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:z(`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)(Rr,{className:hs,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(I.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:_s})]})}):null]}):null]})}var ys=z(`w-full max-w-[240px] rounded-xl border border-[var(--oh-border)]`,`bg-[var(--oh-surface)] pb-1`),bs=z(`flex items-center gap-2 rounded-md px-2 py-1.5`,`transition-colors hover:bg-white/5`),xs=`size-4 shrink-0 text-[var(--oh-muted)]`;function Ss({icon:e,label:t,value:n,testId:r}){return(0,Z.jsxs)(`li`,{"data-testid":r,className:bs,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 Cs(){return(0,Z.jsx)(`div`,{className:`px-1`,children:(0,Z.jsx)(ut,{inset:`menu`})})}function ws(){let{t:e}=f(`openhands`),t=To(),{conversationId:n}=q(),{state:r}=rn(n),{isConnected:i}=Eo(),[a,o]=(0,X.useState)(!1),s=(0,X.useRef)(null),c=e=>ln(e,r.unpinnedOverviewSections??[]),l=on(H.changes,r.unpinnedOverviewGitParts??[]),u=c(W.git)&&(l||i),d=an.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)(Ss,{testId:`conversation-overview-workspace`,icon:(0,Z.jsx)(_t,{className:xs}),label:e(I.CONVERSATION$OVERVIEW_WORKSPACE),value:t.workspaceName??e(I.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(I.CONVERSATION$OVERVIEW),className:ys,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(I.CONVERSATION$OVERVIEW)}),(0,Z.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,Z.jsx)(Rn,{ref:s,testId:`conversation-overview-ellipsis`,onClick:()=>o(e=>!e),ariaLabel:e(I.COMMON$MORE_OPTIONS)}),(0,Z.jsx)(ns,{isOpen:a,onClose:()=>o(!1),ignoreOutsideClickRef:s,anchorRef:s})]})]}),p.map((e,t)=>(0,Z.jsxs)(X.Fragment,{children:[t>0?(0,Z.jsx)(Cs,{}):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)(Xo,{})}):null,i?(0,Z.jsx)(vs,{}):null]}):(0,Z.jsx)(`ul`,{className:`px-2`,children:e.sections.map(e=>m(e))})]},e.key))]})}var Ts={duration:.2,ease:`easeInOut`};function Es(e){return e>=596}var Ds=typeof window<`u`?X.useLayoutEffect:X.useEffect;function Os(e,t){let[n,r]=(0,X.useState)(!1);return Ds(()=>{if(!t){r(!1);return}let n=e.current;if(!n)return;let i=()=>{r(Es(n.clientWidth))};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(n),()=>a.disconnect()},[e,t]),n}var ks=`w-full min-w-0 max-w-[800px] h-full flex flex-col min-h-0`;function As({isRightPanelShown:e}){let t=Oi(),n=!Te()&&!0,r=U(e=>e.isOverviewPanelShown),a=(0,X.useRef)(null),o=!t&&r,s=Os(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:ks,children:(0,Z.jsx)(Co,{})})}),(0,Z.jsx)(i,{children:o&&s?(0,Z.jsx)(Ze.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:Ts,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)(ws,{})})},`conversation-overview-column`):null})]})}function js({children:e}){return(0,Z.jsx)(`div`,{className:`absolute inset-0`,children:e})}function Ms({children:e}){return(0,Z.jsx)(`div`,{className:`flex flex-col h-full w-full`,children:e})}function Ns({children:e}){return(0,Z.jsx)(`div`,{className:`overflow-hidden flex-grow h-full w-full relative`,children:e})}function Ps({className:e}){let{t}=f(`openhands`);return(0,Z.jsxs)(`div`,{className:z(`bg-[var(--oh-surface)] flex h-full w-full flex-col items-center justify-center gap-3`,e),children:[(0,Z.jsx)(St,{className:`h-8 w-8 shrink-0 animate-spin text-tertiary-light`,"aria-hidden":!0}),(0,Z.jsx)(Be,{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(I.HOME$LOADING)})]})}function Fs({children:e,onReady:t}){return(0,X.useLayoutEffect)(()=>{t()},[t]),e}function Is({onPending:e}){return(0,X.useLayoutEffect)(()=>{e()},[e]),(0,Z.jsx)(Ps,{})}var Ls={duration:.35,ease:`easeInOut`};function Rs({showAgentLoading:e,tabKey:t,children:n}){let r=Te(),[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)(Ps,{}):(0,Z.jsx)(X.Suspense,{fallback:(0,Z.jsx)(Is,{onPending:s}),children:(0,Z.jsx)(Fs,{onReady:c,children:n})})}):(0,Z.jsxs)(`div`,{className:`relative h-full w-full overflow-hidden`,children:[(0,Z.jsx)(Ze.div,{className:`absolute inset-0 h-full w-full`,initial:!1,animate:{opacity:+!l},transition:Ls,"aria-hidden":l,children:(0,Z.jsx)(X.Suspense,{fallback:(0,Z.jsx)(Is,{onPending:s}),children:(0,Z.jsx)(Fs,{onReady:c,children:n})})}),(0,Z.jsx)(i,{children:l?(0,Z.jsx)(Ze.div,{className:`absolute inset-0 z-10 h-full w-full`,initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},transition:Ls,children:(0,Z.jsx)(Ps,{})},`conversation-tab-loading-overlay`):null})]})}var zs=(0,X.lazy)(()=>a(()=>import(`./files-tab-CL3J9b3p.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]))),Bs=(0,X.lazy)(()=>a(()=>import(`./commits-tab-DZtJgaDM.js`),__vite__mapDeps([65,1,2,66,9,5,6,10,67,4,17,68,11,3,7,12,13,14,15,8,16,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,69,70,71,72,53,73,52,54,74,75,76,77,78,79,80,81,82,83,84,85,86,51,87,55,88,89,90,91,92,93,94,50,56,57,58,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,64,113,114,60,63,115]))),Vs=(0,X.lazy)(()=>a(()=>import(`./browser-tab-BAl4ckJE.js`),__vite__mapDeps([116,2,1,9,5,6,15,3,4,7,12,8,13,10,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,117,118,60]))),Hs=(0,X.lazy)(()=>a(()=>import(`./planner-tab-DQvDU3ap.js`),__vite__mapDeps([119,1,2,9,5,6,11,3,4,7,12,13,14,15,8,10,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,120,69,70,71,72,53,73,52,54,74,75,76,77,78,79,80,81,82,83,84,85,86,51,87,55,88,89,90,91,92,93,94,50,56,57,58,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,64,113,114,60]))),Us=(0,X.lazy)(()=>a(()=>import(`./task-list-tab-04GNQuii.js`),__vite__mapDeps([121,1,2,9,5,6,11,3,4,7,12,13,14,15,8,10,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,60]))),Ws=(0,X.lazy)(()=>a(()=>import(`./usage-tab-BcfWV6db.js`),__vite__mapDeps([122,1,2,3,4,5,6,7,70,9,10,15,12,8,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,50,47,51,52,53,54,40,55,42,56,57,123,38,96,69,71,72,73,74,75,76,48,77,41,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,36,37,94,58,95,97,98,99,100,101,102,103,104,105,46,106,107,108,109,110,111,112,64,113,44,114,49,60]))),Gs=(0,X.lazy)(()=>a(()=>import(`./terminal-Cj0iHIW7.js`),__vite__mapDeps([124,1,2,9,5,6,125,126,67,4,17,15,3,7,12,8,13,10,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,69,70,71,72,53,73,52,54,74,75,76,48,77,41,78,79,42,80,81,82,83,84,85,86,51,87,55,88,89,90,47,91,92,93,36,37,94,50,40,56,57,58,38,95,96,97,98,99,100,101,102,103,104,105,46,106,107,108,109,110,111,112,64,113,44,114,49,60]))),Ks={tasklist:{component:Us},files:{component:zs},commits:{component:Bs},browser:{component:Vs},terminal:{component:Gs},planner:{component:Hs},usage:{component:Ws}};function qs(){let{selectedTab:e,shouldShownAgentLoading:t}=U(),{conversationId:n}=q(),r=(0,X.useMemo)(()=>Ks[e]??Ks.files,[e]).component,i=e===`terminal`?`${e}-${n}`:e??`files`;return(0,Z.jsx)(Ms,{children:(0,Z.jsx)(Ns,{children:(0,Z.jsx)(Rs,{showAgentLoading:t,tabKey:i,children:(0,Z.jsx)(js,{children:(0,Z.jsx)(r,{})},i)})})})}var Js=()=>{let e=d(),t=vi(e=>e.removeErrorMessage);return _({mutationKey:[`start-conversation`],mutationFn:async e=>yn(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(),bn(e,r.conversationId,N.RUNNING)}})},Ys=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`})}),Xs=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 Zs({icon:e,text:t,onClick:n,testId:r}){return(0,Z.jsx)(B,{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:en,"aria-hidden":!0,children:e})]})})}function Qs({className:e=``,executionStatus:t,isPausing:n=!1}){let{curAgentState:r}=Jr(),{isTask:i,taskStatus:a,taskDetail:o}=fr(),{t:s}=f(`openhands`),{errorMessage:c}=vi(),l=r===L.LOADING||r===L.INIT,u=F(t)||te(t),d=fe({isPausing:n,isTask:i,taskStatus:a,isStartingStatus:l,isStopStatus:u,curAgentState:r}),p=ce({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)(yo,{className:`w-6 h-6 shrink-0`,color:d}),(0,Z.jsx)(`span`,{className:`text-[13px] text-white font-normal`,children:p})]})})}function $s({onClose:e,onStopServer:t,onStartServer:n,executionStatus:r,position:i=`top`,className:a=``,isPausing:o=!1,ignoreOutsideClickRef:s}){let{t:c}=f(`openhands`),l=Pn(e,s),u=ve(r),d=te(r),p=u||d;return(0,Z.jsxs)(It,{ref:l,testId:`server-status-context-menu`,position:i,alignment:`left`,size:`default`,className:z(`left-2 w-fit min-w-42`,a),children:[(0,Z.jsx)(Qs,{executionStatus:r,isPausing:o,className:`pl-0 pr-2 py-1`}),p&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ut,{inset:`menu`}),u&&t&&(0,Z.jsx)(Zs,{icon:(0,Z.jsx)(Ys,{width:18,height:18}),text:c(I.COMMON$STOP_RUNTIME),onClick:t,testId:`stop-server-button`}),d&&n&&(0,Z.jsx)(Zs,{icon:(0,Z.jsx)(Xs,{width:18,height:18}),text:c(I.COMMON$START_RUNTIME),onClick:n,testId:`start-server-button`})]})]})}function ec({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:z(`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:z(`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 tc({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=Oi(),{t:_}=f(`openhands`),{backend:v}=A(),{data:y}=J(),b=Cr(),x=Pn(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 T=!!(a||o||s),E=!!i,D=!!(r||n),O=v.kind===`cloud`?I.COMMON$CLOSE_CONVERSATION_STOP_RUNTIME:I.COMMON$STOP_CONVERSATION,k=v.kind===`cloud`&&!!c,j=y?.public||!1,ee=!!S,M=(0,Z.jsxs)(It,{ref:x,testId:`conversation-name-context-menu`,position:m,alignment:`left`,className:z(g?`right-0 translate-x-[34%] left-auto`:``,ee?`!static !top-auto !bottom-auto !left-auto !right-auto !mt-0`:``),children:[t&&(0,Z.jsx)(B,{testId:`rename-button`,onClick:t,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(zn,{width:16,height:16}),text:_(I.BUTTON$RENAME)})}),T&&(0,Z.jsx)(ut,{testId:`separator-tools`,inset:`menu`}),o&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`show-skills-button`,onClick:o,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Bn,{width:16,height:16,className:`stroke-[1.75]`,"aria-hidden":!0}),text:_(I.CONVERSATION$SHOW_SKILLS)})})}),s&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`show-hooks-button`,onClick:s,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(vr,{width:16,height:16,"aria-hidden":!0}),text:_(I.CONVERSATION$SHOW_HOOKS)})})}),a&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`show-agent-tools-button`,onClick:a,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(lt,{width:16,height:16}),text:_(I.BUTTON$SHOW_AGENT_TOOLS_AND_METADATA)})})}),u&&(0,Z.jsx)(B,{testId:`export-transcript-button`,onClick:u,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(jn,{width:16,height:16}),text:_(I.BUTTON$EXPORT_TRANSCRIPT)})}),d&&(0,Z.jsx)(B,{testId:`download-trajectory-button`,onClick:d,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(jn,{width:16,height:16}),text:_(I.BUTTON$DOWNLOAD_CONVERSATION_DATA)})}),(E||D)&&(0,Z.jsx)(ut,{testId:`separator-info-control`,inset:`menu`}),i&&(0,Z.jsx)(B,{testId:`display-cost-button`,onClick:i,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(ot,{size:16}),text:_(I.BUTTON$DISPLAY_COST)})}),k&&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)(mt,{size:16})}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,children:_(I.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:_(I.BUTTON$COPY_TO_CLIPBOARD),children:(0,Z.jsx)(Jn,{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:_(I.BUTTON$OPEN_IN_NEW_TAB),children:(0,Z.jsx)(rt,{size:14,"aria-hidden":!0})})]}),(0,Z.jsx)(ec,{isPublic:j,onToggle:c,ariaLabel:_(I.CONVERSATION$SHARE_PUBLICLY)})]})]}),r&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`stop-button`,onClick:r,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(it,{width:16,height:16}),text:_(O)})})}),n&&(0,Z.jsx)(B,{testId:`delete-button`,onClick:n,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Ln,{width:16,height:16}),text:_(I.COMMON$DELETE_CONVERSATION)})})]});return ee?typeof document>`u`||!C?null:Vo.createPortal((0,Z.jsx)(`div`,{style:C,children:M}),document.body):M}var nc=new Set([`BrowserClickAction`,`BrowserCloseTabAction`,`BrowserGetContentAction`,`BrowserGetStateAction`,`BrowserGoBackAction`,`BrowserListTabsAction`,`BrowserNavigateAction`,`BrowserScrollAction`,`BrowserSwitchTabAction`,`BrowserTypeAction`,`ExecuteBashAction`,`FileEditorAction`,`GlobAction`,`GrepAction`,`InvokeSkillAction`,`MCPToolAction`,`StrReplaceEditorAction`,`TaskAction`,`TaskTrackerAction`,`TerminalAction`,`ThinkAction`]),rc=new Set([`BrowserObservation`,`CanvasUIObservation`,`ExecuteBashObservation`,`FileEditorObservation`,`GlobObservation`,`GrepObservation`,`InvokeSkillObservation`,`MCPToolObservation`,`StrReplaceEditorObservation`,`SwitchLLMObservation`,`TaskTrackerObservation`,`TaskObservation`,`TerminalObservation`]),ic=e=>e.replace(/[\r\n]+/g,` `).replace(/\s+/g,` `).trim(),ac=(e,t=100)=>e.length>t?`${e.slice(0,t)}…`:e,oc=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toISOString()},$=e=>e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`"`,`"`).replaceAll(`'`,`'`),sc=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`),cc=e=>ic(e||C.t(I.TRANSCRIPT_EXPORT$DEFAULT_TITLE))||C.t(I.TRANSCRIPT_EXPORT$DEFAULT_TITLE),lc=(e,t)=>ic(C.t(e,t).replace(/<\/?(?:cmd|path)>/g,``)),uc=e=>/^[a-z][a-z0-9_]*\s*:\s*[[{]/i.test(e),dc=e=>e.replace(/(?:Action|Observation)$/,``).replace(/([a-z])([A-Z])/g,`$1 $2`).trim(),fc=e=>{let t=ic(e.summary||``);return t&&!uc(t)?t:ic(e.tool_name)||dc(e.action.kind)},pc=(e,t)=>t?fc(t):ic(e.tool_name)||dc(e.observation.kind),mc=e=>e.filter(e=>e.type===`text`&&typeof e.text==`string`).map(e=>e.text).join(`
|
|
24
|
-
`),hc=e=>[`${C.t(I.TASK$SUBAGENT)}: ${e.subagent_type}`,`${C.t(I.TASK$QUERY)}:\n${e.prompt}`].join(`
|
|
25
|
-
|
|
26
|
-
`),gc=(e,t)=>{let n=t?.action.kind===`TaskAction`?t.action:void 0;return[`${C.t(I.TASK$SUBAGENT)}: ${e.subagent}`,`${C.t(I.TASK$TASK_ID)}: ${e.task_id}`,n?`${C.t(I.TASK$QUERY)}:\n${n.prompt}`:``,`${C.t(I.TASK$RESULT)}:\n${mc(e.content)}`].filter(Boolean).join(`
|
|
27
|
-
|
|
28
|
-
`)},_c=e=>e.action.kind===`TaskAction`?hc(e.action):nc.has(e.action.kind)?je(e):``,vc=(e,t)=>e.observation.kind===`TaskObservation`?gc(e.observation,t):rc.has(e.observation.kind)?Ve(e):``,yc=e=>Xr(e)?[e.reason,e.error,e.stdout,e.stderr].filter(e=>!!e?.trim()).join(`
|
|
29
|
-
|
|
30
|
-
`):``,bc=e=>[ei(e),_i(e)].map(e=>e.trim()).filter(Boolean).join(`
|
|
31
|
-
|
|
32
|
-
`),xc=e=>![`FinishAction`,`SwitchLLMAction`,`ThinkAction`].includes(e.action.kind),Sc=(e,t)=>{let n=e.reduce((e,t)=>{try{return Ur(t,e)}catch{return e}},[]),r=new Map(e.filter(di).map(e=>[e.id,e])),i=[],a=new Set,o=ze(n.filter(e=>Kr(e)&&!e.observation.is_error||si(e)),2**53-1,e),s=e=>{if(a.has(e.id)||!xc(e))return;a.add(e.id);let t=bc(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=di(n)?n:bi(n)?r.get(n.action_id):void 0;if(e&&s(e),Kr(n)&&!n.observation.is_error){i.push({kind:`note`,summary:lc(I.MODEL$SWITCHED_TO_PROFILE,{name:n.observation.profile_name}),content:[n.observation.active_model?`${C.t(I.TRANSCRIPT_EXPORT$MODEL)}: ${n.observation.active_model}`:``,n.observation.reason?`${C.t(I.TRANSCRIPT_EXPORT$REASON)}: ${n.observation.reason}`:``].filter(Boolean).join(`
|
|
33
|
-
`),timestamp:n.timestamp??``});continue}if($r(n)){let e=Le(n).trim();if(n.source===`agent`){let{reasoning:t,message:r}=Wr(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(ni(n)){let{reasoning:e,message:t}=Wr(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(Hr(n)){i.push({kind:`error`,content:n.error,timestamp:n.timestamp??``});continue}if(di(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:fc(n),details:t?_c(n):``,timestamp:n.timestamp??``});continue}if(bi(n)){let e=r.get(n.action_id);i.push({kind:`tool`,summary:pc(n,e),details:t?vc(n,e):``,timestamp:n.timestamp??``});continue}if(Zr(n)){i.push({kind:`tool`,summary:Ke(n)||C.t(I.ACTION_MESSAGE$ACP_TOOL),details:t?qe(n):``,timestamp:n.timestamp??``});continue}if(Xr(n)){i.push({kind:`tool`,summary:C.t(I.TRANSCRIPT_EXPORT$HOOK,{command:ac(ic(n.hook_command),100)}),details:t?yc(n):``,timestamp:n.timestamp??``});continue}Qr(n)&&qr(n)&&i.push({kind:`note`,summary:`${C.t(I.GOAL$PREFIX)} ${C.t({running:I.GOAL$STATUS_RUNNING,complete:I.GOAL$STATUS_COMPLETE,capped:I.GOAL$STATUS_CAPPED,interrupted:I.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},Cc=(e,t)=>t.includeTimestamps?`<sub>${$(oc(e.timestamp))}</sub>\n\n`:``,wc=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}`},Tc=(e,t)=>{let n=[`# ${sc(cc(t.title))}`,``];t.model&&n.push(`**${C.t(I.TRANSCRIPT_EXPORT$MODEL)}:** ${sc(ic(t.model))}`,``);for(let r of Sc(e,t.includeToolDetails)){let e=Cc(r,t);if(r.kind===`message`){let t=r.author===`user`?C.t(I.TRANSCRIPT_EXPORT$USER):C.t(I.CHAT_INTERFACE$ASSISTANT);n.push(`## ${t}`,``,e+sc(r.content),``)}else if(r.kind===`error`){let t=r.content.split(`
|
|
38
|
-
`).map(e=>`> ${sc(e)}`).join(`
|
|
39
|
-
`);n.push(`## ${C.t(I.COMMON$ERROR)}`,``,e+t,``)}else if(r.kind===`note`)n.push(`> **${$(r.summary)}**`,``,e+sc(r.content),``);else if(t.includeToolDetails&&r.details)n.push(`<details>`,`<summary><strong>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(r.summary)}</summary>`,``,e+wc(r.details),``,`</details>`,``);else{let t=e?`<br>${e.trimEnd()}`:``;n.push(`<p><strong>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(r.summary)}${t}</p>`,``)}}return`${n.join(`
|
|
40
|
-
`).trim()}\n`},Ec=(e,t)=>{if(!t.includeTimestamps)return``;let n=oc(e.timestamp);return`<time datetime="${$(n)}">${$(n)}</time>`},Dc=(e,t)=>{let n=cc(t.title),r=Sc(e,t.includeToolDetails).map(e=>{let n=Ec(e,t);if(e.kind===`message`){let t=e.author===`user`?C.t(I.TRANSCRIPT_EXPORT$USER):C.t(I.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>${$(C.t(I.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>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(e.summary)}${n}</summary>
|
|
51
|
-
<pre>${$(e.details)}</pre>
|
|
52
|
-
</details>`:`<div class="tool-summary"><strong>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(e.summary)}${n}</div>`}).join(`
|
|
53
|
-
`),i=t.model?`<p class="model"><strong>${$(C.t(I.TRANSCRIPT_EXPORT$MODEL))}:</strong> ${$(ic(t.model))}</p>`:``;return`<!doctype html>
|
|
54
|
-
<html lang="${$(C.resolvedLanguage||C.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
|
-
`},Oc=(e,t)=>(e.timestamp??``).localeCompare(t.timestamp??``),kc=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(Oc);if(n!==void 0&&i.size+o<n)throw Error(`Transcript history is incomplete: expected ${n} persisted events, received ${i.size+o}.`);return p},Ac=`transcript-export-format`;function jc({conversationId:e,conversationUrl:t,sessionApiKey:n,conversationTitle:r,model:i,onClose:a}){let{t:o}=f(`openhands`),{trackConversationExported:s}=Bt(),[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)(Wt,{onClose:b,"aria-label":o(I.TRANSCRIPT_EXPORT$TITLE),children:(0,Z.jsxs)(Gt,{testID:`transcript-export-modal`,className:`relative items-start border border-[var(--oh-border)]`,children:[(0,Z.jsx)(un,{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)(qt,{title:o(I.TRANSCRIPT_EXPORT$TITLE)}),(0,Z.jsx)(Kt,{description:o(I.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(I.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:Ac,value:`markdown`,disabled:h,checked:c===`markdown`,onChange:()=>l(`markdown`)}),o(I.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:Ac,value:`html`,disabled:h,checked:c===`html`,onChange:()=>l(`html`)}),o(I.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(I.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(I.TRANSCRIPT_EXPORT$INCLUDE_TIMESTAMPS)]})]}),(0,Z.jsxs)(`div`,{className:`flex w-full justify-end gap-2`,children:[(0,Z.jsx)(V,{type:`button`,variant:`secondary`,onClick:b,testId:`cancel-transcript-export`,children:o(I.BUTTON$CANCEL)}),(0,Z.jsx)(V,{type:`button`,variant:`primary`,onClick:async()=>{if(!_.current){v.current=!1,_.current=!0,g(!0);try{let o=await fi.getEventCount(e,t??``,n).catch(()=>void 0);if(v.current)return;let l=K.getState(),d=await kc(l.loadedConversationId===e?l.events:[],r=>fi.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?Tc(d,f):Dc(d,f),g=m?`md`:`html`;ae(new Blob([h],{type:m?`text/markdown;charset=utf-8`:`text/html;charset=utf-8`}),`conversation-${e}.${g}`),s(c),a()}catch{v.current||T(o(I.ERROR$GENERIC))}finally{_.current=!1,y.current&&g(!1)}}},testId:`confirm-transcript-export`,isDisabled:h,"aria-busy":h,children:o(I.BUTTON$EXPORT_CONVERSATION)})]})]})})}function Mc(){let{t:e}=f(`openhands`),{conversationId:t}=q(),{data:n}=J(),{mutate:r}=On(),[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:S,handleConfirmDelete:C,handleConfirmStop:w,systemModalVisible:T,setSystemModalVisible:D,skillsModalVisible:O,setSkillsModalVisible:k,hooksModalVisible:A,setHooksModalVisible:j,confirmDeleteModalVisible:ee,setConfirmDeleteModalVisible:M,confirmStopModalVisible:N,setConfirmStopModalVisible:te,systemMessage:ne,shouldShowStop:re,shouldShowDownloadConversation:P,shouldShowDisplayCost:F,shouldShowAgentTools:ie,shouldShowSkills:ae,shouldShowHooks:oe}=Ar({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:()=>{E(e(I.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)(Rn,{onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!o)},ariaLabel:e(I.COMMON$MORE_OPTIONS)}),o&&(0,Z.jsx)(tc,{onClose:()=>s(!1),onRename:e=>{e.preventDefault(),e.stopPropagation(),a(`edit`),s(!1)},onDelete:p,onStop:re?m:void 0,onDisplayCost:F?g:void 0,onShowAgentTools:ie?_:void 0,onShowSkills:ae?v:void 0,onShowHooks:oe?y:void 0,onTogglePublic:b,onCopyShareLink:x,shareUrl:S,onExportTranscript:e=>{e.preventDefault(),e.stopPropagation(),l(!0),s(!1)},onDownloadConversation:P?h:void 0,position:`bottom`,anchorRef:d})]})]}),c&&t&&(0,Z.jsx)(jc,{conversationId:t,conversationUrl:n.conversation_url,sessionApiKey:n.session_api_key,conversationTitle:n.title,model:n.llm_model,onClose:()=>l(!1)}),(0,Z.jsx)(Dr,{isOpen:T,onClose:()=>D(!1),systemMessage:ne||null}),O&&(0,Z.jsx)(Or,{onClose:()=>k(!1)}),A&&(0,Z.jsx)(Nr,{onClose:()=>j(!1)}),ee&&(0,Z.jsx)(En,{onConfirm:C,onCancel:()=>M(!1),conversationTitle:n?.title||``}),N&&(0,Z.jsx)(Nn,{onConfirm:w,onCancel:()=>te(!1)})]}):null}function Nc({children:e,tooltip:t,ariaLabel:n}){return(0,Z.jsx)(Qt,{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 Pc=z(`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`,Yt,Jt,`text-[var(--oh-muted)]`,Xt,`disabled:cursor-not-allowed disabled:opacity-30`);function Fc({className:e}){let{t}=f(`openhands`),n=Cr(),{data:r}=J(),[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(I.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),l=(0,Z.jsxs)(`button`,{ref:o,type:`button`,onClick:()=>{n||a(e=>!e)},disabled:n,className:z(Pc,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)(pt,{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)(Nc,{tooltip:t(I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES),ariaLabel:t(I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES),children:l}):l,i?(0,Z.jsx)(Uo,{anchorRef:o,gitProvider:s,onClose:()=>a(!1)}):null]})}var Ic=null;function Lc(){Ic!==null&&(clearTimeout(Ic),Ic=null)}function Rc(){let{isRightPanelShown:e,isOverviewPanelShown:t,setIsOverviewPanelPeeked:n}=U.getState();!e||t||(Lc(),n(!0))}function zc(){Lc(),Ic=setTimeout(()=>{Ic=null,U.getState().setIsOverviewPanelPeeked(!1)},150)}function Bc(){Lc(),U.getState().setIsOverviewPanelPeeked(!1)}function Vc(){let e=U(e=>e.isRightPanelShown),t=U(e=>e.isOverviewPanelShown),n=U(e=>e.isOverviewPanelPeeked);(0,X.useEffect)(()=>{n&&(!e||t)&&Bc()},[n,t,e])}function Hc({className:e}){let{t}=f(`openhands`),n=Cr(),{conversationId:r}=ri(),i=(0,X.useRef)(null),[a,o]=(0,X.useState)(null),{isOverviewPanelShown:s,isOverviewPanelPeeked:c,isRightPanelShown:l,setIsOverviewPanelShown:u,setHasRightPanelToggled:d,setIsRightPanelShown:p}=U();Vc(),(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&&cn(r,{rightPanelShown:!1}),u(!0);return}u(!s)}},_=s||h,v=t(n?I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES:s?I.CONVERSATION$HIDE_OVERVIEW:I.CONVERSATION$SHOW_OVERVIEW),y=h&&a?Vo.createPortal((0,Z.jsx)(`div`,{"data-testid":`conversation-overview-peek`,className:`fixed z-50`,style:{top:a.top,left:a.left,width:240},onMouseEnter:Rc,onMouseLeave:zc,children:(0,Z.jsx)(`div`,{className:`shadow-lg`,children:(0,Z.jsx)(ws,{})})}),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&&Rc()},onMouseLeave:()=>{(m||c)&&zc()},children:(0,Z.jsx)(Nc,{tooltip:v,ariaLabel:v,children:(0,Z.jsx)(`button`,{type:`button`,onClick:g,disabled:n,className:z(An,`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)(bt,{className:`h-4 w-4 shrink-0`,size:16,"aria-hidden":!0})})})}),y]})}function Uc({className:e}){let{t}=f(`openhands`),n=Oi(),r=Cr(),i=l(),{conversationId:a}=q(),{isRightPanelShown:o,setHasRightPanelToggled:s,setIsRightPanelShown:c,setSelectedTab:u}=U(),d=()=>{if(r)return;if(n){if(!a)return;s(!0),c(!0),cn(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&&cn(a,{rightPanelShown:e}),e){let{selectedTab:e}=U.getState();e||u(`files`)}},p=t(r?I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES:n?I.COMMON$SHOW_PANEL:o?I.COMMON$HIDE_PANEL:I.COMMON$SHOW_PANEL),m=n?!1:o;return(0,Z.jsx)(Nc,{tooltip:p,ariaLabel:p,children:(0,Z.jsx)(`button`,{type:`button`,onClick:d,disabled:r,className:z(An,`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)(kn,{className:`size-5 -scale-x-100`})})})}function Wc(){let{t:e}=f(`openhands`),{conversationId:t}=q(),{data:n}=J(),{curAgentState:r}=Jr(),{isTask:i,taskStatus:a}=fr(),{mutate:o}=at(),{mutate:s}=Js(),{providers:c}=Un(),[l,u]=X.useState(!1),[d,p]=X.useState(!1),m=X.useRef(null),h=n?.execution_status??null,g=fe({isPausing:!1,isTask:i,taskStatus:a,isStartingStatus:r===L.LOADING||r===L.INIT,isStopStatus:F(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(I.COMMON$SERVER_STATUS),"aria-expanded":_,"aria-haspopup":`menu`,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),_){v();return}u(!0)},className:z(`flex items-center justify-center rounded-md`,`text-[var(--oh-muted)] hover:bg-white/10`),children:(0,Z.jsx)(yo,{className:`ml-[3.5px] w-6 h-6 cursor-pointer`,color:g,"aria-hidden":!0})}),_?(0,Z.jsx)($s,{onClose:v,ignoreOutsideClickRef:m,onStopServer:ve(h)?e=>{e.preventDefault(),e.stopPropagation(),t&&o({conversationId:t}),v()}:void 0,onStartServer:te(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)(Mc,{})]}),(0,Z.jsxs)(`div`,{className:`mr-2 flex shrink-0 items-center gap-1`,children:[(0,Z.jsx)(Fc,{}),(0,Z.jsx)(Hc,{}),(0,Z.jsx)(Uc,{})]})]})}var Gc=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`})]}),Kc=160,qc={duration:.22,ease:[.4,0,.2,1]};function Jc({tabValue:e,icon:t,onClick:n,isActive:r,label:i,className:a,measureOnly:o,suppressLayoutAnimation:s=!1}){let c=Te(),l=o||c||!1,u=!l&&!s,d=z(`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:z(`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)(Ze.span,{initial:!1,animate:{maxWidth:r?Kc:0,opacity:+!!r,marginLeft:r?8:0},transition:qc,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:z(d,`gap-2`),children:[f,p]}):(0,Z.jsxs)(Ze.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:qc}:void 0,children:[f,m]})}var Yc=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 Xc(){let e=O().backend;if(e.kind!==`cloud`)throw Error(`Cloud sandboxes call requires a cloud backend.`);return e}async function Zc(e){if(e.length===0)return[];let t=Xc(),n=new URLSearchParams;for(let t of e)n.append(`id`,t);return await Rt({backend:t,method:`GET`,path:`/api/v1/sandboxes?${n.toString()}`})??[]}var Qc=e=>{let t=A(),n=t.backend.kind===`cloud`;return y({queryKey:[`cloud`,`sandbox`,t.backend.id,t.orgId,e],queryFn:async()=>{if(!e)return null;let[t]=await Zc([e]);return t??null},enabled:n&&!!e,staleTime:1e3*60*5,gcTime:1e3*60*15})},$c=`VSCODE`,el=()=>{let{t:e}=f(`openhands`),{conversationId:t}=q(),n=Ti({allowAgentError:!0}),{data:r}=J(),i=A(),a=r?.conversation_url??null,o=r?.session_api_key??null,s=r?.sandbox_id??null,c=i.backend.kind===`cloud`,l=Qc(c?s:null),u=y({queryKey:[`unified`,`vscode_url`,`local`,t,a,o],queryFn:async()=>{if(!t)throw Error(`No conversation ID`);return{url:Tn((await hn.getVSCodeUrl(t,a,o).catch(()=>_n.getVSCodeUrl(t))).vscode_url)}},enabled:!c&&n&&!!t,refetchOnMount:!0,retry:3}),d,p,m,h,g,_,v;if(c){let e=l.data?.exposed_urls?.find(e=>e.name===$c)?.url??null;d=l.isSuccess?{url:Tn(e)}:void 0,p=l.isLoading,m=l.isError,h=l.isSuccess,g=l.status,_=l.error,v=async()=>{let e=await l.refetch(),t=e.data?.exposed_urls?.find(e=>e.name===$c)?.url??null;return{data:e.data?{url:Tn(t)}:void 0}}}else d=u.data,p=u.isLoading,m=u.isError,h=u.isSuccess,g=u.status,_=u.error,v=async()=>({data:(await u.refetch()).data});let b=d&&!d.url?e(I.VSCODE$URL_NOT_AVAILABLE):null;return{data:d?{...d,error:b}:void 0,error:_,isLoading:p,isError:m,isSuccess:h,status:g,refetch:v}};function tl(){let{t:e}=f(`openhands`),{curAgentState:t}=Jr(),{data:n,refetch:r,isLoading:i}=el(),a=ue.includes(t);return(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||a,"aria-label":e(I.VSCODE$OPEN),title:e(I.VSCODE$OPEN),"data-testid":`drawer-vscode-link`,className:z(`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)(Yc,{className:`h-[15px] w-[15px] shrink-0`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{children:e(I.FILES$VSCODE)}),(0,Z.jsx)(rt,{className:`h-3.5 w-3.5 shrink-0`,"aria-hidden":!0,strokeWidth:2})]})}function nl(e){if(bi(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 rl(){let e=K(e=>e.events);return(0,X.useMemo)(()=>{for(let t=e.length-1;t>=0;--t){let n=nl(e[t]);if(n)return{taskList:n,hasTaskList:n.length>0}}return{taskList:[],hasTaskList:!1}},[e])}function il({isOpen:e,onClose:t,ignoreOutsideClickRef:n,anchorRef:r}){let i=Pn(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}=q(),{state:l,setUnpinnedTabs:u,setSelectedTab:d}=rn(c),{selectedTab:p,isRightPanelShown:m,setSelectedTab:h}=U(),{navigateToTab:g}=hi(),{hasTaskList:_}=rl(),{backend:v}=A(),y=Cr(),b=[{tab:`planner`,icon:xt,i18nKey:I.COMMON$PLANNER},{tab:`files`,icon:zr,i18nKey:I.COMMON$FILES},{tab:`commits`,icon:ht,i18nKey:I.DIFF_VIEWER$COMMITS},{tab:`terminal`,icon:ft,i18nKey:I.COMMON$TERMINAL},{tab:`browser`,icon:vt,i18nKey:I.COMMON$BROWSER},{tab:`usage`,icon:ot,i18nKey:I.COMMON$USAGE}];_&&b.unshift({tab:`tasklist`,icon:Gc,i18nKey:I.COMMON$TASK_LIST});let x=b.filter(({tab:e})=>e!==`planner`||v.kind===`cloud`),S=e=>{y||(g(e),t())},C=(e,t)=>{if(y){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=x.find(({tab:n})=>n!==e&&!t.includes(n));n&&(h(n.tab),d(n.tab))}}};if(!e)return null;let w=!!(r?.current&&a),T=(0,Z.jsx)(It,{ref:i,theme:w?`popover`:`default`,position:w?`none`:`bottom`,alignment:w?`none`:`left`,spacing:w?`none`:`default`,className:z(`z-[9999] w-fit`,w?`mt-0`:`mt-2`),children:x.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)(Lr,{isDisabled:y,children:(0,Z.jsxs)(`div`,{className:z(`group flex h-[30px] w-full min-w-0 items-stretch rounded`,!y&&`hover:bg-[var(--oh-interactive-hover)]`,y&&`opacity-50`),children:[(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-tabs-menu-open-${e}`,disabled:y,className:z(`flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white`,$t,y?`cursor-not-allowed`:`cursor-pointer`),onClick:()=>S(e),children:[(0,Z.jsx)(`span`,{className:en,"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:y,className:z(`flex shrink-0 items-center justify-center rounded-r px-2 text-white`,$t,y?`cursor-not-allowed`:`cursor-pointer hover:bg-white/10`),"aria-pressed":r,"aria-label":s(r?I.CONVERSATION$UNPIN_TAB:I.CONVERSATION$PIN_TAB),onClick:t=>C(e,t),children:r?(0,Z.jsx)(`span`,{className:z(`-mr-[5px] ml-auto`,en),"aria-hidden":!0,children:(0,Z.jsx)(Qo,{className:`h-7 w-7`})}):(0,Z.jsx)(`span`,{className:z(`ml-auto`,en),"aria-hidden":!0,children:(0,Z.jsx)(Zo,{className:`h-4.5 w-4.5`})})})]})})},e)})});return w&&a&&typeof document<`u`?Vo.createPortal((0,Z.jsx)(`div`,{style:a,children:T}),document.body):T}function al({variant:e=`default`,isPanelResizing:t=!1}){let{conversationId:n}=q(),{setSelectedTab:r,planContent:i}=U(),[a,o]=(0,X.useState)(!1),{state:s}=rn(n),{hasTaskList:c}=rl(),{backend:l}=A(),{handleBuildPlanClick:u}=Re(),{curAgentState:d}=Jr(),{selectTab:p,isTabActive:m,onTabChange:h,selectedTab:g,isRightPanelShown:_}=hi();(0,X.useEffect)(()=>{r(s.selectedTab)},[r,s.selectedTab]),(0,X.useEffect)(()=>{_&&(g||h(`files`))},[_,g,h]);let{t:v,i18n:y}=f(`openhands`),b=[{tabValue:`files`,isActive:m(`files`),icon:zr,onClick:()=>p(`files`),tooltipContent:v(I.COMMON$FILES),tooltipAriaLabel:v(I.COMMON$FILES),label:v(I.COMMON$FILES)},{tabValue:`commits`,isActive:m(`commits`),icon:ht,onClick:()=>p(`commits`),tooltipContent:v(I.DIFF_VIEWER$COMMITS),tooltipAriaLabel:v(I.DIFF_VIEWER$COMMITS),label:v(I.DIFF_VIEWER$COMMITS)},{tabValue:`planner`,isActive:m(`planner`),icon:xt,onClick:()=>p(`planner`),tooltipContent:v(I.COMMON$PLANNER),tooltipAriaLabel:v(I.COMMON$PLANNER),label:v(I.COMMON$PLANNER)},{tabValue:`terminal`,isActive:m(`terminal`),icon:ft,onClick:()=>p(`terminal`),tooltipContent:v(I.COMMON$TERMINAL),tooltipAriaLabel:v(I.COMMON$TERMINAL),label:v(I.COMMON$TERMINAL),className:`pl-2`},{tabValue:`browser`,isActive:m(`browser`),icon:vt,onClick:()=>p(`browser`),tooltipContent:v(I.COMMON$BROWSER),tooltipAriaLabel:v(I.COMMON$BROWSER),label:v(I.COMMON$BROWSER)},{tabValue:`usage`,isActive:m(`usage`),icon:ot,onClick:()=>p(`usage`),tooltipContent:v(I.COMMON$USAGE),tooltipAriaLabel:v(I.COMMON$USAGE),label:v(I.COMMON$USAGE)}];c&&b.splice(2,0,{tabValue:`tasklist`,isActive:m(`tasklist`),icon:Gc,onClick:()=>p(`tasklist`),tooltipContent:v(I.COMMON$TASK_LIST),tooltipAriaLabel:v(I.COMMON$TASK_LIST),label:v(I.COMMON$TASK_LIST)});let x=b.filter(e=>e.tabValue===`planner`&&l.kind!==`cloud`?!1:s.unpinnedTabs.includes(e.tabValue)?g===e.tabValue:!0),S=s.unpinnedTabs.join(`,`),C=d===L.RUNNING||d===L.LOADING||!i,w=(0,X.useRef)(null),T=(0,X.useRef)(null),E=(0,X.useRef)(null),D=(0,X.useRef)(null),O=(0,X.useRef)(null),[k,j]=(0,X.useState)(x.length);(0,X.useLayoutEffect)(()=>{let e=w.current,t=T.current,n=E.current,r=D.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){j(a);return}let s=Array.from(i).map(e=>e.getBoundingClientRect().width);if(s.length!==a||a===0){j(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}}j(e=>e===f?e:f)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(e),()=>a.disconnect()},[S,x.length,c,l.kind,g,_,y.language]);let ee=Math.min(k,x.length);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:z(`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:T,"aria-hidden":!0,className:`pointer-events-none absolute top-0 left-[-10000px] flex flex-nowrap items-center gap-1.5`,children:x.map(({tabValue:e,icon:t,isActive:n,tooltipContent:r,tooltipAriaLabel:i,label:a,className:o},s)=>(0,Z.jsx)(Nc,{tooltip:r,ariaLabel:i,children:(0,Z.jsx)(Jc,{tabValue:e,icon:t,onClick:()=>{},isActive:n,label:a,className:z(o,`shrink-0`),measureOnly:!0})},`measure-${e}-${s}`))}),(0,Z.jsxs)(`div`,{ref:w,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)(gt,{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:x.slice(0,ee).map(({tabValue:e,icon:n,onClick:r,isActive:i,tooltipContent:a,tooltipAriaLabel:o,label:s,className:c},l)=>(0,Z.jsx)(Nc,{tooltip:a,ariaLabel:o,children:(0,Z.jsx)(Jc,{tabValue:e,icon:n,onClick:r,isActive:i,label:s,className:z(c,`shrink-0`),suppressLayoutAnimation:t})},`${e}-${l}`))})}),(0,Z.jsxs)(`div`,{ref:E,className:`relative shrink-0`,children:[(0,Z.jsx)(Rn,{ref:O,onClick:()=>o(!a),ariaLabel:v(I.COMMON$MORE_OPTIONS),iconClassName:e===`compact`?Dn:void 0}),(0,Z.jsx)(il,{isOpen:a,onClose:()=>o(!1),ignoreOutsideClickRef:O,anchorRef:O})]})]})}),(0,Z.jsx)(`div`,{ref:D,className:z(`ml-auto shrink-0`,l.kind===`cloud`&&`pr-1`),children:l.kind===`cloud`&&(0,Z.jsx)(tl,{})})]})]}),m(`planner`)&&(0,Z.jsx)(`div`,{className:z(`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:C,className:z(`flex h-5 min-w-17 items-center justify-center rounded bg-white px-2 transition-opacity`,C?`cursor-not-allowed opacity-50`:`cursor-pointer hover:opacity-90`),"data-testid":`planner-tab-build-button`,children:(0,Z.jsxs)(Yn.Text,{className:`text-[11px] font-normal leading-5 text-black`,children:[v(I.COMMON$BUILD),` ⌘↩`]})})})]})}function ol({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:z(`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:z(`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 sl=200;function cl({defaultLeftWidth:e=50,minLeftWidth:t=30,maxLeftWidth:n=80,storageKey:r=`desktop-layout-panel-width`}={}){let[i,a]=Ci(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(sl),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 ll=200;function ul({containerRef:e,defaultWidth:t,minWidth:n,maxWidth:r,storageKey:i,enabled:a=!0,edge:o=`right`}){let[s,c]=Ci(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(ll),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 dl=()=>void 0;function fl({openAdd:e}){let{t}=f(`openhands`),[n,r]=(0,X.useState)(e),{data:i,isLoading:a,refetch:o}=Gn(),{data:s,isLoading:c,isError:l,refetch:u}=Kn({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)($e,{}):i?.status===`ok`?l?(0,Z.jsx)(Ai,{onRetry:u}):s?.automations.length?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(tt,{title:t(I.CONVERSATION_PANEL$AUTOMATIONS),count:s.automations.length,automations:s.automations,view:`list`,onToggle:dl,onRunNow:dl,onDelete:dl,onExport:dl}),(0,Z.jsx)(et,{isOpen:n,onClose:()=>r(!1)})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(nt,{}),(0,Z.jsx)(et,{isOpen:n,onClose:()=>r(!1)})]}):(0,Z.jsx)(ki,{onRetry:o}),(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-automations-panel`,children:d})}var pl={project:`project`,all:`all`};function ml(e,t){return xi(e,t)===`project`}function hl(e,t,n){return t===pl.all?e:e.filter(e=>ml(e,n))}function gl(e,t){return[...e].sort((e,n)=>{let r=xi(e,t),i=xi(n,t),a=Si.indexOf(r),o=Si.indexOf(i);return a===o?e.name.localeCompare(n.name):a-o})}function _l({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)(yt,{value:e,onChange:t,ariaLabel:r(I.CONVERSATION$OVERVIEW_SCOPE_FILTER),testId:n,options:[{value:pl.project,label:r(I.CONVERSATION$OVERVIEW_SCOPE_PROJECT)},{value:pl.all,label:r(I.CONVERSATION$OVERVIEW_SCOPE_ALL)}]})})}function vl({openAdd:e}){let{t}=f(`openhands`),{mutate:n}=Ut(),{data:r,isLoading:i}=Ht(),{data:a}=J(),{data:o,isLoading:s}=Sr(),c=Bo()?.addRequestKey??0,l=a?.selected_workspace??null,[u,d]=(0,X.useState)(new Set),[p,m]=(0,X.useState)(!1),[h,g]=(0,X.useState)(pl.project),[_,v]=(0,X.useState)(Nt),[y,b]=(0,X.useState)(!1),[x,S]=(0,X.useState)(null),[C,E]=(0,X.useState)(!1);(0,X.useEffect)(()=>{i||!r||(d(new Set(r.disabled_skills??[])),m(!0))},[i,r?.disabled_skills]),(0,X.useEffect)(()=>{e&&E(!0)},[e]),(0,X.useEffect)(()=>{c!==0&&E(!0)},[c]),(0,X.useEffect)(()=>{p&&n({disabled_skills:Array.from(u)},{onError:e=>{T(w(e)||t(I.ERROR$GENERIC))}})},[u,p,n,t]);let D=(0,X.useMemo)(()=>{if(!o)return[];let e=hl(o,h,l);return h===pl.all?gl(e,l):e},[o,h,l]),O=(0,X.useMemo)(()=>At(D,u,_),[D,u,_]),k=(e,t)=>{d(n=>{let r=new Set(n);return t?r.delete(e):r.add(e),r})};return s||i?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`text-sm text-muted`,children:`…`}):!o||o.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:Zn,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(I.SETTINGS$SKILLS_NO_SKILLS)})}),C?(0,Z.jsx)(Et,{onClose:()=>E(!1)}):null]}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(_l,{value:h,onChange:g,testId:`conversation-overview-skills-scope`}),(0,Z.jsx)(Tt,{search:_.query,onSearchChange:e=>v(t=>({...t,query:e})),activeFilterCount:Ct(_),onOpenFilters:()=>b(!0)}),D.length===0?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-project-empty`,className:Zn,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(I.CONVERSATION$OVERVIEW_SCOPE_PROJECT_EMPTY_SKILLS)})}):O.length===0?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-no-match`,className:Zn,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(I.SETTINGS$SKILLS_NO_MATCH)})}):(0,Z.jsx)(`section`,{className:z(`flex min-w-0 flex-col gap-3`,Xn),children:(0,Z.jsx)(`div`,{className:z(Qn,`grid-cols-1`),children:O.map(e=>(0,Z.jsx)(kt,{skill:e,enabled:!u.has(e.name),onOpen:()=>S(e),onToggle:t=>k(e.name,t)},e.name))})}),x?(0,Z.jsx)(jt,{skill:x,enabled:!u.has(x.name),onToggle:e=>k(x.name,e),onClose:()=>S(null)}):null,C?(0,Z.jsx)(Et,{onClose:()=>E(!1)}):null,y?(0,Z.jsx)(Ot,{groups:Mt(D,u,_),activeCount:Ct(_),onToggle:(e,t)=>v(n=>wt(n,e,t)),onClearAll:()=>v(e=>Dt(e)),onClose:()=>b(!1)}):null]})}function yl({openAdd:e}){let{t}=f(`openhands`),{data:n,isLoading:r}=Ht(),{mutate:i,isPending:a}=Pi(),{mutate:o}=ji(),s=Bo()?.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=tr(Vt(n?.agent_settings?.mcp_config)),b=rr(ar),x=y.filter(e=>nr(e,ir(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)(Ii,{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(I.MCP$INSTALLED_TITLE)}),(0,Z.jsx)(Mi,{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)(Fi,{onSelect:l,onAdd:l,query:h}),c?(0,Z.jsx)(Vn,{entry:c,existingServers:y,onClose:()=>l(null)}):null,u?(0,Z.jsx)(Ni,{server:u,existingServers:y,onClose:()=>d(null)}):null,p?(0,Z.jsx)(dn,{text:t(I.SETTINGS$MCP_CONFIRM_DELETE),onCancel:()=>m(null),onConfirm:()=>{p&&i(p,{onSuccess:()=>{E(t(I.MCP$REMOVE_SUCCESS)),m(null)},onError:e=>{T(w(e)||t(I.ERROR$GENERIC)),m(null)}})},isConfirming:a}):null]})}function bl({openAdd:e}){let t=d(),{t:n}=f(`openhands`),r=Bo()?.addRequestKey??0,{data:i,isLoading:a}=er(),{mutate:o,isPending:s}=Li(),[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)(Ri,{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(I.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(I.BUTTON$DELETE),onClick:()=>p(e.name),className:z(`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)(Ft,{className:`size-3.5`,"aria-hidden":!0})})]},e.name))}):(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-secrets-empty`,className:z(Zn,`px-2 py-6 text-center text-sm`),children:n(I.SECRETS$EMPTY)})}),u?(0,Z.jsx)(dn,{text:n(I.SECRETS$CONFIRM_DELETE_KEY),isConfirming:s,onCancel:()=>p(null),onConfirm:()=>{o(u,{onSettled:()=>p(null),onSuccess:m,onError:m})}}):null]})}var xl=z(`size-3.5 shrink-0 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100`);function Sl(e){let{repository:t,provider:n}=Eo();return!t||!n?null:e===Q.pull_requests?ds.constructPullRequestsListUrl(n,t):ds.constructIssuesListUrl(n,t)}function Cl({kind:e}){let{t}=f(`openhands`),{provider:n}=Eo(),r=Sl(e);return!r||!n?null:(0,Z.jsxs)(`a`,{href:r,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-${e}-open-external`,className:z(`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(I.CONVERSATION$OVERVIEW_VIEW_ON_PROVIDER,{provider:R(n)}),(0,Z.jsx)(rt,{className:`size-3.5`,"aria-hidden":!0})]})}function wl({kind:e}){let{t}=f(`openhands`),{repository:n,provider:r,isConnected:i}=Eo(),a=fs(n,r),o=ps(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:z(Zn,`px-4 py-6 text-center text-sm`),children:t(I.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(I.HOME$LOADING)}):s.isError?(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-${e}-error`,className:z(Zn,`px-2 py-6 text-center text-sm`),children:t(I.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:z(`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)(rt,{className:xl,"aria-hidden":!0})]})},t.id))}):(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-${e}-empty`,className:z(Zn,`px-2 py-6 text-center text-sm`),children:e===Q.pull_requests?t(I.CONVERSATION$OVERVIEW_PULL_REQUESTS_EMPTY):t(I.CONVERSATION$OVERVIEW_ISSUES_EMPTY)})})}var Tl=z(`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`),El=z(`h-7 min-h-7 shrink-0 whitespace-nowrap px-2.5 text-xs`),Dl=z(`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 Ol(e){switch(e){case Q.automations:return I.CONVERSATION_PANEL$AUTOMATIONS;case Q.skills:return I.SETTINGS$NAV_SKILLS;case Q.mcp:return I.CONVERSATION$OVERVIEW_MCP;case Q.secrets:return I.SETTINGS$NAV_SECRETS;case Q.pull_requests:return I.CONVERSATION$OVERVIEW_PULL_REQUESTS;case Q.issues:return I.CONVERSATION$OVERVIEW_ISSUES;default:return e}}function kl({section:e}){let{t}=f(`openhands`),{requestAdd:n}=zo();switch(e){case Q.automations:return(0,Z.jsx)(V,{type:`button`,variant:`primary`,testId:`conversation-overview-automations-add`,className:El,onClick:n,children:t(I.AUTOMATIONS$ADD_AUTOMATION)});case Q.skills:return(0,Z.jsx)(V,{type:`button`,variant:`primary`,testId:`conversation-overview-skills-add-skill-button`,className:El,onClick:n,children:t(I.SETTINGS$SKILLS_ADD_BUTTON)});case Q.mcp:return(0,Z.jsx)(V,{type:`button`,variant:`secondary`,testId:`conversation-overview-mcp-add-server`,className:El,onClick:n,children:t(I.MCP$ADD_CUSTOM)});case Q.secrets:return(0,Z.jsx)(V,{type:`button`,variant:`primary`,testId:`conversation-overview-secrets-add-button`,className:El,onClick:n,children:t(I.SECRETS$ADD_NEW_SECRET)});case Q.pull_requests:return(0,Z.jsx)(Cl,{kind:`pull_requests`});case Q.issues:return(0,Z.jsx)(Cl,{kind:`issues`});default:return null}}function Al({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)(yl,{openAdd:t});case Q.secrets:return(0,Z.jsx)(bl,{openAdd:t});case Q.pull_requests:return(0,Z.jsx)(wl,{kind:`pull_requests`});case Q.issues:return(0,Z.jsx)(wl,{kind:`issues`});default:return e}}function jl({className:e}){let{t}=f(`openhands`),{section:n,openAdd:r,closeDrawer:i}=zo(),{workspaceName:a}=To();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(Ol(n)),className:z(`flex h-full w-full min-h-0 flex-col overflow-hidden bg-base-secondary`,e),children:[(0,Z.jsxs)(`header`,{className:Tl,children:[(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-overview-drawer-close`,"aria-label":t(I.BUTTON$CLOSE),onClick:i,className:Dl,children:(0,Z.jsx)(or,{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(Ol(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)(kl,{section:n})})]}),(0,Z.jsx)(`div`,{className:z(`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)(Al,{section:n,openAdd:r})})]})}var Ml=`conversation-overview-drawer-width`,Nl=`conversation-overview-drawer-resize-handle`,Pl=`conversation-overview-drawer`;function Fl(e){return e?`translate-x-0 opacity-100`:`w-0 translate-x-full opacity-0`}function Il({isMobile:e,resizeContainerRef:t}){let n=Bo(),r=!!n?.section,{drawerWidth:i,isDragging:a,handleMouseDown:o}=ul({containerRef:t??{current:null},defaultWidth:420,minWidth:300,maxWidth:640,storageKey:Ml,enabled:r&&!e&&t!=null});return n?e?r?(0,Z.jsx)(jl,{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":Nl,children:(0,Z.jsx)(ol,{onMouseDown:o,isDragging:a})}):null,(0,Z.jsx)(`div`,{"data-testid":Pl,"aria-hidden":!r,className:z(`shrink-0 overflow-hidden ease-in-out`,a?`transition-[transform,opacity] duration-300`:`transition-all duration-300`,Fl(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)(jl,{className:`h-full`}):null})})]}):null}function Ll(e){return e?`translate-x-0 opacity-100`:`w-0 translate-x-full opacity-0`}function Rl(){let e=Oi(),t=Oi(767),{isRightPanelShown:n}=U(),r=!!Bo()?.section,{leftWidth:i,rightWidth:a,isDragging:o,containerRef:s,handleMouseDown:c}=cl({defaultLeftWidth:50,minLeftWidth:30,maxLeftWidth:80,storageKey:`desktop-layout-panel-width`});return(0,Z.jsx)(`div`,{className:z(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:z(`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:z(`flex flex-col bg-base overflow-hidden`,e?`flex-1`:z(`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:z(`flex h-10 min-h-10 shrink-0 items-center`,t&&`gap-2 pl-2.5`),children:[t?(0,Z.jsx)(Mn,{}):null,(0,Z.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Z.jsx)(Wc,{})})]}),(0,Z.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,Z.jsx)(As,{isRightPanelShown:!e&&n})})]}),!e&&n&&(0,Z.jsx)(ol,{onMouseDown:c,isDragging:o}),!e&&(0,Z.jsx)(`div`,{className:z(`transition-all duration-300 ease-in-out overflow-hidden`,Ll(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)(al,{isPanelResizing:o})}),(0,Z.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,Z.jsx)(qs,{})})]})})}),(0,Z.jsx)(Il,{isMobile:e,resizeContainerRef:s})]})})}function zl({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(I.COMMON$BACK),className:An,children:(0,Z.jsx)(Xe,{size:20,className:Dn,"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)(al,{variant:`compact`})})})]}),(0,Z.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col bg-[var(--oh-surface)]`,children:(0,Z.jsx)(qs,{})})]})}var Bl=1e3*60*5,Vl=1e3*60*15,Hl=e=>{let t=e||[],n=A();return y({queryKey:[`v1`,`sub-conversations`,t,n.backend.id,n.orgId],queryFn:async()=>t.length===0?[]:hn.batchGetAppConversations(t),enabled:t.length>0,staleTime:Bl,gcTime:Vl,retry:!1})};function Ul({children:e,conversationId:t}){let{data:n}=J(),{data:r}=Hl(n?.sub_conversation_ids??[]),i=r?.filter(e=>e!==null);return(0,Z.jsx)(ai,{conversationId:t,conversationUrl:n?.sandbox_status===`PAUSED`?null:n?.conversation_url,sessionApiKey:n?.session_api_key,subConversationIds:n?.sub_conversation_ids,subConversations:i,children:e})}function Wl(){let{t:e}=f(`openhands`),{conversationId:t}=q(),n=c(`/conversations/:conversationId/panel`),{isTask:r,taskStatus:i,taskDetail:a}=hr(),o=A(),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}=J(),{data:g}=gn(),{resetConversationState:_}=U(),v=l(),y=s(),b=yi(e=>e.clearTerminal),x=wn(e=>e.reset),S=Bi(e=>e.setCurrentAgentState),C=vi(e=>e.removeErrorMessage);X.useEffect(()=>{b(),_(),x(),S(L.LOADING),C()},[t,b,_,x,S,C]),X.useEffect(()=>{if(r&&i===`ERROR`){T(a||e(I.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||(Ki(o.backend.id,o.orgId),T(e(I.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-`)||Gi(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,mn(m.sandbox_id).catch(()=>{T(e(I.CONVERSATION$FAILED_TO_START_FROM_TASK))}))},[h,m?.id,m?.sandbox_status,m?.sandbox_id,o.backend.kind,e]),p?null:(0,Z.jsx)(Ul,{conversationId:t,children:(0,Z.jsx)(Qi,{children:(0,Z.jsx)(Ro,{children:(0,Z.jsx)(`div`,{"data-testid":`app-route`,className:`flex h-full flex-col`,children:n?(0,Z.jsx)(zl,{onNavigateBack:()=>v(`/conversations/${t}`)}):(0,Z.jsx)(Rl,{})})})})})}function Gl(){return(0,Z.jsx)(Wl,{})}var Kl=u(Gl);export{ms as a,rl as i,ul as n,jo as o,ol as r,Ao as s,Kl as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./conversation-Dpzftz57.js";export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./rolldown-runtime-Cyuzqnbw.js";import{St as e,yt as t}from"./vendor-styling-Ck5D_A2Q.js";import{l as n,v as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js";import{$ as i,ct as a,et as o,xt as s}from"./active-backend-context-DKFSMbn3.js";import{a as c,i as l}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js";import{_ as u}from"./conversation-store-Ca3ghXap.js";import{C as d,E as f,h as p,t as m,y as h}from"./agent-server-conversation-service.api-DozDKIW_.js";var g=async e=>{let t=(await m.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}},_=async e=>{let{conversationUrl:t,sessionApiKey:n,sandboxId:o}=await g(e);if(a().backend.kind===`cloud`){if(!o)throw Error(`Cannot stop runtime: cloud conversation ${e} has no sandbox_id.`);return await h(o),{success:!0}}return new r(i({conversationUrl:t,sessionApiKey:n})).interruptConversation(e)},v=async(e,t)=>{let{conversationUrl:n,sessionApiKey:a}=await g(e);return new r(i({conversationUrl:n,sessionApiKey:a})).askAgent(e,t)},y=async(e,t)=>{let{conversationUrl:n,sessionApiKey:a}=await g(e);await new r(i({conversationUrl:n,sessionApiKey:a})).startGoal(e,t)},b=async e=>{let{conversationUrl:t,sessionApiKey:n}=await g(e);await new r(i({conversationUrl:t,sessionApiKey:n})).stopGoal(e)},x=async e=>{let{conversationUrl:t,sessionApiKey:n}=await g(e);await new r(i({conversationUrl:t,sessionApiKey:n})).resumeGoal(e)},S=async e=>{let{conversationUrl:t,sessionApiKey:n}=await g(e);return new r(i({conversationUrl:t,sessionApiKey:n})).runConversation(e)},C=(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)}))})},w=(e,t,n)=>C(e,t,{execution_status:n}),T=(e,t,n)=>C(e,t,{llm_model:n}),E=(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`]})},D=/^[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 O(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 k(e,t={}){return f(e,t)}async function A(e,t,n={}){let r=O(e);return`${(await k(t,n)).replace(/[/\\]+$/,``)}/${r}`}async function j(e,t){if(t?.id===e&&t.workspace?.working_dir?.trim())return t.workspace.working_dir.trim();let n=d(e);return n?.selected_workspace?.trim()?n.selected_workspace.trim():D.test(e)?m.resolveConversationWorkingDir(e):s()}var M=5;async function N(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(a().backend.kind===`cloud`){let[t]=await p([e]);return{conversationUrl:t?.conversation_url?.trim()??null,sessionApiKey:t?.session_api_key?.trim()??null}}return{conversationUrl:null,sessionApiKey:null}}function P(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 F(e,t,n){let r=await j(e,n),i=await N(e,n),o=a().backend.kind===`cloud`,s=n?.id===e?n.session_api_key??i.sessionApiKey:i.sessionApiKey,c=n?.id===e?n.conversation_url??i.conversationUrl:i.conversationUrl;if(o){let e=P({conversationUrl:c,sessionApiKey:s});return I({files:t,workingDir:r,conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey})}return I({files:t,workingDir:r,conversationUrl:c,sessionApiKey:s})}async function I(e){let{files:t,workingDir:n,conversationUrl:r,sessionApiKey:a}=e,o=new l(i({conversationUrl:r,sessionApiKey:a,workingDir:n})),s=async e=>{try{let t=O(e.name),i=await A(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+=M){let n=t.slice(e,e+M);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 L=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??s():s();return{vscode_url:await new n(i(this.getClientOverrides())).getUrl({baseUrl:typeof window<`u`?window.location.origin:void 0,workspaceDir:t})}}static async getTrajectory(e){return{trajectory:(await new c(o(this.getClientOverrides()),e).search({limit:1e4})).items??[]}}static async uploadFiles(e,t){return F(e,t,this.currentConversation)}};e();var R=t(),z=e=>(0,R.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,R.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`})}),B=e=>{let t=e.match(/^\/workspace\/[^/]+\/(.*)$/);return t?t[1]:e},V=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},H=u(e=>({execution_status:null,setExecutionStatus:t=>e({execution_status:t}),reset:()=>e({execution_status:null})}));export{T as _,L as a,v as c,_ as d,S as f,w as g,b as h,z as i,E as l,y as m,V as n,N as o,x as p,B as r,F as s,H as t,C as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{t as r}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{Mt as i,Nt as a}from"./active-backend-context-DKFSMbn3.js";import{W as o,t as s}from"./utils-DaCIEEQP.js";import{E as c,x as l}from"./use-tracking-D5t9otIF.js";import{r as u}from"./modal-classes-BAb4Y_BG.js";import{f as d,l as f}from"./form-control-classes-CGw40z5h.js";import{t as p}from"./brand-button-Dxv6PDeN.js";import{t as m}from"./settings-dropdown-input-tM0A0ipy.js";import{t as h}from"./settings-input-C03KUoSC.js";import{t as g}from"./use-llm-profiles-djGAhTWL.js";import{s as _}from"./use-automations-zYb0dUny.js";import{n as v}from"./api-error-message-BJyfWp6p.js";import{t as y}from"./x-mark-BopmFoBq.js";import{c as b,d as x,f as S,l as C,u as w}from"./kebab-menu-item-content-BYokkRHi.js";import{t as T}from"./use-manifest-capabilities-3z0-1G59.js";var E=e(t(),1);function D(e,t){let n=e.trim();if(!n)return{value:null};let r=Number(n);return Number.isInteger(r)?r<=0?{errorKey:o.AUTOMATIONS$ERROR_TIMEOUT_POSITIVE}:t!==void 0&&r>t?{errorKey:o.AUTOMATIONS$ERROR_TIMEOUT_MAX_EXCEEDED}:{value:r}:{errorKey:o.AUTOMATIONS$ERROR_TIMEOUT_INVALID_NUMBER}}var O=n(),k=`__active__`,A=[o.AUTOMATIONS$WEEKDAY_SUN,o.AUTOMATIONS$WEEKDAY_MON,o.AUTOMATIONS$WEEKDAY_TUE,o.AUTOMATIONS$WEEKDAY_WED,o.AUTOMATIONS$WEEKDAY_THU,o.AUTOMATIONS$WEEKDAY_FRI,o.AUTOMATIONS$WEEKDAY_SAT];function j(e){let t=e.timeout==null?``:String(e.timeout);if(e.trigger.type===`event`)return{name:e.name,prompt:e.prompt??``,model:e.model??``,frequency:`custom`,weekday:1,timeOfDay:``,isCustomSchedule:!0,rawSchedule:``,timeout:t};let n=x(e.trigger.schedule);return n.kind===`custom`?{name:e.name,prompt:e.prompt??``,model:e.model??``,frequency:`custom`,weekday:1,timeOfDay:n.hour!==void 0&&n.minute!==void 0?w(n.hour,n.minute):``,isCustomSchedule:!0,rawSchedule:n.raw,timeout:t}:{name:e.name,prompt:e.prompt??``,model:e.model??``,frequency:n.kind,weekday:n.kind===`weekly`?n.weekday??1:1,timeOfDay:w(n.hour,n.minute),isCustomSchedule:!1,rawSchedule:e.trigger.schedule??``,timeout:t}}function M({automation:e,isOpen:t,onClose:n}){let{t:x}=r(`openhands`),w=_(),M=c().editTitle,N=l(`name`),P=l(`prompt`),F=l(`model`),I=l(`timeout`),L=l(`schedule`),{data:R}=T(),z=R?.maxAutomationTimeoutSeconds,B=z===void 0?void 0:Math.min(z,I.max??z),{data:V,isLoading:H}=g(),U=V?.profiles??[],W=[{key:k,label:x(o.COMMON$ACTIVE_PROFILE)},...U.map(e=>({key:e.name,label:e.name}))],G=(0,E.useMemo)(()=>j(e),[e]),[K,q]=(0,E.useState)(G),[J,Y]=(0,E.useState)(null),[X,Z]=(0,E.useState)(null);if((0,E.useEffect)(()=>{t&&(q(G),Y(null),Z(null))},[t,G]),!t)return null;let Q=[{key:`daily`,label:x(o.AUTOMATIONS$FREQUENCY_DAILY)},{key:`weekdays`,label:x(o.AUTOMATIONS$FREQUENCY_WEEKDAYS)},{key:`weekly`,label:x(o.AUTOMATIONS$FREQUENCY_WEEKLY)},...K.isCustomSchedule?[{key:`custom`,label:x(o.AUTOMATIONS$FREQUENCY_CUSTOM)}]:[]],$=A.map((e,t)=>({key:String(t),label:x(e)})),ee=!K.isCustomSchedule||S(K.timeOfDay)!==null||K.timeOfDay===``;return(0,O.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:[(0,O.jsx)(`div`,{className:`absolute inset-0 bg-black/60`,onClick:n,onKeyDown:e=>{e.key===`Escape`&&n()},role:`presentation`}),(0,O.jsxs)(`div`,{className:`relative w-full max-w-md rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6`,children:[(0,O.jsx)(`button`,{type:`button`,onClick:n,className:`absolute right-4 top-4 text-muted hover:text-foreground`,"aria-label":x(o.AUTOMATIONS$CANCEL),children:(0,O.jsx)(y,{className:`size-5`})}),(0,O.jsx)(`h2`,{className:u,children:M}),(0,O.jsxs)(`form`,{onSubmit:t=>{t.preventDefault();let r=K.name.trim();if(!r){Y(x(o.AUTOMATIONS$NAME_REQUIRED));return}Y(null);let s=D(K.timeout,B);if(`errorKey`in s){Z(x(s.errorKey,{max:B}));return}Z(null);let c={};r!==e.name&&(c.name=r);let l=K.prompt.trim();l!==(e.prompt??``).trim()&&(c.prompt=l.length===0?null:l);let u=K.model.trim();if(u!==(e.model??``)&&(c.model=u===``?null:u),(s.value??null)!==(e.timeout??null)&&(c.timeout=s.value),!K.isCustomSchedule&&K.frequency!==`custom`){let t=S(K.timeOfDay);if(t){let n=b({kind:K.frequency,hour:t.hour,minute:t.minute,weekday:K.frequency===`weekly`?K.weekday:void 0});n!==e.trigger.schedule&&(c.trigger={...e.trigger,schedule:n})}}if(Object.keys(c).length===0){n();return}w.mutate({id:e.id,body:c},{onSuccess:()=>{a(x(o.AUTOMATIONS$EDIT_SUCCESS)),n()},onError:e=>{i(v(e,x(o.AUTOMATIONS$EDIT_ERROR)))}})},noValidate:!0,className:`mt-4 flex flex-col gap-4`,"aria-label":M,children:[N.present&&(0,O.jsx)(h,{testId:`edit-automation-name`,name:`name`,type:`text`,label:N.label,value:K.name,onChange:e=>q(t=>({...t,name:e})),error:J??void 0,showRequiredTag:N.required}),P.present&&(0,O.jsxs)(`label`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,O.jsx)(`span`,{className:`text-sm`,children:P.label}),(0,O.jsx)(`textarea`,{"data-testid":`edit-automation-prompt`,name:`prompt`,value:K.prompt,onChange:e=>q(t=>({...t,prompt:e.target.value})),rows:4,className:s(f,`placeholder:italic`)}),P.help!==null&&(0,O.jsx)(`span`,{className:`text-xs text-muted`,children:P.help})]}),F.present&&(H||U.length>0)&&(0,O.jsx)(m,{testId:`edit-automation-model`,name:`model`,label:F.label,items:W,selectedKey:K.model||k,isLoading:H,placeholder:x(o.COMMON$ACTIVE_PROFILE),onSelectionChange:e=>q(t=>({...t,model:e&&e!==k?String(e):``}))}),I.present&&(0,O.jsxs)(`div`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,O.jsx)(h,{testId:`edit-automation-timeout`,name:`timeout`,type:`number`,label:I.label,value:K.timeout,onChange:e=>q(t=>({...t,timeout:e})),error:X??void 0,showOptionalTag:!0,min:I.min??1,max:B,step:1,placeholder:`600`}),I.help!==null&&(0,O.jsx)(`span`,{"data-testid":`edit-automation-timeout-hint`,className:`text-xs text-muted`,children:I.help})]}),e.trigger.type===`event`?(0,O.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-lg bg-[var(--oh-surface-raised)] p-3`,children:[(0,O.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$TRIGGER)}),(0,O.jsx)(`span`,{className:`text-sm text-content`,children:x(o.AUTOMATIONS$DETAIL$TRIGGER_EVENT)})]}),e.trigger.source&&(0,O.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$EVENT_SOURCE)}),(0,O.jsx)(`span`,{className:`text-sm text-content`,children:e.trigger.source})]}),e.trigger.on&&(0,O.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$EVENT_TYPE)}),(0,O.jsx)(`code`,{className:`text-xs font-mono text-content`,children:C(e.trigger.on)})]}),e.trigger.filter&&(0,O.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$EVENT_FILTER)}),(0,O.jsx)(`code`,{className:`text-xs font-mono text-content break-all`,children:e.trigger.filter})]})]}):L.present?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(m,{testId:`edit-automation-frequency`,name:`frequency`,label:L.label,items:Q,selectedKey:K.frequency,isDisabled:K.isCustomSchedule,onSelectionChange:e=>{!e||K.isCustomSchedule||q(t=>({...t,frequency:e}))}}),K.frequency===`weekly`&&!K.isCustomSchedule&&(0,O.jsx)(m,{testId:`edit-automation-weekday`,name:`weekday`,label:x(o.AUTOMATIONS$WEEKDAY),items:$,selectedKey:String(K.weekday),onSelectionChange:e=>{e!==null&&q(t=>({...t,weekday:Number(e)}))}}),(0,O.jsxs)(`label`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,O.jsx)(`span`,{className:`text-sm`,children:x(o.AUTOMATIONS$TIME_OF_DAY)}),(0,O.jsx)(`input`,{"data-testid":`edit-automation-time`,name:`timeOfDay`,type:`time`,value:K.timeOfDay,onChange:e=>q(t=>({...t,timeOfDay:e.target.value})),disabled:K.isCustomSchedule&&!ee,className:s(d,`disabled:bg-[var(--oh-surface-raised)]`)}),e.timezone&&(0,O.jsxs)(`span`,{className:`text-xs text-muted`,children:[x(o.AUTOMATIONS$TIMEZONE),`: `,e.timezone]})]}),K.isCustomSchedule&&(0,O.jsxs)(`p`,{className:`text-xs text-muted`,"data-testid":`custom-schedule-hint`,children:[x(o.AUTOMATIONS$CUSTOM_SCHEDULE_HINT),K.rawSchedule&&(0,O.jsxs)(O.Fragment,{children:[` `,(0,O.jsx)(`code`,{className:`text-xs text-content`,children:K.rawSchedule})]})]})]}):null,(0,O.jsxs)(`div`,{className:`mt-2 flex justify-end gap-3`,children:[(0,O.jsx)(p,{testId:`edit-automation-cancel`,type:`button`,variant:`secondary`,onClick:n,isDisabled:w.isPending,children:x(o.AUTOMATIONS$CANCEL)}),(0,O.jsx)(p,{testId:`edit-automation-save`,type:`submit`,variant:`primary`,isDisabled:w.isPending,"aria-busy":w.isPending,children:w.isPending?x(o.AUTOMATIONS$SAVING):x(o.AUTOMATIONS$SAVE)})]})]})]})]})}export{M as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,i as n,yt as r}from"./vendor-styling-Ck5D_A2Q.js";import{t as i}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{D as a}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js";import{n as o,t as s}from"./recommended-automations-launcher-Bw8uC4V6.js";import{t as c}from"./vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js";import{n as l}from"./active-backend-context-DKFSMbn3.js";import{W as u,t as d}from"./utils-DaCIEEQP.js";import{C as f,D as p,E as m,P as h,S as g,a as _,b as v,d as y,i as b,n as x,o as S,p as C,r as w,s as T,t as E,v as D,w as O,x as k,y as A}from"./home-automation-run-tooltip-CooFQRIG.js";import{r as j}from"./context-menu-list-item-lVYETtY5.js";import{S as M,t as N}from"./use-tracking-D5t9otIF.js";import{t as P}from"./modal-backdrop-BSzNhM4r.js";import{n as F}from"./modal-classes-BAb4Y_BG.js";import{t as I}from"./brand-button-Dxv6PDeN.js";import{n as L}from"./navigation-context-CQZwH_tC.js";import{t as ee}from"./navigation-link-Bxo3-4vo.js";import{t as te}from"./styled-tooltip-Dl06rkpY.js";import{t as R}from"./modal-close-button-CkJ0Ktjj.js";import{t as z}from"./u-edit-DAkcF52u.js";import{n as ne}from"./use-automation-health-BxXdzZMP.js";import{t as B}from"./automation-C_eCrGyP.js";import{a as V,i as re,n as H,o as U,r as ie,t as ae}from"./extension-module-card-classes-DpeaYhYo.js";import{n as oe}from"./skill-card-pill-row-CFxjoqxn.js";import{a as W,n as se,o as G,r as K}from"./kebab-menu-item-content-BYokkRHi.js";import{t as q}from"./use-has-permission-B3C8rQmR.js";import{n as J,r as Y,t as ce}from"./trash-_RMt7Ayc.js";import{n as le,t as ue}from"./use-launch-skill-in-chat-BYjYihBP.js";var de=a(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),X=r();function fe(){return(0,X.jsxs)(`div`,{"data-testid":`automation-card-skeleton`,className:`${V} border border-transparent p-4`,children:[(0,X.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,X.jsx)(`div`,{className:`h-5 w-40 animate-pulse rounded bg-surface-raised`}),(0,X.jsx)(`div`,{className:`size-8 animate-pulse rounded-md bg-surface-raised`})]}),(0,X.jsx)(`div`,{className:`mt-2 h-4 w-72 animate-pulse rounded bg-surface-raised`}),(0,X.jsxs)(`div`,{className:`mt-3 flex gap-2`,children:[(0,X.jsx)(`div`,{className:`h-5 w-20 animate-pulse rounded-full bg-surface-raised`}),(0,X.jsx)(`div`,{className:`h-5 w-24 animate-pulse rounded bg-surface-raised`})]}),(0,X.jsxs)(`div`,{className:`mt-3 flex gap-2`,children:[(0,X.jsx)(`div`,{className:`h-7 w-32 animate-pulse rounded-full bg-surface-raised`}),(0,X.jsx)(`div`,{className:`h-7 w-28 animate-pulse rounded-full bg-surface-raised`}),(0,X.jsx)(`div`,{className:`h-7 w-24 animate-pulse rounded-full bg-surface-raised`})]}),(0,X.jsx)(`div`,{className:`mt-3 h-9 animate-pulse rounded-md bg-surface-raised`})]})}var Z=e(t(),1);function Q({automation:e,t,canManage:n,onRunNow:r,isRunPending:i,onView:a,onExport:o,onEdit:s,onToggle:c,onDelete:l}){return[...n?[{label:t(u.AUTOMATIONS$RUN_NOW),icon:(0,X.jsx)(K,{className:`size-4`}),onClick:()=>r(e.id),disabled:i||!e.enabled}]:[],{label:t(u.COMMON$VIEW),icon:(0,X.jsx)(h,{className:`size-4`,"aria-hidden":!0}),onClick:a},{label:t(u.AUTOMATIONS$EXPORT),icon:(0,X.jsx)(de,{className:`size-4`,"aria-hidden":!0}),onClick:()=>o(e)},...n&&s?[{label:t(u.AUTOMATIONS$EDIT),icon:(0,X.jsx)(z,{className:`size-4`}),onClick:()=>s(e.id)}]:[],...n?[{label:e.enabled?t(u.AUTOMATIONS$TURN_OFF):t(u.AUTOMATIONS$TURN_ON),icon:(0,X.jsx)(se,{className:`size-4`}),onClick:()=>c(e.id,e.enabled)},{label:t(u.AUTOMATIONS$DELETE),icon:(0,X.jsx)(ce,{className:`size-4`}),onClick:()=>l(e.id)}]:[]]}function pe({automation:e,onToggle:t,onRunNow:r,isRunPending:a=!1,onDelete:o,onExport:s,onEdit:c,insights:l}){let{navigate:f}=L(),{t:h,i18n:g}=i(`openhands`),_=q(`manage_automations`),v=e.trigger.schedule_human||e.trigger.type,x=(0,Z.useMemo)(()=>D(e,v),[e,v]),S=()=>{f?.(`/automations/${e.id}`)},w=Q({automation:e,t:h,canManage:_,onRunNow:r,isRunPending:a,onView:S,onExport:s,onEdit:c,onToggle:t,onDelete:o}),{latestRun:E,recentRuns:O,isLoading:A,isError:j}=y(l?.state),M=E?k(E):null,N=E?.status===B.FAILED&&E.error_detail?.trim()||null,P=N?m(N):null,F=N!=null&&P!=null&&p(N,P);return(0,X.jsxs)(`div`,{role:`link`,tabIndex:0,"data-testid":`automation-card-${e.id}`,onClick:S,onKeyDown:e=>{e.key===`Enter`&&S()},className:d(`group relative flex min-w-0 flex-col overflow-hidden p-4 text-left`,V,ie),children:[(0,X.jsxs)(`header`,{className:`flex flex-col gap-1.5`,children:[(0,X.jsxs)(`div`,{className:`flex h-8 items-center justify-between gap-3`,children:[(0,X.jsx)(`h3`,{className:`min-w-0 flex-1 truncate text-sm font-semibold leading-none text-[var(--oh-foreground)]`,children:e.name}),(0,X.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,children:[_?(0,X.jsx)(te,{content:h(u.AUTOMATIONS$RUN_NOW),placement:`top`,children:(0,X.jsx)(`button`,{type:`button`,"data-testid":`automation-run-now-${e.id}`,"aria-label":h(u.AUTOMATIONS$RUN_NOW),"aria-busy":a,disabled:a||!e.enabled,onClick:t=>{t.stopPropagation(),r(e.id)},className:Y,children:(0,X.jsx)(K,{className:`size-4 shrink-0`,"aria-hidden":!0})})}):null,(0,X.jsx)(J,{items:w,triggerClassName:`opacity-70 group-hover:opacity-100`})]})]}),e.prompt?(0,X.jsx)(`p`,{className:`line-clamp-2 text-xs leading-relaxed text-[var(--oh-text-secondary)]`,children:e.prompt}):null]}),x.length>0||O.length>0?(0,X.jsxs)(`div`,{className:d(`mt-3 flex items-center gap-3`,x.length>0?`justify-between`:`justify-end`),children:[x.length>0?(0,X.jsx)(`div`,{className:`min-w-0 flex-1 overflow-hidden`,children:(0,X.jsx)(oe,{pills:x,testId:`automation-pills-${e.id}`})}):null,O.length>0?(0,X.jsx)(b,{automationId:e.id,runs:O,testId:`automation-activity-${e.id}`}):null]}):null,l?(0,X.jsxs)(`div`,{className:T,children:[(0,X.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2 overflow-hidden`,children:[A?(0,X.jsx)(`div`,{className:`h-3.5 w-3/4 animate-pulse rounded bg-surface-raised motion-reduce:animate-none`,"aria-hidden":`true`}):null,!A&&j?(0,X.jsx)(`p`,{className:`truncate text-[var(--oh-text-secondary)]`,children:h(u.FEATURED_AUTOMATIONS$STATUS_UNAVAILABLE)}):null,!A&&!j&&!E?(0,X.jsx)(`p`,{className:`truncate text-[var(--oh-text-secondary)]`,children:h(u.AUTOMATIONS$DETAIL$NO_RUNS)}):null,E?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(G,{status:E.status,iconOnly:!0,showLabel:!0}),P?F&&N?(0,X.jsx)(n,{content:(0,X.jsx)(`p`,{className:`max-w-xs whitespace-pre-wrap break-words p-2 text-xs`,children:N}),placement:`top`,closeDelay:100,disableAnimation:!1,className:`rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl`,children:(0,X.jsx)(`span`,{className:`min-w-0 flex-1 cursor-default truncate text-[var(--oh-status-error)]`,children:P})}):(0,X.jsx)(`p`,{className:`min-w-0 flex-1 truncate text-[var(--oh-status-error)]`,children:P}):null]}):null]}),M?(0,X.jsx)(`span`,{"data-testid":`automation-last-run-${e.id}`,className:`shrink-0 text-[var(--oh-text-secondary)]`,children:W(M,g.language,h)}):null]}):null,l?(0,X.jsx)(`div`,{className:`mt-3`,children:(0,X.jsx)(C,{state:l.state,copy:l.spec.stats})}):null]})}function me({automation:e,onToggle:t,onRunNow:r,isRunPending:a=!1,onDelete:o,onExport:s,onEdit:c,insights:l}){let{navigate:p}=L(),{t:m,i18n:h}=i(`openhands`),_=q(`manage_automations`),C=Q({automation:e,t:m,canManage:_,onRunNow:r,isRunPending:a,onView:()=>{p?.(`/automations/${e.id}`)},onExport:s,onEdit:c,onToggle:t,onDelete:o}),T=e.trigger.type===`event`?j:ne,D=g(e),M=f(e),N=O(e),P=!!(D||M||N),F=y(l?.state),I=A(F),R=F.latestRun,z=R?k(R):e.last_triggered_at,B=z?W(z,h.language,m):null,V=P||!!B||!!R?.status,H=`/automations/${encodeURIComponent(e.id)}`,U=x(F);return(0,X.jsxs)(`li`,{"data-testid":`automation-list-row-${e.id}`,className:S,children:[(0,X.jsx)(n,{content:(0,X.jsx)(E,{automation:e,runState:F}),placement:`top-start`,closeDelay:100,disableAnimation:!1,className:`rounded-xl border border-[var(--oh-border)] bg-base-secondary p-0 text-white shadow-xl`,children:(0,X.jsx)(ee,{to:H,"aria-label":`${e.name} ${m(U)}`,className:`flex min-w-0 flex-1 items-center justify-between gap-3 px-3 py-2.5 focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--oh-focus)]`,children:(0,X.jsxs)(`div`,{className:`grid min-w-0 flex-1 grid-cols-[auto_minmax(0,1fr)] gap-x-2`,children:[(0,X.jsx)(`span`,{"data-testid":`automation-health-${e.id}`,className:`inline-flex h-5 w-2.5 shrink-0 items-center justify-center`,children:(0,X.jsx)(w,{health:I})}),(0,X.jsx)(`span`,{className:`truncate text-sm font-medium leading-5 text-[var(--oh-foreground)]`,children:e.name}),V?(0,X.jsxs)(`span`,{className:`col-start-2 mt-0.5 flex min-w-0 items-center gap-1.5 text-xs leading-4 text-[var(--oh-text-secondary)]`,children:[(0,X.jsx)(T,{className:`size-3 shrink-0`,"aria-hidden":`true`}),D?(0,X.jsx)(`span`,{className:`truncate`,children:D}):null,M?(0,X.jsx)(`span`,{className:`truncate`,children:M}):null,N?(0,X.jsx)(`span`,{className:d(re,`shrink-0 px-1.5 py-0 text-[var(--oh-text-secondary)]`),children:v(N)}):null,B?(0,X.jsxs)(X.Fragment,{children:[P?(0,X.jsx)(`span`,{className:`shrink-0`,"aria-hidden":`true`,children:`·`}):null,(0,X.jsx)(`span`,{"data-testid":`automation-last-run-${e.id}`,className:`truncate`,children:B})]}):null,R?(0,X.jsxs)(X.Fragment,{children:[P||B?(0,X.jsx)(`span`,{className:`shrink-0`,"aria-hidden":`true`,children:`·`}):null,(0,X.jsx)(G,{status:R.status,compact:!0})]}):null]}):null,(0,X.jsx)(`span`,{className:`sr-only`,children:m(U)})]})})}),(0,X.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1.5 pr-1.5`,children:[l?(0,X.jsx)(b,{automationId:e.id,runs:F.recentRuns,testId:`automation-activity-${e.id}`}):null,_?(0,X.jsx)(te,{content:m(u.AUTOMATIONS$RUN_NOW),placement:`top`,children:(0,X.jsx)(`button`,{type:`button`,"data-testid":`automation-run-now-${e.id}`,"aria-label":m(u.AUTOMATIONS$RUN_NOW),"aria-busy":a,disabled:a||!e.enabled,onClick:t=>{t.stopPropagation(),r(e.id)},className:Y,children:(0,X.jsx)(K,{className:`size-4 shrink-0`,"aria-hidden":!0})})}):null,(0,X.jsx)(J,{items:C,triggerClassName:`opacity-70 group-hover:opacity-100`})]})]})}function he({title:e,count:t,automations:n,view:r,onToggle:i,onRunNow:a,runPendingId:s=null,onDelete:c,onExport:l,onEdit:u,insights:f}){return n.length===0?null:(0,X.jsxs)(`section`,{children:[(0,X.jsxs)(`div`,{className:`flex items-center`,children:[(0,X.jsx)(`h2`,{className:`text-base font-semibold text-foreground`,children:e}),(0,X.jsx)(o,{count:t})]}),r===`grid`?(0,X.jsx)(`div`,{className:d(`mt-3`,H),children:(0,X.jsx)(`div`,{className:ae,children:n.map(e=>(0,X.jsx)(pe,{automation:e,onToggle:i,onRunNow:a,isRunPending:s===e.id,onDelete:c,onExport:l,onEdit:u,insights:f&&{spec:f.spec,state:f.byId.get(e.id)}},e.id))})}):(0,X.jsx)(`ul`,{className:d(_,`mt-3`),children:n.map(e=>(0,X.jsx)(me,{automation:e,onToggle:i,onRunNow:a,isRunPending:s===e.id,onDelete:c,onExport:l,onEdit:u,insights:f&&{spec:f.spec,state:f.byId.get(e.id)}},e.id))})]})}var ge=e=>(0,X.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,...e,children:(0,X.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`m19.5 8.25-7.5 7.5-7.5-7.5`})});function _e({children:e}){return(0,X.jsx)(`span`,{className:`whitespace-nowrap`,children:e})}function ve({children:e}){return(0,X.jsx)(`code`,{"data-testid":`automations-create-instructions-example`,className:d(`mx-0.5 inline-block rounded-sm border border-[var(--oh-border-subtle)]`,`bg-[var(--oh-surface-raised)] px-1.5 py-0.5 align-baseline font-mono text-[11px] text-white`),children:e})}function ye({children:e}){return(0,X.jsx)(X.Fragment,{children:e})}var be={example:(0,X.jsx)(_e,{}),cmd:(0,X.jsx)(ve,{}),punct:(0,X.jsx)(ye,{})};function $({onLaunch:e}={}){let{t}=i(`openhands`),n=ue(),r=l(),{trackAutomationCreatedButton:a}=N();return(0,X.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,X.jsxs)(`p`,{className:`text-sm leading-relaxed text-tertiary-light`,children:[(0,X.jsx)(c,{ns:`openhands`,i18nKey:u.AUTOMATIONS$EMPTY_OPTION_CONVERSATION_DESC,components:be}),` `,t(u.AUTOMATIONS$CREATE_INSTRUCTIONS_GUIDANCE),` `,(0,X.jsx)(`a`,{href:M(),target:`_blank`,rel:`noopener noreferrer`,className:`text-muted underline transition-colors hover:text-foreground`,children:t(u.AUTOMATIONS$EMPTY_LEARN_MORE)})]}),(0,X.jsx)(`div`,{className:`flex justify-center`,children:(0,X.jsx)(I,{type:`button`,variant:`primary`,testId:`automations-create-automation`,onClick:()=>{a({backendKind:r.backend.kind}),n(t(u.AUTOMATIONS$CREATE_AUTOMATION_PROMPT),e)},startContent:(0,X.jsx)(le,{className:`size-4`,"aria-hidden":!0}),children:t(u.AUTOMATIONS$CREATE_AUTOMATION_BUTTON)})})]})}function xe({collapsible:e=!1}){let{t}=i(`openhands`),[n,r]=(0,Z.useState)(!e);return e?(0,X.jsxs)(`div`,{className:`w-full rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface)]`,children:[(0,X.jsxs)(`button`,{type:`button`,onClick:()=>r(!n),"aria-expanded":n,className:`flex w-full items-center justify-between rounded-lg p-4 text-left transition-colors hover:bg-surface-raised`,children:[(0,X.jsx)(`span`,{className:`text-sm font-normal text-content`,children:t(u.AUTOMATIONS$EMPTY_HOW_TO_CREATE_TITLE)}),(0,X.jsx)(ge,{className:d(`size-5 text-muted transition-transform`,n&&`rotate-180`)})]}),n?(0,X.jsx)(`div`,{className:`px-4 pb-4`,children:(0,X.jsx)($,{})}):null]}):(0,X.jsx)(`div`,{className:`w-full max-w-2xl`,children:(0,X.jsx)($,{})})}function Se({isOpen:e,onClose:t}){let{t:n}=i(`openhands`);return e?(0,X.jsx)(P,{onClose:t,"aria-label":n(u.AUTOMATIONS$EMPTY_HOW_TO_CREATE_TITLE),children:(0,X.jsxs)(`div`,{"data-testid":`add-automation-modal`,className:`relative flex w-full max-w-lg flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary`,children:[(0,X.jsx)(R,{onClose:t,testId:`add-automation-modal-close`}),(0,X.jsx)(`header`,{className:`flex-shrink-0 px-6 pb-4 pt-6`,children:(0,X.jsx)(`h2`,{id:`add-automation-modal-title`,className:d(`pr-6`,F),children:n(u.AUTOMATIONS$EMPTY_HOW_TO_CREATE_TITLE)})}),(0,X.jsx)(`div`,{className:`px-6 pb-6`,children:(0,X.jsx)($,{onLaunch:t})})]})}):null}function Ce(){let{t:e}=i(`openhands`);return(0,X.jsxs)(`div`,{"data-testid":`automations-empty`,className:U,children:[(0,X.jsx)(`p`,{className:`text-sm text-white`,children:e(u.AUTOMATIONS$EMPTY)}),(0,X.jsx)(`div`,{className:`mt-4 flex justify-center`,children:(0,X.jsx)(xe,{})}),(0,X.jsx)(`div`,{className:`mt-8 w-full text-left`,children:(0,X.jsx)(s,{className:`pb-0`,variant:`rail`})})]})}export{fe as i,Se as n,he as r,Ce as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{t as r}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{W as i,t as a}from"./utils-DaCIEEQP.js";import{t as o}from"./check-Cf2YoT90.js";import{t as s}from"./chevron-down-C3OQ-ehx.js";import{i as c,o as l,t as u}from"./dropdown-classes-DJe-E6MC.js";import{t as d}from"./use-click-outside-element-W6Os4Nlb.js";var f=e(t(),1),p=n();function m({testId:e,value:t,onChange:n,options:m,labelKeyByValue:h,labelByValue:g,ariaLabel:_,className:v,fullWidth:y=!1}){let{t:b}=r(`openhands`),[x,S]=f.useState(!1),C=d(()=>S(!1)),w=e=>g?.[e]??(h?b(h[e]):e),T=_??b(i.CONVERSATION_PANEL$FILTER_LABEL),E=m[0],D=w(t);return(0,p.jsxs)(`div`,{ref:C,className:a(`relative shrink-0`,y?`w-full`:`w-auto`,v),"data-testid":e,children:[(0,p.jsxs)(`button`,{type:`button`,"data-testid":`dropdown-trigger`,"aria-haspopup":`menu`,"aria-expanded":x,"aria-label":T,onClick:()=>S(e=>!e),className:a(u,y&&`w-full justify-between`,E&&t!==E&&`border-white/60 bg-white/10`),children:[(0,p.jsx)(`span`,{className:`whitespace-nowrap`,children:D}),(0,p.jsx)(s,{className:a(`h-4 w-4 shrink-0 text-tertiary-alt transition-transform`,x&&`rotate-180`),"aria-hidden":!0})]}),x?(0,p.jsx)(`div`,{role:`menu`,"data-testid":`${e}-menu`,"aria-label":T,className:a(`absolute right-0 top-full z-50 mt-1 min-w-full w-max`,`max-h-60 overflow-auto rounded-[6px] bg-tertiary p-1 context-menu-box-shadow`,c),children:m.map(r=>{let i=r===t;return(0,p.jsxs)(`button`,{type:`button`,role:`menuitemradio`,"aria-checked":i,"data-testid":`${e}-${r}`,onClick:()=>{n(r),S(!1)},className:a(l,i&&`bg-[var(--oh-interactive-selected)]`),children:[(0,p.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:w(r)}),i?(0,p.jsx)(o,{className:`h-4 w-4 shrink-0`,"aria-hidden":!0}):null]},r)})}):null]})}export{m as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{U as t,f as n}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{t as r}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{ft as i,r as a}from"./active-backend-context-DKFSMbn3.js";import{W as o,t as s}from"./utils-DaCIEEQP.js";import{t as c}from"./external-link-DFpYunfj.js";import{a as l,f as u,o as d,u as f}from"./sidebar-layout-D3hE08wK.js";import{t as p}from"./sidebar-nav-link-CPzhyHQg.js";import{r as m}from"./typography-SgFy466J.js";import{t as h}from"./use-breakpoint-DWtihr9g.js";import{t as g}from"./backend-synced-settings-badge-3fOwg6Bd.js";import{t as _}from"./extensions-navigation-BeC224yX.js";var v=e(),y=`/skills`,b=`/plugins`;function x(){let{t:e}=r(`openhands`),{active:t}=a(),{backend:n}=t,h=!i(n)&&n.kind===`cloud`;return(0,v.jsxs)(`div`,{"data-testid":`extensions-mobile-hub`,className:`flex flex-col gap-4 px-4 py-2 md:hidden`,children:[(0,v.jsx)(m.H2,{children:e(o.NAV$CUSTOMIZE)}),(0,v.jsx)(`nav`,{className:`flex flex-col gap-0.5`,children:_.filter(e=>!(e.to===b&&h)).map(t=>{if(t.to===y&&h){let r=`${n.host.replace(/\/+$/,``)}/settings/skills`;return(0,v.jsxs)(`a`,{"data-testid":`sidebar-extensions-${t.to}`,href:r,target:`_blank`,rel:`noopener noreferrer`,className:s(u({collapsed:!1}),d.idle),children:[(0,v.jsx)(`span`,{className:l,children:t.icon}),(0,v.jsx)(`span`,{className:s(f(!1),`flex-1`),children:e(o.SIDEBAR$SKILLS_AND_PLUGINS_CLOUD_LINK)}),(0,v.jsx)(c,{className:`size-4 shrink-0 text-[var(--oh-muted)]`,"aria-hidden":!0})]},t.to)}return(0,v.jsx)(p,{to:t.to,label:t.label,end:t.end,testId:`sidebar-extensions-${t.to}`,icon:t.icon,disabled:t.comingSoon},t.to)})}),(0,v.jsx)(`div`,{className:`pt-1`,children:(0,v.jsx)(g,{})})]})}var S=t(function(){return h(768)?(0,v.jsx)(x,{}):(0,v.jsx)(n,{to:`/mcp`,replace:!0})});export{S as default};
|
|
@@ -1 +0,0 @@
|
|
|
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~iw7io29p-Dz-MAyNb.js";import{ft as n,r}from"./active-backend-context-DKFSMbn3.js";import{W as i,t as a}from"./utils-DaCIEEQP.js";import{t as o}from"./external-link-DFpYunfj.js";import{t as s}from"./navigation-link-Bxo3-4vo.js";import{f as c,o as l}from"./sidebar-layout-D3hE08wK.js";import{t as u}from"./skills-B0IliMxw.js";import{t as d}from"./server-process-C9RKzd1x.js";import{t as f}from"./backend-synced-settings-badge-3fOwg6Bd.js";var p=e(),m=`/skills`,h=`/plugins`,g=[{to:`/mcp`,label:`MCP Servers`,icon:(0,p.jsx)(d,{width:16,height:16}),end:!0},{to:`/skills`,label:`Skills`,icon:(0,p.jsx)(u,{width:16,height:16,"aria-hidden":`true`}),end:!0},{to:`/plugins`,label:`Plugins`,icon:(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,width:16,height:16,"aria-hidden":`true`,children:[(0,p.jsx)(`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`}),(0,p.jsx)(`path`,{d:`m3.3 7 8.7 5 8.7-5`}),(0,p.jsx)(`path`,{d:`M12 22V12`})]}),end:!0}];function _(){let{t:e}=t(`openhands`),{active:u}=r(),{backend:d}=u,_=!n(d)&&d.kind===`cloud`;return(0,p.jsxs)(`aside`,{"data-testid":`extensions-navbar-desktop`,className:`hidden md:flex md:w-[260px] md:shrink-0 md:flex-col md:gap-2 md:sticky md:top-8 md:self-start`,children:[(0,p.jsx)(`span`,{className:`px-2 text-sm font-normal text-white`,children:e(i.NAV$CUSTOMIZE)}),(0,p.jsx)(`div`,{className:`flex flex-col gap-0.5 pt-0.5`,children:g.filter(e=>!(e.to===h&&_)).map(t=>{let n=t.to===m&&_,r=(0,p.jsx)(`span`,{className:`shrink-0 flex items-center justify-center`,children:t.icon}),u=(0,p.jsx)(`span`,{className:`truncate`,children:n?e(i.SIDEBAR$SKILLS_AND_PLUGINS_CLOUD_LINK):t.label}),f=t.comingSoon&&(0,p.jsx)(`span`,{className:`ml-auto shrink-0 rounded-full border border-white/20 bg-white/5 px-1.5 py-0.5 text-[10px] font-medium text-[var(--oh-text-dim)]`,children:e(i.NAV$COMING_SOON)});if(n){let e=`${d.host.replace(/\/+$/,``)}/settings/skills`;return(0,p.jsxs)(`a`,{"data-testid":`sidebar-extensions-${t.to}`,href:e,target:`_blank`,rel:`noopener noreferrer`,className:a(c(),`truncate`,l.idle),children:[r,u,(0,p.jsx)(o,{className:`ml-auto size-4 shrink-0 text-[var(--oh-muted)]`,"aria-hidden":!0})]},t.to)}return(0,p.jsxs)(s,{to:t.to,end:t.end,"data-testid":`sidebar-extensions-${t.to}`,className:({isActive:e})=>a(c(),`truncate`,e?l.active:l.idle),children:[r,u,f]},t.to)})}),(0,p.jsx)(`div`,{className:`px-2 pt-3`,children:(0,p.jsx)(f,{})})]})}export{_ as n,g as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{D as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js";var t=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]);export{t};
|