@openhands/agent-canvas 1.0.0-alpha.8 → 1.0.0-beta.1
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 +17 -6
- package/bin/agent-canvas.mjs +22 -2
- package/build/assets/{QueryClientProvider-B7kl84Kj.js → QueryClientProvider-CkGuhXg-.js} +1 -1
- package/build/assets/{Trans-1j65oy9O.js → Trans-Cvm_-SMi.js} +1 -1
- package/build/assets/acp-providers-CbiRekh9.js +1 -0
- package/build/assets/{acp-route-guard-CQTmeJwM.js → acp-route-guard-B2yoBZ_4.js} +1 -1
- package/build/assets/{active-backend-context-TVbjnvmP.js → active-backend-context-cCM1vYYZ.js} +1 -1
- package/build/assets/add-backend-modal-DIUQzMPa.js +1 -0
- package/build/assets/agent-server-client-options-Bc5ZorQZ.js +1 -0
- package/build/assets/agent-server-compatibility-BlkUsrX2.js +1 -0
- package/build/assets/agent-server-conversation-service.api-DFvqqEDo.js +5 -0
- package/build/assets/{agent-settings-B247S9G3.js → agent-settings-CnGSCmK8.js} +1 -1
- package/build/assets/{alert-banner-BWoqueRw.js → alert-banner-DtzAX654.js} +1 -1
- package/build/assets/{analytics-consent-form-modal-C7sXfxRh.js → analytics-consent-form-modal-CHZ3I37v.js} +1 -1
- package/build/assets/api-key-entry-screen-B2gynaCp.js +1 -0
- package/build/assets/{app-settings-BVeSaty9.js → app-settings-Db9ITeJH.js} +1 -1
- package/build/assets/{automation-detail-g5-RZ0da.js → automation-detail-Di7EOIZD.js} +1 -1
- package/build/assets/{automations-list-DHoq_0MM.js → automations-list-IsIWdDiw.js} +1 -1
- package/build/assets/backend-form-modal-Dnk33xA_.js +1 -0
- package/build/assets/{backend-synced-settings-badge-nAfiUWvM.js → backend-synced-settings-badge-Dc6c7GT4.js} +1 -1
- package/build/assets/{base-modal-CQRvRHu1.js → base-modal-_dYTw1ri.js} +1 -1
- package/build/assets/{brand-button-C2nEKopC.js → brand-button-Br7f0kZJ.js} +1 -1
- package/build/assets/browser-D810xUYt.js +5 -0
- package/build/assets/browser-store-Couc4S5D.js +1 -0
- package/build/assets/browser-tab-B-aIqXRl.js +1 -0
- package/build/assets/{checkmark-BJJrZUF8.js → checkmark-DL7acQA7.js} +1 -1
- package/build/assets/{chevron-left-small-CSh-sE9L.js → chevron-left-small-CVWf8TI6.js} +1 -1
- package/build/assets/{circle-plus-check-toggle-qs8Va1cC.js → circle-plus-check-toggle-P7ZZToV4.js} +1 -1
- package/build/assets/{clock-ZR4Kn-_Y.js → clock-BRjCgHTc.js} +1 -1
- package/build/assets/{close-BdmyeRqS.js → close-B5LROHR3.js} +1 -1
- package/build/assets/{combobox-caret-B53O9Hsq.js → combobox-caret-to1O8irE.js} +1 -1
- package/build/assets/{condenser-settings-A35V3yng.js → condenser-settings-wnEKhBof.js} +1 -1
- package/build/assets/{confirmation-modal-C9-La0h3.js → confirmation-modal-Dau3w_sa.js} +1 -1
- package/build/assets/{context-menu-list-item-Buu9nc0q.js → context-menu-list-item-CWNFpuiC.js} +1 -1
- package/build/assets/conversation-HlncOV7n.js +19 -0
- package/build/assets/conversation-MtnkpqA9.js +1 -0
- package/build/assets/conversation-panel-DxnM6tRe.js +1 -0
- package/build/assets/{conversation-service.api-C8pYCyV6.js → conversation-service.api-nb5W1PqR.js} +1 -1
- package/build/assets/{conversation-tab-empty-state-D8dNvo-V.js → conversation-tab-empty-state-DyssnnWa.js} +1 -1
- package/build/assets/conversation-websocket-context-C8_PkGLi.js +3 -0
- package/build/assets/{copy-C7Ti2d8C.js → copy-DYgmUdIw.js} +1 -1
- package/build/assets/{custom-toast-handlers-BOc3qeQ7.js → custom-toast-handlers-C-SZFmto.js} +1 -1
- package/build/assets/declaration-BNMqORFE.js +1 -0
- package/build/assets/{device-verify-CMusn8nX.js → device-verify-DqDlphsG.js} +1 -1
- package/build/assets/{dist-DZHSA2e6.js → dist-C6t0EXL7.js} +1 -1
- package/build/assets/{edit-automation-modal-Dnjxbjn7.js → edit-automation-modal-BGzR3nfZ.js} +1 -1
- package/build/assets/{ellipsis-button-ugUATsNo.js → ellipsis-button-ZyLMPURn.js} +1 -1
- package/build/assets/{entry.client-D9uR9Blz.js → entry.client-1VMHpktY.js} +2 -2
- package/build/assets/{enum-filter-dropdown-1vpOGySB.js → enum-filter-dropdown-CEgCdu4A.js} +1 -1
- package/build/assets/{environment-switch-overlay-CTCTQikP.js → environment-switch-overlay-XL8yCGP6.js} +1 -1
- package/build/assets/{extensions-hub-BSUseHVF.js → extensions-hub-C651jsVh.js} +1 -1
- package/build/assets/{extensions-navigation-CT1kc1u_.js → extensions-navigation-BYR8Giqq.js} +1 -1
- package/build/assets/files-tab-BhnLgimi.js +1 -0
- package/build/assets/{folder-0WSMImNX.js → folder-ZZJVGgd7.js} +1 -1
- package/build/assets/git-control-bar-branch-button-M34A5_vX.js +27 -0
- package/build/assets/{git-provider-icon-DYE9n7fs.js → git-provider-icon-D5dCNy-k.js} +1 -1
- package/build/assets/home-CYQv7yc_.js +1 -0
- package/build/assets/{i18n-DjAGhTis.js → i18n-CTohRuoO.js} +1 -1
- package/build/assets/install-server-modal-f31_CLrW.js +1 -0
- package/build/assets/{launch-hZ0ifhcV.js → launch-DHEUYn2A.js} +1 -1
- package/build/assets/{lesson-plan-DRYG5SLI.js → lesson-plan-dH5Bj0pN.js} +1 -1
- package/build/assets/{link-external-Df8J52xI.js → link-external-D2POYx4c.js} +1 -1
- package/build/assets/{llm-client-ChQzg4wX.js → llm-client-DaH1TuyR.js} +1 -1
- package/build/assets/llm-settings-Bql-vydt.js +1 -0
- package/build/assets/llm-settings-C_tal6Ds.js +1 -0
- package/build/assets/{loading-spinner-C04FGh14.js → loading-spinner-BPtYORNK.js} +1 -1
- package/build/assets/{manage-backends-modal-rYeyGx7j.js → manage-backends-modal-l7RkKfwX.js} +1 -1
- package/build/assets/{manage-workspaces-modal-C5EuW8m1.js → manage-workspaces-modal-DhKF_8z3.js} +1 -1
- package/build/assets/manifest-9fee01b9.js +1 -0
- package/build/assets/{markdown-renderer-CEX4Becj.js → markdown-renderer-DMzf2i4x.js} +1 -1
- package/build/assets/mcp-D2onbwVk.js +9 -0
- package/build/assets/{messages-T2ewVkbp.js → messages-BMzyOW2V.js} +1 -1
- package/build/assets/{modal-backdrop-DTYGVmOR.js → modal-backdrop-BAbgYsqB.js} +1 -1
- package/build/assets/{modal-body-YElmM1dV.js → modal-body-BI6Ru2Qr.js} +1 -1
- package/build/assets/{modal-close-button-C_GpQt9F.js → modal-close-button-t1Gh3qmL.js} +1 -1
- package/build/assets/{model-selector-DeMmw-Xa.js → model-selector-SM9IUz-q.js} +1 -1
- package/build/assets/{mutation-Cz7N4XAo.js → mutation-D0OogFCz.js} +1 -1
- package/build/assets/{navigation-context-DeIPtGPp.js → navigation-context-D0YWpT8d.js} +1 -1
- package/build/assets/{navigation-link-C9JD4PYD.js → navigation-link-Cn7KP3c5.js} +1 -1
- package/build/assets/{openhands-logo-CI5Fhn1W.js → openhands-logo-CnrF6LKb.js} +1 -1
- package/build/assets/{option-service.api-DsI1UW7N.js → option-service.api-KvY_mZMY.js} +1 -1
- package/build/assets/{organization-service.api-COwMPFg5.js → organization-service.api-DzYTHTYC.js} +1 -1
- package/build/assets/{path-utils-CqJboYxo.js → path-utils-YohAYyMv.js} +1 -1
- package/build/assets/{plan-components-DEjMuDDG.js → plan-components-atxXCF0R.js} +1 -1
- package/build/assets/{planner-tab-BrntFmb1.js → planner-tab-CFc-hV07.js} +1 -1
- package/build/assets/{profiles-client-BGkKEV9j.js → profiles-client-D6IkTJof.js} +1 -1
- package/build/assets/{providers-DXvCAN_u.js → providers-Bx6EfrzZ.js} +1 -1
- package/build/assets/{proxy-CurRmrqf.js → proxy-CxydCnis.js} +1 -1
- package/build/assets/{query-client-config-Ba7qAAoO.js → query-client-config-B7u9asM0.js} +1 -1
- package/build/assets/{recommended-automations-launcher-BI9NhG8Y.js → recommended-automations-launcher-sgvfU62c.js} +3 -3
- package/build/assets/root-BXWU99D-.js +2 -0
- package/build/assets/{root-layout-BLjAEgle.js → root-layout-DVepR4To.js} +2 -2
- package/build/assets/sdk-section-page-DOIKvwSL.js +1 -0
- package/build/assets/{sdk-settings-schema-QBYH-ONX.js → sdk-settings-schema-DsUf9wu1.js} +1 -1
- package/build/assets/{search-Cq_cFrDt.js → search-27Owlc3A.js} +1 -1
- package/build/assets/{secrets-service-Bwd5DeUs.js → secrets-service-BsnKFc2x.js} +1 -1
- package/build/assets/secrets-settings-Bz_UohPJ.js +1 -0
- package/build/assets/{server-client-C3mC8Hl3.js → server-client-DyAQ3NZ_.js} +1 -1
- package/build/assets/{settings-D7E2U5tK.js → settings-BYkVX7vW.js} +1 -1
- package/build/assets/{settings-client-CwjfwoiB.js → settings-client-C73C7IgV.js} +1 -1
- package/build/assets/{settings-dropdown-input-VwAXNrOb.js → settings-dropdown-input-BJYvGdg-.js} +1 -1
- package/build/assets/{settings-gear-BJwWR1ej.js → settings-gear-C77PgE_O.js} +1 -1
- package/build/assets/{settings-index-J-3BNR0W.js → settings-index-Dz0BmdJD.js} +1 -1
- package/build/assets/{settings-input-DBywAnA7.js → settings-input-Bn7F5C75.js} +1 -1
- package/build/assets/{settings-list-classes-BOS092DR.js → settings-list-classes-Bf80tWtc.js} +1 -1
- package/build/assets/{settings-modal-B8vgWDTe.js → settings-modal-Brzgh5Yw.js} +1 -1
- package/build/assets/{settings-section-header-context-32x6WTyL.js → settings-section-header-context-BgZe5YkE.js} +1 -1
- package/build/assets/{settings-service.api-FvJGK45W.js → settings-service.api-CZ3uWx4v.js} +1 -1
- package/build/assets/{settings-switch-DTKmHC8F.js → settings-switch-BeIKrWms.js} +1 -1
- package/build/assets/{shared-conversation-a0QV8o99.js → shared-conversation-DChOdb0t.js} +1 -1
- package/build/assets/{sidebar-mobile-menu-toggle-DTUNI1WQ.js → sidebar-mobile-menu-toggle-BWuf4PRH.js} +1 -1
- package/build/assets/{sidebar-nav-link-CnWoZcwc.js → sidebar-nav-link-BGjiJq-4.js} +1 -1
- package/build/assets/{skill-card-pill-row-tZ599jli.js → skill-card-pill-row-DF1axQCG.js} +1 -1
- package/build/assets/{skills-ZyAO5dyK.js → skills-ChIKZPK4.js} +1 -1
- package/build/assets/{skills-plugins-BSRz041I.js → skills-plugins-CcI_19lM.js} +1 -1
- package/build/assets/{skills-settings-DOnMn9q1.js → skills-settings-DlA5hlXw.js} +1 -1
- package/build/assets/{status-CsatcFbK.js → status-hp6M6E7E.js} +1 -1
- package/build/assets/{styled-tooltip-CS3mB_1X.js → styled-tooltip-CBzrri6o.js} +1 -1
- package/build/assets/{switch-skeleton-C-CfhYYV.js → switch-skeleton-DnC9wLp7.js} +1 -1
- package/build/assets/{task-list-tab-Day9nhRT.js → task-list-tab-DUJn1sgz.js} +1 -1
- package/build/assets/{terminal-ro4SNjUU.js → terminal-CRf9S0Z2.js} +1 -1
- package/build/assets/{terminal-LNa-iU5c.js → terminal-RmuaSdhJ.js} +1 -1
- package/build/assets/{toggle-switch-k-IZCDbt.js → toggle-switch-Pvyp2RAN.js} +1 -1
- package/build/assets/{typography-vVUMoNUg.js → typography-gpuWmrQO.js} +1 -1
- package/build/assets/{u-check-circle-DplbarS5.js → u-check-circle-IUIfACQQ.js} +1 -1
- package/build/assets/{u-check-circle-half-yDuiSZHC.js → u-check-circle-half-C1YxB6py.js} +1 -1
- package/build/assets/{u-circuit-C9tYkpeK.js → u-circuit-BmVikJHu.js} +1 -1
- package/build/assets/{u-edit-KAUlufD8.js → u-edit-CFvXHqZk.js} +1 -1
- package/build/assets/use-active-conversation-Db3IWSPK.js +1 -0
- package/build/assets/{use-agent-settings-schema-Bvp5UzV8.js → use-agent-settings-schema-33Un7UF2.js} +1 -1
- package/build/assets/{use-agent-state-DE5dlEXJ.js → use-agent-state-Bn8vS5sY.js} +1 -1
- package/build/assets/{use-cloud-current-user-id-DWVar4st.js → use-cloud-current-user-id-CvkXFnTT.js} +1 -1
- package/build/assets/use-config-Co1O8-Ey.js +1 -0
- package/build/assets/{use-create-conversation-DW7AGgLA.js → use-create-conversation-CKS3EAHu.js} +1 -1
- package/build/assets/{use-event-store-CQZCcVz-.js → use-event-store-BT_gV3ut.js} +1 -1
- package/build/assets/use-get-secrets-DuhdIA59.js +1 -0
- package/build/assets/{use-handle-plan-click-DpgEQDAV.js → use-handle-plan-click-C9zJpK8A.js} +1 -1
- package/build/assets/use-is-authed-BggE5wPj.js +1 -0
- package/build/assets/{use-is-creating-conversation-DhDeeWfA.js → use-is-creating-conversation-BZ5hB_Bg.js} +1 -1
- package/build/assets/{use-launch-skill-in-chat-DVGPFrbI.js → use-launch-skill-in-chat-fNN_xGZG.js} +1 -1
- package/build/assets/{use-llm-profiles-D3-KXwQ0.js → use-llm-profiles-DDOol3gK.js} +1 -1
- package/build/assets/use-runtime-is-ready-CQCE3xZC.js +1 -0
- package/build/assets/{use-save-settings-CEEKSTWG.js → use-save-settings-VUrj_QNG.js} +1 -1
- package/build/assets/{use-settings-DQ7Oo1Hj.js → use-settings-DQIZmIov.js} +1 -1
- package/build/assets/{use-settings-nav-items-YmrXrjn9.js → use-settings-nav-items-1ZvovKSr.js} +1 -1
- package/build/assets/use-skills-DAMLFjKU.js +1 -0
- package/build/assets/{use-task-list-Bs90uF2N.js → use-task-list-CLJbuJgM.js} +1 -1
- package/build/assets/use-unified-vscode-url-sZt29HrC.js +1 -0
- package/build/assets/use-user-conversation-DfgEB6RW.js +1 -0
- package/build/assets/{useMutation-B4OUESdw.js → useMutation-DqrumCWD.js} +1 -1
- package/build/assets/{useTranslation-CpIcQBq6.js → useTranslation-DCOdSSMl.js} +1 -1
- package/build/assets/{utils-D-HX7JCe.js → utils-i18rdUj2.js} +1 -1
- package/build/assets/v4-CNn21NXa.js +1 -0
- package/build/assets/{vendor~browser-Dr71AdrG.js → vendor~browser-BNjNhjFU.js} +1 -1
- package/build/assets/{vendor~browser-tab-BiVxfjJo.js → vendor~browser-tab-BgwV1mxF.js} +1 -1
- package/build/assets/{vendor~conversation-panel~conversation-BlCIz9XQ.js → vendor~conversation-panel~conversation-a9SyrrhV.js} +1 -1
- package/build/assets/{vendor~files-tab-DtLR-QD9.js → vendor~files-tab-BGKayPiK.js} +1 -1
- package/build/assets/{vendor~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-Ds9quNZ9.js → vendor~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-smY2r837.js} +1 -1
- package/build/assets/{vendor~home~mcp~automations-list-C5PoHCy6.js → vendor~home~mcp~automations-list-Ccy2I0KU.js} +1 -1
- package/build/assets/{vendor~home~mcp~automations-list-BUBGGGYz.js → vendor~home~mcp~automations-list-DoPfwaXj.js} +1 -1
- package/build/assets/{vendor~home~mcp~llm-settings~agent-settings~condenser-settings~verification-settings~app-se~ocm3mykx-CGlZoBKa.js → vendor~home~mcp~llm-settings~agent-settings~condenser-settings~verification-settings~app-se~ocm3mykx-DbfELDJu.js} +2 -2
- package/build/assets/{vendor~home~mcp~llm-settings~agent-settings~condenser-settings~verification-settings~app-se~ocm3mykx-DE11mPxp.js → vendor~home~mcp~llm-settings~agent-settings~condenser-settings~verification-settings~app-se~ocm3mykx-Z3nsiNNq.js} +1 -1
- package/build/assets/{vendor~launch-Dg--Ssk6.js → vendor~launch-vdeRTWFu.js} +1 -1
- package/build/assets/{vendor~root-layout~conversation-panel~conversation~shared-conversation-DrXgiSCq.js → vendor~root-layout~conversation-panel~conversation~shared-conversation-DW31UyBp.js} +1 -1
- package/build/assets/{vendor~root-layout~home~conversation-panel~conversation~extensions-hub~skills-settings~skil~iguv7bgw-8b8V5bfO.js → vendor~root-layout~home~conversation-panel~conversation~extensions-hub~skills-settings~skil~iguv7bgw-BkQGKpye.js} +1 -1
- package/build/assets/{vendor~root-layout~home~conversation-panel~conversation~extensions-hub~skills-settings~skil~iguv7bgw-Dy7L6fMG.js → vendor~root-layout~home~conversation-panel~conversation~extensions-hub~skills-settings~skil~iguv7bgw-DzIXV3Ui.js} +1 -1
- package/build/assets/{vendor~root-layout~home~conversation-panel~conversation~extensions-hub~skills-settings~skil~k776hupu-D40EXhZx.js → vendor~root-layout~home~conversation-panel~conversation~extensions-hub~skills-settings~skil~k776hupu-Bbs7UJ5U.js} +2 -2
- package/build/assets/{vendor~root-layout~home~conversation-panel~conversation~launch~extensions-hub~skills-settin~dp08i1qy-CHrEOFl6.js → vendor~root-layout~home~conversation-panel~conversation~launch~extensions-hub~skills-settin~dp08i1qy-DTwbEEcX.js} +1 -1
- package/build/assets/{vendor~root-layout~home~conversation-panel~conversation~shared-conversation~alert-banner~pl~rqjteh0a-BP1SKG0F.js → vendor~root-layout~home~conversation-panel~conversation~shared-conversation~alert-banner~pl~rqjteh0a-d2oallMa.js} +1 -1
- package/build/assets/{vendor~root~root-layout~home~conversation-panel~conversation~launch~extensions-hub~skills-s~kyz9p27j-CyUbhpbm.js → vendor~root~root-layout~home~conversation-panel~conversation~launch~extensions-hub~skills-s~f2l2lr17-CDXvdvb2.js} +1 -1
- package/build/assets/{verification-settings-BtlTiHP8.js → verification-settings-CsbvQcYS.js} +1 -1
- package/build/assets/{vscode-tab-C0ShhiSU.js → vscode-tab-Zb-QbTuV.js} +1 -1
- package/build/assets/{waiting-for-runtime-message-DWPl_Yby.js → waiting-for-runtime-message-CntjExbU.js} +1 -1
- package/build/assets/{x-mark-CWI0f9yI.js → x-mark-CrpjscNc.js} +1 -1
- package/build/index.html +4 -4
- package/build/locales/ar/openhands.json +7 -0
- package/build/locales/ca/openhands.json +7 -0
- package/build/locales/de/openhands.json +7 -0
- package/build/locales/en/openhands.json +7 -0
- package/build/locales/es/openhands.json +7 -0
- package/build/locales/fr/openhands.json +7 -0
- package/build/locales/it/openhands.json +7 -0
- package/build/locales/ja/openhands.json +7 -0
- package/build/locales/ko-KR/openhands.json +7 -0
- package/build/locales/no/openhands.json +7 -0
- package/build/locales/pt/openhands.json +7 -0
- package/build/locales/tr/openhands.json +7 -0
- package/build/locales/uk/openhands.json +7 -0
- package/build/locales/zh-CN/openhands.json +7 -0
- package/build/locales/zh-TW/openhands.json +7 -0
- package/config/defaults.json +0 -4
- package/dist/api/agent-server-adapter.cjs +1 -1
- package/dist/api/agent-server-adapter.cjs.map +1 -1
- package/dist/api/agent-server-adapter.js +2 -1
- 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 +16 -0
- package/dist/api/agent-server-compatibility.js +31 -20
- 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 +45 -0
- package/dist/api/agent-server-config.js +49 -21
- package/dist/api/agent-server-config.js.map +1 -1
- package/dist/api/backend-registry/storage.cjs +1 -1
- package/dist/api/backend-registry/storage.cjs.map +1 -1
- package/dist/api/backend-registry/storage.js +34 -32
- package/dist/api/backend-registry/storage.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 +5 -4
- package/dist/api/conversation-service/agent-server-conversation-service.api.js +70 -76
- package/dist/api/conversation-service/agent-server-conversation-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 +1 -1
- package/dist/api/skills-service.js +2 -2
- package/dist/api/skills-service.js.map +1 -1
- package/dist/components/features/backends/api-key-entry-screen.d.ts +10 -0
- 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.d.ts +23 -2
- package/dist/components/features/backends/backend-form-modal.js +185 -173
- package/dist/components/features/backends/backend-form-modal.js.map +1 -1
- package/dist/components/features/browser/browser.cjs +1 -1
- package/dist/components/features/browser/browser.cjs.map +1 -1
- package/dist/components/features/browser/browser.js +10 -16
- package/dist/components/features/browser/browser.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 +1 -1
- package/dist/components/features/conversation-panel/skills-modal.js.map +1 -1
- package/dist/components/features/mcp-page/install-server-modal.cjs +1 -1
- package/dist/components/features/mcp-page/install-server-modal.cjs.map +1 -1
- package/dist/components/features/mcp-page/install-server-modal.js +123 -116
- package/dist/components/features/mcp-page/install-server-modal.js.map +1 -1
- package/dist/components/features/mcp-page/installed-server-card.cjs +1 -1
- package/dist/components/features/mcp-page/installed-server-card.cjs.map +1 -1
- package/dist/components/features/mcp-page/installed-server-card.js +40 -40
- package/dist/components/features/mcp-page/installed-server-card.js.map +1 -1
- package/dist/components/features/mcp-page/marketplace-card.cjs +1 -1
- package/dist/components/features/mcp-page/marketplace-card.cjs.map +1 -1
- package/dist/components/features/mcp-page/marketplace-card.js +2 -3
- package/dist/components/features/mcp-page/marketplace-card.js.map +1 -1
- package/dist/components/features/mcp-page/marketplace-section.cjs +1 -1
- package/dist/components/features/mcp-page/marketplace-section.cjs.map +1 -1
- package/dist/components/features/mcp-page/marketplace-section.js +21 -21
- package/dist/components/features/mcp-page/marketplace-section.js.map +1 -1
- package/dist/components/features/onboarding/steps/setup-acp-secrets-step.d.ts +27 -0
- 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 -0
- 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 +10 -1
- package/dist/components/features/settings/sdk-settings/sdk-section-page.js +87 -84
- package/dist/components/features/settings/sdk-settings/sdk-section-page.js.map +1 -1
- package/dist/constants/acp-providers.cjs +1 -1
- package/dist/constants/acp-providers.cjs.map +1 -1
- package/dist/constants/acp-providers.d.ts +25 -0
- package/dist/constants/acp-providers.js +1 -0
- package/dist/constants/acp-providers.js.map +1 -1
- 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.js +177 -165
- package/dist/contexts/conversation-websocket-context.js.map +1 -1
- package/dist/hooks/chat/use-model-interceptor.cjs.map +1 -1
- package/dist/hooks/chat/use-model-interceptor.js.map +1 -1
- package/dist/hooks/chat/use-slash-command.cjs +1 -1
- package/dist/hooks/chat/use-slash-command.cjs.map +1 -1
- package/dist/hooks/chat/use-slash-command.js +1 -1
- package/dist/hooks/chat/use-slash-command.js.map +1 -1
- package/dist/hooks/mutation/use-switch-llm-profile.cjs.map +1 -1
- package/dist/hooks/mutation/use-switch-llm-profile.d.ts +1 -1
- package/dist/hooks/mutation/use-switch-llm-profile.js.map +1 -1
- package/dist/hooks/query/use-config.cjs +1 -1
- package/dist/hooks/query/use-config.cjs.map +1 -1
- package/dist/hooks/query/use-config.js +10 -10
- package/dist/hooks/query/use-config.js.map +1 -1
- package/dist/hooks/query/use-conversation-skills.cjs +2 -0
- package/dist/hooks/query/use-conversation-skills.cjs.map +1 -0
- package/dist/hooks/query/use-conversation-skills.d.ts +7 -0
- package/dist/hooks/query/use-conversation-skills.js +8 -0
- package/dist/hooks/query/use-conversation-skills.js.map +1 -0
- package/dist/hooks/query/use-local-git-info.cjs +3 -3
- package/dist/hooks/query/use-local-git-info.cjs.map +1 -1
- package/dist/hooks/query/use-local-git-info.js +24 -25
- package/dist/hooks/query/use-local-git-info.js.map +1 -1
- package/dist/hooks/query/use-skills.cjs +1 -1
- package/dist/hooks/query/use-skills.cjs.map +1 -1
- package/dist/hooks/query/use-skills.d.ts +6 -1
- package/dist/hooks/query/use-skills.js +3 -3
- package/dist/hooks/query/use-skills.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 +7 -0
- package/dist/i18n/declaration.js +1 -1
- package/dist/i18n/declaration.js.map +1 -1
- package/dist/i18n/translation.cjs +2 -2
- package/dist/i18n/translation.cjs.map +1 -1
- package/dist/i18n/translation.js +119 -0
- package/dist/i18n/translation.js.map +1 -1
- package/dist/locales/ar/openhands.json +7 -0
- package/dist/locales/ca/openhands.json +7 -0
- package/dist/locales/de/openhands.json +7 -0
- package/dist/locales/en/openhands.json +7 -0
- package/dist/locales/es/openhands.json +7 -0
- package/dist/locales/fr/openhands.json +7 -0
- package/dist/locales/it/openhands.json +7 -0
- package/dist/locales/ja/openhands.json +7 -0
- package/dist/locales/ko-KR/openhands.json +7 -0
- package/dist/locales/no/openhands.json +7 -0
- package/dist/locales/pt/openhands.json +7 -0
- package/dist/locales/tr/openhands.json +7 -0
- package/dist/locales/uk/openhands.json +7 -0
- package/dist/locales/zh-CN/openhands.json +7 -0
- package/dist/locales/zh-TW/openhands.json +7 -0
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +3 -3
- package/dist/package.js.map +1 -1
- package/dist/routes/conversation.cjs +1 -1
- package/dist/routes/conversation.cjs.map +1 -1
- package/dist/routes/conversation.js +61 -63
- package/dist/routes/conversation.js.map +1 -1
- package/dist/routes/mcp.cjs +1 -1
- package/dist/routes/mcp.cjs.map +1 -1
- package/dist/routes/mcp.js +64 -64
- package/dist/routes/mcp.js.map +1 -1
- package/dist/stores/browser-store.cjs +1 -1
- package/dist/stores/browser-store.cjs.map +1 -1
- package/dist/stores/browser-store.js +1 -1
- package/dist/stores/browser-store.js.map +1 -1
- package/dist/stores/use-event-store.cjs +1 -1
- package/dist/stores/use-event-store.cjs.map +1 -1
- package/dist/stores/use-event-store.d.ts +22 -0
- package/dist/stores/use-event-store.js +9 -1
- package/dist/stores/use-event-store.js.map +1 -1
- package/dist/ui/context-menu.d.ts +1 -1
- package/dist/ui/help-link.d.ts +1 -1
- package/dist/utils/mcp-marketplace-utils.cjs +1 -1
- package/dist/utils/mcp-marketplace-utils.cjs.map +1 -1
- package/dist/utils/mcp-marketplace-utils.d.ts +13 -22
- package/dist/utils/mcp-marketplace-utils.js +46 -28
- package/dist/utils/mcp-marketplace-utils.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 +1 -1
- package/dist/utils/sdk-settings-schema.js.map +1 -1
- package/package.json +3 -3
- package/scripts/dev-safe.mjs +94 -57
- package/scripts/dev-static.mjs +2 -3
- package/scripts/dev-with-automation.mjs +98 -67
- package/scripts/static-server.mjs +77 -35
- package/tools/canvas_ui_tool.py +4 -0
- package/build/assets/acp-providers-DauuOsW9.js +0 -1
- package/build/assets/add-backend-modal-KMmPQNZU.js +0 -1
- package/build/assets/agent-server-client-options-DT2GP6VJ.js +0 -1
- package/build/assets/agent-server-compatibility-2aOx5iWd.js +0 -1
- package/build/assets/agent-server-conversation-service.api-DSl9G5UR.js +0 -5
- package/build/assets/backend-form-modal-K6IMCr3p.js +0 -1
- package/build/assets/browser-DKG63inJ.js +0 -5
- package/build/assets/browser-store-C3AqxAO7.js +0 -1
- package/build/assets/browser-tab-B_BuTvrO.js +0 -1
- package/build/assets/conversation-BD5WemJI.js +0 -19
- package/build/assets/conversation-C47K62n8.js +0 -1
- package/build/assets/conversation-panel-Dn-S56Gk.js +0 -1
- package/build/assets/conversation-websocket-context-Ywrxd_9p.js +0 -3
- package/build/assets/declaration-D378OjpZ.js +0 -1
- package/build/assets/files-tab-B3A1NDlZ.js +0 -1
- package/build/assets/git-control-bar-branch-button-CcIpmyfM.js +0 -27
- package/build/assets/home-dIzxi5Dd.js +0 -1
- package/build/assets/install-server-modal-z5VaHeXd.js +0 -1
- package/build/assets/llm-settings-2036m7Wt.js +0 -1
- package/build/assets/llm-settings-CcHqGOYL.js +0 -1
- package/build/assets/manifest-97e839da.js +0 -1
- package/build/assets/mcp-C06YssEI.js +0 -9
- package/build/assets/root-BS1Td78t.js +0 -2
- package/build/assets/sdk-section-page-CJW0G04-.js +0 -1
- package/build/assets/secrets-settings-MLXqOtX2.js +0 -1
- package/build/assets/use-active-conversation-D15D9GgR.js +0 -1
- package/build/assets/use-config-BSu_53GL.js +0 -1
- package/build/assets/use-conversation-id-DajhCn2A.js +0 -1
- package/build/assets/use-is-authed-hXC8vxgT.js +0 -1
- package/build/assets/use-runtime-is-ready-XFbT16BD.js +0 -1
- package/build/assets/use-skills-Xe0vjPMt.js +0 -1
- package/build/assets/use-unified-vscode-url-BOsIOd-b.js +0 -1
- package/build/assets/use-user-conversation-Mc0mQgkl.js +0 -1
- /package/build/assets/{automation-XLxhq3I8.js → automation-IdgZq6ZK.js} +0 -0
- /package/build/assets/{common-SMkEaBSr.js → common-DR1t-EeP.js} +0 -0
- /package/build/assets/{conversation-state-store-Bc0slAjL.js → conversation-state-store-u5jepov0.js} +0 -0
- /package/build/assets/{dist-yMQV8IUk.js → dist-BxBP7tFD.js} +0 -0
- /package/build/assets/{git-status-mapper-BI8FyUVp.js → git-status-mapper-DnL9OC8_.js} +0 -0
- /package/build/assets/{handle-capture-consent-BfZATzpI.js → handle-capture-consent-3XrjZ8wi.js} +0 -0
- /package/build/assets/{iconBase-C7N9pPOs.js → iconBase-DE30Zj_-.js} +0 -0
- /package/build/assets/{settings-D5am1n6X.js → settings-D_H-qsRm.js} +0 -0
- /package/build/assets/{settings-like-page-layout-classes-Bn-M9oOa.js → settings-like-page-layout-classes-I0BDBEoq.js} +0 -0
- /package/build/assets/{settings-utils-BsvSU3OM.js → settings-utils-B6Nl07io.js} +0 -0
- /package/build/assets/{sidebar-store-cOeaKmIm.js → sidebar-store-Uy3v0AOV.js} +0 -0
- /package/build/assets/{use-breakpoint-B86yKT9n.js → use-breakpoint-DbJ6FkQ-.js} +0 -0
- /package/build/assets/{use-click-outside-element-835W9pC6.js → use-click-outside-element-DffgWWoZ.js} +0 -0
- /package/build/assets/{vendor~browser-BpdPBhgZ.js → vendor~browser-DDiZgqD3.js} +0 -0
- /package/build/assets/{vendor~conversation-panel~conversation~alert-banner-Df7_G0zR.js → vendor~conversation-panel~conversation~alert-banner-DbvX3OcM.js} +0 -0
- /package/build/assets/{vendor~entry.client~root~root-layout~home~conversation-panel~conversation~launch~extensions~b4cctr4k-B7YVdv1X.js → vendor~entry.client~root~root-layout~home~conversation-panel~conversation~launch~extensions~g56ukk6u-DsSvIDZQ.js} +0 -0
- /package/build/assets/{vendor~entry.client~root~root-layout~home~conversation-panel~conversation~launch~extensions~i9dbt75i-CI82Did1.js → vendor~entry.client~root~root-layout~home~conversation-panel~conversation~launch~extensions~hkqzh1hb-BZ0HXuHD.js} +0 -0
- /package/build/assets/{vendor~root-layout~home~conversation-panel~conversation~launch~extensions-hub~skills-settin~pfbaerbd-zhv9fooy.js → vendor~root-layout~home~conversation-panel~conversation~launch~extensions-hub~skills-settin~ninslayh-D9P8e98a.js} +0 -0
- /package/build/assets/{vendor~terminal-BUxzHKcC.js → vendor~terminal-DUrOWGFE.js} +0 -0
- /package/build/assets/{vscode-url-helper-jesbpos5.js → vscode-url-helper-Cwy1A62q.js} +0 -0
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import { useTranslation as e } from "../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
2
2
|
import { I18nKey as t } from "../../../i18n/declaration.js";
|
|
3
3
|
import { cn as n } from "../../../utils/utils.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import m from "../../../
|
|
15
|
-
import h from "../../../
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import v from "
|
|
19
|
-
import
|
|
4
|
+
import { useNavigation as r } from "../../../context/navigation-context.js";
|
|
5
|
+
import { useActiveBackendContext as i } from "../../../contexts/active-backend-context.js";
|
|
6
|
+
import { ServerClient as a } from "../../../node_modules/@openhands/typescript-client/dist/client/server-client.js";
|
|
7
|
+
import { useQuery as o } from "../../../node_modules/@tanstack/react-query/build/modern/useQuery.js";
|
|
8
|
+
import { getAgentServerClientOptions as s } from "../../../api/agent-server-client-options.js";
|
|
9
|
+
import { ModalBackdrop as c } from "../../shared/modals/modal-backdrop.js";
|
|
10
|
+
import { MODAL_MAX_WIDTH_VIEWPORT as l, modalWidthClassName as u } from "../../shared/modals/modal-body.js";
|
|
11
|
+
import { ModalCloseButton as d } from "../../shared/modals/modal-close-button.js";
|
|
12
|
+
import { BrandButton as f } from "../settings/brand-button.js";
|
|
13
|
+
import { SettingsInput as p } from "../settings/settings-input.js";
|
|
14
|
+
import { useBackendsHealth as m } from "../../../hooks/query/use-backends-health.js";
|
|
15
|
+
import h from "../../../assets/branding/openhands-logo-white.js";
|
|
16
|
+
import g from "../../../icons/chevron-down-small.js";
|
|
17
|
+
import { BackendStatusDot as _ } from "./backend-status-dot.js";
|
|
18
|
+
import { DeviceFlowAuth as v } from "./device-flow-auth.js";
|
|
19
|
+
import y from "react";
|
|
20
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
20
21
|
//#region src/components/features/backends/backend-form-modal.tsx
|
|
21
|
-
function
|
|
22
|
+
function S(e) {
|
|
22
23
|
let t = e.trim().toLowerCase();
|
|
23
24
|
return t.includes("all-hands.dev") || t.includes("openhands.dev") ? "cloud" : "local";
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function C(e) {
|
|
26
27
|
let t = e.toLowerCase().replace(/^\[|\]$/g, "");
|
|
27
28
|
return !!(t === "localhost" || t === "::1" || t === "::" || t === "0.0.0.0" || /^127\./.test(t) || /^::ffff:127\./i.test(t) || /^10\./.test(t) || /^192\.168\./.test(t) || /^172\.(1[6-9]|2\d|3[01])\./.test(t) || /^fe[89ab][0-9a-f]:/i.test(t) || /^f[cd][0-9a-f]{2}:/i.test(t) || t.endsWith(".local") || !t.includes(".") && !t.includes(":"));
|
|
28
29
|
}
|
|
29
|
-
function
|
|
30
|
+
function w(e) {
|
|
30
31
|
let t = e.trim().replace(/\/+$/, "");
|
|
31
32
|
if (!t) return "";
|
|
32
33
|
if (/^https?:\/\//i.test(t)) return t;
|
|
33
34
|
let n = t.match(/^\[([^\]]+)\]/);
|
|
34
|
-
return `${
|
|
35
|
+
return `${C(n ? n[1] : (t.match(/:/g) ?? []).length > 1 ? t : t.split(":")[0]) ? "http" : "https"}://${t}`;
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
+
function T(e) {
|
|
37
38
|
let t = e.trim();
|
|
38
39
|
if (!t || /\s/.test(t)) return !1;
|
|
39
|
-
let n =
|
|
40
|
+
let n = w(t);
|
|
40
41
|
if (!n) return !1;
|
|
41
42
|
try {
|
|
42
43
|
let e = new URL(n);
|
|
@@ -45,15 +46,15 @@ function w(e) {
|
|
|
45
46
|
return !1;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
let { t:
|
|
49
|
+
var E = "https://app.all-hands.dev";
|
|
50
|
+
function D({ backend: n, testIdRoot: r }) {
|
|
51
|
+
let { t: i } = e("openhands"), c = m([n])[n.id], l = c?.isConnected ?? null, u = c?.disabled === !0, d = c?.consecutiveFailures ?? 0, f = c?.lastError ?? null, { data: p } = o({
|
|
51
52
|
queryKey: [
|
|
52
53
|
"backend-version",
|
|
53
54
|
n.host,
|
|
54
55
|
n.apiKey
|
|
55
56
|
],
|
|
56
|
-
queryFn: async () => (await new
|
|
57
|
+
queryFn: async () => (await new a(s({
|
|
57
58
|
host: n.host,
|
|
58
59
|
sessionApiKey: n.apiKey || null,
|
|
59
60
|
timeout: 5e3
|
|
@@ -62,47 +63,47 @@ function E({ backend: n, testIdRoot: r }) {
|
|
|
62
63
|
staleTime: 6e4,
|
|
63
64
|
enabled: n.kind === "local" && !u
|
|
64
65
|
}), h;
|
|
65
|
-
h =
|
|
66
|
-
let
|
|
67
|
-
return /* @__PURE__ */
|
|
66
|
+
h = i(l === !0 ? t.ONBOARDING$BACKEND_STATUS_CONNECTED : l === !1 ? t.ONBOARDING$BACKEND_STATUS_DISCONNECTED : t.ONBOARDING$BACKEND_STATUS_CHECKING);
|
|
67
|
+
let g = n.kind === "cloud" ? i(t.BACKEND$KIND_CLOUD) : i(t.BACKEND$KIND_LOCAL);
|
|
68
|
+
return /* @__PURE__ */ x("div", {
|
|
68
69
|
className: "flex flex-col gap-2",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ x("div", {
|
|
70
71
|
"data-testid": `${r}-status`,
|
|
71
72
|
className: "flex items-center gap-3 text-sm",
|
|
72
73
|
children: [
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ b(_, { isConnected: l }),
|
|
75
|
+
/* @__PURE__ */ b("span", {
|
|
75
76
|
className: "text-white",
|
|
76
77
|
"data-testid": `${r}-status-label`,
|
|
77
78
|
children: h
|
|
78
79
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ b("span", {
|
|
80
81
|
className: "text-tertiary-alt",
|
|
81
82
|
children: "·"
|
|
82
83
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ b("span", {
|
|
84
85
|
className: "text-[var(--oh-text-tertiary)]",
|
|
85
|
-
children:
|
|
86
|
+
children: g
|
|
86
87
|
}),
|
|
87
|
-
|
|
88
|
+
p ? /* @__PURE__ */ b("span", {
|
|
88
89
|
className: "text-xs text-[var(--oh-muted)]",
|
|
89
90
|
"data-testid": `${r}-version`,
|
|
90
|
-
children:
|
|
91
|
+
children: i(t.BACKEND$VERSION_LABEL, { version: p })
|
|
91
92
|
}) : null
|
|
92
93
|
]
|
|
93
|
-
}), u ? /* @__PURE__ */
|
|
94
|
+
}), u ? /* @__PURE__ */ x("div", {
|
|
94
95
|
"data-testid": `${r}-status-error`,
|
|
95
96
|
className: "flex flex-col gap-1 rounded-md border border-red-500/40 bg-red-500/10 p-3 text-sm",
|
|
96
97
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ b("span", {
|
|
98
99
|
className: "font-semibold text-red-300",
|
|
99
|
-
children:
|
|
100
|
+
children: i(t.BACKEND$HEALTH_FAILED_TITLE)
|
|
100
101
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ b("span", {
|
|
102
103
|
className: "text-xs text-[var(--oh-text-tertiary)]",
|
|
103
|
-
children:
|
|
104
|
+
children: i(t.BACKEND$HEALTH_FAILED_DETAIL, { count: d })
|
|
104
105
|
}),
|
|
105
|
-
f ? /* @__PURE__ */
|
|
106
|
+
f ? /* @__PURE__ */ b("span", {
|
|
106
107
|
"data-testid": `${r}-status-error-message`,
|
|
107
108
|
className: "text-xs text-red-300 whitespace-pre-wrap break-words",
|
|
108
109
|
children: f
|
|
@@ -111,213 +112,224 @@ function E({ backend: n, testIdRoot: r }) {
|
|
|
111
112
|
}) : null]
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
-
let { t:
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
"data-testid": `${
|
|
118
|
-
onSubmit: (e) => {
|
|
119
|
-
if (e.preventDefault(), !
|
|
120
|
-
|
|
115
|
+
function O({ mode: n, backend: r, onSubmitted: a, renderActions: o, testIdRoot: s, hostReadOnly: c, requireApiKey: l, onSubmitOverride: u }) {
|
|
116
|
+
let { t: d } = e("openhands"), { addBackend: m, updateBackend: h } = i(), [g, _] = y.useState(r?.name ?? ""), [v, C] = y.useState(r?.host ?? ""), [O, k] = y.useState(r?.apiKey ?? ""), [A, j] = y.useState(!1), [M, N] = y.useState(!1), P = S(v), F = s ?? (n === "edit" ? "edit-backend" : "add-backend"), I = l || P !== "local", L = g.trim().length > 0 && T(v) && (!I || O.trim().length > 0), R = A && !g.trim() ? d(t.BACKEND$NAME_REQUIRED) : void 0, z = M ? v.trim() ? T(v) ? void 0 : d(t.BACKEND$HOST_INVALID) : d(t.BACKEND$HOST_REQUIRED) : void 0;
|
|
117
|
+
return /* @__PURE__ */ x("form", {
|
|
118
|
+
"data-testid": `${F}-form`,
|
|
119
|
+
onSubmit: async (e) => {
|
|
120
|
+
if (e.preventDefault(), !L) {
|
|
121
|
+
j(!0), N(!0);
|
|
121
122
|
return;
|
|
122
123
|
}
|
|
123
124
|
let t = {
|
|
124
|
-
name:
|
|
125
|
-
host:
|
|
126
|
-
apiKey:
|
|
127
|
-
kind:
|
|
125
|
+
name: g.trim(),
|
|
126
|
+
host: w(v),
|
|
127
|
+
apiKey: O.trim(),
|
|
128
|
+
kind: P
|
|
128
129
|
};
|
|
129
|
-
|
|
130
|
+
if (u) {
|
|
131
|
+
await u(t);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
n === "edit" && r ? h(r.id, t) : m(t), a();
|
|
130
135
|
},
|
|
131
136
|
className: "flex flex-col gap-4",
|
|
132
137
|
children: [
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
testId: `${
|
|
135
|
-
name: `${
|
|
138
|
+
/* @__PURE__ */ b(p, {
|
|
139
|
+
testId: `${F}-name`,
|
|
140
|
+
name: `${F}-name`,
|
|
136
141
|
type: "text",
|
|
137
|
-
label:
|
|
138
|
-
value:
|
|
139
|
-
onChange:
|
|
140
|
-
onBlur: () =>
|
|
142
|
+
label: d(t.BACKEND$NAME_LABEL),
|
|
143
|
+
value: g,
|
|
144
|
+
onChange: _,
|
|
145
|
+
onBlur: () => j(!0),
|
|
141
146
|
placeholder: "Production",
|
|
142
147
|
className: "w-full",
|
|
143
148
|
showRequiredTag: !0,
|
|
144
|
-
error:
|
|
149
|
+
error: R
|
|
145
150
|
}),
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
testId: `${
|
|
148
|
-
name: `${
|
|
151
|
+
/* @__PURE__ */ b(p, {
|
|
152
|
+
testId: `${F}-host`,
|
|
153
|
+
name: `${F}-host`,
|
|
149
154
|
type: "text",
|
|
150
|
-
label:
|
|
151
|
-
value:
|
|
152
|
-
onChange:
|
|
153
|
-
onBlur: () =>
|
|
154
|
-
placeholder:
|
|
155
|
+
label: d(t.BACKEND$HOST_LABEL),
|
|
156
|
+
value: v,
|
|
157
|
+
onChange: c ? void 0 : C,
|
|
158
|
+
onBlur: () => N(!0),
|
|
159
|
+
placeholder: E,
|
|
155
160
|
className: "w-full",
|
|
156
161
|
showRequiredTag: !0,
|
|
157
|
-
error:
|
|
162
|
+
error: z,
|
|
163
|
+
isDisabled: c
|
|
158
164
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
testId: `${
|
|
161
|
-
name: `${
|
|
165
|
+
/* @__PURE__ */ b(p, {
|
|
166
|
+
testId: `${F}-api-key`,
|
|
167
|
+
name: `${F}-api-key`,
|
|
162
168
|
type: "password",
|
|
163
|
-
label:
|
|
164
|
-
value:
|
|
165
|
-
onChange:
|
|
169
|
+
label: d(t.BACKEND$KEY_LABEL),
|
|
170
|
+
value: O,
|
|
171
|
+
onChange: k,
|
|
166
172
|
placeholder: "",
|
|
167
173
|
className: "w-full"
|
|
168
174
|
}),
|
|
169
|
-
n === "edit" &&
|
|
170
|
-
backend:
|
|
171
|
-
testIdRoot:
|
|
175
|
+
n === "edit" && r && /* @__PURE__ */ b(D, {
|
|
176
|
+
backend: r,
|
|
177
|
+
testIdRoot: F
|
|
172
178
|
}),
|
|
173
179
|
o ? o({
|
|
174
|
-
canSubmit:
|
|
175
|
-
testIdRoot:
|
|
176
|
-
}) : /* @__PURE__ */
|
|
180
|
+
canSubmit: L,
|
|
181
|
+
testIdRoot: F
|
|
182
|
+
}) : /* @__PURE__ */ x("div", {
|
|
177
183
|
className: "flex justify-end gap-2 mt-2 w-full",
|
|
178
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ b(f, {
|
|
179
185
|
type: "button",
|
|
180
186
|
variant: "secondary",
|
|
181
187
|
onClick: a,
|
|
182
|
-
testId: `${
|
|
183
|
-
children:
|
|
184
|
-
}), /* @__PURE__ */
|
|
188
|
+
testId: `${F}-cancel`,
|
|
189
|
+
children: d(t.BUTTON$CANCEL)
|
|
190
|
+
}), /* @__PURE__ */ b(f, {
|
|
185
191
|
type: "submit",
|
|
186
192
|
variant: "primary",
|
|
187
|
-
isDisabled: !
|
|
188
|
-
testId: `${
|
|
189
|
-
children:
|
|
193
|
+
isDisabled: !L,
|
|
194
|
+
testId: `${F}-submit`,
|
|
195
|
+
children: d(t.BACKEND$SAVE)
|
|
190
196
|
})]
|
|
191
197
|
})
|
|
192
198
|
]
|
|
193
199
|
});
|
|
194
200
|
}
|
|
195
|
-
function
|
|
196
|
-
let {
|
|
197
|
-
return
|
|
201
|
+
function k() {
|
|
202
|
+
let { currentPath: e, navigate: t } = r();
|
|
203
|
+
return y.useCallback(() => {
|
|
204
|
+
/^\/automations\/[^/]+/.test(e) ? t("/automations") : /^\/conversations\/[^/]+/.test(e) && t("/conversations");
|
|
205
|
+
}, [e, t]);
|
|
206
|
+
}
|
|
207
|
+
function A({ onClose: n }) {
|
|
208
|
+
let { t: r } = e("openhands"), { addBackend: a } = i(), o = k(), [s, c] = y.useState(""), [l, u] = y.useState(""), [d, m] = y.useState(""), h = S(l), g = s.trim().length > 0 && T(l) && (h === "local" || d.trim().length > 0);
|
|
209
|
+
return /* @__PURE__ */ x("form", {
|
|
198
210
|
"data-testid": "add-backend-form",
|
|
199
211
|
onSubmit: (e) => {
|
|
200
|
-
e.preventDefault(),
|
|
201
|
-
name:
|
|
202
|
-
host:
|
|
203
|
-
apiKey:
|
|
204
|
-
kind:
|
|
205
|
-
}), n());
|
|
212
|
+
e.preventDefault(), g && (a({
|
|
213
|
+
name: s.trim(),
|
|
214
|
+
host: w(l),
|
|
215
|
+
apiKey: d.trim(),
|
|
216
|
+
kind: h
|
|
217
|
+
}), o(), n());
|
|
206
218
|
},
|
|
207
219
|
className: "flex flex-col gap-4 flex-1 min-w-0",
|
|
208
220
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ x("div", {
|
|
210
222
|
className: "flex flex-col gap-1",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
223
|
+
children: [/* @__PURE__ */ b(p, {
|
|
212
224
|
testId: "add-backend-name",
|
|
213
225
|
name: "add-backend-name",
|
|
214
226
|
type: "text",
|
|
215
|
-
label:
|
|
216
|
-
value:
|
|
217
|
-
onChange:
|
|
227
|
+
label: r(t.BACKEND$NAME_LABEL),
|
|
228
|
+
value: s,
|
|
229
|
+
onChange: c,
|
|
218
230
|
placeholder: "e.g. My Server",
|
|
219
231
|
className: "w-full"
|
|
220
|
-
}), /* @__PURE__ */
|
|
232
|
+
}), /* @__PURE__ */ b("p", {
|
|
221
233
|
className: "text-xs text-[var(--oh-muted)]",
|
|
222
|
-
children:
|
|
234
|
+
children: r(t.BACKEND$NAME_HELPER)
|
|
223
235
|
})]
|
|
224
236
|
}),
|
|
225
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ x("div", {
|
|
226
238
|
className: "flex flex-col gap-1",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
239
|
+
children: [/* @__PURE__ */ b(p, {
|
|
228
240
|
testId: "add-backend-host",
|
|
229
241
|
name: "add-backend-host",
|
|
230
242
|
type: "text",
|
|
231
|
-
label:
|
|
232
|
-
value:
|
|
233
|
-
onChange:
|
|
243
|
+
label: r(t.BACKEND$HOST_LABEL),
|
|
244
|
+
value: l,
|
|
245
|
+
onChange: u,
|
|
234
246
|
placeholder: "http://localhost:8000",
|
|
235
247
|
className: "w-full"
|
|
236
|
-
}), /* @__PURE__ */
|
|
248
|
+
}), /* @__PURE__ */ b("p", {
|
|
237
249
|
className: "text-xs text-[var(--oh-muted)]",
|
|
238
250
|
"data-testid": "add-backend-host-helper",
|
|
239
|
-
children:
|
|
251
|
+
children: r(t.BACKEND$HOST_HELPER)
|
|
240
252
|
})]
|
|
241
253
|
}),
|
|
242
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ b(p, {
|
|
243
255
|
testId: "add-backend-api-key",
|
|
244
256
|
name: "add-backend-api-key",
|
|
245
257
|
type: "password",
|
|
246
|
-
label:
|
|
247
|
-
value:
|
|
248
|
-
onChange:
|
|
258
|
+
label: r(t.BACKEND$KEY_LABEL),
|
|
259
|
+
value: d,
|
|
260
|
+
onChange: m,
|
|
249
261
|
placeholder: "sk-••••••••••",
|
|
250
262
|
className: "w-full"
|
|
251
263
|
}),
|
|
252
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ b(f, {
|
|
253
265
|
type: "submit",
|
|
254
266
|
variant: "secondary",
|
|
255
|
-
isDisabled: !
|
|
267
|
+
isDisabled: !g,
|
|
256
268
|
testId: "add-backend-submit",
|
|
257
269
|
className: "w-full text-center",
|
|
258
|
-
children:
|
|
270
|
+
children: r(t.BACKEND$CONNECT)
|
|
259
271
|
})
|
|
260
272
|
]
|
|
261
273
|
});
|
|
262
274
|
}
|
|
263
|
-
function
|
|
264
|
-
let { t: a } = e("openhands"), { addBackend: o } =
|
|
265
|
-
return /* @__PURE__ */
|
|
275
|
+
function j({ onClose: r }) {
|
|
276
|
+
let { t: a } = e("openhands"), { addBackend: o } = i(), s = k(), [c, l] = y.useState(!1), [u, d] = y.useState(""), f = u.trim() || E;
|
|
277
|
+
return /* @__PURE__ */ x("div", {
|
|
266
278
|
className: "flex flex-1 min-w-0 flex-col items-center gap-3",
|
|
267
279
|
children: [
|
|
268
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ x("div", {
|
|
269
281
|
className: "flex flex-col items-center gap-1",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
282
|
+
children: [/* @__PURE__ */ b(h, {
|
|
271
283
|
width: 56,
|
|
272
284
|
height: 56,
|
|
273
285
|
"aria-hidden": !0
|
|
274
|
-
}), /* @__PURE__ */
|
|
286
|
+
}), /* @__PURE__ */ b("h4", {
|
|
275
287
|
className: "text-lg font-medium text-white",
|
|
276
288
|
"data-testid": "add-backend-cloud-title",
|
|
277
289
|
children: a(t.BACKEND$CLOUD_TITLE)
|
|
278
290
|
})]
|
|
279
291
|
}),
|
|
280
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ b("p", {
|
|
281
293
|
className: "text-center text-sm leading-relaxed text-[var(--oh-muted)]",
|
|
282
294
|
children: a(t.BACKEND$CLOUD_DESCRIPTION)
|
|
283
295
|
}),
|
|
284
|
-
/* @__PURE__ */
|
|
285
|
-
host:
|
|
296
|
+
/* @__PURE__ */ b(v, {
|
|
297
|
+
host: f,
|
|
286
298
|
onSuccess: (e) => {
|
|
287
299
|
o({
|
|
288
300
|
name: "OpenHands Cloud",
|
|
289
|
-
host:
|
|
301
|
+
host: w(f),
|
|
290
302
|
apiKey: e,
|
|
291
303
|
kind: "cloud"
|
|
292
|
-
}),
|
|
304
|
+
}), s(), r();
|
|
293
305
|
},
|
|
294
306
|
testIdRoot: "add-backend"
|
|
295
307
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
308
|
+
/* @__PURE__ */ x("div", {
|
|
297
309
|
className: "w-full",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
310
|
+
children: [/* @__PURE__ */ x("button", {
|
|
299
311
|
type: "button",
|
|
300
|
-
onClick: () =>
|
|
301
|
-
"aria-expanded":
|
|
312
|
+
onClick: () => l((e) => !e),
|
|
313
|
+
"aria-expanded": c,
|
|
302
314
|
"data-testid": "add-backend-advanced-toggle",
|
|
303
315
|
className: "flex w-full cursor-pointer items-center justify-center gap-1 text-center text-xs text-[var(--oh-muted)] transition-colors hover:text-content-2",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
305
|
-
className: n("h-4 w-4 shrink-0 text-muted transition-transform",
|
|
316
|
+
children: [/* @__PURE__ */ b("span", { children: a(t.BACKEND$ADVANCED) }), /* @__PURE__ */ b(g, {
|
|
317
|
+
className: n("h-4 w-4 shrink-0 text-muted transition-transform", c && "rotate-180"),
|
|
306
318
|
"aria-hidden": !0
|
|
307
319
|
})]
|
|
308
|
-
}), /* @__PURE__ */
|
|
309
|
-
className: n("pt-2", !
|
|
310
|
-
"aria-hidden": !
|
|
311
|
-
children: [/* @__PURE__ */
|
|
320
|
+
}), /* @__PURE__ */ x("div", {
|
|
321
|
+
className: n("pt-2", !c && "pointer-events-none invisible"),
|
|
322
|
+
"aria-hidden": !c,
|
|
323
|
+
children: [/* @__PURE__ */ b(p, {
|
|
312
324
|
testId: "add-backend-cloud-host",
|
|
313
325
|
name: "add-backend-cloud-host",
|
|
314
326
|
type: "text",
|
|
315
327
|
label: a(t.BACKEND$HOST_LABEL),
|
|
316
|
-
value:
|
|
317
|
-
onChange:
|
|
318
|
-
placeholder:
|
|
328
|
+
value: u,
|
|
329
|
+
onChange: d,
|
|
330
|
+
placeholder: E,
|
|
319
331
|
className: "w-full"
|
|
320
|
-
}), /* @__PURE__ */
|
|
332
|
+
}), /* @__PURE__ */ b("p", {
|
|
321
333
|
className: "mt-1 text-xs text-[var(--oh-muted)]",
|
|
322
334
|
children: a(t.BACKEND$LOGIN_CLOUD_HINT)
|
|
323
335
|
})]
|
|
@@ -326,82 +338,82 @@ function k({ onClose: i }) {
|
|
|
326
338
|
]
|
|
327
339
|
});
|
|
328
340
|
}
|
|
329
|
-
function
|
|
341
|
+
function M({ mode: r, backend: i, onClose: a }) {
|
|
330
342
|
let { t: o } = e("openhands");
|
|
331
|
-
if (r === "add") return /* @__PURE__ */
|
|
343
|
+
if (r === "add") return /* @__PURE__ */ b(c, {
|
|
332
344
|
onClose: a,
|
|
333
345
|
closeOnEscape: !1,
|
|
334
346
|
"aria-label": o(t.BACKEND$ADD_TITLE),
|
|
335
|
-
children: /* @__PURE__ */
|
|
347
|
+
children: /* @__PURE__ */ x("div", {
|
|
336
348
|
"data-testid": "add-backend-modal",
|
|
337
|
-
className: n("relative rounded-xl border border-[var(--oh-border)] bg-base-secondary",
|
|
349
|
+
className: n("relative rounded-xl border border-[var(--oh-border)] bg-base-secondary", u("xl"), l),
|
|
338
350
|
children: [
|
|
339
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ b(d, {
|
|
340
352
|
onClose: a,
|
|
341
353
|
testId: "add-backend-close"
|
|
342
354
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ b("div", {
|
|
344
356
|
className: "px-6 pt-6 pb-2 pr-12",
|
|
345
|
-
children: /* @__PURE__ */
|
|
357
|
+
children: /* @__PURE__ */ b("h2", {
|
|
346
358
|
className: "text-lg font-semibold",
|
|
347
359
|
children: o(t.BACKEND$ADD_TITLE)
|
|
348
360
|
})
|
|
349
361
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ x("div", {
|
|
351
363
|
className: "flex gap-6 px-6 pb-6 pt-2",
|
|
352
364
|
children: [
|
|
353
|
-
/* @__PURE__ */
|
|
365
|
+
/* @__PURE__ */ b("div", {
|
|
354
366
|
className: "flex-1 min-w-0",
|
|
355
|
-
children: /* @__PURE__ */
|
|
367
|
+
children: /* @__PURE__ */ b(A, { onClose: a })
|
|
356
368
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
369
|
+
/* @__PURE__ */ x("div", {
|
|
358
370
|
className: "flex shrink-0 flex-col items-center",
|
|
359
371
|
children: [
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ b("div", { className: "flex-1 w-px bg-[var(--oh-border)]" }),
|
|
373
|
+
/* @__PURE__ */ b("span", {
|
|
362
374
|
className: "py-3 text-xs uppercase text-[var(--oh-muted)]",
|
|
363
375
|
children: o(t.BACKEND$LOGIN_OR)
|
|
364
376
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ b("div", { className: "flex-1 w-px bg-[var(--oh-border)]" })
|
|
366
378
|
]
|
|
367
379
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ b("div", {
|
|
369
381
|
className: "flex-1 min-w-0",
|
|
370
|
-
children: /* @__PURE__ */
|
|
382
|
+
children: /* @__PURE__ */ b(j, { onClose: a })
|
|
371
383
|
})
|
|
372
384
|
]
|
|
373
385
|
})
|
|
374
386
|
]
|
|
375
387
|
})
|
|
376
388
|
});
|
|
377
|
-
let
|
|
378
|
-
return /* @__PURE__ */
|
|
389
|
+
let s = "edit-backend";
|
|
390
|
+
return /* @__PURE__ */ b(c, {
|
|
379
391
|
onClose: a,
|
|
380
392
|
closeOnEscape: !1,
|
|
381
393
|
"aria-label": o(t.BACKEND$EDIT_TITLE),
|
|
382
|
-
children: /* @__PURE__ */
|
|
383
|
-
"data-testid": `${
|
|
384
|
-
className: n("relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-[var(--oh-border)]",
|
|
394
|
+
children: /* @__PURE__ */ x("div", {
|
|
395
|
+
"data-testid": `${s}-modal`,
|
|
396
|
+
className: n("relative bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-[var(--oh-border)]", u("md")),
|
|
385
397
|
children: [
|
|
386
|
-
/* @__PURE__ */
|
|
398
|
+
/* @__PURE__ */ b(d, {
|
|
387
399
|
onClose: a,
|
|
388
|
-
testId: `${
|
|
400
|
+
testId: `${s}-close`
|
|
389
401
|
}),
|
|
390
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ b("h2", {
|
|
391
403
|
className: "pr-6 text-lg font-semibold",
|
|
392
404
|
children: o(t.BACKEND$EDIT_TITLE)
|
|
393
405
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
406
|
+
/* @__PURE__ */ b(O, {
|
|
395
407
|
mode: "edit",
|
|
396
408
|
backend: i,
|
|
397
409
|
onSubmitted: a,
|
|
398
|
-
testIdRoot:
|
|
410
|
+
testIdRoot: s
|
|
399
411
|
})
|
|
400
412
|
]
|
|
401
413
|
})
|
|
402
414
|
});
|
|
403
415
|
}
|
|
404
416
|
//#endregion
|
|
405
|
-
export {
|
|
417
|
+
export { M as BackendFormModal };
|
|
406
418
|
|
|
407
419
|
//# sourceMappingURL=backend-form-modal.js.map
|